query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Creates a pane for the scene.
private BorderPane getPane() { bigField = new BigField(); // Create a Field model view = new BigFieldView(bigField); // Create a pane view BorderPane pane = new BorderPane(); pane.setCenter(view); return pane; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createScene() {\r\n imageView.setFitWidth(400);\r\n imageView.setFitHeight(300);\r\n\r\n Scene scene = new Scene(rootScene(), 700, 600);\r\n\r\n primaryStage.setTitle(TITLE);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }", "private void createScene() \n {\n PlatformImpl.startup(\n new Runnable() {\n public void run() { \n Group root = new Group(); \n Scene scene = new Scene(root, 80, 20); \n SizeView sizeview = createSizeView(scene);\n root.getChildren().add(sizeview);\n jfxPanel.setScene(scene); \n } \n }); \n }", "void createScene(){\n\t\tmainScene = new Scene(mainPane);\r\n\t\t\r\n\t\t//If keyEvent is not focussed on a node on the scene, you can attach\r\n\t\t//a keyEvent to a scene to be consumed by the screen itself.\r\n\t\tCloser closer = new Closer();\r\n\t\tmainScene.setOnKeyPressed(closer);\r\n\t}", "public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\n\t}", "public PaneOrganizer() {\n\t\t_root = new BorderPane(); // new border pane\n\t\t\n\t\tLabel score = new Label(\"Score: 0\"); // score label\n\t\tscore.setTextFill(Color.WHITE); // text color\n\t\t\n\t\tLabel lives = new Label(\"Lives: 3\"); // lives label\n\t\tlives.setTextFill(Color.WHITE); // text color\n\t\t\n\t\tGame game = new Game(score, lives); // game pane\n\t\tHBox hbox = new HBox(); // hbox to organize the quit button\n\n\t\tButton quit = new Button(\"Quit\"); // Creating quit button\n\t\tquit.setOnAction(new QuitHandler()); // add the quit handler\n\t\tquit.minHeight(Constants.QUIT_HEIGHT); // sizing\n\n\t\thbox.getChildren().addAll(quit, score, lives); // add components to hbox\n\t\thbox.setSpacing(20);\n\t\t\n\t\t_root.setCenter(game); // set the game pane\n\t\t_root.setBottom(hbox); // set the hbox\n\t\t_root.setStyle(\"-fx-background-color: black\");\n\t}", "public PaneOrganizer() {\n\t\t\n\t\t_root = new BorderPane();\n\t\t_game = new Game(_root);\n\t\tthis.setupButton();\n\t\t\n\t}", "public Scene createScene() {\n root = new Group();\n key = new Group();\n Scene scene = new Scene(root, 500, 500, Color.WHITE);\n addRootNode();\n setupKey();\n getAlreadyConnectedPeers();\n return scene;\n }", "private void createFXScene() {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"toolBarFXML.fxml\"));\n Scene scene = new Scene(root, Color.LIGHTGREY);\n fxPanel.setScene(scene);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n }\n\n }", "private void createUI() {\n\t\tthis.rootPane = new TetrisRootPane(true);\n\t\tthis.controller = new TetrisController(this, rootPane, getWorkingDirectory());\n\t\tthis.listener = new TetrisActionListener(controller, this, rootPane);\n\t\t\n\t\trootPane.setActionListener(listener);\n\t\trootPane.setGameComponents(controller.getGameComponent(), controller.getPreviewComponent());\n\t\trootPane.initialize();\n\t\t\n\t\tPanelBorder border = controller.getPlayer().getPanel().getPanelBorder(\"Tetris v\" + controller.getVersion());\n\t\tborder.setRoundedCorners(true);\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));\n\t\tpanel.setBackground(getBackgroundColor(border.getLineColor()));\n\t\tpanel.setBorder(border);\n\t\tpanel.setPreferredSize(new Dimension(564, 551));\n\t\tpanel.add(rootPane);\n\t\trootPane.addPanelBorder(border, panel);\n\t\t\n\t\tthis.setContentPane(panel);\n\t\tthis.setSize(564, 550);\n\t\t\n\t\tcontroller.initializeUI();\n\t}", "@Override\n\tpublic void setPane() {\n\t\tNewTaskPane textListPane = new NewTaskPane();\n\t\trootPane = new HomePane(new MainLeftPane(),textListPane);\t\t\n\t}", "public void createMainStage(){\n mainStage = new Stage();\n BorderPane mainPageBp = new BorderPane();\n \n String headerTextMain = \"Main menu\";\n setBorderPaneTop(mainPageBp, headerTextMain, mainStage);\n setBorderPaneCenterMain(mainPageBp);\n setBorderPaneBottomMain(mainPageBp);\n \n Scene sceneMain = new Scene(mainPageBp,Constants.SCENEWIDTH, Constants.SCENEHEIGHT);\n sceneMain.getStylesheets().add(\"/styles/aitBank.css\");// add connection to stylesheet per scene\n mainStage.setTitle(bankName);\n mainStage.setScene(sceneMain);\n }", "public static WaitTitledPane create() {\n WaitTitledPane newContent = new WaitTitledPane();\n try {\n ViewControllerLoader.initializeCustomControl(newContent);\n } catch (IOException ex) {\n throw new InternalError(\"Error loading view\", ex);\n }\n return newContent;\n }", "private Pane createLayout() {\n root = new Pane();\n root.setPrefSize(Main.APP_W, Main.APP_H);\n\n // Logo\n ImageView logoView = new ImageView(new Image(\"res/snake.png\"));\n logoView.setFitHeight(500);\n logoView.setPreserveRatio(true);\n logoView.setLayoutX(40);\n logoView.setLayoutY(40);\n\n // Controls diagram\n ImageView controlsView = new ImageView(new Image(\"res/controls.png\"));\n controlsView.setFitHeight(100);\n controlsView.setPreserveRatio(true);\n controlsView.setLayoutX(350);\n controlsView.setLayoutY(40);\n\n // Control instructions\n Text keys = new Text(\"Use arrow keys to direct the snake \\nspacebar to pause / resume the game\");\n keys.setFont(Font.font(\"Calibri\", FontWeight.BOLD, 20));\n keys.setFill(Color.BLUE);\n keys.setLayoutX(470);\n keys.setLayoutY(90);\n\n // Play button image\n ImageView playView = new ImageView(new Image(\"res/play.png\"));\n playView.setFitHeight(150);\n playView.setPreserveRatio(true);\n playView.setLayoutX(320);\n playView.setLayoutY(170);\n\n // Click here instructions\n // Control instructions\n Text clickHere = new Text(\"Click to play\");\n clickHere.setFont(Font.font(\"Calibri\", FontWeight.BOLD, 20));\n clickHere.setFill(Color.BLUE);\n clickHere.setLayoutX(348);\n clickHere.setLayoutY(348);\n\n // Background\n ImageView backgroundView = new ImageView(Main.BACKGROUND_IMAGE);\n\n // Add elements to the root\n root.getChildren().setAll(backgroundView, logoView, controlsView, keys, playView, clickHere);\n\n return root;\n }", "@FXML\r\n private void addPane(ActionEvent e) throws IOException {\r\n\r\n eventDialog(\"New\");\r\n eventLabel.setText(\"Are you want to take a new window?\");\r\n\r\n noButton.setOnAction(event -> {\r\n firstLabel.setVisible(false);\r\n lastLabel.setVisible(false);\r\n lineFirstNodeTF.setVisible(false);\r\n lineLastNodeTF.setVisible(false);\r\n setNodeButton.setVisible(false);\r\n resetNodeButton.setVisible(false);\r\n\r\n graphNodeTextArea.setEditable(true);\r\n graphNodeTextArea.setText(\"\");\r\n eventStage.close();\r\n });\r\n\r\n yesButton.setOnAction(event -> {\r\n Parent root = null;\r\n try {\r\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getResource(\"GUI.fxml\")));\r\n } catch (IOException ioException) {\r\n ioException.printStackTrace();\r\n }\r\n Scene scene = new Scene(root);\r\n\r\n Stage primaryStage = new Stage();\r\n primaryStage.setScene(scene);\r\n primaryStage.setTitle(\"Object Oriented Programming Project - Team 1B\");\r\n primaryStage.show();\r\n eventStage.close();\r\n });\r\n\r\n }", "public static void newPane(String resourceURL) throws IOException { \n\t\tMain.root = (Pane) FXMLLoader.load(Main.class.getResource(resourceURL));\n\t\t\n\t}", "public void createScene();", "private void createNewVisualPane(int solverId) {\n }", "@Override\n\tpublic void setPane() {\n\t\tNewSchedulePane SchListPane = new NewSchedulePane();\n\t\trootPane = new HomePane(new MainLeftPane(),SchListPane);\n\t}", "public void showPane(){\n\t\tpane.draw();\n\t}", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}", "private Scene createScene() {\r\n\t\tGroup root = new Group();\r\n\t\tScene scene = new Scene(root, this.getWidth(), this.getHeight());\r\n\t\tthis.textfield = new TextField();\r\n\t\ttextfield.setPromptText(this.placeholder);\r\n\t\ttextfield.setPrefWidth(this.getWidth());\r\n\t\ttextfield.setPrefHeight(this.getHeight());\r\n\t\ttextfield.setMinSize(TextField.USE_PREF_SIZE, TextField.USE_PREF_SIZE);\r\n\t\tthis.fixNavigation(textfield);\r\n\t\tthis.node = textfield;\r\n\t\troot.getChildren().add(textfield);\r\n\t\treturn scene;\r\n\t}", "public Scene Window(){\n Area.setPrefHeight(177);\n Area.setPrefWidth(650);\n Area.setOpacity(0.5);\n Area.setEditable(false);\n Area.setText(\"\\n\\nThe application is used for PV(photovoltaics) sizing to power a RO(Reverse osmosis) desalination unit\" +\n \"\\nThe system depends on batteries to store energy.\" +\n \"\\n\\nTo use this application without problems, you must have the following information\\n\" +\n \"\\t*The location of the desalination unit;\\n\" +\n \"\\t*Amount of power required to operate the unit in kilowatts;\\n\" +\n \"\\t*Time of operating for RO;\\n\" +\n \"\\t*Detailed specification information of the pv modules;\\n\" +\n \"\\t*The number of people the Ro unit will provide water for,and the average water consumption for regular person\");\n\n boxPane.setPrefHeight(44);\n boxPane.setPrefWidth(650);\n\n //Go user map selection interface\n nextWindow.setPrefHeight(30);\n nextWindow.setPrefWidth(300);\n nextWindow.setMnemonicParsing(false);\n nextWindow.setText(\"NEXT\");\n\n\n //HBox.setMargin(nextWindow, new Insets(5,0,5,0));\n // boxPane.getChildren().addAll(nextWindow);\n boxPane.setAlignment(Pos.CENTER);\n\n //Load text area and button to the container\n rootPane.setCenter(Area);\n rootPane.setBottom(boxPane);\n\n scene = new Scene(rootPane,640,300);\n return scene;\n }", "@Override\n\tpublic void setPane() {\n\t\tNewRecordPane RecListPane = new NewRecordPane();\n\t\trootPane = new HomePane(new MainLeftPane(),RecListPane);\n\t}", "public void createChequeStage(){\n chequeStage = new Stage();\n BorderPane chequePageBp = new BorderPane();\n \n String headerTextMain = \"Cheque Account\";\n setBorderPaneTop(chequePageBp, headerTextMain, chequeStage);\n setBorderPaneCenterCheque(chequePageBp);\n setBorderPaneBottomCheque(chequePageBp, chequeStage);\n \n Scene sceneCheque = new Scene(chequePageBp,Constants.SCENEWIDTH, Constants.SCENEHEIGHT);\n sceneCheque.getStylesheets().add(\"/styles/aitBank.css\");// add connection to stylesheet per scene\n chequeStage.setTitle(bankName);\n chequeStage.setScene(sceneCheque);\n }", "public Scene scene() {\n AnchorPane anchorPane = new AnchorPane();\n\n Pane track = raceTrack.trackpainting();\n\n AnchorPane.setTopAnchor(track, 40.0);\n AnchorPane.setLeftAnchor(track, 40.0);\n\n determineStartingLocation(carOne, carTwo, carThree);\n\n carPosition(carOne);\n carPosition(carTwo);\n carPosition(carThree);\n\n AnchorPane.setTopAnchor(btnStartRace, 480.0);\n AnchorPane.setLeftAnchor(btnStartRace, 740.0);\n\n AnchorPane.setTopAnchor(btnEndRace, 480.0);\n AnchorPane.setLeftAnchor(btnEndRace, 730.0);\n\n AnchorPane.setTopAnchor(txtWarning, 600.0);\n AnchorPane.setLeftAnchor(txtWarning, 610.0);\n\n anchorPane.setBackground(\n new Background(new BackgroundFill(Color.rgb(0, 132, 0),\n CornerRadii.EMPTY, Insets.EMPTY)));\n\n anchorPane.getChildren().addAll(track, carOne, carTwo, carThree, btnStartRace, btnEndRace, txtWarning);\n\n Scene scene = new Scene(anchorPane, 1580, 1030);\n return scene;\n }", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "protected Scene createView() {\n\t\treturn null;\n\t}", "public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}", "private GridPane createSeedPane() {\n\t\t\n\t\tGridPane seedPane = new GridPane();\n\t\t\n\t\tLabel nbSeed = new Label(\"Seed : \");\n\t\tTextField seedField = new TextField();\n\t\tseedPane.addRow(0, nbSeed, seedField);\n\t\tseed.textProperty().bind(seedField.textProperty());\n\t\t\n\t\tseedPane.setStyle(\"\"\n\t\t\t\t+ \"-fx-border-radius: 25;\"\n\t\t\t\t+ \"-fx-background-radius: 25;\"\n\t\t\t\t+ \"-fx-padding: 10;\"\n\t\t\t\t+ \"-fx-background-color:lightgray;\"\n\t\t\t\t+ \"-fx-border-width: 2;\"\n\t\t\t\t+ \" -fx-border-style: solid;\"\n\t\t\t\t+ \" -fx-border-color: gray;\");\n\t\t\n\t\treturn seedPane;\n\t}", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "public void openGamePane() {\n\t\tParent root;\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(GAMEPANELOCATION));\n\t\t\tloader.setController(this);\n\t\t\troot = loader.load();\n\t\t\tScene scene = new Scene(root);\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.show();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tgamePane.setBackground(new Background(new BackgroundFill(new Color(195/256.0,222/256.0,250/256.0,1),CornerRadii.EMPTY, Insets.EMPTY)));\n\t\tgameObjects=new HashMap<Integer,GameObjectVisualComponent>();\n\t\tpodium=new ArrayList<Text>();\n\t\tpodium.add(new Text(gamePane.getWidth()-100,15,\"TOP\"));\n\t\tgamePane.getChildren().add(podium.get(0));\n\t}", "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}", "@Override // Override the start method in the Application class\r\n /**\r\n * Start method for layout building\r\n */\r\n public void start(Stage primaryStage)\r\n {\n Scene scene = new Scene(pane, 370, 200);\r\n primaryStage.setTitle(\"Sales Conversion\"); // Set the stage title\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.show(); // Display the stage\r\n }", "private Parent rootScene() {\r\n hBox = new HBox();\r\n hBox.setSpacing(10);\r\n hBox.setStyle(\"-fx-background-color: #082B59;\");\r\n hBox.getChildren().addAll(btnCam, btnManAut);\r\n\r\n root.setBottom(hBox);\r\n root.setCenter(imageView);\r\n root.setStyle(\"-fx-background-color: #0A2D68;\");\r\n\r\n return root;\r\n }", "public void setupScene() {\n\t\tplayScene = new Scene(new Group());\n\t\tupdateScene(playScene);\n\t\twindow.setScene(playScene);\n\t\twindow.show();\n\t}", "public void Scene() {\n Scene scene = new Scene(this.root);\n this.stage.setScene(scene);\n this.stage.show();\n }", "public void addToPane(Node node) {\n pane.getChildren().add(node);\n }", "public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}", "private void createLayeredPane(){\n\t\tcontentPane = new JLayeredPane();\n\t\tcontentPane.setPreferredSize(windowSize);\n\t\tcontentPane.setOpaque(true);\n\t\tcontentPane.setVisible(true);\n\t}", "public MainPane(BananaBroadcast app, Stage primaryStage) throws IOException {\n\t\tthis.cartouches = app.cartouches;\n\t\tthis.scheduler = app.scheduler;\n\t\tthis.primaryStage = primaryStage;\n\t\tthis.database = app.database;\n\t\tthis.app = app;\n\t\tGuiApp.loadLayout(this, \"MainPane.fxml\");\n\t}", "public Scene introScene() {\n\t\tipField = new TextField(\"127.0.0.1\");\n\t\tportNum = new TextField(\"5555\");\n\t\tintroHbox = new HBox(30,ipField, portNum);\n\t\tintroHbox.setLayoutX(150);\n\t\tintroHbox.setLayoutY(200);\n\t\t\n\t\t// login Button\n\t\tloginButton = new Button(\"Next\");\n\t\tloginButton.setLayoutX(150);\n\t\tloginButton.setLayoutY(240);\n\t\tloginButton.setOnAction(toTheInstr);\n\t\t\n\t\t// intro Pane with background\n\t\tintroPane = new Pane(introHbox, loginButton);\n\t\tImage image = new Image(\"background_intro.jpg\");\n\t\tBackgroundImage backgroundImage = new BackgroundImage(image, BackgroundRepeat.NO_REPEAT,\n\t\t\t\t\t\t\t\t\t\t\t\tBackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, new BackgroundSize(1.0, 1.0, true, true, false, false));\n\t\tBackground background = new Background(backgroundImage);\n\t\tintroPane.setBackground(background);\n\t\t\n\t\treturn new Scene(introPane,600,600);\n\t}", "public void changeScene(Pane pane){\n Platform.runLater(()->{\n dynamicPane.getChildren().clear();\n dynamicPane.getChildren().add(pane);\n });\n }", "public void build() {\n VBox rootLayout = new VBox();\n Pane topPane = new Pane();\n HBox bottomBox = new HBox();\n Pane pluginPane = new Pane();\n Pane iconPane = new Pane();\n rootLayout.setPrefSize(300, 623);\n topPane.setPrefSize(300, 50);\n bottomBox.setPrefSize(300, 573);\n pluginPane.setPrefSize(250, 573);\n iconPane.setPrefSize(50, 573);\n Button b1 = new Button(\"h\");\n pluginPane.getChildren().addAll(b1);\n bottomBox.getChildren().addAll(pluginPane, iconPane);\n rootLayout.getChildren().addAll(topPane, bottomBox);\n\n Scene scene = new Scene(rootLayout);\n setScene(scene);\n }", "private GridPane createPlayerPane(PlayerId pId) {\n\t\t\n\t\tGridPane playerPane = new GridPane();\n\t\t\n\t\tLabel id = new Label(pId.toString());\n\t\tid.setMaxWidth(Double.MAX_VALUE);\n\t\tid.setAlignment(Pos.CENTER);\n\t\t\n\t\t// player type setting\n\t\tGridPane buttons = new GridPane();\n\t\tToggleGroup group = new ToggleGroup();\n\t\t\n\t\tRadioButton human = new RadioButton(\"Human Player\");\n\t\thuman.setToggleGroup(group);\n\t\tbuttons.addRow(0, human);\n\t\t\n\t\tRadioButton simulated = new RadioButton(\"Simulated Player\");\n\t\tsimulated.setToggleGroup(group);\n\t\tbuttons.addRow(1, simulated);\n\t\t\n\t\tRadioButton remote = new RadioButton(\"Remote Player\");\n\t\tremote.setToggleGroup(group);\n\t\tbuttons.addRow(2, remote);\n\t\t\n\t\tgroup.selectedToggleProperty().addListener((a,b,c) -> {\n\t\t\tallButtons.set(pId.ordinal(), (RadioButton) c);\n\t\t});\n\t\t\n\t\t// player name setting\n\t\tLabel nameLabel = new Label(\"Name : \");\n\t\tTextField name = new TextField();\n\t\t\n\t\t// player special settings\n\t\tLabel iteration = new Label(\"Iterations : \");\n\t\titeration.visibleProperty().bind(simulated.selectedProperty());\n\t\t\n\t\tLabel ip = new Label(\"IP Address : \");\n\t\tip.visibleProperty().bind(remote.selectedProperty());\n\t\t\n\t\tTextField entry = new TextField();\n\t\tentry.visibleProperty().bind(remote.selectedProperty().or(simulated.selectedProperty()));\n\t\t\n\t\tplayerPane.add(id, 0, 0, 2, 1);\n\t\tplayerPane.add(buttons, 0, 1, 2, 1);\n\t\tplayerPane.addRow(2, nameLabel, name);\n\t\tStackPane it_ip = new StackPane(iteration, ip);\n\t\tplayerPane.addRow(3, it_ip, entry);\n\t\t\n\t\tplayerPane.setStyle(\"\"\n\t\t\t\t+ \"-fx-border-radius: 25;\"\n\t\t\t\t+ \"-fx-background-radius: 25;\"\n\t\t\t\t+ \"-fx-padding: 10;\"\n\t\t\t\t+ \"-fx-background-color:lightgray;\"\n\t\t\t\t+ \"-fx-border-width: 2;\"\n\t\t\t\t+ \" -fx-border-style: solid;\"\n\t\t\t\t+ \" -fx-border-color: gray;\");\n\t\t\n\t\ttexts.get(pId.ordinal() * 2).textProperty().bind(name.textProperty());\n\t\ttexts.get(pId.ordinal() * 2 + 1).textProperty().bind(entry.textProperty());\n\t\t\t\n\t\treturn playerPane;\n\t}", "@Override\n public void start (Stage primaryStage) {\n Group root = new Group();\n Scene scene = new Scene(root, AppConstants.STAGE_WIDTH, AppConstants.STAGE_HEIGHT);\n ModulePopulator = new ModuleCreationHelper(root, scene, primaryStage);\n view = new View();\n scene.setFill(AppConstants.BACKGROUND_COLOR);\n // scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n view.init(root, ModulePopulator);\n ModulePopulator.setView(view);\n ModulePopulator.createMainPageModules();\n view.initRunner(root, ModulePopulator);\n primaryStage.setTitle(\"SLogo!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n\n System.out.println(\"App Has Started!\");\n }", "@Override\n public void start(Stage primaryStage) {\n root = new VBox(10);\n root.setPadding(new Insets(30));\n initLabel();\n //set up scene\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.sizeToScene();\n primaryStage.setTitle(\"Mastermind\");\n primaryStage.show();\n }", "public static void borderPane(Stage primaryStage) {\n BorderPane pane = new BorderPane();\n\n // Place nodes in the pane\n pane.setTop(new CustomPane(\"Top\"));\n pane.setRight(new CustomPane(\"Right\"));\n pane.setBottom(new CustomPane(\"Bottom\"));\n pane.setLeft(new CustomPane(\"Left\"));\n pane.setCenter(new CustomPane(\"Center\"));\n\n // Create a scene and place it in the stage\n Scene scene = new Scene(pane);\n primaryStage.setTitle(\"ShowBorderPane\"); // Set the stage title\n primaryStage.setScene(scene); // Place the scene in the stage\n primaryStage.show(); // Display the stage\n }", "public void start() {\n BorderPane borderPane = new BorderPane();\n VBox centerPane = new VBox();\n\n borderPane.setTop(lobbyMenu());\n\n String TITLE = \"Connect 4\";\n Text title = new Text(TITLE);\n title.setFont(Font.font(\"Arial\", FontWeight.BOLD, 30));\n centerPane.getChildren().add(title);\n centerPane.getChildren().add(lobbyButtons());\n centerPane.setAlignment(Pos.CENTER);\n\n borderPane.setCenter(centerPane);\n\n Scene scene = new Scene(borderPane, 520, 360);\n\n stage.setTitle(TITLE);\n stage.setScene(scene);\n }", "private void setStage() {\n\t\tstage = new Stage();\n\t\tstage.setScene(myScene);\n\t\tstage.setTitle(title);\n\t\tstage.show();\n\t\tstage.setResizable(false);\n//\t\tstage.setOnCloseRequest(e -> {\n//\t\t\te.consume();\n//\t\t});\n\t}", "private void initStage() {\n stage = new Stage();\n stage.setTitle(\"Attentions\");\n stage.setScene(new Scene(root));\n stage.sizeToScene();\n }", "void createStage(Stage stage){\n\t\tstage.setHeight(background.getHeight()+25);//displays full image (1)\r\n\t\tstage.setWidth(background.getWidth());\r\n\t\tshowBackground.setFitWidth(stage.getWidth());\r\n\t\tshowBackground.setFitHeight(stage.getHeight()-23);//displays full image (1)\r\n\t\r\n\t\tstage.setAlwaysOnTop(true);\r\n\t\tstage.setResizable(false);\r\n\t\t\r\n\t\t//launches first window in center of screen. \r\n\t\tstage.centerOnScreen();\r\n\t\tstage.setScene(mainScene);\r\n\t\tstage.setTitle(\"Don't Play Games in Class\");\r\n\t\t//supposed to prevent window from being moved\r\n\t\t\r\n\t\t//removes minimize, maximize and close buttons\r\n\t\t//unused because replacing the \r\n\t\t//stage.initStyle(StageStyle.UNDECORATED);\r\n\t\t\r\n\t\t//removes minimize and maximize button\r\n\t\tstage.initStyle(StageStyle.UTILITY);\r\n\t\t\r\n\t\t//replaces the closed window in the center of the screen.\r\n\t\tRespawn launch = new Respawn();\r\n\t\tstage.setOnCloseRequest(launch);\r\n\t}", "public ViewController(ContainerPane pane){\n this.pane = pane;\n }", "private void createLabelsPane() {\n\t\tVBox labelsPane = new VBox();\n\t\tlabelsPane.setAlignment(Pos.CENTER);\n\t\tlabelsPane.setPrefSize(200,100);\n\t\tButton quit = new Button(\"Quit\");\n\t\tButton restart = new Button(\"Restart\");\n\t\tHBox buttons = new HBox();\n\t\tquit.setFocusTraversable(false);\n\t\trestart.setFocusTraversable(false);\n\t\tbuttons.getChildren().addAll(quit, restart);\n\t\tbuttons.setSpacing(15);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\t//Here we set the spacing between the buttons and the border\n\t\tbuttons.setMargin(quit, new Insets(5,5,10,5));\n\t\tbuttons.setMargin(restart, new Insets(5,5,10,5));\n\t\tquit.setOnAction(new QuitHandler());\n\t\trestart.setOnAction(new RestartHandler());\n\t\tLabel instructions = new Label(\"Use arrows keys to move Pacman, P to pause, and U to unpause.\");\n\t\tinstructions.setFont(new Font(\"Arial Black\", 16));\n\t\t_instructions1 = new Label(\"Choose difficulty at beginning of game. Diffculty: \" + _difficultyLevel);\n\t\t_instructions1.setFont(new Font(\"Arial Black\", 16));\n\t\tlabelsPane.setSpacing(5);\n\t\tPaneOrganizer.this.createButtonsPane(labelsPane);\n\t\tlabelsPane.getChildren().addAll(instructions, _instructions1, buttons);\n\t\tlabelsPane.setMargin(quit, new Insets(5,5,10,5));\n\t\tlabelsPane.setStyle(\"-fx-background-color: gray;\");\n\t\t_root.setBottom(labelsPane);\n\t}", "private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }", "private void createNameSubScene() {\n\t\tnameSubScene = new ViewSubScene();\n\t\tthis.mainPane.getChildren().add(nameSubScene);\n\t\tInfoLabel enterName = new InfoLabel(\"ENTER YOU NAME\");\n\t\tenterName.setLayoutX(20);\n\t\tenterName.setLayoutY(40);\n\t\t\n\t\tinputName = new TextField();\n\t\tinputName.setLayoutX(120);\n\t\tinputName.setLayoutY(150);\n\t\t\n\t\tnameSubScene.getPane().getChildren().add(enterName);\n\t\tnameSubScene.getPane().getChildren().add(inputName);\n\t\tnameSubScene.getPane().getChildren().add(createLinkButton());\n\t}", "@Override\n public void start(Stage primaryStage) {\n\n // Creates the scene and displays it to the main window\n Scene withDrawPaneSetup = new Scene(withDrawPaneSetup(primaryStage), 1024, 768);\n primaryStage.setScene(withDrawPaneSetup);\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"app_layout.fxml\"));\n\t\tVBox rootNode = loader.load();\n\n\t\tScene scene = new Scene(rootNode);\n \n Pane menuPane= (Pane) rootNode.getChildren().get(0);\n\t\tmenuPane.getChildren().add(createMenubar());\n\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.setTitle(\"Temperature Convertor\");\n\t\t//primaryStage.setResizable(false); to make sure application is not resizable\n\t\tprimaryStage.show();\n\t}", "private Component doInit() {\n\t\tJXPanel panel = new JXPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// create a label\n\t\tfinal JXLabel label = new JXLabel();\n\t\tlabel.setFont(new Font(\"Segoe UI\", Font.BOLD, 14));\n\t\tlabel.setText(\"task pane item 1 : a label\");\n\t\tlabel.setIcon(Images.NetworkDisconnected.getIcon(32, 32));\n\t\tlabel.setHorizontalAlignment(JXLabel.LEFT);\n\t\tlabel.setBackgroundPainter(getPainter());\n\n\t\t// tweak with the UI defaults for the taskpane and taskpanecontainer\n\t\tchangeUIdefaults();\n\n\t\t// create a taskpanecontainer\n\t\tJXTaskPaneContainer taskpanecontainer = new JXTaskPaneContainer();\n\n\t\t// create a taskpane, and set it's title and icon\n\t\tJXTaskPane taskpane = new JXTaskPane();\n\t\ttaskpane.setTitle(\"My Tasks\");\n\t\ttaskpane.setIcon(Images.Quit.getIcon(24, 24));\n\n\t\t// add various actions and components to the taskpane\n\t\ttaskpane.add(label);\n\t\ttaskpane.add(new AbstractAction() {\n\t\t\tprivate static final long serialVersionUID = -7314920635669764914L;\n\t\t\t{\n\t\t\t\tputValue(Action.NAME, \"task pane item 2 : an action\");\n\t\t\t\tputValue(Action.SHORT_DESCRIPTION, \"perform an action\");\n\t\t\t\tputValue(Action.SMALL_ICON,\n\t\t\t\t\t\tImages.NetworkConnected.getIcon(32, 32));\n\t\t\t}\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"an action performed\");\n\t\t\t}\n\t\t});\n\n\t\t// add the task pane to the taskpanecontainer\n\t\ttaskpanecontainer.add(taskpane);\n\n\t\t// set the transparency of the JXPanel to 50% transparent\n\t\tpanel.setAlpha(0.7f);\n\n\t\tpanel.add(taskpanecontainer, BorderLayout.CENTER);\n\t\tpanel.setPreferredSize(new Dimension(250, 200));\n\n\t\treturn panel;\n\t}", "private static void createAndShowGUI() {\n\t\t//creating the GUI\n\t\tPhotoViewer myViewer = new PhotoViewer();\n\n\t\t//setting the title\n\t\tmyViewer.setTitle(\"Cameron Chiaramonte (ccc7sej)\");\n\n\t\t//making sure it will close when the x is clicked\n\t\tmyViewer.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//calling the method to add the components to the pane and then making it visible\n\t\tmyViewer.addComponentsToPane(myViewer.getContentPane());\n\t\tmyViewer.pack();\n\t\tmyViewer.setVisible(true);\n\t}", "public MainContentPane() {\r\n\t\tsuper();\r\n\r\n\t\t// Add design-time configured components.\r\n\t\tinitComponents();\r\n\t}", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }", "private Pane createFilePane(File file) {\n\t\tint lineCtr = 0;\n\t\tint maxLineLength = 0;\n\t\ttry {\n\t\t\tScanner scanner = new Scanner(file);\n\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\tString line = scanner.nextLine();\n\t\t\t\tmaxLineLength = Math.max(maxLineLength, line.length());\n\t\t\t\tlineCtr++;\n\t\t\t}\n\t\t\tscanner.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tdouble paneHeight = 0;;\n\t\tdouble paneWidth = 0;;\n if (Arrays.stream(dimensionDisplayFilenameFilter).anyMatch(file.getName().toLowerCase()::equals)\n \t\t|| dimensionDisplayExtensionFilter == null \n \t\t|| dimensionDisplayExtensionFilter.length == 0 \n \t\t|| Arrays.stream(dimensionDisplayExtensionFilter).anyMatch(FilenameUtils.getExtension(file.getName().toLowerCase())::equals)\n \t\t) {\n \t// extension is in dimensionDisplayExtensionFilter\n \t\tpaneHeight = lineCtr;\n \t\tpaneWidth = maxLineLength; \t\n } else {\n \t// extension is not in dimensionDisplayExtensionFilter\n \t\tpaneHeight = 12;\n \t\tpaneWidth = 50; \n }\n\t\t\n\t\tPane newPane = new Pane();\n\t\tnewPane.setPrefSize(paneWidth, paneHeight);\n\t\tnewPane.setMaxSize(paneWidth, paneHeight);\n\t\tnewPane.setStyle(\"-fx-background-color: rgba(\" + randomizer.nextInt(255) + \", \" + randomizer.nextInt(255)\n\t\t+ \", \" + randomizer.nextInt(255) + \", 0.5); -fx-background-radius: 10;\");\n\n\t\t// add label\n\n\t\t// Label newLabel = new Label(file.getName() + \"\\n\" + (int)paneHeight + \"x\" + (int)paneWidth);\n\t\tLabel newLabel = new Label(file.getName() + \" \" + (int)paneHeight + \"x\" + (int)paneWidth);\n\t\tnewLabel.setTextAlignment(TextAlignment.RIGHT);\n\t\tnewLabel.setFont(new Font(8.0f));\n\t\tnewLabel.setVisible(showFilenames);\n\n\t\t// centering label in pane:\n\t\t// https://stackoverflow.com/questions/36854031/how-to-center-a-label-on-a-pane-in-javafx\n\t\t//newLabel.layoutXProperty().bind(newPane.widthProperty().subtract(newLabel.widthProperty()).divide(2));\n\t\tnewLabel.layoutYProperty().bind(newPane.heightProperty().subtract(newLabel.heightProperty()).divide(2));\n\n\t\tnewPane.getChildren().add(newLabel);\n\n\n\t\t\n\t\tbindTooltip(newPane, tooltip);\n\t\tbindTooltip(newLabel, tooltip);\n\n\n\n\n\t\treturn newPane;\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"Scene.fxml\"));\n primaryStage.setTitle(\"Project 3\");\n primaryStage.setScene(new Scene(root, 600, 600));\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n // Loads the Home view\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml/Home.fxml\"));\n\n primaryStage.setTitle(\"To-Do Manager\"); // Sets the title of the window\n\n // Sets the Home view as the first scene\n Scene scene = new Scene(root, 854, 480);\n\n // Sets the window's scene\n primaryStage.setScene(scene);\n\n // Prevents user from resizing window ( because of UI reasons )\n primaryStage.setResizable(false);\n\n // Displays the window\n primaryStage.show();\n }", "public static StackPane getGamePane() {\n\t\tif (gamePane == null) {\n\t\t\tinitScene();\n\t\t}\n\t\treturn gamePane;\n\t}", "@Override\n public void start(Stage primaryStage) {\n\n pStage = primaryStage;\n\n try {\n\n\n Parent root = FXMLLoader.load(getClass().getResource(\"/GUI.fxml\"));\n\n Scene scene = new Scene(root, 600, 400);\n\n primaryStage.setTitle(\"Shopper 5000 Ultimate\");\n\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.show();\n\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public void pridajPane() {\n\t\tmojPane.setAlignment(Pos.CENTER);\n\n\t\tmojPane.getChildren().addAll(informacia, vyberPredmetov, tabulkaZiak);\n\t}", "@Override\r\n\tpublic Scene createScene(Stage stage) {\n\t\tAnchorPane anchor = new AnchorPane();\r\n\t\tanchor.setPadding(new Insets(10, 10, 10, 10));\r\n\t\t\t\t\r\n\t\t//Screen Title displayed and anchored at top\r\n\t\tLabel titleText = new Label(\"Create Your Playlist\");\r\n\t\ttitleText.getStyleClass().add(\"label-title\");\r\n\t\ttitleText.setAlignment(Pos.CENTER);\r\n\t\tVBox titleBox = new VBox();\r\n\t\ttitleBox.setPadding(new Insets(15, 10, 10, 10));\r\n\t\ttitleBox.getChildren().add(titleText);\r\n\t\ttitleBox.setAlignment(Pos.CENTER_LEFT);\r\n\t\t//set theme, if applicable\r\n\t\tString theme = gd.getLobby().getTheme();\r\n\t\tif (!theme.equals(\"\")) {\r\n\t\t\tLabel themeLabel = new Label(\"Theme: \" + theme);\r\n\t\t\tthemeLabel.setAlignment(Pos.CENTER_LEFT);\r\n\t\t\tthemeLabel.setPadding(new Insets(0, 10, 10, 10));\r\n\t\t\ttitleBox.getChildren().add(themeLabel);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tAnchorPane.setTopAnchor(titleBox, null);\r\n\t\t\r\n\t\t//Get names of all mp3s\r\n\t\tFile folder = new File(System.getProperty(\"user.dir\") + \"/bin/resources/Songs\");\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\r\n\t for (int i = 0; i < listOfFiles.length; i++) {\r\n\t if (listOfFiles[i].isFile() && listOfFiles[i].getName().contains(\".mp3\")) {\r\n\t String[] parts = listOfFiles[i].getName().split(\"-\");\r\n\t Song s = new Song(parts[0].substring(0,parts[0].length()-1), parts[1].substring(1, parts[1].length()-4));\r\n\t allSongs.add(s);\r\n\t }\r\n\t }\r\n\t\t\r\n\t\t//Search Box and Results displayed in Center anchor with Playlist and Add Button\r\n\t\tVBox leftVBox = addLeftVBox(songs);\r\n\t\tVBox rightVBox = addRightVBox();\r\n\t\tVBox nameVBox = addNameVBox();\r\n\t\tVBox centerVBox = new VBox();\r\n\t\tButton addButton = new Button();\r\n\t\taddButton.setText(\"Add Song\");\r\n\t\taddButton.setPrefWidth(150.0);\r\n\t\t\t//Add Song Button Functionality\r\n\t\taddButton.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\tpublic void handle(ActionEvent e) {\r\n\t\t\t\tSong selectedSong = searchResults.getSelectionModel().getSelectedItem();\r\n\t\t\t\tif (selectedSong != null && numSongs < maxSongs) {\r\n\t\t\t\t\tmySongs.add(selectedSong);\r\n\t\t\t\t\tnumSongs++;\r\n\t\t\t\t}\r\n\t\t\t\tif (selectedSong != null)\r\n\t\t\t\t\tsetPlaylistMade();\r\n\t\t\t}\r\n\t\t});\r\n\t\t//Delete Song button and Functionality\r\n\t\tButton delButton = new Button();\r\n\t\tdelButton.setText(\"Delete Song\");\r\n\t\tdelButton.setPrefWidth(150.0);\r\n\t\tdelButton.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\tpublic void handle(ActionEvent e) {\r\n\t\t\t\tif (playlist.getSelectionModel().getSelectedIndex() != -1) {\r\n\t\t\t\t\tmySongs.remove(playlist.getSelectionModel().getSelectedIndex());\r\n\t\t\t\t\tnumSongs--;\r\n\t\t\t\t\tdecrementPlayistLength();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcenterVBox.getChildren().addAll(addButton, delButton);\r\n\t\tcenterVBox.setSpacing(10.0);\r\n\t\tcenterVBox.setAlignment(Pos.CENTER);\r\n\t\tGridPane inputGrid = new GridPane();\r\n\t\tinputGrid.setHgap(20.0);\r\n\t\tinputGrid.setVgap(10.0);\r\n\t\tinputGrid.setPadding(new Insets(10, 10, 10, 10));\r\n\t\tGridPane.setConstraints(leftVBox, 0, 1, 3, 4, null, null, null, null, null); // Bridget moved this down by 1\r\n\t\tGridPane.setConstraints(centerVBox, 3, 3, 2, 1, null, null, null, null, null);\r\n\t\tGridPane.setConstraints(nameVBox, 6, 0, 3, 1, null, null, null, null, null);\r\n\t\tGridPane.setConstraints(rightVBox, 6, 1, 3, 4, null, null, null, null, null);\r\n\t\tinputGrid.getChildren().addAll(leftVBox, centerVBox, rightVBox, nameVBox);\r\n\t\t\r\n\t\tAnchorPane.setLeftAnchor(inputGrid, 10.0);\r\n\t\tAnchorPane.setRightAnchor(inputGrid, 10.0);\r\n\t\tAnchorPane.setTopAnchor(inputGrid, 100.0);\r\n\t\tAnchorPane.setBottomAnchor(inputGrid, 100.0);\r\n\t\t\r\n\t\t\r\n\t\t// Button to Save playlist anchored to bottom right of page\r\n\t\tsaveButton = new Button();\r\n\t\tsaveButton.setText(\"Save Playlist\");\r\n\t\tsaveButton.setDisable(true);\r\n\t\t\r\n\t\tsaveButton.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\tpublic void handle(ActionEvent e) {\r\n\t\t\t\tplayerName = playerNameField.getText();\r\n\t\t\t\tplaylistName = playlistNameField.getText();\r\n\t\t\t\tif (!playerName.equals(\"\") && !playlistName.equals(\"\")) { //if the player name AND playlist name field is filled\r\n\t\t\t\t\tnotifyObserver(\"listen\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tPlaylist p = new Playlist(playlistNameField.getText());\r\n\t\t\t\t\tfor (Song s : mySongs) {\r\n\t\t\t\t\t\tp.addSong(s);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tPlayer player = new Player(playerNameField.getText());\r\n\t\t\t\t\tplayer.setPlaylist(p);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// send playlist to another class\r\n\t\t\t\t\tgd.update(player);\r\n\t\t\t\t\tnotifyObserver(\"listen\");\r\n\t\t\t\t}\r\n\t\t\t\telse if (playerName.equals(\"\") && playlistName.equals(\"\")) { //no player name and no playlist name\r\n\t\t\t\t\tString msg = \"You are missing the player name and playlist name. Please fill them out before moving forward.\";\r\n\t\t\t\t\tinformPlayerOfMissingFields(msg);\r\n\t\t\t\t}\r\n\t\t\t\telse if (playerName.equals(\"\")) { //no player name\r\n\t\t\t\t\tString msg = \"You are missing the player name. Please fill it out before moving forward.\";\r\n\t\t\t\t\tinformPlayerOfMissingFields(msg);\r\n\t\t\t\t}\r\n\t\t\t\telse { //no playlist name\r\n\t\t\t\t\tString msg = \"You are missing the playlist name. Please fill it out before moving forward.\";\r\n\t\t\t\t\tinformPlayerOfMissingFields(msg);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tAnchorPane.setBottomAnchor(saveButton, 20.0);\r\n\t\tAnchorPane.setRightAnchor(saveButton, 20.0);\r\n\t\t\r\n\t\tanchor.getChildren().addAll(titleBox, inputGrid, saveButton);\r\n\t\t\r\n\t\tScene cpScene = new Scene(anchor, 275, 250);\r\n\r\n\t\tcpScene.getStylesheets().add(\"application/application.css\");\r\n\t\treturn cpScene;\r\n\t}", "public void inicializar(String name,Pane paneContenido) {\n\t\t\n\t\tthis.paneContenido = paneContenido;\n\t\tstage=new Stage();\n\t\tstage.setScene(new Scene(paneContenido));\n\t\tstage.setTitle(name);\n\t\tnodos=new HashMap<>();\n\t\tmodificarBanner(\"views/imagenes/banner.jpg\");\n\t}", "public Pane getPane() {\n\t\treturn pane;\n\t}", "private void openDecisionPane() {\n\t\tParent root;\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(DECISIONPANELOCATION));\n\t\t\tloader.setController(this);\n\t\t\troot = loader.load();\n\t\t\tScene scene = new Scene(root);\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.show();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "@Override\n public void start(Stage primaryStage) throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"/MainMenuLayout.fxml\"));\n primaryStage.setTitle(\"Pairs\");\n primaryStage.setMinHeight(600);\n primaryStage.setMinWidth(600);\n primaryStage.setScene(new Scene(root));\n primaryStage.show();\n }", "public void initRootLayout(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n Scene scene = new Scene(rootLayout);\n \n primaryStage.setScene(scene);\n \n RootLayoutController controller = loader.getController();\n controller.setGame(this);\n \n primaryStage.show(); \n showCreateNewPlayer();\n }catch(IOException e){\n }\n }", "private void initPane(Container pane){\n\n\t\tif(!(pane.getLayout() instanceof BorderLayout)){\n\t\t\tpane.add(new JLabel(\"Container doesn't use BorderLayout!\"));\n\t\t\treturn;\n\t\t}\n\n\t\tpane.setBackground(Color.DARK_GRAY);\n\n\t\tif(!DEVELOPMENT_MODE){\n\t\t\t// Transparent 16 x 16 pixel cursor image\n\t\t\tBufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);\n\t\t\t// Create a new blank cursor\n\t\t\tCursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(cursorImg, new Point(0, 0), \"blank cursor\");\n\t\t\t// Set the blank cursor to the JFrame\n\t\t\tpane.setCursor(blankCursor);\n\t\t}\n\n//\t\tWebcam webcam = Webcam.getDefault();\n//\t\twebcam.setViewSize(WebcamResolution.QVGA.getSize());\n\n//\t\twebcamPanel = new WebcamPanel(webcam);\n//\t\twebcamPanel.setFPSDisplayed(true);\n//\t\twebcamPanel.setDisplayDebugInfo(true);\n//\t\twebcamPanel.setImageSizeDisplayed(true);\n//\t\twebcamPanel.setFPSLimit(FRAMERATE);\n//\n//\t\tpane.add(webcamPanel);\n//\n//\t\twebcamPanel.add(new JLabel(\"Hello world!\"));\n\n\t\tvideoContainer = new JLabel((ImageIcon)null); // Will be initialised later\n\t\tvideoContainer.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tvideoContainer.setFont(FONT);\n\t\tvideoContainer.setForeground(new Color(0xff6655));\n\t\tvideoContainer.setText(\"Camera error!\");\n\n\t\tpane.add(videoContainer);\n\n\t}", "private JComponent buildContentPane() {\r\n contentPane = new ContentPanel(new BorderLayout());\r\n contentPane.add(buildToolBar(), BorderLayout.NORTH);\r\n contentPane.add(buildMainPanel(), BorderLayout.CENTER);\r\n return contentPane;\r\n }", "private void configureScene() {\n uiController.setTitle(resources.getString(\"Launch\"));\n BorderPane sp = new BorderPane();\n this.fileLoadButton = new Button();\n sp.setCenter(fileLoadButton);\n sp.setTop(createSettings());\n fileLoadButton.setText(resources.getString(\"LoadSimulationXML\"));\n fileLoadButton.setOnAction(event -> uiController.loadNewSimulation());\n sp.setPrefWidth(width);\n sp.setPrefHeight(height);\n renderNode(sp);\n }", "ViewContainer createViewContainer();", "public static void newUAV(){\n GridPane gp = new GridPane();\n Text title = new Text(\"Create a UAV:\\nUAV Settings\");\n title.setTextAlignment(TextAlignment.CENTER);\n title.setId(\"title\"); // Set CSS style for the title\n GridPane.setColumnSpan(title,3);\n GridPane.setHalignment(title, HPos.CENTER);\n\n gp.setId(\"gridpane\"); // Set CSS style ID for the gridpane\n gp.getStyleClass().add(\"grid\");\n\n // Create the labels for the menu\n Label nameLabel = new Label(\"Name:\");\n Label weightLabel = new Label(\"Weight (g):\");\n Label turnRadiusLabel = new Label(\"Turn Radius (m):\");\n Label maxInclineLabel = new Label(\"Max incline angle (deg):\");\n Label batteryLabel = new Label(\"Battery Type:\");\n Label batteryCapacityLabel = new Label(\"Battery Capacity (mAh):\");\n\n name.setPromptText(\"Name of craft\");\n weight.setPromptText(\"Weight of craft\");\n turnRadius.setPromptText(\"Min turn radius of craft\");\n maxIncline.setPromptText(\"Max incline/decline angle\");\n battery.setPromptText(\"Battery used in craft (Lipo, NiMH, Li-ion...)\");\n batteryCapacity.setPromptText(\"Battery capacity in mAh\");\n\n // Create the buttons for the menu\n Button save = new Button(\"Save\");\n Button cancel = new Button(\"Cancel\");\n Button clear = new Button(\"Clear\");\n\n // Add all elements to the menu gridpane\n gp.add(title,0,0);\n\n // Add the components to the menu gridpane\n gp.add(nameLabel,0,1);\n gp.add(weightLabel,0,2);\n gp.add(turnRadiusLabel,0,3);\n gp.add(maxInclineLabel,0,4);\n gp.add(batteryLabel,0,5);\n gp.add(batteryCapacityLabel,0,6);\n\n gp.add(name,1,1);\n gp.add(weight,1,2);\n gp.add(turnRadius,1,3);\n gp.add(maxIncline,1,4);\n gp.add(battery,1,5);\n gp.add(batteryCapacity,1,6);\n\n // Add the buttons to the menu\n gp.add(save,0,7);\n gp.add(cancel,2,7);\n gp.add(clear,1,7);\n\n gp.setHgap(10);\n gp.setVgap(20);\n gp.setAlignment(Pos.CENTER);\n\n // If the save button is pressed\n save.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n // If a name has not been set\n if(name.getText().isEmpty()){\n System.out.println(\"Missing name for UAV\");\n }else {\n File file = new File(\"src/uavs/\"+name.getText()+\".uav\");\n if(file.exists()){\n dialogMessage.setText(\"The filename \"+ name.getText() +\n \".uav already exists in \"+path+\".\\n Would you like to overwrite?\");\n dialog.show();\n }else {\n writeUAV(); // Write the UAV settings\n createStage.close();\n }\n }\n }\n });\n\n // Close the menu\n cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n createStage.close();\n }\n });\n\n // Clear all text fields\n clear.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n name.clear();\n weight.clear();\n turnRadius.clear();\n maxIncline.clear();\n battery.clear();\n batteryCapacity.clear();\n }\n });\n\n createScene = new Scene(gp,500,700);\n createScene.setUserAgentStylesheet(\"style/menus.css\"); // Set the style of the menu\n createStage.setScene(createScene);\n createStage.show();\n }", "private void initComponents() {\n\n scenePanel = new javax.swing.JPanel();\n\n setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.PAGE_AXIS));\n\n scenePanel.setLayout(new javax.swing.BoxLayout(scenePanel, javax.swing.BoxLayout.LINE_AXIS));\n add(scenePanel);\n }", "@Override\n public JComponent createPane() {\n\n JSplitPane jSplitPane = new JSplitPane();\n\n jSplitPane.setLeftComponent(new JButton(\"左边按钮\"));\n jSplitPane.setRightComponent(new JButton(\"右边按钮\"));\n\n jSplitPane.setOneTouchExpandable(false);\n\n jSplitPane.setContinuousLayout(false);\n jSplitPane.setDividerLocation(150);\n\n// jPanel.add(jSplitPane);\n return jSplitPane;\n }", "public NavigatorPane() {\n _initNewLayer(_symbolLayer);\n _rebuildLayerArray();\n }", "@Override\n public void start(Stage stage) {\n\n ModelImpl model = new ModelImpl(PuzzleLibrary.create());\n ControllerImpl controller = new ControllerImpl(model);\n Clues clues = model.GetClues();\n PuzzelView puzzle = new PuzzelView(controller, model, stage);\n model.addObserver(puzzle);\n stage.setScene(puzzle.getScene());\n stage.show();\n\n // GridPane g = new GridPane();\n // Scene scene = new Scene(g, 1000, 1000);\n // scene.getStylesheets().add(\"style/stylesheet.css\");\n // stage.setScene(scene);\n\n }", "public Scene setSigninScene() {\n\t\tBorderPane newUserbp = new BorderPane();\n\n\t\tGridPane createUserGP = new GridPane();\n\t\tcreateUserGP.setPadding(new Insets(20));\n\t\tcreateUserGP.setVgap(10);\n\t\tcreateUserGP.setHgap(20);\n\n\t\tLabel createUser = new Label(\"Write username, min. 4 letters\");\n\t\tTextField usernameInput = new TextField();\n\t\tButton newUserBtn = new Button(\"Create\");\n\t\tButton goBackBtn = new Button(\"Login page\");\n\n\t\tcreateUserGP.add(createUser, 0, 1);\n\t\tcreateUserGP.add(usernameInput, 0, 2);\n\t\tcreateUserGP.add(newUserBtn, 0, 3);\n\t\tcreateUserGP.add(goBackBtn, 2, 3);\n\t\tcreateUserGP.add(userMsg, 0, 0);\n\n\t\tnewUserBtn.setOnAction(e -> {\n\t\t\tString username = usernameInput.getText();\n\t\t\tif (usernameInput.getText().length() <= 3) {\n\t\t\t\tuserMsg.setTextFill(Color.RED);\n\t\t\t\tuserMsg.setText(\"Username is too short, try again\");\n\t\t\t\tusernameInput.setText(\"\");\n\t\t\t} else if (hs.createUser(username)) {\n\t\t\t\tuserMsg.setTextFill(Color.GREEN);\n\t\t\t\tuserMsg.setText(\"New user created successfully, now login!\");\n\t\t\t\tstage.setScene(setLoginScene());\n\t\t\t\tusernameInput.setText(\"\");\n\t\t\t} else {\n\t\t\t\tuserMsg.setTextFill(Color.RED);\n\t\t\t\tuserMsg.setText(\"Username isn't available, try again.\");\n\t\t\t\tusernameInput.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tgoBackBtn.setOnAction(e -> stage.setScene(loginScene));\n\n\t\tnewUserbp.setTop(new Text(\"Create New Username\"));\n\t\tnewUserbp.setCenter(createUserGP);\n\n\t\tnewUserScene = new Scene(newUserbp);\n\n\t\treturn this.newUserScene;\n\t}", "public PagePane() {\n instance = this;\n u = CommonUtil.getInstance();\n toolBar = ToolBar.getInstance();\n MsgBoard.getInstance().subscribe(this);\n generalModel = (GeneralModel) GeneralEditor.getInstance().getModel();\n gridModel = (GridModel) GridEditor.getInstance().getModel();\n model = new PageModel();\n mousePt = new Point(generalModel.getWidth() / 2, generalModel.getHeight() / 2);\n canvasWidth = Builder.CANVAS_WIDTH;\n canvasHeight = Builder.CANVAS_HEIGHT;\n this.addMouseListener(new MouseHandler());\n this.addMouseMotionListener(new MouseMotionHandler());\n this.addKeyListener(new DeleteKeyListener());\n this.setLocation(0, 0);\n this.setOpaque(true);\n this.setFocusable( true ); \n this.setBorder(BorderFactory.createLineBorder(Color.black));\n this.setVisible(true);\n bZoom = true;\n }", "public Pane buildGuiInDerSchonzeit() {\n\t\tVBox root = new VBox(10); \r\n\t\t// Der Hintergrund des GUI wird mit einem Transparenten Bild erstellt\r\n\t\tImage imageBackground = new Image(getClass().getResource(\"transparent.png\").toExternalForm()); // Ein Image wird erstellt und das Bild übergeben\r\n\t\tBackgroundImage backgroundImage = new BackgroundImage(imageBackground, BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, BackgroundSize.DEFAULT);\r\n\t\tBackground background = new Background(backgroundImage); // Ein Background wird ertsellt und das Bild übergeben\r\n\t\troot.setBackground(background); // Der Hintergrund mit dem Bild wird dem root übergeben\r\n\t\t\r\n\t\t//\r\n\t\t// // Allse verschiedenen Boxen werden erstellt\r\n\t\t//\r\n\t\t\r\n\t\t// HBox für die erste Spalte\r\n\t\tHBox hBoxSpalte1 = new HBox(190);\r\n\t\t// 2mal VBox um Button und Text anzuzeigen \r\n\t\tVBox vBox1Spalte1 = new VBox();\r\n\t\tVBox vBox2Spalte1 = new VBox();\r\n\t\t\r\n\t\t// HBox für 2. Spalte\r\n\t\tHBox hBoxSpalte2 = new HBox(190);\r\n\t\t// 2 VBoxen für Bild und Text\r\n\t\tVBox vbox1Spalte2 = new VBox();\r\n\t\tVBox vbox2Spalte2 = new VBox();\r\n\t\t\r\n\t\t// HBox für die 3.Spalte\r\n\t\tHBox hboxSpalte3 = new HBox(190);\r\n\t\t// 2mal VBox für Bild und Text\r\n\t\tVBox vbox1Spalte3 = new VBox();\r\n\t\tVBox vbox2Spalte3 = new VBox();\r\n\t\t\r\n\t\t// HBox für die 4 Spalte\r\n\t\tHBox hboxSpalte4 = new HBox(190);\r\n\t\t// 2mal VBox für Bild und Text\r\n\t\tVBox vbox1Spalte4 = new VBox();\r\n\t\tVBox vbox2Spalte4 = new VBox();\r\n\t\t\r\n\t\t//\r\n\t\t// Button für die Fische\r\n\t\t//\r\n\t\t\r\n\t\t//Label Bild für Hecht\r\n\t\tLabel hechtbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage hechtimage = new Image(getClass().getResource(\"Hecht.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\thechtbildLabel.setGraphic(new ImageView(hechtimage)); // Das Bild wird dem Label übergeben\r\n\t\thechtbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Zander\r\n\t\tLabel zanderbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage zanderImage = new Image(getClass().getResource(\"Zander.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tzanderbildLabel.setGraphic(new ImageView(zanderImage)); // Das Bild wird dem Label übergeben\r\n\t\tzanderbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Aal\r\n\t\tLabel aalbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage aalImage = new Image(getClass().getResource(\"Aal.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\taalbildLabel.setGraphic(new ImageView(aalImage)); // Das Bild wird dem Label übergeben\r\n\t\taalbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Aesche\r\n\t\tLabel aeschebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage aescheImage = new Image(getClass().getResource(\"Aesche.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\taeschebildLabel.setGraphic(new ImageView(aescheImage)); // Das Bild wird dem Label übergeben\r\n\t\taeschebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Barsch\r\n\t\tLabel barschbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage barschImage = new Image(getClass().getResource(\"Barsch.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tbarschbildLabel.setGraphic(new ImageView(barschImage)); // Das Bild wird dem Label übergeben\r\n\t\tbarschbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Forelle\r\n\t\tLabel forellebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage forelleImage = new Image(getClass().getResource(\"Regenbogenforelle.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tforellebildLabel.setGraphic(new ImageView(forelleImage)); // Das Bild wird dem Label übergeben\r\n\t\tforellebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Schleie\r\n\t\tLabel schleiebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage schleieImage = new Image(getClass().getResource(\"Schleie.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tschleiebildLabel.setGraphic(new ImageView(schleieImage)); // Das Bild wird dem Label übergeben\r\n\t\tschleiebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Karpfe\r\n\t\tLabel karpfenbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage karpfenImage = new Image(getClass().getResource(\"Schuppenkarpfen.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tkarpfenbildLabel.setGraphic(new ImageView(karpfenImage)); // Das Bild wird dem Label übergeben\r\n\t\tkarpfenbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// Label für die Titel der Fische\r\n\t\t//\r\n\t\t\r\n\t\t// Label Hecht\r\n\t\tLabel hechtlabel = new Label(\"Hecht\"); // Das Label mit dem Namen wird erstellt\r\n\t\thechtlabel.setFont(new Font(30)); // Die Schriftgrösse\r\n\t\thechtlabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t//Label Zander\r\n\t\tLabel zanderLabel = new Label(\"Zander\"); // DAs LAabel mit dem Namen wird erstellt\r\n\t\tzanderLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tzanderLabel.setTranslateX(160); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Aal\r\n\t\tLabel aaLabel = new Label(\"Aal\"); // Das Label mit dem Namen wird erstellt\r\n\t\taaLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\taaLabel.setTranslateX(200); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Aesche\r\n\t\tLabel aescheLabel = new Label(\"Äsche\"); // Das Label mit dem Namen wird erstellt\r\n\t\taescheLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\taescheLabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Barsch\r\n\t\tLabel barschLabel = new Label(\"Flussbarsch\"); // Das Label mit dem Namen wird erstellt\r\n\t\tbarschLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tbarschLabel.setTranslateX(130); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Forelle\r\n\t\tLabel forelleLabel = new Label(\"Forelle\"); // Das Label mit dem Namen wird erstellt\r\n\t\tforelleLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tforelleLabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Schleie\r\n\t\tLabel schleieLabel = new Label(\"Schleie\"); // Das Label mit dem Namen wird erstellt\r\n\t\tschleieLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tschleieLabel.setTranslateX(170); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Karpfe\r\n\t\tLabel karpfeLabel = new Label(\"Karpfe\"); // Das Label mit dem Namen wird erstellt\r\n\t\tkarpfeLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tkarpfeLabel.setTranslateX(170); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// Label für die Anzeige in der Schonzeit\r\n\t\t//\r\n\t\t\r\n\t\t// Label Schonzeit für Hecht\r\n\t\tLabel schonzeitHechtLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitHechtLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitHechtLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Zander\r\n\t\tLabel schonzeitZanderLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitZanderLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitZanderLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Aal\r\n\t\tLabel schonzeitaaLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitaaLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitaaLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Aesche\r\n\t\tLabel schonzeitaescheLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitaescheLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitaescheLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Barsch\r\n\t\tLabel schonzeitbarschLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitbarschLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitbarschLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Forelle\r\n\t\tLabel schonzeitforelleLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitforelleLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitforelleLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Schleie\r\n\t\tLabel schonzeitschleieLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitschleieLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitschleieLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Karpfe\r\n\t\tLabel schonzeitkarpfeLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitkarpfeLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitkarpfeLabel.setTranslateX(140); // X-Achse im root\r\n\r\n\t\t\r\n\t\t// Das Label für die überschrift\r\n\t\tLabel fischeAuswahlLabel = new Label(\"Fische und Ihre Schonzeit\"); // Das Label wird mit dem Namen erstellt\r\n\t\tfischeAuswahlLabel.setFont(new Font(40)); // Schriftgrösse\r\n\t\tfischeAuswahlLabel.setTranslateX(10); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// // Buttons werden erstellt\r\n\t\t//\r\n\t\t\r\n\t\t// Button zurück Hauptmenu\r\n\t\tButton hauptmenuButton = new Button(\"Hauptmenü\"); // Button wird erstellt und Initialisiert\r\n\t\thauptmenuButton.setMinSize(200, 50); // Die Minimumgrösse wird gesetzt\r\n\t\thauptmenuButton.setTranslateX(345); // X- Achse des Buttons im root\r\n\t\thauptmenuButton.setFont(new Font(25)); // Schriftgrösse des Buttons\r\n\t\t// Zoom in und out wird hinzugefügt\r\n\t\tButtonHandling zoomButtonHandling = new ButtonHandling();\r\n\t\tzoomButtonHandling.zoomIn(hauptmenuButton);\r\n\t\tzoomButtonHandling.zoomOut(hauptmenuButton);\r\n\t\t// Funktion zurück ins Hauptmenü\r\n\t\thauptMenuAufrufen(hauptmenuButton);\r\n\t\t\r\n\t\t//\r\n\t\t// // Aktuelles Datum wird eingelesen um die Fische auf Ihre Schonzeit zu prüfen\r\n\t\t//\r\n\t\t\r\n\t\t// Aktueller Monat wird in der Variablen datumAktuell gespeichert.\r\n\t\tCalendar dateNow = Calendar.getInstance(); // Kalender wird erstellt\r\n\t\tint datum = dateNow.get(Calendar.MONTH) +1; // Der aktuelle Monat wird im Int Initialisiert. +1 Da die Monate ab 0 Beginnen\r\n\t\t// Datum Manuell setzten für Test und Debbug \r\n\t\t//int datum = 1;\r\n\t\t\r\n\t\t//\r\n\t\t// // Die einzelnen VBoxen für die Fische werden je nach Schonzeit gefüllt\r\n\t\t//\r\n\t\t\r\n\t\t// 1. Spalte und 1 Box\r\n\t\tvBox1Spalte1.getChildren().addAll(hechtlabel,hechtbildLabel);// Erste Linie und erste Spalte mit Bild und Text wird dem root übergeben\r\n\t\tif (datum >=1 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitHechtLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitHechtLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitHechtLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitHechtLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den entsprecheneden Einstellungen übergeben\r\n\t\tvBox1Spalte1.getChildren().add(schonzeitHechtLabel);\r\n\t\t\r\n\t\t// 1. Spalte und 2. Box\r\n\t\tvBox2Spalte1.getChildren().addAll(zanderLabel,zanderbildLabel); // Erste Linie und zweite Spalte mit Bild und Text wird dem root übergeben\r\n\t\tif (datum >= 1 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitZanderLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitZanderLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitZanderLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitZanderLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den entsprechenden Einstellungen übergeben\r\n\t\tvBox2Spalte1.getChildren().add(schonzeitZanderLabel);\r\n\t\t\r\n\t\t// 2. Spalte und 1. Box\r\n\t\tvbox1Spalte2.getChildren().addAll(aaLabel,aalbildLabel); // Zweite Linie erste Spalte mit Bild und Text\r\n\t\t// Der Aal hat keine Schonzeit\r\n\t\t\tschonzeitaaLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitaaLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den einstellungen übergeben\t\r\n\t\tvbox1Spalte2.getChildren().add(schonzeitaaLabel);\r\n\t\t\r\n\t\t// 2. Spalte und 2. Box\r\n\t\tvbox2Spalte2.getChildren().addAll(aescheLabel,aeschebildLabel); // Zweite Linie zweite Spalte mit Bild und Text\r\n\t\tif (datum >= 2 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitaescheLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitaescheLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitaescheLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitaescheLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\r\n\t\tvbox2Spalte2.getChildren().add(schonzeitaescheLabel);\r\n\t\t\r\n\t\t// 3. Spalte und 1. Box\r\n\t\tvbox1Spalte3.getChildren().addAll(barschLabel,barschbildLabel); // Dritte Linie erste Spalte mit Bild und Text\r\n\t\t// Der Barsch hat keine Schonzeit\r\n\t\t\tschonzeitbarschLabel.setText(\"keine Schonzeit\");\r\n\t\t\tschonzeitbarschLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox1Spalte3.getChildren().add(schonzeitbarschLabel);\r\n\t\t\r\n\t\t// 3. Spalte und 2. Box\r\n\t\tvbox2Spalte3.getChildren().addAll(forelleLabel,forellebildLabel); // Dritte Linie zweite Spalte mit Bild und Text\r\n\t\tif (datum >= 3 && datum <= 9) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitforelleLabel.setText(\"keine Schonzeit\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitforelleLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitforelleLabel.setText(\"hat Schonzeit !\"); // Die Schonzeit des Hechtes wird überprüft\r\n\t\t\tschonzeitforelleLabel.setTextFill(Color.RED); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\r\n\t\tvbox2Spalte3.getChildren().add(schonzeitforelleLabel);\r\n\t\t\r\n\t\t// 4. Spalte und 1. Box\r\n\t\tvbox1Spalte4.getChildren().addAll(schleieLabel,schleiebildLabel); // Vierte Linie erste Spalte mit Bild und Text\r\n\t\t// Die Schleie hat keien Schonzeit\r\n\t\t\tschonzeitschleieLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitschleieLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox1Spalte4.getChildren().add(schonzeitschleieLabel);\r\n\t\t\r\n\t\t// 4. Spalte und 2. Box\r\n\t\tvbox2Spalte4.getChildren().addAll(karpfeLabel,karpfenbildLabel); // Vierte Linie zweite Spalte mit Bild und Text\r\n\t\t// Der Karpfe hat keine Schonzeit\r\n\t\t\tschonzeitkarpfeLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitkarpfeLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox2Spalte4.getChildren().add(schonzeitkarpfeLabel);\r\n\t\t\r\n\t\t//\r\n\t\t// // Die einzelnen HBoxen werden gefüllt für die Spalten in der Root\r\n\t\t//\r\n\t\thBoxSpalte1.getChildren().addAll(vBox1Spalte1,vBox2Spalte1); // Die erste Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// HBox Spalte 2\r\n\t\thBoxSpalte2.getChildren().addAll(vbox1Spalte2,vbox2Spalte2); // Die zweite Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// Hbox Spalte 3\r\n\t\thboxSpalte3.getChildren().addAll(vbox1Spalte3,vbox2Spalte3); // Die dritte Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// Hbox Spalte 4\r\n\t\thboxSpalte4.getChildren().addAll(vbox1Spalte4,vbox2Spalte4); // Die vierte Spalte wird mit den zwei Boxen gefüllt\r\n\t\t\r\n\t\t// Elemente werden der HauptVBox root hinzugefügt\r\n\t\troot.getChildren().addAll(fischeAuswahlLabel,hBoxSpalte1,hBoxSpalte2,hboxSpalte3,hboxSpalte4,hauptmenuButton); // Alle gefüllten Boxen werden der Hauptbox übergeben\r\n\t\t\r\n\t\t// Das root wird zurückgegeben um Angezeigt zu werden\r\n\t\treturn root;\r\n\t}", "@Override\r\n public void start(Stage primaryStage) throws Exception{\n primaryStage.setTitle(\"Color switch\");\r\n Gameplay obj1 = new Gameplay();\r\n obj1.mainmenu(primaryStage);\r\n// pane.getChildren().add(new Polygon(10,20,30,10,20,30));\r\n\r\n }", "@Override\n public final void start(final Stage primaryStage) {\n Scene scene = new Scene(getPane(), PANE_WIDTH, PANE_HEIGHT);\n primaryStage.setTitle(\"Tic-Tak-Toe\"); // Set the stage title.\n primaryStage.setScene(scene); // Place the scene in the stage.\n primaryStage.show(); // Display the stage.\n }", "private void showCreateNewPlayer(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/CreateNewPlayer.fxml\"));\n AnchorPane janela = (AnchorPane) loader.load();\n \n Stage createNewPlayerStage = new Stage();\n createNewPlayerStage.setTitle(\"Create new player\");\n createNewPlayerStage.initModality(Modality.WINDOW_MODAL);\n createNewPlayerStage.initOwner(primaryStage);\n Scene scene = new Scene(janela);\n createNewPlayerStage.setScene(scene);\n \n CreateNewPlayerController controller = loader.getController();\n controller.setGame(this);\n controller.setCreateNewPlayerStage(createNewPlayerStage); \n \n createNewPlayerStage.showAndWait();\n }catch(IOException e){\n }\n }", "private void initComponents() {\n\t\tstage = new Stage();\n\t\tHBox root = new HBox();\n\t\troot.setPadding(new Insets(10));\n\t\troot.setAlignment(Pos.CENTER);\n\t\tlabel = new Label(\" \");\n\t\tlabel.setPrefWidth(144);\n\t\tlabel.setFont(new Font(\"Arial\", 80.0));\n\t\tlabel.setAlignment(Pos.CENTER);\n\t\troot.getChildren().add(label);\n\t\tScene scene = new Scene(root);\n\t\tstage.setScene(scene);\n\t\tstage.setTitle(\"Count Guest\");\n\t\tstage.sizeToScene();\n\t}", "@Override\r\n public void start(Stage primaryStage) {\n VFlow flow = FlowFactory.newFlow();\r\n\r\n // make it visible\r\n flow.setVisible(true);\r\n\r\n // create two nodes:\r\n // one leaf node and one subflow which is returned by createNodes\r\n createFlow(flow, 3, 6);\r\n\r\n // show the main stage/window\r\n showFlow(flow, primaryStage, \"VWorkflows Tutorial 05: View 1\");\r\n }", "public void createNewButtonClicked(){\n loadNewScene(apptStackPane, \"Create_New_Appointment.fxml\");\n }", "public void createWindow() throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"adminEditorWindow.fxml\"));\n AnchorPane root = (AnchorPane) loader.load();\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.setResizable(false);\n stage.setScene(scene);\n stage.setTitle(\"Administrative Password Editor\");\n stage.getIcons().add(new Image(\"resources/usm seal icon.png\"));\n stage.show();\n\t}", "private BorderPane initializeBorderPane() {\n BorderPane toReturn = new BorderPane();\n\n // Set menu pane\n HBox menu = addTopBox();\n toReturn.setTop(menu);\n\n // Set center pane\n gameMap = new CreatureControl();\n toReturn.setCenter(gameMap);\n\n // Set bottom pane\n HBox bottom = addBottomBox();\n toReturn.setBottom(bottom);\n\n // Roll the animation\n timeline.setCycleCount(Timeline.INDEFINITE);\n\n // Roll the track\n title.setCycleCount(MediaPlayer.INDEFINITE);\n gaming.setCycleCount(MediaPlayer.INDEFINITE);\n playBGM();\n\n return toReturn;\n }", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Pepoview.class.getResource(\"MainWindow.fxml\"));\n rootLayout = (SplitPane) loader.load(); \n \n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "public AStationPane() {\n }", "private Pane makeLanguageSelectionView(EventHandler<ActionEvent> splashScreenComboBoxEvent) {\n\t\tVBox pane = new VBox();\n\t\t\n\t\tpane.setSpacing(10);\n\t\t\n\t\tImage image = new Image(this.getClass().getResourceAsStream(UI_RESOURCE_LOCATION + \"logo\" + EXTENSION));\n\t\tImageView iv = new ImageView(image);\n\t\t\n\t\tpane.getChildren().addAll(iv, languageChoices(splashScreenComboBoxEvent), continueButton(splashScreenComboBoxEvent));\n\t\t\n\t\tpane.setAlignment(Pos.CENTER);\n\t\t\n\t\treturn pane;\n\t}", "private GridPane absencePane(){\n GridPane absencePane = new GridPane();\n \n Button menuButton = new Button(\"Back to employee menu\");\n menuButton.setOnAction(e->menu());\n \n absencePane.add(menuButton, 2,1);\n absencePane.setAlignment(Pos.CENTER);\n\n return absencePane;\n }" ]
[ "0.7228391", "0.7225631", "0.7032998", "0.6982305", "0.6957309", "0.6931978", "0.6808329", "0.67718387", "0.6734013", "0.67027444", "0.6628945", "0.66272837", "0.6595411", "0.6588124", "0.65791124", "0.65593684", "0.65334505", "0.65086657", "0.6502138", "0.649875", "0.6485599", "0.64795595", "0.6465466", "0.6438103", "0.64232284", "0.6389705", "0.63558364", "0.6342121", "0.63418067", "0.6339696", "0.63355374", "0.63320845", "0.6309048", "0.6290172", "0.6278746", "0.6270692", "0.62566847", "0.62371844", "0.6183309", "0.6182465", "0.61668336", "0.614523", "0.6119109", "0.61171055", "0.61134493", "0.610475", "0.6098704", "0.6093301", "0.60932463", "0.6077921", "0.60528153", "0.60478395", "0.60432047", "0.6027137", "0.6025883", "0.60255617", "0.60119736", "0.5996768", "0.5994267", "0.597336", "0.59725386", "0.5945561", "0.59441406", "0.591851", "0.5913269", "0.5909317", "0.58976716", "0.5894224", "0.58927345", "0.5891953", "0.5888954", "0.5885272", "0.5884427", "0.5883847", "0.58781195", "0.58774537", "0.58769506", "0.58747953", "0.58730555", "0.58695006", "0.5867526", "0.5862415", "0.58573484", "0.5854193", "0.5853574", "0.5849215", "0.5848986", "0.5848793", "0.5845112", "0.5844128", "0.5836342", "0.5834749", "0.5829629", "0.5809543", "0.57996756", "0.5796761", "0.57939905", "0.5776968", "0.5764775", "0.5762527" ]
0.5815953
93
Returns the BigField instance.
public static BigField getBigField() { return bigField; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BigFieldView getBigFieldView() {\n return view;\n }", "public static BigB getBigB()\r\n{\treturn bigB;\t\r\n}", "public BCField getField() {\n return (BCField) getOwner();\n }", "public static Field getInstance() {\n if (_instance == null) {\n _instance = new Field();\n }\n\n return _instance;\n }", "public final GF2nField getField()\n {\n return mField;\n }", "BigDecimal getFixedPointField();", "protected Field getField()\n {\n return field;\n }", "protected Field getField()\n {\n return field;\n }", "public DatabaseField getField() {\n return field;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.felania.msldb.MsgPriceOuterClass.MsgPrice, com.felania.msldb.MsgPriceOuterClass.MsgPrice.Builder, com.felania.msldb.MsgPriceOuterClass.MsgPriceOrBuilder> \n getPriceFieldBuilder() {\n if (priceBuilder_ == null) {\n priceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.felania.msldb.MsgPriceOuterClass.MsgPrice, com.felania.msldb.MsgPriceOuterClass.MsgPrice.Builder, com.felania.msldb.MsgPriceOuterClass.MsgPriceOrBuilder>(\n getPrice(),\n getParentForChildren(),\n isClean());\n price_ = null;\n }\n return priceBuilder_;\n }", "public BCField getField() {\n String dec = getFieldDeclarerName();\n if (dec == null) \n return null;\n\n BCClass bc = getProject().loadClass(dec, getClassLoader());\n BCField[] fields = bc.getFields(getFieldName());\n if (fields.length == 0)\n return null;\n return fields[0];\n }", "public Field getField() {\n return field;\n }", "public T getField()\r\n {\r\n return this.field;\r\n }", "BigInteger getReplacedByField();", "public static com.dj.model.avro.LargeObjectAvro.Builder newBuilder() {\n return new com.dj.model.avro.LargeObjectAvro.Builder();\n }", "@Override\n public GameField getField(){\n return this.gameField;\n }", "BIG createBIG();", "private com.google.protobuf.SingleFieldBuilder<\n org.adscale.format.opertb.AmountMessage.Amount, org.adscale.format.opertb.AmountMessage.Amount.Builder, org.adscale.format.opertb.AmountMessage.AmountOrBuilder> \n getExchangepriceFieldBuilder() {\n if (exchangepriceBuilder_ == null) {\n exchangepriceBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n org.adscale.format.opertb.AmountMessage.Amount, org.adscale.format.opertb.AmountMessage.Amount.Builder, org.adscale.format.opertb.AmountMessage.AmountOrBuilder>(\n getExchangeprice(),\n getParentForChildren(),\n isClean());\n exchangeprice_ = null;\n }\n return exchangepriceBuilder_;\n }", "public BCClass getFieldTypeBC() {\n String type = getFieldTypeName();\n if (type == null)\n return null;\n return getProject().loadClass(type, getClassLoader());\n }", "public BitmapField getBitmapField() {\n\t\treturn bitmapField;\n\t}", "public java.math.BigDecimal getField_737();", "com.google.protobuf.ByteString\n getField1024Bytes();", "public com.google.protobuf.ByteString\n getField1024Bytes() {\n java.lang.Object ref = field1024_;\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 field1024_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf2.Any, com.google.protobuf2.Any.Builder, com.google.protobuf2.AnyOrBuilder> \n getObjectFieldBuilder() {\n if (objectBuilder_ == null) {\n objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf2.Any, com.google.protobuf2.Any.Builder, com.google.protobuf2.AnyOrBuilder>(\n getObject(),\n getParentForChildren(),\n isClean());\n object_ = null;\n }\n return objectBuilder_;\n }", "String getBlobField();", "Object getObjectField();", "@SuppressWarnings(\"unchecked\")\n\tdefault Object getFieldValue(F field) {\n\t\t// piggyback on pull (from self)\n\t\treturn pull(field, (C) this, FieldGraph.noneOf(getFieldsClass()));\n\t}", "private com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Amount, io.lightcone.data.types.Amount.Builder, io.lightcone.data.types.AmountOrBuilder> \n getAmountFFieldBuilder() {\n if (amountFBuilder_ == null) {\n amountFBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Amount, io.lightcone.data.types.Amount.Builder, io.lightcone.data.types.AmountOrBuilder>(\n getAmountF(),\n getParentForChildren(),\n isClean());\n amountF_ = null;\n }\n return amountFBuilder_;\n }", "public BigInt getBigInt() {\n if (this.nativeIsValid) {\n return this.bigInt;\n }\n synchronized (this) {\n if (this.nativeIsValid) {\n return this.bigInt;\n }\n BigInt bigInt2 = new BigInt();\n bigInt2.putLittleEndianInts(this.digits, this.sign < 0);\n setBigInt(bigInt2);\n return bigInt2;\n }\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n DerivedFeatureConfig, DerivedFeatureConfig.Builder, DerivedFeatureConfigOrBuilder>\n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n DerivedFeatureConfig, DerivedFeatureConfig.Builder, DerivedFeatureConfigOrBuilder>(\n getConfig(),\n getParentForChildren(),\n isClean());\n config_ = null;\n }\n return configBuilder_;\n }", "public static com.dj.model.avro.LargeObjectAvro.Builder newBuilder(com.dj.model.avro.LargeObjectAvro other) {\n return new com.dj.model.avro.LargeObjectAvro.Builder(other);\n }", "public com.google.protobuf.ByteString\n getField1024Bytes() {\n java.lang.Object ref = field1024_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1024_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public RecordField getField() {\n return field;\n }", "FieldInstance fieldNamed(String name);", "Field_decl getField();", "public static com.dj.model.avro.LargeObjectAvro.Builder newBuilder(com.dj.model.avro.LargeObjectAvro.Builder other) {\n return new com.dj.model.avro.LargeObjectAvro.Builder(other);\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message, org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Builder, org.graylog.plugins.dnstap.protos.DnstapOuterClass.MessageOrBuilder>\n getMessageFieldBuilder() {\n if (messageBuilder_ == null) {\n messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message, org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Builder, org.graylog.plugins.dnstap.protos.DnstapOuterClass.MessageOrBuilder>(\n getMessage(),\n getParentForChildren(),\n isClean());\n message_ = null;\n }\n return messageBuilder_;\n }", "FieldRefType createFieldRefType();", "private com.google.protobuf.SingleFieldBuilderV3<\n POGOProtos.Rpc.PokemonDisplayProto, POGOProtos.Rpc.PokemonDisplayProto.Builder, POGOProtos.Rpc.PokemonDisplayProtoOrBuilder> \n getPokemonDisplayFieldBuilder() {\n if (pokemonDisplayBuilder_ == null) {\n pokemonDisplayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n POGOProtos.Rpc.PokemonDisplayProto, POGOProtos.Rpc.PokemonDisplayProto.Builder, POGOProtos.Rpc.PokemonDisplayProtoOrBuilder>(\n getPokemonDisplay(),\n getParentForChildren(),\n isClean());\n pokemonDisplay_ = null;\n }\n return pokemonDisplayBuilder_;\n }", "ObjectField createObjectField();", "private com.google.protobuf.SingleFieldBuilder<\n messages.Databaseinterface.DatabaseInterface, messages.Databaseinterface.DatabaseInterface.Builder, messages.Databaseinterface.DatabaseInterfaceOrBuilder> \n getDatabaseFieldBuilder() {\n if (databaseBuilder_ == null) {\n databaseBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n messages.Databaseinterface.DatabaseInterface, messages.Databaseinterface.DatabaseInterface.Builder, messages.Databaseinterface.DatabaseInterfaceOrBuilder>(\n database_,\n getParentForChildren(),\n isClean());\n database_ = null;\n }\n return databaseBuilder_;\n }", "public FastHit.RawField fetchFieldAsUtf8(int fieldIndex) {\n DocsumField dataType = definition.getField(fieldIndex);\n if ( ! (dataType instanceof LongstringField || dataType instanceof XMLField || dataType instanceof StringField))\n return null;\n\n ByteBuffer b=packetAsBuffer();\n DocsumField field = definition.getField(fieldIndex);\n int fieldStart = setAndReturnOffsetToField(b, fieldIndex); // set buffer.pos = start of field\n if (field.isCompressed(b)) return null;\n int length = field.getLength(b); // scan to end of field\n if (field instanceof VariableLengthField) {\n int fieldLength = ((VariableLengthField) field).sizeOfLength();\n b.position(fieldStart + fieldLength); // reset to start of field\n length -= fieldLength;\n } else {\n b.position(fieldStart); // reset to start of field\n }\n byte[] bufferView = new byte[length];\n b.get(bufferView);\n return new FastHit.RawField(dataType, bufferView);\n }", "private com.google.protobuf.SingleFieldBuilder<\n Pokemon.Currency, Pokemon.Currency.Builder, Pokemon.CurrencyOrBuilder> \n getCurrencyFieldBuilder() {\n if (currencyBuilder_ == null) {\n currencyBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.Currency, Pokemon.Currency.Builder, Pokemon.CurrencyOrBuilder>(\n getCurrency(),\n getParentForChildren(),\n isClean());\n currency_ = null;\n }\n return currencyBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo,\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfoOrBuilder>\n getCloudSqlInstanceFieldBuilder() {\n if (cloudSqlInstanceBuilder_ == null) {\n if (!(stepInfoCase_ == 19)) {\n stepInfo_ =\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo.getDefaultInstance();\n }\n cloudSqlInstanceBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo,\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 19;\n onChanged();\n return cloudSqlInstanceBuilder_;\n }", "byte[] getByteArrayField();", "public FIELD toProtoValue(Object in) {\n return (FIELD) in;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n grpc.messages.Messages.Employee, grpc.messages.Messages.Employee.Builder, grpc.messages.Messages.EmployeeOrBuilder> \n getEmployeeFieldBuilder() {\n if (employeeBuilder_ == null) {\n employeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n grpc.messages.Messages.Employee, grpc.messages.Messages.Employee.Builder, grpc.messages.Messages.EmployeeOrBuilder>(\n getEmployee(),\n getParentForChildren(),\n isClean());\n employee_ = null;\n }\n return employeeBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n grpc.messages.Messages.Employee, grpc.messages.Messages.Employee.Builder, grpc.messages.Messages.EmployeeOrBuilder> \n getEmployeeFieldBuilder() {\n if (employeeBuilder_ == null) {\n employeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n grpc.messages.Messages.Employee, grpc.messages.Messages.Employee.Builder, grpc.messages.Messages.EmployeeOrBuilder>(\n getEmployee(),\n getParentForChildren(),\n isClean());\n employee_ = null;\n }\n return employeeBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.InstanceInfo,\n com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.InstanceInfoOrBuilder>\n getInstanceFieldBuilder() {\n if (instanceBuilder_ == null) {\n if (!(stepInfoCase_ == 5)) {\n stepInfo_ = com.google.cloud.networkmanagement.v1beta1.InstanceInfo.getDefaultInstance();\n }\n instanceBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.InstanceInfo,\n com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.InstanceInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.InstanceInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 5;\n onChanged();\n return instanceBuilder_;\n }", "public java.lang.String getField1024() {\n java.lang.Object ref = field1024_;\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 field1024_ = s;\n return s;\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n org.adscale.format.opertb.AmountMessage.Amount, org.adscale.format.opertb.AmountMessage.Amount.Builder, org.adscale.format.opertb.AmountMessage.AmountOrBuilder> \n getCampaignpriceFieldBuilder() {\n if (campaignpriceBuilder_ == null) {\n campaignpriceBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n org.adscale.format.opertb.AmountMessage.Amount, org.adscale.format.opertb.AmountMessage.Amount.Builder, org.adscale.format.opertb.AmountMessage.AmountOrBuilder>(\n getCampaignprice(),\n getParentForChildren(),\n isClean());\n campaignprice_ = null;\n }\n return campaignpriceBuilder_;\n }", "public java.math.BigInteger getGibbsq()\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(GIBBSQ$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "com.google.protobuf.ByteString\n getField1048Bytes();", "public BitField getBitField(){\n \treturn bitField;\n }", "private com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Amount, io.lightcone.data.types.Amount.Builder, io.lightcone.data.types.AmountOrBuilder> \n getAmountFieldBuilder() {\n if (amountBuilder_ == null) {\n amountBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Amount, io.lightcone.data.types.Amount.Builder, io.lightcone.data.types.AmountOrBuilder>(\n getAmount(),\n getParentForChildren(),\n isClean());\n amount_ = null;\n }\n return amountBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.felania.msldb.MsgSummonMaxCountMetaOuterClass.MsgSummonMaxCountMeta, com.felania.msldb.MsgSummonMaxCountMetaOuterClass.MsgSummonMaxCountMeta.Builder, com.felania.msldb.MsgSummonMaxCountMetaOuterClass.MsgSummonMaxCountMetaOrBuilder> \n getSummonMaxCountMetaFieldBuilder() {\n if (summonMaxCountMetaBuilder_ == null) {\n summonMaxCountMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.felania.msldb.MsgSummonMaxCountMetaOuterClass.MsgSummonMaxCountMeta, com.felania.msldb.MsgSummonMaxCountMetaOuterClass.MsgSummonMaxCountMeta.Builder, com.felania.msldb.MsgSummonMaxCountMetaOuterClass.MsgSummonMaxCountMetaOrBuilder>(\n getSummonMaxCountMeta(),\n getParentForChildren(),\n isClean());\n summonMaxCountMeta_ = null;\n }\n return summonMaxCountMetaBuilder_;\n }", "com.google.protobuf.ByteString\n getField1843Bytes();", "com.google.protobuf.ByteString\n getField1848Bytes();", "private com.google.protobuf.SingleFieldBuilder<\n Pokemon.DailyBonus, Pokemon.DailyBonus.Builder, Pokemon.DailyBonusOrBuilder> \n getDailyBonusFieldBuilder() {\n if (dailyBonusBuilder_ == null) {\n dailyBonusBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.DailyBonus, Pokemon.DailyBonus.Builder, Pokemon.DailyBonusOrBuilder>(\n getDailyBonus(),\n getParentForChildren(),\n isClean());\n dailyBonus_ = null;\n }\n return dailyBonusBuilder_;\n }", "long getNumericField();", "private static BIG byte_to_BIG(byte [] array){\n BIG result = new BIG();\n long[] long_ = new long[4];\n for(int i=long_.length; i > 0;i--){\n long_[i-1] =\n ((array[i*7-3] & 0xFFL) << 48) |\n ((array[i*7-2] & 0xFFL) << 40) |\n ((array[i*7-1] & 0xFFL) << 32) |\n ((array[i*7] & 0xFFL) << 24) | \n ((array[i*7+1] & 0xFFL) << 16) | \n ((array[i*7+2] & 0xFFL) << 8) | \n ((array[i*7+3] & 0xFFL) << 0) ; \n }\n int int_ = \n (int) (((array[0] & 0xFFL) << 24) |\n\t\t ((array[1] & 0xFFL) << 16) |\n\t\t ((array[2] & 0xFFL) << 8) |\n\t\t ((array[3] & 0xFFL) << 0)) ;\n \n long[] temp = {long_[3],long_[2],long_[1],long_[0],int_};\n\n result = new BIG(temp);\n return result;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder> \n getDefFieldBuilder() {\n if (defBuilder_ == null) {\n defBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder>(\n getDef(),\n getParentForChildren(),\n isClean());\n def_ = null;\n }\n return defBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder>\n getProtobufFieldBuilder() {\n if (protobufBuilder_ == null) {\n if (!(schemaCase_ == 3)) {\n schema_ =\n com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance();\n }\n protobufBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder>(\n (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_,\n getParentForChildren(),\n isClean());\n schema_ = null;\n }\n schemaCase_ = 3;\n onChanged();\n return protobufBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> \n getFramesCountFieldBuilder() {\n if (framesCountBuilder_ == null) {\n framesCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>(\n getFramesCount(),\n getParentForChildren(),\n isClean());\n framesCount_ = null;\n }\n return framesCountBuilder_;\n }", "public java.math.BigInteger getGibbmt()\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(GIBBMT$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "public static ObjectInstance getComplexTypeObjectInstanceForMaxFileSize()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(1);\n \n \n properties.put(\"theLabel\", getComplexTypeMBeanforMaxFileSize().getTheLabel()); \n properties.put(\"complexitem\", getComplexTypeMBeanforMaxFileSize()\n .getComplexClass().toString()); \n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'ComplexType' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n \n return new ObjectInstance(o, new ComplexTypeForMaxFileSize().getClass().getName());\n }", "public int getOneof1024() {\n if (hugeOneofCase_ == 1024) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder> \n getPageFieldBuilder() {\n if (pageBuilder_ == null) {\n pageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder>(\n getPage(),\n getParentForChildren(),\n isClean());\n page_ = null;\n }\n return pageBuilder_;\n }", "public BigInteger getBigIntegerAttribute();", "public int getOneof1024() {\n if (hugeOneofCase_ == 1024) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector2, godot.wire.Wire.Vector2.Builder, godot.wire.Wire.Vector2OrBuilder> \n getSizeFieldBuilder() {\n if (sizeBuilder_ == null) {\n sizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector2, godot.wire.Wire.Vector2.Builder, godot.wire.Wire.Vector2OrBuilder>(\n getSize(),\n getParentForChildren(),\n isClean());\n size_ = null;\n }\n return sizeBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> \n getMetadataFieldBuilder() {\n if (metadataBuilder_ == null) {\n metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(\n getMetadata(),\n getParentForChildren(),\n isClean());\n metadata_ = null;\n }\n return metadataBuilder_;\n }", "com.google.protobuf.ByteString\n getField1066Bytes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.UploadResponse, entities.Torrent.UploadResponse.Builder, entities.Torrent.UploadResponseOrBuilder>\n getUploadResponseFieldBuilder() {\n if (uploadResponseBuilder_ == null) {\n uploadResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.UploadResponse, entities.Torrent.UploadResponse.Builder, entities.Torrent.UploadResponseOrBuilder>(\n getUploadResponse(),\n getParentForChildren(),\n isClean());\n uploadResponse_ = null;\n }\n return uploadResponseBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.BackUp, edu.usfca.cs.dfs.StorageMessages.BackUp.Builder, edu.usfca.cs.dfs.StorageMessages.BackUpOrBuilder> \n getBackupFieldBuilder() {\n if (backupBuilder_ == null) {\n if (!(msgCase_ == 10)) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.BackUp.getDefaultInstance();\n }\n backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.BackUp, edu.usfca.cs.dfs.StorageMessages.BackUp.Builder, edu.usfca.cs.dfs.StorageMessages.BackUpOrBuilder>(\n (edu.usfca.cs.dfs.StorageMessages.BackUp) msg_,\n getParentForChildren(),\n isClean());\n msg_ = null;\n }\n msgCase_ = 10;\n onChanged();;\n return backupBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n gpss.Batch, gpss.Batch.Builder, gpss.BatchOrBuilder> \n getBatchFieldBuilder() {\n if (batchBuilder_ == null) {\n batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n gpss.Batch, gpss.Batch.Builder, gpss.BatchOrBuilder>(\n getBatch(),\n getParentForChildren(),\n isClean());\n batch_ = null;\n }\n return batchBuilder_;\n }", "public Field copy()\n {\n return new Field(name, type, vis);\n }", "com.google.protobuf.ByteString\n getField1818Bytes();", "private com.google.protobuf.SingleFieldBuilderV3<\n kvClient.pb.KeyValue, kvClient.pb.KeyValue.Builder, kvClient.pb.KeyValueOrBuilder> \n getKvFieldBuilder() {\n if (kvBuilder_ == null) {\n if (!(resultCase_ == 2)) {\n result_ = kvClient.pb.KeyValue.getDefaultInstance();\n }\n kvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n kvClient.pb.KeyValue, kvClient.pb.KeyValue.Builder, kvClient.pb.KeyValueOrBuilder>(\n (kvClient.pb.KeyValue) result_,\n getParentForChildren(),\n isClean());\n result_ = null;\n }\n resultCase_ = 2;\n onChanged();;\n return kvBuilder_;\n }", "@Override\n\tpublic Field get(Integer entityID) {\n\t\treturn null;\n\t}", "private com.google.protobuf.SingleFieldBuilder<\n lanyotech.cn.park.protoc.ParkingProtoc.Parking, lanyotech.cn.park.protoc.ParkingProtoc.Parking.Builder, lanyotech.cn.park.protoc.ParkingProtoc.ParkingOrBuilder> \n getParkingFieldBuilder() {\n if (parkingBuilder_ == null) {\n parkingBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n lanyotech.cn.park.protoc.ParkingProtoc.Parking, lanyotech.cn.park.protoc.ParkingProtoc.Parking.Builder, lanyotech.cn.park.protoc.ParkingProtoc.ParkingOrBuilder>(\n parking_,\n getParentForChildren(),\n isClean());\n parking_ = null;\n }\n return parkingBuilder_;\n }", "Flux<Field> getFieldFlux();", "private com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.RetrieveFile, edu.usfca.cs.dfs.StorageMessages.RetrieveFile.Builder, edu.usfca.cs.dfs.StorageMessages.RetrieveFileOrBuilder> \n getRetrieveFileFieldBuilder() {\n if (retrieveFileBuilder_ == null) {\n if (!(msgCase_ == 2)) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.RetrieveFile.getDefaultInstance();\n }\n retrieveFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.RetrieveFile, edu.usfca.cs.dfs.StorageMessages.RetrieveFile.Builder, edu.usfca.cs.dfs.StorageMessages.RetrieveFileOrBuilder>(\n (edu.usfca.cs.dfs.StorageMessages.RetrieveFile) msg_,\n getParentForChildren(),\n isClean());\n msg_ = null;\n }\n msgCase_ = 2;\n onChanged();;\n return retrieveFileBuilder_;\n }", "public java.lang.String getField1024() {\n java.lang.Object ref = field1024_;\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 field1024_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public final Object getObject() \n\t{\n\tif (fTop > 0)\n\t\t{\n\t\tfTop--;\n\t\tObject result = fBin[fTop];\n\t\tfBin[fTop] = null;\n\t\treturn result;\n\t\t}\n\n\tfUnderflowCounter++;\n\tif (fHasOverflowed && (fBin.length < MAX_BIN_SIZE))\n\t\t{\n\t\tcreateBin(fBin.length + BIN_GROW_SIZE);\n\t\tfHasOverflowed = false;\n\t\t}\n\t\t\n\ttry\n\t\t{\n\t\treturn fClass.newInstance();\n\t\t}\n\tcatch (Exception e)\n\t\t{\n\t\treturn null;\n\t\t}\n\t}", "public Integer getCodiceBiglietto() {\n return codiceBiglietto;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n build.buf.validate.conformance.cases.MessageNone.NoneMsg, build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder, build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder> \n getValFieldBuilder() {\n if (valBuilder_ == null) {\n valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n build.buf.validate.conformance.cases.MessageNone.NoneMsg, build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder, build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder>(\n getVal(),\n getParentForChildren(),\n isClean());\n val_ = null;\n }\n return valBuilder_;\n }", "FieldDefinition createFieldDefinition();", "com.google.protobuf.ByteString\n getField1978Bytes();", "private com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.HealMyChunk, edu.usfca.cs.dfs.StorageMessages.HealMyChunk.Builder, edu.usfca.cs.dfs.StorageMessages.HealMyChunkOrBuilder> \n getHealMyChunkFieldBuilder() {\n if (healMyChunkBuilder_ == null) {\n if (!(msgCase_ == 13)) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.HealMyChunk.getDefaultInstance();\n }\n healMyChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.HealMyChunk, edu.usfca.cs.dfs.StorageMessages.HealMyChunk.Builder, edu.usfca.cs.dfs.StorageMessages.HealMyChunkOrBuilder>(\n (edu.usfca.cs.dfs.StorageMessages.HealMyChunk) msg_,\n getParentForChildren(),\n isClean());\n msg_ = null;\n }\n msgCase_ = 13;\n onChanged();;\n return healMyChunkBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>\n getDownloadResponseFieldBuilder() {\n if (downloadResponseBuilder_ == null) {\n downloadResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>(\n getDownloadResponse(),\n getParentForChildren(),\n isClean());\n downloadResponse_ = null;\n }\n return downloadResponseBuilder_;\n }", "public BigDecimal getDecimalValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a big decimal.\");\n }", "public RecordField getSubfield() {\n return getSubfield(0);\n }", "com.google.protobuf.ByteString\n getField1087Bytes();", "private com.google.protobuf.SingleFieldBuilderV3<\n org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder> \n getFrameFieldBuilder() {\n if (frameBuilder_ == null) {\n frameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder>(\n getFrame(),\n getParentForChildren(),\n isClean());\n frame_ = null;\n }\n return frameBuilder_;\n }", "private static BeanDescriptor getBdescriptor() {\n BeanDescriptor beanDescriptor = new BeanDescriptor(org.geogurus.gas.objects.GeometryClassFieldBean.class, null); // NOI18N//GEN-HEADEREND:BeanDescriptor\n\n // Here you can add code for customizing the BeanDescriptor.\n\n return beanDescriptor;\n }", "public Double getBigFloat() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getBigFloat();\n ServiceResponse<Double> response = getBigFloatDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }", "com.google.protobuf.ByteString\n getField1078Bytes();", "private com.google.protobuf.SingleFieldBuilderV3<PoP, PoP.Builder, PoPOrBuilder>\n getPopFieldBuilder() {\n if (popBuilder_ == null) {\n popBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<PoP, PoP.Builder, PoPOrBuilder>(\n getPop(), getParentForChildren(), isClean());\n pop_ = null;\n }\n return popBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilder<\n com.google.openrtb.OpenRtb.BidRequest, com.google.openrtb.OpenRtb.BidRequest.Builder, com.google.openrtb.OpenRtb.BidRequestOrBuilder> \n getBidrequestFieldBuilder() {\n if (bidrequestBuilder_ == null) {\n bidrequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n com.google.openrtb.OpenRtb.BidRequest, com.google.openrtb.OpenRtb.BidRequest.Builder, com.google.openrtb.OpenRtb.BidRequestOrBuilder>(\n getBidrequest(),\n getParentForChildren(),\n isClean());\n bidrequest_ = null;\n }\n return bidrequestBuilder_;\n }" ]
[ "0.72337615", "0.651053", "0.6500959", "0.62968427", "0.617897", "0.58848894", "0.5794624", "0.5794624", "0.57884854", "0.5737063", "0.57249904", "0.5708974", "0.5669363", "0.5601033", "0.5600487", "0.5579467", "0.55790734", "0.55726457", "0.5544741", "0.55227447", "0.55202734", "0.5501123", "0.54923683", "0.54830474", "0.54756975", "0.5473967", "0.54694784", "0.54325646", "0.54235166", "0.5420427", "0.5420406", "0.5414703", "0.5395737", "0.53765064", "0.53586936", "0.5358228", "0.53512645", "0.53297865", "0.53057677", "0.5303455", "0.5293403", "0.5289692", "0.52743614", "0.5267794", "0.52599823", "0.5259053", "0.5257566", "0.5257566", "0.5256615", "0.52253175", "0.5225015", "0.5219818", "0.5209296", "0.51946926", "0.5188046", "0.51867545", "0.5185619", "0.5185043", "0.5180531", "0.51720893", "0.51685464", "0.5163587", "0.5152571", "0.51453006", "0.51429737", "0.5141757", "0.5141315", "0.5136793", "0.5135963", "0.51345176", "0.51337403", "0.5125925", "0.51228607", "0.5118884", "0.5118354", "0.5104735", "0.5097016", "0.50915927", "0.508235", "0.5077676", "0.5075502", "0.50702417", "0.5069717", "0.5069553", "0.50669396", "0.5064453", "0.50614446", "0.5056935", "0.50546855", "0.5046946", "0.50463206", "0.50354016", "0.50337005", "0.5031824", "0.50302935", "0.5024075", "0.5023421", "0.5023334", "0.5022754", "0.5015256" ]
0.8633858
0
Returns the BigFieldView instance.
public static BigFieldView getBigFieldView() { return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BigField getBigField() {\n return bigField;\n }", "private BorderPane getPane() {\n bigField = new BigField(); // Create a Field model\n view = new BigFieldView(bigField); // Create a pane view\n BorderPane pane = new BorderPane();\n pane.setCenter(view);\n\n return pane;\n }", "public BCField getField() {\n return (BCField) getOwner();\n }", "public BwView getView() {\n if (view == null) {\n view = new BwView();\n }\n\n return view;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n POGOProtos.Rpc.PokemonDisplayProto, POGOProtos.Rpc.PokemonDisplayProto.Builder, POGOProtos.Rpc.PokemonDisplayProtoOrBuilder> \n getPokemonDisplayFieldBuilder() {\n if (pokemonDisplayBuilder_ == null) {\n pokemonDisplayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n POGOProtos.Rpc.PokemonDisplayProto, POGOProtos.Rpc.PokemonDisplayProto.Builder, POGOProtos.Rpc.PokemonDisplayProtoOrBuilder>(\n getPokemonDisplay(),\n getParentForChildren(),\n isClean());\n pokemonDisplay_ = null;\n }\n return pokemonDisplayBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n POGOProtos.Rpc.QuestDisplayProto, POGOProtos.Rpc.QuestDisplayProto.Builder, POGOProtos.Rpc.QuestDisplayProtoOrBuilder> \n getDisplayFieldBuilder() {\n if (displayBuilder_ == null) {\n displayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n POGOProtos.Rpc.QuestDisplayProto, POGOProtos.Rpc.QuestDisplayProto.Builder, POGOProtos.Rpc.QuestDisplayProtoOrBuilder>(\n getDisplay(),\n getParentForChildren(),\n isClean());\n display_ = null;\n }\n return displayBuilder_;\n }", "public final GF2nField getField()\n {\n return mField;\n }", "public int getFieldOfView() {\r\n\t\treturn fieldOfView;\r\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n kvClient.pb.KeyValue, kvClient.pb.KeyValue.Builder, kvClient.pb.KeyValueOrBuilder> \n getKvFieldBuilder() {\n if (kvBuilder_ == null) {\n if (!(resultCase_ == 2)) {\n result_ = kvClient.pb.KeyValue.getDefaultInstance();\n }\n kvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n kvClient.pb.KeyValue, kvClient.pb.KeyValue.Builder, kvClient.pb.KeyValueOrBuilder>(\n (kvClient.pb.KeyValue) result_,\n getParentForChildren(),\n isClean());\n result_ = null;\n }\n resultCase_ = 2;\n onChanged();;\n return kvBuilder_;\n }", "public static Field getInstance() {\n if (_instance == null) {\n _instance = new Field();\n }\n\n return _instance;\n }", "IFormView getFormView();", "public ViewFactory getViewFactory()\n {\n return this;\n }", "public static Gel_BioInf_Models.VirtualPanel.Builder newBuilder() {\n return new Gel_BioInf_Models.VirtualPanel.Builder();\n }", "BigDecimal getFixedPointField();", "protected Field getField()\n {\n return field;\n }", "protected Field getField()\n {\n return field;\n }", "@Override\n public GameField getField(){\n return this.gameField;\n }", "public DatabaseField getField() {\n return field;\n }", "FieldRenderer get(Model m) {\n/* 62 */ if (this.fr == null)\n/* 63 */ this.fr = calcFr(m); \n/* 64 */ return this.fr;\n/* */ }", "public RedBirdView(final FieldObject fieldObject) {\n super(fieldObject);\n }", "public BrowsePanelView getBrowsePanel() {\n\t\treturn navpanelview.getBrowseView();\n\t}", "public BitmapField getBitmapField() {\n\t\treturn bitmapField;\n\t}", "private ViewFrame getViewFrame() {\n\t\treturn this.viewFrame;\n\t}", "protected View getDisplayView(final T field, Fragment frag){\n return null;\n }", "com.google.protobuf.ByteString\n getViewBytes();", "public Field getField() {\n return field;\n }", "protected ElectromagnetFieldAdaptor getFieldAdaptor() {\n\t\treturn FIELD_ADAPTOR;\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector2, godot.wire.Wire.Vector2.Builder, godot.wire.Wire.Vector2OrBuilder> \n getSizeFieldBuilder() {\n if (sizeBuilder_ == null) {\n sizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector2, godot.wire.Wire.Vector2.Builder, godot.wire.Wire.Vector2OrBuilder>(\n getSize(),\n getParentForChildren(),\n isClean());\n size_ = null;\n }\n return sizeBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector3, godot.wire.Wire.Vector3.Builder, godot.wire.Wire.Vector3OrBuilder> \n getSizeFieldBuilder() {\n if (sizeBuilder_ == null) {\n sizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector3, godot.wire.Wire.Vector3.Builder, godot.wire.Wire.Vector3OrBuilder>(\n getSize(),\n getParentForChildren(),\n isClean());\n size_ = null;\n }\n return sizeBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> \n getWaypointsVersionFieldBuilder() {\n if (waypointsVersionBuilder_ == null) {\n waypointsVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(\n getWaypointsVersion(),\n getParentForChildren(),\n isClean());\n waypointsVersion_ = null;\n }\n return waypointsVersionBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.felania.msldb.MsgPriceOuterClass.MsgPrice, com.felania.msldb.MsgPriceOuterClass.MsgPrice.Builder, com.felania.msldb.MsgPriceOuterClass.MsgPriceOrBuilder> \n getPriceFieldBuilder() {\n if (priceBuilder_ == null) {\n priceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.felania.msldb.MsgPriceOuterClass.MsgPrice, com.felania.msldb.MsgPriceOuterClass.MsgPrice.Builder, com.felania.msldb.MsgPriceOuterClass.MsgPriceOrBuilder>(\n getPrice(),\n getParentForChildren(),\n isClean());\n price_ = null;\n }\n return priceBuilder_;\n }", "private VerticalExtent.Builder getBaseBuilder() {\r\n\t\tDDMSVersion version = DDMSVersion.getCurrentVersion();\r\n\t\tVerticalExtent component = getInstance(getValidElement(version.getVersion()), SUCCESS);\r\n\t\treturn (new VerticalExtent.Builder(component));\r\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n DerivedFeatureConfig, DerivedFeatureConfig.Builder, DerivedFeatureConfigOrBuilder>\n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n DerivedFeatureConfig, DerivedFeatureConfig.Builder, DerivedFeatureConfigOrBuilder>(\n getConfig(),\n getParentForChildren(),\n isClean());\n config_ = null;\n }\n return configBuilder_;\n }", "public DrawingView view() {\n return fView;\n }", "public static BigB getBigB()\r\n{\treturn bigB;\t\r\n}", "public ViewObjectImpl getQueryRecordVOInstance() {\n return (ViewObjectImpl)findViewObject(\"QueryRecordVOInstance\");\n }", "private com.google.protobuf.SingleFieldBuilder<\n org.adscale.format.opertb.AmountMessage.Amount, org.adscale.format.opertb.AmountMessage.Amount.Builder, org.adscale.format.opertb.AmountMessage.AmountOrBuilder> \n getExchangepriceFieldBuilder() {\n if (exchangepriceBuilder_ == null) {\n exchangepriceBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n org.adscale.format.opertb.AmountMessage.Amount, org.adscale.format.opertb.AmountMessage.Amount.Builder, org.adscale.format.opertb.AmountMessage.AmountOrBuilder>(\n getExchangeprice(),\n getParentForChildren(),\n isClean());\n exchangeprice_ = null;\n }\n return exchangepriceBuilder_;\n }", "public T getField()\r\n {\r\n return this.field;\r\n }", "public HBox getView() {\n return this;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf2.Any, com.google.protobuf2.Any.Builder, com.google.protobuf2.AnyOrBuilder> \n getObjectFieldBuilder() {\n if (objectBuilder_ == null) {\n objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf2.Any, com.google.protobuf2.Any.Builder, com.google.protobuf2.AnyOrBuilder>(\n getObject(),\n getParentForChildren(),\n isClean());\n object_ = null;\n }\n return objectBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo,\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfoOrBuilder>\n getCloudSqlInstanceFieldBuilder() {\n if (cloudSqlInstanceBuilder_ == null) {\n if (!(stepInfoCase_ == 19)) {\n stepInfo_ =\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo.getDefaultInstance();\n }\n cloudSqlInstanceBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo,\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 19;\n onChanged();\n return cloudSqlInstanceBuilder_;\n }", "public FieldView(int height, int width, Model model)\n {\n// super(model);\n \tgridHeight = height;\n gridWidth = width;\n size = new Dimension(0, 0);\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder> \n getFrameFieldBuilder() {\n if (frameBuilder_ == null) {\n frameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder>(\n getFrame(),\n getParentForChildren(),\n isClean());\n frame_ = null;\n }\n return frameBuilder_;\n }", "public static Gel_BioInf_Models.VirtualPanel.Builder newBuilder(Gel_BioInf_Models.VirtualPanel.Builder other) {\n return new Gel_BioInf_Models.VirtualPanel.Builder(other);\n }", "public java.math.BigDecimal getField_737();", "public static com.dj.model.avro.LargeObjectAvro.Builder newBuilder() {\n return new com.dj.model.avro.LargeObjectAvro.Builder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public ViewFactory getViewFactory() {\n EditorKit kit = getEditorKit(editor);\n ViewFactory f = kit.getViewFactory();\n if (f != null) {\n return f;\n }\n return BasicTextUI.this;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>\n getDownloadResponseFieldBuilder() {\n if (downloadResponseBuilder_ == null) {\n downloadResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>(\n getDownloadResponse(),\n getParentForChildren(),\n isClean());\n downloadResponse_ = null;\n }\n return downloadResponseBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SearchResponse, entities.Torrent.SearchResponse.Builder, entities.Torrent.SearchResponseOrBuilder>\n getSearchResponseFieldBuilder() {\n if (searchResponseBuilder_ == null) {\n searchResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SearchResponse, entities.Torrent.SearchResponse.Builder, entities.Torrent.SearchResponseOrBuilder>(\n getSearchResponse(),\n getParentForChildren(),\n isClean());\n searchResponse_ = null;\n }\n return searchResponseBuilder_;\n }", "public FieldLens getFieldLens() {\n return _mode.fieldLens();\n }", "String getBlobField();", "public View getView() {\n // Create view lazily only once it's needed\n if (this.furnitureView == null) {\n this.furnitureView = this.viewFactory.createFurnitureView(this.home, this.preferences, this);\n }\n return this.furnitureView;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.InstanceInfo,\n com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.InstanceInfoOrBuilder>\n getInstanceFieldBuilder() {\n if (instanceBuilder_ == null) {\n if (!(stepInfoCase_ == 5)) {\n stepInfo_ = com.google.cloud.networkmanagement.v1beta1.InstanceInfo.getDefaultInstance();\n }\n instanceBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.InstanceInfo,\n com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.InstanceInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.InstanceInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 5;\n onChanged();\n return instanceBuilder_;\n }", "View createView();", "private com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.RetrieveFile, edu.usfca.cs.dfs.StorageMessages.RetrieveFile.Builder, edu.usfca.cs.dfs.StorageMessages.RetrieveFileOrBuilder> \n getRetrieveFileFieldBuilder() {\n if (retrieveFileBuilder_ == null) {\n if (!(msgCase_ == 2)) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.RetrieveFile.getDefaultInstance();\n }\n retrieveFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.RetrieveFile, edu.usfca.cs.dfs.StorageMessages.RetrieveFile.Builder, edu.usfca.cs.dfs.StorageMessages.RetrieveFileOrBuilder>(\n (edu.usfca.cs.dfs.StorageMessages.RetrieveFile) msg_,\n getParentForChildren(),\n isClean());\n msg_ = null;\n }\n msgCase_ = 2;\n onChanged();;\n return retrieveFileBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Amount, io.lightcone.data.types.Amount.Builder, io.lightcone.data.types.AmountOrBuilder> \n getAmountFFieldBuilder() {\n if (amountFBuilder_ == null) {\n amountFBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Amount, io.lightcone.data.types.Amount.Builder, io.lightcone.data.types.AmountOrBuilder>(\n getAmountF(),\n getParentForChildren(),\n isClean());\n amountF_ = null;\n }\n return amountFBuilder_;\n }", "protected abstract void initViewValue(final T field);", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.UploadResponse, entities.Torrent.UploadResponse.Builder, entities.Torrent.UploadResponseOrBuilder>\n getUploadResponseFieldBuilder() {\n if (uploadResponseBuilder_ == null) {\n uploadResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.UploadResponse, entities.Torrent.UploadResponse.Builder, entities.Torrent.UploadResponseOrBuilder>(\n getUploadResponse(),\n getParentForChildren(),\n isClean());\n uploadResponse_ = null;\n }\n return uploadResponseBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.bigquery.biglake.v1alpha1.Catalog,\n com.google.cloud.bigquery.biglake.v1alpha1.Catalog.Builder,\n com.google.cloud.bigquery.biglake.v1alpha1.CatalogOrBuilder>\n getCatalogFieldBuilder() {\n if (catalogBuilder_ == null) {\n catalogBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.bigquery.biglake.v1alpha1.Catalog,\n com.google.cloud.bigquery.biglake.v1alpha1.Catalog.Builder,\n com.google.cloud.bigquery.biglake.v1alpha1.CatalogOrBuilder>(\n getCatalog(), getParentForChildren(), isClean());\n catalog_ = null;\n }\n return catalogBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder> \n getPageFieldBuilder() {\n if (pageBuilder_ == null) {\n pageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder>(\n getPage(),\n getParentForChildren(),\n isClean());\n page_ = null;\n }\n return pageBuilder_;\n }", "public Field.Builder getFieldsBuilder(\n int index) {\n return getFieldsFieldBuilder().getBuilder(index);\n }", "public Field copy()\n {\n return new Field(name, type, vis);\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo,\n com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder>\n getCloudRunRevisionFieldBuilder() {\n if (cloudRunRevisionBuilder_ == null) {\n if (!(stepInfoCase_ == 23)) {\n stepInfo_ =\n com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.getDefaultInstance();\n }\n cloudRunRevisionBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo,\n com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 23;\n onChanged();\n return cloudRunRevisionBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message, org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Builder, org.graylog.plugins.dnstap.protos.DnstapOuterClass.MessageOrBuilder>\n getMessageFieldBuilder() {\n if (messageBuilder_ == null) {\n messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message, org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Builder, org.graylog.plugins.dnstap.protos.DnstapOuterClass.MessageOrBuilder>(\n getMessage(),\n getParentForChildren(),\n isClean());\n message_ = null;\n }\n return messageBuilder_;\n }", "ViewElement createViewElement();", "private JCheckBox getJCBLarge()\n\t{\n\t\tif ( jCBLarge == null )\n\t\t{\n\t\t\tjCBLarge = new JCheckBox(ProVMBD.EnumTipoVM.LARGE.name());\n\t\t\tjCBLarge.setBounds(new Rectangle(14, 53, 123, 19));\n\t\t}\n\t\treturn jCBLarge;\n\t}", "public kvClient.pb.KeyValue.Builder getKvBuilder() {\n return getKvFieldBuilder().getBuilder();\n }", "private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }", "public static Gel_BioInf_Models.VirtualPanel.Builder newBuilder(Gel_BioInf_Models.VirtualPanel other) {\n return new Gel_BioInf_Models.VirtualPanel.Builder(other);\n }", "public JComponent getWrappedComponent()\n {\n return field;\n }", "private JTextField getBufferDistanceTextField() {\n\t\tif (bufferDistanceTextField == null) {\n\t\t\tbufferDistanceTextField = new JTextField();\n\t\t\tbufferDistanceTextField.setBounds(new java.awt.Rectangle(308, 11,\n\t\t\t\t\t134, 21));\n\t\t}\n\t\treturn bufferDistanceTextField;\n\t}", "StableView view();", "private com.google.protobuf.SingleFieldBuilder<\n messages.Ledgerinterface.LedgerInterface, messages.Ledgerinterface.LedgerInterface.Builder, messages.Ledgerinterface.LedgerInterfaceOrBuilder> \n getLedgerFieldBuilder() {\n if (ledgerBuilder_ == null) {\n ledgerBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n messages.Ledgerinterface.LedgerInterface, messages.Ledgerinterface.LedgerInterface.Builder, messages.Ledgerinterface.LedgerInterfaceOrBuilder>(\n ledger_,\n getParentForChildren(),\n isClean());\n ledger_ = null;\n }\n return ledgerBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> \n getPhoneNumberFieldBuilder() {\n if (phoneNumberBuilder_ == null) {\n phoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(\n getPhoneNumber(),\n getParentForChildren(),\n isClean());\n phoneNumber_ = null;\n }\n return phoneNumberBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilder<\n messages.Databaseinterface.DatabaseInterface, messages.Databaseinterface.DatabaseInterface.Builder, messages.Databaseinterface.DatabaseInterfaceOrBuilder> \n getDatabaseFieldBuilder() {\n if (databaseBuilder_ == null) {\n databaseBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n messages.Databaseinterface.DatabaseInterface, messages.Databaseinterface.DatabaseInterface.Builder, messages.Databaseinterface.DatabaseInterfaceOrBuilder>(\n database_,\n getParentForChildren(),\n isClean());\n database_ = null;\n }\n return databaseBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilder<\n lanyotech.cn.park.protoc.CommonProtoc.PageHelper, lanyotech.cn.park.protoc.CommonProtoc.PageHelper.Builder, lanyotech.cn.park.protoc.CommonProtoc.PageHelperOrBuilder> \n getPageFieldBuilder() {\n if (pageBuilder_ == null) {\n pageBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n lanyotech.cn.park.protoc.CommonProtoc.PageHelper, lanyotech.cn.park.protoc.CommonProtoc.PageHelper.Builder, lanyotech.cn.park.protoc.CommonProtoc.PageHelperOrBuilder>(\n page_,\n getParentForChildren(),\n isClean());\n page_ = null;\n }\n return pageBuilder_;\n }", "public MateriliazedView.Builder getViewsBuilder(\n int index) {\n return getViewsFieldBuilder().getBuilder(index);\n }", "private com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Amount, io.lightcone.data.types.Amount.Builder, io.lightcone.data.types.AmountOrBuilder> \n getAmountFieldBuilder() {\n if (amountBuilder_ == null) {\n amountBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Amount, io.lightcone.data.types.Amount.Builder, io.lightcone.data.types.AmountOrBuilder>(\n getAmount(),\n getParentForChildren(),\n isClean());\n amount_ = null;\n }\n return amountBuilder_;\n }", "public View f() {\n return this.h.findViewById(c.e.shadow_view);\n }", "public POGOProtos.Rpc.QuestDisplayProto.Builder getDisplayBuilder() {\n \n onChanged();\n return getDisplayFieldBuilder().getBuilder();\n }", "ViewComponentPart createViewComponentPart();", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo,\n com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoOrBuilder>\n getAppEngineVersionFieldBuilder() {\n if (appEngineVersionBuilder_ == null) {\n if (!(stepInfoCase_ == 22)) {\n stepInfo_ =\n com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.getDefaultInstance();\n }\n appEngineVersionBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo,\n com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 22;\n onChanged();\n return appEngineVersionBuilder_;\n }", "public ViewProcessor getViewProcessor() {\n return _viewProcessor;\n }", "private static BeanDescriptor getBdescriptor() {\n BeanDescriptor beanDescriptor = new BeanDescriptor(org.geogurus.gas.objects.GeometryClassFieldBean.class, null); // NOI18N//GEN-HEADEREND:BeanDescriptor\n\n // Here you can add code for customizing the BeanDescriptor.\n\n return beanDescriptor;\n }", "View mo73990a(View view);", "@Override\n\tpublic FieldDetail getFieldDetail() {\n\t\treturn field;\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponse, edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponse.Builder, edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponseOrBuilder> \n getRetrieveFileResponseFieldBuilder() {\n if (retrieveFileResponseBuilder_ == null) {\n if (!(msgCase_ == 11)) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponse.getDefaultInstance();\n }\n retrieveFileResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponse, edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponse.Builder, edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponseOrBuilder>(\n (edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponse) msg_,\n getParentForChildren(),\n isClean());\n msg_ = null;\n }\n msgCase_ = 11;\n onChanged();;\n return retrieveFileResponseBuilder_;\n }", "public io.lightcone.data.types.Amount.Builder getAmountFBuilder() {\n \n onChanged();\n return getAmountFFieldBuilder().getBuilder();\n }", "private HistoryViewPanel getViewPanel() {\n if (viewPanel == null) {\n viewPanel = new HistoryViewPanel();\n viewPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n }\n\n return viewPanel;\n }", "public ViewObjectImpl getDcmJobView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmJobView\");\r\n }", "ViewElement getViewElement();", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> \n getFramesCountFieldBuilder() {\n if (framesCountBuilder_ == null) {\n framesCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>(\n getFramesCount(),\n getParentForChildren(),\n isClean());\n framesCount_ = null;\n }\n return framesCountBuilder_;\n }", "public View getView() {\n return view;\n }", "public Dimension getFieldDimension() {\r\n return fieldDimension;\r\n }", "public BCField getField() {\n String dec = getFieldDeclarerName();\n if (dec == null) \n return null;\n\n BCClass bc = getProject().loadClass(dec, getClassLoader());\n BCField[] fields = bc.getFields(getFieldName());\n if (fields.length == 0)\n return null;\n return fields[0];\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n teledon.network.protobuffprotocol.TeledonProtobufs.Voluntar, teledon.network.protobuffprotocol.TeledonProtobufs.Voluntar.Builder, teledon.network.protobuffprotocol.TeledonProtobufs.VoluntarOrBuilder>\n getVoluntarFieldBuilder() {\n if (voluntarBuilder_ == null) {\n if (!(payloadCase_ == 2)) {\n payload_ = teledon.network.protobuffprotocol.TeledonProtobufs.Voluntar.getDefaultInstance();\n }\n voluntarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n teledon.network.protobuffprotocol.TeledonProtobufs.Voluntar, teledon.network.protobuffprotocol.TeledonProtobufs.Voluntar.Builder, teledon.network.protobuffprotocol.TeledonProtobufs.VoluntarOrBuilder>(\n (teledon.network.protobuffprotocol.TeledonProtobufs.Voluntar) payload_,\n getParentForChildren(),\n isClean());\n payload_ = null;\n }\n payloadCase_ = 2;\n onChanged();;\n return voluntarBuilder_;\n }", "public com.google.cloud.bigquery.biglake.v1alpha1.Catalog.Builder getCatalogBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getCatalogFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.LocalSearchResponse, entities.Torrent.LocalSearchResponse.Builder, entities.Torrent.LocalSearchResponseOrBuilder>\n getLocalSearchResponseFieldBuilder() {\n if (localSearchResponseBuilder_ == null) {\n localSearchResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.LocalSearchResponse, entities.Torrent.LocalSearchResponse.Builder, entities.Torrent.LocalSearchResponseOrBuilder>(\n getLocalSearchResponse(),\n getParentForChildren(),\n isClean());\n localSearchResponse_ = null;\n }\n return localSearchResponseBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n grpc.messages.Messages.Employee, grpc.messages.Messages.Employee.Builder, grpc.messages.Messages.EmployeeOrBuilder> \n getEmployeeFieldBuilder() {\n if (employeeBuilder_ == null) {\n employeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n grpc.messages.Messages.Employee, grpc.messages.Messages.Employee.Builder, grpc.messages.Messages.EmployeeOrBuilder>(\n getEmployee(),\n getParentForChildren(),\n isClean());\n employee_ = null;\n }\n return employeeBuilder_;\n }" ]
[ "0.7095129", "0.59307194", "0.5744347", "0.55544525", "0.5504988", "0.5418876", "0.52670676", "0.5236658", "0.5224124", "0.51881546", "0.5142041", "0.5138788", "0.5126258", "0.51166004", "0.50979966", "0.50979966", "0.5079178", "0.5056786", "0.5051212", "0.5041479", "0.50410795", "0.5029018", "0.50225663", "0.50004566", "0.498909", "0.49776042", "0.4959681", "0.4958453", "0.49414614", "0.49390244", "0.49362546", "0.49246338", "0.49198684", "0.49180248", "0.4917391", "0.49155778", "0.4911638", "0.490133", "0.49002284", "0.4899904", "0.48813233", "0.48750567", "0.48744428", "0.48724818", "0.48703536", "0.48614228", "0.4860115", "0.48583838", "0.48557186", "0.4853217", "0.48519647", "0.48518163", "0.4848957", "0.48394686", "0.48369545", "0.4835928", "0.48260054", "0.48218474", "0.48166782", "0.47948042", "0.47906017", "0.47891188", "0.47876173", "0.47717974", "0.4751354", "0.47475958", "0.4747294", "0.47435504", "0.47431234", "0.47370476", "0.47295222", "0.4717055", "0.4712009", "0.47098485", "0.47082466", "0.47041735", "0.47021535", "0.4684744", "0.46751305", "0.46719247", "0.46667033", "0.4665555", "0.46655503", "0.46627122", "0.4662567", "0.46611768", "0.46572086", "0.4656843", "0.4656524", "0.4653217", "0.46531996", "0.4651124", "0.4649307", "0.4643937", "0.46415937", "0.46392035", "0.46386412", "0.4638184", "0.46381238", "0.4628624" ]
0.9047102
0
initialize an array of integers
public static void main(String[] args){ int[] intArr = new int[100]; for(int i = 0; i < 100; i++){ intArr[i] = i + 1; } // use tail recursion int tSum = tailSum(intArr); System.out.println("Tail recursion sum: " + tSum); // use normal recursion int nSum = sum(intArr); System.out.println("Normal recursion sum: " + nSum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Array() {\n\t\tarray = new int[0];\n\t}", "Array(int[] n) {\n\t\tarray = n;\n\t}", "Array(int x) {\n\t\tarray = new int[x];\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = 0; // make each index 0\n\t\t}\n\t}", "public static IntegerVarArray make(int[] buffer) {\n\t\treturn new IntegerVarArray(buffer);\n\t}", "public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }", "public IntArrays()\n\t{\n\t\tthis(10);\n\t}", "public abstract int[] toIntArray();", "public IntArrayProcessor(int[] array)\n {\n integers = array;\n }", "private void initialize(int[] arr) {\n a = ArraysUtils.sortAndRemoveDuplicates(arr);\n if (a.length != arr.length) {\n throw new IllegalArgumentException(\"Need unique list of numbers\");\n }\n numLeft = new BigInteger(total.toString());\n }", "public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }", "public static IntegerVarArray make(int count) {\n\t\treturn new IntegerVarArray(count);\n\t}", "private static int[] arrayInitializer(int length) {\n int[] myArray = new int[length];\n Random rand = new Random();\n for (int i = 0; i < length; i++) {\n myArray[i] = rand.nextInt(1000);\n }\n return myArray;\n }", "private final int[] initializeInstanceVariable() {\n\t\tint n = 10;\n\t\tint[] temp = new int[n];\n\t\tfor (int i = 0; i < n; i++) {temp[i] = i;}\n\t\treturn temp;\n\t}", "public static int[] intiArray(int num){\n\t\tint[] numArray = new int[num];\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tnumArray[i] = i+1;\n\t\t}\n\t\treturn numArray;\n\t}", "public static void initIntegerArray(int[] arr) {\r\n\t\tRandom ra = new Random();\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tarr[i] = ra.nextInt(arr.length); \r\n\t\t}\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tif (arr[i] - ra.nextInt(arr.length) <5) {\r\n\t\t\t\tarr[i] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "int[] toArray();", "OrderedIntList ()\r\n\t{\r\n\t\tarray = new int[10];\r\n\t}", "public ulsinArray(int length) {\n intArr = new int[length];\n }", "static int[] populateArray(int lenght) {\n\t\tint[] A = new int[lenght];\n\t\t\n\t\tfor(int i=0; i < A.length; i++) {\n\t\t\tA[i] = (int)(Integer.MAX_VALUE * Math.random());\n\t\t}\n\t\t\n\t\treturn A;\n\t}", "public void initializeArray(){\n if(topOfStack==-1){\n for(int i=0;i<this.arr.length;i++){\n this.arr[i]=Integer.MIN_VALUE;\n }\n }\n }", "public int[] initializingArray(int size) {\n\t\tint [] array = createArrays(size);\n\t\tfor(int i = 0;i < array.length; i++) {\n\t\t\tarray[i] = rand.nextInt(10);\n\t\t}\n\t\treturn array;\n\t}", "public IntArrays(int initialCapacity)\n\t{\n\t\tarraySize = 0;\n\t\tif (initialCapacity > 0)\n\t\t{\n\t\t\tarray = new int[initialCapacity];\n\t\t} else\n\t\t{\n\t\t\tSystem.err.println(\"Error: Initial capacity invalid, setting capacity to default of 10...\");\n\t\t\tarray = new int[DEFAULT_ARRAY_SIZE];\n\t\t}\t\t\n\t}", "public void makeArray() {\r\n for (int i = 0; i < A.length; i++) {\r\n A[i] = i;\r\n }\r\n }", "int[] getInts();", "public void setArray(int[] paramArrayOfInt)\n/* */ {\n/* 758 */ if (paramArrayOfInt == null) {\n/* 759 */ setNullArray();\n/* */ }\n/* */ else {\n/* 762 */ setArrayGeneric(paramArrayOfInt.length);\n/* */ \n/* 764 */ this.elements = new Object[this.length];\n/* */ \n/* 766 */ for (int i = 0; i < this.length; i++) {\n/* 767 */ this.elements[i] = Integer.valueOf(paramArrayOfInt[i]);\n/* */ }\n/* */ }\n/* */ }", "private static int[] initArray(int N){\n int[] a = new int[N];\n for (int i=0;i<N;i++)\n a[i] = (int)(Math.random()*99999 + 100000);\n return a;\n }", "public static void initializeCount(int[] count){\n\t\tif (count != null){\n\t\t\tfor (int i = 0; i < count.length; i++)\n\t\t\t\tcount[i] = 0;\n\t\t}\n\t}", "public static int[] init(int in){\n int[] cells = new int[16];\n\n for(int i = 0; i < 16; i++){\n cells[i] = 1;\n }\n\n //sets the index passed-in to be 0\n cells[in] = 0;\n cells[15] = 14;\n\n return cells;\n }", "private static int[] createArray() {\n\t\trnd = new Random();\r\n\t\trandomArray = new int[8];\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\trandomArray[i] = rnd.nextInt(45);\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}", "public static int[] createAndFillArray( int N ) {\n\tint [] A = new int[N];\n\tfor( int i = 0; i < N ;i++ ) A[i] = i + 1;\n\treturn A;\n }", "public Integer[] createSortedArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = i;\n }\n\n return value;\n }", "public static int[] createZeroBasedSequence(int length) {\n\t\tint[] sequence = new int[length];\n\t\tfor (int i = 0; i < sequence.length; i++) {\n\t\t\tsequence[i] = i;\n\t\t}\n\t\treturn sequence;\n\t}", "public ProbIA5Board(int []init) {\n board = new int[init.length];\n\n for (int i = 0; i< init.length; i++) {\n board[i] = init[i];\n }\n }", "public NativeIntegerObjectArrayImpl()\n {\n }", "private static int[] createArray(int n) {\n\t \tint[] array = new int[n];\n\t \tfor(int i=0; i<n; i++){\n\t \t\tarray[i] = (int)(Math.random()*10);\n\t \t}\n\t\t\treturn array;\n\t\t}", "public static Integer[] prepareRandomIntegerArray(int size) {\n\t\tInteger[] array = new Integer[size];\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tarray[j] = (int) ((Math.random() * 1000000));\n\t\t}\n\t\treturn array;\n\t}", "public C0902id[] newArray(int i) {\n return new C0902id[i];\n }", "public int[] numbers();", "public Generator() {\n identificationNumbers = new int[100][31];\n }", "public int[] toIntArray()\r\n {\r\n int[] a = new int[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Integer) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }", "FunWithArrays(int size){\r\n\t\tnumbers = new int[size];\r\n\t}", "public static void initOneD(int[] array) {\n for (int i = 0; i < array.length; i++) {\n array[i] = (int) (Math.random() * 100);\n }\n }", "public void init()\n {\n list = new int[k];\n\n // Initialise my list of integers\n for (int i = 0; i < k; i++) {\n int b = 1;\n while (CommonState.r.nextBoolean())\n b++;\n list[i] = b;\n }\n }", "void createArray(int n) {\n numbers = new int[n];\n for ( int i = 0; i < n; i++){\n numbers[i] = random.nextInt(1000);\n }\n }", "public IntegerList(int size)\n {\n list = new int[size];\n }", "static void initBin(int[] binToInt)\n {\n for(int i = 0; i < 32; i++)\n {\n binToInt[i] = 0;\n }\n }", "public IntegerList(int size)\n {\n list = new int[size];\n }", "public void init(int[] a){\n this.array = a;\n moves = 0; \n }", "public IntArraySpliterator(int[] param1ArrayOfint, int param1Int1, int param1Int2, int param1Int3) {\n/* 1011 */ this.array = param1ArrayOfint;\n/* 1012 */ this.index = param1Int1;\n/* 1013 */ this.fence = param1Int2;\n/* 1014 */ this.characteristics = param1Int3 | 0x40 | 0x4000;\n/* */ }", "public static int[] constructor(int n) {\r\n int v[] = new int[n];\r\n\r\n for (int i = 0; i < v.length; i++) {\r\n int dato = (int) (Math.random() * 20);\r\n v[i] = dato;\r\n }\r\n return v;\r\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default int[] asIntArray() {\n \n return notSupportedCast(\"int[]\");\n }", "public BigNum()\r\n { \r\n myArray = new int[SIZE];\r\n for (int i = 0; i < SIZE; i++)\r\n {\r\n myArray[i] = 0;\r\n }\r\n }", "private List<Integer> toList(int[] array) {\n List<Integer> list = new LinkedList<Integer>();\n for (int item : array) {\n list.add(item);\n }\n return list;\n }", "public Integer[] createInverseSortedArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = defaultLaenge - i;\n }\n\n return value;\n }", "public static int[] toArray(Collection<Integer> a) {\n assert (a != null);\n int[] ret = new int[a.size()];\n int i = 0;\n for (int e : a)\n ret[i++] = e;\n return ret;\n }", "public ArrayListOfIntsWritable(int[] arr)\n {\n super(arr);\n }", "public IntSequence(int capacity) {\n this.myValues = new int[capacity];\n }", "Array createArray();", "public static int[] createRandomIntArray(int length) {\n\n int[] arr = new int[length];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = (int)(Math.random() * 1000 + 1);\n }\n return arr;\n }", "public ArrayListInt(int cantidadDeNumerosDelArray)\n {\n numerosEnteros = new int[cantidadDeNumerosDelArray];\n tamañoDelArray = cantidadDeNumerosDelArray;\n }", "private static int[] buildArray(int num) {\n\t\t// TODO build an array with num elements\n\t\tif(num ==0) return null;\n\t\t\n\t\tint[] array = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\t\n\t\t\tarray[i] = (int)(Math.random()*15);\n\t\t}\n\t\t\n\t\treturn array;\n\t}", "public static void main(String[] args) {\n\t\tint arr[]=new int[5];\r\n\t\tfor(int i=0;i<5;i++){\r\n\t\t\tarr[i]=i;\r\n\t\t}\r\n\t\tArrays.fill(arr,1,4,9);\r\n\t\r\nfor(int i=0;i<5;i++){\r\n\tSystem.out.println(arr[i]);\r\n}\r\n}", "private void setIntArr(int[] intArr) {\r\n this.intArr = intArr;\r\n\r\n }", "OrderedIntList(int size)\n\t{\n\t\tdata = new int[size];\n\t\tcount = 0;\n\t}", "private static Integer[] getIntegerArray(int N, int max) {\n Integer[] a = new Integer[N];\n java.util.Random rng = new java.util.Random();\n for (int i = 0; i < N; i++) {\n a[i] = rng.nextInt(max);\n }\n return a;\n }", "public IntArrayList() {\n this(DEFAULT_EXPECTED_ELEMENTS);\n }", "public static int[] create(int n, int v) {\r\n\t\tint[] x = new int[n];\r\n\t\tfor( int i=0; i<n; i++ ) x[i] = v;\r\n\t\treturn x;\r\n\t}", "public void makeArray(int num)\n {\n \tmakeArray(num,0);\n }", "public static IntegerVarArray make(int size, PrimArray from, int sourceOffset, int count, int destOffset) {\n\t\treturn new IntegerVarArray(size, from, sourceOffset, count, destOffset);\n\t}", "public IntegerSet() {\n elements = new int[MAX_SIZE];\n size = 0;\n }", "public static int[] makeArray( Random random){\n\t\tint[] arr = new int[10];\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tarr[i] = random.nextInt(200);\n\t\treturn arr;\n\t}", "public int[] generateArray() {\n return generateArray(5);\n }", "private void createArray() {\n\t\tdata = new Integer[userInput];\n\t\tRandom rand = new Random();\n\n\t\t// load the array with random numbers\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = rand.nextInt(maximumNumberInput);\n\t\t}\n\n\t\t// copy the array to the sorting method\n\t\tinsertionData = data.clone();\n\t\tquickData = data.clone();\n\n\t}", "public Set(){\n setSet(new int[0]);\n }", "static void fillArray(int[] ar)\n\t{\n\t Random r= new Random();\n\t for(int i = 0; i< ar.length; i++)\n\t {\n\t\t ar[i]= r.nextInt(100);\n\t }\n\t}", "public static int[] createArray(int n) {\r\n\t\tmyOriginalArray = new int[n];\r\n\t\treturn myOriginalArray;\r\n\t}", "public ArrayIns(int max) // constructor\r\n {\r\n a = new long[max]; // create the array\r\n nElems = 0; // no items yet\r\n }", "public void setArr(int[] arr){ this.arr = arr; }", "public int[] getIntList();", "public void setArray(int[] array) {\r\n this.array = array;\r\n }", "public static List<Integer> asList(int[] array) {\n\t\treturn new IntList(array);\n\t}", "static void initializeArray2() {\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\t// Hash implementation\n\t\t\tint mod = val % m;\n\t\t\tarray[mod] = val;\n\t\t\tresult[1]++;\n\t\t}\n\t}", "public SimpleArray(int size)\n\t{\n\t\tarray = new int[size];\n\t}", "@Override\n\tpublic int[] toArray() {\n\t\treturn null;\n\t}", "public TumpukanInteger(int kapasitas){\r\n elemen = new int[kapasitas];\r\n }", "public static int[] fillArray(int[] array, int size) {\r\n\t\tfor (int x = 0; x < size; x = x + 1) {\r\n\t\t\tarray[x] = ReadUserInput.readInt();\r\n\t\t}\r\n\t\treturn array;\r\n\t}", "void mo12207a(int[] iArr);", "public void testNIO_int_array() throws Exception {\n int[] intArray = new int[8];\n IntBuffer ib = IntBuffer.wrap(intArray);\n intBufferTest(ib);\n }", "public Stmt\ninitiateArray(\n Exp pArray, Exp pInitExp,\n Exp pFrom, Exp pTo, Subp pSubp );", "static void initializeArray(boolean firstTime) {\n\t\tint count = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\tint mod = val % m;\n\t\t\tif (array[mod] == -1) {\n\t\t\t\tarray[mod] = val;\n\t\t\t\tresult[1]++;\n\t\t\t\tcount++;\n\t\t\t} else if (firstTime) {\n\t\t\t\tresult[0] = count;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void setArray(int i, Array x);", "public int[] getArray() {\n\t\treturn array;\n\t}", "private static void fillArray(int[][] array) {\n for (int i = 0; i < array.length; i++)\n for (int j = 0; j < array[i].length; j++)\n array[i][j] = i + j;\n\n // The following lines do nothing\n array = new int[1][1];\n array[0][0] = 239;\n }", "public static void linearFillArray(int[] array) {\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = i;\n\t\t}\n\n\t}", "public void set(int[] ai);", "void init(int size) {\n int numOfElements = size / MAX_BITS;\n if (size % MAX_BITS > 0)\n numOfElements++;\n\n values = new long[numOfElements];\n }", "public o000000ooo[] newArray(int i) {\n return new o000000ooo[i];\n }", "public int[] toArray() \n {\n \treturn arrayCopy(state);\n }", "public final int[] mo18194b(int i) {\n return new int[i];\n }", "public int[] toArray() {\n return Arrays.copyOf(buffer, elementsCount);\n }", "public int[] getArray() {\r\n\t\treturn array;\r\n\t}" ]
[ "0.74692297", "0.73389935", "0.7335861", "0.73140204", "0.71245253", "0.7092081", "0.6927457", "0.692736", "0.69170713", "0.68710226", "0.6831874", "0.68309784", "0.68300176", "0.68192774", "0.6749456", "0.66991556", "0.6673683", "0.66693085", "0.66467327", "0.66451603", "0.6638194", "0.6629791", "0.6540826", "0.6535463", "0.65117085", "0.649889", "0.64774", "0.64378554", "0.6413342", "0.6409459", "0.6405665", "0.6399941", "0.6391884", "0.63831425", "0.63614637", "0.63560915", "0.6342659", "0.6328742", "0.63161683", "0.6302579", "0.6301969", "0.6295218", "0.62880176", "0.62754583", "0.62709796", "0.6234031", "0.6225127", "0.62198627", "0.62155515", "0.6189565", "0.61848694", "0.61759555", "0.6168917", "0.61678857", "0.6156093", "0.6135729", "0.61317366", "0.6121551", "0.61197793", "0.6114135", "0.61117995", "0.6109661", "0.6102325", "0.6099058", "0.60935664", "0.60835594", "0.6075908", "0.6075107", "0.6054504", "0.6053972", "0.6047007", "0.6038562", "0.6033937", "0.603379", "0.60316575", "0.6029256", "0.6015542", "0.5978431", "0.59776324", "0.5970715", "0.5960752", "0.5955685", "0.5945925", "0.59444386", "0.59378594", "0.5937805", "0.59303015", "0.59226704", "0.5904445", "0.58966625", "0.5892033", "0.5891803", "0.58917713", "0.588432", "0.58804154", "0.58767074", "0.5872623", "0.5869769", "0.5868218", "0.5867696", "0.5862081" ]
0.0
-1
Uses tail recursion to find the recursive sum
public static int tailSum(int[] arr){ if(arr.length == 0){ System.err.println("The array is empty"); return -1; } return findTailSum(arr, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}", "protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }", "static int sumLinkedList(LinkedListProblems.Node head){\n int sum=0;\n if(head==null){\n return sum;\n }\n sum=sumLinkedList(head.next);// head recursion will to top to recursive stack first before processing\n sum+=head.val; //process Same as one line sum+= head.val+sumLinkedList(head.next);\n return sum;\n }", "public static void main(String[] args){\n\t\tint[] intArr = new int[100];\n\t\tfor(int i = 0; i < 100; i++){\n\t\t\tintArr[i] = i + 1;\n\t\t}\n\t\t\n\t\t// use tail recursion\n\t\tint tSum = tailSum(intArr);\n\t\tSystem.out.println(\"Tail recursion sum: \" + tSum);\n\t\t\n\t\t// use normal recursion\n\t\tint nSum = sum(intArr);\n\t\tSystem.out.println(\"Normal recursion sum: \" + nSum);\n\t}", "private int dfs(TreeNode root, int sum) {\n if (root == null) return sum;\n int rsum = dfs(root.right, sum);\n root.val += rsum;\n return dfs(root.left, root.val);\n }", "private int dfs_my(TreeNode root, int sum) {\n if (root == null) return 0;\n int rsum = dfs(root.right, sum);\n int oval = root.val;\n root.val += sum + rsum;\n int lsum = dfs(root.left, root.val);\n return oval + lsum + rsum;\n }", "public static int recursionSum(int[] num, int n) {\n if (n <= 2)\n System.out.println(num[n]);\n if (n <= 0)\n return 0;\n return recursionSum(num, n - 1) + num[n - 1];\n }", "public int maxPathSum(TreeNode root) {\n helper(root); \n //run the function but don't use the final return value\n //only save the \"result\" when we run the function\n return result;\n }", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "static BigInteger findSum(BigInteger n) {\n if (n.equals(BigInteger.ZERO))\n return BigInteger.ZERO;\n BigInteger TWO = BigInteger.valueOf(2);\n\n BigInteger sum = BigInteger.ZERO;\n sum = sum.add(\n n.multiply(n.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n BigInteger flooredN = findFraction(n);\n sum = sum.add(\n n.multiply(flooredN)\n );\n\n sum = sum.subtract(\n flooredN.multiply(flooredN.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n sum = sum.subtract(findSum(flooredN));\n\n return sum;\n }", "public int sumNumbers(TreeNode root) {\n // track the sum that we want to add\n int solution = 0;\n\n // execute a dfs to find the leaf nodes\n solution = findLeafNodes(root, solution);\n\n // return the solution\n return solution;\n }", "public int sum()\n {\n return sum(0,0,size);\n }", "public long iterativeSum(long n){\n long result = 0;\n for(long i = 1L; i <= n; i++){\n result += i;\n }\n return result;\n }", "int sumRootToLeafNumbers();", "public static int dfs(TreeNode root, int sum){\n\t\tif(root.left == null && root.right == null){\r\n\t\t\treturn 10*sum + root.val;\r\n\t\t\t//result.add(sum);\r\n\t\t}\r\n\t\tif(root.left != null && root.right == null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val);\r\n\t\t}\r\n\t\tif(root.right != null && root.left == null){\r\n\t\t\treturn dfs(root.right, 10*sum+root.val);\r\n\t\t}\r\n\t\t//if(root.left != null && root.right != null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val)+dfs(root.right, 10*sum+root.val);\r\n\t\t//}\r\n\t\t//for(int i = 0; i < result.size(); i++){\r\n\t\t\t//System.out.print( result.get(i) + \"->\");\r\n\t\t//}\r\n\t}", "public int recursive(int n) {\r\n //base case: return n if <= 1\r\n if (n <= 1) {\r\n return n;\r\n }\r\n //else return result of of two previous #s being added to each other\r\n return recursive(n - 1) + recursive(n - 2);\r\n }", "long getRsum(int n, int i, int k){\r\n return n-i>=k ? (n-i-k)+ssum(k-1): ssum(k-1) - ssum(k-n+i);\r\n }", "static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }", "private static long countSummations(int target, int currSum, int lastVal){\n if (currSum == target){\n return 1;\n }\n\n long numSummations = 0;\n\n for (int i = 1; i <= lastVal; i++){\n if (i + currSum > target){\n return numSummations;\n }\n currSum += i;\n numSummations += countSummations(target, currSum, i);\n currSum -= i;\n }\n return numSummations;\n }", "public int sumNumbers2(TreeNode root) {\n \n int sum = 0 ;\n int cur = 0 ;\n Stack<Pair<TreeNode, Integer>> stack = new Stack<>() ;\n stack.push(new Pair(root, 0)) ;\n \n while(!stack.empty()){\n \n Pair<TreeNode, Integer> p = stack.pop() ;\n root = p.getKey() ;\n cur = p.getValue() ;\n \n if(root != null){\n \n cur = cur * 10 + root.val ;\n \n if(root.left == null && root.right == null){\n sum += cur ;\n }else{\n stack.push(new Pair(root.left, cur)) ;\n stack.push(new Pair(root.right, cur)) ;\n }\n \n }\n \n \n }\n \n return sum ; \n \n \n }", "private static int summation(int x) {\n if (x == 1)\n return 1;\n else \n return x + summation(x - 1);\n }", "static int recursiva2(int n)\n\t\t{\n\t\t\tif (n==0)\n\t\t\treturn 10; \n\t\t\tif (n==1)\n\t\t\treturn 20;\n\t\t\tif (n==2)\n\t\t\treturn 30;\n\t\t\t\n\t\t\treturn recursiva2(n-1) + recursiva2 (n-2) * recursiva2 (n-3); \n\t\t}", "static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}", "long getLsum(int n, int i, int k){ \r\n return (i-k+1)>=0 ? (i-k+1) + ssum(k) : ssum(k) - ssum(k-i-1);\r\n }", "public int sum2() {\n\t\tint ans = 0;\n\t\tfor (ListNode<T> p = this; p != null; p = p.next) {\n\t\t\tans = ans + p.value; // fail!\n\t\t}\n\t}", "public int sumNumbers(TreeNode root) {\n\t if(null == root) return 0;\n\t int bsum = 0;\n\t int tsum = 0;\n\t return sum (root, bsum, tsum);\n\t \n\t }", "private static Pair<Integer, Integer> getMaxSumHelper(Node root) {\n\t\t\n\t\tif(root.left_ == null && root.right_ == null) {\n\t\t\treturn new Pair<Integer, Integer>(root.data_, 0);\n\t\t}\n\t\t\n\t\tPair<Integer, Integer> lp = null;\n\t\tif(root.left_ != null) {\n\t\t\tlp = getMaxSumHelper(root.left_);\n\t\t}\n\t\t\n\t\tPair<Integer, Integer> rp = null;\n\t\tif(root.right_ != null) {\n\t\t\trp = getMaxSumHelper(root.right_);\n\t\t}\n\t\t\n\t\treturn new Pair<Integer, Integer>(\n\t\t\t\tlp.getValue()+rp.getValue()+root.data_, \t// root inclusiveSum + sum of children exclusiveSum\n\t\t\t\tlp.getKey()+rp.getKey());\t\t\t\t\t// root exclusiveSum -> sum of children inclusiveSum\n\t\t\n\t}", "public int sumDescendants() {\n if (left == null && right == null) {\n int oldVal = value;\n /* fill code*/\n value = 0;\n return oldVal;\n\n } else {\n int oldVal = value;\n\n /* fill code*/\n value = left.sumDescendants()+ right.sumDescendants();\n\n return oldVal + value;\n\n }\n }", "private static int fab_recursive_2(int kth) {\n\n\t\tif (kth == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (kth == 1) {\n\t\t\treturn fab_recursive_2(kth - 1) + 1;\n\t\t}\n\t\treturn fab_recursive_2(kth-1) + fab_recursive_2(kth-2);\n\t}", "static int sumDownBy2(int i) {\n\t\tif (i<=2) { // Stop recursing when the number is 2 or 1\n\t\t\tif (i < 0) {return 0;} // If there is a negative number, default to zero\n\t\t\telse { return i;}\n\t\t}\n\t\telse {\n\t\t\treturn i + sumDownBy2(i-2);\n\t\t}\n\t}", "protected int sumIterative(int a, int b){\n int result = a;\n while (b != 0){\n if (b > 0){\n result++;\n b--;\n } else {\n result--;\n b++;\n }\n }\n return result;\n }", "private int pathSumFrom(TreeNode node, int sum){\n if(node == null){\n return 0;\n }\n if(node.val == sum){\n // if the val in node is equal to sum we have found a path (node only)\n // and we check if we can add more nodes to the left and the right\n return 1 + pathSumFrom(node.left, sum-node.val) + pathSumFrom(node.right, sum-node.val);\n }\n else{\n return pathSumFrom(node.left, sum-node.val) + pathSumFrom(node.right, sum-node.val);\n }\n }", "public static int sumLast( IntNode head, int num ) {\r\n\t\t\r\n\t\tint sum = 0;\r\n\t\t// when num is bigger than the number of nodes in the list, it should return the summation of elements in all the nodes\r\n\t\tIntNode cursor = head;\r\n\t\tif( num > listLength(head) )\r\n\t\t\tnum = listLength(head);\r\n\t\tfor( int i = 1; i <= num; i++ ) {\r\n\t\t\tif( cursor != null ) {\r\n\t\t\t\tsum = sum + cursor.data;\r\n\t\t\t\tcursor = cursor.link;\r\n\t\t\t} // end if\r\n\t\t} // end for\r\n\t\treturn sum;\r\n\t\t\r\n\t}", "private static List<List<Integer>> pathSum(TreeNode root, int sum) {\n List<List<Integer>> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n List<Integer> path = new ArrayList<>();\n path.add(root.value);\n dfs(root, sum - root.value, result, path);\n return result;\n }", "public int sumNumbers(TreeNode root) {\n if(root == null)\n return 0;\n res = 0;\n sumnum(root,0);\n return res;\n }", "public int cumulativeSum() {\n int sum = 0;\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n sum = sum + p_eqn.result;\n p_eqn = p_eqn.next;\n }\n if (p_eqn == null) {\n sum = sum;\n }\n return sum;\n }", "private static void findSum(Node node, int sum, int[] buffer, int level) {\n if (node == null)\n return;\n\n buffer[level] = node.value;\n int t = 0;\n for (int i = level; i >= 0; i--) {\n t += buffer[i];\n\n if (t == sum)\n print(buffer, i, level);\n }\n\n findSum(node.left, sum, buffer, level + 1);\n findSum(node.right, sum, buffer, level + 1);\n }", "private static int helper(TreeNode root, TreeNode p, TreeNode q, List<TreeNode> ans) {\n if (root == null)\n return 0;\n int sum = 0;\n if (root.val == p.val || root.val == q.val)\n ++sum;\n int leftSum = helper(root.left, p, q, ans);\n int rightSum = helper(root.right, p, q, ans);\n sum += leftSum + rightSum;\n if (sum == 2 && leftSum < 2 && rightSum < 2)\n ans.add(root);\n return sum;\n }", "static long journey(int[] path, int k) {\n calculateSumRecursive(path,k,0,0);\n return maxSum;\n }", "private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }", "int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\n}", "static void k_paths(Node root, int k, HashMap<Integer, Integer> p, int sum) {\n\t\t// If root value and previous sum equal\n\t\t// to k then increase the count\n\t\tif (root != null) {\n\t\t\tif (root.data + sum == k) {\n\t\t\t\tres++;\n\t\t\t}\n\t\t\t// Add those values also which differs\n\t\t\t// by the current sum and root data by k\n\t\t\tres += p.get(sum + root.data - k) == null ? 0 : p.get(sum + root.data - k);\n\n\t\t\t// Insert the sum + root value in the map\n\t\t\tif (!p.containsKey(sum + root.data)) {\n\t\t\t\tp.put(sum + root.data, 0);\n\t\t\t}\n\t\t\tp.put(sum + root.data, p.get(sum + root.data) + 1);\n\n\t\t\t// Move to left and right trees\n\t\t\tk_paths(root.left, k, p, sum + root.data);\n\t\t\tk_paths(root.right, k, p, sum + root.data);\n\n\t\t\t// Remove the sum + root.data value\n\t\t\t// from the map if they are n not\n\t\t\t// required further or they do no\n\t\t\t// sum up to k in any way\n\t\t\tp.put(sum + root.data, p.get(sum + root.data) - 1);\n\t\t}\n\t}", "private static void findNumbers(int[] candidates, int sum,\n List<List<Integer>> res, List<Integer> r, int i) {\n if (sum < 0) {\n return;\n }\n\n // if we get exact answer\n if (sum == 0) {\n List<Integer> r2 = new ArrayList<>(r);\n if (!res.contains(r2)) {\n res.add(r2);\n }\n return;\n }\n\n // Recur for all remaining elements that have value smaller than sum.\n while (i < candidates.length - 1) {\n i++;\n\n // Till every element in the array starting from i which can contribute to the sum\n r.add(candidates[i]); // add them to list\n\n // recur for next numbers\n findNumbers(candidates, sum - candidates[i], res, r, i);\n\n // remove number from list (backtracking)\n r.remove(r.size() - 1);\n }\n }", "public int maxPathSum(TreeNode root) {\n\t\t int[] max = new int[]{Integer.MIN_VALUE};\n\t\t helper(root,max);\n\t\t return max[0];\n\t }", "public static int sum(int begin, int end) {\n\t\tif (begin == end)\n\t\t\treturn begin;\n\t\tint mid = (begin + end) / 2;\n\t\treturn sum(begin, mid) + sum(mid + 1, end);\n\n\t}", "public int maxPathSum(TreeNode root) {\n int maxSum[] = {Integer.MIN_VALUE};\n maxPathSum(root, maxSum);\n return maxSum[0] == Integer.MIN_VALUE ? 0 : maxSum[0];\n }", "public static int maxPathSum2(BTreeNode root) {\n\t\tMyResult result = new MyResult();\n\t\tauxPathSum2(root, 0, result);\n\t\treturn result.maxsum;\n\t}", "static double geometricSum(int k) {\n\t\tif (k==0) \n\t\t\treturn 1; // Endpoint\n\t\telse \n\t\t\treturn 1/Math.pow(2,k) + geometricSum(k-1); \n\t}", "public int maxPathSum(TreeNode root) {\n int tempMax = maxPathSumHelper(root);\n return finalMax;\n }", "private boolean pathSum(TreeNode root, int i, int sum) {\n\t\tif(root==null)\n\t\t return false;\n\t\tif(root.left==null&&root.right==null)\n\t\t\treturn sum == (root.val + i);\n\t\treturn pathSum(root.left,root.val+i,sum)||pathSum(root.right,root.val+i,sum);\n\t}", "private int recursiveTopDown(int[] price, int n) {\n if( n== 0) return 0;\n int ans = Integer.MIN_VALUE;\n\n for (int i = 0; i < n; i++) {\n ans = Math.max(ans, price[i] + recursiveTopDown(price, n - 1 - i));\n }\n return ans;\n }", "public int maxPathSum(TreeNode root) {\n\t\tint[] globalMax = new int[] {Integer.MIN_VALUE};\r\n\t\thelper(root, globalMax);\r\n\t\treturn globalMax[0];\r\n\t}", "public int maxPathSum(TreeNode root) {\n helper(root);\n return max;\n }", "public int sumNumbers(TreeNode root) {\n int solution = 0;\n\n String currentPath = \"\";\n\n // execute a dfs to find the leaf nodes\n findLeafNodes(root, currentPath);\n\n // loop through all the paths, convert to int, add to solution\n for(String curr:rootToLeafs){\n // save the current string as an integer\n int currentVal = Integer.parseInt(curr);\n\n // add the current value to the solution\n solution+=currentVal;\n }\n\n // return the solution\n return solution;\n }", "private static void recursiveFixedSumPairs(/* determine parameters here */){\r\n\t\t// complete this method\r\n\t\t\r\n\t}", "public int stackSum(int[] stack, int last) {\r\n\t\tint sum = 0;\r\n\t\tfor (int a = 0; a <= last; a++)\r\n\t\t\tsum += stack[a];\r\n\t\treturn sum;\r\n\t}", "private static BigInteger findSum(BigInteger start, BigInteger end) {\n return start.add(end).multiply(end.subtract(start).add(new BigInteger(\"1\"))).divide(new BigInteger(\"2\"));\n }", "private static int sum1DArrRecursive(int[] myArr1D, int min, int max)\n {\n int sum = 0;\n if(min==max)\n { \n sum += myArr1D[max];\n return sum;\n }\n else\n {\n sum += myArr1D[min] + sum1DArrRecursive(myArr1D, min+1, max);\n return sum;\n }\n }", "public static int sum1(int[] a, int n) // summen av de n første\n {\n if (n == 1) return a[0]; // summen er verdien selv\n return sum1(a,n-1) + a[n-1]; // summen av de n-1 første + a[n-1]\n }", "private static long countSummations(int target) {\n if (target == 1){\n return 1;\n }\n\n return countSummations(target, 0, target - 1);\n }", "public int maxPathSumHelper(TreeNode root) {\n\n if(root == null) {\n return 0;\n }\n\n int leftSum = maxPathSumHelper(root.left);\n int rightSum = maxPathSumHelper(root.right);\n\n // Compare leftSum + rool.val with rightSum + root.val to select which values to send further\n int maxTillNow = Math.max(leftSum + root.val, rightSum + root.val);\n \n // Check if the root value is greater than any of the path\n maxTillNow = Math.max(maxTillNow, root.val);\n \n //if root + left + root.val is greater than any of the max till now\n int tempMax = Math.max(maxTillNow, leftSum + rightSum + root.val);\n\n finalMax = Math.max(tempMax, finalMax);\n\n return maxTillNow;\n }", "int backTrack(int[] nums, int targetSum, int startIndex, int computedSum, int[][] dp) {\n if (startIndex == nums.length) {\n if (targetSum == computedSum) {\n return 1;\n\n }\n return 0;\n } else {\n\n int add = backTrack(nums, targetSum, startIndex + 1, computedSum + nums[startIndex], dp);\n\n int subtract = backTrack(nums, targetSum, startIndex + 1, computedSum - nums[startIndex], dp);\n dp[startIndex][computedSum] = add + subtract;\n return dp[startIndex][computedSum];\n }\n\n }", "private int calc(int x, int n, int i, int sum) {\n int ways = 0;\n\n // Calling power of 'i' raised to 'n'\n int p = (int) Math.pow(i, n);\n while (p + sum < x) {\n // Recursively check all greater values of i\n ways += calc(x, n, i + 1,\n p + sum);\n i++;\n p = (int) Math.pow(i, n);\n }\n\n // If sum of powers is equal to x\n // then increase the value of result.\n if (p + sum == x)\n ways++;\n\n // Return the final result\n return ways;\n }", "private int dfsInOrderIterativeSol(TreeNode root, int k) {\n // Corner Case\n if (root == null) {\n return 0;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n TreeNode node = root;\n int countNum = 0;\n\n while (!stack.isEmpty() || node != null) {\n if (node != null) {\n stack.push(node); // just like the recursion\n node = node.left;\n } else {\n TreeNode curNode = stack.pop();\n countNum++;\n if (countNum == k) {\n return curNode.val;\n }\n node = curNode.right;\n }\n }\n return 0;\n\n // // push nodes till the left end\n // while (root != null) {\n // stack.push(root);\n // root = root.left;\n // }\n\n // while (k != 0) {\n // TreeNode curNode = stack.pop();\n // k -= 1;\n // if (k == 0) {\n // return curNode.val;\n // }\n\n // TreeNode rightNode = curNode.right;\n // // push the right node till the left end still!!!\n // while(rightNode != null) {\n // stack.push(rightNode);\n // rightNode = rightNode.left;\n // }\n // }\n\n // return 0; // never hit if k is valid and root is not null\n }", "public List<List<Integer>> pathSum(TreeNode root, int sum) {\n if(root==null)\n return res;\n dfs(root, sum, new ArrayList<Integer>());\n return res;\n }", "public static int sum (IntVector iv) {\n if (iv.isEmpty())\n return 0;\n else\n return iv.head() + sum(iv.tail());\n }", "public int maxPathSum(TreeNode root) {\n\t\tint[] maxSum = new int[1];\n\t\tmaxSum[0] = Integer.MIN_VALUE;\n\t\tmaxPathSum(root, maxSum);\n\t\treturn maxSum[0];\n\t}", "public int depthSumInverse(List<NestedInteger> nestedList) {\n findMaxDepth(nestedList, 1);\n calculateSum(nestedList, 1);\n return sum;\n }", "private static int combinationRecursive(int n, int k) {\n\t\tif (k == 0 || n == k) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn (int)(n/(double)k) * combinationRecursive(n-1, k-1);\n\t\t}\n\t}", "static INT findLargestSubtreeSumUtil(Node root, INT ans) {\n\t\t// If current node is null then\n\t\t// return 0 to parent node.\n\t\tif (root == null)\n\t\t\treturn new INT(0, null);\n\n\t\t// Subtree sum rooted\n\t\t// at current node.\n\t\tINT tmp = new INT(0, root);\n\t\tINT left = (INT)findLargestSubtreeSumUtil(root.left, ans);\n\t\tINT right = (INT)findLargestSubtreeSumUtil(root.right, ans);\n\t\ttmp.v = (int)(root.key + left.v + right.v) / maxDepth(root);\n\n\t\t// Update answer if current subtree\n\t\t// sum is greater than answer so far.\n\t\t\n\t\tif (tmp.v > ans.v ) {\n\t\t\tans.v = Math.max(ans.v, tmp.v);\n\t\t\tans.n = tmp.n;\n\t\t}\n\n\t\t// Return current subtree\n\t\t// sum to its parent node.\n\t\treturn new INT(root.key, root);\n\t}", "public static long FiboRec (int n) {\n if (n < 0) {\n return -1;\n } \n if (n == 0 || n == 1) {\n return n;\n }\n return FiboRec(n-1) + FiboRec(n-2);\n }", "@Test public void dynFuncCall() {\n check(\"let $sum :=\" +\n \" function($seq) {\" +\n \" let $go :=\" +\n \" function($seq, $acc, $go) {\" +\n \" if(empty($seq)) then $acc\" +\n \" else $go(tail($seq), $acc + head($seq), $go)\" +\n \" }\" +\n \" return $go($seq, 0, $go)\" +\n \" }\" +\n \"return $sum(1 to 100000)\",\n\n 5000050000L,\n\n empty(Util.className(FuncItem.class) + \"//\" + Util.className(DynFuncCall.class) +\n \"[@tailCall eq 'false']\")\n );\n }", "private long getValueRecursive(double amount, boolean isBuyOrder)\n\t{\n if (amount < 0)\n throw new RuntimeException(\"Cannot compute for amount <= 0 on material \" + getAbsoluteId());\n int calcAmount = (int)(amount+0.5);\n if (calcAmount == 0)\n return 0;\n \n /* Ending recursive case. I've heard that the math here\n * can look scary at first. */\n if (isRaw())\n {\n int blockQty = SQL.getInstance().sQuantity(blockName.toString());\n\n int leftover, end, start = blockQty;\n if (isBuyOrder) {\n leftover = calcAmount - (blockQty - minQty);\n end = leftover <= 0 ? blockQty - calcAmount + 1 : minQty + 1;\n } else {\n leftover = calcAmount - (maxQty - blockQty);\n end = leftover <= 0 ? blockQty + calcAmount - 1 : maxQty - 1;\n }\n\n double total;\n if (start == end)\n total = getPrice(start);\n else {\n total = getPrice(start) + getPrice(end);\n int entries;\n if (start > end)\n entries = start - end + 1;\n else\n entries = end - start + 1;\n\n if (entries % 2 == 0)\n total *= entries / 2;\n else\n total = total * ((entries - 1) / 2) + (total / 2);\n }\n if (leftover > 0)\n if (isBuyOrder)\n total += maxPrice * leftover;\n else\n total += minPrice * leftover;\n\n return (long)total;\n }\n\n //Recursive Step\n long costPerOne = 0;\n int ingredients = formula.getIngredientsCount();\n for (int i = 0; i < ingredients; i++)\n costPerOne += formula.getIngredient(i).getValueRecursive(formula.getIngredientCount(i), isBuyOrder);\n costPerOne /= produces;\n return calcAmount * costPerOne;\n\t}", "public static int sum(int a, int b) {\n\t\tif (b <= 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn sum(a + 1, b - 1);\n\t\t}\n\t}", "public Node findSumOfNumbers(Node l1, Node l2) {\n\t\tint carry =0;\n \n\t\tNode newHead = null;\n\t\tNode tempNodeForIteration=null;\n\t\tint sum=0;\n \n\t\tint count=0;\n\t\twhile(l1!=null || l2!=null)\n\t\t{\n\t\t\tcount++;\n\t\t\tsum=carry;\n\t\t\tif(l1!=null)\n\t\t\t{\n\t\t\t\tsum=sum+l1.value;\n\t\t\t\tl1=l1.next;\n\t\t\t}\n \n\t\t\tif(l2!=null)\n\t\t\t{\n\t\t\t\tsum=sum+l2.value;\n\t\t\t\tl2=l2.next;\n\t\t\t}\n \n \n\t\t\tcarry=sum/10;\n\t\t\tsum=sum%10;\n\t\t\t// Check if it first node for the result\n\t\t\tif(count==1)\n\t\t\t{ \n\t\t\t\ttempNodeForIteration = new Node(sum);\n\t\t\t\tnewHead=tempNodeForIteration;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// 1-->5 -->7\n\t\t\t\t//tempNodeForIteration first node is =1\n\t\t\t\tNode tempSumNode=new Node(sum);\n\t\t\t\t//tempNodeForIteration second node is =5\n\t\t\t\ttempNodeForIteration.next=tempSumNode;\n\t\t\t\t//tempNodeForIteration node holding last node =5\n\t\t\t\ttempNodeForIteration=tempNodeForIteration.next;\n\t\t\t}\n \n\t\t}\n\t\tif(carry!=0)\n\t\t{\n\t\t\tNode tempNode=new Node(carry);\n\t\t\ttempNodeForIteration.next=tempNode;\n\t\t}\n\t\treturn newHead;\n\t}", "static long subArraySum(int[] data) {\n\n long result = 0;\n\n // computing sum of sub array using formula\n int n = data.length;\n for (int i = 0; i < n; i++) {\n // x * (x at first index) + (x at other indices)\n result += (data[i] * (i * (n - i) + (n - i)));\n//\t\t\tresult += (data[i] * (i + 1) * (n - i));\n }\n\n // return all sub array sum\n return result;\n }", "double getSum();", "double getSum();", "public AbstractTree<T> calculateSizeAndSum() {\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n T sum = (T)(Number)0;\n int size = 0;\n\n while (pendingNodes.size() != 0) {\n Node<T> currNode = pendingNodes.poll();\n\n size++;\n sum = operations.add(sum, currNode.getValue());\n\n pendingNodes.addAll(currNode.getChildren());\n }\n\n this.size = size;\n this.sum = sum;\n\n return this;\n }", "public static void main(String[] args) {\n\t\tint[] a = {38, 27, 43, 3, 9, 82, 10};\n\t System.out.println(\"Add after forloop: \"+ sumByForloop(a));\n\t System.out.println(\"Add after while: \"+ sumByWhile(a));\n\t System.out.println(\"Add after rec: \"+ sumByRec(a,a.length-1));\n\n\t}", "public int robTotal(int[] nums, int sums[],int start, int end) {\n\t\tfor (int i = start; i< end+1; i++) {\n\t\t\trobRecAtIndex(i, nums, sums);\n\t\t}\n\t\treturn sums[end];\n\t}", "public ArrayList<ArrayList<Integer>> pathSum(TreeNode n, int sum) {\t\t\t\r\n\t\t\r\n\t\t\tArrayList<ArrayList<Integer>> al = new ArrayList<ArrayList<Integer>>();\r\n\t\t\tif (n == null)\r\n\t\t\t\treturn al;\r\n\t\t\tpSum(n, sum, al);\r\n\t\t\t\r\n\t\t\treturn al;\r\n\t \r\n\t }", "public static int sumNumberRec(int i)\r\n\t{\n\t\tif (i == 0){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn (i % 10) + sumNumberRec( i / 10);\r\n\t\t}\r\n\t}", "private int dfs(int[][] matrix, int i, int j, int last, int[][] memo) {\n if (i < 0 || i >= matrix.length || j < 0 || j >= matrix[0].length || matrix[i][j] <= last) {\n return 0;\n }\n if (memo[i][j] != 0) {\n return memo[i][j];\n }\n int maxLength = 0;\n maxLength = Math.max(maxLength, dfs(matrix, i - 1, j, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i + 1, j, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i, j - 1, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i, j + 1, matrix[i][j], memo));\n memo[i][j] = maxLength + 1;\n return memo[i][j];\n }", "public OutT combineValuesAtDepth(int depth, ReduceFunction<T,OutT> f) {\n //PART 2 HERE\n Queue<TreeNode<T>> q = new LinkedList<>();\n TreeNode<T> knoten = root;\n int n = 0;\n q.add(knoten);\n while(n != depth){\n \n int nodesAtLevel = q.size();\n \n while(nodesAtLevel > 0){\n knoten = q.poll();\n if(knoten.left != null){\n q.add(knoten.left);\n }\n if(knoten.right != null){\n q.add(knoten.right);\n }\n nodesAtLevel--;\n } //end inner while loop\n n++;\n } // end outer while loop\n \n OutT sum = f.initialValue();\n for(TreeNode<T> nodes : q){\n sum = f.combine(sum, nodes.data);\n }\n return sum;\n }", "public int sumRange(SegmentTreeNode root, int i, int j) {\n\t\tif (root == null) return 0;\n\t\t\n\t\tif (root.start == i && root.end == j) {\n\t\t\treturn root.sum;\n\t\t}\n\t\tint mid = root.start + (root.end - root.start) / 2;\n\t\tif (j <= mid) {\n\t\t\treturn sumRange(root.left, i, j);\n\t\t} else if (i > mid) {\n\t\t\treturn sumRange(root.right, i, j);\n\t\t} else {\n\t\t\treturn sumRange(root.left, i, mid) + sumRange(root.right, mid + 1, j);\n\t\t}\n\t}", "private int recursiveFib(int n) {\r\n if (n <= 2) {\r\n return 1;\r\n }\r\n \r\n return recursiveFib(n - 2) + recursiveFib(n - 1);\r\n }", "public static long factorialUsingRecursion (int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n\n if(num == 0)\n return 1;\n\n return num*factorialUsingRecursion(num-1);\n\n }", "public static int sumDownBy2(int n) {\n\t\tif (n == 0) {\n\t\t\treturn 0;\n\t\t} else if (n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n + sumDownBy2(n - 2);\n\t\t}\n\t}", "public static int sizeIterative(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint count = 0;\r\n\t\tQueue<Node> queue = new LinkedList<>();\r\n\t\tqueue.add(root);\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tNode temp = queue.poll();\r\n\t\t\tif (temp != null) {\r\n\t\t\t\tcount++;\r\n\t\t\t\tqueue.add(temp.left);\r\n\t\t\t\tqueue.add(temp.right);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "private static int sum(List<Integer> L, int i,int j) {\n\t\tSystem.out.println(L+\"\\n\"+\"index i = \"+i+\"\\n\"+\"index j = \"+j);\n\t\tList<Integer> subListToSum = new ArrayList<Integer>();\n\t\t\n\t\tif (i <= j) { //make sure that i is less than j so we have a sublist of at least one\n\t\t\tsubListToSum.addAll(L.subList(i, j));\n\t\t\t\n\t\t}\n\t\t\n\t\telse if (i > j) { //print out a error so the user knows what they did wrong\n\t\t\tSystem.out.println(\"index 'i' is more than index 'j'\");\n\t\t}\n\t\t\n\t\tint sizeList = L.size(); //only reaches here if i <= j\n\t\tSystem.out.println(\"size of list is: \" + sizeList);\n\t\tif (j <= sizeList & i <= sizeList) { //check to account for out of bounds and negatives\n\t\t\tint result = 0;\n\t\t\t\n\t\t\tfor (int allInts : subListToSum) {\n\t\t\t\tresult += allInts;\n\t\t\t};\n\t\t\t\n\t\t\tSystem.out.println(\"Sum(\" + i + \", \" + j + \")\" + \" = \" + result);\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "public int sum(int[] bit, int index) {\n index = index + 1;\n int sum = 0;\n while (index > 0) {\n sum += bit[index];\n index = getParent(index);\n }\n return sum;\n }", "public static int fibonacciRecursion(int n) {\r\n if (n == 0) {\r\n return 0;\r\n }\r\n if (n == 1 || n == 2) {\r\n return 1;\r\n }\r\n return fibonacciRecursion(n - 2) + fibonacciRecursion(n - 1);\r\n }", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "public abstract T accumulate(T left, T right);", "int maxSubarraySum(int arr[], int n){\n \n // Your code here\n int cursum = arr[0];\n int osum = arr[0];\n \n for(int i=1;i<n;i++){\n if(cursum>=0){\n cursum+=arr[i];\n }else{\n cursum=arr[i];\n }\n if(cursum>osum){\n osum=cursum;\n }\n }\n return osum;\n \n }", "public static int fibSum(int n) {\n int sum = 0;\n int fib1 = 1;\n int fib2 = 1;\n for (int i = 3; fib2 < n; i++) {\n int x = fib1 + fib2;\n fib1 = fib2;\n fib2 = x;\n if (fib2 % 2 == 0) sum += fib2;\n }\n return sum;\n }", "int fibonacciNumberFinder(int n){\n if (n <= 1){\n return n;\n }\n return fibonacciNumberFinder(n - 1) + fibonacciNumberFinder(n - 2);\n }", "private static void helper(TreeNode root, int curSum, int curLen) {\n if (root == null) {\n if (maxLen < curLen) {\n maxLen = curLen;\n maxSum = curSum;\n } else if (maxLen == curLen && maxSum < curSum) {\n maxSum = curSum;\n }\n return;\n }\n\n // do this for left and right\n helper(root.left,curSum + root.val, curLen + 1);\n helper(root.right,curSum + root.val, curLen + 1);\n }", "@Test public void selfRecursive() {\n check(\"declare function local:f($i) { if($i eq 12345) then $i else local:f($i+1) };\" +\n \"local:f(0)\",\n\n 12345,\n\n exists(Util.className(If.class) + '/' + Util.className(StaticFuncCall.class) +\n \"[@tailCall eq 'true']\")\n );\n }" ]
[ "0.69562155", "0.6770246", "0.67412", "0.6558051", "0.6536706", "0.65269053", "0.6526279", "0.6452972", "0.6373978", "0.6235236", "0.61544406", "0.6122263", "0.6119384", "0.6116771", "0.6084892", "0.6048373", "0.60327905", "0.60141337", "0.60108083", "0.59835404", "0.59428704", "0.59423465", "0.594212", "0.5928644", "0.59044296", "0.58919656", "0.58819145", "0.5880436", "0.5875452", "0.5847235", "0.584576", "0.58289605", "0.58078116", "0.5783742", "0.57712346", "0.57469326", "0.5728298", "0.5676592", "0.56763524", "0.56755006", "0.56414735", "0.56343114", "0.56244636", "0.56086266", "0.5602476", "0.5594834", "0.55868196", "0.5585014", "0.5573019", "0.5572312", "0.5571476", "0.5563419", "0.55623716", "0.5556794", "0.5546498", "0.5537042", "0.5524133", "0.5519924", "0.5507453", "0.5498042", "0.5491866", "0.5490159", "0.5487333", "0.54803985", "0.5479773", "0.5479592", "0.5479194", "0.54790723", "0.5460789", "0.5432823", "0.542514", "0.54181635", "0.54127276", "0.5407929", "0.5382283", "0.5380786", "0.5371944", "0.5371944", "0.53501827", "0.5346112", "0.5345217", "0.5343977", "0.53355217", "0.53246874", "0.5321751", "0.5315295", "0.53152144", "0.5304888", "0.5300559", "0.53002584", "0.52947664", "0.5291214", "0.52782464", "0.5276245", "0.5265211", "0.5259614", "0.525583", "0.52558017", "0.52548766", "0.52539206" ]
0.6484668
7
Locates and fixes spikes in a coverage profile (potentially) caused by false positives in a bloom filter. Theory: If a highcount kmer is adjacent on both sides to lowcount kmers, it may be a false positive. It could either be reduced to the max of the two flanking points or examined in more detail.
private static void fixSpikes(int[] array){ for(int i=1; i<array.length-1; i++){ long a=Tools.max(1, array[i-1]); int b=array[i]; long c=Tools.max(1, array[i+1]); if(b>1 && b>a && b>c){ //peak if((b>=2*a || b>a+2) && (b>=2*c || b>c+2)){ //spike array[i]=(int)Tools.max(a, c); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ruleOutPos(){\n for(int i=0;i<scores.length;i++) {\n for(int j=0;j<scores[i].length;j++) {\n scores[i][j][13] = 0;//0=pass, >0 is fail, set to pass initially\n\n //check Ns - bit crude - what to discount regions with high N\n double ns = (double) scores[i][j][14] / (double) pLens[j];\n if (ns >= minPb | ns >= minPm)//\n scores[i][j][13] += 4;\n\n //probe\n if (hasProbe){\n if (j == 1 | j == 4) {\n double perc = (double) scores[i][j][0] / (double) primers[j].length();\n if (perc >= minPb) {\n scores[i][j][12] = 1;//flag for failed % test\n scores[i][j][13] += 2;\n }\n }\n }\n //primer\n else {\n //if more than 2 mismatches in 1-4nt at 3'\n if(scores[i][j][11]>max14nt) {\n scores[i][j][13]+=1;\n }\n //use mLen (combined F and R length) initially to find initial candidates - filter later\n double perc=(double)scores[i][j][0]/(double)mLen;\n double percI=(double)scores[i][j][0]/(double)pLens[j];\n\n if(perc>=minPm | percI>=minPmI) {\n scores[i][j][12]=1;//flag for failed % test\n scores[i][j][13]+=2;\n }\n }\n }\n }//end of finding positions that prime loop\n }", "@Test\n public void testShadowBuffer(){\n numberOfTrees = 100;\n sampleSize = 256;\n dimensions = 3;\n randomSeed = 123;\n\n RandomCutForest newForest = RandomCutForest.builder()\n .numberOfTrees(numberOfTrees)\n .sampleSize(sampleSize)\n .dimensions(dimensions)\n .randomSeed(randomSeed)\n .centerOfMassEnabled(true)\n .storeSequenceIndexesEnabled(true)\n .build();\n\n dataSize = 10_000;\n\n baseMu = 0.0;\n baseSigma = 1.0;\n anomalyMu = 5.0;\n anomalySigma = 1.5;\n transitionToAnomalyProbability = 0.01;\n transitionToBaseProbability = 0.4;\n\n NormalMixtureTestData generator = new NormalMixtureTestData(baseMu, baseSigma, anomalyMu, anomalySigma,\n transitionToAnomalyProbability, transitionToBaseProbability);\n double[][] data = generator.generateTestData(dataSize, dimensions);\n\n for (int i = 0; i < dataSize; i++) {\n newForest.update(data[i]);\n }\n\n double [] point = new double [] {-8.0,-8.0,0.0};\n DiVector result=newForest.getAnomalyAttribution(point);\n double score=newForest.getAnomalyScore(point);\n assertEquals(score,result.getHighLowSum(),1E-10);\n assertTrue(score>2);\n assertTrue(result.getHighLowSum(2)<0.2);\n // the third dimension has little influence in classification\n\n // this is going to add {8,8,0} into the forest\n // but not enough to cause large scale changes\n // note the probability of a tree seeing a change is\n // 256/10_000\n for (int i = 0; i < 5; i++) {\n newForest.update(point);\n }\n\n DiVector newResult=newForest.getAnomalyAttribution(point);\n double newScore=newForest.getAnomalyScore(point);\n\n assertEquals(newScore,newResult.getHighLowSum(),1E-10);\n assertTrue(newScore<score);\n for(int j=0;j<3;j++){\n // relationship holds at larger values\n if (result.high[j]>0.2) {\n assertEquals(score * newResult.high[j], newScore * result.high[j], 0.1*score);\n } else {\n assertTrue(newResult.high[j]<0.2);\n }\n\n if (result.low[j]>0.2) {\n assertEquals(score * newResult.low[j], newScore * result.low[j], 0.1*score);\n } else {\n assertTrue(newResult.low[j]<0.2);\n }\n }\n\n // this will make the point an inlier\n for (int i = 0; i < 5000; i++) {\n newForest.update(point);\n }\n\n DiVector finalResult=newForest.getAnomalyAttribution(point);\n double finalScore=newForest.getAnomalyScore(point);\n assertTrue(finalScore<1);\n assertEquals(finalScore,finalResult.getHighLowSum(),1E-10);\n\n for(int j=0;j<3;j++){\n // relationship holds at larger values\n if (finalResult.high[j]>0.2) {\n assertEquals(score * finalResult.high[j], finalScore * result.high[j], 0.1*score);\n } else {\n assertTrue(newResult.high[j]<0.2);\n }\n\n if (finalResult.low[j]>0.2) {\n assertEquals(score * finalResult.low[j], finalScore * result.low[j], 0.1*score);\n } else {\n assertTrue(finalResult.low[j]<0.2);\n }\n }\n\n }", "private void tooHigh() {\n if (this.hitPoints > 255) {\n System.out.println(\"You set the value too high! Setting it to 255\");\n this.hitPoints = 255;\n }\n }", "void removeNearbyPixels(Stroke theStroke){\n\t\tint index;\n\t\tint CurvIndex;\n\t\tint SpeedIndex;\n\t\tVector ptList = theStroke.getM_ptList();\n\t\tfor(index=0; index < CommonSegmentPts.size(); index++){\n\t\t\tPoint CommonPt = (PixelInfo)ptList.get((Integer)CommonSegmentPts.get(index));\n\t\t\tfor(CurvIndex = 0; CurvIndex < CurvVector.size(); CurvIndex++){\n\t\t\t\tPoint CurvPt = (PixelInfo)ptList.get((Integer)CurvVector.get(CurvIndex));\n\t\t\t\tif(CommonPt.distance(CurvPt) <= TolerantDistance){\n\t\t\t\t\tCurvVector.remove(CurvIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(SpeedIndex = 0; SpeedIndex < SpeedVector.size(); SpeedIndex++){\n\t\t\t\tPoint SpeedPt = (PixelInfo)ptList.get((Integer)SpeedVector.get(SpeedIndex));\n\t\t\t\tif(CommonPt.distance(SpeedPt) <= TolerantDistance){\n\t\t\t\t\tSpeedVector.remove(SpeedIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static native void niBlackThreshold_0(long _src_nativeObj, long _dst_nativeObj, double maxValue, int type, int blockSize, double k, int binarizationMethod);", "private void condenseSteam() {\n if (getPressure()> Constants.ATMOSPHERIC_PRESSURE) {\n double boilingPoint = Water.getBoilingTemperature(getPressure());\n if (boilingPoint > steam.getTemperature()) { // remove steam such that it equalizes to the boiling point\n double newSteamPressure = Math.max(Water.getBoilingPressure(steam.getTemperature()), Constants.ATMOSPHERIC_PRESSURE);\n \n\n int newQuantity = steam.getParticlesAtState(newSteamPressure, getCompressibleVolume());\n int deltaQuantity = steam.getParticleNr() - newQuantity;\n if (deltaQuantity < 0) {\n System.out.println(\"BAD\");\n }\n steam.remove(deltaQuantity);\n getWater().add(new Water(steam.getTemperature(), deltaQuantity));\n }\n } \n }", "double getUpperThreshold();", "private Map<String, Double> findFraudCreditCards(Map<String, Double> clubbedCCTrxMap, double threshold) {\n Map<String, Double> fraudCCMap = clubbedCCTrxMap.entrySet().stream()\n .filter(record -> (record.getValue() > threshold))\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));\n\n fraudCCMap.entrySet().forEach(fraudRecord -> LOGGER.trace(\"Fraud Detected on CC \" + fraudRecord));\n\n return fraudCCMap;\n }", "protected Vec3 maybeBackOffFromEdge(Vec3 debug1, MoverType debug2) {\n/* 1102 */ if (!this.abilities.flying && (debug2 == MoverType.SELF || debug2 == MoverType.PLAYER) && isStayingOnGroundSurface() && isAboveGround()) {\n/* 1103 */ double debug3 = debug1.x;\n/* 1104 */ double debug5 = debug1.z;\n/* 1105 */ double debug7 = 0.05D;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1110 */ while (debug3 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(debug3, -this.maxUpStep, 0.0D))) {\n/* 1111 */ if (debug3 < 0.05D && debug3 >= -0.05D) {\n/* 1112 */ debug3 = 0.0D; continue;\n/* 1113 */ } if (debug3 > 0.0D) {\n/* 1114 */ debug3 -= 0.05D; continue;\n/* */ } \n/* 1116 */ debug3 += 0.05D;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1121 */ while (debug5 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(0.0D, -this.maxUpStep, debug5))) {\n/* 1122 */ if (debug5 < 0.05D && debug5 >= -0.05D) {\n/* 1123 */ debug5 = 0.0D; continue;\n/* 1124 */ } if (debug5 > 0.0D) {\n/* 1125 */ debug5 -= 0.05D; continue;\n/* */ } \n/* 1127 */ debug5 += 0.05D;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1132 */ while (debug3 != 0.0D && debug5 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(debug3, -this.maxUpStep, debug5))) {\n/* 1133 */ if (debug3 < 0.05D && debug3 >= -0.05D) {\n/* 1134 */ debug3 = 0.0D;\n/* 1135 */ } else if (debug3 > 0.0D) {\n/* 1136 */ debug3 -= 0.05D;\n/* */ } else {\n/* 1138 */ debug3 += 0.05D;\n/* */ } \n/* */ \n/* 1141 */ if (debug5 < 0.05D && debug5 >= -0.05D) {\n/* 1142 */ debug5 = 0.0D; continue;\n/* 1143 */ } if (debug5 > 0.0D) {\n/* 1144 */ debug5 -= 0.05D; continue;\n/* */ } \n/* 1146 */ debug5 += 0.05D;\n/* */ } \n/* */ \n/* 1149 */ debug1 = new Vec3(debug3, debug1.y, debug5);\n/* */ } \n/* 1151 */ return debug1;\n/* */ }", "public List<Peak> filterNoise(List<Peak> peaks, double threshold, double experimentalPrecursorMzRatio);", "public int trap_old(int[] height) {\n if(height.length <=2){\n return 0;\n }\n int result = 0;\n List<Integer> peaks = new ArrayList<>();\n for(int i=0; i<height.length; i++){\n //if(i+1==height.length && height[i-1]<height[i]){\n // peaks.add(i);\n if(i<height.length-1 && height[i]!=height[i+1]){\n peaks.add(i);\n }\n }\n List<Integer> remove = new ArrayList<>();\n //merge top\n for(int i=0; i<peaks.size(); i++){\n boolean left = false;\n boolean right = false;\n for(int j=0; j<i; j++){ //left\n if(height[peaks.get(j)]>height[peaks.get(i)]){\n left = true;\n }\n }\n for(int j=i+1; j<peaks.size(); j++){ //right\n if(height[peaks.get(j)]>height[peaks.get(i)]){\n right = true;\n }\n }\n if(left&&right){\n remove.add(peaks.get(i));\n }\n }\n System.out.println(Arrays.toString(remove.toArray()));\n peaks.removeAll(remove);\n System.out.println(\"=============\");\n System.out.println(Arrays.toString(peaks.toArray()));\n for(int i=0; i<peaks.size()-1; i++){\n Integer a = peaks.get(i);\n Integer b = peaks.get(i+1);\n int min = Math.min(height[a],height[b]);\n for(int j=a+1; j<b; j++){\n int df = min - height[j];\n if(df > 0 ){\n result += df;\n }\n }\n }\n return result;\n }", "public void peakAnalysis(Results picks){\n\n \tInteger OrgSize = picks.trueCounter(picks.getHitOrg()); //ilosc wszystkich pickow\n \tInteger h60TrueCount = picks.trueCounter(picks.getHit60()); //ilosc trafien filtr-60\n \tInteger h80TrueCount = picks.trueCounter(picks.getHit80()); //ilosc trafien filtr-80\n\n \tFloat lostPercent60;// = 2.0f;\n \tFloat lostPercent80;\n\n \tif (h60TrueCount>0)\t{\n \t\tlostPercent60 = 100-(((float)h60TrueCount*100)/(float)OrgSize); //wersja pokazujaca, ile procent utracono\n \t\t//lostPercent60 = 100*((float)OrgSize/((float)h60TrueCount)); //wersja procentow z zapisem\n \t} else {\n \t\tlostPercent60 = (float) 0.0;\n \t}\n\n \tif (h80TrueCount>0)\t{\n\t\tlostPercent80 = 100-(((float)h80TrueCount*100)/(float)OrgSize); //analogicznie, j.w.\n \t\t//lostPercent80 = 100*((float)OrgSize/((float)h80TrueCount));\n\n \t} else {\n \t\tlostPercent80 = (float) 0.0;\n \t}\n\n \tString endScore = \"\";\n \t//endScore +=\"Zbiorczy wynik koncowy dla wszystkich pick'ow:\\nDane oryginalne: \"+OrgSize+\", filtr 60: \"+h60TrueCount+\", filtr 80: \"+h80TrueCount;\n \t//endScore +=\"\\nProcent utraconych pik'ow: filtr 60: \"+lostPercent60+\", filtr 80: \"+lostPercent80;\n\n \tendScore +=\"Sumaryczna_liczba_peakow:\\n\";\n \tendScore +=\"Peak_prawdziwy:\"+\" filtr60:\"+\" filtr80:\\n\";\n \tendScore += OrgSize+\" \"+h60TrueCount+\" \"+h80TrueCount;\n \tendScore +=\"\\nProcent_utraconych_pik'ow:\\n\";\n \tendScore +=\"filtr60:\"+\" filtr_80:\\n\";\n \tendScore +=lostPercent60+\" \"+lostPercent80;\n \t//System.out.println(endScore); //finished score\n \n try {\n \tFileWriter fileWriter = new FileWriter(\"GrupProj/electron/Result.csv\");\n\t\t\tfileWriter.write(endScore);\n\t\t\tfileWriter.flush();\n\t fileWriter.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error save\");\n\t\t\te.printStackTrace();\n\t\t}\n\n }", "private void makeSubcutaneousFatVOIfromIntensityProfiles() {\r\n \r\n int[] xLocsSubcutaneousVOI;\r\n int[] yLocsSubcutaneousVOI;\r\n int[] zVals;\r\n try {\r\n xLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n yLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n zVals = new int [360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeSubcutaneousFatVOIfromIntensityProfiles(): Can NOT allocate xLocsSubcutaneousVOI\");\r\n return;\r\n }\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n zVals[idx] = 0;\r\n }\r\n \r\n int numSamples;\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n numSamples = intensityProfiles[idx].size();\r\n \r\n int sampleIdx = numSamples - 10; // skip over the skin\r\n while (sampleIdx >= 0 &&\r\n intensityProfiles[idx].get(sampleIdx) < muscleThresholdHU &&\r\n intensityProfiles[idx].get(sampleIdx) > airThresholdHU) {\r\n sampleIdx--;\r\n }\r\n if (sampleIdx <= 0) {\r\n // could not find a valid subcutaneous fat point in the intensity profile\r\n// MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find the subcutaneous fat VOI point in the intensity profile for angle: \" +idx * angularResolution);\r\n if (idx > 0) {\r\n // assign this subcutaneous fat VOI point to the previous point if one exists\r\n xLocsSubcutaneousVOI[idx] = xLocsSubcutaneousVOI[idx-1];\r\n yLocsSubcutaneousVOI[idx] = yLocsSubcutaneousVOI[idx-1];\r\n } else {\r\n // assign this subcutaneous fat VOI point to the abdomen VOI point\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(numSamples - 1);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(numSamples - 1);\r\n }\r\n } else {\r\n // we found a point in the intensity profile that matches subcutaneous fat\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(sampleIdx);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(sampleIdx);\r\n }\r\n \r\n } // end for (int idx = 0; ...)\r\n\r\n // make the VOI's and add the points to them\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(xLocsSubcutaneousVOI, yLocsSubcutaneousVOI, zVals);\r\n\r\n }", "private ArrayList<Gfa> bisect( Gfa smear, boolean addMidPt ) {\n\t \n\t\tArrayList<Gfa> newSmears = new ArrayList<Gfa>();\n\t\t\n\t //First check if the polygon can be represented on 3 lines of text.\n\t\tboolean cbf = canBeFormatted( smear );\n\t\t\t\t\n\t //Return if it can be formatted already.\n\t\tif ( cbf ) {\n\t\t\tnewSmears.add( smear );\n\t\t\treturn newSmears;\n\t\t}\n\t\t\n\t /*\n\t * Find the all potential splitting segments - from the one with the \n\t * shortest length among those segments that do not intersect the polygon.\n\t */\t\t\n\t\tCoordinate[] smearPts = smear.getLinePoints();\t\t\n\t\tTreeSet<BisectDistInfo> segments = findAllSegments( smearPts );\n\t \n\t /*\n\t * Compute the size of the original polygon.\n\t */\n\t double polyArea = PgenUtil.getSphPolyArea( smearPts );\n\n\t /*\n\t * Now loop over all the possible splitting segments, from shortest\n\t * to longest, to find the shortest segment which divides the original \n\t * polygon in an acceptable proportion.\n\t */\n\t\tdouble prefPct = 100.0 - GFA_AF_BISECT_PCT;\n\t\tdouble prefPctMax = Math.max( prefPct, GFA_AF_BISECT_PCT );\n\t\tdouble prefPctMin = Math.min( prefPct, GFA_AF_BISECT_PCT );\n\n\t ArrayList<Coordinate> tmpPoly = new ArrayList<Coordinate>();\n double tarea;\n double pct;\n BisectDistInfo bisectSeg = null;\n \n\t for ( BisectDistInfo bd : segments ) {\n\t \t\n\t //Generate the polygon starting from indx1 and ending at indx2.\n\t tmpPoly.clear();\n\t for ( int ii = bd.start; ii <= bd.end; ii++ ) {\n\t \ttmpPoly.add( new Coordinate( smearPts[ ii ] ) );\n\t }\n\t \n\t \t //Compute and compare it's size to the original polygon as a percentage\n\t tarea = PgenUtil.getSphPolyArea( tmpPoly.toArray( new Coordinate[ tmpPoly.size() ] ) );\n\t pct = 100.0F * ( tarea / polyArea );\n\t \n\n\t \t//If the percentage is within the limits, we've found our splitting segment.\n\t \tif ( pct >= prefPctMin && pct <= prefPctMax ) {\n\t \t bisectSeg = new BisectDistInfo( bd.distance, bd.start, bd.end );\n\t \t break;\n\t \t}\t \n\t \n\t }\n\t \n\t /*\n\t * Find the correct number of points for new polygons. For first round\n\t * division, the middle point on the splitting segment is calculated\n\t * and snapped to be used later. The splitting segment is thus divided\n\t * into two segments at the middle point. If either one of them intersects\n\t * with the original polygon, the middle point will not be added.\n\t */\n\t if ( bisectSeg == null ) {\n\t \tnewSmears.add( smear );\n\t }\n\t else {\n\t \t\n\t \t//First figure out if we need and could add a middle point.\n \t\tCoordinate midPt = null;\n\t \tif ( addMidPt ) {\n\t \t\tmidPt = new Coordinate();\n\t \t\tmidPt.x = ( smearPts[ bisectSeg.start ].x + smearPts[ bisectSeg.end ].x ) / 2.0;\n\t \t\tmidPt.y = ( smearPts[ bisectSeg.start ].y + smearPts[ bisectSeg.end ].y ) / 2.0;\n\t \t\t\n\t\t\t\tCoordinate snappedMidPt = GfaSnap.getInstance().snapOnePt( midPt );\n\n\t \t\tif ( !GfaSnap.getInstance().isCluster( snappedMidPt, smearPts[ bisectSeg.start ] ) && \n\t \t\t\t !GfaSnap.getInstance().isCluster( snappedMidPt, smearPts[ bisectSeg.end] ) ) {\n\n\t \t\t\tCoordinate[] seg1 = new Coordinate[]{ smearPts[ bisectSeg.start ], snappedMidPt };\n\t \t\t\tCoordinate[] seg2 = new Coordinate[]{ smearPts[ bisectSeg.end ], snappedMidPt };\n\n\t \t\t\tif ( segIntPoly( seg1, smearPts ) && segIntPoly( seg2, smearPts ) ) {\n\t \t\t\t\tmidPt.x = snappedMidPt.x;\n\t \t\t\t\tmidPt.y = snappedMidPt.y;\t \t\t\t\t\t \t\t\t\t\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\telse {\n\t \t\t\t\taddMidPt = false;\t \t\t\t\t\n\t \t\t\t}\n\t \t\t}\t \t\t\n\t \t}\n\t \t\n\t \t\n\t \t/*\n\t * First polygon - from bisectSeg.start to bisectSeg.end, plus a middle point.\n\t */ \n\t\t\tGfa first = smear.copy();\n\t\t\t\t\t\t\n\t\t\tArrayList<Coordinate> coor1 = new ArrayList<Coordinate>();\n\t\t\tArrayList<Boolean> reduFlg1 = new ArrayList<Boolean>();\n\t\t\tfor ( int ii = bisectSeg.start; ii <= bisectSeg.end; ii++ ) {\n\t\t\t\tcoor1.add( new Coordinate( smearPts[ ii ] ) );\n\t\t\t\treduFlg1.add( new Boolean( smear.getReduceFlags()[ ii ] ) );\n\t\t\t}\n\t\t\t\n\t\t\tif ( addMidPt ) {\n\t\t\t\tCoordinate mpt1 = new Coordinate( midPt );\n\t\t\t\tcoor1.add( mpt1 );\n\t\t\t\tfirst.addAttribute( BISECT_MIDDLE_POINT, mpt1 );\n\t\t\t\treduFlg1.add( new Boolean( false ) );\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfirst.setPointsOnly( coor1 );\n\t\t\tfirst.setGfaTextCoordinate( first.getCentroid() );\n\t\t\t\n\t\t\tboolean[] redu1 = new boolean[ reduFlg1.size() ];\n\t\t\tint kk = 0;\n\t\t\tfor ( Boolean bb : reduFlg1 ) {\n\t\t\t\tif ( bb ) {\n\t\t\t\t\tredu1[ kk ] = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tredu1[ kk ] = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tkk++;\n\t\t\t}\n\t\t\tfirst.setReduceFlags( redu1 );\n\t \t\t \t\t \t\n\t /*\n\t * Second polygon - from 0 to bisectSeg.start, then middle point, continue \n\t * from bisectSeg.end to the end.\n\t */ \n\t\t\tGfa second = smear.copy();\n\t\t\tArrayList<Coordinate> coor2 = new ArrayList<Coordinate>();\n\t\t\tArrayList<Boolean> reduFlg2 = new ArrayList<Boolean>();\n\t\t\t\t\t\t\n\t\t\tfor ( int ii = 0; ii <= bisectSeg.start; ii++ ) {\n\t\t\t\tcoor2.add( new Coordinate( smearPts[ ii ] ) );\n\t\t\t\treduFlg2.add( new Boolean( smear.getReduceFlags()[ ii ] ) );\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif ( addMidPt ) {\n\t\t\t\tCoordinate mpt2 = new Coordinate( midPt );\t\t\t\t\n\t\t\t\tcoor2.add( mpt2 );\n\t\t\t\tsecond.addAttribute( BISECT_MIDDLE_POINT, mpt2 );\n\t\t\t\treduFlg2.add( new Boolean( false ) );\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor ( int ii = bisectSeg.end; ii < smearPts.length; ii++ ) {\n\t\t\t\tcoor2.add( new Coordinate( smearPts[ ii ] ) );\n\t\t\t\treduFlg2.add( new Boolean( smear.getReduceFlags()[ ii ] ) );\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tsecond.setPointsOnly( coor2 );\t\t\n\t\t\tsecond.setGfaTextCoordinate( second.getCentroid() );\n\t\t\t\n\t\t\tboolean[] redu2 = new boolean[ reduFlg2.size() ];\n\t\t\tint kj = 0;\n\t\t\tfor ( Boolean bb : reduFlg2 ) {\n\t\t\t\tif ( bb ) {\n\t\t\t\t\tredu2[ kj ] = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tredu2[ kj ] = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tkj++;\n\t\t\t}\n\t\t\tsecond.setReduceFlags( redu2 );\n\t \t\n\t\t\t//Add new smears to the list.\n\t newSmears.add( first );\n\t newSmears.add( second );\n\t \n\t }\n\n\t\treturn newSmears;\n\n\t}", "private int sinksUnderwater() {\n if ((getPosition() == null) || isOffBoard()) {\n return 0;\n }\n\n IHex curHex = game.getBoard().getHex(getPosition());\n // are we even in water? is it depth 1+\n if ((curHex.terrainLevel(Terrains.WATER) <= 0) || (getElevation() >= 0)) {\n return 0;\n }\n\n // are we entirely underwater?\n if (isProne() || (curHex.terrainLevel(Terrains.WATER) >= 2)) {\n return getHeatCapacity();\n }\n\n // okay, count leg sinks\n int sinksUnderwater = 0;\n for (Mounted mounted : getMisc()) {\n if (mounted.isDestroyed() || mounted.isBreached() || !locationIsLeg(mounted.getLocation())) {\n continue;\n }\n if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) {\n sinksUnderwater++;\n } else if (mounted.getType().hasFlag(MiscType.F_DOUBLE_HEAT_SINK)) {\n sinksUnderwater += 2;\n }\n }\n return sinksUnderwater;\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[3][6];\n discretize0.setIgnoreClass(false);\n discretize0.m_CutPoints = doubleArray0;\n double[] doubleArray1 = new double[4];\n // Undeclared exception!\n try { \n discretize0.getCutPoints((-831));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -831\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "boolean hasFixedHotwordGain();", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setInvertSelection(true);\n discretize0.useEqualFrequencyTipText();\n int int0 = (-501);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-501));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "float getFixedHotwordGain();", "public double[][] findPeakSharpness(int[] peaks) {\n double[][] sharpness = new double[2][peaks.length];\n for (int i=0; i<peaks.length; i++) {\n sharpness[0][i] = this.signal[peaks[i]] - this.signal[peaks[i]-1];\n sharpness[1][i] = this.signal[peaks[i]] - this.signal[peaks[i]+1];\n }\n return sharpness;\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setAttributeIndices(\"\");\n Filter.makeCopy(discretize0);\n discretize0.setDesiredWeightOfInstancesPerInterval(2.0);\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 0;\n discretize0.setUseBinNumbers(true);\n discretize0.listOptions();\n discretize0.makeBinaryTipText();\n discretize0.getInvertSelection();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-458));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private boolean isCutoff(final int remainingDepth) {\n return remainingDepth <= 0;\n }", "private static MapLocation getBestPastrLocNearMeBasedOnCowGrowthRate() {\n\t\tif (Clock.getRoundNum() < 1) {\n\t\t\tallCowGrowths = rc.senseCowGrowth();\t\t\t\n\t\t}\n\t\tMapLocation bestLocation = new MapLocation(curLoc.x, curLoc.y);\n\t\tdouble cowGrowthAmount = 0;\n\t\tMapLocation enemyHQLocation = rc.senseEnemyHQLocation();\n\t\tdouble distanceToEnemyHQ = curLoc.distanceSquaredTo(enemyHQLocation);\n\t\tfor (int i = 15; i-- > 0;) {\n\t\t\tfor (int j = 15; j-- > 0;) {\n\t\t\t\t// Check that it's in bounds\n\t\t\t\tif (curLoc.x - i + 8 >= 0 && curLoc.x - i + 8 < rc.getMapWidth() &&\n\t\t\t\t\tcurLoc.y - j + 8 >= 0 && curLoc.y - j + 8 < rc.getMapHeight()) {\n\t\t\t\t\tMapLocation mapLoc = new MapLocation(curLoc.x - i + 8, curLoc.y - j + 8);\n\t\t\t\t\tdouble currentLocGrowth = allCowGrowths[curLoc.x - i + 8][curLoc.y - j + 8];\n\n\t\t\t\t\t// Check that it's behind a perpendicular line and not void\n\t\t\t\t\t// and choose the best point.\n\t\t\t\t\tif (mapLoc.distanceSquaredTo(enemyHQLocation) < distanceToEnemyHQ &&\n\t\t\t\t\t\tcurrentLocGrowth > cowGrowthAmount && rc.senseTerrainTile(mapLoc) != TerrainTile.VOID) {\n\t\t\t\t\t\tcowGrowthAmount = currentLocGrowth;\n\t\t\t\t\t\tbestLocation = mapLoc;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn bestLocation;\n\t}", "@Test\n void find() {\n\n assertEquals(3, FindOutlier.find(ints1));\n assertEquals(1, FindOutlier.find(ints2));\n assertEquals(17, FindOutlier.find(ints3));\n assertEquals(2, FindOutlier.find(ints4));\n assertEquals(44, FindOutlier.find(ints5));\n assertEquals(1000, FindOutlier.find(ints6));\n assertEquals(-3, FindOutlier.find(ints7));\n assertEquals(-35, FindOutlier.find(ints8));\n assertEquals(-1 * Integer.MAX_VALUE, FindOutlier.find(ints9));\n assertEquals(-20, FindOutlier.find(ints10));\n assertEquals(-44, FindOutlier.find(ints11));\n assertEquals(1, FindOutlier.find(ints12));\n assertEquals(0, FindOutlier.find(ints13));\n }", "public static void createInfluenceMap(Map<Pickup, Boolean> pickupStates) {\n mapWidth = Constants.screenWidth / CELL_SIZE;\n mapHeight = Constants.screenHeight / CELL_SIZE;\n influenceMap = new double[mapWidth][mapHeight];\n\n lowestValue = Double.MAX_VALUE;\n highestValue = -Double.MAX_VALUE;\n\n Vector2d cellCenter = new Vector2d();\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n // get sum of all proximities to pickups here\n for (Pickup p : pickupStates.keySet()) {\n if (!pickupStates.get(p)) {\n // existing pickup\n cellCenter.set(CELL_SIZE * (x + 0.5), CELL_SIZE * (y + 0.5));\n double dist = cellCenter.dist(p.pos);\n //// use exponential dropoff instead of linear dropoff\n double value = 5 + Math.log1p(dist) * -1;\n //double value = (MAX_DIST - dist)/MAX_DIST;\n if (p.type == PickupType.MINE) value *= 0;\n\n influenceMap[x][y] += value * 50;\n }\n }\n }\n }\n\n // go through map and establish ranges\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n double value = influenceMap[x][y];\n if (value > highestValue) highestValue = value;\n if (value < lowestValue) lowestValue = value;\n }\n }\n\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private CPSdiff getDayCPShashmap(String pivotlevel, double curr_CLOSE, Daypivot daypv, String stocksymbol,\r\n\t\t\tPricedata cp, HashMap<String, StochasticFinalval> dayeodstoch ,double curr_low) {\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\"); \r\n\t\tClass noparams[] = {};\r\n\t\tdouble price = 0;\r\n\t\tCPSdiff filterdata = new CPSdiff();\r\n\t\tfilterdata.setStocksymbol(stocksymbol);\r\n\t\tfilterdata.setCurrclose(cp.getLastprice());\r\n\t\tfilterdata.setPrevclose(curr_CLOSE);\r\n\t\tfilterdata.setPricelevel(pivotlevel);\r\n\t\tfilterdata.setIspivot(true);\r\n\t\tfilterdata.setIssma(false);\r\n\t\tfilterdata.setTradedate(cp.getTradedate());\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tClass cls = Class.forName(\"com.mr.data.Daypivot\");\r\n\t\t\tMethod method = cls.getDeclaredMethod(\"get\"+pivotlevel, noparams);\r\n\t\t\tprice = (double) method.invoke(daypv, null);\r\n\t\t} catch (ClassNotFoundException | NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfilterdata.setPriceval(Double.valueOf(df.format(price)).toString());\r\n\t\t\r\n\t\tif (curr_low <= Double.valueOf(filterdata.getPriceval()) && curr_CLOSE >= Double.valueOf(filterdata.getPriceval()) )\r\n\t\t{\r\n\t\t\tfilterdata.setTestpivot(true);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfilterdata.setTestpivot(false);\r\n\t\t}\r\n\t\t\r\n\t\tfilterdata.setPricediff(Double.valueOf(df.format(((cp.getLastprice()-price)/price)*100)).toString());\r\n\t\tfilterdata.setStochk(Double.valueOf(df.format(dayeodstoch.get(stocksymbol).getPrecentk())));\r\n\t\tfilterdata.setStochd(Double.valueOf(df.format(dayeodstoch.get(stocksymbol).getPercentd())));\r\n\t\t\r\n\t\tdouble pricecheck = Double.valueOf(filterdata.getPricediff());\r\n\t\tif (pricecheck < 10.1 && pricecheck > -10.1)\r\n\t\treturn filterdata;\r\n\t\telse\r\n\t return null;\r\n\t}", "private TargetInformation findHighGoal(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = false;\r\n\t\t\r\n long[] xsums = sums(image, true);\r\n long[] ysums = sums(image, false);\r\n \r\n\t List<PeakLoc> xpeaks = findPeaks(xsums, 10);\r\n\t List<PeakLoc> ypeaks = findPeaks(ysums, 10);\r\n\r\n\t if (ypeaks.size() == 2 && xpeaks.size() > 0) {\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(0).getStop() - xpeaks.get(0).getStart()) / 2;\r\n\t \tret.gap = ypeaks.get(1).getStart() - ypeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(0).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(1).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = (ypeaks.get(0).getStop() + ypeaks.get(1).getStart())/2;\r\n\t \t\r\n\t \tdouble pixelsPerInch = ret.gap / highGoalGapInches;\r\n\t \tif (xpeaks.get(0).isTruePeak() && xpeaks.get(1).isTruePeak())\r\n\t \t{\r\n\t \t\tpixelsPerInch = (pixelsPerInch + ret.width / highGoalWidthInches) / 2;\r\n\t \t}\r\n\t \tif (ypeaks.get(0).isTruePeak())\r\n\t \t{\r\n\t \t\tif (xpeaks.get(0).isTruePeak() && xpeaks.get(1).isTruePeak())\r\n\t \t\t{\r\n\t \t\t\tpixelsPerInch = (pixelsPerInch * 2 + ret.width / highGoalHeightInches) / 3;\r\n\t \t\t}\r\n\t \t\telse\r\n\t \t\t{\r\n\t \t\t\tpixelsPerInch = (pixelsPerInch + ret.width / highGoalHeightInches) / 2;\r\n\t \t\t}\r\n\t \t} \t\r\n\t \t\r\n\t \tret.aimX = ret.x + (cameraOffsetInches - shooterOffsetInches) * pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t \r\n\t return ret;\r\n\t}", "float getThreshold();", "double getLowerThreshold();", "public void replaceWithCovers()\r\n/* 197: */ {\r\n/* 198:156 */ short[] covs = Arrays.copyOf(this.Covers, 29);\r\n/* 199:157 */ CoverLib.replaceWithCovers(this.k, this.l, this.m, this.n, this.CoverSides, covs);\r\n/* 200: */ }", "public boolean sps() {\n\t\tupdateFrontUnknown();\n\t\tboolean successful = false;\n\t\tfor (int i = 0; i < frontUnknown.size(); i++) {\n\t\t\tint x = frontUnknown.get(i)[0];\n\t\t\tint y = frontUnknown.get(i)[1];\n\t\t\tArrayList<int[]> knownNeighbors = findAdjacentSafe(frontUnknown.get(i));\n\t\t\tfor (int[] j: knownNeighbors) {\n\t\t\t\t//all clear neighbours\n\t\t\t\tif (answerMap[j[0]][j[1]] == findAdjacentMark(j).size()) {\n\t\t\t\t\tprobe(x, y);\n\t\t\t\t\tsuccessful = true;\n\t\t\t\t\tSystem.out.println(\"SPS: probe[\" + x + \",\" + y + \"]\");\n\t\t\t\t\tspsCount++;\n\t\t\t\t\tshowMap();\n\t\t\t\t\ti--;\n\t\t\t\t\tupdateFrontUnknown();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//all marked neighbours\n\t\t\t\t\tif (answerMap[j[0]][j[1]] == findAdjacentRisk(j).size()) {\n\t\t\t\t\t\tmark(x, y);\n\t\t\t\t\t\tsuccessful = true;\n\t\t\t\t\t\tSystem.out.println(\"SPS: probe[\" + x + \",\" + y + \"]\");\n\t\t\t\t\t\tspsCount++;\n\t\t\t\t\t\tshowMap();\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tupdateFrontUnknown();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn successful;\n\t}", "private void getPeakValue(float value) {\r\n if (Math.abs(value) > peakValue) {\r\n peakValue = value;\r\n }\r\n }", "public void sharkAttack() {\n if (fins>0) \n fins--;\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n\tpublic void testIfKingIsCapturedBySandwich()\n\t{\n\t\tData d=new Data();\n\t\td.set(8,31);\n\t\td.set(6,28);\n\t\td.set(0,36);\n\t\td.set(24,35);\n\t\td.set(14,38);\n\t\td.set(14,37);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(37);\n\t\tassertEquals(test_arr.size(),0);\n\t}", "private boolean cutoffTest(Node state) {\n\t\tboolean checkCutOff = state.getGame().gameWon() != Chip.NONE || state.getDepth() >= this.maxDepth;\n\t\tif (checkCutOff) {\n\t\t\tif (this.maximumDepthReachedThisTurn < state.getDepth())\n\t\t\t\tthis.maximumDepthReachedThisTurn = state.getDepth();\n\t\t}\n\t\t\t\n\t\treturn checkCutOff;\n\t}", "public void setChipOnExistingProjectBurnSZTTwice(Subproject project) {\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT()*2);\n\t}", "private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\t\n \t\t\tfloat hue = phsv[0];\n \t\t\tfloat val = phsv[2] * 100 / 256;\n \n \t\t\tint closest = -1;\n \n \t\t\tfinal int white = 15;\n \t\t\tfinal int black = 1;\n \t\t\tfinal int grey = 14;\n \t\t\t\n \t\t\tif (phsv[1] < (hue >= 30 && hue < 75 ? 0.66f : 0.33f)) {\n \t\t\t\tif (val >= 70) {\n \t\t\t\t\tclosest = white;\n \t\t\t\t} else if (val >= 10) {\n \t\t\t\t\t// dithering will take care of the rest\n \t\t\t\t\tclosest = grey;\n \t\t\t\t} else {\n \t\t\t\t\tclosest = black;\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tclosest = getClosestColorByDistance(palette, firstColor, 16, prgb, 12);\n \t\t\t\t\n \t\t\t\t// see how the color matches\n \t\t\t\tif (closest == black) {\n \t\t\t\t\tif (phsv[1] > 0.9f) {\n \t\t\t\t\t\tif ((hue >= 75 && hue < 140) && (val >= 5 && val <= 33)) {\n \t\t\t\t\t\t\tclosest = 12;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t/*else {\n \t\t\t\t\tint rigid = rigidMatch(phsv, hue, val);\n \t\t\t\t\tif (phsv[1] < 0.5f && (rigid == 1 || rigid == 14 || rigid == 15)) {\n \t\t\t\t\t\tclosest = rigid;\n \t\t\t\t\t}\n \t\t\t\t}*/\n \t\t\t}\n \t\t\t\n \t\t\t//closest = rigidMatch(phsv, hue, val);\n \t\t\t\n \t\t\treturn closest;\n \t\t}", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "public int computeGoodCoverage(CameraPlacementResult result, CameraPlacementResult testResult, CameraPlacementProblem problem)\n {\n \tint i, j, goodCoverage = 0;\n\n \tint[][] totalCoverage = result.cover;\n \tint[][] testCoverage = testResult.cover;\n\n \tfor (i = 0; i < problem.getMaxY(); i++)\n \t{\n \t\tfor (j = 0; j < problem.getMaxX(); j++)\n \t\t{\n\n \t\t\t//If totalCoverage[j][i] uncovered but testCoverage covered, + 1\n \t\t\tif ( totalCoverage[j][i] == 0 && testCoverage[j][i] == 1)\n \t\t\t\tgoodCoverage++;\n \t\t}\n \t}\n\n \treturn goodCoverage;\n\n }", "public double[][] getPeakSharpness() {\n return this.sharpness;\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public int[] filterBySharpness(double lower_threshold, double upper_threshold) {\n ArrayList<Integer> newPeaks = new ArrayList<Integer>();\n int[] keep = new int[this.midpoints.length];\n Arrays.fill(keep, 1);\n\n for (int i=0; i<this.sharpness[0].length; i++) {\n double minVal = Math.min(this.sharpness[0][i], this.sharpness[1][i]);\n if (minVal < lower_threshold) {\n keep[i] = 0;\n }\n }\n for (int i=0; i<this.sharpness[0].length; i++) {\n double maxVal = Math.max(this.sharpness[0][i], this.sharpness[1][i]);\n if (maxVal > upper_threshold) {\n keep[i] = 0;\n }\n }\n for (int i=0; i<keep.length; i++) {\n if(keep[i] == 1) {\n newPeaks.add(this.midpoints[i]);\n }\n }\n return UtilMethods.convertToPrimitiveInt(newPeaks);\n }", "public static int offset_infos_valid_noise_samples() {\n return (88 / 8);\n }", "public AdjustPeaksForPixelSensitivity_2(){\n super(\"AdjustPeaksForPixelSensitivity_2\");\n }", "@Test\n\tpublic void testQualityWithSellInUnder0Concert() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", -1, 100));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased to 0\n\t\tassertEquals(\"Quality with sellIn under 0 concert passes\", 0, quality);\n\t}", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "@Test\n\tpublic void testQualityOver50SellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Aged Brie\", -11, 51));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality 0 Brie\", 51, quality);\n\t}", "private void optimiseWaterHeatProfileWithSpreading()\n\t{\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"== OptimiseWaterHeatProfile for a \" + this.owner.getAgentID() + \" ==\");\n\t\t}\n\n\t\tdouble[] baseArray = ArrayUtils.multiply(this.hotWaterVolumeDemandProfile, Consts.WATER_SPECIFIC_HEAT_CAPACITY\n\t\t\t\t/ Consts.KWH_TO_JOULE_CONVERSION_FACTOR * (this.owner.waterSetPoint - ArrayUtils.min(Consts.MONTHLY_MAINS_WATER_TEMP))\n\t\t\t\t/ Consts.DOMESTIC_HEAT_PUMP_WATER_COP);\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"hotWaterVolumeDemandProfile: \" + Arrays.toString(this.hotWaterVolumeDemandProfile));\n\t\t}\n\n\t\tthis.waterHeatDemandProfile = Arrays.copyOf(baseArray, baseArray.length);\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"waterHeatDemandProfile: \" + Arrays.toString(this.waterHeatDemandProfile));\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"spreadWaterDemand(baseArray) : \" + Arrays.toString(this.spreadWaterDemand(baseArray)));\n\t\t}\n\n\t\tdouble[] totalHeatDemand = ArrayUtils.add(this.heatPumpDemandProfile, this.spreadWaterDemand(baseArray));\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"totalHeatDemand: \" + Arrays.toString(totalHeatDemand));\n\t\t}\n\n\t\tdouble currCost = this.evaluateCost(totalHeatDemand);\n\t\tdouble[] tempArray = Arrays.copyOf(baseArray, baseArray.length);\n\n\t\tfor (int i = 0; i < baseArray.length; i++)\n\t\t{\n\t\t\tif (baseArray[i] > 0)\n\t\t\t{\n\t\t\t\tdouble extraHeatRequired = 0;\n\t\t\t\tfor (int j = i - 1; j >= 0; j--)\n\t\t\t\t{\n\t\t\t\t\t//TODO - this needs a better (exponential) model, temp loss per second should be improved.\n\t\t\t\t\textraHeatRequired += (Consts.WATER_TEMP_LOSS_PER_SECOND * ((double) Consts.SECONDS_PER_DAY / this.ticksPerDay))\n\t\t\t\t\t\t\t* this.hotWaterVolumeDemandProfile[i]\n\t\t\t\t\t\t\t* (Consts.WATER_SPECIFIC_HEAT_CAPACITY / Consts.KWH_TO_JOULE_CONVERSION_FACTOR)\n\t\t\t\t\t\t\t/ Consts.DOMESTIC_HEAT_PUMP_WATER_COP;\n\t\t\t\t\ttempArray[j] += baseArray[i] + extraHeatRequired;\n\t\t\t\t\ttempArray[j + 1] = 0;\n\t\t\t\t\ttotalHeatDemand = ArrayUtils.add(this.heatPumpDemandProfile, this.spreadWaterDemand(tempArray));\n\t\t\t\t\tdouble newCost = this.evaluateCost(totalHeatDemand);\n\t\t\t\t\tif (newCost < currCost)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.waterHeatDemandProfile = ArrayUtils.add(totalHeatDemand, ArrayUtils.negate(this.heatPumpDemandProfile));\n\t\t\t\t\t\tcurrCost = newCost;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private int fixUp(byte[] b, int offset, int read) {\n for(int i=0; i<detect.length-1; i++) {\n int base = offset+read-1-i;\n if(base < 0) continue;\n \n boolean going = true;\n for(int j=0; j<=i && going; j++) {\n if(b[base+j] == detect[j]) {\n // Matches\n } else {\n going = false;\n }\n }\n if(going) {\n // There could be a <br> handing over the end, eg <br|\n addToSpare(b, base, i+1, true);\n read -= 1;\n read -= i;\n break;\n }\n }\n \n // Find places to fix\n ArrayList<Integer> fixAt = new ArrayList<Integer>();\n for(int i=offset; i<=offset+read-detect.length; i++) {\n boolean going = true;\n for(int j=0; j<detect.length && going; j++) {\n if(b[i+j] != detect[j]) {\n going = false;\n }\n }\n if(going) {\n fixAt.add(i);\n }\n }\n \n if(fixAt.size()==0) {\n return read;\n }\n \n // If there isn't space in the buffer to contain\n // all the fixes, then save the overshoot for next time\n int needed = offset+read+fixAt.size();\n int overshoot = needed - b.length; \n if(overshoot > 0) {\n // Make sure we don't loose part of a <br>!\n int fixes = 0;\n for(int at : fixAt) {\n if(at > offset+read-detect.length-overshoot-fixes) {\n overshoot = needed - at - 1 - fixes;\n break;\n }\n fixes++;\n }\n\n addToSpare(b, offset+read-overshoot, overshoot, false);\n read -= overshoot;\n }\n \n // Fix them, in reverse order so the\n // positions are valid\n for(int j=fixAt.size()-1; j>=0; j--) {\n int i = fixAt.get(j);\n if(i >= read+offset) {\n // This one has moved into the overshoot\n continue;\n }\n if(i > read-3) {\n // This one has moved into the overshoot\n continue;\n }\n\n byte[] tmp = new byte[read-i-3];\n System.arraycopy(b, i+3, tmp, 0, tmp.length);\n b[i+3] = (byte)'/';\n System.arraycopy(tmp, 0, b, i+4, tmp.length);\n // It got one longer\n read++;\n }\n return read;\n }", "public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }", "@Test\n\tpublic void testQualityWithSellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Conjured Mana Cake\", -1, 6));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased by two\n\t\tassertEquals(\"Quality with sellIn under 0 Conjured Mana Cake\", 4, quality);\n\t}", "@Test\n\tpublic void kingSWC() \n\t{\n\t\tData d = new Data();\n\t\td.set(19, 35);\n\t\td.set(21, 46);\n\t\td.set(23, 89);\n\t\td.set(27, 68);\n\t\td.set(29, 79);\n\t\td.set(0, 34);\n\t\td.set(2, 45);\n\t\td.set(3, 56);\n\t\td.set(4, 67);\n\t\td.set(5, 78);\n\t\td.set(31, 23);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(23);\n\t\tassertTrue(0==test_arr.get(0).getX() && 4==test_arr.get(0).getY()\n\t\t\t&& 0==test_arr.get(1).getX() && 5==test_arr.get(1).getY()\n\t\t\t&& 0==test_arr.get(2).getX() && 6==test_arr.get(2).getY()\n\t\t\t&& 0==test_arr.get(3).getX() && 7==test_arr.get(3).getY());\n\t}", "@Test\n public void showHandledPeaksForInterestingCases() {\n List<ISpectrum> spectra = ClusteringTestUtilities.readISpectraFromResource();\n\n ISpectrum[] spectrums = (ISpectrum[]) spectra.toArray();\n\n ISimilarityChecker checker = new FrankEtAlDotProductTester();\n ISimilarityChecker currentChecker = new FrankEtAlDotProduct(0.5F, 15, true);\n\n //noinspection UnnecessaryLocalVariable,UnusedDeclaration,UnusedAssignment\n Set<String> interestingIds = new HashSet<>();\n\n\n for (int i = 0; i < spectrums.length; i++) {\n ISpectrum psm1 = spectrums[i];\n String id1 = psm1.getId();\n if (!INTERESTING_ID_SET.contains(id1))\n continue; // not an interesting case\n\n for (int j = i + 1; j < spectrums.length; j++) {\n ISpectrum psm2 = spectrums[j];\n\n String id2 = psm2.getId();\n if (!INTERESTING_ID_SET.contains(id2))\n continue; // not an interesting case\n\n // System.out.println(\"Comparing \" + id1 + \" \" + id2);\n\n StringBuilder usedPeaksTester = new StringBuilder();\n\n //noinspection UnnecessaryLocalVariable,UnusedDeclaration,UnusedAssignment\n double dotOrg = checker.assessSimilarity(psm1, psm2);\n\n // System.out.println(\"Peaks compared original Frank Et Al (when the code is written)\");\n // print usage\n // System.out.println(usedPeaksTester.toString());\n\n usedPeaksTester.setLength(0); // clear debug output\n double dotNew = currentChecker.assessSimilarity(psm1, psm2);\n\n // print usage\n // System.out.println(\"Peaks compared current Frank Et Al \");\n // System.out.println(usedPeaksTester.toString());\n\n\n }\n\n }\n }", "private void makeSubcutaneousFatVOIfromIntensityProfiles(int sliceNum) {\r\n \r\n int[] xLocsSubcutaneousVOI;\r\n int[] yLocsSubcutaneousVOI;\r\n int[] zVals;\r\n try {\r\n xLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n yLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n zVals = new int [360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeSubcutaneousFatVOIfromIntensityProfiles(): Can NOT allocate xLocsSubcutaneousVOI\");\r\n return;\r\n }\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n // fixSubcutaneiousFat2DVOI requires the zVal to be 0 (does VOI extraction on a 2D slice image)\r\n zVals[idx] = 0;\r\n }\r\n \r\n int numSamples;\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n numSamples = intensityProfiles[idx].size();\r\n \r\n int sampleIdx = numSamples - 10; // skip over the skin\r\n while (sampleIdx >= 0 &&\r\n intensityProfiles[idx].get(sampleIdx) < muscleThresholdHU &&\r\n intensityProfiles[idx].get(sampleIdx) > airThresholdHU) {\r\n sampleIdx--;\r\n }\r\n if (sampleIdx <= 0) {\r\n // could not find a valid subcutaneous fat point in the intensity profile\r\n// MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find the subcutaneous fat VOI point in the intensity profile for angle: \" +idx * angularResolution);\r\n if (idx > 0) {\r\n // assign this subcutaneous fat VOI point to the previous point if one exists\r\n xLocsSubcutaneousVOI[idx] = xLocsSubcutaneousVOI[idx-1];\r\n yLocsSubcutaneousVOI[idx] = yLocsSubcutaneousVOI[idx-1];\r\n } else {\r\n // assign this subcutaneous fat VOI point to the abdomen VOI point\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(numSamples - 1);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(numSamples - 1);\r\n }\r\n } else {\r\n // we found a point in the intensity profile that matches subcutaneous fat\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(sampleIdx);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(sampleIdx);\r\n }\r\n \r\n } // end for (int idx = 0; ...)\r\n\r\n // make the VOI's and add the points to them\r\n subcutaneousVOI.importCurve(xLocsSubcutaneousVOI, yLocsSubcutaneousVOI, zVals);\r\n\r\n }", "private void dist2Pos3Beacons()\n {\n //Betrachtung bei 3 Empfaengern\n double dist12 = Math.sqrt(Math.pow(posReceiver[0][0] - posReceiver[1][0], 2) + Math.pow(posReceiver[0][1] - posReceiver[1][1], 2));\n double dist13 = Math.sqrt(Math.pow(posReceiver[0][0] - posReceiver[2][0], 2) + Math.pow(posReceiver[0][1] - posReceiver[2][1], 2));\n double dist23 = Math.sqrt(Math.pow(posReceiver[1][0] - posReceiver[2][0], 2) + Math.pow(posReceiver[1][1] - posReceiver[2][1], 2));\n\n boolean temp12 = Math.abs(radius[0] - radius[1]) > dist12;\n boolean temp23 = Math.abs(radius[1] - radius[2]) > dist23;\n boolean temp13 = Math.abs(radius[0] - radius[2]) > dist13;\n\n //Zwei Kreise innerhalb eines anderen Kreises\n if ((temp12 && temp23) || (temp12 && temp13) || (temp23 && temp13))\n {\n double f0 = (dist12 / radius[0] + dist13 / radius[0]) / 2;\n double f1 = (dist12 / radius[1] + dist23 / radius[1]) / 2;\n double f2 = (dist12 / radius[2] + dist13 / radius[2]) / 2;\n\n radius[0] = radius[0] * f0;\n radius[1] = radius[1] * f1;\n radius[2] = radius[2] * f2;\n }\n //Kreis 2 in Kreis 1\n if ((Math.abs(radius[0] - radius[1]) > dist12) && (radius[0] > radius[1]))\n {\n double[][] posRec = new double[][]{{posReceiver[0][0],posReceiver[0][1]},{posReceiver[1][0],posReceiver[1][1]},{posReceiver[2][0],posReceiver[2][1]}};\n double[] rad =new double[]{radius[0],radius[1],radius[2]};\n calcCircleInCircle(posRec, rad, dist13);\n }\n //Kreis 1 in Kreis 2\n else if ((Math.abs(radius[0] - radius[1]) > dist12) && (radius[1] > radius[0]))\n {\n double[][] posRec = new double[][]{{posReceiver[1][0],posReceiver[1][1]},{posReceiver[0][0],posReceiver[0][1]},{posReceiver[2][0],posReceiver[2][1]}};\n double[] rad =new double[]{radius[1],radius[0],radius[2]};\n calcCircleInCircle(posRec, rad, dist23);\n }\n //Kreis 3 in Kreis 1\n else if ((Math.abs(radius[0] - radius[2]) > dist13) && (radius[0] > radius[2]))//Kreis 3 in 1\n {\n double[][] posRec = new double[][]{{posReceiver[2][0],posReceiver[2][1]},{posReceiver[0][0],posReceiver[0][1]},{posReceiver[1][0],posReceiver[1][1]}};\n double[] rad =new double[]{radius[2],radius[0],radius[1]};\n calcCircleInCircle(posRec, rad, dist12);\n }\n //Kreis 1 in Kreis 3\n else if ((Math.abs(radius[0] - radius[2]) > dist13) && (radius[2] > radius[0]))//Kreis 1 in 3\n {\n double[][] posRec = new double[][]{{posReceiver[0][0],posReceiver[0][1]},{posReceiver[2][0],posReceiver[2][1]},{posReceiver[1][0],posReceiver[1][1]}};\n double[] rad =new double[]{radius[0],radius[2],radius[1]};\n calcCircleInCircle(posRec, rad, dist23);\n }\n //Kreis 3 in Kreis 2\n else if ((Math.abs(radius[1] - radius[2]) > dist23) && (radius[1] > radius[2]))//Kreis 3 in 2\n {\n double[][] posRec = new double[][]{{posReceiver[2][0],posReceiver[2][1]},{posReceiver[1][0],posReceiver[1][1]},{posReceiver[0][0],posReceiver[0][1]}};\n double[] rad =new double[]{radius[2],radius[1],radius[0]};\n calcCircleInCircle(posRec, rad, dist12);\n }\n //Kreis 2 in Kreis 3\n else if ((Math.abs(radius[1] - radius[2]) > dist23) && (radius[2] > radius[1]))//Kreis 2 ind 3\n {\n double[][] posRec = new double[][]{{posReceiver[1][0],posReceiver[1][1]},{posReceiver[2][0],posReceiver[2][1]},{posReceiver[0][0],posReceiver[0][1]}};\n double[] rad =new double[]{radius[1],radius[2],radius[0]};\n calcCircleInCircle(posRec, rad, dist13);\n }\n //Kein Kreis liegt innerhalb eines Anderen\n else\n {\n\n if ((dist12 > (radius[0] + radius[1])) && (dist13 > (radius[0] + radius[2])) && (dist23 > (radius[1] + radius[2])))\n {\n double p1[] = new double[2];\t//x\n double p2[] = new double[2];\t//y\n\n double norm12 = norm(posReceiver[0][0], posReceiver[0][1], posReceiver[1][0], posReceiver[1][1]);\n // Verbindungspunkte Kreis 1 und 2\n p1[0] = posReceiver[0][0] + (radius[0]/ norm12) * (posReceiver[1][0] - posReceiver[0][0]); //x-P1\n p1[1] = posReceiver[0][1] + (radius[0]/ norm12) * (posReceiver[1][1] - posReceiver[0][1]); //y-P1\n p2[0] = posReceiver[1][0] + (radius[1]/ norm12) * (posReceiver[0][0] - posReceiver[1][0]); //x-P2\n p2[1] = posReceiver[1][1] + (radius[1]/ norm12) * (posReceiver[0][1] - posReceiver[1][1]); //y-P2\n double m12[] = new double[2];\n m12[0] = p1[0] + 0.5 * (p2[0] - p1[0]);\t//x\n m12[1] = p1[1] + 0.5 * (p2[1] - p1[1]);\t//y\n\n\n double norm23 = norm(posReceiver[1][0], posReceiver[1][1], posReceiver[2][0], posReceiver[2][1]);\n // Verbindungspunkte Kreis 2 und 3\n p1[0] = posReceiver[1][0] + (radius[1]/ norm23) * (posReceiver[2][0] - posReceiver[1][0]); //x-P1\n p1[1] = posReceiver[1][1] + (radius[1]/ norm23) * (posReceiver[2][1] - posReceiver[1][1]); //y-P1\n p2[0] = posReceiver[2][0] + (radius[2]/ norm23) * (posReceiver[1][0] - posReceiver[2][0]); //x-P2\n p2[1] = posReceiver[2][1] + (radius[2]/ norm23) * (posReceiver[1][1] - posReceiver[2][1]); //y-P2\n double m23[] = new double[2];\n m23[0] = p1[0] + 0.5 * (p2[0] - p1[0]);\t//x\n m23[1] = p1[1] + 0.5 * (p2[1] - p1[1]);\t//y\n\n\n double norm31 = norm(posReceiver[2][0], posReceiver[2][1], posReceiver[0][0], posReceiver[0][1]);\n // Verbindungspunkte Kreis 3 und 1\n p1[0] = posReceiver[2][0] + (radius[2]/ norm31) * (posReceiver[0][0] - posReceiver[2][0]); //x-P1\n p1[1] = posReceiver[2][1] + (radius[2]/ norm31) * (posReceiver[0][1] - posReceiver[2][1]); //y-P1\n p2[0] = posReceiver[0][0] + (radius[0]/ norm31) * (posReceiver[2][0] - posReceiver[0][0]); //x-P2\n p2[1] = posReceiver[0][1] + (radius[0]/ norm31) * (posReceiver[2][1] - posReceiver[0][1]); //y-P2\n double m31[] = new double[2];\n m31[0] = p1[0] + 0.5 * (p2[0] - p1[0]);\t//x\n m31[1] = p1[1] + 0.5 * (p2[1] - p1[1]);\t//y\n\n\n // Norm der drei Punkte berechnen\n double a_p = Math.sqrt((m12[0] * m12[0]) + (m12[1] * m12[1]));\n double b_p = Math.sqrt((m23[0] * m23[0]) + (m23[1] * m23[1]));\n double c_p = Math.sqrt((m31[0] * m31[0]) + (m31[1] * m31[1]));\n\n double denominator = 2 * (((m12[0] * m23[1]) - (m12[1] * m23[0])) + (m23[0] * m31[1] - m23[1] * m31[0]) + (m31[0] * m12[1] - m31[1] * m12[0]));\n xPos_func = (1/ denominator)*(((b_p * b_p - c_p * c_p)*(-m12[1]) + (c_p * c_p - a_p * a_p)* (-m23[1]) + (a_p * a_p - b_p * b_p)*(-m31[1])));\n yPos_func = (1/ denominator)*(((b_p * b_p - c_p * c_p)*m12[0] + (c_p * c_p - a_p * a_p)* m23[0] + (a_p * a_p - b_p * b_p)*m31[0]));\n errRad_func = norm(xPos_func, yPos_func, m12[0], m12[1]);\n\n }\n // Kreis 1 und 3 schneiden sich\n else if ((dist12 > (radius[0] + radius[1])) && (dist23 > (radius[1] + radius[2])))\n {\n double[][] posRec = new double[][]{{posReceiver[0][0],posReceiver[0][1]},{posReceiver[2][0],posReceiver[2][1]},{posReceiver[1][0],posReceiver[1][1]}};\n double[] rad = new double[]{radius[0],radius[2],radius[1]};\n calc2Circle(posRec,rad);\n }\n //Kreis 2 und 3 schneide sich\n else if ((dist12 > (radius[0] + radius[1])) && (dist13 > (radius[0] + radius[2])))\n {\n double[][] posRec = new double[][]{{posReceiver[1][0],posReceiver[1][1]},{posReceiver[2][0],posReceiver[2][1]},{posReceiver[0][0],posReceiver[0][1]}};\n double[] rad = new double[]{radius[1],radius[2],radius[0]};\n calc2Circle(posRec,rad);\n }\n //Kreis 1 und 2 schneiden sich\n else if ((dist13 > (radius[0] + radius[2])) && (dist23 > (radius[1] + radius[2])))\n {\n double[][] posRec = new double[][]{{posReceiver[0][0],posReceiver[0][1]},{posReceiver[1][0],posReceiver[1][1]},{posReceiver[2][0],posReceiver[2][1]}};\n double[] rad = new double[]{radius[0],radius[1],radius[2]};\n calc2Circle(posRec,rad);\n }\n else if ((dist12 > (radius[0] + radius[1])))\n {\n double[][] posRec = new double[][]{\n {posReceiver[0][0],posReceiver[0][1]},\n {posReceiver[1][0],posReceiver[1][1]},\n {posReceiver[2][0],posReceiver[2][1]}};\n double[] rad = new double[]{radius[0],radius[1],radius[2]};\n calc1Circle(posRec,rad);\n }\n else if ((dist23 > (radius[1] + radius[2])))\n {\n double[][] posRec = new double[][]{\n {posReceiver[1][0],posReceiver[1][1]},\n {posReceiver[2][0],posReceiver[2][1]},\n {posReceiver[0][0],posReceiver[0][1]}};\n double[] rad = new double[]{radius[1],radius[2],radius[0]};\n calc1Circle(posRec,rad);\n }\n else if ((dist13 > (radius[0] + radius[2])))\n {\n double[][] posRec = new double[][]{\n {posReceiver[0][0],posReceiver[0][1]},\n {posReceiver[2][0],posReceiver[2][1]},\n {posReceiver[1][0],posReceiver[1][1]}};\n double[] rad = new double[]{radius[0],radius[2],radius[1]};\n calc1Circle(posRec,rad);\n }\n else\n {\n double x1 = 0, y1 = 0, x2 = 0, y2 = 0, x3 = 0, y3 = 0;\n //Kreisschnittpunkte\n //Kreisschnittpunkte\n //Kreisschnittpunkte\n double pos12[][] = circlepoints2(posReceiver[0][0], posReceiver[0][1], posReceiver[1][0], posReceiver[1][1], radius[0], radius[1]);\n double pos23[][] = circlepoints2(posReceiver[1][0], posReceiver[1][1], posReceiver[2][0], posReceiver[2][1], radius[1], radius[2]);\n double pos13[][] = circlepoints2(posReceiver[0][0], posReceiver[0][1], posReceiver[2][0], posReceiver[2][1], radius[0], radius[2]);\n\n if(radius[0] >= norm(pos23[0][0],pos23[0][1], posReceiver[0][0],posReceiver[0][1]))\n {\n x1 = pos23[0][0];\n y1 = pos23[0][1];\n }\n else if(radius[0] >= norm(pos23[1][0], pos23[1][1], posReceiver[0][0],posReceiver[0][1]))\n {\n x1 = pos23[1][0];\n y1 = pos23[1][1];\n }\n\n if(radius[1] >= norm(pos13[0][0], pos13[0][1], posReceiver[1][0],posReceiver[1][1]))\n {\n x2 = pos13[0][0];\n y2 = pos13[0][1];\n }\n else if(radius[1] >= norm(pos13[1][0], pos13[1][1], posReceiver[1][0],posReceiver[1][1]))\n {\n x2 = pos13[1][0];\n y2 = pos13[1][1];\n }\n\n if(radius[2] >= norm(pos12[0][0], pos12[0][1], posReceiver[2][0],posReceiver[2][1]))\n {\n x3 = pos12[0][0];\n y3 = pos12[0][1];\n }\n else if(radius[2] >= norm(pos12[1][0], pos12[1][1], posReceiver[2][0],posReceiver[2][1]))\n {\n x3 = pos12[1][0];\n y3 = pos12[1][1];\n }\n\n double tempD = x1 * y2 + x2 * y3 + x3 * y1 - x1 * y3 - x2 * y1 - x3 * y2;\n\n xPos_func = (0.5*(\n -y1*(y2*y2)\n +y1*(y3*y3)\n -y1*(x2*x2)\n +y1*(x3*x3)\n\n +y2*(y1*y1)\n -y2*(y3*y3)\n +y2*(x1*x1)\n -y2*(x3*x3)\n\n -y3*(y1*y1)\n +y3*(y2*y2)\n -y3*(x1*x1)\n +y3*(x2*x2)\n ))/ tempD;\n\n yPos_func = (0.5*(\n +x1*(x2*x2)\n -x1*(x3*x3)\n +x1*(y2*y2)\n -x1*(y3*y3)\n\n -x2*(x1*x1)\n +x2*(x3*x3)\n -x2*(y1*y1)\n +x2*(y3*y3)\n\n +x3*(x1*x1)\n -x3*(x2*x2)\n +x3*(y1*y1)\n -x3*(y2*y2)\n ))/ tempD;\n\n errRad_func = norm(x1, y1, xPos_func, yPos_func);\n }\n }\n }", "@Test\n\tpublic void testQualityUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Conjured Mana Cake\", 1, -1));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality under 0 Conjured Mana Cake\", -1, quality);\n\t}", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.binsTipText();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(25);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public void detectCollisions() {\r\n\r\n for (int pos = 0; pos < this.numberOfBees; pos++) {\r\n if (!beesArray[pos].isInCollisionRisk()) {\r\n int i = beesArray[pos].getI();\r\n int j = beesArray[pos].getJ();\r\n int k = beesArray[pos].getK();\r\n for (int x = (i - offset); x <= (i + offset); x++) {\r\n for (int y = (j - offset); y <= (j + offset); y++) {\r\n for (int z = (k - offset); z <= (k + offset); z++) {\r\n if (x == i && y == j && z == k || (Math.abs(i - j) == 0) || Math.abs(i - j) == 2 * offset) {\r\n continue;\r\n } else if (BeesCollision[x][y][z] != null) {\r\n beesArray[pos].setCollision(true);\r\n if (BeesCollision[x][y][z].size() == 1) {\r\n BeesCollision[x][y][z].getFirst().setCollision(true);\r\n break;\r\n }\r\n }\r\n }\r\n if (beesArray[pos].isInCollisionRisk()) {\r\n break;\r\n }\r\n }\r\n if (beesArray[pos].isInCollisionRisk()) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }", "@Test\n\tpublic void kingNotOnThroneWhitePieceUpBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(8,36);\n\t\td.set(6,28);\n\t\td.set(0,43);\n\t\td.set(18,19);\n\t\td.set(5,50);\n\t\td.set(13,39);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(39);\n\t\tassertTrue(5==test_arr.get(0).getX() && 4==test_arr.get(0).getY());\n\t}", "private void detect_fire(double o2 , double co2) {\n\t\tdouble o2_percent = o2 ; \r\n\t\tdouble co2_percent = co2 ; \r\n\t\tif(o2_percent < o2_percentage && co2_percent > co2_percentage ) {\r\n\t\t\tpump_water();\r\n\t\t}\r\n\t\t\r\n\t}", "public void findTrack() {\n for (Node n : start_node.getLinks()) {\n precedenti.put(n, start_node);\n valori.put(n, calculator.calcDistance(n, start_node));\n }\n while (!da_collegare.isEmpty()) {\n Node piu_vicino = null;\n double min = Double.MAX_VALUE;\n for (Node n : da_collegare) {\n double dist = valori.get(n);\n if (dist - min < THRESHOLD) {\n min = dist;\n piu_vicino = n;\n }\n }\n double dist = valori.get(piu_vicino);\n for (Node n : piu_vicino.getLinks()) {\n double ricalc = dist + calculator.calcDistance(n, piu_vicino);\n if (ricalc - valori.get(n) < THRESHOLD) {\n precedenti.put(n, piu_vicino);\n valori.put(n, ricalc);\n }\n }\n da_collegare.remove(piu_vicino);\n }\n }", "@Test\n\tpublic void kingNotOnThroneWhitePieceRightBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(11,106);\n\t\td.set(4,96);\n\t\td.set(3,64);\n\t\td.set(0,85);\n\t\td.set(7,53);\n\t\td.set(16,62);\n\t\td.set(3,63);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(63);\n\t\tassertTrue(6==test_arr.get(0).getX() && 5==test_arr.get(0).getY());\n\t}", "public void findBoundary(boolean useDestinations)\r\n\t{\n\tdouble maxSpacing = res/5.0;\r\n\tif(maxSpacing<1) maxSpacing = 1;\r\n\t\r\n\t//First make sure point sampling is dense enough:\t\r\n\tVector<Int2d> surfaceT = new Vector<Int2d>();\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tsurfaceT.add(p);\r\n\t\tInt2d p2 = surface.get((it+1)%sl);\r\n\t\tdouble pdist = p2.distance(p);\r\n\t\tif(pdist > maxSpacing)\r\n\t\t\t{\r\n\t\t\t// populate this line segment with points\r\n\t\t\tint extraPoints = (int)(pdist/maxSpacing); // - 2 cause we already have 2 points\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<extraPoints; i++)\r\n\t\t\t\t{\r\n\t\t\t\tInt2d pN = new Int2d(p);\r\n\t\t\t\tInt2d diff = new Int2d();\r\n\t\t\t\tdiff.sub(p2,p);\r\n\t\t\t\tpN.scaleAdd((double)(i+1.)/(extraPoints+1.),diff,pN);\r\n\t\t\t\tsurfaceT.add(pN);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t//System.out.println(\"got here2.1\");\r\n\tsurface = surfaceT;\r\n\tcanvas1.surface = surface;\r\n\tsl = surfaceT.size();\r\n\t\t\r\n\t//System.out.println(sl);\r\n\t\r\n\t\t\t\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tint i = (int)(p.x/res);\r\n\t\tint j = (int)(p.y/res);\r\n\t\tboolean extraWide = false;\r\n\t\tboolean extraHigh = false;\t\t\r\n\t\t\r\n\t\tif((p.y % res) == 0)\r\n\t\t\t{\r\n\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\textraHigh = true;\r\n\t\t\t}\r\n\t\tif((p.x % res) == 0)\r\n\t\t\t{\r\n\t\t\textraWide = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\tint len = 4;\r\n\t\tif(extraWide && extraHigh) len = 9;\r\n\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\r\n\t\tInt2d[] pi = new Int2d[len];\r\n\t\tint[] ic = new int[len];\r\n\t\tint[] jc = new int[len];\r\n\t\t\r\n\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\r\n\t\tfor(int c=0; c<len; c++)\r\n\t\t\t{\r\n\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t{\r\n\t\t\t\tif(!useDestinations)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t//else phi[ic[c]][jc[c]] = -phiStart;\r\n\t\t\t\t// Way suggested in paper, but this looks bad with interpolation\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"got here2.2\");\r\n\t\t\r\n\tif(useDestinations) //Use destinations\r\n\t\t{\t\t\r\n\t\t// Sets destination point distances accordingly\r\n\t\t\r\n\t\tint dl = destinations.size();\r\n\t\tfor(int it=0; it<dl; it++)\r\n\t\t\t{\r\n\t\t\tInt2d p = destinations.get(it);\r\n\t\t\tint i = (int)(p.x/res);\r\n\t\t\tint j = (int)(p.y/res);\r\n\t\t\tboolean extraWide = false;\r\n\t\t\tboolean extraHigh = false;\t\t\r\n\t\t\t\r\n\t\t\tif((p.y % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\t\textraHigh = true;\r\n\t\t\t\t}\r\n\t\t\tif((p.x % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\textraWide = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tint len = 4;\r\n\t\t\tif(extraWide && extraHigh) len = 9;\r\n\t\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\t\r\n\t\t\tInt2d[] pi = new Int2d[len];\r\n\t\t\tint[] ic = new int[len];\r\n\t\t\tint[] jc = new int[len];\r\n\t\t\t\r\n\t\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\t\r\n\t\t\tfor(int c=0; c<len; c++)\r\n\t\t\t\t{\r\n\t\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\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}\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\tint bl = boundary.size();\r\n\t/*\r\n\tfor(int k=0; k<bl; k++)\r\n\t\t{\r\n\t\tSystem.out.println(boundary.get(k).x + \", \" + boundary.get(k).y + \": element \" + k);\r\n\t\t}\r\n\t\t*/\r\n\t\t\t\r\n\tfor(int i=0; i<bl; i++)\r\n\t\t{\r\n\t\tInt2d pi = boundary.get(i);\r\n\t\tpi.phi = phi[pi.x][pi.y];\r\n\t\t}\r\n\t}", "public void run(){\n\n for (int locIdx = begN; locIdx < endN; locIdx++) {\n\n // do mean-shift for profiles at these locations\n\n for (int profileIdx=0; profileIdx<profiles.get(locIdx).size(); profileIdx++) {\n\n // access the detection\n// int profileLength = profiles.get(locIdx).get(profileIdx).length;\n\n // calculate peaks for the ring 'profileIdx'\n ArrayList<Float> currPeaks = extractPeakIdxsList(profiles.get(locIdx).get(profileIdx), startIdx.get(profileIdx), finishIdx.get(locIdx).get(profileIdx));\n\n //if (currPeaks.size()<3) {\n // // it is not a bifurcation according to MS for this ring, don't calculate further, leave empty fields of peakIdx at this location\n // break;\n //}\n //else {\n // add those points\n for (int pp=0; pp<currPeaks.size(); pp++){\n peakIdx.get(locIdx).get(profileIdx).add(pp, currPeaks.get(pp));\n }\n //}\n\n/*\n\t\t\t\tfor (int k=0; k<nrPoints; k++) {\n start[k] = ((float) k / nrPoints) * profileLength;\n }\n\n\t\t\t\tTools.runMS( \tstart,\n \tprofiles.get(locIdx).get(profileIdx),\n \tmaxIter,\n \tepsilon,\n \th,\n\t\t\t\t\t\t\t\tmsFinish);\n*/\n\n /*\n for (int i1=0; i1<nrPoints; i1++) {\n convIdx.get(locIdx).get(profileIdx)[i1] = (float) msFinish[i1];\n }\n*/\n/*\n int inputProfileLength = profiles.get(locIdx).get(profileIdx).length;\n Vector<float[]> cls = Tools.extractClusters1(msFinish, minD, M, inputProfileLength);\n\t\t\t\textractPeakIdx(cls, locIdx, profileIdx); // to extract 3 major ones (if there are three)\n*/\n\n }\n\n }\n\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"%\");\n discretize0.m_DefaultCols = \"%\";\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n // Undeclared exception!\n try { \n discretize0.getCutPoints(1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\r\n\tpublic void calculLostPointsByOneRuleBelowMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(2f, 0.5f, 3f), new Integer(1)),\r\n\t\t\t\tnew Float(0));\r\n\t}", "public void hardMode(Boolean hitResult) throws LocationHitException{\r\n\t\tint x = 0, y = 0;\r\n\t\tint mostProbable;\r\n\r\n\t\tif (minMax == 0) {\r\n\t\t\tmostProbable = 1;\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\ty = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tminMax = 1;\r\n\t\t} else {\r\n\t\t\tmostProbable = 1000;\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\ty = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tminMax = 0;\r\n\t\t}\r\n\r\n\t\tif (!hitResult && direction.isEmpty()) {\r\n\t\t\tboolean newHit = false;\r\n\t\t\twhile (!newHit) {\r\n\t\t\t\tif (Player.userGrid[x][y] == 2 || Player.userGrid[x][y] == 3) {\r\n\t\t\t\t\tprobabilityGrid[x][y] = -1;\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else\r\n\t\t\t\t\tnewHit = true;\r\n\t\t\t}\r\n\t\t} else if (direction.isEmpty()) {\r\n\t\t\thitFound.add(hitX + \";\" + hitY);\r\n\t\t\tcounter++;\r\n\t\t\tif ((hitX + 1) < 9) {\r\n\t\t\t\tx = hitX + 1;\r\n\t\t\t\ty = hitY;\r\n\t\t\t\tdirection = \"HorizontalFront\";\r\n\t\t\t} else {\r\n\t\t\t\tx = hitX - 1;\r\n\t\t\t\ty = hitY;\r\n\t\t\t\tdirection = \"HorizontalBack\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (direction.equals(\"HorizontalFront\")) {\r\n\t\t\t\tint tempX = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\tint tempY = Integer.parseInt(hitFound.get(0).split(\";\")[1]);\r\n\t\t\t\tif (hitResult && (hitX + 1 < 9)) {\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tx = hitX + 1;\r\n\t\t\t\t\ty = hitY;\r\n\t\t\t\t} else if (tempX > 0) {\r\n\t\t\t\t\tx = tempX - 1;\r\n\t\t\t\t\ty = tempY;\r\n\t\t\t\t\tdirection = \"HorizontalBack\";\r\n\t\t\t\t} else if ((Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1 < 11)) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1;\r\n\t\t\t\t\tdirection = \"VerticalFront\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t}\r\n\t\t\t} else if (direction.equals(\"HorizontalBack\")) {\r\n\t\t\t\tif (hitResult && (hitX > 0)) {\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tx = hitX - 1;\r\n\t\t\t\t\ty = hitY;\r\n\t\t\t\t} else if (Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1 < 11 && counter < 2) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1;\r\n\t\t\t\t\tdirection = \"VerticalFront\";\r\n\t\t\t\t} else if (counter < 2) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t} else if (direction.equals(\"VerticalFront\") && counter < 2) {\r\n\t\t\t\tif (hitResult && (hitY + 1 < 11)) {\r\n\t\t\t\t\tx = hitX;\r\n\t\t\t\t\ty = hitY + 1;\r\n\t\t\t\t} else if (Integer.parseInt(hitFound.get(0).split(\";\")[1]) > 0) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (hitResult && (hitY > 0) && counter < 2) {\r\n\t\t\t\t\tx = hitX;\r\n\t\t\t\t\ty = hitY - 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tprobabilityGrid[x][y] = -1;\r\n\t\thitX = x;\r\n\t\thitY = y;\r\n\r\n\t\tint hitCoord[] = { x, y };\r\n\t\tsetCoords(hitCoord);\r\n\r\n\t\tif (Player.userGrid[x][y] == 1) {\r\n\t\t\t// change the grid value from 1 to 2 to signify hit\r\n\t\t\tPlayer.userGrid[x][y] = 2;\r\n\t\t\tString coordx = Integer.toString(x);\r\n\t\t\tString coordy = Integer.toString(y);\r\n\t\t\tif(!time1) {\r\n\t\t\t\ttimea=java.lang.System.currentTimeMillis();\r\n\t\t\t\ttime1=!time1;\r\n\t\t\t}else if(!time2) {\r\n\t\t\t\ttimeb=java.lang.System.currentTimeMillis();\r\n\t\t\t\t\ttime2=!time2;\r\n\t\t\t}else {\r\n\t\t\t\tdouble t=timeb-timea;\r\n\t\t\t\tif(t<3000) {\r\n\t\t\t\t\tsetScore(20);\r\n\t\t\t\t}\r\n\t\t\t\ttime1=false;\r\n\t\t\t\ttime2=false;\r\n\t\t\t\ttimea=0;\r\n\t\t\t\ttimeb=0;\r\n\t\t\t\t\r\n\t\t\t}//if time between consecutive hit is less than 3 seconds ,then bonus score\r\n\t\t\tsetScore(10);\r\n\t\t\tPlayer.coordinatesHit.add(coordx + \",\" + coordy);\r\n\t\t\tsetReply(\"It's a Hit!!!!!\");\r\n\t\t} else if (Player.userGrid[x][y] == 0) {\r\n\t\t\tPlayer.userGrid[x][y] = 3;\r\n\t\t\tsetScore(-1);\r\n\t\t\tsetReply(\"It's a miss!!!!!\");\r\n\t\t} else if (Player.userGrid[x][y] == 2 || Player.userGrid[x][y] == 3) {\r\n\t\t\tsetReply(\"The location has been hit earlier\");\r\n\t\t\t//throw new LocationHitException(\"The location has been hit earlier\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void offsetGreaterThanEgress() throws InterruptedException {\n int offset = 200;\n int egress = 10;\n this.sfcOfRendererDataListener.onDataTreeChanged(createSfcOfRendererConfig(offset, egress));\n Thread.sleep(100); // Let the thread finish\n verifySettersCalled(offset, egress);\n }", "double terrainFactorCav() {\n double value;\n switch (getParent().getField().getTerrain().getId()) {\n case TERRAIN_B:\n case TERRAIN_Q:\n value = 1d;\n break;\n\n case TERRAIN_H:\n case TERRAIN_K:\n case TERRAIN_T:\n value = .8d;\n break;\n\n case TERRAIN_W:\n value = .35d;\n break;\n\n case TERRAIN_G:\n case TERRAIN_D:\n value = .5d;\n break;\n\n case TERRAIN_J:\n value = .15d;\n break;\n\n case TERRAIN_S:\n default:\n value = .25d;\n break;\n }\n return value;\n }", "public final void borderHysteresisThreshold(\r\n\t\t\tfinal int _lower,\r\n\t\t\tfinal int _upper) {\r\n\t\t\r\n\t\tBufferedImage bi_result = new BufferedImage(bi_image.getWidth(),\r\n\t\t\t\tbi_image.getHeight(), BufferedImage.TYPE_INT_RGB);\r\n\t\t\r\n\t\tdouble[][][] borderInfo1 = new double[bi_result.getWidth()][bi_result.getHeight()][2];\r\n\t\t\r\n\t\t/*\r\n\t\t * Step 1: Detection of border pixel.\r\n\t\t */\r\n\t\t\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\t\r\n\t\t\t\t//fold with \r\n\t\t\t\t//\r\n\t\t\t\t//\t-1/4\t0\t1/4\r\n\t\t\t\t//\t-2/4\t0\t2/4\r\n\t\t\t\t//\t-1/4\t0\t1/4\r\n\t\t\t\tint magnX = (\r\n\t\t\t\t\t\t-bi_image.getGrayifiedValue(x - 1, y - 1) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y + 1) / 3 \r\n\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y - 1) / 3 \r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y) / 3\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y + 1) / 3);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\tint magnY = (\r\n\t\t\t\t\t\t-bi_image.getGrayifiedValue(x - 1, y - 1) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y + 1) / 3 \r\n\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y - 1) / 3 \r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y) / 3\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y + 1) / 3);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//direction\r\n\t\t\t\tdouble direction;\r\n\t\t\t\tif (magnY != 0 && magnX != 0) {\r\n\t\t\t\t\tdirection = Math.atan(magnX / magnY);\r\n\t\t\t\t} else if (magnY == 0) {\r\n\t\t\t\t\tdirection = Math.atan(magnX / 0.01);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdirection = Math.atan(0);\r\n\t\t\t\t}\r\n\t\t\t\tdouble magnitude = Math.sqrt(magnX * magnX + magnY * magnY);\r\n\t\t\t\t\r\n\t\t\t\tmagnY = Math.abs(magnY);\r\n\t\t\t\tmagnX = Math.abs(magnX);\r\n\r\n\t\t\t\tborderInfo1[x][y][0] = magnitude;\r\n\t\t\t\tborderInfo1[x][y][1] = direction;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//non-maximum-suppression\r\n\r\n\t\tdouble[][][] borderInfo2 = new double[bi_result.getWidth()][bi_result.getHeight()][2];\r\n\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\t//nY\r\n\t\t\t\t// \r\n\t\t\t\t// |alpha\r\n\t\t\t\t// |\r\n\t\t\t\t// --------->nX\r\n\t\t\t\t// arctan(nX / ny) = Winkel(alpha). gegenkathete / ankathete\r\n\t\t\t\t//find neighbors of the pixel (x, y) by direction:\r\n\t\t\t\tdouble direction = borderInfo1[x][y][1];\r\n\r\n\t\t\t\tint nX = 1;\r\n\t\t\t\tint nY = 1;\r\n\t\t\t\tif (direction < 0)\r\n\t\t\t\t\tnX = -1;\r\n\t\t\t\telse if (direction > 0)\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (direction >= 0 && direction <= Math.PI / 4) {\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\tnY = 0;\r\n\t\t\t\t} else if (direction >= Math.PI / 4 && direction <= Math.PI * 2 / 4) {\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\tnY = 1;\r\n\t\t\t\t} else if (direction >= -Math.PI / 4 && direction <= 0) {\r\n\t\t\t\t\tnX = 0; \r\n\t\t\t\t\tnY = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t// - pi / 2 ; + pi / 2\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t\t\tif (Math.abs(borderInfo1[x][y][0]) >= Math.abs(borderInfo1[x + nX][y + nY][0])\r\n\t\t\t\t\t\t&& Math.abs(borderInfo1[x][y][0]) >= Math.abs(borderInfo1[x + nX][y + nY][0])) {\r\n\t\t\t\t\tborderInfo2[x][y][0] = borderInfo1[x][y][0];\r\n\t\t\t\t\tborderInfo2[x][y][1] = borderInfo1[x][y][1];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//hysteresis-threshold\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (borderInfo1[x][y][0] >= _lower){\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_potential);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_noBorder);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (borderInfo1[x][y][0] >= _upper){\r\n\t\t\t\t\tfollowEdge(x, y, bi_result);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (bi_result.getRGB(x, y) == rgb_potential){\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_noBorder);\r\n\t\t\t\t} else if (bi_result.getRGB(x, y) == rgb_border) {\r\n\t\t\t\t\tbi_result.setRGB(x, y, bi_image.getContent().getRGB(x, y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tBufferedViewer.show(bi_result);\r\n\t\tBufferedViewer.getInstance().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t}", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "public void getProbe () {\n double prxg;\n int index;\n double effaoa = effective_aoa();\n /* get variables in the generating plane */\n if (Math.abs(ypval) < .01) ypval = .05;\n getPoints(xpval,ypval);\n\n solver.getVel(lrg,lthg);\n loadProbe();\n\n pxg = lxgt;\n pyg = lygt;\n prg = lrgt;\n pthg = lthgt;\n pxm = lxmt;\n pym = lymt;\n /* smoke */\n if (pboflag == 3 ) {\n prxg = xpval;\n for (index =1; index <=POINTS_COUNT; ++ index) {\n getPoints(prxg,ypval);\n xg[19][index] = lxgt;\n yg[19][index] = lygt;\n rg[19][index] = lrgt;\n thg[19][index] = lthgt;\n xm[19][index] = lxmt;\n ym[19][index] = lymt;\n if (stall_model_type != STALL_MODEL_IDEAL_FLOW) { // stall model\n double apos = stall_model_type == STALL_MODEL_DFLT ? +10 : stall_model_apos;\n double aneg = stall_model_type == STALL_MODEL_DFLT ? -10 : stall_model_aneg;\n if (xpval > 0.0) {\n if (effaoa > apos && ypval > 0.0) { \n ym[19][index] = ym[19][1];\n } \n if (effaoa < aneg && ypval < 0.0) {\n ym[19][index] = ym[19][1];\n }\n }\n if (xpval < 0.0) {\n if (effaoa > apos && ypval > 0.0) { \n if (xm[19][index] > 0.0) {\n ym[19][index] = ym[19][index-1];\n }\n } \n if (effaoa < aneg && ypval < 0.0) {\n if (xm[19][index] > 0.0) {\n ym[19][index] = ym[19][index-1];\n }\n }\n }\n }\n solver.getVel(lrg,lthg);\n prxg = prxg + vxdir*STEP_X;\n }\n }\n return;\n }", "private final void m716k() {\n long j;\n boolean z = false;\n if (m717l()) {\n long b = m702b(this.f531p.f603f.mo443d());\n float f = this.f528m.mo376Q().f625b;\n ajd ajd = (ajd) this.f522g;\n int d = ajd.f433a.mo1961d();\n int i = ajd.f440h;\n if (ajd.f442j) {\n j = ajd.f435c;\n } else {\n j = ajd.f434b;\n }\n if (f > 1.0f) {\n j = Math.min(blm.m3630a(j, f), ajd.f436d);\n }\n if (b < j) {\n ajd.f441i = true;\n } else if (b >= ajd.f436d || d >= i) {\n ajd.f441i = false;\n }\n z = ajd.f441i;\n }\n this.f539x = z;\n if (z) {\n akl akl = this.f531p.f603f;\n long j2 = this.f513D;\n bks.m3512b(akl.mo445f());\n akl.f577a.mo1487c(akl.mo440b(j2));\n }\n m718m();\n }", "public static float pairwiseCutoffMI(short y, short[] C, InputData input, float cutoff) {\n\t\tfloat value = 0;\r\n\t\tfor(int c = 0; c < C.length; c++) {\r\n\t\t\tfloat temp = input.getPairwiseMI(y, C[c]);\r\n\t\t\tif(temp > value) value = temp;\r\n\t\t}\r\n\t\tif(value < cutoff) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "private primitives.Color AdaptiveDiffusedAndGlossyRec(Point3D centerP, double WidthAndHeight, double minCubeSize, Point3D pIntersection,Vector Vright,Vector Vup , Vector normal, int direction, int level , double k, double ktr, List<Point3D> prePoints) throws Exception {\r\n List<Point3D> nextCenterPList = new LinkedList<Point3D>();\r\n List<Point3D> cornersList = new LinkedList<Point3D>();\r\n List<primitives.Color> colorList = new LinkedList<primitives.Color>();\r\n Point3D tempCorner;\r\n GeoPoint gp;\r\n Ray tempRay;\r\n for (int i = -1; i <= 1; i += 2)\r\n for (int j = -1; j <= 1; j += 2) {\r\n tempCorner = centerP.add(Vright.scale(i * WidthAndHeight / 2)).add(Vup.scale(j * WidthAndHeight / 2));\r\n cornersList.add(tempCorner);\r\n if (prePoints == null || !isInList(prePoints, tempCorner)) {\r\n tempRay = new Ray(pIntersection, tempCorner.subtract(pIntersection), normal);\r\n if ((normal.dotProduct(tempRay.getDir()) < 0 && direction == 1) || (normal.dotProduct(tempRay.getDir()) > 0 && direction == -1)) {\r\n nextCenterPList.add(centerP.add(Vright.scale(i * WidthAndHeight / 4)).add(Vup.scale(j * WidthAndHeight / 4)));\r\n gp = findClosestIntersection(tempRay);\r\n if (gp == null)\r\n colorList.add(scene.background);\r\n else {\r\n colorList.add(calcColor(gp, tempRay, level - 1, k));\r\n } \r\n }\r\n \r\n }\r\n }\r\n\r\n if (nextCenterPList == null || nextCenterPList.size() == 0) {\r\n return primitives.Color.BLACK;\r\n }\r\n\r\n\r\n if (WidthAndHeight < minCubeSize * 2) {\r\n primitives.Color sumColor = primitives.Color.BLACK;\r\n for (primitives.Color color : colorList) {\r\n sumColor = sumColor.add(color);\r\n }\r\n return sumColor.reduce(colorList.size());\r\n }\r\n\r\n\r\n boolean isAllEquals = true;\r\n primitives.Color tempColor = colorList.get(0);\r\n for (primitives.Color color : colorList) {\r\n if (!tempColor.isAlmostEquals(color))\r\n isAllEquals = false;\r\n }\r\n if (isAllEquals && colorList.size() > 1)\r\n return tempColor;\r\n\r\n\r\n tempColor = primitives.Color.BLACK;\r\n for (Point3D center : nextCenterPList) {\r\n tempColor = tempColor.add(AdaptiveDiffusedAndGlossyRec(center, WidthAndHeight / 2, minCubeSize, pIntersection, Vright, Vup, normal, direction, level, k, ktr, cornersList));\r\n }\r\n return tempColor.reduce(nextCenterPList.size());\r\n }", "@Test\n\tpublic void kingNotOnThroneBlackPieceDownWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(11,76);\n\t\td.set(9,68);\n\t\td.set(10,69);\n\t\td.set(0,75);\n\t\td.set(12,84);\n\t\td.set(31,72);\n\t\td.set(12,83);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(83);\n\t\tassertTrue(5==test_arr.get(0).getX() && 6==test_arr.get(0).getY());\n\t}", "@ParameterizedTest\n @ArgumentsSource(TestForestProvider.class)\n public void testMultipleAttributions(RandomCutForest forest) {\n int hardPass=0;\n int causal=0;\n double [] point ={6.0,0.0,0.0};\n DiVector result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.2);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0);\n assertTrue(result.high[0] > forest.getAnomalyScore(point)/3);\n if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n // the last line states that first coordinate was high and was a majority contributor to the score\n // the previous test states that the contribution is twice the average of the 12 possible contributors.\n // these tests all subparts of the score at once\n\n point=new double [] {-6.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.getHighLowSum()>1.0);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] > forest.getAnomalyScore(point)/3);\n if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > forest.getAnomalyScore(point)/3);\n if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,-6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.low[1] > forest.getAnomalyScore(point)/3);\n if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,0.0,6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.low[2] < 0.5);\n assertTrue(result.high[2] > forest.getAnomalyScore(point)/3);\n if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n point=new double [] {0.0,0.0,-6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.high[2] < 0.5);\n assertTrue(result.low[2] > forest.getAnomalyScore(point)/3);\n if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n assertTrue(causal>=5); // maximum is 6; there can be skew in one direction\n\n point=new double [] {-3.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] >\n forest.getAnomalyScore(point)/3);\n\n /* For multiple causes, the relationship of scores only hold for larger\n * distances.\n */\n\n point=new double [] {-3.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.low[0] > 0.5) ++hardPass;\n assertTrue(result.high[0] < 0.5);\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > 0.5);\n if (result.high[1]>0.9) ++hardPass;\n assertTrue(result.getHighLowSum(2)< 0.5);\n assertTrue(result.high[1]+result.low[0]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {6.0,-3.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.5);\n assertTrue(result.high[0] > 0.5);\n if (result.high[0]>0.9) ++hardPass;\n if (result.low[1] > 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.getHighLowSum(2) < 0.5);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {20.0,-10.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n if (result.high[0]>1.8*result.low[1]) ++hardPass;\n if (result.low[1]>result.high[0]/2.2) ++hardPass;\n\n assertTrue(hardPass>=15); //maximum is 20\n }", "public int getThreshold() {\n/* 340 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static int offsetBits_infos_valid_noise_samples() {\n return 88;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate List<Integer> sbfsForCVTesting(List<Integer> corners,\n\t\t\tStroke stroke, IObjectiveFunction objFunction, double threshold) {\n\n\t\tdouble currError = Double.MAX_VALUE;\n\n\t\tList<Integer> cornerSubset = new ArrayList<Integer>(corners);\n\t\tList<List<Integer>> cornerSubsetList = new ArrayList<List<Integer>>(\n\t\t\t\tcornerSubset.size());\n\t\tList<Double> errorList = new ArrayList<Double>(cornerSubset.size());\n\n\t\tList<List<Integer>> forwardOnSubset = new ArrayList<List<Integer>>();\n\n\t\tint n = -1;\n\n\t\twhile (cornerSubset.size() > 2) {\n\n\t\t\t// Go backward\n\t\t\tList<Object> backResults = prevBestSubset(cornerSubset, stroke,\n\t\t\t\t\tobjFunction);\n\t\t\tList<Integer> backSubset = (List<Integer>) backResults.get(0);\n\t\t\tdouble backError = (Double) backResults.get(1);\n\n\t\t\t// Go forward (if possible)\n\t\t\tint forwardCorner = -1;\n\t\t\tdouble forwardError = Double.MAX_VALUE;\n\t\t\tif (cornerSubset.size() < corners.size() - 1) {\n\t\t\t\tList<Object> forwardResults = nextBestCorner(cornerSubset,\n\t\t\t\t\t\tcorners, stroke, objFunction);\n\t\t\t\tforwardCorner = (Integer) forwardResults.get(0);\n\t\t\t\tforwardError = (Double) forwardResults.get(1);\n\t\t\t}\n\n\t\t\tif (forwardCorner != -1 && forwardError < errorList.get(n - 1)\n\t\t\t\t\t&& !alreadySeenSubset(cornerSubset, forwardOnSubset)) {\n\n\t\t\t\tforwardOnSubset.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\tcornerSubset.add(forwardCorner);\n\t\t\t\tCollections.sort(cornerSubset);\n\n\t\t\t\tcurrError = forwardError;\n\t\t\t\tn--;\n\t\t\t} else {\n\t\t\t\tcornerSubset = backSubset;\n\t\t\t\tcurrError = backError;\n\t\t\t\tn++;\n\t\t\t}\n\n\t\t\tif (cornerSubsetList.size() <= n) {\n\t\t\t\tcornerSubsetList.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.add(currError);\n\t\t\t} else {\n\t\t\t\tcornerSubsetList.set(n, new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.set(n, currError);\n\t\t\t}\n\t\t}\n\n\t\tList<Integer> bestSubset = null;\n\n\t\tdouble d1Errors[] = new double[errorList.size()];\n\t\tfor (int i = 1; i < errorList.size(); i++) {\n\t\t\tdouble deltaError = errorList.get(i) / errorList.get(i - 1);\n\t\t\td1Errors[i] = deltaError;\n\t\t}\n\n\t\tfor (int i = 1; i < d1Errors.length; i++) {\n\t\t\tif (d1Errors[i] > threshold) {\n\t\t\t\tbestSubset = cornerSubsetList.get(i - 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (bestSubset == null) {\n\t\t\tbestSubset = cornerSubsetList.get(0);\n\t\t}\n\n\t\tCollections.sort(bestSubset);\n\n\t\treturn bestSubset;\n\t}", "public boolean isOverThreshold(){return isOverThreshold;}", "public static boolean outsideFactor()\n/* */ {\n/* 63 */ return !markovFactor;\n/* */ }", "String getCollisionAvoidanceFactor();", "public Location attack() {\n resetBoard();\n\n if (getHits().isEmpty()) {\n// System.out.println(\"Hunting\");\n\n for (final int[] r : board) {\n for (int c = 0; c < r.length; c++) {\n if (getIntegers().contains(5) && (c < (r.length - 4)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3]) && (-1 != r[c + 4])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n ++r[c + 4];\n }\n\n if (getIntegers().contains(4) && (c < (r.length - 3)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n }\n if (getIntegers().contains(3) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(2) && (c < (r.length - 1)))\n if ((-1 != r[c]) && (-1 != r[c + 1])) {\n ++r[c];\n ++r[c + 1];\n }\n }\n }\n\n for (int c = 0; c < board[0].length; c++) {\n for (int r = 0; r < board.length; r++) {\n if (getIntegers().contains(5) && (r < (board.length - 4)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n\n if (getIntegers().contains(4) && (r < (board.length - 3)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n if (getIntegers().contains(3) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(2) && (r < (board.length - 1)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n }\n }\n } else {\n// System.out.println(\"Hitting\");\n\n for (final Location hit : getHits()) {\n final int r = hit.getRow();\n final int c = hit.getCol();\n\n if (getIntegers().contains(2)) {\n if ((0 <= (c - 1)) && (-1 != board[r][c]) && (-1 != board[r][c - 1])) {\n ++board[r][c];\n ++board[r][c - 1];\n }\n\n\n if (((c + 1) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1])) {\n ++board[r][c];\n ++board[r][c + 1];\n }\n\n if ((0 <= (r - 1)) && (-1 != board[r][c]) && (-1 != board[r - 1][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n }\n\n if (((r + 1) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n\n\n }\n if (getIntegers().contains(3)) {\n final int inc = Collections.frequency(getIntegers(), 3);\n\n if ((0 <= (c - 2)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2])) {\n board[r][c] += inc;\n board[r][c - 1] += inc;\n board[r][c - 2] += inc;\n }\n if (((c + 2) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2])) {\n board[r][c] += inc;\n board[r][c + 1] += inc;\n board[r][c + 2] += inc;\n }\n if ((0 <= (r - 2)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c])) {\n board[r][c] += inc;\n board[r - 1][c] += inc;\n board[r - 2][c] += inc;\n }\n if (((r + 2) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n board[r][c] += inc;\n board[r + 1][c] += inc;\n board[r + 2][c] += inc;\n }\n\n\n }\n if (getIntegers().contains(4)) {\n if ((0 <= (c - 3)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n }\n if (((c + 3) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n }\n if ((0 <= (r - 3)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n }\n if (((r + 3) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n\n\n }\n if (getIntegers().contains(5)) {\n if ((0 <= (c - 4)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3]) && (-1 != board[r][c - 4])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n ++board[r][c - 4];\n }\n if (((c + 4) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3]) && (-1 != board[r][c + 4])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n ++board[r][c + 4];\n }\n if ((0 <= (r - 4)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c]) && (-1 != board[r - 4][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n ++board[r - 4][c];\n }\n if (((r + 4) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n }\n }\n\n for (final Location hit : getHits()) {\n board[hit.getRow()][hit.getCol()] = 0;\n }\n }\n\n// for (int[] i : board)\n// System.out.println(Arrays.toString(i));\n return findLargest();\n }", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}", "private static int findNoK(double[][] X){\n int noK = 0;\n int high = X.length / 2;\n\n if (OverrideClusterNo > 0){\n \treturn OverrideClusterNo;\n }\n \n if (high <= 0){\n \tnoK = -1; //TODO JMC Break\n }\n else if (high == 1){\n noK = 1;\n }\n else if (high == 2){\n noK = 2;\n }\n else if (high > MaxClusters){\n \tnoK = MaxClusters;\n }\n else{\n noK = (int)(Math.random() * (high - 2) + 2) + 1;\n }\n \n return noK;\n }", "void update(long cutoff) {\n while (numSamples > MIN_SAMPLE_SIZE && oldest != null && cutoff - oldest.timestamp > 0) {\n AccelerationSample removed = oldest;\n if (removed.isAccelerating) {\n numAccelerating--;\n }\n numSamples--;\n oldest = removed.next;\n if (oldest == null) {\n newest = null;\n }\n }\n }", "@Test\n\tpublic void kingOnThroneBlackPieceUpWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(8,35);\n\t\td.set(6,39);\n\t\td.set(24,79);\n\t\td.set(6,40);\n\t\td.set(18,50);\n\t\td.set(6,39);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(39);\n\t\tassertTrue(5==test_arr.get(0).getX() && 4==test_arr.get(0).getY());\n\t}", "public static int influencerPoor(boolean[][] data) {\n\t\tif (data == null) {\n\t\t\treturn -1;\n\t\t}\n\t\tfor(int i=0; i<data.length; i++) {\n\t\t\tboolean isInfluencer = true;\n\t\t\tfor (int j=0; j < data.length; j++) {\n\t\t\t\tif (i == j) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (data[i][j] || !data[j][i]) {\n\t\t\t\t\tisInfluencer = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isInfluencer) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@Test\n\tpublic void kingNotOnThroneBlackPieceUpWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(8,43);\n\t\td.set(7,54);\n\t\td.set(5,27);\n\t\td.set(6,53);\n\t\td.set(0,42);\n\t\td.set(18,50);\n\t\td.set(5,39);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(39);\n\t\tassertTrue(5==test_arr.get(0).getX() && 4==test_arr.get(0).getY());\n\t}", "private static int getValAbove(double rand, int charge) {\n // array of the surface areas of charge \"charge\"\n double[] arr = cumulativeSurfaceAreas.get(charge)[0];\n\n int low = 0;\n int high = arr.length - 1;\n while (low <= high) {\n int mid = (high + low) / 2;\n \n if (arr[mid] >= rand && (mid == 0 || arr[mid-1] < rand)) { // If we're at the right location\n return (int) cumulativeSurfaceAreas.get(charge)[1][mid]; \n } else if (arr[mid] < rand) {\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n \n System.out.println(\"hoodsijfoi\");\n return -1; // Should never get here\n }", "public void prune(double belowThreshold) {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n if(get(first, second)<belowThreshold) {\n set(first, second, 0.0);\n }\n \n }\n \n }\n \n }", "private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "double terrainFactorInf() {\n double value;\n switch (getParent().getField().getTerrain().getId()) {\n case TERRAIN_B:\n case TERRAIN_Q:\n value = 1d;\n break;\n\n case TERRAIN_H:\n case TERRAIN_K:\n case TERRAIN_T:\n value = .8d;\n break;\n\n case TERRAIN_W:\n case TERRAIN_G:\n case TERRAIN_D:\n value = .5d;\n break;\n\n case TERRAIN_J:\n value = .4d;\n break;\n\n case TERRAIN_S:\n default:\n value = .45d;\n break;\n }\n return value;\n }", "double getExtremeSpikeProbability();", "@Test\n public void test_04_hgvs_upstream_negative_strand() {\n Log.debug(\"Test\");\n List<VcfEntry> list = snpEffect(\"testHg19Chr17\", path(\"hgvs_upstream_negative_strand.vcf\"), null);\n\n for (VcfEntry ve : list) {\n if (verbose) Log.info(ve);\n\n for (VcfEffect veff : ve.getVcfEffects()) {\n if (veff.getTranscriptId().equals(\"NM_000199.3\")) {\n if (verbose) {\n System.out.println(\"\\t\" + veff);\n System.out.println(\"\\t\\tHGVS.c: \" + veff.getHgvsC());\n }\n\n // Compare against expected result\n String expectedHgvsC = ve.getInfo(\"HGVSC\");\n String actualHgvsC = veff.getHgvsC();\n assertEquals(expectedHgvsC, actualHgvsC);\n }\n }\n }\n }", "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }" ]
[ "0.56095535", "0.5301646", "0.5187866", "0.51815337", "0.51131004", "0.5028765", "0.5018701", "0.5007627", "0.49935505", "0.49893826", "0.49744508", "0.49405977", "0.49304715", "0.49173906", "0.48937938", "0.48922873", "0.48866764", "0.4885772", "0.48833153", "0.48566043", "0.48454338", "0.4834677", "0.4832112", "0.48175356", "0.48101157", "0.47957015", "0.478473", "0.4773586", "0.477143", "0.47677907", "0.47423774", "0.4727123", "0.4721313", "0.47208393", "0.47135836", "0.47086218", "0.47028527", "0.47016525", "0.47008157", "0.46930838", "0.46859044", "0.46857324", "0.46854374", "0.46776846", "0.46695626", "0.46665984", "0.46641925", "0.46619737", "0.46602356", "0.46586162", "0.4654176", "0.46480992", "0.46443406", "0.46441978", "0.46349826", "0.4625593", "0.4618054", "0.46166363", "0.46142706", "0.46063107", "0.45970866", "0.4593926", "0.45919746", "0.45868364", "0.45789856", "0.45721024", "0.45692286", "0.45690414", "0.45678946", "0.45643952", "0.45643112", "0.45639712", "0.4562902", "0.45597312", "0.45537823", "0.45507342", "0.4547961", "0.4547652", "0.45473102", "0.45466122", "0.45437455", "0.45428625", "0.45422232", "0.45374447", "0.45298934", "0.45281467", "0.45274928", "0.4524682", "0.45195377", "0.45185876", "0.45158356", "0.45130956", "0.4511667", "0.4511408", "0.45095402", "0.450853", "0.44965932", "0.44920072", "0.4488496", "0.44879392" ]
0.5597284
1
Check whether the expression is a valid Date expression as defined in the regex
@Override public boolean isValidExpression(String expr) { final Pattern pattern1 = Pattern.compile(DATE_REGEX_FULL); final Pattern pattern2 = Pattern.compile(DATE_REGEX_FULL_2); final Matcher matcher1 = pattern1.matcher(expr); final Matcher matcher2 = pattern2.matcher(expr); return matcher1.matches() ^ matcher2.matches(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkDate(String date) {\n return date.matches(regexDate);\n }", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "public static boolean isValidDate(String test) {\n if (test.matches(VALIDATION_REGEX)) {\n try {\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n LocalDate date = LocalDate.parse(test, format);\n if (date.format(format).equals(test)) {\n return true;\n }\n return false;\n } catch (DateTimeParseException e) {\n return false;\n }\n }\n return false;\n }", "public static boolean checkDatePattern(String date) {\n return date.matches(\"^[0-9]{4}-[0-9]{2}-[0-9]{2}$\");\n }", "@Override\n public boolean isInputDateValid(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(this.date);\n sdf.setLenient(false);\n try {\n sdf.parse(dateStr);\n } catch (ParseException e) {\n return false;\n }\n return true;\n }", "public static boolean isValidDate(String input) {\n try {\n LocalDate.parse(input);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "public static boolean dateFormatCheck(String date)\r\n\t{\r\n\t\treturn date.matches(\"(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((19|20)\\\\d\\\\d)\");\t\r\n\t}", "public boolean isValidDate(String s) {\n try {\n LocalDate.parse(s);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean validateDate(String dateString) {\n boolean isValidDate = true;\n try {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(PATTERN);\n LocalDate ld = LocalDate.parse(dateString, dtf);\n } catch (Exception exc) {\n isValidDate = false;\n logger.error(\"Date found to be not parseable. Please check the \" +\n \"format!\");\n }\n return isValidDate;\n }", "private boolean checkValidDate(String inputDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n date.setLenient(false);\n try {\n date.parse(inputDate);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public static boolean checkExpDate(String cS_exp_date) {\n\t\t\n\t\t\n\t\treturn true;\n\t}", "private static boolean validDate(String date) {\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tDate tryDate = null; \n\t\t\ttry\n\t\t{\n\t\t\ttryDate = formatter.parse(date);\n\t\t}catch (ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t\tformatDate(tryDate);\n\t\treturn true; \n\t\t\n\t}", "@Test\n @Disabled\n public void testValidateFecha() {\n assertTrue(RegExprMain.validateFecha(\"10/06/2022\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2011\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2015\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2016\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2021\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/1999\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2007\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2000\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2002\"));\n assertFalse(RegExprMain.validateFecha(\"38/06/2009\"));\n assertFalse(RegExprMain.validateFecha(\"10/20/2010\"));\n \n \n\n }", "boolean isValidDate(String datestr)\n {\n String validch = \"1234567890/\";\n String month, day, year;\n Integer I;\n int m, d, y;\n int slash1, slash2;\n\n datestr.trim();\n if (datestr.length() == 0)\n return false;\n\n if (!checkchars(datestr, validch, false)) {\n // Invalid date entry\n return false;\n }\n\n\n slash1 = datestr.indexOf(\"/\");\n slash2 = datestr.indexOf(\"/\",slash1+1);\n if (slash1 <= 0 || slash2 <= 0)\n {\n // Invalid Entry\n return false;\n }\n\n month = datestr.substring(0,slash1);\n day = datestr.substring(slash1+1,slash2);\n year = datestr.substring(slash2+1,datestr.length());\n if ((month.length()<1 || month.length()>2) ||\n (day.length()<1 || day.length()>2) || (year.length()!=4))\n {\n // Invalid Date\n return false;\n }\n\n I = new Integer(month);\n m = I.intValue();\n I = new Integer(day);\n d = I.intValue();\n I = new Integer(year);\n y = I.intValue();\n //basic error checking\n if (m<1 || m>12 || d<1 || d>31 || y<0 || y>9999)\n return false;\n\n // months with 30 days\n if (d==31 && (m==4 || m==6 || m==9 || m==11)){\n return false;\n }\n\n // february, leap year\n if (m==2 && d>28){\n if (d > 29)\n return false;\n if ((y%4 == 0) || ((y%400==0) && (y%100!=0)))\n return false;\n }\n\n return true;\n }", "boolean validDate(String dateString){\r\n\t\t\r\n\t\tif(DateUtil.parse(dateString) != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean isValidDate(String inDate) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"mm/DD/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(inDate.trim());\n }\n catch (ParseException pe) {\n\n return false;\n }\n\n return true;\n }", "public boolean isValidDate(String valD) { //Checks if date is in proper format\n String valDWithoutSpace = valD.replaceAll(\"\\\\s\", \"\");\n return valDWithoutSpace.length() == 8;\n}", "public static boolean validateDateFormat(String date, String format) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);\n try {\n LocalDate.parse(date, formatter);\n } catch (DateTimeParseException e) {\n return false;\n }\n return true;\n }", "public static boolean isValidDate(String date) {\n try {\n LocalDate.parse(date, INPUT_FORMATTER);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "public interface RegexRule {\n /**\n * yyyy-MM 格式校验\n */\n String START_END_TIME_RULE=\"(19|20)[0-9][0-9]-(0[1-9]|1[0-2])\";\n /**\n * yyyy-MM 格式校验\n */\n String START_END_TIME_RULE_Y_M = \"(19|20)[0-9][0-9]-(0[1-9]|1[0-2])\";\n /**\n * yyyy-MM-dd 时间格式校验\n */\n String START_END_TIME_RULE_Y_M_D = \"((\\\\d{2}(([02468][048])|([13579][26]))[\\\\-\\\\s]?((((0?[13578])|(1[02]))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])))))|(\\\\d{2}(([02468][1235679])|([13579][01345789]))[\\\\-\\\\s]?((((0?[13578])|(1[02]))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\\\-\\\\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))\";\n /**\n * yyyy-MM-dd hh:mm:ss\n */\n String START_END_TIME_RULE_Y_M_D_H_M_S = \"^\\\\d{4}[-]([0][1-9]|(1[0-2]))[-]([1-9]|([012]\\\\d)|(3[01]))([ \\\\t\\\\n\\\\x0B\\\\f\\\\r])(([0-1]{1}[0-9]{1})|([2]{1}[0-4]{1}))([:])(([0-5]{1}[0-9]{1}|[6]{1}[0]{1}))([:])((([0-5]{1}[0-9]{1}|[6]{1}[0]{1})))$\";\n /**\n * 名称格式校验\n */\n String NAME_RULE = \"[^\\\\\\\\<>%'\\\"]{0,10}\";\n /**\n * 不含有特殊字符格式校验\n */\n String SPECIAL_WORD_RULE = \"[^\\\\\\\\<>%'\\\"]{1,50}\";\n /**\n * 不含有特殊字符格式校验\n */\n String SPECIAL_WORD_RULE_TWENTY = \"[^\\\\\\\\<>%'\\\"]{1,19}\";\n /**\n * 标题校验\n */\n String TITLE_RULE = \"[^\\\\\\\\<>%'\\\"]{1,60}\";\n /**\n * 用户昵称格式\n */\n String USERNAME_RULE = \"[^\\\\\\\\<>%'\\\"]{1,15}$\";\n /**\n * 时间的格式\n */\n String TIME_FORMAT_Y_M_D = \"yyyy-MM-dd\";\n /**\n * 时间的格式yyyy-MM-dd HH:MM:SS 12时制\n */\n String TIME_FARMAT_Y_M_D_H_M_S = \"yyyy-MM-dd hh:mm:ss\";\n /**\n * 24时制\n */\n String TIME_FARMAT_YYYY_MM_DD_HH_MM_SS_24 = \"yyyy-MM-dd HH:mm:ss\";\n\n /**\n * 1-50汉字格式校验\n */\n String CHINA_WORD = \"[^\\\\\\\\<>%'\\\"]{1,50}\";\n /**\n * 1-5汉字的格式检验\n */\n String CHINESE_RULE = \"^[\\\\u4e00-\\\\u9fa5 ]{1,5}$\";\n\n int FIVE_THOUSAND = 500;\n\n}", "private boolean dateValidation(String userDate){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false);\n\n try {\n\n //if not valid, it will throw ParseException\n Date date = sdf.parse(userDate);\n System.out.println(date);\n\n } catch (ParseException e) {\n\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "private static void checkDate(String date) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n if (!date.matches(RegexPattern.DATE_PATTERN)) {\n throw new DaoException(ExceptionMessage.getMessage(ExceptionMessage.DATE_PATTERN_ERROR));\n }\n try {\n Date formatDate = simpleDateFormat.parse(date);\n if (formatDate.getTime() + TIME_IN_DAY < new Date().getTime()) {\n throw new DaoException(\"Date must be in Future\");\n }\n } catch (ParseException ex) {\n throw new DaoException(ex.getMessage());\n }\n }", "public static boolean validateDateDDMMYYYY(String inputParam,\n\t\t\tString regexExp) {\n\t\tPattern pattern = Pattern.compile(regexExp);\n\n\t\tMatcher matcher = pattern.matcher(inputParam);\n\n\t\tif (matcher.matches()) {\n\n\t\t\tmatcher.reset();\n\n\t\t\tif (matcher.find()) {\n\n\t\t\t\tString day = matcher.group(1);\n\t\t\t\tString month = matcher.group(2);\n\t\t\t\tint year = Integer.parseInt(matcher.group(3));\n\n\t\t\t\tif (\"31\".equals(day)\n\t\t\t\t\t\t&& (\"4\".equals(month) || \"6\".equals(month)\n\t\t\t\t\t\t\t\t|| \"9\".equals(month) || \"11\".equals(month)\n\t\t\t\t\t\t\t\t|| \"04\".equals(month) || \"06\".equals(month) || \"09\"\n\t\t\t\t\t\t\t\t.equals(month))) {\n\t\t\t\t\treturn false; // only 1,3,5,7,8,10,12 has 31 days\n\t\t\t\t} else if (\"2\".equals(month) || \"02\".equals(month)) {\n\t\t\t\t\t// leap year\n\t\t\t\t\tif (year % 4 == 0) {\n\t\t\t\t\t\tif (\"30\".equals(day) || \"31\".equals(day)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (\"29\".equals(day) || \"30\".equals(day)\n\t\t\t\t\t\t\t\t|| \"31\".equals(day)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t} else {\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} else {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isValidDate(String date){\n Date inputDate = new Date(date);\n boolean isValid = false;\n\n if (inputDate.isValid()) {\n isValid = true;\n }else{\n generalTextArea.appendText(date + \" is not a valid date!\\n\");\n }\n return isValid;\n }", "public static boolean isValidDate(String date) throws DateTimeException, NumberFormatException {\n\n if (date.length() != 10) {\n return false;\n }\n\n String[] dateComponents = date.split(\"/\");\n\n if (dateComponents.length != 3) {\n return false;\n }\n\n int day = Integer.parseInt(dateComponents[0]);\n int month = Integer.parseInt(dateComponents[1]);\n int year = Integer.parseInt(dateComponents[2]);\n\n LocalDate localdate;\n localdate = LocalDate.of(year, month, day);\n return true;\n }", "public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\n return true;\n }\n return false;\n }", "private boolean isDateValid(String date) {\n return date.contains(\"/\");\n }", "@Test\n public void testIsValidateDate() {\n System.out.println(\"isValidateDate\");\n String dateString = \"2016-03-23T10:25:01Z\";\n boolean expResult = true;\n boolean result = DateUtil.isValidateDate(dateString);\n assertEquals(expResult, result);\n }", "private boolean checkDeadline(String d)\n\t{\n\t\t//yyyy/mm/dd\n\t\treturn Pattern.matches(\"[0-9][0-9][0-9][0-9]/[0-1][0-9]/[0-3][0-9]\", d);\n\t}", "protected boolean checkDateFormat(String dateStr) {\n try {\n dateFormat.parse(dateStr);\n } catch (ParseException ex) {\n if (log4j.isDebugEnabled()) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Date.Parse.Error\"));} //$NON-NLS-1$\n }\n if ( (alternateFormatString != null) ) {\n if (log4j.isDebugEnabled()) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Date.Parse.Choose.Alt\"));} //$NON-NLS-1$\n }\n dateFormatString = alternateFormatString;\n dateFormat = new SimpleDateFormat(dateFormatString);\n alternateFormatString = null;\n try {\n dateFormat.parse(dateStr);\n } catch (ParseException ex2) {\n return false;\n }\n } else {\n log4j.error(BaseMessages.getString(PKG, \"MVSFileParser.ERROR.Date.Parse.Fail\", dateStr)); //$NON-NLS-1$\n return false;\n }\n }\n return true;\n }", "public static boolean isReservationDateValid(String date, String date_format) {\r\n try {\r\n DateFormat df = new SimpleDateFormat(date_format);\r\n df.setLenient(false);\r\n df.parse(date);\r\n return true;\r\n } catch (ParseException e) {\r\n return false;\r\n }\r\n }", "public static boolean isValidDate(String date) {\n return isValidDate(date, getDateTimeFormatter());\n }", "public static String verifyHireDate(Scanner input, String tempDate){\n \n //String used for regex verification of input date\n String theRegex = \"[0-1][0-9][/][0-3][0-9][/][1-2][0-9][0-9][0-9]\";\n \n //While tempDate does not match theRegex\n while(!tempDate.matches(theRegex)){\n System.out.print(\"The employee's hire date you entered was invalid.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n tempDate = input.nextLine();\n }\n return tempDate; \n }", "public static boolean isValidDate(String dateString) {\r\n\t\tboolean convertSuccess = true;\r\n\t\tSimpleDateFormat dateformat = new SimpleDateFormat(SDF_DATE, Locale.CHINA);\r\n\t\ttry {\r\n\t\t\tdateformat.setLenient(false);\r\n\t\t\tdateformat.parse(dateString);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tconvertSuccess = false;\r\n\t\t}\r\n\t\treturn convertSuccess;\r\n\t}", "@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTest = projet.isValidDate(\"01/05/102\");\n assertEquals(false, longueurInvalideTest);\n }", "public boolean checkData(String data){\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t dateFormat.setLenient(false);\n\t try {\n\t\t\tdateFormat.parse(data.trim());\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t return true;\n\t}", "@Test\n public void isValidFormat() {\n assertFalse(Deadline.isValidFormat(VALID_DAY_1));\n\n // Deadline with day and month dd/mm -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Deadline with all 3 fields dd/mm/yyyy -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_2018.toString()));\n }", "ExpressionValidationOutcome expressionIsValid(String expression, ParseType parseType);", "boolean isValidForDate(LocalDate date);", "public boolean validateDate(String date) {\n\n\t\tDate enteredDate = null;\n\t\ttry {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tenteredDate = format.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDate currentDate = new Date();\n\t\treturn enteredDate.before(currentDate);\n\t}", "public static boolean validateJavaDate(String strDate)\r\n {\r\n\tif (strDate.trim().equals(\"\"))\r\n\t{\r\n\t\tSystem.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t \r\n\t}\r\n\t/* Date is not 'null' */\r\n\telse\r\n\t{\r\n\t /*\r\n\t * Set preferred date format,\r\n\t * For example MM-dd-yyyy, MM.dd.yyyy,dd.MM.yyyy etc.*/\r\n\t SimpleDateFormat sdfrmt = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t sdfrmt.setLenient(false);\r\n\t /* Create Date object\r\n\t * parse the string into date \r\n */\r\n\t try\r\n\t {\r\n\t Date javaDate = sdfrmt.parse(strDate); \r\n\t System.out.println(strDate+\" is valid date format\");\r\n\t }\r\n\t /* Date format is invalid */\r\n\t catch (ParseException e)\r\n\t {\r\n\t System.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t }\r\n\t \r\n\t return true;\r\n\t}\r\n }", "boolean isValidFor (@Nonnull DATATYPE aDate);", "private static boolean isParseDate(String dateStr) {\n try {\n simpleDateFormat.parse(dateStr);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "protected boolean isValidDateTimeFormat(String str) {\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"dd/MM/yyy hhmm\");\n try {\n inputFormat.parse(str);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public static boolean isValidDate(String date) {\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern( \"uuuu-MM-dd\" );\n\t\ttry {\n\t\t LocalDate localDateBad = LocalDate.parse( (CharSequence) date , f );\n\t\t} catch ( DateTimeParseException e ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean notDate(String value, String pattern)\r\n\t{\r\n\t\treturn !isDate(value, pattern);\r\n\t}", "public static boolean validarFecha(String fecha) {\n return validar(\"[0-9]{4}[-/][0-9]{2}[-/][0-9]{2}|[0-9]{2}[-/][0-9]{2}[-/][0-9]{4}\", fecha);\n }", "public String verifyDateFormat(String object, String data) {\n\t\tlogger.debug(\"verifying the date format\");\n\t\ttry {\n\t\t\tString date_text = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getText();\n\t\t\tString date[] = date_text.split(\"/\");\n\t\t\tBoolean flag = false;\n\n\t\t\tint month = Integer.parseInt(date[0]);\n\t\t\tint day = Integer.parseInt(date[1]);\n\t\t\tint year = Integer.parseInt(date[2]);\n\n\t\t\tfor (int i = 0; i < date.length; i++) {\n\t\t\t\tif (month <= 12 && day <= 31 && year > 2000) {\n\t\t\t\t\tflag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (flag) {\n\n\t\t\t\treturn Constants.KEYWORD_PASS + \"--date is in correct format\";\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \"--date is not in correct format\";\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 static void isValidCreditCardExpirationDate(String userInput) {\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/yy\");\n\t\ttry {\n\t\t\t// Try to parse a YearMonth from the input, then check to make sure it is not in\n\t\t\t// the past.\n\t\t\tif (YearMonth.parse(userInput, formatter).isBefore(YearMonth.now())) {\n\t\t\t\tthrow new IllegalArgumentException(\"Expiration date must be in the future! Please try again:\");\n\t\t\t}\n\t\t} catch (DateTimeException dte) {\n\t\t\tthrow new IllegalArgumentException(\"Expiration date format must be mm/yy. Please try again:\");\n\t\t}\n\n\t}", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public static boolean isValidDate(String date, String[] openMarketTime) {\n if (date.length() != 14) {\n return false;\n }\n\n String hhmm = date.substring(8, 10) + \":\" + date.substring(10, 12); // yyyyMMddHHmmss -> hh:mm\n return Util.isBetweenTimes(openMarketTime, hhmm);\n }", "public static boolean isValidDate(String date, DateTimeFormatter formatter) {\n try {\n LocalDate.parse(date, formatter);\n } catch (DateTimeException e) {\n return false;\n }\n return true;\n }", "@Test(expected = IllegalArgumentException.class)\r\n public void testIncorrectYear() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/1700\");\r\n }", "public static boolean validDate(String fechaString) {\n // Try to parse the String.\n return DateUtil.parse(fechaString) != null;\n }", "private boolean formalDateContainsNegativeNumber(String source) {\n String dateWithNegativePattern = \".*-\\\\d+/|/-\\\\d+.*\";\n return source.matches(dateWithNegativePattern);\n }", "public static void validateDate(String date) throws CustomExceptionHandler {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n formatter.setLenient(false);\n Date parsedDate;\n\n //Throw Exception if string is blank\n if(date.isBlank()||date.isEmpty())\n throw new CustomExceptionHandler(\"Date NOT Specified\");\n\n\n\n //Throw exception if date is not formatted correctly\n try\n {\n parsedDate = formatter.parse(date);\n\n }\n catch (Exception e)\n {\n throw new CustomExceptionHandler(\"The date format is not correct\");\n }\n }", "private boolean isDOBValid(String DOB) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(DOB.trim());\n } catch (ParseException pe) {\n return false;\n }\n return true;\n }", "public static boolean checkDate(String dates, String times) {\n if (dates.matches(\"\\\\d\\\\d/\\\\d/\\\\d\\\\d\\\\d\\\\d\") || dates.matches(\"\\\\d/\\\\d\\\\d/\\\\d\\\\d\\\\d\\\\d\") || dates.matches(\"\\\\d\\\\d/\\\\d\\\\d/\\\\d\\\\d\\\\d\\\\d\")) {\n if (times.matches(\"\\\\d\\\\d:\\\\d\\\\d\") || times.matches(\"\\\\d:\\\\d\\\\d\"))\n return true;\n else\n return false;\n\n } else return false;\n\n }", "@Test\n public void testV4HeaderDateValidationFailure() {\n LocalDate now = LocalDate.now();\n String dateStr = \"\";\n assertThrows(MalformedResourceException.class,\n () -> testRequestWithSpecificDate(dateStr));\n\n // Case 2: Date after yesterday.\n String dateStr2 = DATE_FORMATTER.format(now.plus(2, DAYS));\n assertThrows(MalformedResourceException.class,\n () -> testRequestWithSpecificDate(dateStr2));\n\n // Case 3: Date before yesterday.\n String dateStr3 = DATE_FORMATTER.format(now.minus(2, DAYS));\n assertThrows(MalformedResourceException.class,\n () -> testRequestWithSpecificDate(dateStr3));\n\n // Case 4: Invalid date format\n String dateStr4 = now.toString();\n assertThrows(MalformedResourceException.class,\n () -> testRequestWithSpecificDate(dateStr4));\n }", "@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }", "public static boolean isValidDOB(String userInput) {\n \n return Pattern.matches(Constants.DATE_VALIDATION, userInput);\n }", "public static boolean comprobarFecha(String s){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n //dateFormat.setLenient(false);\n try {\n dateFormat.parse(s.trim());\n }catch (ParseException pe) {\n System.out.println(\"Fecha introducida de manera erronea\");\n return false;\n }\n return true;\n }", "private void checkDate(String strDate, LocalDate localDate) {\n if (Integer.parseInt(strDate.substring(0, 4)) != localDate.getYear()\n || Integer.parseInt(strDate.substring(5, 7)) != localDate.getMonthValue()\n || Integer.parseInt(strDate.substring(8,10)) != localDate.getDayOfMonth()) {\n throw new IllegalArgumentException(\"Illegal date: date dose not exist.\");\n }\n }", "private boolean formalDateContainsZero(String source) {\n String dateWithZeroPattern = \".*\\\\d\\\\d\\\\d\\\\d/0+/|\\\\d\\\\d\\\\d\\\\d/\\\\d+/0+|\\\\d+/0+/.*\";\n return source.matches(dateWithZeroPattern);\n }", "private static void checkForParsableDate(AnalysisResults.Builder analysisBuilder) {\n Stream<String> dates =\n getTokensFromRawText(analysisBuilder.getRawText().get()).filter(ReceiptAnalysis::isDate);\n // Assume that the first date on the receipt is the transaction date.\n Optional<String> firstDate = dates.findFirst();\n\n firstDate.ifPresent(date -> ReceiptAnalysis.addDateIfValid(analysisBuilder, date));\n }", "@Test\n public void test0() {\n chkDate(\"> '2013'\", true);\n\n }", "private boolean validateDateAndTime(String date) {\n boolean isValid;\n Calendar prevDay;\n\n if(date != null && !date.isEmpty() && date.length() < MIN_DATE_LEN) {\n isValid = false;\n } else {\n prevDay = Calendar.getInstance(Locale.CANADA);\n prevDay.add(Calendar.DATE, -1); // All days valid from one day in the past\n Calendar cal = DateUtility.convertToDateObj(date);\n isValid = cal != null && cal.after(prevDay);\n }\n\n return isValid;\n }", "public static boolean isValidBirthdate (String test) {\n try {\n LocalDate.parse(test);\n return isValidBirthdate(LocalDate.parse(test));\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "@Test\n public void shouldParseDATE() {\n printTest(\"shouldParseDATE()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_DATE);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "boolean checkNumberFormat (String birthDate){\r\n for (int i = 0; i < birthDate.length(); i++) {\r\n if ((birthDate.charAt(i) < 48 && birthDate.charAt(i) != 32 \r\n && birthDate.charAt(i) != 10) \r\n || birthDate.charAt(i) > 57){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public interface DateValidator {\n\n boolean isDateValid(String date);\n}", "boolean isValidExpTime();", "public static boolean isValidDatetime(String test) {\n String[] components = test.split(\" \");\n String date = components[0];\n String startTime = components[1];\n\n //If the format is dd/mm/yyyy hhmm k\n if (components.length == 3) {\n String duration = components[2];\n return isValidDate(date) && isValidTime(startTime) && isValidDuration(duration);\n //If the format is dd/mm/yyyy hhmm to hhmm\n } else if (components.length == 4) {\n String endtime = components[3];\n return isValidDate(date) && isValidTime(startTime) && isValidTime(endtime);\n } else {\n return false;\n }\n }", "private void checkCorrectDateFormat(String date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.getDefault());\n sdf.setLenient(false);\n try {\n sdf.parse(date);\n } catch (ParseException e) {\n throw new IllegalArgumentException(\n \"Google Calendar Event Date must follow\" + \" the format: \\\"yyyy-MM-dd'T'HH:mm:ss\\\"\");\n }\n }", "public boolean validateExp(String expression){\n if(expression.endsWith(\"*\")||\n expression.endsWith(\"+\")||\n expression.endsWith(\"-\")||\n expression.endsWith(\"/\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n return false;\n }\n else if(expression.equals(\"\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n return false;\n }\n else if(expression.length()>16){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n return false;\n }\n else{\n return true;\n }\n }", "private boolean isOneDateMatch(final ExpressionJpa expr) {\n boolean isOneMatch = false;\n\n // 033 (R)\n for (MarcDataField field033 :\n this.marcRecord.getDataFields(\"033\")) {\n // |a (R)\n for (String date033 : field033.getValueList('a')) {\n // expression.dates\n for (int idx = 0;\n idx < expr.getDates().size();\n idx++) {\n // normalize for comparison\n if (expr.getDates().get(idx).getText().equals(\n DateNormalizer.normalizeExpr033Date(date033))) {\n isOneMatch = true;\n }\n }\n }\n }\n\n return isOneMatch;\n }", "@Override\npublic final boolean eval(final Object value) {\n\n if (value instanceof Date) {\n return true;\n }\n\n return false;\n }", "@Test\n public void testV4HeaderDateValidationSuccess()\n throws MalformedResourceException {\n LocalDate now = LocalDate.now();\n String dateStr = DATE_FORMATTER.format(now);\n testRequestWithSpecificDate(dateStr);\n\n // Case 2: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.plus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n\n // Case 3: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.minus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n }", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "private boolean isParse(String date){\n boolean isParseble = false;\n try{\n String[] parsedDate = date.split(\"/\");\n Integer.parseInt(parsedDate[0]);\n Integer.parseInt(parsedDate[1]);\n Integer.parseInt(parsedDate[2]);\n isParseble = true;\n }catch(NumberFormatException | ArrayIndexOutOfBoundsException e){\n generalTextArea.appendText(\"Please enter a valid date! Use the following format: mm/dd/yyyy. \\n\");\n dateRemoveText.clear();\n dateAddText.clear();\n dateSetText.clear();\n }\n return isParseble;\n }", "@Test\n public void testIsValidarFecha() {\n System.out.println(\"isValidarFecha\");\n String fecha = \"06/09/2018\";\n boolean expResult = true;\n boolean result = Entradas.isValidarFecha(fecha);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "public Date checkDate() {\n // Create new sdf with format is dd/MM/yyyy\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false); // Check special day\n Date date = null; // Create date\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n try {\n String dateStr = checkEmpty(\"DOB\"); // Call method to check input of dob\n date = sdf.parse(dateStr); // Convert string to date\n return date;\n\n } catch (ParseException e) {\n // Print error if date is invalid\n System.out.println(\"Date is invalid !\");\n System.out.print(\"Enter again (dd/MM/yyyy): \");\n }\n }\n return date; // Return date\n }", "private boolean checkNgay(String ngaySD){\n String pattern=\"\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}\";\n return ngaySD.matches(pattern);\n }", "public interface RegExp {\n String NUMBER_OF_COMPOSITION = \"^[1-2][0-9]|[1-9]$\";\n String BREAK_DATE_BY_DOT = \"[.]\";\n String IDENTIFY_BUMDLE = \"^([E|e][N|n])|[У|у][К|к][Р|р]$\";\n String DURATION = \"^[1-9]|[1-9][0-9]|[1-4][0-9][0-9]$\";\n}", "private String validateDateString(String dateString) {\n String returnValue = null;\n DateFormat dateFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n DateFormat dateFormat2 = new SimpleDateFormat(\"yyyy-MM\");\n DateFormat dateFormat3 = new SimpleDateFormat(\"yyyy\");\n Date date = null;\n \n if (dateString == null || dateString.equals(\"\")) {\n return dateString;\n }\n else {\n try {\n date = dateFormat1.parse(dateString);\n returnValue = dateFormat1.format(date);\n }\n catch (ParseException e1) {\n try {\n date = dateFormat2.parse(dateString);\n returnValue = dateFormat2.format(date);\n }\n catch (ParseException e2) {\n try {\n date = dateFormat3.parse(dateString);\n returnValue = dateFormat3.format(date);\n }\n catch (ParseException e3) {\n logger.warn(\"Couldn't parse date string using any of the recognized formats: \" + dateString);\n } \n }\n }\n }\n \n return returnValue;\n }", "public String verifyDateInput(String object, String data) {\n logger.debug(\"verifying Date in Input\");\n try {\n Boolean flag = false;\n String actual = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getAttribute(\"value\");\n String expected = data.replace(\",\", \"/\");\n logger.debug(actual);\n logger.debug(expected);\n if (actual.trim().equals(expected.trim()))\n flag = true;\n else\n flag = false;\n\n if (flag)\n return Constants.KEYWORD_PASS + \"--Date Inputs Matched\";\n else\n return Constants.KEYWORD_FAIL + \"--Date Input is not matched\";\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 ex) {\n \t\n return Constants.KEYWORD_FAIL + ex.getLocalizedMessage();\n }\n }", "@Test\n public void testInvalidHttpDateTime() {\n assertNull(DateTimeHelper.parseHttpDateTime(null));\n\n // \"\" is not a date\n assertNull(DateTimeHelper.parseHttpDateTime(\"\"));\n\n // wrong format\n assertNull(DateTimeHelper.parseHttpDateTime(\"1111111111111111\"));\n\n // invalid year\n assertNull(DateTimeHelper.parseHttpDateTime(\"Mon, 24 Dec abcd 09:10:11 GMT\"));\n\n // invalid month\n assertNull(DateTimeHelper.parseHttpDateTime(\"Mon, 24 abc 2012 09:10:11 GMT\"));\n\n // invalid day\n assertNull(DateTimeHelper.parseHttpDateTime(\"Mon, xy Dec 2012 09:10:11 GMT\"));\n }", "private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n try {\n dateFormat.setLenient(false); // disallow parsing invalid dates\n dateFormat.parse(toParse);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public static LocalDate validDate(String message){\n boolean success = false;\n String line;\n LocalDate date = null;\n do {\n line = readLine(message).trim();\n line = formatDate(line);\n date = checkDate(line, \"dd-MM-yyyy\");\n if (date != null)\n success = true;\n else\n System.out.println(\"Debe introducir una fecha válida (dd-MM-aaaa)... \");\n } while(!success);\n return date;\n }", "@Test\n public void isValidDeadline() {\n assertFalse(Deadline.isValidDeadline(INVALID_0_JAN_2018.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_0_2018.toString()));\n\n // Valid deadline -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_2018.toString()));\n\n // Valid deadline for february -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_28TH_FEB_2018.toString()));\n\n // Invalid deadline for february in common year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_29TH_FEB_2018.toString()));\n\n // Valid deadline for february during leap year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_29TH_FEB_2020.toString()));\n\n // Invalid deadline for february during leap year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_30TH_FEB_2020.toString()));\n\n // Valid deadline for months with 30 days -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_30TH_APR_2018.toString()));\n\n // Invalid deadline for months with 30 days -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_31ST_APR_2018.toString()));\n\n // Valid deadline for months with 31 days -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_31ST_JAN_2018.toString()));\n\n // Invalid deadline for months with 31 days -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_32ND_JAN_2018.toString()));\n\n // Invalid month -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_0_2018.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_13_2018.toString()));\n\n // Valid month -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_APR_2018.toString()));\n\n // Valid year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_9999.toString()));\n\n // Invalid year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_JAN_2017.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_JAN_10000.toString()));\n\n // Valid date without year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Invalid date without year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_32ND_JAN_WITHOUT_YEAR.toString()));\n }", "private boolean splitDate(String dateString) throws Exception {\n\t\tif (dateSet)\n\t\t\tthrow new Exception(\"Double date \" + dateString);\n\t\tStringTokenizer st = new StringTokenizer(dateString, \"/\");\n\t\tif (st.countTokens() == 3) {\n\t\t\tyear = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tmonth = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tday = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tif (year < 1900)\n\t\t\t\tyear = year + 1900;\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"Too few or too many argument \" + dateString);\n\t\tif ((day < 1)\n\t\t|| (day > 31)\n\t\t|| (month <1)\n\t\t|| (month > 12)) {\n\t\t\tthrow new Exception(\"Not a valid date \" + dateString);\n}\n\t\tdate = new Date((year - 1900)\n\t\t\t , (month - 1)\n\t\t\t\t , day\n\t\t\t\t , hour\n\t\t\t\t , minute\n\t\t\t , second);\n\t\tdateSet = true;\n\t\treturn true;\n }", "public static boolean isValidDate(Date date) {\n\n if (date == null) return false;\n\n LocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\n if (localDate.isBefore(LocalDate.parse(\"2000-01-01\"))) return false;\n\n if (localDate.isAfter(LocalDate.now().plusDays(30))) return false;\n\n return true;\n }", "private static boolean isDeliveryDate(String string) {\n\t\tString[] tmp = string.split(\"/\");\n\t\tint[] date = new int[tmp.length];\n\t\t\n\t\tif(date.length != 3) {\n\t\t\treturn false;\n\t\t}\n\t\tfor(int i = 0; i < date.length; i++) {\n\t\t\tdate[i] = Integer.parseInt(tmp[i]);\n\t\t}\n\t\t\n\t\tCalendar cal = new GregorianCalendar(date[2], date[0]-1, date[1]);\n\t\t\n\t\t//check valid date\n\t\tboolean is_valid_date = true;\n\t\tif(cal.get(Calendar.YEAR) != date[2]) is_valid_date = false;\n\t\tif(cal.get(Calendar.MONTH)+1 != date[0]) is_valid_date = false;\n\t\tif(cal.get(Calendar.DAY_OF_MONTH) != date[1]) is_valid_date = false;\n\t\treturn is_valid_date;\n\t\t\n\t\t/****** THIS IS USED FOR SETTING A LIMIT ON HOW EARLY OR LATE A INVOICE CAN BE ENTERED\n\t\t\n\t\tCalendar today = new GregorianCalendar();\n\t\tCalendar limit_date;\n\t\tif(today.MONTH < 8) \n\t\tlimit_date = new GregorianCalendar( today.get(Calendar.YEAR), \n\t\t\t\t\t\t\t\t\t\t\ttoday.get(Calendar.MONTH)+4, \n\t\t\t\t\t\t\t\t\t\t\ttoday.get(Calendar.DAY_OF_MONTH) ); // limit date is 4 months ahead of current time. \n\t\telse\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tlimit_date = new GregorianCalendar(\ttoday.get(Calendar.YEAR)+1, \n\t\t\t\t\t\t\t\t\t\t\ttoday.get(Calendar.MONTH)+4%11, \n\t\t\t\t\t\t\t\t\t\t\ttoday.get(Calendar.DAY_OF_MONTH) );\n\t\t\t\n\n\t\tif(delivery_date.compareTo(today) <= 0) \n\t\treturn false;\n\t\telse if(delivery_date.compareTo(limit_date) >= 0)\n\t\treturn false;\n\t\telse*/\n\t\t\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n public void testIncorrectMonth() {\r\n SimpleDate d1 = new SimpleDate(\"-3/1/1700\");\r\n }", "public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }", "public static boolean isValidAssignmentDeadline(String test) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HHmm\");\n sdf.setLenient(false);\n try {\n sdf.parse(test);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "private void validateDateRange(String startDateStr, String endDateStr) {\n Date startDate = null;\n Date endDate = null;\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n \n try {\n if ((startDateStr != null) && (endDateStr != null)) {\n startDate = dateFormat.parse(startDateStr);\n endDate = dateFormat.parse(endDateStr);\n \n if ((startDate != null) && (endDate != null) && (startDate.after(endDate))) {\n throw new IllegalArgumentException(\n \"The date range is invalid. Start date ('\" + startDateStr + \n \"') should be less than end date ('\" + endDateStr + \"').\"); \t\n }\n }\n }\n catch (ParseException e) {\n logger.warn(\"Couldn't parse date string: \" + e.getMessage());\n }\n \n }", "@Test\n public void testInvalidXmlDateTime() {\n assertNull(DateTimeHelper.parseXmlDateTime(null));\n\n // \"\" is not a date\n assertNull(DateTimeHelper.parseXmlDateTime(\"\"));\n\n // wrong format\n assertNull(DateTimeHelper.parseXmlDateTime(\"1111111111111111\"));\n\n // invalid year\n assertNull(DateTimeHelper.parseXmlDateTime(\"111-11-11T11:11:11.111Z\"));\n\n // invalid month\n assertNull(DateTimeHelper.parseXmlDateTime(\"1111-21-11T11:11:11.111Z\"));\n\n // invalid day\n assertNull(DateTimeHelper.parseXmlDateTime(\"1111-11-51T11:11:11.111Z\"));\n }", "boolean hasDate();" ]
[ "0.72910225", "0.6995062", "0.6864977", "0.68219554", "0.67640597", "0.66581047", "0.664901", "0.66017836", "0.659678", "0.6542919", "0.6530347", "0.6507966", "0.6499397", "0.6497887", "0.6491372", "0.6416604", "0.6393528", "0.63475645", "0.6334798", "0.6330079", "0.6319637", "0.6287907", "0.6285817", "0.6275643", "0.62745374", "0.6246248", "0.62291914", "0.6225494", "0.6176896", "0.6163884", "0.6139818", "0.6127685", "0.61109006", "0.6055577", "0.6050475", "0.60402983", "0.6037305", "0.600629", "0.60050124", "0.599971", "0.5993036", "0.5991251", "0.59797704", "0.5932986", "0.5917477", "0.5863957", "0.58573705", "0.58568937", "0.58269244", "0.58180374", "0.58158", "0.5805862", "0.57958204", "0.5733784", "0.57245034", "0.5719235", "0.56977385", "0.56862354", "0.5685429", "0.5685365", "0.56681585", "0.56635016", "0.56565315", "0.5656503", "0.5647482", "0.56453764", "0.5645343", "0.563484", "0.5627928", "0.5622926", "0.5617201", "0.56155443", "0.56125623", "0.56068116", "0.5582661", "0.55580044", "0.5549414", "0.55467415", "0.55416864", "0.55024433", "0.55000764", "0.5490291", "0.5485668", "0.54639924", "0.5461156", "0.54578364", "0.54464406", "0.54452384", "0.5444041", "0.54384136", "0.54291785", "0.5408895", "0.54064715", "0.5387715", "0.53593373", "0.53591526", "0.5349443", "0.5349138", "0.53462374", "0.53361326" ]
0.76731557
0
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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 static void main(String[] args) { String s="https://en.wikipedia.org/wiki/Main_page"; String s1[]=s.split("/"); System.out.println(s1[2]); }
{ "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
This class has access to MyService and MyServiceFactory, but not MyServiceImpl
public static void main(String[] args) { MyService myService = MyServiceFactory.createMyService(); myService.run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static interface Service {}", "private ServiceFactory() {}", "private Service() {}", "public interface MineService {\n}", "public interface Service {\n // Service-specific methods go here\n }", "public interface ServiceFactory\n{\n /**\n * Retrieves a service instance. Is provided for extensibility beyond the core service\n * set.\n *\n * @param type The class name of the service to be retrieved.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n <T extends Service> T getService(Class<T> type)\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a WorkflowService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n WorkflowService getWorkflowService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a UserService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n UserService getUserService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns an AdministrationService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n AdministrationService getAdministrationService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a QueryService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n QueryService getQueryService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a document management service.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n DocumentManagementService getDocumentManagementService()\n throws ServiceNotAvailableException, LoginFailedException;;\n\n /**\n * Provides explicit service resource management. May be used to release resources\n * associated with a service (like connection handles or locked instances) early.\n * <p />\n * Explicitly releasing a service may be help conserving resources but is not necessary\n * as the <code>ServiceFactory</code> provides automatic resource cleanup.\n *\n * @param service The service to be released.\n *\n * @see #close()\n */\n void release(Service service);\n\n /**\n * Releases all resources hold by the service factory and its single services. All\n * services retrieved from this ServiceFactory will be closed too.\n */\n void close();\n\n void setCredentials(Map credentials);\n\n void setProperties(Map properties);\n\n /**\n * Gets the user session id\n * @return the user session id - may be null\n */\n String getSessionId();\n}", "MyService getService() {\n return MyService.this;\n }", "public ServiceFactoryImpl() {\n\t\tsuper();\n\t}", "public interface ReviewServiceFactory extends ServiceFactory {\n}", "public interface Service {\n\n}", "public interface Service {\n\n}", "protected AbstractService() {\n this(false);\n }", "@Override\n public void modifiedService(ServiceReference<ManagedServiceFactory> reference,\n ManagedServiceFactory service) {\n }", "private SearchServiceFactory() {}", "public void service() {\n\t}", "private GeneralServicesImpl() {\r\n\t}", "private ServiceLocator(){}", "public interface ServiceFactory {\n \n /**\n * Returns a collection of services to be registered.\n * \n * @return an immutable collection of services; never null\n */\n public Collection<Service> createServices();\n \n}", "public interface GoodStyleService extends Service<GoodStyle> {\n\n}", "private RecipleazBackendService() {\n }", "public interface UserService {\n}", "public interface UserService {\n}", "Service newService();", "private void initService() {\r\n\t}", "private ServiceManagerFactory() throws ServiceException {\r\n initialize();\r\n\t}", "public interface ServiceIface {\n void service();\n}", "public interface UserService\n{\n}", "public void forceServiceInstantiation()\n {\n getService();\n\n _serviceModelObject.instantiateService();\n }", "private ServiceGen() {\n }", "public OpUserService() {\r\n serviceIfcImpl = createServiceImpl();\r\n }", "public interface SysPermissionService {\n}", "public void doService() {\n }", "@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation1();\n\t\t}", "private ServiceGenerator() {\n }", "private ServiceGenerator() {\n }", "private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }", "public interface TestService {\n}", "public interface TestService {\n\n}", "@Override\n\tprotected BaseService getService() {\n\t\treturn null;\n\t}", "public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }", "public interface WeighInService {\n}", "private ServiceLocator() {\r\n\t\t\r\n\t}", "public interface OurService {\n\n static public void provideService(){\n System.out.println(\"OurService Static provideService()\");\n }\n}", "@RemoteServiceRelativePath(\"greet\")\npublic interface MyBitService extends RemoteService {\n OrderInfoList getOrderInfoList() throws IllegalArgumentException;\n\n CoinInfoList getCoinInfoList() throws IllegalArgumentException;\n\n ExchangeInfoList getExchangeInfoList() throws IllegalArgumentException;\n\n CompareInfoList getCompareInfoList() throws IllegalArgumentException;\n\n String toggleBot() throws IllegalArgumentException;\n\n String setThreshold(Double threshold) throws IllegalArgumentException;\n\n String getThreshold() throws IllegalArgumentException;\n\n public static class App {\n private static MyBitServiceAsync ourInstance = GWT.create(MyBitService.class);\n\n public static synchronized MyBitServiceAsync getInstance() {\n return ourInstance;\n }\n }\n}", "public interface EzService {\n}", "private SiteEditService() {\r\n \r\n }", "public Service(){\n\t\t\n\t}", "public interface Service1 extends Service {\n}", "public interface UserService extends Service<User> {\n\n}", "public interface UserService extends Service<User> {\n\n}", "public interface UserService extends Service<User> {\n\n}", "private ServiceGenerator() {\n }", "protected void doService(HttpServletRequest req, HttpServletResponse resp) throws Exception {\r\n // This class has been removed from all places where it was used and replaced by the Spring\r\n // dispatcher from which it inherits. Delegate to super for now in case this ever gets called.\r\n // There is one place that depends on the tool constants above, in CommentListGenerator.\r\n // These constants should be relocated and this class purged.\r\n super.doService(req, resp);\r\n }", "public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}", "public interface Provider {\n Service newService();\n}", "public interface Provider {\n Service newService();\n}", "public interface Service {\n\t/**\n\t * Method stub to get the service appointment.\n\t *\n\t * @return The service appointment.\n\t */\n\tabstract public Date getServiceAppointment();\n\n\t/**\n\t * Method stub to get the servicing interval.\n\t *\n\t * @return The servicing interval.\n\t */\n\tabstract public int getServiceInterval();\n\n\t/**\n\t * Method stub to set the service appointment.\n\t *\n\t * @param serviceAppointment The service appointment as Date object.\n\t */\n\tabstract public void setServiceAppointment(Date serviceAppointment);\n\n\t/**\n\t * Method stub to set the servicing interval.\n\t *\n\t * @param serviceIntervalDays Servicing interval in days.\n\t */\n\tabstract public void setServiceInterval(int serviceIntervalDays);\n}", "public interface StupidService {\n void warmCache();\n}", "public interface Provider{\n Service newService();\n}", "@Override\r\n\tpublic void modifiedService(ServiceReference arg0, Object arg1) {\n\t\t\r\n\t}", "@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation2();\n\t\t}", "public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}", "public void onServiceRegistered() {\r\n \t// Nothing to do here\r\n }", "@Override\n\tprotected void service(HttpServletRequest arg0, HttpServletResponse arg1)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.service(arg0, arg1);\n\t}", "@Override\n protected void reconfigureService() {\n }", "public BudgetAccountServiceImpl() {\r\n\t}", "public interface APIService {\n}", "public interface AnotherService {\n\n String getAnotherExample();\n}", "private ModuleServiceImpl(){\n\t\t//initialize local data.\n\t\tfactories = new ConcurrentHashMap<String, IModuleFactory>();\n\t\tstorages = new ConcurrentHashMap<String, IModuleStorage>();\n\t\tcache = new ConcurrentHashMap<String, Module>();\n\t\tmoduleListeners = new ConcurrentHashMap<String, IModuleListener>();\n\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\"Created new ModuleServiceImplementation\");\n\t\t}\n\n\t\tConfigurationManager.INSTANCE.configure(this);\n\t}", "protected OpUserServiceImpl createServiceImpl() {\r\n return new OpUserServiceImpl();\r\n }", "public interface Provider {\n Service newService();\n }", "private AnagramService() {\n\t}", "protected abstract ServiceObjectType getServiceObjectType();", "public interface IUserService {\n}", "Fog_Services createFog_Services();", "public interface HelloService {\n\n void sayHello(String name);\n}", "public interface HelloService {\n\n void sayHello(String name);\n}", "@Override\n\tpublic Service upstreamServiceInit() {\n\t\treturn null;\n\t}", "public BaseballCoach(FortuneService theFortuneService)\r\n {\r\n fortuneService = theFortuneService;\r\n }", "public interface ServiceService {\n void createServices() throws IOException, TemplateException;\n\n void createService(String table) throws IOException, TemplateException;\n\n void createServiceImpls() throws IOException, TemplateException;\n\n void createServiceImpl(String table) throws IOException, TemplateException;\n}", "public interface UserService extends MinsxEntityService {\n\n}", "public interface AspirantService {\n\n @Deprecated\n /**\n * Adds an aspirant to the system.\n * @param aspirantAccount aspirant account\n * @throws IllegalArgumentException when aspirantAccount is null.\n * @throws AspirantAlreadyExistsException when aspirant already exists in the system.\n * @throws ServiceException when an error occurred in service.\n */\n void register(AspirantAccount aspirantAccount)\n throws IllegalArgumentException, AspirantAlreadyExistsException, ServiceException;\n\n @Deprecated\n /**\n * Checks an aspirant credentials.\n * @param email aspirant email\n * @param password aspirant password\n * @return true if email and password are correct otherwise false.\n * @throws IllegalArgumentException when email or password is null, empty or whitespace.\n * @throws AspirantNotRegisteredException when aspirant is not registered in the system.\n * @throws ServiceException when an error occurred in service.\n */\n boolean isValidCredentials(String email, String password)\n throws IllegalArgumentException, AspirantNotRegisteredException, ServiceException;\n\n /**\n * Returns {@link AspirantAccount} with specific email.\n * @param email aspirant email.\n * @return instance of {@link AspirantAccount} or null\n * if AspirantAccount with specific email not found.\n * @throws ServiceException when error occurred in service.\n * @throws IllegalArgumentException when email is null, empty or white space.\n */\n AspirantAccount getAspirantAccountByEmail(String email)\n throws IllegalArgumentException, ServiceException;\n\n /**\n * Add aspirantProfile to aspirantAccount identifiable by email.\n * @param email aspirant email.\n * @param aspirantProfile aspirant profile.\n * @throws IllegalArgumentException when email is null, empty or whitespace or aspirantProfile is null.\n * @throws ServiceException when an error occurred in service.\n */\n void addAspirantProfile(String email, AspirantProfile aspirantProfile)\n throws IllegalArgumentException, ServiceException;\n\n /**\n * Returns an aspirant profile identifiable by aspirant account email.\n * @param email aspirant email.\n * @return An aspirant profile or null if profile is not found.\n * @throws IllegalArgumentException when email is null, empty or whitespace.\n * @throws ServiceException when an error occurred in service.\n */\n AspirantProfile getAspirantProfile(String email)\n throws IllegalArgumentException, ServiceException;\n\n /**\n * Updates existing aspirant profile identifiable by aspirant account email.\n * @param email aspirant email.\n * @param aspirantProfile aspirant profile.\n * @throws IllegalArgumentException when email is null, empty or whitespace or aspirantProfile is null.\n * @throws AspirantProfileNotFoundException when aspirant profile not found. Aspirant account have no profile.\n * @throws ServiceException when an error occurred in service.\n */\n void updateAspirantProfile(String email, AspirantProfile aspirantProfile)\n throws IllegalArgumentException, AspirantNotRegisteredException, AspirantProfileNotFoundException, ServiceException;\n\n /**\n * Add aspirant resume.\n * @param email aspirant email.\n * @param resume aspirant resume.\n * @throws IllegalArgumentException when email is null, empty or whitespace or resume is null.\n * @throws ServiceException when an error occurred in service.\n */\n void addAspirantResume(String email, Resume resume)\n throws IllegalArgumentException, ServiceException;\n\n /**\n * Returns all aspirant resume.\n * @param email aspirant email.\n * @return list of aspirant resume.\n * @throws IllegalArgumentException when email is null, empty or whitespace.\n * @throws ServiceException when an error occurred in service.\n */\n ArrayList<Resume> getAllAspirantResume(String email)\n throws IllegalArgumentException, ServiceException;\n\n /**\n * Returns an aspirant resume.\n * @param email aspirant email.\n * @param careerObjective career objective of the resume.\n * @return aspirant resume.\n * @throws IllegalArgumentException when email or careerObjective is null, empty or whitespace.\n * @throws ServiceException when an error occurred in service.\n */\n Resume getAspirantResume(String email, String careerObjective)\n throws IllegalArgumentException, ServiceException;\n\n /**\n * Delete aspirant resume.\n * @param email aspirant email.\n * @param careerObjective career objective of the resume.\n * @throws IllegalArgumentException when email or careerObjective is null, empty or whitespace.\n * @throws ServiceException when an error occurred in service.\n */\n void deleteAspirantResume(String email, String careerObjective)\n throws IllegalArgumentException, ServiceException;\n\n /**\n * Update aspirant resume.\n * @param email aspirant email.\n * @param careerObjective career objective of the resume.\n * @param resume aspirant resume.\n * @throws IllegalArgumentException when email or careerObjective is null, empty or whitespace.\n * @throws ResumeNotFoundException when aspirant resume not found.\n * @throws ServiceException when an error occurred in service.\n */\n void updateAspirantResume(String email, String careerObjective, Resume resume)\n throws IllegalArgumentException, ResumeNotFoundException, ServiceException;\n\n /**\n * Update resume date.\n * @param email aspirant email.\n * @param careerObjective career objective of the resume.\n * @param newDate new resume date.\n * @throws IllegalArgumentException when email or careerObjective is null, empty or whitespace or newDate is null.\n * @throws ResumeNotFoundException when aspirant resume not found.\n * @throws ServiceException when an error occurred in service.\n */\n void updateAspirantResumeDate(String email, String careerObjective, Date newDate)\n throws IllegalArgumentException, ResumeNotFoundException, ServiceException;\n\n /**\n * Return all aspirant resume view.\n * @param email aspirant email.\n * @param careerObjective career objective of the resume.\n * @return list of resume view.\n * @throws IllegalArgumentException when email or careerObjective is null, empty or whitespace or newDate is null.\n * @throws ResumeNotFoundException when aspirant resume not found.\n * @throws ServiceException when an error occurred in service.\n */\n ArrayList<ResumeView> getAllAspirantResumeViews(String email, String careerObjective)\n throws IllegalArgumentException, ResumeNotFoundException, ServiceException;\n\n ArrayList<Invitation> getAllAspirantInvitations(String email)\n throws IllegalArgumentException, ServiceException;\n\n Invitation getInvitation(String email, String careerObjective, String jobVacancyName, String companyName)\n throws IllegalArgumentException, ServiceException;\n\n AspirantAccount getAspirantAccountById(int id) throws ServiceException;\n\n Resume getResumeById(int id) throws ServiceException;\n\n ArrayList<Resume> getAllResume() throws ServiceException;\n\n void addAspirantResumeView(String aspirantEmail, String careerObjective, String HRManagerEmail)\n throws IllegalArgumentException, AspirantNotRegisteredException, ResumeNotFoundException, HRManagerNotFoundException, ServiceException;\n\n void sendInvitation(String aspirantEmail, String careerObjective, String jobVacancyName, String hrManagerEmail, Invitation invitation)\n throws IllegalArgumentException, AspirantNotRegisteredException, ResumeNotFoundException, HRManagerNotFoundException, CompanyNotFoundException, ServiceException;\n}", "public interface HelloService {\n\n public void sayHello(String name);\n}", "public TestService() {}", "public CallService() {\n super(\"My\");\n }", "private AuthenticationService() {}", "@Before\n public void setupService() {\n }", "public interface IResteasyService {\r\n\t\r\n\t/**\r\n\t * Service name inside OSGi namespace service registration.\r\n\t */\r\n\tpublic static final String SERVICE_NAME = ResteasyService.class.getName();\r\n\r\n\t/**\r\n\t * Add a SingletonResource.\r\n\t * @param resource\r\n\t */\r\n\tpublic void addSingletonResource(Object resource);\r\n\t\r\n\t/**\r\n\t * Remove a SingletonResource.\r\n\t * @param clazz\r\n\t */\r\n\tpublic void removeSingletonResource(Class<?> clazz);\r\n\r\n}", "@Override\n public void modifiedService(ServiceReference<ManagedService> reference, ManagedService service) {\n }", "public interface HelloService {\n\n String sayHello(String name);\n}", "@Override\r\n\tpublic void modifiedService(ServiceReference<T> reference, ServletContextHelperElement service) {\n\t}", "public void testSetService() throws Exception {\n }", "private ORMServiceFactory() { }", "public interface ISpringService {\n\tpublic String getServiceName();\n\n\tpublic Properties getServiceProperties();\n}", "public interface ConceptService {\n}", "private WebServicesFabrica(){}", "public interface HelloService {\n\n String sayHello(String name);\n\n}", "public interface HelloService {\n\n String hello(String userName);\n}", "public MyIntentService() {\n super(MyIntentService.class.getName());\n }", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "public SunshineService(String name) {\n super(\"SunshineService\");\n\n }" ]
[ "0.7053562", "0.69900304", "0.68800426", "0.6800737", "0.6694152", "0.6657991", "0.6610533", "0.65849483", "0.6550296", "0.6491542", "0.6491542", "0.63614035", "0.6359335", "0.6312243", "0.6300763", "0.625655", "0.6225168", "0.6218842", "0.6138481", "0.613843", "0.6132416", "0.6132416", "0.6119448", "0.6103455", "0.6097313", "0.60753924", "0.60623735", "0.6031934", "0.601417", "0.6011279", "0.6009034", "0.6001503", "0.6001189", "0.5993851", "0.5993851", "0.5990191", "0.5988792", "0.59868777", "0.5986273", "0.5976357", "0.597346", "0.59651953", "0.59575814", "0.59549457", "0.594734", "0.5945587", "0.59404993", "0.5913996", "0.5912448", "0.5912448", "0.5912448", "0.5905621", "0.590229", "0.59006786", "0.5900639", "0.5900639", "0.5885922", "0.58844995", "0.5874387", "0.58709145", "0.58599573", "0.5857799", "0.58492863", "0.5845669", "0.5815569", "0.5807247", "0.5807087", "0.5806733", "0.57942563", "0.57913387", "0.57896453", "0.5786977", "0.5760875", "0.5760603", "0.5760057", "0.5756083", "0.5756083", "0.5749733", "0.5742818", "0.5739624", "0.57395", "0.5736702", "0.5736212", "0.5734503", "0.5731962", "0.5731738", "0.5728518", "0.57284635", "0.5722882", "0.57227725", "0.572065", "0.57200426", "0.57135636", "0.5713247", "0.5712481", "0.57122576", "0.5708939", "0.57043374", "0.5698931", "0.56954366", "0.5694593" ]
0.0
-1
set uo connection with the server
public void run() { Socket socket; try { socket = new Socket(servers.getServerAddress(),Integer.parseInt(servers.getServerPort())); } catch (IOException e) { // e.printStackTrace(); System.err.println("Cannot connect to the server: " + servers.getServerAddress() + " at port:" + servers.getServerPort()); return; } ObjectOutputStream toServer = null; try { toServer = new ObjectOutputStream(socket.getOutputStream()); } catch (IOException e) { e.printStackTrace(); } BufferedReader toClient = null; try { toClient = new BufferedReader(new InputStreamReader(socket.getInputStream())); } catch (IOException e) { e.printStackTrace(); } try { toServer.writeObject(argsToServer); } catch (IOException e) { e.printStackTrace(); } //get and print query results String line; int count = 0; ByteArrayOutputStream out = new ByteArrayOutputStream(); PrintStream pr = new PrintStream(out); try { while((line = toClient.readLine()) != null) { System.out.println("<" + servers.getServerAddress() + "> :" + line); count++; pr.println(line); } pr.flush(); System.out.println(servers.getServerAddress()+ " query count: " + count); socket.close(); } catch (IOException e) { e.printStackTrace(); } //saveLocalFile(out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConnection(Connection conn);", "void setConnection(Connection con);", "public void setConn(Connection conn) {this.conn = conn;}", "public void setServerConnection(ServerConnection toConnection)\n {\n m_oServerConnection = toConnection;\n }", "public void conectServer() {\n\n\t}", "public void setConnection(String sConnection) throws IOException;", "private void connectToServer() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Attempting connection to server at port: 5555\");\n\t\t\tsocket = new Socket(\"localhost\", 5554);\n\t\t\tSystem.out.println(\"Connected to server at port: 5555\");\n\n\t\t\tobjectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tobjectInputStream = new ObjectInputStream(socket.getInputStream());\n\t\t\t\n\t\t\t// sending client object to server\n\t\t\tobjectOutputStream.writeInt(Main.getUser().getUserId());\n\t\t\tobjectOutputStream.flush();\n\t\t} catch (UnknownHostException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }", "public void setConn(Connection connection){\n\t\tthis.conn = connection;\n\t}", "private void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(Server.ADDRESS, Server.PORT_NUMBER);\n\t\t\tthis.oos = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tthis.ois = new ObjectInputStream(socket.getInputStream());\n\t\t\tServerListener serverlistener = new ServerListener();\n\t\t\tserverlistener.start();\n\t\t\tRequest request = new Request(RequestCode.START_DOCUMENT_STREAM);\n\t\t\trequest.setUsername(user.getUsername());\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setConnection(Connection value) {\r\n connection = value;\r\n }", "public void setConnection(Connection connection) {\n this.connection = connection;\n }", "public void setConnection(Connection connection)\n\t{\n\t\twConn = connection;\n\t}", "public final void setConnection(Connection connection) {\n this.conn = connection;\n }", "public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane\r\n\t\t\t\t.showInputDialog(\"Entrez le nom du serveur.\");\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(serverIp, 4456);\r\n\t\t\tlogger.info(\"Connexion au socket serveur.\");\r\n\r\n\t\t\tThread t = new Thread(new EnvoiPresence(socket));\r\n\t\t\tt.start();\r\n\r\n\t\t\tThread t2 = new Thread(new ReceptionListUser(socket, mainView));\r\n\t\t\tt2.start();\r\n\r\n\t\t} catch (ConnectException e) {\r\n\t\t\tJOptionPane.showMessageDialog(new Frame(),\r\n\t\t\t\t\t\"Le serveur Draw Me An Idea n'est pas lancé\", \"Erreur\", 1);\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (UnknownHostException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void setServer(Server server) {\n\t\t\r\n\t}", "public void setConnection(Connection connection) {\n //doNothing\n }", "public void setCon(Object o) {\n con = o;\n }", "public UPKClient() {\n connectToServer(BASE_URL);\n }", "public void setSocket(SocketWrapper socket);", "public void connect() {\n try {\n socket = connectToBackEnd();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "@FXML\n\tprivate void handleConnection() {\n\t\tString pseudo = this.nickName.getText();\n\t\tif (pseudo != null && !pseudo.equals(\"\")) {\n\t\t\tUser user = new User(pseudo);\n\t\t\tthis.mainApp.setUser(user);\n\t\t\t//Un fois que l'utilisateur a été créé dans la main ap, on peut appeler la méthode de connection\n\t\t\tthis.mainApp.connect();\n\t\t}\n\t\telse {\n\t\t\t\n\t\t}\n\t}", "public void setConn(Connection conn) {\r\n this.conn = conn;\r\n }", "public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }", "public void setConnection(TSConnection conn) {\n\t\tm_kit.setConnection(conn);\n\t}", "public void setConnection(Connection connection) {\n\t\tthis.connection = connection;\n\t}", "public ControlCenter(){\n serverConnect = new Sockets();\n serverConnect.startClient(\"127.0.0.1\", 5000);\n port = 5000;\n }", "public void setConn(Connection conn) {\n this.conn = conn;\n }", "public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }", "public void setConn(Connection conn)\r\n\t{\r\n\t\tthis.conn = conn;\r\n\t}", "public void setConnection(WarpConnection connection) {\r\n this.connection=connection;\r\n }", "public void setClient(ConnectionToClient client) {\n this.client = client;\n }", "public void connect() {}", "public void initiateConnection() {\n\t\tif (Settings.getRemoteHostname() != null) {\n\t\t\ttry {\n\t\t\t\toutgoingConnection(new Socket(Settings.getRemoteHostname(), Settings.getRemotePort()));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \" + Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort() + \" :\" + e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public void setStunServer(String server);", "private void connectToServer(String uri) {\n Log.i(\"Connection with server\", \"start\");\n try {\n socket = IO.socket(uri);\n } catch (URISyntaxException e) {\n throw new RuntimeException(e);\n }\n\n // Set the created socket in the SocketHandler\n SocketHandler.setSocket(socket);\n\n socket.on(Socket.EVENT_CONNECT,onConnect);\n socket.on(Socket.EVENT_DISCONNECT,onDisconnect);\n socket.on(Socket.EVENT_CONNECT_ERROR, onConnectError);\n socket.on(Socket.EVENT_CONNECT_TIMEOUT, onConnectError);\n socket.on(\"userData\", onUserData);\n socket.on(\"updateUserResponse\", onUpdateUserResponse);\n socket.on(\"loginResponse\", onLoginResponse);\n socket.on(\"highScoreData\", onHighScoreData);\n socket.on(\"lobbyData\", onLobbyData);\n socket.on(\"userLeft\", onUserLeft);\n socket.on(\"newUserInLobby\", onNewUserInLobby);\n socket.on(\"userCreated\", onUserCreated);\n socket.on(\"chatData\", onChatData);\n socket.on(\"newMessage\", onNewMessage);\n socket.on(\"notLoggedIn\", onNotLoggedIn);\n socket.connect();\n\n Log.i(\"Connection with server\", \"done\");\n }", "public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}", "public void setConn(Connection conn)\n\t{\n\t\tthis.conn = conn;\n\t}", "public void setServer(Server server) {\n this.server = server;\n }", "private void establishServerConnection() {\n int lb_port = Integer.parseInt(gui.getLBPort_Text().getText());\n gui.getLBPort_Text().setEnabled(false);\n String lb_ip = gui.getLBIP_Text().getText();\n gui.getLBIP_Text().setEnabled(false);\n int server_port = Integer.parseInt(gui.getServerPort_Text().getText());\n gui.getServerPort_Text().setEnabled(false);\n String server_ip = gui.getServerIP_Text().getText();\n gui.getServerIP_Text().setEnabled(false);\n obtainId(server_ip, server_port);\n lbInfo = new ConnectionInfo(lb_ip, lb_port, 3);\n\n if (connection.startServer(server_port)) {\n connectionHandler = new ServerConnections(connection, lbInfo, requestsAnswered, processingRequests, gui.getCompleted_Text(), gui.getProcessing_Text());\n new Thread(connectionHandler).start();\n\n requestServerId();\n scheduler.scheduleAtFixedRate(heartbeat, 10, 10, TimeUnit.SECONDS);\n } else {\n gui.getLBPort_Text().setEnabled(true);\n gui.getLBIP_Text().setEnabled(true);\n gui.getServerPort_Text().setEnabled(true);\n gui.getServerIP_Text().setEnabled(true);\n gui.getButton_Connect().setEnabled(true);\n }\n }", "public void setConnection(TwAccess connection){\n //stop listening to old current connection\n if (currentConnection != null)\n currentConnection.removeG2ConnectionListener(g2ConnectionAdapter);\n //set new current connection\n currentConnection = connection;\n if (currentConnection != null){\n try{\n\tstate_ = currentConnection.getG2State();\n }\n catch(G2AccessException ex){\n\tcom.gensym.message.Trace.exception(ex);\n\tString cxnString = currentConnection.toShortString();\n\tcurrentConnection = null;\n\tnoConnection();\n\tString msg = ex.getMessage();\n\tif (msg == null)\n\t new WarningDialog(null, i18n.getString(\"Error\"), true, i18n.format(\"AccessError\", cxnString), null).setVisible(true);\n\telse\n\t new WarningDialog(null, i18n.getString(\"Error\"), true, i18n.format(\"AccessErrorWithReason\", cxnString, msg), null).setVisible(true);\n }\n //start listening to new current connection\n currentConnection.addG2ConnectionListener(g2ConnectionAdapter);\n }\n updateAvailability();\n }", "public void setConnection( String connection )\n {\n this.connection = connection;\n }", "public UConnecte() {\n\t\tsuper();\n\t}", "private void start_Connexion()throws UnknownHostException, IOException{\n \tsocket = new Socket(IP,num_Socket);\n \tout = new ObjectOutputStream(socket.getOutputStream());\n \tin = new ObjectInputStream(socket.getInputStream());\n \t\n }", "public ServerConnection()\n {\n //Initializing of the variables used in the constructor\n this.hostAddress = \"http://localhost\";\n this.port = 8882;\n }", "public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }", "public Servidor(Socket s) {\r\n\t\tconexao = s;\r\n\t}", "public void connect();", "public void connect();", "public void connect();", "@Override\n public void establishConnectionWithYourTower() {\n }", "public void connectToServerComp() {\n\n\t\ttry \n\t\t{\n\t\t\tSocket socket = new Socket(host, 8001);\n\t\t\tfromServer = new DataInputStream(socket.getInputStream());\n\t\t\ttoServer = new DataOutputStream(socket.getOutputStream());\n\n\t\t\ttoServer.writeInt(vsCOMPUTER);\n\n\t\t} catch (IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tThread thread = new Thread(new clientHandlingComputer(fromServer, toServer));\n\t\tthread.start();\n\n\t}", "public void setServer (\r\n String strServer) throws java.io.IOException, com.linar.jintegra.AutomationException;", "private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }", "public void setServer(URL url) {\n\n\t}", "@Override\n public void run()\n {\n close(false);\n try\n {\n if (!isConnected())\n connectMS(msServer.getIp(), msServer.getPort());\n }\n catch (Exception e)\n {\n Log.e(\"Dudu_SDK\",\n \"getServer ...failed ...user default server... \");\n }\n }", "public static void setConnection(String url, String user, String password) {\n Database.url = url;\n Database.user = user;\n Database.password = password;\n }", "public void setConnection(IRemoteConnection connection) {\n \t\tfSelectionListernersEnabled = false;\n \t\thandleRemoteServiceSelected(connection);\n \t\thandleConnectionSelected();\n \t\tfSelectionListernersEnabled = true;\n \t}", "public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }", "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "@Override\r\n\tpublic ServerBean connect(Users user, String applicationName)\r\n\t\t\tthrows RemoteException {\n\t\treturn null;\r\n\t}", "public Echange_Client() throws UnknownHostException, IOException {\n start_Connexion(); \n }", "public void connect()\r\n\t{\r\n\t\tkonekcija = ConnectionClass.getConnection(adresa, port, imeBaze, korisnickoIme, sifra);\r\n\t\tSystem.out.println(\"Konekcija otvorena: \"+ konekcija.toString());\r\n\t}", "private static void abrirPuerto() {\n try {\n serverSocket = new ServerSocket(PUERTO);\n System.out.println(\"Servidor escuchando por el puerto: \" + PUERTO);\n } catch (IOException ex) {\n Logger.getLogger(ServidorUnicauca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public CoronosClient(String ip){\n //GUI creator\n loginBuilder();\n uiBuilder();\n\n //create Socket + Streams\n try {\n s = new Socket(ip, 16789);\n oos = new ObjectOutputStream(s.getOutputStream());\n ois = new ObjectInputStream(s.getInputStream());\n serverListener();\n } catch (UnknownHostException e) {\n e.printStackTrace();\n } catch (BindException be) {\n be.printStackTrace();\n } catch(ConnectException ce){\n JOptionPane.showMessageDialog(loginButton, \"Failed to connect to server, please contact your System Administrator\", \"Connection Error\", JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public InitialValuesConnectionCenter() \n\t{\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException ServerConnectionCenter.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tprotected void onConnect() {\n\t\tLogUtil.debug(\"server connect\");\n\n\t}", "public void setConnection(String id, String name) {\n \t\tIRemoteServices services = getRemoteServices(id);\n \t\tif (services != null) {\n \t\t\tIRemoteConnection connection = getRemoteConnection(services, name);\n \t\t\tif (connection != null) {\n \t\t\t\tsetConnection(connection);\n \t\t\t}\n \t\t}\n \t}", "private void initConnection(Socket cli) {\t\n\tConnection conn = new Connection(this, cli);\n conn.setConnlist(connlist);\n\tThread t = new Thread(conn);\n\tt.start();\n\t\n\tconnlist.add(conn);\n\t\t\n\tsetConnectedStatus(true);\n }", "public void connectLobbyServer()\n {\n try {\n LobbyServerConnection.getInstance().connect();\n\n lobbymanager = LobbyServerConnection.getInstance().getLobbyManager();\n\n //verkrijgt alle lobbys\n List<Lobby> lobbyList = LobbyServerConnection.getInstance().getAllLobbys();\n LobbyManager.getInstance().addLobbys(lobbyList);\n update();\n subscribeTry();\n }\n catch (Exception e)\n {\n\n btnCreateLobby.setDisable(true);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Lobby server\");\n\n // Header Text: null\n alert.setHeaderText(\"connection error\");\n alert.setContentText(\"Couldn't connect to the lobbyserver. \\nGames cannot be played right now but you can still check your history\");\n\n alert.showAndWait();\n }\n }", "ST setArrivalConnection(ST connection);", "public static void setConnectedUser( HttpServletRequest request, User user )\r\n\t{\r\n\t\trequest.getSession().setAttribute( \"connectedUser\", user );\r\n\t}", "public void makeConnection() {\n\t\ttry {\n\t\t\tif(sock != null) {\n\t\t\t\ttable.printMsg(\"Cannot join a server twice! You've already connected.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsock = new Socket(serverIP, serverPort);\n\t\t\toos = new ObjectOutputStream(sock.getOutputStream());\n\t\t\tois = new ObjectInputStream(sock.getInputStream());\n\t\t\tThread thread = new Thread(new ServerHandler());\n\t\t\tthread.start();\n\t\t} catch(Exception e) {\n\t\t\ttable.printMsg(\"Cannot Join Server.\");\n\t\t\tsock = null;\n\t\t\ttable.repaint();\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void openConnection(){}", "private void doConnect() throws Exception {\n try {\n Registry reg = LocateRegistry.getRegistry(conf.getNameServiceHost(), conf.getNameServicePort());\n server = (IChatServer) reg.lookup(conf.getServerName());\n } catch (RemoteException e) {\n throw new Exception(\"rmiregistry not found at '\" + conf.getNameServiceHost() + \":\" +\n conf.getNameServicePort() + \"'\");\n } catch (NotBoundException e) {\n throw new Exception(\"Server '\" + conf.getServerName() + \"' not found.\");\n }\n\n //Unir al bot al canal com a usuari\n //el Hashcode li afig un valor unic al nom, per a que ningu\n //li copie el nom com a usuari\n user = new ChatUser(\"bot \" + this.hashCode(), this);\n if (!server.connectUser(user))\n throw new Exception(\"Nick already in use\");\n\n //Comprovar si hi ha canals en el servidor.\n IChatChannel[] channels = server.listChannels();\n if (channels == null || channels.length == 0)\n throw new Exception(\"Server has no channels\");\n \n //Unir el bot a cadascun dels canals\n for (IChatChannel channel : channels) {\n channel.join(user);\n }\n\n System.out.println(\"Bot unit als canals i preparat.\");\n }", "public void connect() {\n\t\ttry {\n\t\t\tconnection = new Socket(ip, serverPort); // 128.39.83.87 // 127.0.0.1\n\t\t\t\n\t\t\toutput = new BufferedWriter(new OutputStreamWriter(\n connection.getOutputStream()));\n\t\t\tinput = new BufferedReader(new InputStreamReader(\n connection.getInputStream()));\n\t\t\t\n\t\t\tif (hostName.equals(Constants.IDGK + Main.userName))\n\t\t\t\tsendText(\"1\" + Main.userName);\n\t\t\telse\n\t\t\t\tsendText(\"2\" + Main.userName);\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error connecting server\", e);\n\t\t} catch (IOException e) {\n\t\t\tMain.LOGGER.log(Level.WARNING, \"Error making output/input\", e);\n\t\t}\n\t}", "protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}", "public void setServer(Server server) {\n\t\tthis.server = server;\n\t}", "public Builder setConnection(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connection_ = value;\n onChanged();\n return this;\n }", "public Builder setConnection(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connection_ = value;\n onChanged();\n return this;\n }", "public Builder setConnection(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connection_ = value;\n onChanged();\n return this;\n }", "public Builder setConnection(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connection_ = value;\n onChanged();\n return this;\n }", "public void connecting() {\n\n }", "public void setHost(String host);", "public void connectToServerPVP() {\n\n\t\ttry \n\t\t{\n\t\t\tSocket socket = new Socket(host, 8001);\n\t\t\tfromServer = new DataInputStream(socket.getInputStream());\n\t\t\ttoServer = new DataOutputStream(socket.getOutputStream());\n\n\t\t\ttoServer.writeInt(vsPLAYER);\n\n\t\t} catch (IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tThread thread = new Thread(new clientHandlingPlayer(fromServer, toServer));\n\t\tthread.start();\n\t}", "public void Connect() {\n run = new Thread(\"Connect\") {\n @Override\n public void run() {\n running = true;\n try {\n server = new ServerSocket(9080);\n waitingForConnection();\n } catch (IOException ex) {\n Logger.getLogger(Dashboard.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n }\n };\n run.start();\n }", "private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public RemoteUser(Socket connection) {\n connectToSocket(connection);\n }", "public void setConnection(C4Client client) {\n this.client = client;\n }", "public void connectedTo(ServerDescriptor desc);", "public void setServer(IServer server) {\n\t\tthis.server = server;\n\t\tlogger.debug(\"Server is set\");\n\t}", "public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }", "public static void openConnection() {\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://192.168.1.51:9090?useTimeone=true&serverTimezone=UTC\",\n\t\t\t\t\t\"remote\", \"Password123\");// credenciales temporales\n\t\t\tSystem.out.print(\"Server Connected\");\n\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.print(\"No se ha podido conectar con mi base de datos\");\n\t\t\tSystem.out.println(ex.getMessage());\n\n\t\t}\n\n\t}", "public Server(Ublu ublu, Socket socket) {\n this();\n setUblu(ublu);\n setSocket(socket);\n }", "public void setPlayer(ViewerManager2 player) {\n this.player = player;\n // the player is needed to be existent befor starting up the remote Server\n //startRemoteServer();\n\n }", "public static void doConnect() {\r\n\t\tlogger.info(\"Connecting to server......\");\r\n\t\tChannelFuture future = null;\r\n\t\ttry {\r\n\t\t\tfuture = bootstrap.connect(new InetSocketAddress(host, port));\r\n\t\t\tfuture.addListener(channelFutureListener);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t// future.addListener(channelFutureListener);\r\n\t\t\tlogger.warn(\"Closed connection.\");\r\n\t\t}\r\n\r\n\t}", "private void connectToABBOE() throws IOException, IllegalArgumentsException {\n Socket socket = Biomine3000Utils.connectToServer(args);\n this.connection = new ABBOEConnection(CLIENT_PARAMS, socket, log);\n this.connection.init(new ObjectHandler());\n \n }", "@Override\n\tpublic void connect() {\n\t\t\n\t}", "@Override\n\tpublic void connect() {\n\t\t\n\t}", "public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }", "public void setupServer(EventInterface server) throws RemoteException {\r\n this.server = server;\r\n this.agentID = server.connect(this);\r\n }" ]
[ "0.67936635", "0.6739702", "0.63497657", "0.63380027", "0.63367045", "0.6307563", "0.62846226", "0.62299925", "0.6211893", "0.62109166", "0.6205591", "0.6174159", "0.61608297", "0.6111655", "0.6097229", "0.6011238", "0.59696376", "0.59336334", "0.593099", "0.5925894", "0.59142226", "0.591313", "0.5906397", "0.58912075", "0.5885843", "0.5874513", "0.58719385", "0.5870953", "0.58671534", "0.58624035", "0.5839593", "0.58337903", "0.5781007", "0.57784283", "0.57719636", "0.5762352", "0.57458305", "0.57354134", "0.5734254", "0.5728624", "0.5722283", "0.57049906", "0.56905454", "0.5689959", "0.56676376", "0.5662666", "0.5655214", "0.5651673", "0.5651673", "0.5651673", "0.56510323", "0.5638493", "0.5630509", "0.562209", "0.5620008", "0.561025", "0.56097436", "0.55897105", "0.55874354", "0.5586965", "0.55782807", "0.5569462", "0.556923", "0.5566828", "0.5555586", "0.5552571", "0.55514365", "0.55441076", "0.553552", "0.55279195", "0.55276644", "0.5524142", "0.55193716", "0.55086553", "0.5501598", "0.5501382", "0.5495771", "0.54951656", "0.5491673", "0.5491673", "0.5491673", "0.5491673", "0.54902136", "0.5484954", "0.5482393", "0.5479569", "0.5478594", "0.5471442", "0.54661447", "0.54528236", "0.5451929", "0.54437935", "0.5440134", "0.5429739", "0.5427437", "0.54272", "0.541996", "0.54160607", "0.54160607", "0.54153556", "0.5410935" ]
0.0
-1
save the query outcomes in local files
private void saveLocalFile(ByteArrayOutputStream out) { //sava in local files FileWriter fw; File file = new File("/home/shaowen2/testdata/" + "vm" +servers.getServerAddress().substring(15, 17) +"-ouput.log"); try { if (!file.exists()) { file.createNewFile(); } fw = new FileWriter(file); BufferedWriter bw = new BufferedWriter(fw); bw.write(out.toString()); //bw.write("\n" + "Query Count:" + count + "|| Time:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "\n"); bw.close(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveResult() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(resultFile));\n\t\t\tout.println(record.resultToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeResults() {\n gfmBroker.storeResults(this.responses, fileOutputPath);\n }", "private static void LOG() {\n if (!RESULTFILE.exists()) {\n\n if (!RESULTFILE.getParentFile().exists()) {\n RESULTFILE.getParentFile().mkdirs();\n }\n\n try {\n RESULTFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + RESULTFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(RESULTFILE, true));\n bw.write(\"rank\" + \"\\t\" + \"DBID\" + \"\\n\");\n bw.close();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(RESULTFILE));\n out.writeObject(RESULTS);\n out.close();\n\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n }\n\n /**\n * print also SQL query into a sql file\n *\n */\n if (!SQLFILE.exists()) {\n if (!SQLFILE.getParentFile().exists()) {\n SQLFILE.getParentFile().mkdirs();\n }\n try {\n SQLFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + SQLFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(SQLFILE, true));\n bw.write(UNKNOWN.getSortedQuery() + \"\\n\");\n bw.close();\n } catch (Exception e) {\n System.err.println(\"Konnte nicht in Datei \" + SQLFILE + \" schreiben!\");\n }\n }\n }", "public void saveResults();", "private void writeResults() {\n File externalStorage = Environment.getExternalStorageDirectory();\n if (!externalStorage.canWrite()) {\n Log.v(TAG, \"sdcard is not writable\");\n return;\n }\n File resultFile = new File(externalStorage, RESULT_FILE);\n resultFile.setWritable(true, false);\n try {\n BufferedWriter rsWriter = new BufferedWriter(new FileWriter(resultFile));\n Log.v(TAG, \"Saved results in: \" + resultFile.getAbsolutePath());\n java.text.DecimalFormat df = new java.text.DecimalFormat(\"######.##\");\n\n for (int ct=0; ct < IPTestListJB.TestName.values().length; ct++) {\n IPTestListJB.TestName t = IPTestListJB.TestName.values()[ct];\n final float r = mResults[ct];\n float r2 = rebase(r, t);\n String s = new String(\"\" + t.toString() + \", \" + df.format(r) + \", \" + df.format(r2));\n rsWriter.write(s + \"\\n\");\n }\n rsWriter.close();\n } catch (IOException e) {\n Log.v(TAG, \"Unable to write result file \" + e.getMessage());\n }\n }", "public void exportResultsToFile(){\r\n\t\t\t\t\r\n\t\t// This if clause shouldn't fire as the icon is grayed out if there is no tab open\r\n\t\tif(currentView == null \r\n\t\t\t\t|| currentView.getDynamicModelView() == null \r\n\t\t\t\t|| currentView.getDynamicModelView().getModel() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open, and a model and table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(currentView.getDynamicModelView().getModel().getDefaultHistory() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tDynamicModelHistory history = currentView.getDynamicModelView().getModel().getDefaultHistory();\r\n\r\n\t\tStringBuffer buffer = new StringBuffer(30000);\r\n\r\n\t\tif(history != null && history.getTimePointCount() > 0 && history.getSnapshot(0) != null){\r\n\t\t\r\n\t\t\t// Get the filename\r\n\t\t\tYorkGUIUtils guiUtils = new YorkGUIUtils();\r\n\t\t\tString selectedFile = guiUtils.getUserToDefineFilename(this, propertiesMemento.getBaseDir(), \"txt csv\", \"Results files (.txt, .csv)\", JFileChooser.SAVE_DIALOG);\r\n\r\n\t\t\tif(selectedFile == null || guiUtils.wasCancelled()){\r\n\t\t\t\trequestFocusInWindow();\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\t\r\n\t\t\tlogger.info(\"Selected file for exporting results:\" + selectedFile);\r\n\t\t\r\n\t\t\tbuffer.append(\"time point\").append(\"\\t\");\r\n\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\tbuffer.append(t).append(\"\\t\");\r\n\t\t\t}\r\n\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\r\n\t\t\tfor(Iterator<String> it = history.getSnapshot(0).keySet().iterator(); it.hasNext();){\r\n\t\t\t\tString name = it.next();\r\n\t\t\t\tbuffer.append(name).append(\"\\t\");\r\n\t\t\t\t// For all time points\r\n\t\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\t\tbuffer.append(history.getSnapshot(t).get(name).getOutputValue()).append(\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t}\r\n\t\t\tFileLoader.save(selectedFile, buffer.toString());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tJOptionPane.showMessageDialog(this, \"No results available in the selected tab. Run the model first.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public File getOutputDb();", "public void searchAndWriteQueryResultsToOutput() {\n\n List<String> queryList = fu.textFileToList(QUERY_FILE_PATH);\n\n for (int queryID = 0; queryID < queryList.size(); queryID++) {\n String query = queryList.get(queryID);\n // ===================================================\n // 4. Sort the documents by the BM25 scores.\n // ===================================================\n HashMap<String, Double> docScore = search(query);\n List<Map.Entry<String, Double>> rankedDocList =\n new LinkedList<Map.Entry<String, Double>>(docScore.entrySet());\n Collections.sort(rankedDocList, new MapComparatorByValues());\n\n // ===================================================\n // 5. Write Query Results to output\n // =================================================== \n String outputFilePath =\n RANKING_RESULTS_PATH + \"queryID_\" + (queryID + 1) + \".txt\";\n StringBuilder toOutput = new StringBuilder();\n // display results in console\n System.out.println(\"Found \" + docScore.size() + \" hits.\");\n int i = 0;\n for (Entry<String, Double> scoreEntry : rankedDocList) {\n if (i >= NUM_OF_RESULTS_TO_RETURN)\n break;\n String docId = scoreEntry.getKey();\n Double score = scoreEntry.getValue();\n String resultLine =\n (queryID + 1) + \" Q0 \" + docId + \" \" + (i + 1) + \" \" + score + \" BM25\";\n toOutput.append(resultLine);\n toOutput.append(System.getProperty(\"line.separator\"));\n System.out.println(resultLine);\n i++;\n }\n fu.writeStringToFile(toOutput.toString(), outputFilePath);\n }\n }", "private static void writeResults() {\n\t\t//Sort hashMap before sending to file\n\t\tTreeSet<Word> mySet = new TreeSet<>(hm.values());\n\n\t\t//Create result.txt file and write treeMap out to it\n\t\tWriter writer = null;\n\t\ttry {\n\t\t\t//System.out.println(\"Here\");\n\t\t\twriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"output\\\\results.txt\")));\n\t\t\tfor (Word word : mySet) {\n\t\t\t\twriter.write(word.getValue() + \"\\t\" + word.getCount() + \"\\n\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\twriter.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "protected void write_results(String output) {\r\n\t\t// File OutputFile = new File(output_train_name.substring(1,\r\n\t\t// output_train_name.length()-1));\r\n\t\ttry {\r\n\t\t\tFileWriter file_write = new FileWriter(output);\r\n\r\n\t\t\tfile_write.write(IS.getHeader());\r\n\r\n\t\t\t// now, print the normalized data\r\n\t\t\tfile_write.write(\"@data\\n\");\r\n\t\t\tfor (int i = 0; i < ndatos; i++) {\r\n\t\t\t\tif (!filtered[i]) {\r\n\t\t\t\t\tfile_write.write(X[i][0]);\r\n\t\t\t\t\tfor (int j = 1; j < nvariables; j++) {\r\n\t\t\t\t\t\tfile_write.write(\",\" + X[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfile_write.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfile_write.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"IO exception = \" + e);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "public static void DatasetAndQueryToFiles(double d, double e) throws IOException {\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch1.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch2.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch3.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch4.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch5.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch6.dat\");\r\n\t\tReadInDataset.findMinAndMax();\r\n\t\tReadInDataset.finalizeDataset();\r\n\t\tReadInDataset.writeToFile2(\"FinalDataset\"+\".arff\",ReadInDataset.finalDataset); //write down the used dataset\r\n\t\tquery=assignScoreToQueries(); //assign the scores to queries\r\n\t\ttrainQueries=takeTrainingQuerySet(query,d);\r\n\t\ttestQueries=takeTestingQuerySet(query,e,d);\r\n\t\tscoreToFile(Queries.NumberOfDimensions, trainQueries, \"TrainScoreSet.arff\"); //write down the queries with the scores\r\n\t\tscoreToFile(Queries.NumberOfDimensions, testQueries, \"TestScoreSet.arff\"); //write down the queries with the scores\r\n\t//\tqueryAndDataToCSV(); // this produces a graph with both queries and the dataset, not needded right now\r\n\t\twriteQueriesToCSV(testQueries, \"test\"); \r\n\t\twriteQueriesToCSV(trainQueries, \"train\"); \r\n\t}", "private static void writeResultToFile(FileWriter writer, NumberedQuery query,\n ScoreDoc result, Document doc, int rank) throws IOException {\n StringJoiner resultLine = new StringJoiner(\" \");\n resultLine.add( Integer.toString(query.getNumber()) ); // query-id\n resultLine.add( \"0\" ); // Q0\n resultLine.add( doc.get(DOCNO) ); // document-id\n resultLine.add( Integer.toString(rank) ); // rank\n resultLine.add( Float.toString(result.score) ); // score\n resultLine.add( \"STANDARD\\n\" ); // STANDARD\n writer.write(resultLine.toString());\n }", "private void writeAll(){\n try (BufferedWriter ignored = new BufferedWriter(new FileWriter(this.fileName))) {\n Iterable<E> values=entities.values();\n values.forEach(this::writeToFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void queryAndDataToCSV() throws IOException {\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\"Graph\"+x+\".csv\"));\r\n\t\tArrayList<ArrayList<String>> dataset =ReadInDataset.finalDataset;\r\n\t\tfor (int i=0; i< dataset.size(); i++) {\r\n\t\t\tString entry= dataset.get(i).get(1)+\",\"+ dataset.get(i).get(2);\r\n\t\t\tif (i< Queries.NumberOfQueries) {\r\n\t\t\t\tfor (int x=0; x<(Queries.NumberOfDimensions/2)-1;x++) {\r\n\t\t\t\tentry = entry+\",\"+query.get(i).get(x).get(0) +\",\" +query.get(i).get(x).get(1);\r\n\t\t\t\tentry = entry+\",\"+query.get(i).get(x+1).get(0) +\",\" +query.get(i).get(x+1).get(1);\r\n\t\t\t\t\r\n\t\t\t}}\r\n\t\t\twriter.write(entry);\r\n\t\t\twriter.newLine();\r\n\t\t}\r\n\t\twriter.close();\r\n\t}", "public void writeFile(String[] results) {\n\t\ttry {\n\t\t\tFile file = new File(outputFile);\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\tfor(int i = 0; i < results.length; i++) {\n\t\t\t\tString[] tuple = testTuples.get(i);\n\t\t\t\t// convert String[] to String\n\t\t\t\tString tupleString = \"\";\n\t\t\t\tfor(int j = 0; j < tuple.length; j++) {\n\t\t\t\t\ttupleString += tuple[j] + \",\";\n\t\t\t\t}\n\t\t\t\twriter.write(tupleString + results[i] + \"\\n\");\n\t\t\t}\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void logResult() {\r\n resTime = resTime * 1000;\r\n int b = (int) Math.round(resTime);\r\n resTime = (double) b / 1000;\r\n double averageTime = resTime / countTESTS;\r\n averageTime = averageTime * 1000;\r\n int i = (int) Math.round(averageTime);\r\n averageTime = (double) i / 1000;\r\n try (FileWriter writer = new FileWriter(\".//result.txt\")) {\r\n writer.write(resultOpen);\r\n writer.write(resultTitle);\r\n writer.write(resultSource);\r\n writer.write(resultLinkByName);\r\n writer.write(resultLinkByHref);\r\n writer.write(\"Total tests: \" + countTESTS + \"\\n\");\r\n writer.write(\"Passed/Failed: \" + PASSED_TEST + \"/\" + FAILED_TEST + \"\\n\");\r\n writer.write(\"Total time: \" + resTime + \"\\n\");\r\n writer.write(\"Average time: \" + averageTime + \"\\n\");\r\n writer.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\tprotected void saveResults(){\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"_yyyy_MM_dd_HH:mm:ss\");\n\t\tDate date = new Date();\n\t\ttry(BufferedWriter bw=new BufferedWriter(new FileWriter(\"/home/daniel/results/\"+this.mAffinityType+\"/\"+this.getClass().getSimpleName()+\"/\"+MAX_TASK_AGE+\"/\"+mOutputFileName+dateFormat.format(date)))){\n\t\t\tbw.write(this.getClass().getSimpleName()+\" with max age=\"+MAX_TASK_AGE+\"\\n\");\n\t\t\tbw.write(\"Total processing time: \"+cycles+\" TU\\n\");\n\t\t\tint count=0;\n\t\t\tfor(Task t : mTasks){\n\t\t\t\tbw.write(++count + \":\");\n\t\t\t\tif(t.getmAge()>=MAX_TASK_AGE){\n\t\t\t\t\tbw.write(\"Aging used\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tbw.write(\"Aging not used\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t DecimalFormat df = new DecimalFormat(\"0.0\");\n\t\t\t\t\t\tbw.write(\"[\"+df.format(AFFINITY3[i][j][k])+\"]\");\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t}\n\t\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void saveToFile(PrintWriter out);", "public void writeResultSentencesToFile(String outputFilePath) {\n writeDataToFile(reversedWrdsSentence.toCharArray(), outputFilePath);\n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "private boolean exportResult(){\n System.out.println(\"Writing to \" + \"out_\" + inputFile);\n return true;\n }", "public void writeToFile(ArrayList<quizImpl> ql) {\n Path path = Paths.get(\"Quizzes.txt\");\n try (Scanner scanner = new Scanner(path, String.valueOf(ENCODING))) {\n try (BufferedWriter writer = Files.newBufferedWriter(path, ENCODING)) {\n String toBeWritten;\n for (quizImpl q : ql) {\n String questionsString = \"\";\n //gets a list of questions for that quiz\n List<QuestionAndAnswer> questions = q.getQuestions();\n //for each question in the quiz get the answers\n for (QuestionAndAnswer question : questions) {\n List<String> answers = question.getAllAnswers();\n String answerString = \"\";\n for (String s : answers)\n answerString = answerString + s + \",\";\n answerString = answerString + question.getCorrectAnswer();\n questionsString = questionsString + \",\" + question.getQuestion() + \",\" + answerString;\n }\n if (q.getHighScore() == -1) toBeWritten = \"quizName,\" + q.getQuizName() + questionsString;\n else\n toBeWritten = \"quizName,\" + q.getQuizName() + questionsString + \",highScore,\" + q.playerWithHighScore() + \",\" + q.getHighScore();\n writer.write(toBeWritten);\n writer.newLine();\n }\n writer.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void storeToFile() throws IOException {\n\t\t\n\t\tDLProgramStorer storer = new DLProgramStorerImpl();\n\t\t\n\t\t//String datalogFile = inputCKR.getGlobalOntologyFilename() + \".dlv\";\n\t\t//String datalogFile = \"./testcase/output.dlv\";\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\tFileWriter writer = new FileWriter(outputFilePath);\n\t\tstorer.store(datalogCKR, writer);\n\t\t//writer.flush();\n\t\twriter.close();\n\t\t\n\t\t//System.out.println(\"CKR program saved in: \" + outputFilePath);\n\t}", "@Then(\"^the results should be displayed and saved in csv file$\")\n\tpublic void the_results_should_be_displayed_and_saved_in_csv_file() throws Throwable {\n\t\thomepage.waitForPageToLoad(homepage.getTitle());\n\t\thomepage.waitForVisibility(homepage.searchResults);\n\t\tList<WebElement> allSearchResults = homepage.findElements(homepage.searchResults);\n\n\t\ttry{\n\n\t\t\tfile = new File(csvFilePath);\n\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\tpw = new PrintWriter(new File(csvFilePath));\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\n\t\t\t//for header\n\t\t\tsb.append(\"Title\");\n\t\t\tsb.append(\" , \");\n\t\t\tsb.append(\"Link\");\n\t\t\tsb.append('\\n');\n\n\t\t\t// writing the required data to CSV file\n\t\t\tfor (WebElement result : allSearchResults){\n\n\t\t\t\tsb.append(result.getText());\n\t\t\t\tsb.append(\" , \");\n\t\t\t\tsb.append(result.getAttribute(\"href\"));\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\n\t\t\tpw.write(sb.toString());\n\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Error while writing to csv file !!!\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.flush();\n\t\t\t\tpw.close();\n\t\t\t} catch (Exception e) {\n\n\t\t\t\tSystem.out.println(\"Error while flushing/closing fileWriter !!!\");\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void saveTimingInformation()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile saveFile = new File(\"asdasda.save\");\n\t\t\tPrintWriter writer = new PrintWriter(saveFile);\n\t\t\tif(saveFile.exists())\n\t\t\t{\n\t\t\t\tfor(QueryInfo current : queryList)\n\t\t\t\t{\n\t\t\t\t\twriter.println(current.getQuery());\n\t\t\t\t\twriter.println(current.getQueryTime());\n\t\t\t\t}\n\t\t\t\twriter.close();\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), queryList.size() + \" QueryInfo objects were saved\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), \"File not present. No QueryInfo objects saved\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException currentError)\n\t\t{\n\t\t\tdataController.displayErrors(currentError);\n\t\t}\n\t}", "private void actionSaveOutputAll ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tJFileChooser saveFileChooser = new JFileChooser();\r\n\r\n\t\t\t\tFileNameExtensionFilter typeCSV = new FileNameExtensionFilter(\"CSV\", \"csv\", \"CSV\");\r\n\t\t\t\tsaveFileChooser.addChoosableFileFilter(typeCSV);\r\n\r\n\t\t\t\tFileNameExtensionFilter typeTXT = new FileNameExtensionFilter(\"TXT\", \"txt\", \"TXT\");\r\n\t\t\t\tsaveFileChooser.addChoosableFileFilter(typeTXT);\r\n\r\n\t\t\t\tsaveFileChooser.setAcceptAllFileFilterUsed(false);\r\n\t\t\t\tsaveFileChooser.setFileFilter(typeCSV);\r\n\r\n\t\t\t\tint isOpen = saveFileChooser.showOpenDialog(saveFileChooser);\r\n\r\n\t\t\t\tif (isOpen == JFileChooser.APPROVE_OPTION) \r\n\t\t\t\t{\r\n\t\t\t\t\tString filePath = saveFileChooser.getSelectedFile().getPath();\r\n\r\n\t\t\t\t\t/*!*/DebugLogger.logMessage(\"Saving output of all images to file \" + filePath, LOG_MESSAGE_TYPE.INFO);\r\n\r\n\t\t\t\t\tif (saveFileChooser.getFileFilter().equals(typeCSV))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!filePath.substring(filePath.length() - 4).equals(\".csv\")) { filePath += \".csv\"; }\r\n\r\n\t\t\t\t\t\tOutputController.saveFileAll(filePath, DataController.getTable(), OUTPUT_FORMAT.CSV);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!filePath.substring(filePath.length() - 4).equals(\".txt\")) { filePath += \".txt\"; }\r\n\r\n\t\t\t\t\t\tOutputController.saveFileAll(filePath, DataController.getTable(), OUTPUT_FORMAT.TXT);\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\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}", "private void saveKpiResult(String periods) {\n\t\tMap<Integer, KpiResult> kpiResultAreaMap = Application.kpiResultAreaMap;\n\t\tString filename = \"ices_kpi_result_area_\" + dateFormat.format(new Date()) + \".txt\";\n\t\tlog.info(\"Temporary filename: \"+filename);\n\t\tStringBuffer sb = new StringBuffer();\n\t\tint i=1;\n\t\tFile file = new File(filename);\n\t\tFileWriter fw = null;\n\t\tBufferedWriter bw =null;\n\t\ttry {\n\t\t\tif(file.exists()){\n\t\t\t\tif(!file.delete()){\n\t\t\t\t\tlog.error(\"The file already exists and get exception when delete it, please close it if it is opened.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfile.createNewFile();\n\t\t\tfw = new FileWriter(file, true);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\tfor(int areacode : kpiResultAreaMap.keySet()){\n\t\t\t\tKpiResult kpiResult = kpiResultAreaMap.get(areacode);\n\t\t\t\tString resultString = kpiResult.getResultMap().toString();\n\t\t\t\tString is_okString = kpiResult.getIsOkJson();\n\t\t\t\tsb.append(\"`\");\n\t\t\t\tsb.append(periods);\n\t\t\t\tsb.append(\"`\");\n\t\t\t\tsb.append(\"@\");\n\t\t\t\tsb.append(\"`\");\n\t\t\t\tsb.append(areacode);\n\t\t\t\tsb.append(\"`\");\n\t\t\t\tsb.append(\"@\");\n\t\t\t\tsb.append(\"`\");\n\t\t\t\tsb.append(resultString);\n\t\t\t\tsb.append(\"`\");\n\t\t\t\tsb.append(\"@\");\n\t\t\t\tsb.append(\"`\");\n\t\t\t\tsb.append(is_okString);\n\t\t\t\tsb.append(\"`\");\n\t\t\t\tsb.append(\"@\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\ti++;\n\t\t\t\tif(i % 1000 == 0){\n\t\t\t\t\tbw.append(sb);\n\t\t\t\t\tbw.flush();\n\t\t\t\t\tsb = new StringBuffer();\n\t\t\t\t\ti=1;\n\t\t\t\t}\n\t\t\t\tkpiResultAreaMap.get(areacode).getResultMap().clear();\n\t\t\t\tkpiResultAreaMap.get(areacode).getIsOkSet().clear();\n\t\t\t}\n\t\t\tbw.append(sb);\n\t\t\tbw.flush();\n\t\t\tString loadsql = String.format(LOAD_FORMAT_RESULT, filename,\"ices_kpi_result_area\");\n\t\t\tlog.info(\"loadsql: \"+loadsql);\n\t\t\tkpiDao.loadData(loadsql);\n\t\t\tfile.delete();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}finally{\n\t\t\tif(bw != null){\n\t\t\t\ttry {\n\t\t\t\t\tbw.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(fw != null){\n\t\t\t\ttry {\n\t\t\t\t\tfw.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(file!=null && file.exists()){\n\t\t\t\tfile.delete();\n\t\t\t}\n\t\t}\n\t}", "public void writeResultData() {\n\n// DatabaseLoader databaseLoader = new DatabaseLoader();\n TestResultDeployer testResultDeployer = new TestResultDeployer();\n MySqlDatabaseManager mySqlDatabaseManager;\n try {\n EnvironmentBuilder environmentBuilder = new EnvironmentBuilder();\n DashboardVariables dashboardVariables = environmentBuilder.getFrameworkSettings().getDashboardVariables();\n if (dashboardVariables.getEnableDashboard().equalsIgnoreCase(\"true\")) {\n String databaseName = dashboardVariables.getDbName();\n\n mySqlDatabaseManager = new MySqlDatabaseManager(dashboardVariables.getJdbcUrl(), dashboardVariables.\n getDbUserName(), dashboardVariables.getDbPassword());\n// databaseLoader.createDatabase();\n mySqlDatabaseManager.execute(\"INSERT INTO \" + databaseName + \".WA_BUILD_HISTORY VALUES()\");\n DirectoryScanner scan = new DirectoryScanner();\n scan.setBasedir(ProductConstant.REPORT_LOCATION + File.separator + \"reports\" + File.separator);\n String[] fileList = new String[]{\"*/testng-results.xml\"};\n scan.setIncludes(fileList);\n scan.scan();\n String[] fileset = scan.getIncludedFiles();\n for (int i = 0; i <= fileset.length - 1; i++) {\n testResultDeployer.writeResult(ProductConstant.REPORT_LOCATION + \"reports\" +\n File.separator + fileset[i]);\n log.info(fileset[i] + \" write to database\");\n }\n }\n } catch (ClassNotFoundException e) {\n log.error(e);\n } catch (SQLException e) {\n log.error(e);\n } /*catch (IOException e) {\n log.error(e);\n }*/\n }", "public void saveResult(final String filepath) {\r\n saveResult(new File(filepath));\r\n }", "private static void saveTranscations() {\n\t\tSystem.out.println(\"All Transcations saved in a File named transcation.txt \");\n\t}", "@Override\n public void saveSolutions() {save solutions in unfolded format in a separate files for each solution (At this time, we have just one solution)\n // The result will print in 3 rows and each row have 4 columns:\n //\n // row1 --> col2\n // row2 --> col1 clo2 col3 col4\n // row2 --> clo2\n //\n //Example (of red cube):\n //\n // oo o\n // ooo\n // ooooo\n // ooo\n // oo\n // o o oo oo oo o\n //oooo ooooo ooo oooo\n // oooo ooo ooooo oooo\n //oooo ooooo ooo oooo\n // o o o oo o\n // o oo\n // oooo\n // oooo\n // oooo\n // oo oo\n //\n String directory = \"output\";\n File dir = new File(directory);\n if (!dir.exists()) dir.mkdirs();\n AtomicInteger counter = new AtomicInteger(1);\n solutions.forEach((number, solutionPuzzle) -> {\n StringBuilder rowStringValue1 = generateRowStringValue(null, solutionPuzzle.getTopPuzzlePiece(), null, null);\n StringBuilder rowStringValue2 = generateRowStringValue(solutionPuzzle.getLeftPuzzlePiece(), solutionPuzzle.getFrontPuzzlePiece(), solutionPuzzle.getRightPuzzlePiece(), solutionPuzzle.getBackPuzzlePiece());\n StringBuilder rowStringValue3 = generateRowStringValue(null, solutionPuzzle.getBottomPuzzlePiece(), null, null);\n Path path = Paths.get(directory + \"/solution\" + counter.getAndIncrement() + \".txt\");\n try (BufferedWriter writer = Files.newBufferedWriter(path)) {\n writer.write(rowStringValue1.append(rowStringValue2).append(rowStringValue3).toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n }", "private final void exportAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showSaveDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tserializeToFile(file);\n\t }\t\n\t}", "private void writeFinalReports() {\n\t\tSystem.out.println(\"Printing data to output files ...\");\n\t\twritePropertyData();\n\t\twriteClassData();\n\t\tSystem.out.println(\"Finished printing data.\");\n\t}", "private static void writeToOutput(String path, Apriori apriori){\n try{\n BufferedWriter output = new BufferedWriter(new FileWriter(path, false));\n for (String s : apriori.mItemSet){\n output.write(s);\n }\n output.close();\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "void save(String output);", "public void saveFile() {\n\t\tPrintWriter output = null;\n\t\ttry {\n\t\t\toutput = new PrintWriter(\"/Users/katejeon/Documents/Spring_2020/CPSC_35339/avengers_project/game_result.txt\");\n\t\t\toutput.println(textArea.getText());\n\t\t\toutput.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File doesn't exist.\");\n\t\t} finally {\n\t\t\toutput.close();\n\t\t}\n\t}", "private static void writeToOutput() {\r\n FileWriter salida = null;\r\n String archivo;\r\n JFileChooser jFC = new JFileChooser();\r\n jFC.setDialogTitle(\"KWIC - Seleccione el archivo de salida\");\r\n jFC.setCurrentDirectory(new File(\"src\"));\r\n int res = jFC.showSaveDialog(null);\r\n if (res == JFileChooser.APPROVE_OPTION) {\r\n archivo = jFC.getSelectedFile().getPath();\r\n } else {\r\n archivo = \"src/output.txt\";\r\n }\r\n try {\r\n salida = new FileWriter(archivo);\r\n PrintWriter bfw = new PrintWriter(salida);\r\n System.out.println(\"Índice-KWIC:\");\r\n for (String sentence : kwicIndex) {\r\n bfw.println(sentence);\r\n System.out.println(sentence);\r\n }\r\n bfw.close();\r\n System.out.println(\"Se ha creado satisfactoriamente el archivo de texto\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void saveSearchTaskResult(String writePath, JsonObject request) {\t\n\t\t\tthis.rwl.lockRead();\n\t\t\t//Search songs according to request\n\t\t\tJsonObject result = this.search(request);\t\n\t\t\tPath outpath = Paths.get(writePath);\n\t\t\t//Create the file.\n\t\t\toutpath.getParent().toFile().mkdir();\n\t\t\ttry(BufferedWriter output = Files.newBufferedWriter(outpath)) {\n\t\t\t\t//Write the result to the file.\n\t\t\t\toutput.write(result.toString());\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Exception in saveSearchTaskResult in SongLibrary class!! \" + e.getMessage());\n\t\t\t}\n\t\t\tthis.rwl.unlockRead();\n\t\t}", "public static void writeToCSV() {\n final String CSV_SEPARATOR = \",\";\n final String QUOTE = \"\\\"\";\n if (!Crawler.getKeyWordsHits().isEmpty()) {\n try (BufferedWriter bufferedWriter =\n new BufferedWriter(\n new OutputStreamWriter(\n new FileOutputStream(\"results.csv\", true), StandardCharsets.UTF_8))) {\n\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> {\n String oneLine = QUOTE + keyWord + QUOTE +\n CSV_SEPARATOR +\n hitsNumber;\n try {\n bufferedWriter.write(oneLine);\n bufferedWriter.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n String lastLine = QUOTE + Crawler.getUrl() + QUOTE + CSV_SEPARATOR + Crawler.getTotalHits();\n bufferedWriter.write(lastLine);\n bufferedWriter.newLine();\n bufferedWriter.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n Crawler.setKeyWordsHits(new HashMap<>());\n Crawler.setTotalHits(0);\n }", "protected void cleanup(Context context) throws IOException,\n\t\t\tInterruptedException {\n\t\tConfiguration conf = context.getConfiguration();\n\t\tString uri = conf.get(\"Query_file_name\");\n\t\tPath f = new Path(uri + \".queresult\");\n\t\tFileSystem fs = FileSystem.get(conf);\n\t\tif (fs.exists(f)) {\n\t\t\t// File already exists.\n\t\t\t// Delete the file before proceeding.\n\t\t\tlogger.info(\"Deleting existing file\");\n\t\t\tfs.delete(f, true);\n\t\t}\n\n\t\t// proceed to write the\n\t\t// query results to the\n\t\t// created file.\n\n\t\tint r = Integer.parseInt(conf.get(\"Num_results\"));\n\t\tint o = Math.min(objCount, r);\n\t\tfor (int i = 0; i < o; i++) {\n\t\t\tqueryResult += dObj[i].getKey() + \"\\n\";\n\t\t}\n\t\tqueryResult += dObj[o].getKey();\n\t\tFSDataOutputStream os = fs.create(f);\n\t\tBufferedWriter br = new BufferedWriter(new OutputStreamWriter(os,\n\t\t\t\t\"UTF-8\"));\n\t\tbr.write(queryResult);\n\t\tbr.close();\n\t}", "private static void textFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n try {\n airportFlightCounter.toTextFile();\n flightInventory.toTextFile();\n flightPassengerCounter.toTextFile();\n mileageCounter.toTextFile();\n } catch (FileNotFoundException e) {\n logger.error(\"Could not write to one or more text files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to text files completed\");\n }", "public void writeSimScore() throws IOException, MalformedURLException, ParseException {\n FileWriter fw = new FileWriter(new File(scoreFile+new Double(alphaValue).toString()+\".txt\")); \r\n BufferedWriter bw = new BufferedWriter(fw);\r\n\r\n int numQueries = queryList.size();\r\n for (int i = 0; i < numQueries; i++) {\r\n String query1 = queryList.get(i);\r\n for (int j = 0; j < numQueries; j++) {\r\n String query2 = queryList.get(j);\r\n double sim = alphaValue * scorematrix[i][j] + (1 - alphaValue) * calSemanticSim(i, j);\r\n bw.write(new Double(sim).toString());\r\n bw.write(\" \");\r\n }\r\n // System.out.println(\"entered \" + i);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n\r\n }", "@Override\n public File importCSV(String query) {\n String retorno = executeQuery(query);\n File file = new File(\"export.csv\");\n try {\n file.createNewFile();\n if(file.exists()){\n try (Writer writer = new FileWriter(file)) {\n writer.append(retorno);\n writer.flush();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return file;\n }", "public void save() {\n CSVWriter csvWriter = new CSVWriter();\n csvWriter.writeToTalks(\"phase1/src/Resources/Talks.csv\", this.getTalkManager()); //Not implemented yet\n }", "private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public static void SaveProcessedData()\n\t{\n\t\tSystem.out.println(\"\\r\\n... Saving processed Data....\");\n\t\t\n\t\tString date = new SimpleDateFormat(\"yyyyMMddhhmm\").format(new Date());\n\t\tString generalInput = \"FeatureExpressionCollection=\" + FeatureExpressionCollection.GetCount() + \";\" + FeatureExpressionCollection.GetLoc() + \";\" + FeatureExpressionCollection.GetMeanLofc() + \";\" + FeatureExpressionCollection.numberOfFeatureConstants;\n\t\t\n\t\t// Save files\n\t\ttry \n\t\t{\n\t\t\tFileUtils.write(new File(date + \"_\" + featuresPath), FeatureExpressionCollection.SerializeFeatures());\n\t\t\tFileUtils.write(new File(date + \"_\" + methodsPath), MethodCollection.SerializeMethods());\n\t\t\tFileUtils.write(new File(date + \"_\" + filesPath), FileCollection.SerializeFiles());\n\t\t\tFileUtils.write(new File(date + \"_\" + generalPath), generalInput);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"ERROR: Could not save processed data files\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"... done!\");\n\t}", "public void saveMatrixIO() {\n qMatrixFile.saveToFile(getQMatrix());\n sMatrixFile.saveToFile(getSMatrix());\n }", "private void doExport() {\n\t\tSQLiteDatabase db = null;\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tdb = openOrCreateDatabase(MyDbHelper.DATABASE_NAME, SQLiteDatabase.OPEN_READWRITE, null);\n\t\t\tcursor = db.rawQuery(\"SELECT * \" +\n \" FROM \" + LocationTable.TABLE_NAME +\n \" ORDER BY \" + LocationTable.COLUMN_TIMESTAMP + \" ASC\",\n null);\n \n\t\t\tint timestampColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_TIMESTAMP);\n int latitudeColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_LATITUDE);\n int longitudeColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_LONGITUDE);\n int accuracyColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_ACCURANCY);\n \n\t\t\tif (cursor.moveToFirst()) {\n\t\t\t\tStringBuffer fileBuf = new StringBuffer();\n\t\t\t\tString beginTimestamp = null;\n\t\t\t\tString endTimestamp = null;\n\t\t\t\tString timestamp = null;\n\t\t\t\tdo {\n\t\t\t\t\ttimestamp = cursor.getString(timestampColumnIndex);\n\t\t\t\t\tif (beginTimestamp == null) {\n\t\t\t\t\t\tbeginTimestamp = timestamp;\n\t\t\t\t\t}\n\t\t\t\t\tdouble latitude = cursor.getDouble(latitudeColumnIndex);\n\t\t\t\t\tdouble longitude = cursor.getDouble(longitudeColumnIndex);\n\t\t\t\t\tdouble accuracy = cursor.getDouble(accuracyColumnIndex);\n\t\t\t\t\tfileBuf.append(sevenSigDigits.format(longitude)+\",\"+sevenSigDigits.format(latitude)+\"\\n\");\n\t\t\t\t} while (cursor.moveToNext());\n\t\t\t\t\n\t\t\t\tendTimestamp = timestamp;\n\t\t\t\t\n\t\t\t\tcloseFileBuf(fileBuf, beginTimestamp, endTimestamp);\n\t\t\t\tString fileContents = fileBuf.toString();\n\t\t\t\tLog.d(ActivityName, fileContents);\n\t\t\t\tFile sdcard_path = Environment.getExternalStorageDirectory();\n\t\t\t\tFile sdDir = new File(sdcard_path, \"GPSLogger\");\n\t\t\t\tsdDir.mkdirs();\n\t\t\t\tFile file = new File(sdDir, zuluFormat(beginTimestamp) + \".kml\");\n\t\t\t\tFileWriter sdWriter = new FileWriter(file, false);\n\t\t\t\tsdWriter.write(fileContents);\n\t\t\t\tsdWriter.close();\n \t\t\tToast.makeText(getBaseContext(),\n \t\t\t\t\t\"Export completed!\",\n \t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\t\"I didn't find any location points in the database, so no KML file was exported.\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t}\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\"Error trying access the SD card. Make sure your handset is not connected to a computer and the SD card is properly installed\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t} catch (Exception e) {\n\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\"Error trying to export: \" + e.getMessage(),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t} finally {\n\t\t\tif (cursor != null && !cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t\tif (db != null && db.isOpen()) {\n\t\t\t\tdb.close();\n\t\t\t}\n\t\t}\n\t}", "public void saveModel(String path) {\n try\n {\n for (int i=0; i<size; i++) {\n for (int j=0; j<size; j++) {\n PerformanceResultsPair resultsPair = resultsGrid[i][j];\n String directoryName = (i > j)?\n resultsPair.getP2FirstResults().getDescription():\n resultsPair.getP1FirstResults().getDescription();\n resultsPair.saveTo(path + FileUtil.FILE_SEPARATOR() + directoryName);\n }\n }\n } catch (IOException e) {\n throw new IllegalStateException(\"Could not save the model\", e);\n }\n }", "private void export() {\n print(\"Outputting Instructions to file ... \");\n\n // Generate instructions right now\n List<Instruction> instructions = new ArrayList<Instruction>();\n convertToInstructions(instructions, shape);\n\n // Verify Instructions\n if (instructions == null || instructions.size() == 0) {\n println(\"failed\\nNo instructions!\");\n return;\n }\n\n // Prepare the output file\n output = createWriter(\"output/instructions.txt\");\n \n // TODO: Write configuration information to the file\n \n\n // Write all the Instructions to the file\n for (int i = 0; i < instructions.size(); i++) {\n Instruction instruction = instructions.get(i);\n output.println(instruction.toString());\n }\n\n // Finish the file\n output.flush();\n output.close();\n\n println(\"done\");\n }", "public void saveResult(final File file) {\r\n Output.saveFile(file, speicher.getState());\r\n }", "public void writeEvaluateResultCSV(String resultFilePath) {\n writeCSV(resultFilePath, evaluates());\n System.out.println(\"write evaluate result finished:\" + resultFilePath);\n\n }", "private void dumpQuery(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataReqFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------query data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------query data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }", "private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void output(FileWriter outputFile, Map<Query, List<Evaluation>> evalData, FactDatabase source, FactDatabase target) {\n\t\tPrintWriter out = new PrintWriter(outputFile, true);\n\t\tif(source != null && target != null){\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.third);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tdetermineSource(eval, source, target);\n\t\t\t\t\tout.print(eval.source.toString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.result.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.fact.third);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tout.close();\n\t}", "public static void scoreToFile(int x, ArrayList<ArrayList<ArrayList<Double>>> allQueries, String filename) throws IOException {\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(filename));\r\n\t\t\tint minn=1;\r\n\t\t\tint maxn=1;\r\n\t\t\tString title = \"@relation Query_Title\";\r\n\t\t\twriter.write(title);\r\n\t\t\twriter.newLine();\r\n\t\t\tfor (int i=0; i<Queries.NumberOfDimensions; i++) {\r\n\t\t\t\tif (Queries.isEven(i) || i==0) {\r\n\t\t\t\t\tString attribute= \"@attribute\"+\" min\"+minn + \" numeric\";\r\n\t\t\t\t\twriter.write(attribute);\r\n\t\t\t\t\twriter.newLine();\r\n\t\t\t\t\tminn++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tString attribute=\"@attribute\"+\" max\" +maxn + \" numeric\";\r\n\t\t\t\t\twriter.write(attribute);\r\n\t\t\t\t\twriter.newLine();\r\n\t\t\t\t\tmaxn++;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}\r\n\t\t\tString attribute =\"@attribute\"+\" score\" + \" numeric\";\r\n\t\t\twriter.write(attribute);\r\n\t\t\twriter.newLine();\r\n\t\t\t\r\n\t\t\twriter.newLine();\r\n\t\t\twriter.write(\"@DATA\");\r\n\t\t\twriter.newLine();\r\n\t\t\tfor (int i=0; i<allQueries.size(); i++) {\r\n\t\t\t\tString str=\"\";\r\n\t\t\t\tint n=0;\r\n\t\t\t\tfor(n=0; n<allQueries.get(i).size()-1; n++) {\tstr += allQueries.get(i).get(n).get(0)+\", \" + allQueries.get(i).get(n).get(1)+\", \";\r\n\t\t\t\t}\r\n\t\t\t\tif(allQueries.get(i).get(n).get(0)==0) {\r\n\t\t\t\t\tstr+=\"0.0\";\r\n\t\t\t\t}else {\r\n\t\t\t\t\tstr += allQueries.get(i).get(n).get(0); // add the score\r\n\t\t\t\t}\r\n\t\t\t\twriter.write(str);\r\n\t\t\t\twriter.newLine();\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t}", "public void save(){\n try{\n Date date = new Date();\n \n PrintWriter writer = new PrintWriter(\"data.MBM\", \"UTF-8\");\n \n writer.println(\"version:\"+MBMDriver.version);\n writer.println(\"numworlds:\" + worlds.size());\n writer.println(\"lastclosed:\" + date.toString());\n writer.println(\"outDir:\"+outputDir.toPath());\n \n for(int i = 0; i < worlds.size(); i++){\n \n writer.println(\"MBMWORLD:\"+worlds.get(i).getWorldFile().getName()+\":\"+worlds.get(i).getName()+\":\"+worlds.get(i).getWorldFile().toPath()+\":\"+worlds.get(i).getLastBackupDate());\n }\n \n writer.close();\n }catch(FileNotFoundException e){\n System.out.println(\"ERROR: Failed to Find File\");\n }catch(UnsupportedEncodingException e){\n System.out.println(\"ERROR: Unsupported Encoding Exception\");\n }\n }", "@Test\n public void example9() throws Exception { \n example6();\n File f = File.createTempFile(\"agraph-test\", \".rdf\");\n FileWriter out = new FileWriter(f);\n println(\"export to \" + f.getCanonicalFile());\n conn.exportStatements(null, RDF.TYPE, null, false, new RDFXMLWriter(out));\n close(out);\n assertFiles(new File(\"src/test/tutorial-test9-expected.rdf\"), f);\n f.delete(); // delete if success\n }", "@Test\n\tpublic void testWriteToFile() {\n\t\tArrayList<ArrayList<String>> risultatoAnalisi = \n\t\t\t\tnew ArrayList<ArrayList<String>>();\n\t\toutput.setAnalysisResult(risultatoAnalisi);\n\t\tString percorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ora passo un path corretto e controllo che venga creato il fiile\n\t\t */\n\t\tpercorso = \"test-dir\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + File.separator + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ripeto il test con valori da scrivere\n\t\t */\n\t\tArrayList<String> datiCasuali = new ArrayList<String>();\n\t\tdatiCasuali.add(\"27\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"12\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"3245543\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\toutput.setAnalysisResult(risultatoAnalisi); \n\t\tpercorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\t\t\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t}", "public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }", "private static void Worker(Connection con, String d1, String d2) throws SQLException, IOException {\n var id = 0;\n var CREATE_USER_ID = 0;\n long CREATE_USER_DATE = 0;\n var url = \"\";\n\n Path path = Paths.get(userHome + \"/photos.txt\");\n var content = \"\";\n\n PreparedStatement ps = con.prepareStatement(\"select id, url, foto, CREATE_USER_ID, CREATE_USER_DATE from lksz.fotok where CREATE_USER_DATE>='\" + d1 + \"' and CREATE_USER_DATE<'\" + d2 + \"' order by id\");\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n id = rs.getInt(1);\n url = rs.getString(2);\n CREATE_USER_ID = rs.getInt(4);\n CREATE_USER_DATE = rs.getLong(5);\n\n try {\n Blob b = rs.getBlob(3); //2 means 2nd column data\n if (b != null) {\n byte barr[] = b.getBytes(1, (int) b.length()); //1 means first image\n\n FileOutputStream fout = new FileOutputStream(\"/export/exp/\" + url);\n fout.write(barr);\n\n fout.close();\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n System.out.println(ind + \": \" + \"/export/exp/\" + url);\n ind++;\n content = id + \"|\" + url + \"|\" + CREATE_USER_ID + \"|\" + CREATE_USER_DATE + \"\\n\";\n try {\n Files.write(path, content.getBytes(), StandardOpenOption.APPEND);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n rs.close();\n ps.close();\n }", "private void writeBatchToFile(ArrayList<SensorEntry> batch) {\n\n\t\tFile file = new File(currFolder + \"/\" + entriesRecorded + \".csv\");\n\n\t\ttry {\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(file);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\toutputStream.write(Constants.INS_DATA_HEADER.getBytes());\n\t\t\t}\n\n\t\t\tfor (SensorEntry e : batch)\n\t\t\t\toutputStream.write((e.toRawString() + \",\" + e.getTimeRecorded() + \"\\n\").getBytes());\n\n\t\t\toutputStream.close();\n\n\t\t\tsetsOfEntriesRecorded++;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void writeToFiles(Context resultContext) throws IOException {\n\t\tMap<String, Map<Object, ArrayList<Object>>> keyValMappingByBaseOutputPath = resultContext.getKeyValMappingsByBaseOutputPath(); \n\t\t//Write key & value to each baseOutputPath's \n\t\tPath targetOutputDir = null;\n\t\tMap<Object, ArrayList<Object>> keyValMapping = null;\n\t\tPath finalOutputBaseDir = this.config.getFinalOutputDir();\n\t\tfor (String baseOutputPath: keyValMappingByBaseOutputPath.keySet()) {\n\t\t\tif (baseOutputPath.equals(\"\")) {\n\t\t\t\t//Regular output goes into the mapper output buffer directory.\n\t\t\t\ttargetOutputDir = this.config.getMapOutputBufferDir();\n\t\t\t}else {\n\t\t\t\t//Multiple output to a particular outputPath which was \n\t\t\t\t//specified by user goes into the final output directory. \n\t\t\t\ttargetOutputDir = Paths.get(finalOutputBaseDir.toString(), baseOutputPath);\n\t\t\t}\n\t\t\tkeyValMapping = keyValMappingByBaseOutputPath.get(baseOutputPath);\n\t\t\tthis.writeEachMapping(targetOutputDir, keyValMapping);\n\t\t};\n\t}", "void saveAs() {\n writeFile.Export();\n }", "void saveSimpleCodesToFile() {\n\t\tPrintWriter writer;\r\n\t\ttry {\r\n\t\t\t//writer = new PrintWriter(pathStr + \"/../pt.iscte.pidesco.codegenerator/Settings/Code.cg\", \"UTF-8\");\r\n\t\t\twriter = new PrintWriter(\"Code.cg\", \"UTF-8\");\r\n\t\t\tfor (SimpleCode sc : SimpleCodeMap.values()) {\r\n\t\t\t\twriter.print(sc.getCodeName() + \"-CGSeparator-\" + sc.resultCodeToWrite());\r\n\t\t\t\twriter.print(\"-CGCodeSeparator-\");\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t} catch (FileNotFoundException | UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void exportarapolice(){\n gettableconteudo();\n conexao.Conectar();\n File f = null;\n try {\n conexao.sql = \"SELECT data, nomefile, arquivo FROM arquivo WHERE data = ?\"; \n conexao.ps = conexao.con.prepareStatement(conexao.sql); \n ps.setString(1, id1);\n ResultSet rs = ps.executeQuery(); \n if ( rs.next() ){ \n byte [] bytes = rs.getBytes(\"arquivo\"); \n String nome = rs.getString(\"nomefile\");\n f = new File(\"C:\\\\rubinhosis\\\\exportacoes\\\\\" + nome); \n FileOutputStream fos = new FileOutputStream( f);\n fos.write( bytes ); \n fos.close(); \n }\n rs.close(); \n ps.close(); \n \n \n } catch (SQLException ex) { \n ex.printStackTrace();\n }\n catch (IOException ex) {\n ex.printStackTrace();\n }\n\n}", "private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "static void writeOperations(){\n \ttry{\n \t\t\n\t\t\t// Create file \n\t\t\tFileWriter fstream = new FileWriter(FILE_FILEOP);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t \tfor (int i=0; i < operations.size(); i++){\n\t \t\tout.write(operations.get(i).getDetails() );\n\t \t}\n\t\t\t\n\t\t\t//Close the output stream\n\t\t\tout.close();\n\t\t}\n \tcatch (Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\tSystem.out.print(\"Operations file written.\\n\");\n\n \t\n }", "private void outputToFile() {\n\t\tPath filePath = Paths.get(outputFile);\n\n\t\ttry (BufferedWriter writer = Files.newBufferedWriter(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tRowIterator iterator = currentGen.iterateRows();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tElemIterator elem = iterator.next();\n\t\t\t\twhile (elem.hasNext()) {\n\t\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\t\twriter.write(mElem.rowIndex() + \",\" + mElem.columnIndex());\n\t\t\t\t\twriter.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to write to the provided file\");\n\t\t}\n\n\t}", "private void saveDataToFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // path for new accounts after sucsessful new account creation\n if (isLoggedInNew) {\n String username = na.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n try (FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw)) {\n for (int i = 0; i < remindersTable.getRowCount(); i++) { // rows\n for (int j = 0; j < remindersTable.getColumnCount(); j++) { // cols\n bw.write(remindersTable.getValueAt(i, j).toString() + \"\\t\");\n }\n bw.newLine();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // path for existing accounts after sucsessful login\n if (isLoggedIn) {\n String username = uL.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n try (FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw)) {\n for (int i = 0; i < remindersTable.getRowCount(); i++) { // rows\n for (int j = 0; j < remindersTable.getColumnCount(); j++) { // cols\n bw.write(remindersTable.getValueAt(i, j).toString() + \"\\t\");\n }\n bw.newLine();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "private void writeStatsToFile() {\n\t\tString fileName = \"TypeaheadStats.dat\";\n\t\tString contents = \"Typeahead_Tasks,Index_Hits,Hit_Ratio,Avg_Time,Suffix_Time,Pruning\\n\";\n\t\tcontents += numOfSearchTasks + \n\t\t\t\t\",\" + numOfIndexHits + \n\t\t\t\t\",\" + 1.0 * numOfIndexHits / numOfSearchTasks + \n\t\t\t\t\",\" + totalTime / numOfSearchTasks +\n\t\t\t\t\",\" + suffixTreeTime / numOfSearchTasks + \n\t\t\t\t\",\" + pruningPercentage / numOfSearchTasks;\n\t\tFileManager.writeToFile(fileName, contents);\n\t}", "public void saveContenttoFile(ArrayList<String> content, String pathResult){\n\t\ttry{\n\t\t\t//File file = new File(path+\"/\"+gene+\".csv\");\n\t\t\tFile file = new File(pathResult);\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.createNewFile(); \n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(file,true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw, 1000000);\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tbw.write(content.get(0));\n\t\t\tcontent.remove(0); \n\t\t\tfor(String str: content) {\n\t\t\t\tif(str!=null ){\n\t\t\t\t\tbw.append(\",\" +\"\\\"\"+str+\"\\\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.newLine();\n\t\t\t//\tbw.write(bw.toString());\n\t\t\tbw.close();\n\t\t\tfw.close();\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"IOException occurred: not possible to find\" + pathResult);\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn;\n\t}", "private void persist() {\n \t\ttry {\n \t\t\tproblemFile = File.createTempFile(\"p2Encoding\", \".opb\"); //$NON-NLS-1$//$NON-NLS-2$\n \t\t\tBufferedWriter w = new BufferedWriter(new FileWriter(problemFile));\n \t\t\tint clauseCount = tautologies.size() + dependencies.size() + constraints.size();\n \n \t\t\tint variableCount = variables.size();\n \t\t\tw.write(\"* #variable= \" + variableCount + \" #constraint= \" + clauseCount + \" \"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t\tw.newLine();\n \t\t\tw.write(\"*\"); //$NON-NLS-1$\n \t\t\tw.newLine();\n \n \t\t\tif (variableCount == 0 && clauseCount == 0) {\n \t\t\t\tw.close();\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tw.write(objective);\n \t\t\tw.newLine();\n \t\t\tw.newLine();\n \n \t\t\tw.write(explanation + \" ;\"); //$NON-NLS-1$\n \t\t\tw.newLine();\n \t\t\tw.newLine();\n \n \t\t\tfor (Iterator iterator = dependencies.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tfor (Iterator iterator = constraints.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tfor (Iterator iterator = tautologies.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tw.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}", "public void separateFileToQueries(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, File queriesFile, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath) {\n try {\n String allQueries = new String(Files.readAllBytes(Paths.get(queriesFile.getAbsolutePath())), Charset.defaultCharset());\n String[] allQueriesArr = allQueries.split(\"<top>\");\n\n for (String query : allQueriesArr) {\n if(query.equals(\"\")){\n continue;\n }\n String queryId = \"\", queryText = \"\", queryDescription = \"\";\n String[] lines = query.toString().split(\"\\n\");\n for (int i = 0; i < lines.length; i++){\n if(lines[i].contains(\"<num>\")){\n queryId = lines[i].substring(lines[i].indexOf(\":\") + 2);\n }\n else if(lines[i].contains(\"<title>\")){\n queryText = lines[i].substring(8);\n }\n else if(lines[i].contains(\"<desc>\")){\n i++;\n while(i < lines.length && !lines[i].equals(\"\")){\n queryDescription += lines[i];\n i++;\n }\n }\n }\n search(indexer, cityIndexer, ranker, queryText, withSemantic, chosenCities, citiesByTag, withStemming, saveInPath, queryId, queryDescription);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void writeQueriesToCSV(ArrayList<ArrayList<ArrayList<Double>>> query, String name) throws IOException {\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(name+\".csv\"));\r\n\t\tfor (int i=0; i<query.size();i++){\r\n\t\t\tint a=0;\r\n\t\t\tString entry=\"\";\r\n\t\t\tfor(a=0; a<query.get(i).size()-1;a++) {\r\n\t\t\t\tentry+=query.get(i).get(a).get(0) +\",\"+ query.get(i).get(a).get(1)+\",\" ;\t\r\n\t\t\t}\r\n\t\t\tentry+= query.get(i).get(a).get(0)+\",\" +\";\";\r\n\t\t\twriter.write(entry);\r\n\t\t\twriter.newLine();\r\n\r\n\t\t} \t\t\twriter.flush();\r\n\t\t\t\t\twriter.close();}", "static void writeToFiles() throws IOException {\n\n writeToFilePriceHistory();\n writeToFileEmployees();\n writeToFileInventory();\n writeToSaleItems();\n writeToOrder();\n writeToFileInventory();\n writeToRevenueLog();\n }", "private void write(HashMap<String, List<String>> result, String filename) {\n\t\ttry {\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(filename));\n\n\t\t\tfor (String word : result.keySet()) {\n\t\t\t\tbw.write(String.format(\"%s: %s\\n\", word, result.get(word)));\n\t\t\t}\n\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }", "public synchronized void writeResults(WorkDirectory workDir, BackupPolicy backupPolicy)\n throws IOException {\n if (isMutable()) {\n throw new IllegalStateException(\"This TestResult is still mutable - set the status!\");\n }\n\n // could attempt a reload() I suppose\n if (props == null) {\n props = emptyStringArray;\n }\n\n String wrp = getWorkRelativePath(desc).replace('/', File.separatorChar);\n resultsFile = workDir.getFile(wrp);\n\n File resultsDir = resultsFile.getParentFile();\n resultsDir.mkdirs(); // ensure directory created for .jtr file\n\n File tempFile = createTempFile(workDir, backupPolicy);\n try {\n writeResults(tempFile, backupPolicy);\n } finally {\n if (tempFile.exists()) {\n tempFile.delete();\n }\n }\n }", "public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "public void writeToCSV(String path) throws IOException, SQLException {\n\t\tWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n\t\t// Title\n\t\tout.write(\"pageId;title;earliest year;latest year;mean year;\");\n\t\t// IBM\n\t\tout.write(\n\t\t\t\t\"Anger;Disgust;Fear;Joy;Sadness;Analytical;Confident;Tentative;Openness;Conscientiousness;Extraversion;Agreeableness;Emotional Range;\");\n\t\t// LIWC\n\t\tout.write(\n\t\t\t\t\"LIWC;Word Count;Analytical thinking;Clout;Authentic;Emotional tone;Dictionary Words;Positive Emotion;Negative Emotion;Anxiety;Anger;Sadness;Tentative;Certainty;Power;Risk;Death;\");\n\t\tout.write(\"AlchemyTone;mixed;score;type;\");\n\t\tout.write(\"\\n\");\n\t\tfor (Page page : this.getExtractsFromDatabase()) {\n\t\t\tint pageId = page.getPageId();\n\t\t\tString title = page.getTitle();\n\t\t\tToneAnalysis ibmTone = page.getIbmTone();\n\t\t\tReceptivitiAnalysis liwcTone = page.getLiwcTone();\n\t\t\tDocumentSentiment docSentiment = page.getDocumentSentiment();\n\t\t\tint earliestYear = page.getEarliestYear();\n\t\t\tint latestYear = page.getLatestYear();\n\t\t\tint meanYear = 0;\n\t\t\tif (earliestYear == 0) {\n\t\t\t\tmeanYear = latestYear;\n\t\t\t} else {\n\t\t\t\tmeanYear = (earliestYear + latestYear) / 2;\n\t\t\t}\n\t\t\tif (ibmTone != null) {\n\t\t\t\tout.write(pageId + \";\" + title + \";\" + earliestYear + \";\" + latestYear + \";\" + meanYear + \";\");\n\t\t\t\tElementTone documentTone = ibmTone.getDocumentTone();\n\t\t\t\tList<ToneCategory> toneCategories = documentTone.getTones();\n\t\t\t\tfor (ToneCategory toneCategory : toneCategories) {\n\t\t\t\t\tList<ToneScore> toneScores = toneCategory.getTones();\n\t\t\t\t\tfor (ToneScore toneScore : toneScores) {\n\t\t\t\t\t\t// String name = toneScore.getName();\n\t\t\t\t\t\tdouble score = toneScore.getScore();\n\t\t\t\t\t\tout.write(String.valueOf(score).replace('.', ','));\n\t\t\t\t\t\tout.write(\";\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tout.write(\";\");\n\n\t\t\t\tif (liwcTone != null) {\n\t\t\t\t\tDouble wordCount = liwcTone.getLiwcScores().getWc();\n\t\t\t\t\tDouble analyticalThinking = liwcTone.getLiwcScores().getAnalytic();\n\t\t\t\t\tDouble clout = liwcTone.getLiwcScores().getClout();\n\t\t\t\t\tDouble authentic = liwcTone.getLiwcScores().getAuthentic();\n\t\t\t\t\tDouble emotionalTone = liwcTone.getLiwcScores().getTone();\n\t\t\t\t\tDouble dictionaryWords = liwcTone.getLiwcScores().getDic();\n\n\t\t\t\t\tDouble posEmo = liwcTone.getLiwcScores().getCategories().getPosemo();\n\t\t\t\t\tDouble negEmo = liwcTone.getLiwcScores().getCategories().getNegemo();\n\t\t\t\t\tDouble anxiety = liwcTone.getLiwcScores().getCategories().getAnx();\n\t\t\t\t\tDouble anger = liwcTone.getLiwcScores().getCategories().getAnger();\n\t\t\t\t\tDouble sadness = liwcTone.getLiwcScores().getCategories().getSad();\n\t\t\t\t\tDouble tentative = liwcTone.getLiwcScores().getCategories().getTentat();\n\t\t\t\t\tDouble certainty = liwcTone.getLiwcScores().getCategories().getCertain();\n\t\t\t\t\tDouble power = liwcTone.getLiwcScores().getCategories().getPower();\n\t\t\t\t\tDouble risk = liwcTone.getLiwcScores().getCategories().getRisk();\n\t\t\t\t\tDouble death = liwcTone.getLiwcScores().getCategories().getDeath();\n\n\t\t\t\t\tout.write(wordCount + \";\");\n\t\t\t\t\tout.write(String.valueOf(analyticalThinking).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(clout).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(authentic).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(emotionalTone).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(dictionaryWords).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(posEmo).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(negEmo).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(anxiety).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(anger).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(sadness).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(tentative).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(certainty).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(power).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(risk).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(death).replace('.', ',') + \";\");\n\t\t\t\t}\n\t\t\t\tout.write(\";\");\n\t\t\t\tif (docSentiment != null) {\n\t\t\t\t\tString mixed = docSentiment.getSentiment().getMixed();\n\t\t\t\t\tDouble score = docSentiment.getSentiment().getScore();\n\t\t\t\t\tString type = docSentiment.getSentiment().getType().toString();\n\t\t\t\t\tout.write(String.valueOf(mixed).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(score).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(type).replace('.', ',') + \";\");\n\t\t\t\t}\n\t\t\t\tout.write(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tout.close();\n\t\tSystem.out.println(\"Export finished.\");\n\n\t}", "public File exportData() {\n File zephyrlogFolder = new File(Environment.getExternalStorageDirectory(), \"QuestionnaireActs\");\n\n boolean dirExists = zephyrlogFolder.exists();\n //if the directory doesn't exist, create it\n if (!dirExists) {\n dirExists = zephyrlogFolder.mkdirs();\n //if it still doesn't exist, give up and exit\n if (!dirExists) {\n Toast.makeText(this, \"Could not create ZephyrLogs directory!\", Toast.LENGTH_LONG).show();\n }\n }\n\n\n //create a data file and write into it\n File file = new File(zephyrlogFolder, \"Questionnaire_\"+promptName+\".txt\");\n try {\n FileWriter writer;\n if(!file.exists()){\n boolean created = file.createNewFile();\n if (!created) throw new IOException(\"Could not create data file\");\n writer = new FileWriter(file, true);\n //if this is a new file, write the CSV format at the top\n writer.write(\"Ονοματεπώνυμο: \"+promptName+\"\\n\"+\"Score: \"+myscore+\"\\n\\n\");\n } else {\n writer = new FileWriter(file, true);\n }\n writer.write(\"Ονοματεπώνυμο: \"+promptName+\"\\n\"+\"Score: \"+myscore+\"\\n\\n\");\n writer.close();\n } catch (FileNotFoundException e) {\n Toast.makeText(this, \"Could not create logging file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n Toast.makeText(this, \"Unsupported encoding exception thrown trying to write file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (IOException e) {\n Toast.makeText(this, \"IO Exception trying to write to data file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n return file;\n }", "public void saveIHave() throws SQLException, IOException {\n\t\t\n\t\t// dance\n\t\tquery = \"SELECT id, tag FROM dance WHERE ihave=1\";\n\t\tResultSet rs = stmt.executeQuery(query);\n\t\tString info;\n\t\tboolean append = false;\n\t\twhile(rs.next()) {\n\t\t\tinfo = \"dance \" + rs.getInt(\"id\") + \" \" + rs.getString(\"tag\");\n\t\t\tFileUtils.writeStringToFile(saveFile, info, append);\n\t\t\tappend = true;\n\t\t\tFileUtils.writeStringToFile(saveFile, \"\\n\", append);\n\t\t}\n\t\t\n\t\t// album\n\t\tquery = \"SELECT id, tag FROM album WHERE ihave=1\";\n\t\trs = stmt.executeQuery(query);\n\t\twhile(rs.next()) {\n\t\t\tinfo = \"album \" + rs.getInt(\"id\") + \" \" + rs.getString(\"tag\");\n\t\t\tFileUtils.writeStringToFile(saveFile, info, append);\n\t\t\tappend = true;\n\t\t\tFileUtils.writeStringToFile(saveFile, \"\\n\", append);\n\t\t}\n\t\t\n\t\t// publication\n\t\tquery = \"SELECT id, tag FROM publication WHERE ihave=1\";\n\t\trs = stmt.executeQuery(query);\n\t\twhile(rs.next()) {\n\t\t\tinfo = \"publication \" + rs.getInt(\"id\") + \" \" + rs.getString(\"tag\");\n\t\t\tFileUtils.writeStringToFile(saveFile, info, append);\n\t\t\tappend = true;\n\t\t\tFileUtils.writeStringToFile(saveFile, \"\\n\", append);\n\t\t}\n\t\t\n\t\t// recording\n\t\tquery = \"SELECT id, tag FROM recording WHERE ihave=1\";\n\t\trs = stmt.executeQuery(query);\n\t\twhile(rs.next()) {\n\t\t\tinfo = \"recording \" + rs.getInt(\"id\") + \" \" + rs.getString(\"tag\");\n\t\t\tFileUtils.writeStringToFile(saveFile, info, append);\n\t\t\tappend = true;\n\t\t\tFileUtils.writeStringToFile(saveFile, \"\\n\", append);\n\t\t}\n\t}", "private static void saveToFile(ArrayList<Favourite> allFav) {\n\t\t\n\t\tBufferedWriter writer=null;\n\t\t\n\t\ttry {\n\t\t\twriter=new BufferedWriter(new FileWriter(Constants.KEY_FAV_FILE));\n\t\t\tString save=\"\";\n\t\t\tfor(Favourite f:allFav) {\n\t\t\t\tsave+=fileFormat(f);\n\t\t\t}\n\t\t\twriter.write(save);\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\n\t\t}finally{\n\t\tif(writer!=null){\n\t\t\ttry{\n\t\t\t\twriter.close();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\n\t\n}\n\n\t\t\n\t}", "public abstract boolean exportStatistics(String statsFileName) throws SQLException;", "public void outputToFile(String filemame)\n {\n }", "public void saveRecordingClause(SuiteEntry suite, File dirPath) throws Exception {\n // Fortify Mod: make sure that dirPath is a legal path\n if( dirPath != null ) {\n TEPath tpath = new TEPath(dirPath.getAbsolutePath());\n if( ! tpath.isValid() ) \n throw new IllegalArgumentException(\"TEPath error on path \" + dirPath.getAbsolutePath());\n }\n if (dirPath != null && null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) {\n try {\n //Create a Source for saving the data.\n DOMSource source = new DOMSource(TECore.docClause);\n TransformerFactory xformFactory = TransformerFactory.newInstance();\n // Fortify Mod: prevent external entity injection \n xformFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n Transformer idTransform = xformFactory.newTransformer();\n // Declare document is XML\n idTransform.setOutputProperty(OutputKeys.METHOD, XML);\n // Declare document standard UTF-8\n idTransform.setOutputProperty(OutputKeys.ENCODING, UT_F8);\n // Declare document is well indented\n idTransform.setOutputProperty(OutputKeys.INDENT, YES);\n OutputStream report_logs = new FileOutputStream(new File(dirPath.getAbsolutePath() + Constants.tmp_File));\n Result output = new StreamResult(report_logs);\n //transform the output in xml.\n idTransform.transform(source, output);\n // Fortify Mod: Flush and free up the OutputStream\n report_logs.close();\n BufferedReader bufferedReader = null;\n BufferedWriter bufferedWriter = null;\n // Read the xml data from file\n bufferedReader = new BufferedReader(new FileReader(dirPath.getAbsolutePath() + Constants.tmp_File));\n // Create a xml file for saving the data.\n bufferedWriter = new BufferedWriter(new FileWriter(dirPath.getAbsolutePath() + Constants.result_clausexml));\n String dataString = \"\";\n //Read the data from file.\n while ((dataString = bufferedReader.readLine()) != null) {\n // Replace special symbol code to its symbol\n dataString = dataString.replaceAll(\"&lt;\", \"<\").replaceAll(\"&gt;\", \">\").replaceAll(\"&amp;\", \"&\");\n bufferedWriter.write(dataString);\n bufferedWriter.newLine();\n bufferedWriter.flush();\n }\n // Fortify Mod: Free up the Buffered Reader and Writer and their associated resources\n bufferedReader.close();\n bufferedWriter.close();\n // Check file exists\n File file = new File(dirPath.getAbsolutePath() + Constants.tmp_File);\n if (file.exists()) {\n // Delete file if exists\n file.delete();\n }\n } catch (Exception e) {\n System.out.println(ERROR_ON_SAVE_THE__RECORDING__ + e.toString());\n }\n }\n }", "private void saveOutputFile() {\n FileChooser fileChooser = new FileChooser();\n if (textMergeScript.hasCurrentDirectory()) {\n fileChooser.setInitialDirectory (textMergeScript.getCurrentDirectory());\n }\n chosenOutputFile = fileChooser.showSaveDialog (ownerWindow);\n if (fileChooser != null) {\n writeOutput();\n openOutputDataName.setText (tabNameOutput);\n }\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "private void outputfile() {\n\n ConnectDB dbconnect = new ConnectDB();\n\n try {\n PrintWriter writer = new PrintWriter(\"memberoutput.txt\");\n\n try {\n dbconnect.pst = dbconnect.con.prepareStatement(\"select * from members\");\n dbconnect.rs = dbconnect.pst.executeQuery();\n\n while (dbconnect.rs.next()) {\n writer.println(dbconnect.rs.getString(1) + \",\"\n + dbconnect.rs.getString(2) + \",\"\n + dbconnect.rs.getString(3) + \",\"\n + dbconnect.rs.getString(4) + \",\"\n + dbconnect.rs.getString(5) + \",\"\n + dbconnect.rs.getString(6) + \",\"\n + dbconnect.rs.getString(7) + \",\"\n + dbconnect.rs.getString(8) + \",\"\n + dbconnect.rs.getString(9));\n }\n\n writer.flush();\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n }\n writer.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n JOptionPane.showMessageDialog(null, \"File exported\");\n }", "public void writeResults(ArrayList<SampleSpectrum> spectra, String mgfFilename, int maxResults) throws FileNotFoundException\n\t{\n\t\tFile mgfFile = new File(mgfFilename);\n\t\tString parentFolder = mgfFile.getParent();\n\t\tString resultFileName = mgfFile.getName().substring(0,mgfFile.getName().lastIndexOf(\".\"))+\"_Results.csv\";\n\n\t\t//Check if results exists and if not create results folder in mgf file folder\n\t\tFile resultsDir = new File(parentFolder);\n\t\tif (!resultsDir.exists()) resultsDir.mkdir();\n\n\t\tPrintWriter pw = new PrintWriter(resultsDir.toString()+\"\\\\\"+resultFileName);\n\n\t\tpw.println(\"MS2 ID,Retention Time (min),Rank,Identification,\"\n\t\t\t\t+ \"Precursor Mass,Library Mass,Delta m/z,Dot Product,Reverse Dot Product,Purity,Spectral Components,Optimal Polarity,LipiDex Spectrum,Library,Potential Fragments\");\n\n\t\tfor (int i=0; i<spectra.size(); i++)\n\t\t{\n\t\t\tif (spectra.get(i).idArray.size() > 0)\n\t\t\t{ \n\t\t\t\tif(spectra.get(i).idArray.get(0).dotProduct>1)\n\t\t\t\t{\n\t\t\t\t\tpw.println(spectra.get(i).toString(maxResults));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tpw.close();\n\t}", "@Override\n public void storeParsedText() {\n parsedHtmlPages.parallelStream().forEach(parsedHtmlPage -> {\n FileUtility.writeToFile(parsedHtmlPage, FILE_DIRECTORY_NAME + FILE_SEPARATOR + parsedHtmlPage.getTitle());\n });\n }", "public static void exportPSMs(String filePath, TagSearchResult result) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n int count = 1;\r\n\r\n // Peptide header.\r\n writer.append(getPSMHeader());\r\n writer.newLine();\r\n\r\n for (Entry e1 : result.getResultMap().entrySet()) {\r\n\r\n // Get the protein hit.\r\n ProteinFamilyHit proteinFamilyHit = (ProteinFamilyHit) e1.getValue();\r\n Set<Entry<String, ProteinHit>> proteins = proteinFamilyHit.getProteinHits().entrySet();\r\n\r\n for (Entry e2 : proteins) {\r\n ProteinHit proteinHit = (ProteinHit) e2.getValue();\r\n\r\n for (PeptideHit peptideHit : proteinHit.getPeptideHitList()) {\r\n\r\n // PSM results\r\n for (PeptideSpectrumMatch psm : peptideHit.getSpectrumMatchesList()) {\r\n writer.append(count++ + SEP);\r\n writer.append(psm.getSpectrumTitle() + SEP);\r\n writer.append(peptideHit.getSequence() + SEP);\r\n writer.append(proteinHit.getAccession() + SEP);\r\n writer.append(Formatter.roundDouble(psm.getIntensityScore(), 3) + SEP);\r\n writer.append(psm.getIntensityScore() + SEP);\r\n writer.append(psm.getMatchedPeaks() + SEP);\r\n writer.newLine();\r\n }\r\n }\r\n }\r\n writer.flush();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }", "@FXML\r\n\tpublic void save() {\r\n\t\ttry {\r\n\t\t\tFile copy = new File(fileName.getText());\r\n\t\t\tScanner fileIn = new Scanner(result.getText());\r\n\t\t\tPrintStream fileOut = new PrintStream(copy);\r\n\r\n\t\t\twhile (fileIn.hasNextLine()) {\r\n\t\t\t\tfileOut.print(fileIn.nextLine());\r\n\t\t\t}\r\n\r\n\t\t\tfileIn.close();\r\n\t\t\tfileOut.close();\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t}", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "public void save() {\n for (Workspace a : workspaces) {\n if (!a.isSearch()) {\n try {\n saveWorkspace(a);\n } catch (Exception e) {\n main.system.ExceptionMaster.printStackTrace(e);\n }\n }\n }\n }" ]
[ "0.7199185", "0.7060006", "0.65628505", "0.65413505", "0.6470965", "0.645587", "0.6279883", "0.6169731", "0.61633426", "0.6120277", "0.60985154", "0.60914826", "0.60875833", "0.6070882", "0.6049392", "0.6016105", "0.6004501", "0.5976163", "0.5973027", "0.5960905", "0.5955001", "0.59223235", "0.591675", "0.5888624", "0.5876672", "0.5869311", "0.5865501", "0.5819951", "0.58166647", "0.58143055", "0.5808964", "0.5790816", "0.57876396", "0.57667834", "0.5755412", "0.5745848", "0.5740672", "0.5731308", "0.5723561", "0.5723013", "0.57097137", "0.5698847", "0.56979126", "0.5692722", "0.56917036", "0.5689554", "0.56887865", "0.5683804", "0.568152", "0.5664085", "0.5651837", "0.5639863", "0.5637887", "0.56356436", "0.5631448", "0.56268984", "0.5622775", "0.5622124", "0.56206864", "0.5619999", "0.5617654", "0.5612876", "0.5603438", "0.5598384", "0.5597437", "0.5580351", "0.55793524", "0.55718863", "0.55690086", "0.5568019", "0.556522", "0.5540904", "0.5532459", "0.5522082", "0.5518236", "0.5507222", "0.54960424", "0.5489156", "0.5481525", "0.54810363", "0.54779965", "0.5476755", "0.5475784", "0.54727465", "0.5462654", "0.5460659", "0.545535", "0.54439646", "0.54407454", "0.5432464", "0.54145736", "0.54011947", "0.5398746", "0.5397761", "0.5397459", "0.53707695", "0.53620994", "0.5360692", "0.5354457", "0.53494644" ]
0.67005837
2
Determines a ZScore for the specific key's win rate compared to the overall win rate Test from:
public double getZScore(K keyToCheck) { V winRateDataForKey = this.winRateData.get(keyToCheck); double p1 = winRateDataForKey.getWinRate(); double n1 = winRateDataForKey.playedCount; double p2 = (this.totalWinCount - winRateDataForKey.winCount) / (this.totalPlayedCount - winRateDataForKey.playedCount); double n2 = this.totalPlayedCount - winRateDataForKey.playedCount; return StatisticsUtil.getZScore(p1, n1, p2, n2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double getBestScore();", "public int scoreSpec(){\n List<Player> players = state.getPlayers();\n int currentBonusScore = 0;\n int otherBonus = 0;\n for(int i = 0; i < players.size(); i++){\n if( i == state.getCurrentPlayerId()){\n currentBonusScore += bonusScore(players.get(i));\n }\n else{\n otherBonus += bonusScore(players.get(i));\n }\n }\n return currentBonusScore-otherBonus;\n }", "private static void testKWIK() {\n\t\tint turns = 100;\n\t\tdouble[] winRate = {0,0,0,0};\n\t\tfor (int i = 0; i < turns; i++) {\n\t\t\tdouble[] wins = testKWIKOnce();\n\t\t\tfor (int j = 0; j < wins.length; j++) winRate[j] += wins[j];\n\t\t}\n\t\tfor (int j = 0; j < winRate.length; j++) winRate[j] /= turns;\n\t\tSystem.out.println(\"KWIK scores\");\n\t\tSystem.out.println(Utils.stringArray(winRate, 4));\n\t}", "public int whoWin(){\r\n int winner = -1;\r\n \r\n int highest = 0;\r\n \r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(getPlayerPoints(player) > highest){\r\n highest = getPlayerPoints(player);\r\n winner = player.getID();\r\n }\r\n \r\n }\r\n \r\n return winner;\r\n }", "public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }", "Float getAutoScore();", "@Test\n public void testGetMyBestRank() {\n int result1 = this.scoreBoard.getMyBestRank(new Record(4, 5, \"@u1\", \"ST\"));\n assertEquals(1, result1);\n int result2 = this.scoreBoard.getMyBestRank(new Record(3, 15, \"@u3\", \"ST\"));\n assertEquals(3, result2);\n\n }", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "public int evaluateWinner() {\n int winner = -1; //-1 house, 0 tie, 1 player\n boolean playerBlackjack = false;\n\n //Player got winnable score\n if (playerScore <= 21) {\n\n //Dealer got a winnable score\n if (dealerScore <= 21) {\n\n //Dealer got blackjack\n if (dealerScore == 21) {\n //Player also got blackjack, tie\n if (playerScore == 21) {\n winner = 0;\n }\n //Player did not have blackjack, loses\n else {\n winner = -1;\n }\n }\n //Player got blackjack, but dealer did not\n else if (playerScore == 21) {\n playerBlackjack = true;\n winner = 1;\n }\n //Tie\n else if (dealerScore == playerScore) {\n winner = 0;\n }\n //Player scored higher than dealer, but did not get blackjack\n else if (playerScore > dealerScore) {\n winner = 1;\n }\n }\n //Dealer went over 21\n else {\n //If player got blackjack\n if (playerScore == 21) {\n playerBlackjack = true;\n }\n\n winner = 1;\n }\n }\n\n //House won\n if (winner == -1) {\n if (playerCash <= 0)\n restartGame();\n else\n return winner;\n }\n //Tie\n else if (winner == 0) {\n playerCash += playerBet;\n return winner;\n }\n //Player won\n else {\n if (playerBlackjack) {\n //Player won, give back original bet AND blackjack earnings\n playerCash += (playerBet + (playerBet * 1.5));\n } else {\n //Player won, give back bet AND earnings\n playerCash += (playerBet + playerBet);\n }\n\n return winner;\n }\n\n return winner;\n }", "float getScore();", "float getScore();", "public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }", "Float getScore();", "@Test\n\tpublic void testAddScoreAndGetWinner2() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\t\t\n\t\t//Julia realiza 46 disparos a distintos Crafts y destruye 46 Destroyer, 10 Cruiser y 5 Bomber\n\t\tfor (int i=0; i<46; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tcraftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Julia(PlayerFile):263\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\t//Raul realiza 45 disparos a distintos Crafts y destruye 10 Carrier, 30 Battleship y 5 Fighter\n\t\tfor (int i=0; i<45; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Carrier\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.EAST));\n\t\t}\n\t\t\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\t//Laura realiza 120 disparos a distintos Crafts y destruye 30 Battleship, 10 Cruiser y 5 Fighter\n\t\tfor (int i=0; i<120; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.EAST));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.SOUTH));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\t//Simon realiza 100 disparos a distintos Crafts y destruye 40 Bomber, 15 Destroyer y 75 Transport\n\t\tfor (int i=0; i<100; i++) {\n\t\t\thitScore.score(CellStatus.DESTROYED);\n\t\t\tif (i<40) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.NORTH));\n\t\t\tif (i<15) craftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.WEST));\n\t\t\tif (i<75) craftScore.score(CraftFactory.createCraft(\"aircraft.Transport\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Simon(PlayerFile):1995\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\tcompareRankings(SRANKING4, rankingsToString());\n\t}", "private void calcWinner(){\n //local class for finding ties\n class ScoreSorter implements Comparator<Player> {\n public int compare(Player p1, Player p2) {\n return p2.calcFinalScore() - p1.calcFinalScore();\n }\n }\n\n List<Player> winners = new ArrayList<Player>();\n int winningScore;\n\n // convert queue of players into List<Player> for determining winner(s)\n while (players.size() > 0) {\n winners.add(players.remove());\n } \n\n // scoreSorter's compare() should sort in descending order by calcFinalScore()\n // Arrays.sort(winnersPre, new scoreSorter()); // only works w/ normal arrays :(\n Collections.sort(winners, new ScoreSorter());\n\n // remove any players that don't have the winning score\n winningScore = winners.get(0).calcFinalScore();\n for (int i = winners.size()-1; i > 0; i--) { // remove non-ties starting from end, excluding 0\n if (winners.get(i).calcFinalScore() < winningScore) {\n winners.remove(i);\n }\n }\n\n // Announce winners\n boolean hideCalculatingWinnerPopUp = false;\n String winnersString = \"\";\n if (winners.size() > 1) {\n winnersString = \"There's a tie with \" + winners.get(0).calcFinalScore() + \" points. The following players tied: \";\n for (Player p : winners) {\n winnersString += p.getName() + \" \";\n }\n view.showPopUp(hideCalculatingWinnerPopUp, winnersString);\n } else {\n view.showPopUp(hideCalculatingWinnerPopUp, winners.get(0).getName() + \" wins with a score of \" + winners.get(0).calcFinalScore() + \" points! Clicking `ok` will end and close the game.\");\n }\n }", "public void testAltScoring() throws Exception {\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n // alt1: 0 0 200\n \n String[] alt1rankData = {\n \"1,team1,1,200\",\n \"2,team2,1,200\", // tie-breaker causes rank 2\n };\n \n scoreboardTest (2, runsData, alt1rankData, alt1);\n // alt2: 30 5 0\n String[] alt2rankData = {\n \"1,team1,1,45\", // 1 no@30 each + 3 min * 5\n \"2,team2,1,150\", // 5*30\n };\n \n scoreboardTest (2, runsData, alt2rankData, alt2);\n \n // alt3: 0 10 0\n String[] alt3rankData = {\n \"1,team1,1,30\", // 3 min * 10\n \"2,team2,1,300\", // 30 min * 10\n };\n \n scoreboardTest (2, runsData, alt3rankData, alt3);\n \n // alt4: 5 0 20\n String[] alt4rankData = {\n \"1,team2,1,20\", // base yes\n \"2,team1,1,25\", // base yes + 1 no\n };\n \n scoreboardTest (2, runsData, alt4rankData, alt4);\n\n }", "public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }", "public int getAwayScore();", "@Override\n\tprotected int calculateScore() {\n\t\treturn Math.abs(playerScore[0] - playerScore[1]);\n\t}", "public static double getChampionMatchResult(String matchDetails, String accountID, double wins) {\n try {\r\n JSONObject searchResultsObj = new JSONObject(matchDetails);\r\n JSONArray searchResultsItems = searchResultsObj.getJSONArray(\"participantIdentities\");\r\n\r\n for (int i = 0; i < searchResultsItems.length(); i++) {\r\n JSONObject resultItem = searchResultsItems.getJSONObject(i);\r\n\r\n if (resultItem.getJSONObject(\"player\").getString(\"accountId\").equals(accountID)) {\r\n int participantId = resultItem.getInt(\"participantId\"); //store the user's id\r\n\r\n JSONArray teams = searchResultsObj.getJSONArray(\"teams\"); //fetch array of game results\r\n\r\n if (teams.getJSONObject(0).getString(\"win\").equals(\"Win\") && participantId < 5) { //check for user as blue team winning\r\n wins++; //the user won, increment to keep track of how many wins total\r\n }\r\n else if (teams.getJSONObject(0).getString(\"win\").equals(\"Fail\") && participantId > 5) { //check for user as red team winning\r\n wins++; //the user won, increment to keep track of how many wins total\r\n }\r\n else {\r\n //do nothing, the user lost this game\r\n }\r\n break; //break, the user has been found\r\n }\r\n }\r\n return wins;\r\n } catch (JSONException e) {\r\n System.out.println(\"JSON CHAMPION MATCH RESULT EXCEPTION: \" + e);\r\n return -1;\r\n }\r\n }", "public void testScoreboardCaseTwo () throws Exception{\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\",\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 2 tests when all no runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n\n// Team 2 -- 30 <-- Team 2 is now winning with a lower score \n// Team 1 -- 63 (same database; different scoring method)\n \n// String [] rankData = {\n// \"1,team2,1,30\",\n// \"2,team1,1,63\",\n// };\n \n \n scoreboardTest (2, runsData, rankData);\n \n }", "@Override\r\n\tpublic int calculax2p(int score, boolean zerou) {\r\n\t\tif(score > getMaiorScore()) {\r\n\t\t\treturn score / 1000;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Test\r\n\tpublic final void testGetScore() {\r\n\t\tassertTrue(gameStatistics.getScore() == 18000);\r\n\t\tassertTrue(gameStatisticsLoss.getScore() == 9100);\r\n\t}", "public int zzu() {\n int zzu = super.zzu();\n if (this.zzcwX) {\n zzu += zzbyc.zzh(1, this.zzcwX);\n }\n if (this.score != 0) {\n zzu += zzbyc.zzL(2, this.score);\n }\n return (this.zzcwY == null || this.zzcwY.equals(\"\")) ? zzu : zzu + zzbyc.zzr(3, this.zzcwY);\n }", "@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }", "public int score(){\r\n\t\t//to be implemented: should return game score \r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tscore= frames.get(i).score();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn score + bonusGame;\r\n\t}", "public int getRoundScore() {\n return score;\n }", "@Test\n public void testRunScoringScenario() throws Exception\n {\n YahtzeeModel y1 = new YahtzeeModel();\n\n //Turn 1\n y1.getDiceCollection().setValues(1, 1, 3, 3, 3);\n assertEquals(2, y1.scoreOnes());\n //Turn 2\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y1.scoreTwos());\n //Turn 3\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y1.scoreThrees());\n //Turn 4\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreFours());\n //Turn 5\n y1.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y1.scoreFives());\n //Turn 6\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y1.scoreSixes());\n //3 of a kind\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y1.scoreThreeOfAKind());\n //4 of a kind\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y1.scoreFourOfAKind());\n //full house\n y1.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y1.scoreFullHouse());\n //small straight\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y1.scoreSmallStraight());\n //large straight\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreLargeStraight());\n //yahtzee\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(50, y1.scoreYahtzee());\n //chance\n y1.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y1.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y1.scoreBonus());\n\n //verify that the available scoring types has one entry for YAHTZEE since it was scored\n assertEquals(1, y1.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y1.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(151, y1.getScoreCard().getScore());\n\n\n //*** Game 2: 0 Bonus, 2 Yahtzee ***\n YahtzeeModel y2 = new YahtzeeModel();\n\n //Turn 1\n y2.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(50, y2.scoreYahtzee());\n //Turn 2\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y2.scoreTwos());\n //Turn 3\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y2.scoreThrees());\n //Turn 4\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreFours());\n //Turn 5\n y2.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y2.scoreFives());\n //Turn 6\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y2.scoreSixes());\n //3 of a kind\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y2.scoreThreeOfAKind());\n //4 of a kind\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y2.scoreFourOfAKind());\n //full house\n y2.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y2.scoreFullHouse());\n //small straight\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y2.scoreSmallStraight());\n //large straight\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreLargeStraight());\n //yahtzee\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(100, y2.scoreYahtzee());\n //chance\n y2.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y2.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y2.scoreBonus());\n\n //verify that the available scoring types has two entres...\n // one for YAHTZEE and one for ONES\n assertEquals(2, y2.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.ONES));\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(249, y2.getScoreCard().getScore());\n\n //*** Game 3: 1 Bonus, 0 Yahtzee ***\n YahtzeeModel y3 = new YahtzeeModel();\n\n //Turn 1\n y3.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(5, y3.scoreOnes());\n //Turn 2\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y3.scoreTwos());\n //Turn 3\n y3.getDiceCollection().setValues(3, 3, 2, 2, 3);\n assertEquals(9, y3.scoreThrees());\n //Turn 4\n y3.getDiceCollection().setValues(2, 4, 4, 4, 3);\n assertEquals(12, y3.scoreFours());\n //Turn 5\n y3.getDiceCollection().setValues(2, 5, 2, 2, 5);\n assertEquals(10, y3.scoreFives());\n //Turn 6\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y3.scoreSixes());\n //3 of a kind\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y3.scoreThreeOfAKind());\n //4 of a kind\n y3.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y3.scoreFourOfAKind());\n //full house\n y3.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y3.scoreFullHouse());\n //small straight\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y3.scoreSmallStraight());\n //large straight\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y3.scoreLargeStraight());\n //yahtzee\n y3.getDiceCollection().setValues(2, 1, 2, 2, 2);\n assertEquals(0, y3.scoreYahtzee());\n //chance\n y3.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y3.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(35, y3.scoreBonus());\n\n //verify that no scoring types remain\n assertEquals(0, y3.getScoreCard().getAvailableScoreTypes().size());\n\n //verify final score\n assertEquals(162, y3.getScoreCard().getScore());\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public int getScore() {\n\t\tint darkDisks = 0;\r\n\t\tint lightDisks = 0;\r\n\r\n\t\tfor(Character c : board){\r\n\t\t\tif(c == '1'){\r\n\t\t\t\tdarkDisks++;\r\n\t\t\t}\r\n\t\t\telse if(c == '2'){\r\n\t\t\t\tlightDisks++;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t//If dark wins\r\n\t\tif(darkDisks > lightDisks){\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\t//If light wins\r\n\t\telse if(darkDisks < lightDisks){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\t//For a tie\r\n\t\telse if(darkDisks == lightDisks){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t//Return 0 on a tie\r\n\t\treturn 0;\r\n\t}", "public int calculScore(Deck deck)\n {\n return 0;\n }", "public void testScoreboardCaseThree () throws Exception {\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (first Yes counts only Min.Pts)\n \"3,1,A,5,No\", // 20\n \"4,1,A,7,Yes\", // 20 (all runs count!)\n \"5,1,A,9,No\", // 20\n\n \"6,1,B,11,No\", // zero (not solved)\n \"7,1,B,13,No\", // zero (not solved)\n\n \"8,2,A,30,Yes\", // 30\n\n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 3 tests when all runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n \n// String [] rankData = {\n// \"1,team2,1,30\"\n// \"2,team1,1,83\",\n// };\n \n scoreboardTest (2, runsData, rankData);\n }", "@Test\n public void testScoreUpdate() {\n try {\n final BestEvalScore score = new BestEvalScore(\"thjtrfwaw\");\n double expected = 0;\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n final Evaluation eval = new Evaluation(2);\n eval.eval(0,1);\n eval.eval(1,1);\n\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(0,1);\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(1,1);\n eval.eval(1,1);\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to create instance!\", e);\n }\n\n\n }", "static int calculateScore(Card[] winnings) {\n int score = 0;\n for (Card card : winnings)\n if (card != null)\n score++;\n else\n break;\n return score;\n }", "void win() {\n String name = score.getName();\n if (Time.getSecondsPassed() < 1) {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / 1);\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + 1 + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n } else {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / Time.getSecondsPassed());\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + Time.getSecondsPassed() + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n }\n }", "@Test\r\n public void calculateScore() {\r\n board3.swapTiles(0,0,1,1);\r\n board3.getSlidingScoreBoard().setTime(2);\r\n board3.getSlidingScoreBoard().calculateScore();\r\n assertEquals(496, board3.getSlidingScoreBoard().getScore());\r\n }", "public void testScoreboardCaseFour () throws Exception {\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n\n \"1,1,A,1,No\", //20\n \"2,1,A,3,Yes\", //3 (first yes counts Minutes only)\n \"3,1,A,5,No\", //20\n \"4,1,A,7,Yes\", //20 \n \"5,1,A,9,No\", //20\n \n \"6,1,B,11,No\", //20 (all runs count)\n \"7,1,B,13,No\", //20 (all runs count)\n \n \"8,2,A,30,Yes\", //30\n \n \"9,2,B,35,No\", //20 (all runs count)\n \"10,2,B,40,No\", //20 (all runs count)\n \"11,2,B,45,No\", //20 (all runs count)\n \"12,2,B,50,No\", //20 (all runs count)\n \"13,2,B,55,No\", //20 (all runs count)\n\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 4 tests when all runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n \n// Team 1 -- 123 <-- Team 1 is winning again\n// Team 2 -- 130\n \n// String [] rankData = {\n// \"1,team1,1,123\",\n// \"2,team2,1,130\"\n// };\n \n scoreboardTest (2, runsData, rankData);\n }", "public void testScoreboardCaseOne () throws Exception {\n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20 (a No before first yes)\n \"2,1,A,3,Yes\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"3,1,A,5,No\", // zero -- after Yes\n \"4,1,A,7,Yes\", // zero -- after Yes\n \"5,1,A,9,No\", // zero -- after Yes\n \"6,1,B,11,No\", // zero -- not solved\n \"7,1,B,13,No\", // zero -- not solved\n \"8,2,A,30,Yes\", // 30 (minute points; no Run points on first Yes)\n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n scoreboardTest (2, runsData, rankData);\n }", "public static void updateWinRate(MongoDatabaseFactory mongoDatabaseFactory) {\n mongoDatabaseFactory.getMongoCollection(RankedStatsDaoImpl.COLLECTION_NAME).get().aggregate(Arrays.asList(\n new BasicDBObject(\"$unwind\", \"$item.champions\"),\n new BasicDBObject(\"$group\",\n new Document(\"_id\", new Document(\"championId\", \"$item.champions.id\").append(\"played\", \"$item.champions.stats.totalSessionsPlayed\"))\n .append(\"played\", new Document(\"$sum\", \"$item.champions.stats.totalSessionsPlayed\"))\n .append(\"won\", new Document(\"$sum\", \"$item.champions.stats.totalSessionsWon\"))\n .append(\"total\", new Document(\"$sum\", 1))\n ),\n new BasicDBObject(\"$project\", new Document(\"result\", new Document(\"$divide\", new String[]{\"$won\", \"$played\"})).append(\"total\", 1)),\n new BasicDBObject(\"$sort\", new Document(\"_id\", 1)),\n new BasicDBObject(\"$out\", COLLECTION_NAME)\n )).iterator();\n }", "public Double zscore(String key,String member){\n Jedis jedis = null;\n try{\n jedis = getJedis();\n return jedis.zscore(key,member);\n }catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n }finally {\n if(jedis!=null)\n jedis.close();\n }\n return null;\n }", "public abstract float getScore();", "private double eval(final GameStateModule game) {\n int player = game.getActivePlayer();\n int ourScore = 6*(threeInCol(game, player) + threeInRow(game, player) + threeInPos(game, player) + threeInNeg(game, player))\n + 3*(twoInCol(game, player) + twoInRow(game, player) + twoInPos(game, player) + twoInNeg(game, player));\n int theirScore = 7*(threeInCol(game, 2/player) + threeInRow(game, 2/player) + threeInPos(game, 2/player) + threeInNeg(game, 2/player))\n + 4*(twoInCol(game, 2/player) + twoInRow(game, 2/player) + twoInPos(game, 2/player) + twoInNeg(game, 2/player));\n return ourScore - theirScore;\n }", "int getScore();", "public int getPlayerScore();", "public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}", "public void testWithScoreFile(String testFile, String scoreFile) {\n/* 1108 */ try (BufferedReader in = FileUtils.smartReader(scoreFile)) {\n/* 1109 */ List<RankList> test = readInput(testFile);\n/* 1110 */ String content = \"\";\n/* */ \n/* 1112 */ List<Double> scores = new ArrayList<>();\n/* 1113 */ while ((content = in.readLine()) != null) {\n/* */ \n/* 1115 */ content = content.trim();\n/* 1116 */ if (content.compareTo(\"\") == 0)\n/* */ continue; \n/* 1118 */ scores.add(Double.valueOf(Double.parseDouble(content)));\n/* */ } \n/* 1120 */ in.close();\n/* 1121 */ int k = 0;\n/* 1122 */ for (int i = 0; i < test.size(); i++) {\n/* */ \n/* 1124 */ RankList rl = test.get(i);\n/* 1125 */ double[] s = new double[rl.size()];\n/* 1126 */ for (int j = 0; j < rl.size(); j++)\n/* 1127 */ s[j] = ((Double)scores.get(k++)).doubleValue(); \n/* 1128 */ rl = new RankList(rl, MergeSorter.sort(s, false));\n/* 1129 */ test.set(i, rl);\n/* */ } \n/* */ \n/* 1132 */ double rankScore = evaluate(null, test);\n/* 1133 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* 1134 */ } catch (IOException e) {\n/* 1135 */ throw RankLibError.create(e);\n/* */ } \n/* */ }", "float getWinLossRatio();", "public int winner() {\n if(humanPlayerHits == 17) {\n return 1;\n }\n if(computerPlayerHits == 17){\n return 2;\n }\n return 0;\n }", "@Test\r\n public void testCalcScore() {\r\n \r\n //initialize variables\r\n int year = 0;\r\n int wheat = 0;\r\n int population = 0;\r\n int acres = 0;\r\n double expResult = 0;\r\n double result = 0;\r\n \r\n //test one - valid test\r\n System.out.println(\"Test 01\");\r\n year = 1;\r\n wheat = 100;\r\n population = 50;\r\n acres = 50;\r\n expResult = 1200.0;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test two - invalid year\r\n System.out.println(\"Test 02\");\r\n year = 0;\r\n wheat = 100;\r\n population = 50;\r\n acres = 50;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test three - invalid wheat\r\n System.out.println(\"Test 03\");\r\n year = 3;\r\n wheat = -350;\r\n population = 100;\r\n acres = 5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test four - invalid acres\r\n System.out.println(\"Test 04\");\r\n year = 1;\r\n wheat = 25;\r\n population = 5;\r\n acres = -5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test five - invalid population\r\n System.out.println(\"Test 05\");\r\n year = 2;\r\n wheat = 35;\r\n population = -50;\r\n acres = 3;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test six - multiple invalids\r\n System.out.println(\"Test 06\");\r\n year = -1;\r\n wheat = -100;\r\n population = -5;\r\n acres = -1;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test seven - single invalid, positive result\r\n System.out.println(\"Test 07\");\r\n year = 2;\r\n wheat = 100;\r\n population = -50;\r\n acres = 5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public int getWorstScore()\n {\n return -1;\n }", "boolean isNearMatch(double score);", "public ConScores getConScores() {\n\t\tint inheritedLevel = getLevel(subNetGenes, globalLevelFile,\n\t\t\t\tinheritedLocalLevelFile);\n\t\t// Now we can calculate the zscores on that inheritedLocalLevelFile.\n\n\t\tZScore zscoreInherited = new ZScore(subNetFile,\n\t\t\t\tinheritedLocalLevelFile, penaltyType);\n\t\tScores scoreInherited = zscoreInherited.getZScore(totalGraphs,\n\t\t\t\tpenaltyType);\n\n\t\t/* local the global level */\n\t\tHPNUlilities.createLevelFile(codePath, subNetFile, inheritedLevel,\n\t\t\t\tcalculateLocalLevelFile, penaltyType, partitionSize);\n\n\t\t/* get the global ZScore and penalty */\n\n\t\tZScore zscoreCalculated = new ZScore(subNetFile,\n\t\t\t\tcalculateLocalLevelFile, penaltyType);\n\t\tScores scoreCalculated = zscoreCalculated.getZScore(totalGraphs,\n\t\t\t\tpenaltyType);\n\n\t\tPrintWriter out = null;\n\t\ttry {\n\t\t\tout = new PrintWriter(new FileWriter(outFile));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tConScores score = new ConScores(scoreInherited.getZScore(),\n\t\t\t\tscoreInherited.getPenalty(), scoreCalculated.getZScore(),\n\t\t\t\tscoreCalculated.getPenalty());\n\n\t\tout.println(\"zScoreInherited: \" + score.zScoreInherited\n\t\t\t\t+ \" penaltyInherited: \" + score.penaltyInherited\n\t\t\t\t+ \" zScorecalculated: \" + score.zScorecalculated\n\t\t\t\t+ \" penaltyCalculated: \" + score.penaltyCalculated);\n\n\t\tout.close();\n\n\t\treturn score;\n\n\t}", "public int getScore()\n\t{\n\t\tif (containsAce() && score < 11)\n\t\t\treturn score + 10;\n\t\t\t\n\t\treturn score;\n\t}", "@Test\n public void testCalculateRoundNumber() {\n // key - player size, value - expected value\n Map<Integer, Integer> roundNumDependsOnPlayerNum = new HashMap<>();\n roundNumDependsOnPlayerNum.put(0, 0);\n roundNumDependsOnPlayerNum.put(1, 0);\n roundNumDependsOnPlayerNum.put(2, 1);\n roundNumDependsOnPlayerNum.put(3, 3);\n roundNumDependsOnPlayerNum.put(7, 3);\n roundNumDependsOnPlayerNum.put(8, 4);\n roundNumDependsOnPlayerNum.put(20, 4);\n roundNumDependsOnPlayerNum.put(21, 5);\n for(Map.Entry<Integer, Integer> entry : roundNumDependsOnPlayerNum.entrySet()) {\n final int testData = entry.getKey();\n final int expected = entry.getValue();\n final int actual = mTournament.calculateRoundsNumber(testData);\n assertEquals(expected, actual);\n }\n// for (Iterator iterator = roundNumDependsOnPlayerNum.keySet().iterator(); iterator.hasNext(); ) {\n// final int testData = (int) iterator.next();\n// final int expected = (int) roundNumDependsOnPlayerNum.get(testData);\n// final int actual = mTournament.calculateRoundsNumber(testData);\n// assertEquals(expected, actual);\n// }\n }", "public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }", "private int determineWinning(GamePlayerInterface player, GamePlayerInterface dealer)\n {\n \n int playerValue = player.getTotalCardsValue();\n int dealerValue = dealer.getTotalCardsValue();\n int result = 0;\n \n if(dealerValue > playerValue)\n {\n \t view.print(\"Dealer Wins\");\n \t view.printLine();\n \t result = 1;\n }\n \n else if(dealerValue < playerValue)\n {\n \t view.print(\"Player Wins\");\n \t view.printLine();\n \t result = 2;\n }\n \n else{\n \t view.print(\"Match Draw!\");\n \t view.printLine();\n }\n \n return result;\n }", "public int getHeartRateScore() {\r\n heartRateModelList = SqlHelper.instance().getOneDayHeartRateInfo(MyApplication.account, TimeUtil.getCurrentDate());\r\n int score = 0;\r\n int count = 0;\r\n int todayHeartValueSum = 0;\r\n for (HeartRateModel heartRateModel : heartRateModelList) {\r\n if (heartRateModel.isRunning == true) {\r\n continue;\r\n }\r\n if (heartRateModel.currentRate >= 50 && heartRateModel.currentRate < 100) {\r\n todayHeartValueSum += 100;\r\n } else if ((heartRateModel.currentRate >= 100 && heartRateModel.currentRate < 120)) {\r\n todayHeartValueSum += 60;\r\n } else if ((heartRateModel.currentRate >= 40 && heartRateModel.currentRate < 50) || (heartRateModel.currentRate >= 120 && heartRateModel.currentRate < 140)) {\r\n todayHeartValueSum += 40;\r\n } else if (heartRateModel.currentRate >= 140 || heartRateModel.currentRate < 40) {\r\n todayHeartValueSum += 20;\r\n }\r\n count++;\r\n }\r\n if (count != 0) {\r\n score = todayHeartValueSum / count;\r\n }\r\n return score;\r\n }", "private double evaluate() {\n // check for draws first, most lickely\n if (board.gameState() == MNKGameState.DRAW) return 0;\n else if (board.gameState() == MY_WIN) return 2 * M * N; // 2 times max depth\n else if (board.gameState() == ENEMY_WIN) return -2 * M * N;\n else {\n evaluated++;\n // keep the heuristic evaluation between 1 and -1\n return board.value();\n }\n }", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "public int getScore() {\r\n\t\treturn deck.getScore() + extraVictory;\r\n\t}", "public int trickWinner(){\n Card.NUMBER one = player1Play.getValue();\n Card.NUMBER two = player2Play.getValue();\n Card.NUMBER three = player3Play.getValue();\n Card.NUMBER four = player4Play.getValue();\n Card.SUIT oneSuit = player1Play.getSuit();\n Card.SUIT twoSuit = player2Play.getSuit();\n Card.SUIT threeSuit = player3Play.getSuit();\n Card.SUIT fourSuit = player4Play.getSuit();\n int[] value = new int[4];\n value[0] = Card.getValsVal(one, oneSuit, currentTrumpSuit);\n value[1] = Card.getValsVal(two, twoSuit, currentTrumpSuit);\n value[2] = Card.getValsVal(three, threeSuit, currentTrumpSuit);\n value[3] = Card.getValsVal(four, fourSuit, currentTrumpSuit);\n if(player1Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[0] += 10;\n }\n if(player2Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[1] += 10;\n }\n if(player3Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[2] += 10;\n }\n if(player4Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[3] += 10;\n }\n if(player1Play.getSuit() == currentTrumpSuit || value[0] == 7){\n value[0] += 20;\n }\n if(player2Play.getSuit() == currentTrumpSuit || value[1] == 7){\n value[1] += 20;\n }\n if(player3Play.getSuit() == currentTrumpSuit || value[2] == 7){\n value[2] += 20;\n }\n if(player4Play.getSuit() == currentTrumpSuit || value[3] == 7){\n value[3] += 20;\n }\n int winner = 0;\n int winVal = 0;\n for(int i = 0; i < 4; i++){\n if(value[i] > winVal){\n winVal = value[i];\n winner = i;\n }\n }\n return winner;\n }", "@Override\r\n\tpublic double evaluate(int[][] board, int currentPlayer) {\n\t\r\n\tdouble score;\t\r\n\tfinal int RANDOM_WEIGHT=5; // weight factor\r\n\t\r\n\tMaximumDisksEvaluation ob = new MaximumDisksEvaluation();\r\n\tCornerEvaluation ob1 = new CornerEvaluation();\r\n\tCornerClosenessEvaluation ob2 = new CornerClosenessEvaluation();\r\n\tFrontierEvaluation ob3 = new FrontierEvaluation();\r\n\tStabilityEvaluation ob4 = new StabilityEvaluation();\r\n\tPositionalEvaluation ob5 = new PositionalEvaluation();\r\n\tMobilityEvaluation ob6 = new MobilityEvaluation();\r\n\t\r\n\tscore = ob.evaluate(board, currentPlayer) + ob1.evaluate(board, currentPlayer) + ob2.evaluate(board, currentPlayer) + ob6.evaluate(board, currentPlayer) + ob3.evaluate(board, currentPlayer) + ob5.evaluate(board, currentPlayer) ; \r\n\t\r\n\treturn score;\r\n\t\r\n\t}", "int score();", "int score();", "int getScoreValue();", "public void test(String testFile) {\n/* 935 */ List<RankList> test = readInput(testFile);\n/* 936 */ double rankScore = evaluate(null, test);\n/* 937 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ }", "public static Map<Integer, Double> getWinRate(MongoDatabaseFactory mongoDatabaseFactory, int championId) {\n Map<Integer, Double> map = new HashMap<>();\n FindIterable<Document> result = mongoDatabaseFactory.getMongoCollection(COLLECTION_NAME).get().find(new Document(\"_id.championId\", championId));\n for (Document o : result) {\n Integer index = ((Document) o.get(\"_id\")).getInteger(\"played\");\n map.put(index, Math.floor(1000 * o.getDouble(\"result\")) / 10);\n }\n return map;\n }", "public int diffScore() {\n\t\treturn getWin() - getLose();\n\t}", "static void scoreSkunkRoll(SkunkType type, int kitty, Player activePlayer) { //refactored: Extract Method to remove duplicate scoring code\n\t\tint chipChange = 0;\n\t\tswitch(type) {\n\t\t\tcase SINGLE_SKUNK:\n\t\t\t\tchipChange = 1;\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE_SKUNK:\n\t\t\t\tchipChange = 4;\n\t\t\t\tbreak;\n\t\t\tcase DEUCE_SKUNK:\n\t\t\t\tchipChange = 2;\n\t\t\t\tbreak;\n\t\t}\n\t\tkitty += chipChange;\n\t\tactivePlayer.setNumberChips(activePlayer.getNumberChips() - chipChange);\n\t\tactivePlayer.setTurnScore(0);\n\t\tif(type == SkunkType.DOUBLE_SKUNK) {\n\t\t\tactivePlayer.setRoundScore(0);\n\t\t}\n\t}", "@Test\n public void testGetScore() {\n assertEquals(250, board3by3.getScore());\n }", "public int getHomeScore();", "public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}", "static private int _score(\n UIXRenderingContext context,\n String lafName,\n LookAndFeelScorer scorer\n )\n {\n Score score = scorer.scoreLookAndFeel(context, lafName);\n\n // First, check for any NO_MATCH scores.\n int nameScore = score.getNameScore();\n int agentTypeScore = score.getAgentTypeScore();\n int agentApplicationScore = score.getAgentApplicationScore();\n int agentVersionScore = score.getAgentVersionScore();\n int agentOSScore = score.getAgentOSScore();\n int discriminantScore = score.getDiscriminantScore();\n\n // If any of the component scores are NO_MATCH, then we\n // don't have a match - return NO_MATCH.\n if ((nameScore == Score.NO_MATCH) ||\n (agentTypeScore == Score.NO_MATCH) ||\n (agentApplicationScore == Score.NO_MATCH) ||\n (agentVersionScore == Score.NO_MATCH) ||\n (agentOSScore == Score.NO_MATCH) ||\n (discriminantScore == Score.NO_MATCH))\n {\n return Score.NO_MATCH;\n }\n\n return (nameScore +\n agentTypeScore +\n agentApplicationScore +\n agentVersionScore +\n agentOSScore +\n discriminantScore);\n }", "public void ss(){\n for (int c=0; c < league.length;c++) {\r\n for (int t=c+1;t<league.length;t++) {\r\n score = league[c].scoregenerator();\r\n secondscore = league[t].scoregenerator();\r\n league[c].pointsfor(score);\r\n league[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n league[c].wins();\r\n league[t].losses();\r\n }\r\n else if (score == secondscore){\r\n league[c].ties();\r\n league[t].ties();\r\n }\r\n else {\r\n league[t].wins();\r\n league[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFC.length;c++) {\r\n for (int t=c+1;t<AFC.length;t++) {\r\n score = AFC[c].scoregenerator();\r\n secondscore = AFC[t].scoregenerator();\r\n AFC[c].pointsfor(score);\r\n AFC[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFC[c].wins();\r\n AFC[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFC[c].ties();\r\n AFC[t].ties();\r\n }\r\n else {\r\n AFC[t].wins();\r\n AFC[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFC.length;c++) {\r\n for (int t=c+1;t<NFC.length;t++) {\r\n score = NFC[c].scoregenerator();\r\n secondscore = NFC[t].scoregenerator();\r\n NFC[c].pointsfor(score);\r\n NFC[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFC[c].wins();\r\n NFC[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFC[c].ties();\r\n NFC[t].ties();\r\n }\r\n else {\r\n NFC[t].wins();\r\n NFC[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0;c<AFCeast.length;c++) {\r\n for (int t=c+1;t<AFCeast.length;t++) {\r\n score = AFCeast[c].scoregenerator();\r\n secondscore = AFCeast[t].scoregenerator();\r\n AFCeast[c].pointsfor(score);\r\n AFCeast[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCeast[c].wins();\r\n AFCeast[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCeast[c].ties();\r\n AFCeast[t].ties();\r\n }\r\n else {\r\n AFCeast[t].wins();\r\n AFCeast[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCnorth.length;c++) {\r\n for (int t=c+1;t<AFCnorth.length;t++) {\r\n score = AFCnorth[c].scoregenerator();\r\n secondscore = AFCnorth[t].scoregenerator();\r\n AFCnorth[c].pointsfor(score);\r\n AFCnorth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCnorth[c].wins();\r\n AFCnorth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCnorth[c].ties();\r\n AFCnorth[t].ties();\r\n }\r\n else {\r\n AFCnorth[t].wins();\r\n AFCnorth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCsouth.length;c++) {\r\n for (int t=c+1;t<AFCsouth.length;t++) {\r\n score = AFCsouth[c].scoregenerator();\r\n secondscore = AFCsouth[t].scoregenerator();\r\n AFCsouth[c].pointsfor(score);\r\n AFCsouth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCsouth[c].wins();\r\n AFCsouth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCsouth[c].ties();\r\n AFCsouth[t].ties();\r\n }\r\n else {\r\n AFCsouth[t].wins();\r\n AFCsouth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCwest.length;c++) {\r\n for (int t=c+1;t<AFCwest.length;t++) {\r\n score = AFCwest[c].scoregenerator();\r\n secondscore = AFCwest[t].scoregenerator();\r\n AFCwest[c].pointsfor(score);\r\n AFCwest[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCwest[c].wins();\r\n AFCwest[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCwest[c].ties();\r\n AFCwest[t].ties();\r\n }\r\n else {\r\n AFCwest[t].wins();\r\n AFCwest[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCeast.length;c++) {\r\n for (int t=c+1;t<NFCeast.length;t++) {\r\n score = NFCeast[c].scoregenerator();\r\n secondscore = NFCeast[t].scoregenerator();\r\n NFCeast[c].pointsfor(score);\r\n NFCeast[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCeast[c].wins();\r\n NFCeast[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCeast[c].ties();\r\n NFCeast[t].ties();\r\n }\r\n else {\r\n NFCeast[t].wins();\r\n NFCeast[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCnorth.length;c++) {\r\n for (int t=c+1;t<NFCnorth.length;t++) {\r\n score = NFCnorth[c].scoregenerator();\r\n secondscore = NFCnorth[t].scoregenerator();\r\n NFCnorth[c].pointsfor(score);\r\n NFCnorth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCnorth[c].wins();\r\n NFCnorth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCnorth[c].ties();\r\n NFCnorth[t].ties();\r\n }\r\n else {\r\n NFCnorth[t].wins();\r\n NFCnorth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCsouth.length;c++) {\r\n for (int t=c+1;t<NFCsouth.length;t++) {\r\n score = NFCsouth[c].scoregenerator();\r\n secondscore = NFCsouth[t].scoregenerator();\r\n NFCsouth[c].pointsfor(score);\r\n NFCsouth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCsouth[c].wins();\r\n NFCsouth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCsouth[c].ties();\r\n NFCsouth[t].ties();\r\n }\r\n else {\r\n NFCsouth[t].wins();\r\n NFCsouth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCwest.length;c++) {\r\n for (int t=c+1;t<NFCwest.length;t++) {\r\n score = NFCwest[c].scoregenerator();\r\n secondscore = NFCwest[t].scoregenerator();\r\n NFCwest[c].pointsfor(score);\r\n NFCwest[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCwest[c].wins();\r\n NFCwest[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCwest[c].ties();\r\n NFCwest[t].ties();\r\n }\r\n else {\r\n NFCwest[t].wins();\r\n NFCwest[c].losses();\r\n }\r\n } \r\n }\r\n\r\n for (int c=0;c<league.length;c++){\r\n System.out.println(league[c]);\r\n }\r\n System.out.println(\"...\");\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n {}\r\n System.out.println(\"\\n\" + \"Now let the playoffs begin!\" + \"\\n\");\r\n\r\n for (int y=0;y<4;y++){ // These next groups of code are sorting each division, and each conference based on wins\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCeast[a].displaywins() > AFCeast[p].displaywins()){\r\n Temp = AFCeast[p];\r\n AFCeast[p] = AFCeast[a];\r\n AFCeast[a] = Temp;\r\n }\r\n else if (AFCeast[a].displaywins() == AFCeast[p].displaywins() && AFCeast[a].displaypf() > AFCeast[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n // System.out.println(AFCeast[0]);\r\n\r\n afcplayoff[0] = AFCeast[0];\r\n // System.out.println(afcplayoff[0]);\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCnorth[a].displaywins() > AFCnorth[p].displaywins()){\r\n Temp = AFCnorth[p];\r\n AFCnorth[p] = AFCnorth[a];\r\n AFCnorth[a] = Temp;\r\n }\r\n else if (AFCnorth[a].displaywins() == AFCnorth[p].displaywins() && AFCnorth[a].displaypf() > AFCnorth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[1] = AFCnorth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCsouth[a].displaywins() > AFCsouth[p].displaywins()){\r\n Temp = AFCsouth[p];\r\n AFCsouth[p] = AFCsouth[a];\r\n AFCsouth[a] = Temp;\r\n }\r\n else if (AFCsouth[a].displaywins() == AFCsouth[p].displaywins() && AFCsouth[a].displaypf() > AFCsouth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[2] = AFCsouth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCwest[a].displaywins() > AFCwest[p].displaywins()){\r\n Temp = AFCwest[p];\r\n AFCwest[p] = AFCwest[a];\r\n AFCwest[a] = Temp;\r\n }\r\n else if (AFCwest[a].displaywins() == AFCwest[p].displaywins() && AFCwest[a].displaypf() > AFCwest[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[3] = AFCwest[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCeast[a].displaywins() > NFCeast[p].displaywins()){\r\n Temp = NFCeast[p];\r\n NFCeast[p] = NFCeast[a];\r\n NFCeast[a] = Temp;\r\n }\r\n else if (NFCeast[a].displaywins() == NFCeast[p].displaywins() && NFCeast[a].displaypf() > NFCeast[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[0] = NFCeast[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCnorth[a].displaywins() > NFCnorth[p].displaywins()){\r\n Temp = NFCnorth[p];\r\n NFCnorth[p] = NFCnorth[a];\r\n NFCnorth[a] = Temp;\r\n }\r\n else if (NFCnorth[a].displaywins() == NFCnorth[p].displaywins() && NFCnorth[a].displaypf() > NFCnorth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[1] = NFCnorth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCsouth[a].displaywins() > NFCsouth[p].displaywins()){\r\n Temp = NFCsouth[p];\r\n NFCsouth[p] = NFCsouth[a];\r\n NFCsouth[a] = Temp;\r\n }\r\n else if (NFCsouth[a].displaywins() == NFCsouth[p].displaywins() && NFCsouth[a].displaypf() > NFCsouth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[2] = NFCsouth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCwest[a].displaywins() > NFCwest[p].displaywins()){\r\n Temp = NFCwest[p];\r\n NFCwest[p] = NFCwest[a];\r\n NFCwest[a] = Temp;\r\n }\r\n else if (NFCwest[a].displaywins() == NFCwest[p].displaywins() && NFCwest[a].displaypf() > NFCwest[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[3] = NFCwest[0];\r\n for (int y=0;y<16;y++){\r\n for (int p=0;p<15;p++) {\r\n int a = p+1;\r\n if (AFC[a].displaywins() > AFC[p].displaywins()){\r\n Temp = AFC[p];\r\n AFC[p] = AFC[a];\r\n AFC[a] = Temp;\r\n }\r\n else if (AFC[a].displaywins() == AFC[p].displaywins() && AFC[a].displaypf() > AFC[p].displaypf()){\r\n Temp = AFC[p];\r\n AFC[p] = AFC[a];\r\n AFC[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int y=0;y<16;y++){\r\n for (int p=0;p<15;p++) {\r\n int a = p+1;\r\n if (NFC[a].displaywins() > NFC[p].displaywins()){\r\n Temp = NFC[p];\r\n NFC[p] = NFC[a];\r\n NFC[a] = Temp;\r\n }\r\n else if (NFC[a].displaywins() == NFC[p].displaywins() && NFC[a].displaypf() > NFC[p].displaypf()){\r\n Temp = NFC[p];\r\n NFC[p] = NFC[a];\r\n NFC[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n int maxw=0;\r\n\r\n for (int x=0;x<AFC.length;x++){\r\n\r\n if ((AFC[x].displaywins() > maxw) && \r\n (AFC[x].getName() != afcplayoff[0].getName()) && \r\n (AFC[x].getName() != afcplayoff[1].getName()) && \r\n (AFC[x].getName() != afcplayoff[2].getName()) && \r\n (AFC[x].getName() != afcplayoff[3].getName()) && \r\n (AFC[x].getName() != afcplayoff[4].getName()) && \r\n (AFC[x].getName() != afcplayoff[5].getName())){\r\n maxw = AFC[x].displaywins();\r\n afcplayoff[4] = AFC[x]; \r\n }\r\n\r\n }\r\n\r\n maxw=0;\r\n for (int x=0;x<AFC.length;x++){\r\n\r\n if (AFC[x].displaywins() > maxw && \r\n AFC[x].getName() != afcplayoff[0].getName() && \r\n AFC[x].getName() != afcplayoff[1].getName() && \r\n AFC[x].getName() != afcplayoff[2].getName() && \r\n AFC[x].getName() != afcplayoff[3].getName() && \r\n AFC[x].getName() != afcplayoff[4].getName() && \r\n AFC[x].getName() != afcplayoff[5].getName()){\r\n maxw = AFC[x].displaywins();\r\n afcplayoff[5] = AFC[x]; \r\n }\r\n }\r\n\r\n maxw=0;\r\n for (int x=0;x<NFC.length;x++){\r\n if (NFC[x].displaywins() > maxw && \r\n NFC[x].getName() != nfcplayoff[0].getName() && \r\n NFC[x].getName() != nfcplayoff[1].getName() && \r\n NFC[x].getName() != nfcplayoff[2].getName() && \r\n NFC[x].getName() != nfcplayoff[3].getName() && \r\n NFC[x].getName() != nfcplayoff[4].getName() && \r\n NFC[x].getName() != nfcplayoff[5].getName()){\r\n maxw = NFC[x].displaywins();\r\n nfcplayoff[4] = NFC[x]; \r\n }\r\n }\r\n maxw=0;\r\n for (int x=0;x<NFC.length;x++){\r\n\r\n if (NFC[x].displaywins() > maxw && \r\n NFC[x].getName() != nfcplayoff[0].getName() && \r\n NFC[x].getName() != nfcplayoff[1].getName() && \r\n NFC[x].getName() != nfcplayoff[2].getName() && \r\n NFC[x].getName() != nfcplayoff[3].getName() && \r\n NFC[x].getName() != nfcplayoff[4].getName() && \r\n NFC[x].getName() != nfcplayoff[5].getName()){\r\n maxw = NFC[x].displaywins();\r\n nfcplayoff[5] = NFC[x]; \r\n }\r\n }\r\n\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (afcplayoff[a].displaywins() > afcplayoff[p].displaywins()){\r\n Temp = afcplayoff[p];\r\n afcplayoff[p] = afcplayoff[a];\r\n afcplayoff[a] = Temp;\r\n }\r\n else if (afcplayoff[a].displaywins() == afcplayoff[p].displaywins() && afcplayoff[a].displaypf() > afcplayoff[p].displaypf()){\r\n Temp = afcplayoff[p];\r\n afcplayoff[p] = afcplayoff[a];\r\n afcplayoff[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int c=0;c<afcplayoff.length;c++){ // Testing to see if users team made the playoffs.\r\n if(YourTeam.getName().equals(afcplayoff[c].getName()))\r\n afcplayofft = true;\r\n }\r\n\r\n for (int y=0;y<4;y++){\r\n for (int r=0;r<3;r++) {\r\n int c = r+1;\r\n if (nfcplayoff[c].displaywins() > nfcplayoff[r].displaywins()){\r\n Temp = nfcplayoff[r];\r\n nfcplayoff[r] = nfcplayoff[c];\r\n nfcplayoff[c] = Temp;\r\n }\r\n else if (nfcplayoff[c].displaywins() == nfcplayoff[r].displaywins() && nfcplayoff[c].displaypf() > nfcplayoff[r].displaypf()){\r\n Temp = nfcplayoff[r];\r\n nfcplayoff[r] = nfcplayoff[c];\r\n nfcplayoff[c] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int c=0;c<nfcplayoff.length;c++){\r\n if(YourTeam.getName().equals(nfcplayoff[c].getName()))\r\n nfcplayofft = true;\r\n }\r\n // This shows how the playoffs will look like to the user\r\n System.out.println(\"...\" + \"\\n\" + \"Based on the regular season, here is what the first round of playoffs will look like:\" + \"\\n\");\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n {}\r\n System.out.println(afcplayoff[0].getName() + \" got a bye in the first round of the playoffs for placing first in the afc.\");\r\n System.out.println(afcplayoff[1].getName() + \" also got a bye in the first round of the playoffs for placing second in the afc.\" + \"\\n\");\r\n System.out.println(nfcplayoff[0].getName() + \" got a bye in the first round of the playoffs for placing first in the nfc.\");\r\n System.out.println(nfcplayoff[1].getName() + \" also got a bye in the first round of the playoffs for placing second in the nfc.\" + \"\\n\");\r\n\r\n System.out.println(afcplayoff[2].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves on to play the \" + afcplayoff[0].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(afcplayoff[5].getName() + \"\\n\");\r\n\r\n System.out.println(afcplayoff[3].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ afcplayoff[1].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(afcplayoff[4].getName() + \"\\n\");\r\n\r\n System.out.println(nfcplayoff[2].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ nfcplayoff[0].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(nfcplayoff[5].getName() + \"\\n\");\r\n\r\n System.out.println(nfcplayoff[3].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ nfcplayoff[1].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(nfcplayoff[4].getName() + \"\\n\");\r\n\r\n System.out.println(\"...\"+ \"\\n\");\r\n\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n\r\n {}\r\n }", "public static int[] mucScore(LeanDocument key, LeanDocument response)\n{\n // System.out.println(\"==========================================================\");\n // System.out.println(\"Key:\\n\"+key.toStringNoSing()+\"\\n*************************\\nResponse:\\n\"+response.toStringNoSing());\n\n Iterator<TreeMap<Integer, Integer>> goldChains = key.chainIterator();\n // double mucRecall = 0.0;\n int mucRecallNom = 0;\n int mucRecallDenom = 0;\n while (goldChains.hasNext()) {\n TreeMap<Integer, Integer> keyChain = goldChains.next();\n if (keyChain.size() > 1) {\n int numInt = numIntersect(key, keyChain, response);\n\n // int numMatched = getNumMatched(key, keyChain);\n // if(numMatched>0){\n // mucRecallNom += numMatched-numInt;\n mucRecallNom += (keyChain.size() - numInt);\n // mucRecallDenom += numMatched-1;\n mucRecallDenom += keyChain.size() - 1;\n\n // System.out.println(keyChain+\"\\n\"+(keyChain.size() - numInt)+\"/\"+(keyChain.size()-1));\n // }\n }\n }\n int[] result = { mucRecallNom, mucRecallDenom };\n\n return result;\n}", "private String calculateScore(DiceModel Player1, DiceModel Player2) {\n\t\tint p1d1 = Player1.getDie1();\n\t\tint p1d2 = Player1.getDie2();\n\t\tint p1d3 = Player1.getDie3();\n\t\t\n\t\tint p2d1 = Player2.getDie1();\n\t\tint p2d2 = Player2.getDie2();\n\t\tint p2d3 = Player2.getDie3();\n\t\t\n\t\tint p1P = Player1.getPoints();\n\t\tint p2P = Player2.getPoints();\n\t\n\t\t// impParts stands for the 'important parts' used when calculating pairs (the pair)\n\t\tint impPartsP1;\n\t\tint impPartsP2;\n\t\t\n\t\t// for when the sum is needed\n\t\tint sumP1 = (p1d1 + p1d2 + p1d3);\n\t\tint sumP2 = (p2d1 + p2d2 + p2d3);\n\t\t\n\t\t// ranks are the first step in determining who won\n\t\tint rankP1 = getRank(Player1);\n\t\tint rankP2 = getRank(Player2);\n\n\t\t// now that ranks have been gotten, calculate winner\n\t\t// if P1 had higher rank, he wins. the end.\n\t\tif (rankP1 > rankP2) {\n\t\t\twinner = \"Player1\";\n\t\t} else if (rankP2 > rankP1) { // if player2 has higher rank\n\t\t\twinner = \"Player2\";\n\t\t} else if (rankP1 == rankP2) { // if ranks are same\n\t\t\tif (rankP1 == 4) {\t\t\t// if player 1 rolled 421\n\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else {\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t}\n\t\t\t\twinner = \"Player1\";\n\t\t\t} else if (rankP1 == 3) { // if they are triples;\n\t\t\t\tif (sumP1 >= sumP2) { // highest wins\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (sumP2 > sumP1) {\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else {\n\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (rankP1 == 2) { // if they are doubles\n\t\t\t\tif (p1d1 == p1d2) {\n\t\t\t\t\timpPartsP1 = p1d1; // set the important part to the pair\n\t\t\t\t} else {\n\t\t\t\t\timpPartsP1 = p1d3;\n\t\t\t\t}\n\t\t\t\tif (p2d1 == p2d2) { // do it for player 2 also\n\t\t\t\t\timpPartsP2 = p2d1;\n\t\t\t\t} else {\n\t\t\t\t\timpPartsP2 = p2d3;\n\t\t\t\t}\n\t\t\t\tif (impPartsP1 > impPartsP2) { //if player1 pair is better\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (impPartsP2 > impPartsP1) { // or p2's > p1's\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else if (impPartsP1 == impPartsP2) { // if same pair\n\t\t\t\t\tif (sumP1 >= sumP2) {\t\t\t\t// add them up\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t} else if (sumP2 > sumP1) {\n\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tif (sumP1 >= sumP2) { // if no pairs or better, take sums\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (sumP2 > sumP1){\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else {\n\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} \t\n\t\t\n\t\tif (winner.equals(\"Player1\")) {\n\t\t\tplayer1.setPoints(p1P + 1);\n\t\t} else {\n\t\t\tplayer2.setPoints(p2P + 1);\n\t\t}\n\t\treturn winner;\n\t}", "private static int getMaxScore(char[][] board){\n\n\t\tString result = gameStatus(board);\n\n\t\tif (result.equals(\"true\") && winner == 'X') return 1; //if x won\n\t\telse if (result.equals(\"true\") && winner == 'O') return -1;//if O won\n\t\telse if (result.equals(\"tie\")) return 0; //if tie\n\t\telse { \n\n\t\t\tint bestScore = -10;\n\t\t\tHashSet<Integer> possibleMoves = findPossibleMoves(board);\n\n\t\t\tfor (Integer move: possibleMoves){\n\n\t\t\t\tchar[][] modifiedBoard = new char[3][3];\n\n\t\t\t\tfor (int row = 0; row < 3; row++){\n\t\t\t\t\tfor (int col = 0; col < 3; col++){\n\t\t\t\t\t\tmodifiedBoard[row][col] = board[row][col];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodifiedBoard[move/3][move%3]='X';\n\n\t\t\t\tint currentScore = getMinScore(modifiedBoard);\n\n\t\t\t\tif (currentScore > bestScore){\n\t\t\t\t\tbestScore = currentScore;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn bestScore;\n\t\t}\n\t}", "protected abstract void calcScores();", "public double getPlayRatio(int wins) {\n return StatisticsHelper.getDivision(getDecksByWins(wins), getTotalDeckAmount());\n }", "private double calculateZ(double rawScore, double y_micro,\n double y_sigma) {\n return (rawScore - y_micro) / y_sigma;\n }", "public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }", "public Double zscore(final String key, final String member) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zscore(key, member);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "@Nonnull\n @Override\n public Double getScore(MiniBoard miniBoard) {\n final ImmutableList<Integer> mrXLocationList = ImmutableList.of(miniBoard.getMrXLocation());\n final List<Integer> distanceToSource =\n distanceMeasurer.getDistances(mrXLocationList, miniBoard.getDetectiveLocations()).get(0);\n Collections.sort(distanceToSource);\n List<Double> weightsList = distanceToSource.stream()\n .map(value -> pow(locationScoreExp, -value)/(1 - pow(locationScoreExp, -1)))\n .collect(Collectors.toList());\n final Double weightsListSum = weightsList.stream().reduce(0.0,Double::sum);\n weightsList = weightsList.stream().map(value -> value/weightsListSum).collect(Collectors.toList());\n\n\n double totalScore = 0.0;\n for(int i = 0; i < distanceToSource.size(); i++) {\n final Double unweightedScore = 1 - pow(locationScoreExp, 1 - distanceToSource.get(i));\n totalScore += weightsList.get(i)*unweightedScore;\n }\n return totalScore;\n }", "public int evaluateCardScore(int score, int rank) {\n //If the card is an ace\n if (rank == 0) {\n //If the score is 11 or greater, 11 value is bad\n if (score > 10)\n return 1;\n //if the score is 10 or less, 11 will raise score close to 21\n else\n return 11;\n }\n //Card is a court it is worth 10\n else if (rank > 9)\n return 10;\n //Any other card is worth its rank+1\n else\n return rank + 1;\n }", "public void testZZZZEOCSettings() throws Exception{\n\n // Sort order:\n // Primary Sort = number of solved problems (high to low)\n // Secondary Sort = score (low to high)\n // Tertiary Sort = earliest submittal of last submission (low to high)\n // Forth Sort = teamName (low to high)\n // Fifth Sort = clientId (low to high)\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,250,No\",\n \"2,1,A,290,Yes\", \n\n // t5 solves A, 310 pts = 20 + 290\n // but with ECO settings, yes is not seen, so 0\n \n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n // rank, team, solved, pts\n \"1,team1,0,0\",\n };\n // without EOC permission\n String [] rankData2 = {\n // rank, team, solved, pts\n \"1,team1,1,310\",\n };\n \n InternalContest contest = new InternalContest();\n\n initData(contest, 1, 5);\n ContestTime contestTime = new ContestTime(1);\n contestTime.setElapsedMins(300);\n contest.updateContestTime(contestTime);\n JudgementNotificationsList judgementNotificationsList = new JudgementNotificationsList();\n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Run[] runs = contest.getRuns();\n NotificationSetting notificationSetting = new NotificationSetting(runs[0].getProblemId());\n JudgementNotification judgementNotification = new JudgementNotification(true, 30);\n notificationSetting.setFinalNotificationYes(judgementNotification);\n JudgementNotification judgementNotificationNo = new JudgementNotification(false, 30);\n notificationSetting.setFinalNotificationNo(judgementNotificationNo);\n judgementNotificationsList.add(notificationSetting);\n contest.getContestInformation().updateJudgementNotification(notificationSetting);\n\n checkOutputXML(contest);\n\n confirmRanks(contest, rankData2);\n\n Account account = contest.getAccount(contest.getClientId());\n account.addPermission(edu.csus.ecs.pc2.core.security.Permission.Type.RESPECT_EOC_SUPPRESSION);\n contest.updateAccount(account);\n\n checkOutputXML(contest);\n\n confirmRanks(contest, rankData);\n }", "int getSeasonCaptureScore();", "public int wins(String team) {\n return 0;\n }", "private int scoreCalc(HousingLocation h) {\n\t\tint score = 0;\n\t\tscore += managementScore*h.managementScore;\n\t\tscore += amenitiesScore*h.amenitiesScore;\n\t\tscore += locationScore*h.locationScore;\n\t\tscore += communityChillFactorScore*h.communityChillFactorScore;\n\t\t\n\t\treturn score;\n\t\t\n\t}", "@Test\n void testForLargestCardInTrickComparingRank() {\n Dealer testDealer = new Dealer();\n\n Suit suit1 = Suit.DIAMONDS;\n Suit suit2 = Suit.SPADES;\n Suit suit3 = Suit.DIAMONDS;\n Suit suit4 = Suit.DIAMONDS;\n \n Rank rank1 = Rank.TWO;\n Rank rank2 = Rank.KING;\n Rank rank3 = Rank.ACE;\n Rank rank4 = Rank.FIVE;\n\n Card card1 = new Card(suit1,rank1,false);\n Card card2 = new Card(suit2,rank2,false);\n Card card3 = new Card(suit3,rank3,false);\n Card card4 = new Card(suit4,rank4,false);\n\n \n testDealer.addToPlayedCards(card1);\n testDealer.addToPlayedCards(card2);\n testDealer.addToPlayedCards(card3);\n testDealer.addToPlayedCards(card4);\n\n assertEquals(card3 , testDealer.getLargestCardFromTrick());\n }", "public void testScoreboardCaseOneA() throws Exception{\n \n String [] runsData = {\n \"2,8,C,1,No\",\n \"15,8,D,1,Yes\",\n \"23,8,D,1,No\",\n \"29,8,D,1,No\",\n \"43,8,C,1,No\",\n \"44,8,A,1,Yes\",\n \"52,8,C,1,Yes\",\n \"65,8,B,2,Yes\",\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team8,4,45\",\n \"2,team1,0,0\",\n \"2,team2,0,0\",\n \"2,team3,0,0\",\n \"2,team4,0,0\",\n \"2,team5,0,0\",\n \"2,team6,0,0\",\n \"2,team7,0,0\",\n };\n \n scoreboardTest (8, runsData, rankData);\n }", "public void testScoreboardForBeingJudgedState () throws Exception {\n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20 (a No before first yes)\n \"2,1,A,3,Yes\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"3,1,A,5,No\", // zero -- after Yes\n \"4,1,A,7,Yes\", // zero -- after Yes\n \"5,1,A,9,No\", // zero -- after Yes\n \"6,1,B,11,No\", // zero -- not solved\n \"7,1,B,13,No\", // zero -- not solved\n \"8,2,A,30,Yes\", // 30 (minute points; no Run points on first Yes)\n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n// startExplorer(getOutputDataDirectory());\n \n InternalContest contest = new InternalContest();\n \n int numTeams = 2;\n\n initData(contest, numTeams, 5);\n \n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Run [] runs = contest.getRuns();\n \n for (Run run : runs){\n run.setStatus(RunStates.BEING_JUDGED);\n }\n\n checkOutputXML(contest);\n\n confirmRanks(contest, rankData);\n }", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }", "@Override\n\tpublic float calculateRunRate() {\n\t\tint remaingrun=Math.abs((super.getTarget()-super.getCurrentscore()));\n\t\tfloat remaingOver=20-super.getCurrentover();\n\t\treturn remaingrun/remaingOver;\n\t}", "@Test\n public void testWinLossRatio(){\n float wins = 0;\n float losses = 0;\n\n realDie1 = new Dice();\n realDie2 = new Dice();\n realDie3 = new Dice();\n\n game = new Game(realDie1, realDie2, realDie3);\n\n when (mockPlayer.getBalance()).thenReturn(100);\n\n int currentGameWins = 0;\n\n for (int i = 0; i < 10000; i++) {\n currentGameWins = game.playRound(mockPlayer, DiceValue.ANCHOR, 10);\n\n if (currentGameWins == 0) {\n losses ++;\n } else {\n wins ++;\n }\n\n }\n System.out.println(\"Wins = \" + wins + \" Losses = \" + losses);\n float ratio = wins/(losses + wins);\n System.out.println(\"Win ratio = \" + ratio);\n }", "public double evaluate(Ranker ranker, List<RankList> rl) {\n/* 694 */ List<RankList> l = rl;\n/* 695 */ if (ranker != null)\n/* 696 */ l = ranker.rank(rl); \n/* 697 */ return this.testScorer.score(l);\n/* */ }" ]
[ "0.5858835", "0.5795971", "0.5741304", "0.57223177", "0.56945807", "0.5675509", "0.5659236", "0.56408644", "0.5635063", "0.56206435", "0.5595424", "0.5595424", "0.5570959", "0.556988", "0.5553538", "0.55508417", "0.54949874", "0.5461663", "0.54587805", "0.5452746", "0.54518217", "0.5450696", "0.54486364", "0.54420143", "0.5432491", "0.5426027", "0.5425106", "0.54157156", "0.5397805", "0.5397161", "0.53951025", "0.5390021", "0.5385739", "0.5375596", "0.53657585", "0.5359551", "0.53524077", "0.5351046", "0.5347443", "0.5341054", "0.53358155", "0.5333079", "0.53318924", "0.5291125", "0.52865684", "0.5279888", "0.52726376", "0.52498305", "0.5249581", "0.5234882", "0.52298146", "0.5229209", "0.52251047", "0.52186286", "0.52174973", "0.52167577", "0.5212515", "0.5212344", "0.521178", "0.5204078", "0.519776", "0.519776", "0.519776", "0.519776", "0.51971966", "0.5183688", "0.51828086", "0.5177464", "0.5177464", "0.51667243", "0.5165432", "0.5159908", "0.5156417", "0.51561534", "0.51492053", "0.51460725", "0.5140459", "0.51402706", "0.5139901", "0.5136069", "0.51297516", "0.5124953", "0.5123717", "0.5114552", "0.5112742", "0.5111942", "0.5111455", "0.51107997", "0.5105962", "0.5105813", "0.5104608", "0.51032233", "0.50973713", "0.5095841", "0.5093283", "0.5086233", "0.50831974", "0.5076804", "0.5071046", "0.50616646" ]
0.7942964
0
TODO Autogenerated method stub
@Override public void preExecution() { showProgressBar(); }
{ "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 postExecution(Response response) { closeProgress(); try { myComplaints = ResponseProcessingHelper.getInstance() .handleGetComplaintsResponse(response); adapter = new MyComplaintsAdapter<Complaint>(mView, R.layout.my_complaints_list_item_layout, myComplaints); setListAdapter(adapter); } catch (Exception ex) { } }
{ "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
String exportToExcel = request.getParameter("exportToExcel");
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toExcelFromRequest(HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n \n String tituloReporte = request.getParameter(\"tituloReporte\");\n String tipoReporte = request.getParameter(\"tipoReporte\");\n String nombreReporte = request.getParameter(\"nombreReporte\");\n String nombreRuta = request.getParameter(\"nombreRuta\");\n String idRuta = request.getParameter(\"idRuta\");\n String fechaInicio = request.getParameter(\"fechaInicio\");\n String fechaFinal = request.getParameter(\"fechaFinal\");\n String meta = request.getParameter(\"meta\");\n String metaReal = request.getParameter(\"metaReal\");\n String listaVehPlaca = request.getParameter(\"listaVehiculosPlaca\");\n \n ParametrosReporte pr = new ParametrosReporte();\n \n if (pr != null) {\n pr.setTituloReporte(tituloReporte);\n pr.setTipoReporte(Restriction.getNumber(tipoReporte));\n pr.setNombreReporte(nombreReporte);\n pr.setNombreRuta(nombreRuta);\n pr.setIdRuta(Restriction.getNumber(idRuta));\n pr.setFechaInicioStr(fechaInicio);\n pr.setFechaFinalStr(fechaFinal);\n pr.setMeta(Restriction.getNumber(meta));\n pr.setMeta_real(Restriction.getRealNumber(metaReal));\n pr.setListaVehiculosPlaca(listaVehPlaca);\n \n PrintOutExcel poe = new PrintOutExcel();\n poe.print(request, response, pr);\n }\n \n /*\n HttpSession session = request.getSession();\n ParametrosReporte pr = (ParametrosReporte) session.getAttribute(\"parametrosReporte\");\n \n if (pr != null) {\n \n // Reporte editable XLS \n ReporteUtilExcel rue = new ReporteUtilExcel(); \n pr.setTipoReporte(Restriction.getNumber(tipoReporte));\n pr.setNombreReporte(nombreReporte);\n \n MakeExcel rpte = rue.crearReporte(pr.getTipoReporte(), false, pr); \n String nombreArchivo = pr.getNombreReporte() + \".xls\"; \n\n //response.setContentType(\"application/vnd.ms-excel\");\n response.setContentType(\"application/ms-excel\"); \n response.setHeader(\"Content-Disposition\", \"attachment; filename=\"+nombreArchivo);\n\n HSSFWorkbook file = rpte.getExcelFile();\n file.write(response.getOutputStream()); \n response.flushBuffer();\n response.getOutputStream().close(); \n }\n */\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n\n String action = request.getParameter(\"action\");\n if (action.equalsIgnoreCase(\"farmer\")) {\n response.setContentType(\"application/vnd.ms-excel\");\n response.setHeader(\"Content-Disposition\", \"attachment;filename=Farmer.xls\");\n\n String nm = request.getParameter(\"nm\");\n String community = request.getParameter(\"cm\");\n String mainCrop = request.getParameter(\"mc\");\n String age = request.getParameter(\"ag\");\n\n System.out.println(\"Nm \" + nm);\n System.out.println(\"Cm \" + community);\n System.out.println(\"Mc \" + mainCrop);\n System.out.println(\"ag \" + age);\n BiodataModel biodataModel = new BiodataModel();\n List<BiodataWrapper> bios = biodataModel.getBioData(\"\", \"\");\n\n WritableWorkbook writableWorkbook = Workbook.createWorkbook(response.getOutputStream());\n\n WritableSheet writableSheet = writableWorkbook.createSheet(\"Sheet1\", 0);\n writableSheet.getSettings().setDefaultColumnWidth(25);\n// writableSheet.getSettings().setDefaultRowHeight(100 * 20);\n WritableFont cellFont = new WritableFont(WritableFont.TIMES, 12);\n WritableCellFormat cellFormat = new WritableCellFormat(cellFont);\n /**\n *\n */\n try {\n writableSheet.setRowView(0, 20 * 20);\n writableSheet.addCell(new Label(0, 0, \"ID\"));\n writableSheet.addCell(new Label(1, 0, \"Surname\"));\n writableSheet.addCell(new Label(2, 0, \"Othernames\"));\n writableSheet.addCell(new Label(3, 0, \"Community\"));\n writableSheet.addCell(new Label(4, 0, \"Village\"));\n writableSheet.addCell(new Label(5, 0, \"Region\"));\n writableSheet.addCell(new Label(6, 0, \"District\"));\n writableSheet.addCell(new Label(7, 0, \"Education\"));\n writableSheet.addCell(new Label(8, 0, \"Gender\"));\n writableSheet.addCell(new Label(9, 0, \"Marital Status\"));\n writableSheet.addCell(new Label(10, 0, \"Nickname\"));\n writableSheet.addCell(new Label(11, 0, \"# Children\"));\n writableSheet.addCell(new Label(12, 0, \"# Dependants\"));\n writableSheet.addCell(new Label(13, 0, \"Cluster\"));\n\n// writableSheet.addCell(new Label(5, 0, \"QR CODE\"));\n int i = 1;\n for (BiodataWrapper bio : bios) {\n\n writableSheet.addCell(new Label(0, i, bio.getFarmID()));\n writableSheet.addCell(new Label(1, i, bio.getLastName()));\n writableSheet.addCell(new Label(2, i, bio.getFirstName()));\n writableSheet.addCell(new Label(3, i, bio.getCommunity()));\n writableSheet.addCell(new Label(4, i, bio.getVillage()));\n writableSheet.addCell(new Label(5, i, bio.getRegion()));\n\n writableSheet.addCell(new Label(6, i, bio.getDistrict()));\n writableSheet.addCell(new Label(7, i, bio.getEducation()));\n writableSheet.addCell(new Label(8, i, bio.getGender()));\n writableSheet.addCell(new Label(9, i, bio.getMaritalStatus()));\n writableSheet.addCell(new Label(10, i, bio.getNickname()));\n writableSheet.addCell(new Label(11, i, bio.getNumberOfChildren()));\n writableSheet.addCell(new Label(12, i, bio.getNumberOfDependants()));\n writableSheet.addCell(new Label(13, i, bio.getCluster()));\n i++;\n }\n\n writableWorkbook.write();\n writableWorkbook.close();\n } catch (Exception e) {\n }\n } else if (action.equalsIgnoreCase(\"logs\")) {\n response.setContentType(\"application/vnd.ms-excel\");\n\n\n MobileTrackerModel biodataModel = new MobileTrackerModel();\n String format = \"dd-MM-yyyy HH:mm\";\n\n SimpleDateFormat simpleDate = new SimpleDateFormat(format);\n\n String s = request.getParameter(\"s\");\n String e = request.getParameter(\"d\");\n SimpleDateFormat todateDate = new SimpleDateFormat(\n \"yyyy-MM-dd\");\n SimpleDateFormat todateDates = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n if (s == null || s.isEmpty()) {\n s = todateDate.format(new Date());\n }\n if (e == null || e.isEmpty()) {\n e = todateDate.format(new Date());\n }\n\n System.out.println(\"Start s : \" + s);\n System.out.println(\"Start s : \" + e);\n Date startDate = new Date();\n Date endDate = new Date();\n \n response.setHeader(\"Content-Disposition\", \"attachment;filename=ICTCLogs_\"+s+\"_\"+e+\".xls\");\n\n try {\n\n endDate = todateDates.parse(e + \" 23:59:59\");\n startDate = todateDates.parse(s + \" 00:00:00\");\n\n } catch (Exception k) {\n }\n List<MobileTrackerWrapper> logs = biodataModel.findAll(startDate, endDate);\n\n\n \n WritableWorkbook writableWorkbook = Workbook.createWorkbook(response.getOutputStream());\n\n WritableSheet writableSheet = writableWorkbook.createSheet(\"ICTCLogs_\"+s+\"_\"+e, 0);\n writableSheet.getSettings().setDefaultColumnWidth(25);\n\n// writableSheet.getSettings().setDefaultRowHeight(100 * 20);\n WritableFont cellFont = new WritableFont(WritableFont.TIMES, 12);\n WritableCellFormat cellFormat = new WritableCellFormat(cellFont);\n /**\n *\n */\n try {\n writableSheet.setRowView(0, 20 * 20);\n writableSheet.addCell(new Label(0, 0, \"ID\"));\n writableSheet.addCell(new Label(1, 0, \"Username\"));\n writableSheet.addCell(new Label(2, 0, \"Module\"));\n writableSheet.addCell(new Label(3, 0, \"Page\"));\n writableSheet.addCell(new Label(4, 0, \"Section\"));\n writableSheet.addCell(new Label(5, 0, \"Start time\"));\n writableSheet.addCell(new Label(6, 0, \"End Time\"));\n writableSheet.addCell(new Label(7, 0, \"Version\"));\n writableSheet.addCell(new Label(8, 0, \"Battery\"));\n writableSheet.addCell(new Label(9, 0, \"IMEI\"));\n writableSheet.addCell(new Label(10, 0, \"Data\"));\n\n \n int i = 1;\n for (MobileTrackerWrapper log : logs) {\n\n writableSheet.addCell(new Label(0, i, log.getId()));\n writableSheet.addCell(new Label(1, i, log.getUserId()));\n writableSheet.addCell(new Label(2, i, log.getModule()));\n writableSheet.addCell(new Label(3, i, log.getPage()));\n writableSheet.addCell(new Label(4, i, log.getSection()));\n writableSheet.addCell(new Label(5, i, simpleDate.format(new Date(log.getStartTime()))));\n writableSheet.addCell(new Label(6, i, simpleDate.format(new Date(log.getEndTime()))));\n writableSheet.addCell(new Label(7, i, String.valueOf(log.getVersion()))); \n writableSheet.addCell(new Label(8, i, String.valueOf(log.getTimeSpent()/1000)));\n\n writableSheet.addCell(new Label(9, i, String.valueOf(log.getBattery())));\n writableSheet.addCell(new Label(10, i, String.valueOf(log.getImei())));\n writableSheet.addCell(new Label(11, i, String.valueOf(log.getData())));\n \n i++;\n }\n\n writableWorkbook.write();\n writableWorkbook.close();\n }catch(Exception r){\n }\n }\n\n }\n }", "@RequestMapping(\"exportToExcel\")\n public void exportFundamentalsToExcel(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n log.debug(\"Requested exporting data to excel.\");\n\n TradingAidCommand jshData = getJshData();\n\n // create a new file\n FileOutputStream outExcel = new FileOutputStream(\"workbook\");\n // create a new workbook\n HSSFWorkbook workbook = new HSSFWorkbook();\n // create a new sheet\n HSSFSheet sheet = workbook.createSheet();\n\n sheet.setDefaultColumnWidth(7);\n\n // create header row\n HSSFRow header = sheet.createRow(0);\n header.createCell(0).setCellValue(\"Horse\");\n header.createCell(1).setCellValue(\"9am\");\n header.createCell(2).setCellValue(\"MovAM\");\n header.createCell(3).setCellValue(\"60min\");\n header.createCell(4).setCellValue(\"Mov60\");\n header.createCell(5).setCellValue(\"30min\");\n header.createCell(6).setCellValue(\"Mov30\");\n header.createCell(7).setCellValue(\"15min\");\n header.createCell(8).setCellValue(\"Mov15\");\n header.createCell(9).setCellValue(\"5min\");\n header.createCell(10).setCellValue(\"Mov5\");\n header.createCell(11).setCellValue(\"3min\");\n header.createCell(12).setCellValue(\"Mov3\");\n header.createCell(13).setCellValue(\"2min\");\n header.createCell(14).setCellValue(\"Mov2\");\n header.createCell(15).setCellValue(\"1min\");\n header.createCell(16).setCellValue(\"Mov1\");\n header.createCell(17).setCellValue(\"Mean\");\n header.createCell(18).setCellValue(\"321\");\n header.createCell(19).setCellValue(\"Result\");\n header.createCell(20).setCellValue(\"CPR\");\n header.createCell(21).setCellValue(\"NPTips\");\n header.createCell(22).setCellValue(\"Naps\");\n header.createCell(23).setCellValue(\"Stars\");\n header.createCell(24).setCellValue(\"Jockey\");\n header.createCell(25).setCellValue(\"Wins\");\n header.createCell(26).setCellValue(\"R\");\n header.createCell(27).setCellValue(\"Rs\");\n header.createCell(28).setCellValue(\"Mov9-60\");\n header.createCell(29).setCellValue(\"FP\");\n header.createCell(30).setCellValue(\"C\");\n header.createCell(31).setCellValue(\"D\");\n header.createCell(32).setCellValue(\"CD\");\n header.createCell(33).setCellValue(\"HG\");\n header.createCell(34).setCellValue(\"Trainer\");\n header.createCell(35).setCellValue(\"Wins\");\n header.createCell(36).setCellValue(\"R\");\n header.createCell(37).setCellValue(\"Rs\");\n\n int rowIndex = 1;\n for (JSHRaceCommand race : jshData.getRaces()) {\n\n HSSFRow row = sheet.createRow(rowIndex);\n HSSFCell cell = row.createCell(0);\n cell.setCellValue(race.getGeneralInfo());\n sheet.addMergedRegion(new CellRangeAddress(rowIndex, rowIndex, 0, 37));\n\n rowIndex++;\n\n int runnerFavPos = 1;\n for (JSHRunnerCommand runner : race.getRunners()) {\n row = sheet.createRow(rowIndex);\n row.createCell(0).setCellValue(runner.getHorseName());\n row.createCell(1).setCellValue(runner.getPrice9());\n row.createCell(2).setCellValue(runner.getMov9to11());\n row.createCell(3).setCellValue(runner.getPrice60());\n row.createCell(4).setCellValue(runner.getMov60());\n row.createCell(5).setCellValue(runner.getPrice30());\n row.createCell(6).setCellValue(runner.getMov30());\n row.createCell(7).setCellValue(runner.getPrice15());\n row.createCell(8).setCellValue(runner.getMov15());\n row.createCell(9).setCellValue(runner.getPrice5());\n row.createCell(10).setCellValue(runner.getMov5());\n row.createCell(11).setCellValue(runner.getPrice3());\n row.createCell(12).setCellValue(runner.getMov3());\n row.createCell(13).setCellValue(runner.getPrice2());\n row.createCell(14).setCellValue(runner.getMov2());\n row.createCell(15).setCellValue(runner.getPrice1());\n row.createCell(16).setCellValue(runner.getMov1());\n row.createCell(17).setCellValue(runner.getMean());\n row.createCell(18).setCellValue(runner.getMov3to1());\n row.createCell(19).setCellValue(runner.getResult());\n row.createCell(20).setCellValue(runner.getCpr());\n row.createCell(21).setCellValue(runner.getNptips());\n row.createCell(22).setCellValue(runner.getNaps());\n row.createCell(23).setCellValue(runner.getStars());\n row.createCell(24).setCellValue(runner.getJockey());\n row.createCell(25).setCellValue(runner.getJockeyWins());\n row.createCell(26).setCellValue(runner.getJockeyRideNo());\n row.createCell(27).setCellValue(runner.getJockeyRides());\n row.createCell(28).setCellValue(runner.getMov9to60());\n row.createCell(29).setCellValue(runnerFavPos++);\n row.createCell(30).setCellValue(runner.getCourse());\n row.createCell(31).setCellValue(runner.getDistance());\n row.createCell(32).setCellValue(runner.getDistanceAndCourse());\n row.createCell(33).setCellValue(runner.getHeadGear());\n row.createCell(34).setCellValue(runner.getTrainer());\n row.createCell(35).setCellValue(runner.getTrainerWins());\n row.createCell(36).setCellValue(runner.getTrainerRunnerNo());\n row.createCell(37).setCellValue(runner.getTrainerRunners());\n\n rowIndex++;\n }\n\n }\n\n for (int i = 0; i < 37; i++) {\n sheet.autoSizeColumn(i);\n }\n\n // Movement formatting\n HSSFSheetConditionalFormatting conditionalFormattingLayer = sheet.getSheetConditionalFormatting();\n HSSFConditionalFormattingRule blueRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.GT, \"5\");\n HSSFConditionalFormattingRule greenRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"2.5\", \"5\");\n HSSFConditionalFormattingRule yellowRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"0.01\", \"2.5\");\n HSSFConditionalFormattingRule orangeRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"-2.5\", \"-0.01\");\n HSSFConditionalFormattingRule pinkRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"-2.5\");\n\n HSSFPatternFormatting blueFormatting = blueRule.createPatternFormatting();\n blueFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.BLUE.getIndex());\n\n HSSFPatternFormatting greenFormatting = greenRule.createPatternFormatting();\n greenFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.GREEN.getIndex());\n\n HSSFPatternFormatting yellowFormatting = yellowRule.createPatternFormatting();\n yellowFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.YELLOW.getIndex());\n\n HSSFPatternFormatting orangeFormatting = orangeRule.createPatternFormatting();\n orangeFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.ORANGE.getIndex());\n\n HSSFPatternFormatting pinkFormatting = pinkRule.createPatternFormatting();\n pinkFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.PINK.getIndex());\n\n HSSFPalette palette = workbook.getCustomPalette();\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.BLUE.getIndex(), (byte) 153, (byte) 204, (byte) 255);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.GREEN.getIndex(), (byte) 204, (byte) 255, (byte) 204);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.YELLOW.getIndex(), (byte) 255, (byte) 255, (byte) 153);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.ORANGE.getIndex(), (byte) 255, (byte) 204, (byte) 153);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.PINK.getIndex(), (byte) 255, (byte) 153, (byte) 204);\n\n int lastRowNum = sheet.getLastRowNum();\n\n CellRangeAddress[] basicMovementCellRangeAddresses = {\n\n // 9-11 Movement\n new CellRangeAddress(1, lastRowNum, 2, 2),\n // 60 min Movement\n new CellRangeAddress(1, lastRowNum, 4, 4),\n // 30 min Movement\n new CellRangeAddress(1, lastRowNum, 6, 6),\n // 15 min Movement\n new CellRangeAddress(1, lastRowNum, 8, 8),\n // 5 min Movement\n new CellRangeAddress(1, lastRowNum, 10, 10),\n // 3 min Movement\n new CellRangeAddress(1, lastRowNum, 12, 12),\n // 2 min Movement\n new CellRangeAddress(1, lastRowNum, 14, 14),\n // 1 min Movement\n new CellRangeAddress(1, lastRowNum, 16, 16),\n // Mean\n new CellRangeAddress(1, lastRowNum, 17, 17),\n // 3-1 Movement\n new CellRangeAddress(1, lastRowNum, 18, 18),\n };\n\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, blueRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, greenRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, yellowRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, orangeRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, pinkRule);\n\n\n // Movement 9 to 60 formatting\n HSSFConditionalFormattingRule mov9to60LessThanZeroRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"0\");\n HSSFFontFormatting mov9to60LessThanZeroFormatting = mov9to60LessThanZeroRule.createFontFormatting();\n mov9to60LessThanZeroFormatting.setFontColorIndex(HSSFColor.HSSFColorPredefined.RED.getIndex());\n CellRangeAddress[] mov9to60CellRange = {new CellRangeAddress(1, lastRowNum, 28, 28)};\n conditionalFormattingLayer.addConditionalFormatting(mov9to60CellRange, mov9to60LessThanZeroRule);\n\n // CPR Formatting\n HSSFConditionalFormattingRule cprRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"0\");\n HSSFFontFormatting cprFormatting = cprRule.createFontFormatting();\n cprFormatting.setFontColorIndex(HSSFColor.HSSFColorPredefined.RED.getIndex());\n CellRangeAddress[] cprCellRange = {new CellRangeAddress(1, lastRowNum, 20, 20)};\n conditionalFormattingLayer.addConditionalFormatting(cprCellRange, cprRule);\n\n // Result formatting\n HSSFConditionalFormattingRule winnerRule = conditionalFormattingLayer.createConditionalFormattingRule(\"EXACT($T1, \\\"Won\\\")\");\n HSSFConditionalFormattingRule placedRule = conditionalFormattingLayer.createConditionalFormattingRule(\"EXACT($T1, \\\"Placed\\\")\");\n\n HSSFPatternFormatting winnerFormatting = winnerRule.createPatternFormatting();\n winnerFormatting.setFillBackgroundColor(IndexedColors.BRIGHT_GREEN.getIndex());\n\n HSSFPatternFormatting placedFormatting = placedRule.createPatternFormatting();\n placedFormatting.setFillBackgroundColor(IndexedColors.LEMON_CHIFFON.getIndex());\n\n palette.setColorAtIndex(IndexedColors.BRIGHT_GREEN.getIndex(), (byte) 62, (byte) 213, (byte) 120);\n palette.setColorAtIndex(IndexedColors.LEMON_CHIFFON.getIndex(), (byte) 242, (byte) 218, (byte) 193);\n\n CellRangeAddress[] resultCellRange = {\n // Horse name\n new CellRangeAddress(1, lastRowNum, 0, 0),\n // Result\n new CellRangeAddress(1, lastRowNum, 19, 19),\n // Jockey\n new CellRangeAddress(1, lastRowNum, 24, 24),\n // Trainer\n new CellRangeAddress(1, lastRowNum, 34, 34)\n\n };\n\n conditionalFormattingLayer.addConditionalFormatting(resultCellRange, winnerRule);\n conditionalFormattingLayer.addConditionalFormatting(resultCellRange, placedRule);\n\n // Writing the file into Http response\n workbook.write(outExcel);\n\n response.setContentType(\"application/octet-stream\");\n DateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd\");\n Date today = new Date();\n response.setHeader(\"Content-disposition\", \"attachment; filename=\" + \"trading-aid-\" + dateFormat.format(today) + \".xls\");\n\n FileInputStream inputStream = new FileInputStream(new File(\"workbook\"));\n\n OutputStream outputStream = response.getOutputStream();\n\n byte[] buffer = new byte[1024];\n int bytesRead = -1;\n while ((bytesRead = inputStream.read(buffer)) != -1) { // write bytes read from the input stream into the output stream\n outputStream.write(buffer, 0, bytesRead);\n }\n\n outputStream.flush();\n\n log.debug(\"Data export to excel successful.\");\n\n }", "@RequestMapping(\"/userExcelExport.action\")\r\n @Secured(\"ROLE_ADMIN\")\r\n public void export(HttpServletResponse response) throws IOException {\n \r\n List<User> users = userService.findAll();\r\n\r\n response.setContentType(\"application/vnd.ms-excel\");\r\n response.setHeader(\"extension\", \"xls\");\r\n\r\n OutputStream out = response.getOutputStream();\r\n\r\n Workbook workbook = new HSSFWorkbook();\r\n CreationHelper createHelper = workbook.getCreationHelper();\r\n\r\n CellStyle headerStyle = workbook.createCellStyle();\r\n Font headerFont = workbook.createFont();\r\n headerFont.setFontHeightInPoints((short)10);\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n headerStyle.setFont(headerFont);\r\n\r\n Sheet sheet = workbook.createSheet();\r\n\r\n sheet.setColumnWidth(0, 20 * 256);\r\n sheet.setColumnWidth(1, 20 * 256);\r\n sheet.setColumnWidth(2, 20 * 256);\r\n\r\n Row row = sheet.createRow(0);\r\n\r\n Cell c = row.createCell(0);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"Username\"));\r\n\r\n c = row.createCell(1);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"First Name\"));\r\n\r\n c = row.createCell(2);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"Last Name\"));\r\n\r\n int rowNo = 1;\r\n for (User user : users) {\r\n row = sheet.createRow(rowNo);\r\n\r\n c = row.createCell(0);\r\n c.setCellValue(createHelper.createRichTextString(user.getUserName()));\r\n\r\n c = row.createCell(1);\r\n c.setCellValue(createHelper.createRichTextString(user.getFirstName()));\r\n\r\n c = row.createCell(2);\r\n c.setCellValue(createHelper.createRichTextString(user.getName()));\r\n\r\n rowNo++;\r\n }\r\n\r\n workbook.write(out);\r\n\r\n out.close();\r\n\r\n }", "@Override\n protected ModelAndView handleRequestInternal(HttpServletRequest request,\n HttpServletResponse response) {\n String query = Utility.decodeAndDecompress(request.getParameter(\"query\"));\n String uri = request.getRequestURI();\n try {\n uri = URLDecoder.decode(uri, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n LOGGER.error(ex);\n return null;\n }\n int posLastSlash = uri.lastIndexOf(\"/\");\n String fileName = null;\n if (posLastSlash != -1) {\n fileName = uri.substring(posLastSlash+1);\n } else {\n fileName = uri;\n }\n response.setContentType(\"application/ms-excel\");\n return null;\n }", "public static String renderPaginatedListAsExcel(HttpServletRequest request, HttpServletResponse response) {\n String strPaginatorName = request.getParameter(\"paginatorName\");\n String strOpentapsApplicationName = request.getParameter(\"opentapsApplicationName\");\n if (StringUtils.isEmpty(strPaginatorName)) {\n Debug.logError(\"The parameter [paginatorName] is missing in the request.\", module);\n return \"error\";\n }\n \n if (StringUtils.isEmpty(strOpentapsApplicationName)) {\n Debug.logError(\"The parameter [opentapsApplicationName] is missing in the request.\", module);\n return \"error\";\n }\n \n String retval = exportPaginatedListToExcel(strPaginatorName, strOpentapsApplicationName, request, response);\n \n return retval;\n }", "@RequestMapping(value = \"/exportExcelAllSchoolOrder\", method = RequestMethod.POST)\r\n public ModelAndView exportExcelAllSchoolOrder(Model model, HttpServletRequest request) {\n \tString companyId = request.getParameter(\"companyId\");\r\n \tMap<String,Object>map = new HashMap<String,Object>();\r\n \tPayOrder payOrder = new PayOrder();\r\n \t//if(!\"0\".equals(isArea)){\r\n \t\tmap.put(\"companyId\",companyId);\r\n \t//}\r\n \tmap.put(\"orderNum\",request.getParameter(\"orderNum\"));\r\n \tmap.put(\"inpstart\",request.getParameter(\"inpstart\"));\r\n \tmap.put(\"inpend\",request.getParameter(\"inpend\"));\r\n \tmap.put(\"payMethod\",request.getParameter(\"payMethod\"));\r\n \tmap.put(\"firstPrice\",request.getParameter(\"firstPrice\"));\r\n \tmap.put(\"secondPrice\",request.getParameter(\"secondPrice\"));\r\n \tmap.put(\"pageSize\",1000000);\r\n \tmap.put(\"page\",payOrder.getFirstIndex());\r\n \t\r\n \t//2018-1-29 新增 支付方式\r\n \tmap.put(\"payStates\",request.getParameter(\"payStates\"));\r\n \t// 查询 订单 集合\r\n \tList<PayOrder> cpoList = this.payOrderServiceImpl.findPayOrderByParams(map);\r\n \tString tittle = \"订单编号:orderNum,课程名:commodityName,金额(元):payPrice,姓名:stuName,电话:discountNo,下单时间:orderTime,付款时间:payTime,订单状态:payStatus\";\r\n \tExcelSheetEntity entity = ExcelSheetEntity.newInstance(\r\n \t\t\ttittle,\r\n \t\t\tcpoList);\r\n \tMap<String,Object>map01 = new HashMap<String,Object>();\r\n \tmap01.put(\"entity\", entity);\r\n \tmap01.put(\"fileName\", \"订单.xls\");\r\n \tViewFiles excel = new ViewFiles();\r\n \treturn new ModelAndView(excel, map01);\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tHttpSession session = request.getSession();\n\t\tRegistrationService registrationService = (RegistrationService) session.getAttribute(\"registrationService\");\n\t\t\t\n\t\tOutputStream out = null;\n\t\ttry {\n\t\t\tresponse.setContentType(\"application/vnd.ms-excel\");\n\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=confirmation.xls\");\n\t\t\t\n\t\t\t// build the Excel confirmation\n\t\t\tWritableWorkbook w = Workbook.createWorkbook(response.getOutputStream());\n\t\t\tWritableSheet s = w.createSheet(\"Confirmation\", 0);\n\t\t\tint column1 = 0;\n\t\t\tint column2 = 4;\n\t\t\tint row = 0;\n\t\t\ts.addCell(new Label(column1, row, \"JOHN HOPKINS ANNUAL SOFTWARE DEVELOPMENT SEMINAR\"));\n\t\t\trow = row + 2;\n\t\t\ts.addCell(new Label(column1, row, registrationService.getRegistrationInfo().getName()));\n\t\t\trow = row + 2;\n\t\t\ts.addCell(new Label(column1, row, \"You are registered for the following courses as a \" + registrationService.getRegistrationInfo().getEmploymentStatus() + \":\"));\n\t\t\tList<String> courses = registrationService.getRegistrationInfo().getCourses();\n\t\t\trow++;\n for (String course : courses) {\n \ts.addCell(new Label(column1, row, course));\n \ts.addCell(new Label(column2, row, \"$\" + Double.toString(registrationService.getCostInfo().getEmployeeStatusCost()) + \"0\"));\n \trow++;\n }\n row++;\n if (!StringUtils.isEmpty(registrationService.getRegistrationInfo().getHotel())) {\n \ts.addCell(new Label(column1, row, \"Hotel Accommodation\"));\n \ts.addCell(new Label(column2, row, \"$\" + Double.toString(registrationService.getCostInfo().getHotelCost()) + \"0\"));\n \trow++;\n }\n if (!StringUtils.isEmpty(registrationService.getRegistrationInfo().getParking())) {\n \ts.addCell(new Label(column1, row, \"Parking\"));\n \ts.addCell(new Label(column2, row, \"$\" + Double.toString(registrationService.getCostInfo().getParkingCost()) + \"0\"));\n \trow++;\n }\n s.addCell(new Label(column1, row, \"Total:\"));\n s.addCell(new Label(column2, row, \"$\" + Double.toString(registrationService.getCostInfo().getTotal()) + \"0\"));\n\t\t\tw.write();\n\t\t\tw.close();\n\t\t} catch (Exception e) {\n\t\t\tthrow new ServletException(\"Exception in Excel Sample Servlet\", e);\n\t\t} finally {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t}\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n\n response.setContentType(\"application/x-msexcel\");\n Vector resultXLS = new Vector();\n Location location = new Location();\n\n long userId = JSPRequestValue.requestLong(request, \"user_id\");\n int type = JSPRequestValue.requestInt(request, \"type\");\n int invType = JSPRequestValue.requestInt(request, \"inv_type\");\n \n User u = new User();\n try {\n u = DbUser.fetch(userId);\n } catch (Exception e) {\n }\n\n Vector result = new Vector();\n ReportParameter rp = new ReportParameter();\n try {\n HttpSession session = request.getSession();\n resultXLS = (Vector) session.getValue(\"REPORT_INVENTORY_STOCK_SUMMARY\");\n result = (Vector) resultXLS.get(0);\n rp = (ReportParameter) resultXLS.get(1);\n } catch (Exception e) {\n }\n\n Company cmp = new Company();\n try {\n Vector listCompany = DbCompany.list(0, 0, \"\", \"\");\n if (listCompany != null && listCompany.size() > 0) {\n cmp = (Company) listCompany.get(0);\n }\n } catch (Exception ext) {\n System.out.println(ext.toString());\n }\n\n if (rp.getLocationId() != 0) {\n try {\n location = DbLocation.fetchExc(rp.getLocationId());\n } catch (Exception e) {\n }\n }\n\n boolean gzip = false;\n\n OutputStream gzo;\n if (gzip) {\n response.setHeader(\"Content-Encoding\", \"gzip\");\n gzo = new GZIPOutputStream(response.getOutputStream());\n } else {\n gzo = response.getOutputStream();\n }\n\n PrintWriter wb = new PrintWriter(new OutputStreamWriter(gzo, \"UTF-8\"));\n \n String title = \"\";\n if(invType==0){\n title = \"INVENTORY REPORT (VALUE)\";\n }else{\n title = \"INVENTORY REPORT (QUANTITY)\";\n }\n\n wb.println(\" <?xml version=\\\"1.0\\\"?>\");\n wb.println(\" <?mso-application progid=\\\"Excel.Sheet\\\"?>\");\n wb.println(\" <Workbook xmlns=\\\"urn:schemas-microsoft-com:office:spreadsheet\\\"\");\n wb.println(\" xmlns:o=\\\"urn:schemas-microsoft-com:office:office\\\"\");\n wb.println(\" xmlns:x=\\\"urn:schemas-microsoft-com:office:excel\\\"\");\n wb.println(\" xmlns:ss=\\\"urn:schemas-microsoft-com:office:spreadsheet\\\"\");\n wb.println(\" xmlns:html=\\\"http://www.w3.org/TR/REC-html40\\\">\");\n wb.println(\" <DocumentProperties xmlns=\\\"urn:schemas-microsoft-com:office:office\\\">\");\n wb.println(\" <Author>Roy</Author>\");\n wb.println(\" <LastAuthor>Roy</LastAuthor>\");\n wb.println(\" <Created>2015-01-25T05:27:31Z</Created>\");\n wb.println(\" <Version>12.00</Version>\");\n wb.println(\" </DocumentProperties>\");\n wb.println(\" <ExcelWorkbook xmlns=\\\"urn:schemas-microsoft-com:office:excel\\\">\");\n wb.println(\" <WindowHeight>8445</WindowHeight>\");\n wb.println(\" <WindowWidth>20055</WindowWidth>\");\n wb.println(\" <WindowTopX>240</WindowTopX>\");\n wb.println(\" <WindowTopY>105</WindowTopY>\");\n wb.println(\" <ProtectStructure>False</ProtectStructure>\");\n wb.println(\" <ProtectWindows>False</ProtectWindows>\");\n wb.println(\" </ExcelWorkbook>\");\n wb.println(\" <Styles>\");\n wb.println(\" <Style ss:ID=\\\"Default\\\" ss:Name=\\\"Normal\\\">\");\n wb.println(\" <Alignment ss:Vertical=\\\"Bottom\\\"/>\");\n wb.println(\" <Borders/>\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"/>\");\n wb.println(\" <Interior/>\");\n wb.println(\" <NumberFormat/>\");\n wb.println(\" <Protection/>\");\n wb.println(\" </Style>\");\n \n wb.println(\" <Style ss:ID=\\\"s70\\\">\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"\");\n wb.println(\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\" </Style>\");\n \n wb.println(\" <Style ss:ID=\\\"s70i\\\">\");\n wb.println(\" <Alignment ss:Horizontal=\\\"Right\\\" ss:Vertical=\\\"Center\\\"/>\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"\");\n wb.println(\" />\");\n wb.println(\" </Style>\");\n \n wb.println(\" <Style ss:ID=\\\"s81\\\">\");\n wb.println(\" <Borders>\");\n wb.println(\" <Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" </Borders>\");\n wb.println(\" </Style>\");\n wb.println(\" <Style ss:ID=\\\"s82\\\">\");\n wb.println(\" <Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Center\\\"/>\");\n wb.println(\" <Borders>\");\n wb.println(\" <Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" </Borders>\");\n wb.println(\" </Style>\");\n wb.println(\" <Style ss:ID=\\\"s83\\\">\");\n wb.println(\" <Borders>\");\n wb.println(\" <Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" </Borders>\");\n wb.println(\" <NumberFormat ss:Format=\\\"Standard\\\"/>\");\n wb.println(\" </Style>\");\n wb.println(\" <Style ss:ID=\\\"s84\\\">\");\n wb.println(\" <Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Center\\\"/>\");\n wb.println(\" <Borders>\");\n wb.println(\" <Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" </Borders>\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"\");\n wb.println(\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\" </Style>\");\n wb.println(\" <Style ss:ID=\\\"s85\\\">\");\n wb.println(\" <Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Center\\\" ss:WrapText=\\\"1\\\"/>\");\n wb.println(\" <Borders>\");\n wb.println(\" <Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" </Borders>\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"\");\n wb.println(\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\" </Style>\");\n wb.println(\" <Style ss:ID=\\\"s86\\\">\");\n wb.println(\" <Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Bottom\\\"/>\");\n wb.println(\" <Borders>\");\n wb.println(\" <Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" </Borders>\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"\");\n wb.println(\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\" </Style>\");\n wb.println(\" <Style ss:ID=\\\"s87\\\">\");\n wb.println(\" <Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Bottom\\\"/>\");\n wb.println(\" <Borders>\");\n wb.println(\" <Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" </Borders>\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"\");\n wb.println(\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\" </Style>\");\n wb.println(\" <Style ss:ID=\\\"s92\\\">\");\n wb.println(\" <Borders>\");\n wb.println(\" <Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" <Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\" </Borders>\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"\");\n wb.println(\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\" <NumberFormat ss:Format=\\\"Standard\\\"/>\");\n wb.println(\" </Style>\");\n wb.println(\" <Style ss:ID=\\\"s94\\\">\");\n wb.println(\" <Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"12\\\" ss:Color=\\\"#000000\\\"\");\n wb.println(\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\" </Style>\");\n wb.println(\" </Styles>\");\n wb.println(\" <Worksheet ss:Name=\\\"Sheet1\\\">\");\n wb.println(\" <Table>\");\n wb.println(\" <Column ss:AutoFitWidth=\\\"0\\\" ss:Width=\\\"39.75\\\"/>\");\n wb.println(\" <Column ss:AutoFitWidth=\\\"0\\\" ss:Width=\\\"123\\\"/>\");\n if(type == 1){\n wb.println(\" <Column ss:AutoFitWidth=\\\"0\\\" ss:Width=\\\"123\\\"/>\");\n wb.println(\" <Column ss:AutoFitWidth=\\\"0\\\" ss:Width=\\\"80\\\"/>\");\n wb.println(\" <Column ss:AutoFitWidth=\\\"0\\\" ss:Width=\\\"123\\\"/>\");\n }\n \n wb.println(\" <Column ss:Width=\\\"84.75\\\" ss:Span=\\\"13\\\"/>\");\n wb.println(\" <Row>\");\n if(type == 0){\n wb.println(\" <Cell ss:MergeAcross=\\\"15\\\" ss:StyleID=\\\"s70i\\\"><Data ss:Type=\\\"String\\\">Print date : \" + JSPFormater.formatDate(new Date(), \"dd-MM-yyyy HH:mm:ss\") + \", by \" + u.getFullName() + \"</Data></Cell>\");\n }else{\n wb.println(\" <Cell ss:MergeAcross=\\\"18\\\" ss:StyleID=\\\"s70i\\\"><Data ss:Type=\\\"String\\\">Print date : \" + JSPFormater.formatDate(new Date(), \"dd-MM-yyyy HH:mm:ss\") + \", by \" + u.getFullName() + \"</Data></Cell>\"); \n }\n wb.println(\" </Row>\");\n wb.println(\" <Row ss:Height=\\\"18.75\\\">\");\n wb.println(\" <Cell ss:StyleID=\\\"s94\\\"><Data ss:Type=\\\"String\\\">\" + cmp.getName() + \"</Data></Cell>\");\n wb.println(\" </Row>\");\n wb.println(\" <Row ss:Height=\\\"18.75\\\">\");\n wb.println(\" <Cell ss:StyleID=\\\"s94\\\"><Data ss:Type=\\\"String\\\">\" + cmp.getAddress() + \"</Data></Cell>\");\n wb.println(\" </Row>\");\n wb.println(\" <Row>\");\n wb.println(\" <Cell ss:StyleID=\\\"s70\\\"><Data ss:Type=\\\"String\\\"></Data></Cell>\");\n wb.println(\" </Row>\");\n wb.println(\" <Row>\");\n wb.println(\" <Cell ss:StyleID=\\\"s70\\\"><Data ss:Type=\\\"String\\\">\"+title+\"</Data></Cell>\");\n wb.println(\" </Row>\");\n if (rp.getLocationId() != 0) {\n wb.println(\" <Row>\");\n wb.println(\" <Cell ss:StyleID=\\\"s70\\\"><Data ss:Type=\\\"String\\\">Location : \" + location.getName() + \"</Data></Cell>\");\n wb.println(\" </Row>\");\n }else{\n wb.println(\" <Row>\");\n wb.println(\" <Cell ss:StyleID=\\\"s70\\\"><Data ss:Type=\\\"String\\\">Location : All Location</Data></Cell>\");\n wb.println(\" </Row>\");\n }\n \n wb.println(\" <Row>\");\n wb.println(\" <Cell ss:StyleID=\\\"s70\\\"><Data ss:Type=\\\"String\\\">Period : \" + JSPFormater.formatDate(rp.getDateFrom(), \"dd MMM yyyy\") + \" - \" + JSPFormater.formatDate(rp.getDateTo(), \"dd MMM yyyy\") + \"</Data></Cell>\");\n wb.println(\" </Row>\");\n wb.println(\" <Row>\");\n wb.println(\" <Cell ss:StyleID=\\\"s70\\\"><Data ss:Type=\\\"String\\\"></Data></Cell>\");\n wb.println(\" </Row>\");\n \n wb.println(\" <Row >\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Code </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Category</Data></Cell>\");\n \n if(type == 1){\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Sub Category</Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Sku </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Item Name</Data></Cell>\");\n }\n \n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Begining </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Incoming </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s85\\\"><Data ss:Type=\\\"String\\\">Incoming &#10;Ajustment</Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">RTV </Data></Cell>\");\n wb.println(\" <Cell ss:MergeAcross=\\\"1\\\" ss:StyleID=\\\"s86\\\"><Data ss:Type=\\\"String\\\">Transfer </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Costing </Data></Cell>\");\n wb.println(\" <Cell ss:MergeAcross=\\\"1\\\" ss:StyleID=\\\"s86\\\"><Data ss:Type=\\\"String\\\">Repack </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Shringkage </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">COGS </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Net Sales </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Ending </Data></Cell>\");\n wb.println(\" <Cell ss:MergeDown=\\\"1\\\" ss:StyleID=\\\"s84\\\"><Data ss:Type=\\\"String\\\">Inv. Turn Over</Data></Cell>\");\n wb.println(\" </Row>\");\n wb.println(\" <Row>\");\n if(type == 1){\n wb.println(\" <Cell ss:Index=\\\"10\\\" ss:StyleID=\\\"s87\\\"><Data ss:Type=\\\"String\\\">In </Data></Cell>\");\n }else{\n wb.println(\" <Cell ss:Index=\\\"7\\\" ss:StyleID=\\\"s87\\\"><Data ss:Type=\\\"String\\\">In </Data></Cell>\");\n }\n wb.println(\" <Cell ss:StyleID=\\\"s87\\\"><Data ss:Type=\\\"String\\\">Out </Data></Cell>\");\n if(type == 1){\n wb.println(\" <Cell ss:Index=\\\"13\\\" ss:StyleID=\\\"s87\\\"><Data ss:Type=\\\"String\\\">Stock Out </Data></Cell>\");\n }else{\n wb.println(\" <Cell ss:Index=\\\"10\\\" ss:StyleID=\\\"s87\\\"><Data ss:Type=\\\"String\\\">Stock Out </Data></Cell>\");\n }\n wb.println(\" <Cell ss:StyleID=\\\"s87\\\"><Data ss:Type=\\\"String\\\">Stock In</Data></Cell>\");\n wb.println(\" </Row>\");\n\n if (result != null && result.size() > 0) {\n\n double totBegining = 0;\n double totReceiving = 0;\n double totRecAdj = 0;\n double totRtv = 0;\n double totTrafIn = 0;\n double totTrafOut = 0;\n double totCosting = 0;\n double totMutation = 0;\n double totRepackOut = 0;\n double totAdjustment = 0;\n double totCogs = 0;\n double totNetSales = 0;\n double totEnding = 0;\n double totTurnOver = 0;\n\n for (int i = 0; i < result.size(); i++) {\n\n InvReport iReport = (InvReport) result.get(i);\n wb.println(\" <Row>\");\n wb.println(\" <Cell ss:StyleID=\\\"s82\\\"><Data ss:Type=\\\"String\\\">\" + iReport.getCode() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s81\\\"><Data ss:Type=\\\"String\\\">\" + iReport.getSectionName() + \"</Data></Cell>\");\n if(type ==1){\n wb.println(\" <Cell ss:StyleID=\\\"s81\\\"><Data ss:Type=\\\"String\\\">\" + iReport.getCodeClass() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s81\\\"><Data ss:Type=\\\"String\\\">\" + iReport.getSku() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s81\\\"><Data ss:Type=\\\"String\\\">\" + iReport.getDesription() + \"</Data></Cell>\");\n }\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getBegining() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getReceiving() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getReceivingAdjustment() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getRtv() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getTransferIn() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getTransferOut() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getCosting() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getMutation() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getRepackOut() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getStockAdjustment() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getCogs() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getNetSales() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getEnding() + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s83\\\"><Data ss:Type=\\\"Number\\\">\" + iReport.getTurnOvr() + \"</Data></Cell>\");\n wb.println(\" </Row>\");\n \n totBegining = totBegining + iReport.getBegining();\n totReceiving = totReceiving + iReport.getReceiving();\n totRecAdj = totRecAdj + iReport.getReceivingAdjustment();\n totRtv = totRtv + iReport.getRtv();\n totTrafIn = totTrafIn + iReport.getTransferIn();\n totTrafOut = totTrafOut + iReport.getTransferOut();\n totCosting = totCosting + iReport.getCosting();\n totMutation = totMutation + iReport.getMutation();\n totRepackOut = totRepackOut + iReport.getRepackOut();\n totAdjustment = totAdjustment + iReport.getStockAdjustment();\n totCogs = totCogs + iReport.getCogs();\n totNetSales = totNetSales + iReport.getNetSales();\n totEnding = totEnding + iReport.getEnding();\n totTurnOver = totTurnOver + iReport.getTurnOvr();\n }\n \n wb.println(\" <Row>\");\n wb.println(\" <Cell ss:MergeAcross=\\\"1\\\" ss:StyleID=\\\"s86\\\"><Data ss:Type=\\\"String\\\">Total</Data></Cell>\");\n if(type ==1){\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"String\\\"></Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"String\\\"></Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"String\\\"></Data></Cell>\");\n }\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totBegining + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totReceiving + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totRecAdj + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totRtv + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totTrafIn + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totTrafOut + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totCosting + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totMutation + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totRepackOut + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totAdjustment + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totCogs + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totNetSales + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"Number\\\">\" + totEnding + \"</Data></Cell>\");\n wb.println(\" <Cell ss:StyleID=\\\"s92\\\"><Data ss:Type=\\\"String\\\"></Data></Cell>\");\n wb.println(\" </Row>\");\n }\n wb.println(\" </Table>\");\n wb.println(\" <WorksheetOptions xmlns=\\\"urn:schemas-microsoft-com:office:excel\\\">\");\n wb.println(\" <PageSetup>\");\n wb.println(\" <Header x:Margin=\\\"0.3\\\"/>\");\n wb.println(\" <Footer x:Margin=\\\"0.3\\\"/>\");\n wb.println(\" <PageMargins x:Bottom=\\\"0.75\\\" x:Left=\\\"0.7\\\" x:Right=\\\"0.7\\\" x:Top=\\\"0.75\\\"/>\");\n wb.println(\" </PageSetup>\");\n wb.println(\" <Print>\");\n wb.println(\" <ValidPrinterInfo/>\");\n wb.println(\" <HorizontalResolution>300</HorizontalResolution>\");\n wb.println(\" <VerticalResolution>300</VerticalResolution>\");\n wb.println(\" </Print>\");\n wb.println(\" <Selected/>\");\n wb.println(\" <DoNotDisplayGridlines/>\");\n wb.println(\" <Panes>\");\n wb.println(\" <Pane>\");\n wb.println(\" <Number>3</Number>\");\n wb.println(\" <ActiveRow>20</ActiveRow>\");\n wb.println(\" <ActiveCol>2</ActiveCol>\");\n wb.println(\" </Pane>\");\n wb.println(\" </Panes>\");\n wb.println(\" <ProtectObjects>False</ProtectObjects>\");\n wb.println(\" <ProtectScenarios>False</ProtectScenarios>\");\n wb.println(\" </WorksheetOptions>\");\n wb.println(\" </Worksheet>\");\n wb.println(\" <Worksheet ss:Name=\\\"Sheet2\\\">\");\n wb.println(\" <Table>\");\n wb.println(\" </Table>\");\n wb.println(\" <WorksheetOptions xmlns=\\\"urn:schemas-microsoft-com:office:excel\\\">\");\n wb.println(\" <PageSetup>\");\n wb.println(\" <Header x:Margin=\\\"0.3\\\"/>\");\n wb.println(\" <Footer x:Margin=\\\"0.3\\\"/>\");\n wb.println(\" <PageMargins x:Bottom=\\\"0.75\\\" x:Left=\\\"0.7\\\" x:Right=\\\"0.7\\\" x:Top=\\\"0.75\\\"/>\");\n wb.println(\" </PageSetup>\");\n wb.println(\" <ProtectObjects>False</ProtectObjects>\");\n wb.println(\" <ProtectScenarios>False</ProtectScenarios>\");\n wb.println(\" </WorksheetOptions>\");\n wb.println(\" </Worksheet>\");\n wb.println(\" <Worksheet ss:Name=\\\"Sheet3\\\">\");\n wb.println(\" <Table>\");\n wb.println(\" </Table>\");\n wb.println(\" <WorksheetOptions xmlns=\\\"urn:schemas-microsoft-com:office:excel\\\">\");\n wb.println(\" <PageSetup>\");\n wb.println(\" <Header x:Margin=\\\"0.3\\\"/>\");\n wb.println(\" <Footer x:Margin=\\\"0.3\\\"/>\");\n wb.println(\" <PageMargins x:Bottom=\\\"0.75\\\" x:Left=\\\"0.7\\\" x:Right=\\\"0.7\\\" x:Top=\\\"0.75\\\"/>\");\n wb.println(\" </PageSetup>\");\n wb.println(\" <ProtectObjects>False</ProtectObjects>\");\n wb.println(\" <ProtectScenarios>False</ProtectScenarios>\");\n wb.println(\" </WorksheetOptions>\");\n wb.println(\" </Worksheet>\");\n wb.println(\" </Workbook>\");\n wb.println(\" \");\n wb.flush();\n }", "@Override\n\tpublic Result<String> excelExport(EasyUIAccept accept, HttpServletRequest req, HttpServletResponse resp) {\n\t\treturn null;\n\t}", "@RequestMapping(value = { \"/printReport.xls\" }, method = RequestMethod.POST)\r\n\tpublic void payOther(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\r\n\t\tString rptCode = request.getParameter(\"rptCode\");\r\n\t\tString pathFile = request.getSession().getServletContext().getRealPath(\"/report/excel/\" + rptCode + \".xls\");\r\n\t\tFileInputStream input_document = new FileInputStream(new File(pathFile));\r\n\t\tWorkbook workbook = new HSSFWorkbook(input_document);\r\n\t\tReportBean bean = new ReportBean();\r\n\r\n\t\tinput_document.close();\r\n\t\tByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n\t\t\r\n\t\tif(creteria != null) {\r\n//\t\t\t result = paymentManualService.findPayOrder(creteria);\r\n\t\t }\r\n\t\t\r\n\t\treportService.controlAllReports(workbook, rptCode, bean).write(byteArrayOutputStream);\r\n\t\tbyte[] bytes = byteArrayOutputStream.toByteArray();\r\n\r\n\t\tresponse.setContentType(\"application/vnd.ms-excel\");\r\n\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;filename=\" + rptCode+\".xls\");\r\n\t\tresponse.getOutputStream().write(bytes);\r\n\t\tresponse.getOutputStream().flush();\r\n\t}", "@RequestMapping(\"/findingRate/downloadExcel/format\")\r\n\t@ResponseBody\r\n\tpublic String excelFormatDownload(\r\n\t\t\t@RequestParam(value = \"headingVal\") String headingVal,Principal principal){\r\n\t\t\r\n\t\tString retVal = \"-1\";\r\n\t\tString fileName = principal.getName()+new java.util.Date().getTime()+\".xls\";\r\n\t\tString filePath = uploadDirecotryPath + File.separator +\"excelfilecontent\" + File.separator;\r\n\t\tString tempHeadVal[] = headingVal.split(\",\");\r\n\t\t\r\n\t\t try {\r\n\t String filename = filePath+fileName;\r\n\t HSSFWorkbook workbook = new HSSFWorkbook();\r\n\t HSSFSheet sheet = workbook.createSheet(\"FirstSheet\"); \r\n\r\n\t HSSFRow rowhead = sheet.createRow((short)0);\r\n\t for(int i=0;i<tempHeadVal.length;i++){\r\n\t \t rowhead.createCell(i).setCellValue(tempHeadVal[i].toString());\r\n\t }\r\n\t \r\n\t FileOutputStream fileOut = new FileOutputStream(filename);\r\n\t workbook.write(fileOut);\r\n\t fileOut.close();\r\n\t workbook.close();\r\n\t retVal = fileName;\r\n\t } catch ( Exception ex ) {\r\n\t System.out.println(ex);\r\n\t retVal = \"-2\";\r\n\t }\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "@RequestMapping(\"/locExcelExport\")\n\tpublic String exportDataToExcel(ModelMap map){\n\t\tmap.addAttribute(\"locListObj\",service.getAllLocations());\n\t\treturn \"locExcelView\";\n\t}", "public String generarReporte (HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n Empresa empresaSesion = (Empresa)request.getSession().getAttribute(\"emp\");\n String simbolo_moneda;\n \n if (empresaSesion != null && empresaSesion.getSimboloMoneda() != null && \n !empresaSesion.getSimboloMoneda().isEmpty()) {\n simbolo_moneda = empresaSesion.getSimboloMoneda();\n } else {\n simbolo_moneda = \"$\";\n }\n \n // Se restauran variables iniciadas\n ReporteUtil.restaurarValores();\n \n String tipoReporte = request.getParameter(\"tipoReporte\");\n String fechaInicio = request.getParameter(\"fechaInicio\");\n String fechaFinal = request.getParameter(\"fechaFinal\");\n String placa = request.getParameter(\"splaca\"); // id,placa,numInterno\n String mplaca = request.getParameter(\"smplaca_v\");\n String esteDia = request.getParameter(\"esteDia\");\n String tipoArchivo = request.getParameter(\"tipoArchivo\");\n String ruta = request.getParameter(\"sruta\");\n String mruta = request.getParameter(\"smruta_v\");\n String malarma = request.getParameter(\"smalarma_v\");\n String base = request.getParameter(\"sbase\");\n String idLiquidador = request.getParameter(\"sliquidador\");\n String meta = request.getParameter(\"smeta\");\n String mconductor = request.getParameter(\"smconductor_v\"); \n \n boolean dia_actual = verificarDiaActual(fechaInicio, fechaFinal);\n \n// Etiquetas etiquetas = null;\n// etiquetas = LiquidacionBD.searchTags();\n ConfiguracionLiquidacion etiquetas = obtenerEtiquetasLiquidacionPerfil(request);\n \n if (etiquetas != null) {\n ReporteUtil.establecerEtiquetas(etiquetas);\n } \n \n //String reportesPath = \"D:\\\\rdw\\\\\"; \n \n // En caso de estar sobre un SO_WIN, se quita ultimo delimitador\n String reportesPath = getServletContext().getRealPath(\"\");\n if (reportesPath.endsWith(\"\\\\\")) {\n reportesPath = reportesPath.substring(0, reportesPath.length()-1); \n }\n \n Map<String,String> h = new HashMap<String,String>();\n \n h.put(\"tipoReporte\", tipoReporte);\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal); \n h.put(\"tipoArchivo\", tipoArchivo);\n h.put(\"path\", reportesPath); \n \n \n // Informacion de usuario en sesion\n HttpSession session = request.getSession(); \n Usuario u = (Usuario) session.getAttribute(\"login\");\n \n h.put(\"idUsuario\", \"\" + u.getId());\n h.put(\"nombreUsuario\", u.getNombre() +\" \"+ u.getApellido());\n h.put(\"usuarioPropietario\", (u.esPropietario()) ? \"1\" : \"0\");\n \n // Nombre y titulo del reporte\n String nt[] = nombreReporte(tipoReporte, dia_actual).split(\":\");\n \n // Verifica si se considera una o todas las rutas\n // para reportes nivel_ocupacion, despachador, descripcion ruta,\n // cumplimiento ruta por conductor\n int ntp = Integer.parseInt(tipoReporte);\n if (ntp == 5 || ntp == 14 || ntp == 16) {\n if (!ruta.equals(\"0\")) { // Se elige una ruta\n nt[0] += \"_X1Ruta\";\n h.put(\"unaRuta\", \"t\");\n } else {\n h.put(\"unaRuta\", \"f\");\n }\n } \n if (ntp == 25) {\n String una_ruta = (!ruta.equals(\"0\")) ? \"t\" : \"f\";\n h.put(\"unaRuta\", una_ruta);\n }\n \n h.put(\"nombreReporte\", nt[0]);\n h.put(\"tituloReporte\", nt[1]);\n \n // Verifica si es reporte gerencia, gerencia x vehiculo para incluir\n // todos los vehiculos o todas las rutas\n ReporteUtil.incluirTotalidadRutas = false;\n ReporteUtil.incluirTotalidadVehiculos = false;\n ReporteUtil.incluirVehiculosPropietario = false;\n \n if (ntp == 15) {\n ReporteUtil.incluirTotalidadVehiculos = true; \n } else if (ntp == 18) {\n ReporteUtil.incluirTotalidadRutas = true;\n } else if (ntp == 11) {\n if (u.esPropietario()) { \n ReporteUtil.incluirVehiculosPropietario = true;\n } else {\n ReporteUtil.incluirTotalidadVehiculos = true; \n }\n }\n \n // Verifica si es reporte ruta x vehiculo para generar\n // reporte desde codigo\n if (ntp == 3) { \n ReporteUtil.desdeCodigo = true;\n } else {\n ReporteUtil.desdeCodigo = false;\n }\n \n // Verifica si es reporte ruta x vehiculo, vehiculo x ruta, despachador\n // para establecer un dia en parametro fecha y no un rango\n if (ntp == 3 || ntp == 11 || ntp == 16) {\n h.put(\"fechaFinal\", fechaInicio);\n } \n \n // No se necesitan fechas para reporte estadistico y descripcion ruta\n if (ntp == 13 || ntp == 14) {\n h.put(\"fechaInicio\", \"\");\n h.put(\"fechaFinal\", \"\");\n }\n \n // Eleccion de reportes gerencia segun empresa\n if (ntp == 15 || ntp == 18) {\n String empresa = u.getNombreEmpresa();\n String nombre_reporte = h.get(\"nombreReporte\");\n if (ReporteUtil.esEmpresa(empresa, ReporteUtil.EMPRESA_FUSACATAN)) {\n nombre_reporte += \"Fusa\";\n h.put(\"nombreReporte\", nombre_reporte);\n } \n }\n \n // Reportes de liquidacion\n if (ntp == 19 || ntp == 20 || ntp == 21 || ntp == 22) { \n h.put(\"fechaInicio\", fechaInicio + \" 00:00:00\");\n h.put(\"fechaFinal\", fechaFinal + \" 23:59:59\");\n \n //System.out.println(\"---> \"+EtiquetasLiquidacion.getEtq_total1() );\n /*SI EL REPORTE ES LIQUIDACION POR LIQUIDADOR SE MODIFICA EL NOMBRE SI LA EMPRESA ES DIFERENTE DE NEIVA*/\n if (ntp == 21) {\n if ((u.getNombreEmpresa().equalsIgnoreCase(\"FUSACATAN\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"TIERRA GRATA\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"Tierragrata\"))) {\n h.put(\"nombreReporte\", \"Reporte_LiquidacionXLiquidador_new_dcto\"); \n }\n }\n \n if (tipoArchivo.equals(\"w\")) {\n Usuario liquidador = UsuarioBD.getById(Restriction.getNumber(idLiquidador));\n if (liquidador != null) { \n String nom = liquidador.getNombre();\n String ape = liquidador.getApellido(); \n h.put(\"idUsuarioLiquidador\", idLiquidador);\n h.put(\"nombresUsuarioLiquidador\", ape + \" \" + nom);\n }\n } else {\n h.put(\"idUsuario\", idLiquidador);\n }\n } \n \n if (ntp == 23 || ntp == 24 || ntp == 25) {\n h.put(\"meta\", \"\" + meta);\n if (tipoArchivo.equals(\"r\")) {\n ReporteUtil.reporteWeb = true;\n }\n }\n \n if (ntp == 26 || ntp == 27) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n ReporteUtil.reporteWeb = true;\n } \n \n // ======================= Verificacion de campos ======================\n \n // Id, placa, numeroInterno vehiculo\n if (placa.indexOf(\",\") >= 0) {\n h.put(\"idVehiculo\", placa.split(\",\")[0]);\n h.put(\"placa\", placa.split(\",\")[1]);\n h.put(\"numInterno\", placa.split(\",\")[2]);\n h.put(\"capacidad\", placa.split(\",\")[3]);\n ReporteUtil.incluirVehiculo = true;\n } else\n ReporteUtil.incluirVehiculo = false;\n \n // Id de multiples vehiculos\n if (mplaca != \"\" || mplaca.indexOf(\",\") >= 0) {\n h.put(\"strVehiculos\", mplaca);\n h.put(\"strVehiculosPlaca\", id2placa(mplaca));\n ReporteUtil.incluirVehiculos = true;\n } else\n ReporteUtil.incluirVehiculos = false;\n \n // Id ruta y nombre ruta\n if (ruta.indexOf(\",\") >= 0) {\n String arrayRuta[] = ruta.split(\",\");\n h.put(\"idRuta\", arrayRuta[0]);\n h.put(\"nombreRuta\", arrayRuta[1]);\n ReporteUtil.incluirRuta = true;\n } else \n ReporteUtil.incluirRuta = false;\n \n // Id ruta \n if (mruta != \"\" || mruta.indexOf(\",\") >= 0) {\n h.put(\"strRutas\", mruta);\n ReporteUtil.incluirRutas = true;\n } else\n ReporteUtil.incluirRutas = false;\n \n // Id alarma\n if (malarma != \"\" || malarma.indexOf(\",\") >= 0) {\n h.put(\"strAlarmas\", malarma);\n ReporteUtil.incluirAlarma = true;\n } else \n ReporteUtil.incluirAlarma = false; \n \n // Id base, nombre\n if (base.indexOf(\",\") >= 0) {\n String arrayBase[] = base.split(\",\");\n h.put(\"idBase\", arrayBase[0]);\n h.put(\"nombreBase\", arrayBase[1]);\n ReporteUtil.incluirBase = true;\n } else \n ReporteUtil.incluirBase = false; \n \n // Se verifica y establece parametros de empresa\n Empresa emp = EmpresaBD.getById(u.getIdempresa()); \n if (emp != null) {\n h.put(\"nombreEmpresa\", emp.getNombre());\n h.put(\"nitEmpresa\", emp.getNit());\n h.put(\"idEmpresa\", \"\" + emp.getId());\n } else {\n request.setAttribute(\"msg\", \"* Usuario no tiene relaci&oacute;n y/o permisos adecuados con la empresa.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n int id_ruta = Restriction.getNumber(h.get(\"idRuta\")); \n String pplaca = \"'\" + h.get(\"placa\") + \"'\";\n \n // Se verifica si existe despacho para cruzar sus datos,\n // en caso contrario se extrae los datos unicamente desde tabla info. registradora\n if (ntp == 3) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, pplaca)) {\n ReporteUtil.desdeCodigo = true; \n h.put(\"nombreReporte\", \"reporte_RutaXVehiculo2\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n ReporteUtil.desdeCodigo = false; // Reporte con cruce despacho es dinamico\n h.put(\"cruzarDespacho\", \"1\"); \n }\n }\n if (ntp == 11) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, id_ruta)) {\n h.put(\"nombreReporte\", \"reporte_VehiculosXRuta\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n h.put(\"cruzarDespacho\", \"1\");\n }\n }\n \n if (ntp == 30) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n h.put(\"strConductores\", mconductor);\n ReporteUtil.reporteWeb = true;\n \n // Se verifica que exista una configuracion de desempeno activa\n ConfCalificacionConductor ccc = CalificacionConductorBD.confCalificacionConductor();\n if (ccc == null) {\n request.setAttribute(\"msg\", \"* No existe ninguna configuraci&oacute;n de desempe&ntilde;o registrada. Por favor registre una.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"result_error\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n }\n \n // Creacion de reporte\n JasperPrint print = null;\n if (tipoArchivo.equals(\"r\")) {\n \n // Reporte de solo lectura << PDF / Web >>\n ReporteUtil rpt;\n \n if (ReporteUtil.reporteWeb) { \n ReporteWeb rptw = new ReporteWeb(h, request, response);\n return rptw.generarReporteWeb(ntp); \n \n } else if (ReporteUtil.desdeCodigo) {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporteDesdeCodigo(Integer.parseInt(h.get(\"tipoReporte\")), simbolo_moneda);\n \n } else {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporte(simbolo_moneda);\n }\n \n } else {\n \n // Reporte editable << XLS >>\n ReporteUtilExcel rue = new ReporteUtilExcel();\n MakeExcel rpte = rue.crearReporte(ntp, dia_actual, h, u, etiquetas);\n \n // Restablece placa de reportes que no necesitan\n restablecerParametro(\"placa\", ntp, h);\n String splaca = h.get(\"placa\");\n splaca = (splaca == null || splaca == \"\") ? \"\" : \"_\" + splaca;\n String nombreArchivo = h.get(\"nombreReporte\") + splaca + \".xls\";\n \n //response.setContentType(\"application/vnd.ms-excel\");\n response.setContentType(\"application/ms-excel\"); \n response.setHeader(\"Content-Disposition\", \"attachment; filename=\"+nombreArchivo);\n \n HSSFWorkbook file = rpte.getExcelFile();\n file.write(response.getOutputStream()); \n response.flushBuffer();\n response.getOutputStream().close();\n \n return \"/app/reportes/generaReporte.jsp\";\n }\n \n // Impresion de reporte de solo lectura PDF\n if (print != null) {\n \n try { \n // Se comprueba existencia de datos en el reporte obtenido\n boolean hayDatos = true;\n List<JRPrintPage> pp = print.getPages(); \n if (pp.size() > 0) {\n JRPrintPage ppp = pp.get(0);\n if (ppp.getElements().size() <= 0) \n hayDatos = false; \n } else \n hayDatos = false;\n \n if (!hayDatos) {\n request.setAttribute(\"msg\", \"* Ning&uacute;n dato obtenido en el reporte.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"data_reporte\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n byte[] bytes = JasperExportManager.exportReportToPdf(print);\n \n // Inicia descarga del reporte\n response.setContentType(\"application/pdf\");\n response.setContentLength(bytes.length);\n ServletOutputStream outStream = response.getOutputStream();\n outStream.write(bytes, 0, bytes.length);\n outStream.flush();\n outStream.close();\n \n } catch (JRException e) {\n System.err.println(e);\n } catch (IOException e) {\n System.err.println(e);\n } \n }\n return \"/app/reportes/generaReporte.jsp\";\n }", "@Override\n\tpublic void export(HttpServletRequest request, HttpServletResponse response, Map<String, Object> map) {\n\t\tString sheetName = \"石砌边沟过路涵\";\n\t\t//表头\n\t\tString[] head0 = new String[] { \"编号\", \"中心桩号\", \"孔数-孔径(孔-米)\", \"位置\", \"L(m)\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\",\"备注\"};\n\t\tString[] head1 = new String[] { \"过路板钢筋(Kg)\", \"过路板混凝土C30(m3)\", \"涂料(m2)\", \"涵面铺装钢筋(Kg)\",\"涵面铺装混凝土C30(m3)\", \"C20混凝土台帽(m3)\", \"M15浆砌片石涵台身及基础(m2)\", \"涵身顶面1cm厚油毛毡(m2)\",\"透水性砾料(m3)\" };\n\t\t//对应excel中的行和列,下表从0开始{\"开始行,结束行,开始列,结束列\"}\n\t\tString[] headnum0 = new String[] { \"2,3,0,0\", \"2,3,1,1\", \"2,3,2,2\",\"2,3,3,3\", \"2,3,4,4\", \"2,2,5,13\" ,\"2,3,14,14\"};\n\t\tString[] headnum1 = new String[] { \"3,3,5,5\",\"3,3,6,6\", \"3,3,7,7\", \"3,3,8,8\",\"3,3,9,9\", \"3,3,10,10\", \"3,3,11,11\",\"3,3,12,12\",\"3,3,13,13\"};\n\t\t List<Map<String, Object>> dataList = passingCulvertNumberDao.getPassingCulvertNumberListEX(map);\n\t\t for (int i = 0; i < dataList.size(); i++) {\n\t\t\t dataList.get(i).put(\"row\", i+1);\n\t\t}\n\t\t String[] colName = new String[] { \"row\", \"PileNumber\", \"HoleCount\", \"Position\", \"L\", \"CrossingRebar\", \"CrossingConcrete\", \n\t\t\t\t \"Coating\", \"SpreadRebar\",\"SpreadConcrete\", \"ConcreteCap\", \"RubbleBasics\", \"ThickFelt\", \"PermeableGranules\",\"Remarks\"};\n\t\t Date now = new Date(); \n\t\t String date = \"创建时间\" + now.toString();\n\t\t try {\n\t\t\t //request, response, 数值,标题,第一行表头名字,第一行合并坐标,第二行表头名字,第二行合并坐标,数值对应列名称,创建时间,一共多少列,开始第二行表头列,结束第二行表头列,合计开始列\n\t\t\tReportMergeXls.reportMergeXls(request, response, dataList, sheetName, head0,headnum0, head1, headnum1, colName, date,15,5,14,5);\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}", "@GetMapping(value = \"/xls\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<String> generateXLSReport() {\n LOGGER.info(\"Generating Fund XLS report.\");\n\n boolean success =false;\n if(configFilter().getJasperPrint() != null) {\n xlsExporter.setJasperPrint(configFilter().getJasperPrint());\n success = xlsExporter.exportToXlsx(\"fundReport.xlsx\", \"Fund Data\");\n }\n if (success) {\n return new ResponseEntity<>(\"XLS Report is successfully generated \", HttpStatus.OK);\n } else {\n return new ResponseEntity<>(\"XLS Report cannot be generated \", HttpStatus.OK);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n entryreport reg = new entryreport();\r\n try {\r\n /* TODO output your page here. You may use following sample code. */\r\n if(request.getParameter(\"submit\") != null){\r\n \r\n \r\n String s_id = request.getParameter(\"s_id\");\r\n String s_name1 = request.getParameter(\"s_name1\");\r\n String s_name2 = request.getParameter(\"s_name2\");\r\n String classname = request.getParameter(\"classname\");\r\n String sec = request.getParameter(\"sec\");\r\n String ia = request.getParameter(\"ia\");\r\n String kannada = request.getParameter(\"kan\");\r\n String english = request.getParameter(\"eng\");\r\n String hindi = request.getParameter(\"hindi\");\r\n String science = request.getParameter(\"sc\");\r\n String ss = request.getParameter(\"ss\");\r\n String maths = request.getParameter(\"math\");\r\n \r\n String status = reg.insertreport(s_id,s_name1,s_name2,classname,sec,ia,kannada,english,hindi,science,ss,maths);\r\n \r\n \r\n if (status.equals(\"success\")) {\r\n out.println(\"<script type=\\\"text/javascript\\\">\");\r\n out.println(\"alert('IA Report Uploaded Successfully...!!!');\");\r\n out.println(\"location='inputreport.jsp';\");\r\n out.println(\"</script>\");\r\n \r\n } \r\n else if (status.equals(\"failure\")) {\r\n // RequestDispatcher rd1 = request.getRequestDispatcher(\"failure.jsp\" );\r\n // rd1.forward(request, response);\r\n out.println(\"<html>\");\r\n out.println(\"<center>\");\r\n out.println(\"<br><br>\");\r\n out.println(\"<body bgcolor='lightgreen'>\");\r\n out.println(\"<font color='red' size='6'>\");\r\n out.println(\"student does not exist\");\r\n out.println(\"<h3> <a href='fsuccess.jsp'>BACK</a></h3>\"); \r\n out.println(\"</font></center></body></html)\");\r\n\r\n }\r\n \r\n else {\r\n \r\n out.println(\"<html>\");\r\n out.println(\"<center>\");\r\n out.println(\"<br><br>\");\r\n out.println(\"<body bgcolor='lightgreen'>\");\r\n out.println(\"<font color='red' size='6'>\");\r\n out.println(\" you cant enter the report card\");\r\n \r\n out.println(\"</font></center></body></html)\");\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n } \r\n } \r\n catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void downloadSingleExcel(QueryParameter query) {\n try {\n // Get excel\n HttpPost httppost = new HttpPost(HttpURL.getBillURL());\n List<NameValuePair> exportExcelFields = new ArrayList<NameValuePair>();\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(timeYear)\", query.getYearString()));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(timeMonth)\", LAST_MONTH));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(yearId)\", query.getYearString()));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(chars)\", \"\"));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(hiddenDate)\", query.getYearString() + LAST_MONTH));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(type)\", \"power\"));\n exportExcelFields.add(new BasicNameValuePair(\"errorInfo\", \"power\"));\n exportExcelFields.add(new BasicNameValuePair(\"maxrow\", \"12\"));\n exportExcelFields.add(new BasicNameValuePair(\"action\", \"expExcel\"));\n httppost.setEntity(new UrlEncodedFormEntity(exportExcelFields, \"UTF-8\"));\n HttpEntity entity = this.client.execute(httppost).getEntity();\n this.saveExcelFile(entity, getTempExcelName(this.account, query));\n EntityUtils.consume(entity);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@RequestMapping(value = \"/report\", method = RequestMethod.POST)\n\t@ResponseBody\n\tString getReport(HttpServletRequest request, HttpServletResponse response) {\n\n\t\t// Get the Logged in User\n\t\tString name = getLoggedUser();\n\n\t\tString email = request.getParameter(\"email\");\n\t\tRetrieveItems ri = new RetrieveItems(env);\n\t\tList<WorkItem> theList = ri.getItemsDataSQLReport(name);\n\t\tWriteExcel writeExcel = new WriteExcel();\n\t\tSendMessages sm = new SendMessages(env);\n\t\tjava.io.InputStream is = writeExcel.exportExcel(theList);\n\n\t\ttry {\n\t\t\tsm.sendReport(is, email);\n\t\t}catch (IOException e) {\n\t\t\te.getStackTrace();\n\t\t}\n\t\treturn \"Report is created\";\n\t}", "void onActionFromExport() {\n\t\ttry {\n\t\t\tHSSFWorkbook document = new HSSFWorkbook();\n\t\t\tHSSFSheet sheet = ReportUtil.createSheet(document);\n\n\t\t\tsheet.setMargin((short) 0, 0.5);\n\t\t\tReportUtil.setColumnWidths(sheet, 0, 0.5, 1, 0.5, 2, 2, 3, 2, 3, 2, 4, 3, 5, 2, 6, 2, 7, 2, 8, 3, 9, 3, 10,\n\t\t\t\t\t3, 11, 2, 12, 2);\n\n\t\t\tMap<String, HSSFCellStyle> styles = ReportUtil.createStyles(document);\n\n\t\t\tint sheetNumber = 0;\n\t\t\tint rowIndex = 1;\n\t\t\tint colIndex = 1;\n\t\t\tLong index = 1L;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"empList\"), styles.get(\"title\"), 5);\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, ++rowIndex, 1,\n\t\t\t\t\tmessages.get(\"date\") + \": \" + format.format(new Date()), styles.get(\"plain-left-wrap\"), 5);\n\t\t\trowIndex += 2;\n\n\t\t\t/* column headers */\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1, messages.get(\"number-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"firstname-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tif (lastname) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"lastname-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (origin1) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"persuasion-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (register) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"register-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (status) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"status-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (gender) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"gender-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (occ) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"occupation-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (birthday) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"birthDate-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (phoneNo) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"phoneNo-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (email) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"email-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (org) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"organization-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (appointment) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"appointment-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegree) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цэргийн цол\", styles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeStatus) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цолны статус\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeDate) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цол авсан огноо\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (TotalWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"TotalOrgWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (StateWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"stateWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"courtOrgTotalWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtMilitaryWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtSimpleWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (familyCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"familyCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (childCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"childCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\n\t\t\trowIndex++;\n\t\t\tif (listEmployee != null)\n\t\t\t\tfor (Employee empDTO : listEmployee) {\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\tlistEmployee.indexOf(empDTO) + 1 + \"\", styles.get(\"plain-left-wrap-border\"));\n\n\t\t\t\t\tif (lastname) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getLastname() != null) ? empDTO.getLastname() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++, empDTO.getFirstName(),\n\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\n\t\t\t\t\tif (origin1) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOrigin().getName() != null) ? empDTO.getOrigin().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (register) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getRegisterNo() != null) ? empDTO.getRegisterNo() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (status) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getEmployeeStatus() != null) ? empDTO.getEmployeeStatus().name() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gender) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\tmessages.get((empDTO.getGender() != null) ? empDTO.getGender().toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (occ) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOccupation() != null) ? empDTO.getOccupation().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (birthday) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getBirthDate() != null) ? format.format(empDTO.getBirthDate()) : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (phoneNo) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getPhoneNo() != null) ? empDTO.getPhoneNo() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (email) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.geteMail() != null) ? empDTO.geteMail() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (org) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getOrganization() != null) ? empDTO.getOrganization().getName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (appointment) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getAppointment() != null) ? empDTO.getAppointment().getAppointmentName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegree) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getMilitary().getMilitaryName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeStatus) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getDegreeStatus().name() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeDate) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? format.format(dao.getEmployeeMilitary(empDTO.getId()).getOlgosonOgnoo())\n\t\t\t\t\t\t\t\t\t\t: \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (TotalWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getTotalOrgWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getTotalOrgWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\tif (StateWorkedYear) {\n\t\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t\t((getStateWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t\t? getStateWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtOrgTotalWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtOrgTotalWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtMilitaryWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtMilitaryWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtSimpleWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtSimpleWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (familyCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getFamilyCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getFamilyCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (childCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getChildCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getChildCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\t\t\t\t\trowIndex++;\n\t\t\t\t\tindex++;\n\t\t\t\t\tcolIndex = 1;\n\n\t\t\t\t}\n\n\t\t\trowIndex += 2;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1,\n\t\t\t\t\t\"ТАЙЛАН ГАРГАСАН: \" + \"..................................... / \"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getLastname().charAt(0) + \".\"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getFirstName() + \" /\",\n\t\t\t\t\tstyles.get(\"plain-left-wrap\"), 8);\n\t\t\trowIndex++;\n\n\t\t\tOutputStream out = response.getOutputStream(\"application/vnd.ms-excel\");\n\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"employeeList.xls\\\"\");\n\n\t\t\tdocument.write(out);\n\t\t\tout.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Create a new Employee Record</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Enter New Employee information</h1>\");\n out.println(\"<form action=\\\"\" + request.getContextPath() + \"/CreateEmployee\\\" method=\\\"post\\\">\");\n out.println(\"First name: <input type=\\\"text\\\" name=\\\"firstname\\\" /><br />\");\n out.println(\"Last name: <input type=\\\"text\\\" name=\\\"lastname\\\" /><br />\");\n out.println(\"Birth date: <input type=\\\"text\\\" name=\\\"birthdate\\\" />ex: Jun 15, 1970<br />\");\n out.println(\"Salary: $<input type=\\\"number\\\" name=\\\"salary\\\" />ex: 101345.56<br />\");\n out.println(\"<input type=\\\"submit\\\" value=\\\"Submit\\\" />\");\n out.println(\"</form>\");\n out.println(\"<p><a href=\" + request.getContextPath() + \">Back</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n System.out.println(\"---===| Excel Report |===---\");\n response.setContentType(\"application/x-msexcel\");\n \n Company cmp = new Company();\n try{\n Vector listCompany = DbCompany.list(0,0, \"\", \"\");\n if(listCompany!=null && listCompany.size()>0){\n cmp = (Company)listCompany.get(0);\n }\n }catch(Exception ext){\n System.out.println(ext.toString());\n }\n \n Vector result = new Vector();\n String userName = \"\";\n String filter = \"\";\n Vector temp = new Vector();\n Vector locations = DbLocation.list(0,0, \"\", \"name\");\n \n try{\n HttpSession session = request.getSession();\n \n temp = (Vector)session.getValue(\"REPORT_STOCK\");\n userName = (String)session.getValue(\"REPORT_STOCK_USER\");\n filter = (String)session.getValue(\"REPORT_STOCK_FILTER\");\n \n String srcCode = (String)temp.get(0);\n String srcName = (String)temp.get(1);\n int orderBy = Integer.parseInt((String)temp.get(2));\n int orderType = Integer.parseInt((String)temp.get(3));\n int supZero = Integer.parseInt((String)temp.get(4));\n \n String whereClause = \"\";\n String orderClause = \"\";\n\n if(srcCode!=null && srcCode.length()>0){\n whereClause = \" code like '%\"+srcCode+\"%'\"; \n }\n if(srcName!=null && srcName.length()>0){\n if(whereClause!=null && whereClause.length()>0){\n whereClause = whereClause + \" and \";\t\t\n }\n whereClause = whereClause + \" name like '%\"+srcName+\"%'\";\n }\n\n if(supZero==1){\n if(whereClause!=null && whereClause.length()>0){\n whereClause = whereClause + \" and \";\t\t\n }\n whereClause = whereClause + \" qtystock <> 0\";\n }\n\n if(orderBy==0){\n orderClause = \" name\";\n }\n else if(orderBy==1){\n orderClause = \" code\";\n }\n else{\n orderClause = \" qtystock\";\n }\n\n if(orderType==1){\n orderClause = orderClause + \" desc\";\n }\n \n \n result = SessStockReportView.getStockItemList(0, 0, whereClause, orderClause);\n\n \n }catch(Exception e){\n System.out.println(e.toString());\n }\n \n boolean gzip = false ;\n \n // response.setCharacterEncoding( \"UTF-8\" ) ;\n OutputStream gzo ;\n if ( gzip ) {\n response.setHeader( \"Content-Encoding\", \"gzip\" ) ;\n gzo = new GZIPOutputStream( response.getOutputStream() ) ;\n } else {\n gzo = response.getOutputStream() ;\n }\n PrintWriter wb = new PrintWriter( new OutputStreamWriter( gzo, \"UTF-8\" ) ) ;\n\n wb.println(\"<?xml version=\\\"1.0\\\"?>\");\n wb.println(\"<?mso-application progid=\\\"Excel.Sheet\\\"?>\");\n wb.println(\"<Workbook xmlns=\\\"urn:schemas-microsoft-com:office:spreadsheet\\\" \");\n wb.println(\" xmlns:o=\\\"urn:schemas-microsoft-com:office:office\\\" \");\n wb.println(\" xmlns:x=\\\"urn:schemas-microsoft-com:office:excel\\\" \");\n wb.println(\" xmlns:ss=\\\"urn:schemas-microsoft-com:office:spreadsheet\\\" \");\n wb.println(\" xmlns:html=\\\"http://www.w3.org/TR/REC-html40\\\">\");\n wb.println(\"<DocumentProperties xmlns=\\\"urn:schemas-microsoft-com:office:office\\\">\");\n wb.println(\" <Author>Eka D</Author>\");\n wb.println(\"<LastAuthor>Eka D</LastAuthor>\");\n wb.println(\"<Created>2014-09-10T15:22:44Z</Created>\");\n wb.println(\"<Company>Toshiba</Company>\");\n wb.println(\"<Version>14.00</Version>\");\n wb.println(\"</DocumentProperties>\");\n wb.println(\"<OfficeDocumentSettings xmlns=\\\"urn:schemas-microsoft-com:office:office\\\">\");\n wb.println(\"<AllowPNG/>\");\n wb.println(\"</OfficeDocumentSettings>\");\n wb.println(\"<ExcelWorkbook xmlns=\\\"urn:schemas-microsoft-com:office:excel\\\">\");\n wb.println(\"<WindowHeight>5190</WindowHeight>\");\n wb.println(\"<WindowWidth>13395</WindowWidth>\");\n wb.println(\"<WindowTopX>0</WindowTopX>\");\n wb.println(\"<WindowTopY>30</WindowTopY>\");\n wb.println(\"<ProtectStructure>False</ProtectStructure>\");\n wb.println(\"<ProtectWindows>False</ProtectWindows>\");\n wb.println(\"</ExcelWorkbook>\");\n wb.println(\"<Styles>\");\n wb.println(\"<Style ss:ID=\\\"Default\\\" ss:Name=\\\"Normal\\\">\");\n wb.println(\"<Alignment ss:Vertical=\\\"Bottom\\\"/>\");\n wb.println(\"<Borders/>\");\n wb.println(\"<Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"<NumberFormat/>\");\n wb.println(\"<Protection/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s16\\\" ss:Name=\\\"Comma\\\">\");\n wb.println(\"<NumberFormat ss:Format=\\\"_(* #,##0.00_);_(* \\\\(#,##0.00\\\\);_(* &quot;-&quot;??_);_(@_)\\\"/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s62\\\">\");\n wb.println(\"<Interior/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s64\\\" ss:Parent=\\\"s16\\\">\");\n wb.println(\"<Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"<NumberFormat ss:Format=\\\"_(* #,##0_);_(* \\\\(#,##0\\\\);_(* &quot;-&quot;??_);_(@_)\\\"/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s66\\\">\");\n wb.println(\"<Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Bottom\\\"/>\");\n wb.println(\"<Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"12\\\" ss:Color=\\\"#000000\\\" \");\n wb.println(\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s67\\\">\");\n wb.println(\"<Borders/>\");\n wb.println(\"<Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s69\\\">\");\n wb.println(\"<Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Center\\\" ss:WrapText=\\\"1\\\"/>\");\n wb.println(\"<Borders>\");\n wb.println(\"<Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"</Borders>\");\n wb.println(\"<Font ss:FontName=\\\"Tahoma\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"8\\\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s71\\\" ss:Parent=\\\"s16\\\">\");\n wb.println(\"<Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Center\\\" ss:WrapText=\\\"1\\\"/>\");\n wb.println(\"<Borders>\");\n wb.println(\"<Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"</Borders>\");\n wb.println(\"<Font ss:FontName=\\\"Tahoma\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"8\\\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"<NumberFormat ss:Format=\\\"_(* #,##0_);_(* \\\\(#,##0\\\\);_(* &quot;-&quot;??_);_(@_)\\\"/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s72\\\" ss:Parent=\\\"s16\\\">\");\n wb.println(\"<Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Center\\\" ss:WrapText=\\\"1\\\"/>\");\n wb.println(\"<Borders>\");\n wb.println(\"<Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"</Borders>\");\n wb.println(\"<Font ss:FontName=\\\"Tahoma\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"7.5\\\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"<NumberFormat ss:Format=\\\"_(* #,##0_);_(* \\\\(#,##0\\\\);_(* &quot;-&quot;??_);_(@_)\\\"/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s73\\\">\");\n wb.println(\"<Borders/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s75\\\">\");\n wb.println(\"<Alignment ss:Horizontal=\\\"Center\\\" ss:Vertical=\\\"Center\\\" ss:WrapText=\\\"1\\\"/>\");\n wb.println(\"<Borders>\");\n wb.println(\"<Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"</Borders>\");\n wb.println(\"<Font ss:FontName=\\\"Tahoma\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"7.5\\\" ss:Color=\\\"#333333\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s76\\\">\");\n wb.println(\"<Alignment ss:Horizontal=\\\"Left\\\" ss:Vertical=\\\"Center\\\" ss:Indent=\\\"1\\\"/>\");\n wb.println(\"<Borders>\");\n wb.println(\"<Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"</Borders>\");\n wb.println(\"<Font ss:FontName=\\\"Tahoma\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"7.5\\\" ss:Color=\\\"#333333\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s77\\\" ss:Parent=\\\"s16\\\">\");\n wb.println(\"<Alignment ss:Horizontal=\\\"Right\\\" ss:Vertical=\\\"Center\\\" ss:Indent=\\\"1\\\" ss:WrapText=\\\"1\\\"/>\");\n wb.println(\"<Borders>\");\n wb.println(\"<Border ss:Position=\\\"Bottom\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Left\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Right\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"<Border ss:Position=\\\"Top\\\" ss:LineStyle=\\\"Continuous\\\" ss:Weight=\\\"1\\\"/>\");\n wb.println(\"</Borders>\");\n wb.println(\"<Font ss:FontName=\\\"Tahoma\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"7.5\\\" ss:Color=\\\"#333333\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"<NumberFormat ss:Format=\\\"_(* #,##0_);_(* \\\\(#,##0\\\\);_(* &quot;-&quot;??_);_(@_)\\\"/>\");\n wb.println(\"</Style>\");\n wb.println(\"<Style ss:ID=\\\"s78\\\">\");\n wb.println(\"<Font ss:FontName=\\\"Calibri\\\" x:Family=\\\"Swiss\\\" ss:Size=\\\"11\\\" ss:Color=\\\"#000000\\\" ss:Bold=\\\"1\\\"/>\");\n wb.println(\"<Interior/>\");\n wb.println(\"</Style>\");\n wb.println(\"</Styles>\");\n wb.println(\"<Worksheet ss:Name=\\\"Stock Total\\\">\");\n wb.println(\"<Table x:FullColumns=\\\"1\\\" x:FullRows=\\\"1\\\" ss:StyleID=\\\"s62\\\" ss:DefaultRowHeight=\\\"15\\\">\");\n wb.println(\"<Column ss:StyleID=\\\"s62\\\" ss:AutoFitWidth=\\\"0\\\" ss:Width=\\\"29.25\\\"/>\");\n wb.println(\"<Column ss:StyleID=\\\"s62\\\" ss:AutoFitWidth=\\\"0\\\" ss:Width=\\\"63\\\"/>\");\n wb.println(\"<Column ss:StyleID=\\\"s62\\\" ss:Width=\\\"180\\\"/>\");\n wb.println(\"<Column ss:StyleID=\\\"s64\\\" ss:AutoFitWidth=\\\"0\\\" ss:Span=\\\"9\\\"/>\");\n wb.println(\"<Column ss:Index=\\\"14\\\" ss:StyleID=\\\"s64\\\" ss:Width=\\\"49.5\\\"/>\");\n wb.println(\"<Row ss:AutoFitHeight=\\\"0\\\" ss:Height=\\\"15.75\\\">\");\n wb.println(\"<Cell ss:MergeAcross=\\\"\"+(((locations!=null && locations.size()>0) ? locations.size() : 0)+3)+\"\\\" ss:StyleID=\\\"s66\\\"><Data ss:Type=\\\"String\\\">\"+cmp.getName().toUpperCase()+\"</Data></Cell>\");\n wb.println(\"</Row>\");\n wb.println(\"<Row ss:AutoFitHeight=\\\"0\\\" ss:Height=\\\"15.75\\\">\");\n wb.println(\"<Cell ss:MergeAcross=\\\"\"+(((locations!=null && locations.size()>0) ? locations.size() : 0)+3)+\"\\\" ss:StyleID=\\\"s66\\\"><Data ss:Type=\\\"String\\\">STOCK TOTAL BY LOCATION REPORT</Data></Cell>\");\n wb.println(\"</Row>\");\n wb.println(\"<Row ss:Index=\\\"4\\\" ss:AutoFitHeight=\\\"0\\\">\");\n wb.println(\"<Cell ss:StyleID=\\\"s78\\\"><Data ss:Type=\\\"String\\\">Date : \"+JSPFormater.formatDate(new Date(), \"dd/MM/yyyy\")+\", by : \"+userName+\"</Data></Cell>\");\n wb.println(\"</Row>\");\n wb.println(\"<Row ss:AutoFitHeight=\\\"0\\\">\");\n wb.println(\"<Cell ss:StyleID=\\\"s78\\\"><Data ss:Type=\\\"String\\\">\"+filter+\"</Data></Cell>\");\n wb.println(\"</Row>\");\n wb.println(\"<Row ss:AutoFitHeight=\\\"0\\\" ss:Height=\\\"42\\\" ss:StyleID=\\\"s67\\\">\");\n wb.println(\"<Cell ss:StyleID=\\\"s69\\\"><Data ss:Type=\\\"String\\\">NO</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s69\\\"><Data ss:Type=\\\"String\\\">CODE</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s69\\\"><Data ss:Type=\\\"String\\\">ITEM NAME</Data></Cell>\");\n if(locations!=null && locations.size()>0){\n for(int i=0; i<locations.size(); i++){\n Location d = (Location)locations.get(i);\n wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">\"+d.getName()+\"</Data></Cell>\");\n }\n }\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">Coco Mart Bandara R19</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">Coco Mart Bandara R22</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">Coco Mart Bandara R28</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">Coco Mart Blahkiuh</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">Coco Mart Mas Ubud</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">DC1</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">Gudang Costing</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">Gudang Retur</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">xxx</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">xxx</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">xxx</Data></Cell>\");\n //wb.println(\"<Cell ss:StyleID=\\\"s71\\\"><Data ss:Type=\\\"String\\\">Office</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s72\\\"><Data ss:Type=\\\"String\\\">TOTAL</Data></Cell>\");\n wb.println(\"</Row>\");\n \n String wherex = \"(\";\n if(locations!=null && locations.size()>0){\n for(int i=0; i<locations.size(); i++){\n Location d = (Location)locations.get(i);\n wherex = wherex +\" location_id=\"+d.getOID()+\" or\";\n }\n \n wherex = wherex.substring(0,wherex.length()-3)+\")\";\n }\n \n if(result!=null && result.size()>0){\n \n Hashtable hashQty = SessStockReportView.getStockByLocationByItem();//im.getOID(), wherex); \n \n for(int x=0; x<result.size(); x++){\n \n System.out.println(\"- processing line : \"+x);\n \n ItemMaster im = (ItemMaster)result.get(x);\n double totAv = 0;\n double totOtw = 0;\n double totSlp = 0;\n double tot = 0;\n wb.println(\"<Row ss:AutoFitHeight=\\\"0\\\" ss:StyleID=\\\"s73\\\">\");\n wb.println(\"<Cell ss:StyleID=\\\"s75\\\"><Data ss:Type=\\\"Number\\\">\"+(x+1)+\"</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s76\\\"><Data ss:Type=\\\"String\\\">\"+im.getCode()+\"</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s76\\\"><Data ss:Type=\\\"String\\\">\"+im.getName()+\"</Data></Cell>\");\n \n //Hashtable hashQty = SessStockReportView.getStockByLocationByItem();//im.getOID(), wherex);\n \n if(locations!=null && locations.size()>0){\n for(int i=0; i<locations.size(); i++){\n Location d = (Location)locations.get(i);\n double qty = 0;\n if((String)hashQty.get(im.getOID()+\"\"+d.getOID())!=null && ((String)hashQty.get(im.getOID()+\"\"+d.getOID())).length()>0){\n qty = Double.parseDouble((String)hashQty.get(im.getOID()+\"\"+d.getOID()));\n }\n //SessStockReportView.getStockByLocationByItem(im.getOID(), d.getOID(), \"APPROVED\");\n double qtyOtw = 0;//SessStockReportView.getStockByLocationByItem(im.getOID(), d.getOID(), \"DRAFT\");\n double qtySlp = 0;\n //if(displayPending){\n // qtySlp = 0;//SessStockReportView.getSalesPendingLocationByItem(im.getOID(), d.getOID());\n //}\n\n //if(qtyOtw < 0){\n // qtyOtw = qtyOtw * -1;\n //}\n\n //qty = qty - qtyOtw - qtySlp;\n\n totAv = totAv + qty;\n //totOtw = totOtw + qtyOtw;\n //totSlp = totSlp + qtySlp;\n //tot = tot + qty + qtyOtw + qtySlp;\n \n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">\"+qty+\"</Data></Cell>\");\n }\n }\n \n /*wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">12345</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">24</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">0</Data></Cell>\");\n */ \n wb.println(\"<Cell ss:StyleID=\\\"s77\\\"><Data ss:Type=\\\"Number\\\">\"+(totAv + totOtw +totSlp)+\"</Data></Cell>\");\n wb.println(\"</Row>\");\n \n wb.flush() ;\n }\n }\n \n wb.println(\"</Table>\");\n wb.println(\"<WorksheetOptions xmlns=\\\"urn:schemas-microsoft-com:office:excel\\\">\");\n wb.println(\"<PageSetup>\");\n wb.println(\"<Header x:Margin=\\\"0.3\\\"/>\");\n wb.println(\"<Footer x:Margin=\\\"0.3\\\"/>\");\n wb.println(\"<PageMargins x:Bottom=\\\"0.75\\\" x:Left=\\\"0.7\\\" x:Right=\\\"0.7\\\" x:Top=\\\"0.75\\\"/>\");\n wb.println(\"</PageSetup>\");\n wb.println(\"<Unsynced/>\");\n wb.println(\"<Print>\");\n wb.println(\"<ValidPrinterInfo/>\");\n wb.println(\"<PaperSizeIndex>9</PaperSizeIndex>\");\n wb.println(\"<VerticalResolution>0</VerticalResolution>\");\n wb.println(\"</Print>\");\n wb.println(\"<Selected/>\");\n wb.println(\"<Panes>\");\n wb.println(\"<Pane>\");\n wb.println(\"<Number>3</Number>\");\n wb.println(\"<ActiveRow>13</ActiveRow>\");\n wb.println(\"<ActiveCol>2</ActiveCol>\");\n wb.println(\"</Pane>\");\n wb.println(\"</Panes>\");\n wb.println(\"<ProtectObjects>False</ProtectObjects>\");\n wb.println(\"<ProtectScenarios>False</ProtectScenarios>\");\n wb.println(\"</WorksheetOptions>\");\n wb.println(\"</Worksheet>\");\n wb.println(\"<Worksheet ss:Name=\\\"Sheet2\\\">\");\n wb.println(\"<Table ss:ExpandedColumnCount=\\\"1\\\" ss:ExpandedRowCount=\\\"1\\\" x:FullColumns=\\\"1\\\" \");\n wb.println(\" x:FullRows=\\\"1\\\" ss:DefaultRowHeight=\\\"15\\\">\");\n wb.println(\"<Row ss:AutoFitHeight=\\\"0\\\"/>\");\n wb.println(\"</Table>\");\n wb.println(\"<WorksheetOptions xmlns=\\\"urn:schemas-microsoft-com:office:excel\\\">\");\n wb.println(\"<PageSetup>\");\n wb.println(\"<Header x:Margin=\\\"0.3\\\"/>\");\n wb.println(\"<Footer x:Margin=\\\"0.3\\\"/>\");\n wb.println(\"<PageMargins x:Bottom=\\\"0.75\\\" x:Left=\\\"0.7\\\" x:Right=\\\"0.7\\\" x:Top=\\\"0.75\\\"/>\");\n wb.println(\"</PageSetup>\");\n wb.println(\"<Unsynced/>\");\n wb.println(\"<ProtectObjects>False</ProtectObjects>\");\n wb.println(\"<ProtectScenarios>False</ProtectScenarios>\");\n wb.println(\"</WorksheetOptions>\");\n wb.println(\"</Worksheet>\");\n wb.println(\"<Worksheet ss:Name=\\\"Sheet3\\\">\");\n wb.println(\"<Table ss:ExpandedColumnCount=\\\"1\\\" ss:ExpandedRowCount=\\\"1\\\" x:FullColumns=\\\"1\\\"\");\n wb.println(\" x:FullRows=\\\"1\\\" ss:DefaultRowHeight=\\\"15\\\">\");\n wb.println(\"<Row ss:AutoFitHeight=\\\"0\\\"/>\");\n wb.println(\"</Table>\");\n wb.println(\"<WorksheetOptions xmlns=\\\"urn:schemas-microsoft-com:office:excel\\\">\");\n wb.println(\"<PageSetup>\");\n wb.println(\"<Header x:Margin=\\\"0.3\\\"/>\");\n wb.println(\"<Footer x:Margin=\\\"0.3\\\"/>\");\n wb.println(\"<PageMargins x:Bottom=\\\"0.75\\\" x:Left=\\\"0.7\\\" x:Right=\\\"0.7\\\" x:Top=\\\"0.75\\\"/>\");\n wb.println(\"</PageSetup>\");\n wb.println(\"<Unsynced/>\");\n wb.println(\"<ProtectObjects>False</ProtectObjects>\");\n wb.println(\"<ProtectScenarios>False</ProtectScenarios>\");\n wb.println(\"</WorksheetOptions>\");\n wb.println(\"</Worksheet>\");\n wb.println(\"</Workbook>\");\n\n wb.flush() ;\n }", "protected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tString bscPeriod = request.getParameter(\"bscPeriod\");\n\t\tString department = request.getParameter(\"department\");\n\t\tString position = request.getParameter(\"position\");\n\t\tString bscEmployeeName = null;\n\t\t\n\t\tif (position.equals(\"Executive Manager Business Banking\")){\n\t\t\tbscEmployeeName = \"NOZIZWE MULELA\"; \n\t\t} else if (position.equals(\"Executive Manager Corporate Services\")){\n\t\t\tbscEmployeeName = \"THEMBI DLAMINI\"; \n\t\t}else if (position.equals(\"Executive Manager Credit\")){\n\t\t\tbscEmployeeName = \"DUMASE NXUMALO\"; \n\t\t}else if (position.equals(\"Executive Manager Finance\")){\n\t\t\tbscEmployeeName = \"ZANELE DLAMINI\"; \n\t\t}else if (position.equals(\"Executive Manager Internal Audit\")){\n\t\t\tbscEmployeeName = \"TAWONGA SIFUNDZA\"; \n\t\t}else if (position.equals(\"Executive Manager IT\")){\n\t\t\tbscEmployeeName = \"PAUL WASWA\"; \n\t\t}else if (position.equals(\"Executive Manager Legal and Board Secretary\")){\n\t\t\tbscEmployeeName = \"SIFISO MDLULI\"; \n\t\t}else if (position.equals(\"Executive Manager Marketing\")){\n\t\t\tbscEmployeeName = \"LINDIWE SHONGWE\"; \n\t\t}else if (position.equals(\"Executive Manager Operations\")){\n\t\t\tbscEmployeeName = \"ENOC MAVIMBELA\"; \n\t\t}\n\t\t\n\t\tString bscEmployeeSupervisor = \"ZAKELE LUKHELE\";\n\t\tString subDepartment = \"Exco\";\n\t\tString[] perspectives = request.getParameterValues(\"perspective\");\n\t\tString[] objectives = request.getParameterValues(\"objective\");\n\t\tString[] periods = request.getParameterValues(\"period\");\n\t\tString[] reportingFrequencies = request.getParameterValues(\"reportingFrequency\");\n\t\tString[] measures = request.getParameterValues(\"measure\");\n\t\tString[] bases = request.getParameterValues(\"base\");\n\t\tString[] stretches = request.getParameterValues(\"stretch\");\n\t\tString[] actuals = request.getParameterValues(\"actual\");\n\t\t\n\n\t\tConnectionHelper connectionHelper = new ConnectionHelper();\n\t\tcon = connectionHelper.connect();\n\t\tif (con != null) {\n\n\t\t\tString insertIssueSql = \"INSERT INTO [dbo].[bscSDSBExcoScores] \"\n\t\t\t\t\t+ \"([bscEmployeeName] \"\n\t\t\t\t\t+ \",[bscEmployeeSupervisor]\"\n\t\t\t\t\t+ \",[position]\"\n\t\t\t\t\t+ \",[department] \"\n\t\t\t\t\t+ \",[subDepartment] \"\n\t\t\t\t\t+ \",[bscPeriod] \"\n\t\t\t\t\t+ \",[perspective] \"\n\t\t\t\t\t+ \",[objective] \"\n\t\t\t\t\t+ \",[period] \"\n\t\t\t\t\t+ \",[reportingFrequencies] \"\n\t\t\t\t\t+ \",[measure] \"\n\t\t\t\t\t+ \",[base] \"\n\t\t\t\t\t+ \",[stretch] \"\n\t\t\t\t\t+ \",[actual]) \"\n\t\t\t\t\t+ \"VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n\n\t\t\ttry {\n\n\t\t\t\tjava.sql.PreparedStatement insertReportStatement = con.prepareStatement(insertIssueSql);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < measures.length; i++) {\n\t\t\t\t\t\n\t\t\t\t\tinsertReportStatement.setString(1, bscEmployeeName);\n\t\t\t\t\tinsertReportStatement.setString(2, bscEmployeeSupervisor);\n\t\t\t\t\tinsertReportStatement.setString(3, position);\n\t\t\t\t\tinsertReportStatement.setString(4, department);\n\t\t\t\t\tinsertReportStatement.setString(5, subDepartment);\n\t\t\t\t\tinsertReportStatement.setString(6, bscPeriod);\n\t\t\t\t\tinsertReportStatement.setString(7, perspectives[i]);\n\t\t\t\t\tinsertReportStatement.setString(8, objectives[i]);\n\t\t\t\t\tinsertReportStatement.setString(9, periods[i]);\n\t\t\t\t\tinsertReportStatement.setString(10, reportingFrequencies[i]);\n\t\t\t\t\tinsertReportStatement.setString(11, measures[i]);\n\t\t\t\t\tinsertReportStatement.setFloat(12, Float.valueOf(bases[i]));\n\t\t\t\t\tinsertReportStatement.setFloat(13, Float.valueOf(stretches[i]));\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tinsertReportStatement.setFloat(14, Float.parseFloat(actuals[i]));\n\t\t\t\t\tSystem.out.println(Float.parseFloat(actuals[i]));\n\t\t\t\t\tinsertReportStatement.executeUpdate();\n\t\t\t\t}\n\n\t\t\t\tinsertReportStatement.close();\n\t\t\t\tcon.close();\n\n\t\t\t\tRequestDispatcher view = request\n\t\t\t\t\t\t.getRequestDispatcher(\"WEB-INF/technicalResources_bsc/bscExcoHome.jsp\");\n\n\t\t\t\tview.forward(request, response);\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tfinally {\n\t\t\t\tif (con != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tConnectionHelper.disconnect(con);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}", "@ResponseBody\n @RequestMapping(value = \"export.do\", method = RequestMethod.GET)\n public List<UserInfo> export(HttpServletRequest request)\n {\n List<UserInfo> list = new ArrayList<>();\n for (int i = 0; i < 100; i++)\n {\n int no = i + 1;\n UserInfo vo = new UserInfo();\n vo.setEmpCode(\"USER\" + no);\n vo.setEmpName(\"用户\" + no);\n vo.setUserName(\"user\" + no);\n vo.setId(\"EMP\" + no);\n vo.setSex(new Random().nextBoolean() ? \"男\" : \"女\");\n vo.setTel(new Random().nextInt(1000) + \"\");\n list.add(vo);\n }\n return list;\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString index = request.getParameter(\"index\");\n\t\tString sheet_id = request.getParameter(\"sheet_id\");\n\t\tString shift = request.getParameter(\"shift\");\n\t\tif(index==null) {\n\t\t\tif (sheet_id == null) {\n\t\t\t\tthis.StringOutPut(\"error_sheet\", response);\n\t\t\t} else {\n\t\t\t\tJSONArray JA = new JSONArray();\n\n\t\t\t\ttry {\n\t\t\t\t\tList<Period> prds = Period.getAllPeriod(sheet_id);\n\n\t\t\t\t\t\tfor (int i = 0; i < prds.size(); i++) {\n\t\t\t\t\t\t\tJSONObject jso = new JSONObject();\n\n\t\t\t\t\t\t\tjso.put(\"id\", prds.get(i).getId());\n\t\t\t\t\t\t\tjso.put(\"shift\", prds.get(i).getShift());\n\t\t\t\t\t\t\tjso.put(\"time\", prds.get(i).getTime());\n\t\t\t\t\t\t\tjso.put(\"gener\", prds.get(i).getGener());\n\t\t\t\t\t\t\tjso.put(\"gener_id\", prds.get(i).getGener_id());\n\n\t\t\t\t\t\t\tJA.add(jso);\n\t\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tJSONObject jsonObject = new JSONObject();\n\t\t\t\tjsonObject.put(\"total\", 20);\n\t\t\t\tjsonObject.put(\"rows\", JA);\n\t\t\t\tOutputHelper.StringOutPut(jsonObject.toString(), response);\n\t\t\t}\n\t\t}else{\n\t\t\tif(index.equals(\"shift\")){\n\t\t\t\tif (sheet_id == null) {\n\t\t\t\t\tthis.StringOutPut(\"error_sheet\", response);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tOutputHelper.StringOutPut(Period.getShift(sheet_id), response);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(index.equals(\"rest\")){\n\t\t\t\tif (sheet_id == null||shift == null) {\n\t\t\t\t\tthis.StringOutPut(\"error_sheet\", response);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tOutputHelper.StringOutPut(Period.getRestPeriod(sheet_id,shift), response);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if(index.equals(\"fromshift\")){\n\t\t\t\tif (sheet_id == null||shift == null) {\n\t\t\t\t\tthis.StringOutPut(\"error_sheet\", response);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tJSONArray JA = new JSONArray();\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tList<Period> prds = Period.getAllPeriod(sheet_id,shift);\n\n\t\t\t\t\t\tfor (int i = 0; i < prds.size(); i++) {\n\t\t\t\t\t\t\tJSONObject jso = new JSONObject();\n\n\t\t\t\t\t\t\tjso.put(\"id\", prds.get(i).getId());\n\t\t\t\t\t\t\tjso.put(\"shift\", prds.get(i).getShift());\n\t\t\t\t\t\t\tjso.put(\"time\", prds.get(i).getTime());\n\t\t\t\t\t\t\tjso.put(\"gener\", prds.get(i).getGener());\n\t\t\t\t\t\t\tjso.put(\"gener_id\", prds.get(i).getGener_id());\n\n\t\t\t\t\t\t\tJA.add(jso);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException 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\tJSONObject jsonObject = new JSONObject();\n\t\t\t\t\tjsonObject.put(\"total\", 20);\n\t\t\t\t\tjsonObject.put(\"rows\", JA);\n\t\t\t\t\tOutputHelper.StringOutPut(jsonObject.toString(), response);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\nthrows ServletException, IOException {\nString userName = request.getParameter(\"username\");\n// retrieve the PrintWriter object and use it to output the greeting\nresponse.setContentType(\"text/html;charset=UTF-8\");\nPrintWriter out = response.getWriter();\ntry{\nout.println(\"<html>\");\nout.println(\"<head><title>GetParameter Servlet</title></head>\");\nout.println(\"<body>\");\nout.println(\"<h1>\");\nout.println(\"HELLO, \" + userName + \"!\");\nout.println(\"</h1>\");\nout.println(\"</body>\");\nout.println(\"</html>\");\n}\nfinally{\nout.close();\n}\n}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(EmployeeServlet.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void exportToCSV();", "@RequestMapping(value = \"/report/xls\")\r\n\tpublic ModelAndView generateXLSReport() {\r\n\r\n\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\r\n\r\n\t\tList<Person> personList = personService.getAll();\r\n\r\n\t\tJRDataSource person_list = new JRBeanCollectionDataSource(personList);\r\n\r\n\t\tparameterMap.put(\"person_list\", person_list);\r\n\r\n\t\treturn new ModelAndView(\"personReportList_xls\", parameterMap);\r\n\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n out.print(\"<html>\"\n + \"<head>\");\n Controller head=new Controller(); \n if(request.getSession().getAttribute(\"user\")==null){\n response.sendRedirect(\"logout.jsp?error=Desconectado por inatividade.\");\n return;\n }\n JpbxDB db=new JpbxDB();\n //CSV\n if(request.getParameter(\"method\")!=null&&request.getParameter(\"method\").equals(\"csv\")){\n String csv;\n if(request.getSession().getAttribute(\"lvl\").equals(\"Administrador\"))\n csv=db.buildCSV(request.getParameter(\"dateini\"),request.getParameter(\"dateend\"),request.getParameter(\"order\"),\n request.getParameter(\"src\"),request.getParameter(\"dstfinal\"),request.getParameter(\"ccost\"),\n request.getParameter(\"status\"),request.getParameter(\"srcseek\"),request.getParameter(\"dstseek\"));\n else\n csv=db.buildCSV(request.getParameter(\"dateini\"),request.getParameter(\"dateend\"),request.getParameter(\"order\"),\n request.getParameter(\"src\"),request.getParameter(\"dstfinal\"),request.getParameter(\"ccost\"),\n request.getParameter(\"status\"),request.getParameter(\"srcseek\"),request.getParameter(\"dstseek\"),\n db.getUserCompany(request.getSession().getAttribute(\"user\").toString()));\n if(csv.equals(\"ok\")){\n out.print(\"<script>\"\n + \"alert('Falha na Compressão. Verifique se o programa rar está instalado.');\"\n + \"window.history.back(-1);\"\n + \"</script>\");\n return;\n }\n else if(csv.substring(0, 9).equals(\"Relatorio\")){ \n response.sendRedirect(\"/jpbx/asterisk/reports/Relatorio.rar\"); \n return;\n }\n else{\n csv=csv.replaceAll(\"'\", \"\");\n out.print(\"<script>\"\n + \"alert('Falhou</br>\"+csv+\"');\"\n + \"window.history.back(-1);\"\n + \"</script>\");\n return;\n }\n }\n //CSVFIM\n int pagSeq=0,numCalls;\n int data[]=db.getLimitRelCalls();\n int limitSeq=data[0];\n out.print(head.header(\"JPBX->Report->Show\")+\"\"\n + \"<link rel=\\\"stylesheet\\\" href=\\\"css/jquery-ui-1.10.3/themes/base/jquery-ui.css\\\"/>\\n\" +\n \"<script src=\\\"css/jquery-ui-1.10.3/ui/jquery-ui.js\\\"></script>\");\n \n out.print(\"</head>\"\n + \"<body>\");\n String[] numCount;\n if(request.getSession().getAttribute(\"lvl\").equals(\"Administrador\"))\n numCount=db.countRelCalls(request.getParameter(\"dateini\"),request.getParameter(\"dateend\"),request.getParameter(\"order\"),\n request.getParameter(\"src\"),request.getParameter(\"dstfinal\"),request.getParameter(\"ccost\"),\n request.getParameter(\"status\"),request.getParameter(\"srcseek\"),request.getParameter(\"dstseek\"));\n else\n numCount=db.countRelCalls(request.getParameter(\"dateini\"),request.getParameter(\"dateend\"),request.getParameter(\"order\"),\n request.getParameter(\"src\"),request.getParameter(\"dstfinal\"),request.getParameter(\"ccost\"),\n request.getParameter(\"status\"),request.getParameter(\"srcseek\"),request.getParameter(\"dstseek\"),\n db.getUserCompany(request.getSession().getAttribute(\"user\").toString()));\n out.print(head.navigator(request.getSession().getAttribute(\"lvl\").toString()));//conta os registros\n numCalls=Integer.parseInt(numCount[5]);\n if(numCalls==0)\n out.print(\"<script>\"\n + \"alert('Nenhum Dado Encontrado.');\"\n + \"window.history.back(-1);</script>\");\n if(request.getSession().getAttribute(\"lvl\").equals(\"Administrador\"))\n out.print(\"<div id=\\\"container\\\" class=\\\"container table-bordered\\\">\"+numCount[0]\n +\"<div id=\\\"rel\\\">\"+ db.relCalls(request.getParameter(\"dateini\"),request.getParameter(\"dateend\"),request.getParameter(\"order\"),\n request.getParameter(\"src\"),request.getParameter(\"dstfinal\"),request.getParameter(\"ccost\"),\n request.getParameter(\"status\"),pagSeq,limitSeq,request.getParameter(\"srcseek\"),request.getParameter(\"dstseek\")) //limit\n );// escreve registros em tabela e fecha\n else\n out.print(\"<div id=\\\"container\\\" class=\\\"container table-bordered\\\">\"+numCount[0]\n +\"<div id=\\\"rel\\\">\"+ db.relCalls(request.getParameter(\"dateini\"),request.getParameter(\"dateend\"),request.getParameter(\"order\"),\n request.getParameter(\"src\"),request.getParameter(\"dstfinal\"),request.getParameter(\"ccost\"),\n request.getParameter(\"status\"),pagSeq,limitSeq,request.getParameter(\"srcseek\"),request.getParameter(\"dstseek\"),\n db.getUserCompany(request.getSession().getAttribute(\"user\").toString())) //limit\n );// escreve registros em tabela e fecha\n out.print(\"</div>\" //fecha div rel\n + \"<div class=\\\"clearfix\\\"></div>\");\n //começa paginação\n out.print(\"<div class=\\\"pagination pagination-right pagination-small\\\" style=\\\"padding-right: 5%\\\">\"\n +\"<ul>\");\n if(numCalls>limitSeq){\n int pages=(numCalls/limitSeq);\n if((numCalls%limitSeq)!=0)\n pages++;\n for(int i=1;i<=pages;i++){\n out.print(\"<li id=\\\"pag\"+i+\"\\\" \"+(i==1?\"class=\\\"active\\\"\":\"\")+\"><a onclick=\\\"pages(this.text);\\\" href=\\\"#\\\">\"+i+\"</a></li>\");\n }\n }\n else\n out.print(\"<li class=\\\"active\\\"><a href=\\\"#\\\">1</a></li>\");\n out.print(\"</ul>\"\n + \"</div>\");\n //fim paginação\n out.print(\"</div>\");//fecha div container\n out.print(\"<div id=\\\"divdialogs\\\"></div>\");\n out.print(\"<script>\"\n + \"$(function(){\"\n + \" $('td').css('font-size', 14);\"\n + \" startCountDown();\"\n + \"});\"\n + \"function delCall(uniqueid){\"\n + \"loadInternal('WebServ?delCall='+uniqueid,'alert');\"\n + \"}\"\n + \"function dialogs(uniqueid){\"\n + \"loadInternal('WebServ?relDialog='+uniqueid,'divdialogs');\"\n + \"}\"\n + \"currentPage=1;\"\n + \"function pages(numPage){\"\n + \" if(currentPage!==numPage){\"\n + \" loadInternal('WebServ?dateini=\"+request.getParameter(\"dateini\")+\"&\"\n + \"dateend=\"+request.getParameter(\"dateend\")+\"&order=\"+request.getParameter(\"order\")+\"&\"\n + \"src=\"+request.getParameter(\"src\")+\"&dstfinal=\"+request.getParameter(\"dstfinal\")+\"&\"\n + \"ccost=\"+request.getParameter(\"ccost\")+\"&status=\"+request.getParameter(\"status\")+\"&\"\n + \"limit=\"+limitSeq+\"&srcseek=\"+request.getParameter(\"srcseek\")+\"&\"\n + \"dstseek=\"+request.getParameter(\"dstseek\")+\"&relPag='+numPage,'rel');\"\n + \" $('.pagination > ul li').removeClass();\"\n + \" $('#pag'+numPage).attr('class','active');\" \n + \" currentPage=numPage;\"\n + \" }\"\n + \"}\"\n +\"time=\"+request.getSession().getMaxInactiveInterval()+\";\"\n +\"user='\"+request.getSession().getAttribute(\"user\")+\"';\"\n +\"function startCountDown(){\" \n +\" if(time>0){\" \n +\" $('#cron').html('Olá '+user+'</br>'+countDown(time));\" \n +\" time-=1;\" \n +\" setTimeout('startCountDown();', 1000);\" \n +\" }else{\" \n +\" $('#cron').html('Sessão Expirada!');\" \n +\" }\" \n +\"}\"\n + \"</script>\"\n + \"<div id=\\\"alert\\\"></div>\"\n + \"</body>\"\n + \"</html>\"); \n }", "@RequestMapping(value = \"/downloadphoto\", method = RequestMethod.GET)\n void buildDynamicReportDownload(HttpServletRequest request, HttpServletResponse response) {\n try {\n\n // Get the form id from the submitted form.\n String photoKey = request.getParameter(\"photoKey\");\n byte[] photoBytes = s3Client.getObjectBytes(bucketName, photoKey) ;\n InputStream is = new ByteArrayInputStream(photoBytes);\n\n // Define the required information here.\n response.setContentType(\"image/png\");\n response.setHeader(\"Content-disposition\", \"attachment; filename=\"+photoKey);\n org.apache.commons.io.IOUtils.copy(is, response.getOutputStream());\n response.flushBuffer();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void actionExport_actionPerformed(ActionEvent e) throws Exception {\n\t\t\n\t\tFile tempFile;\n\t\t\t\t\n\t\tKDTable table = getTableForCommon();\n\t\tif(table != null){\n\t\t\tInteger rowMax = queryHelper.getCanExportMaxRowIndex(table.getName());\n\t\t\tif(table.getRowCount()>rowMax.intValue()){\n\t\t\t\tMsgBox.showInfo(this,\"您没有全部公司的权限,您只能导出前\"+rowMax.toString()+\"行\");\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttempFile = File.createTempFile(\"eastemp\", \".xls\");\n\t\t\t\ttable.getIOManager().setTempFileDirection(\n\t\t\t\t\t\ttempFile.getPath());\n\t\t\t\ttable.getIOManager().exportExcelToTempFile(false);\n\t\t\t\ttempFile.deleteOnExit();\n\t\t\t}\n\t\t}\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString selectedTable = request.getParameter(\"selectedTable\");\n\n\t\t//上传文件\n\t\tString upLoadPath = this.getServletConfig().getServletContext().getRealPath(\"/\") + \"/defaultSetting/\";\n\t\tSystem.out.println(upLoadPath);\n\t\tupLoadPath = upLoadPath.replaceAll(\"%20\", \" \");// 空格\n\t\tFile saveDir = new File(upLoadPath);\n\t\t// 如果目录不存在,就创建目录,如果存在就删除然后重建\n\t\tif (!saveDir.exists()) {\n\t\t\tsaveDir.mkdir();\n\t\t}\n//\t\telse {\n//\t\t\tsaveDir.delete();\n//\t\t\tsaveDir.mkdir();\n//\t\t}\n\t\tfilePath = upLoadPath+selectedTable+\".xml\";\n\t\tString result = fileRead(filePath);\n\t\tPrintWriter pWriter = response.getWriter();\n\t\t\n\t\tpWriter.write(result);\n\t\tpWriter.close();\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try\n {\n Connection con = conexao.abrirConexao();\n HashMap parametros = new HashMap();\n \n HttpSession session = request.getSession();\n \n ServletContext sc = getServletContext();\n String nomeArquivo = sc.getRealPath(\"/\") + \"RelatorioPC.pdf\";\n JasperPrint jp = JasperFillManager.fillReport(sc.getRealPath(\"/jasper/RelatorioPC.jasper\"), parametros, con);\n JasperExportManager.exportReportToPdfFile(jp, nomeArquivo); \n \n response.sendRedirect(\"RelatorioPC.pdf\");\n\n }\n catch (Exception e)\n {\n System.err.println(\"Erro3: \" + e);\n }\n finally\n {\n //out.close();\n }\n }", "@RequestMapping(\"/exportItem\")\n\tpublic ModelAndView exportData() {\n\t\tList<Item> item = service.getAll();\n\t\treturn new ModelAndView(new ItemXlsxView(),\"itemList\",item);\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n String employeeName = request.getParameter(\"employeeName\");\n String employeeNRIC = request.getParameter(\"employeeNRIC\");\n String employeeEmail = request.getParameter(\"employeeEmail\");\n String employeeNumber = request.getParameter(\"employeeNumber\");\n String employeeBankAccount = request.getParameter(\"employeeBankAccount\");\n String employeeCPF = request.getParameter(\"employeeCPF\");\n String employeePosition = request.getParameter(\"employeePosition\");\n String supervisor = request.getParameter(\"supervisor\");\n String employeeSalary = request.getParameter(\"employeeSalary\");\n String isAdminValue = request.getParameter(\"isAdmin\");\n //if it is admin, should be 0\n /*int isAdmin = 1;\n if(isAdminValue==\"yes\"){\n isAdmin = 0;\n }*/\n String tempPassword = request.getParameter(\"tempPassword\");\n String employeeID = employeeEmail.substring(0, employeeEmail.indexOf(\"@\"));\n \n EmployeeDAO empDAO= new EmployeeDAO();\n if(empDAO.createEmployee(employeeID, tempPassword, employeeEmail, isAdminValue, employeeSalary, employeePosition, supervisor, Double.parseDouble(employeeCPF), employeeBankAccount, employeeNRIC, employeeName, employeeNumber)) {\n request.setAttribute(\"Employee Added\", \"status\");\n response.sendRedirect(\"ViewEmployee.jsp\");\n } else {\n request.setAttribute(\"Unable to add Employee\", \"status\");\n response.sendRedirect(\"CreateUser.jsp\");\n }\n //RequestDispatcher rd = request.getRequestDispatcher(\"CreateUser.jsp\");\n //rd.forward(request,response);\n \n }\n }", "@Override\r\n\tpublic String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\treturn \"/WEB-INF/view/attendance/attendance_form.jsp\";\r\n\t}", "@RequestMapping(value = \"/grtICFileForm\", method = RequestMethod.GET)\r\n\tpublic ModelAndView grtICFileForm(HttpServletRequest request) {\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: grtICFileForm()\");\r\n\t\tModelAndView modelAndView = new ModelAndView(\"inors/grtICFileForm\");\r\n\r\n\t\tString testAdministrationVal = (String) request.getParameter(\"p_test_administration\");\r\n\t\tString testProgram = (String) request.getParameter(\"p_test_program\");\r\n\t\tString corpDiocese = (String) request.getParameter(\"p_corpdiocese\");\r\n\t\tString school = (String) request.getParameter(\"p_school\");\r\n\t\tlogger.log(IAppLogger.INFO, \"testAdministrationVal=\" + testAdministrationVal);\r\n\t\tlogger.log(IAppLogger.INFO, \"testProgram=\" + testProgram);\r\n\t\tlogger.log(IAppLogger.INFO, \"corpDiocese=\" + corpDiocese);\r\n\t\tlogger.log(IAppLogger.INFO, \"school=\" + school);\r\n\r\n\t\tif ((testAdministrationVal == null) || (\"null\".equalsIgnoreCase(testAdministrationVal))) {\r\n\t\t\tString reportUrl = (String) request.getParameter(\"reportUrl\");\r\n\t\t\tlogger.log(IAppLogger.INFO, \"reportUrl=\" + reportUrl);\r\n\t\t\tmodelAndView.addObject(\"reportUrl\", reportUrl);\r\n\t\t\t// get parameter values for report\r\n\t\t\tMap<String, Object> parameters = getReportParameters(request, reportUrl);\r\n\t\t\tlogger.log(IAppLogger.INFO, \"parameters = \" + parameters);\r\n\t\t\trequest.getSession().setAttribute(IApplicationConstants.REPORT_TYPE_CUSTOM + \"parameters\" + reportUrl, parameters);\r\n\t\t\tif ((parameters != null) && (!parameters.isEmpty())) {\r\n\t\t\t\ttestAdministrationVal = CustomStringUtil.getNotNullString(parameters.get(\"p_test_administration\"));\r\n\t\t\t\ttestProgram = CustomStringUtil.getNotNullString(parameters.get(\"p_test_program\"));\r\n\t\t\t\tcorpDiocese = CustomStringUtil.getNotNullString(parameters.get(\"p_corpdiocese\"));\r\n\t\t\t\tschool = CustomStringUtil.getNotNullString(parameters.get(\"p_school\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.log(IAppLogger.INFO, \"testAdministrationVal=\" + testAdministrationVal);\r\n\t\tlogger.log(IAppLogger.INFO, \"testProgram=\" + testProgram);\r\n\t\tlogger.log(IAppLogger.INFO, \"corpDiocese=\" + corpDiocese);\r\n\t\tlogger.log(IAppLogger.INFO, \"school=\" + school);\r\n\r\n\t\tString productName = getProductNameById(testAdministrationVal);\r\n\t\tlogger.log(IAppLogger.INFO, \"productName=\" + productName);\r\n\r\n\t\tmodelAndView.addObject(\"testAdministrationVal\", testAdministrationVal);\r\n\t\tmodelAndView.addObject(\"testAdministrationText\", productName);\r\n\t\tmodelAndView.addObject(\"testProgram\", testProgram);\r\n\t\tmodelAndView.addObject(\"corpDiocese\", corpDiocese);\r\n\t\tmodelAndView.addObject(\"school\", school);\r\n\r\n\t\tString reportId = (String) request.getParameter(\"reportId\");\r\n\t\tString productId = (testAdministrationVal == null) ? IApplicationConstants.DEFAULT_PRODUCT_ID : testAdministrationVal;\r\n\t\tString customerId = (String) request.getSession().getAttribute(IApplicationConstants.CUSTOMER);\r\n\t\tString orgNodeLevel = ((Long) request.getSession().getAttribute(IApplicationConstants.CURRORGLVL)).toString();\r\n\t\t// String currentUserId = (String) request.getSession().getAttribute(IApplicationConstants.CURRUSERID);\r\n\t\tlogger.log(IAppLogger.INFO, \"reportId=\" + reportId);\r\n\t\tlogger.log(IAppLogger.INFO, \"productId=\" + productId);\r\n\t\tlogger.log(IAppLogger.INFO, \"customerId=\" + customerId);\r\n\t\tlogger.log(IAppLogger.INFO, \"orgNodeLevel=\" + orgNodeLevel);\r\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\r\n\t\tparamMap.put(\"REPORT_ID\", reportId);\r\n\t\tparamMap.put(\"PRODUCT_ID\", productId);\r\n\t\tparamMap.put(\"CUSTOMER_ID\", customerId);\r\n\t\tparamMap.put(\"ORG_NODE_LEVEL\", orgNodeLevel);\r\n\t\t// paramMap.put(\"USER_ID\", currentUserId);\r\n\t\tList<ReportMessageTO> reportMessages = reportService.getAllReportMessages(paramMap);\r\n\t\tmodelAndView.addObject(\"reportMessages\", reportMessages);\r\n\t\tString dataloadMessage = getReportMessage(reportMessages, IApplicationConstants.DASH_MESSAGE_TYPE.DM.toString(), IApplicationConstants.DATALOAD_MESSAGE);\r\n\t\tlogger.log(IAppLogger.INFO, \"dataloadMessage=\" + dataloadMessage);\r\n\t\tmodelAndView.addObject(\"dataloadMessage\", dataloadMessage);\r\n\r\n\t\tString currentAdminYear = inorsService.getCurrentAdminYear();\r\n\t\tint lastAdmYr = Integer.parseInt(currentAdminYear) - 1;\r\n\t\tString lastAdminYear = String.valueOf(lastAdmYr);\r\n\t\tlogger.log(IAppLogger.INFO, \"currentAdminYear=\" + currentAdminYear);\r\n\t\tlogger.log(IAppLogger.INFO, \"lastAdminYear=\" + lastAdminYear);\r\n\r\n\t\tmodelAndView.addObject(\"currentAdminYear\", currentAdminYear);\r\n\t\tmodelAndView.addObject(\"lastAdminYear\", lastAdminYear);\r\n\r\n\t\tString currentIcFile = \"IC_ISTEP_SPRING_\" + currentAdminYear + \"_FILENAME\";\r\n\t\tString lastIcFile = \"IC_ISTEP_SPRING_\" + lastAdminYear + \"_FILENAME\";\r\n\r\n\t\tString currentIcFileName = propertyLookup.get(currentIcFile);\r\n\t\tString lastIcFileName = propertyLookup.get(lastIcFile);\r\n\r\n\t\tlogger.log(IAppLogger.INFO, \"currentIcFileName=\" + currentIcFileName);\r\n\t\tlogger.log(IAppLogger.INFO, \"lastIcFileName=\" + lastIcFileName);\r\n\r\n\t\tmodelAndView.addObject(\"currentIcFileName\", currentIcFileName);\r\n\t\tmodelAndView.addObject(\"lastIcFileName\", lastIcFileName);\r\n\r\n\t\tString showGrtDiv = \"Y\";\r\n\t\tString showIcDiv = \"N\";\r\n\t\tif (productName != null && productName.length() >= 4) {\r\n\t\t\tString selectedYear = productName.substring(productName.length() - 4);\r\n\t\t\tlogger.log(IAppLogger.INFO, \"selectedYear=\" + selectedYear);\r\n\t\t\tmodelAndView.addObject(\"selectedYear\", selectedYear);\r\n\r\n\t\t\tString yearPrefix = getYearPrefix(selectedYear);\r\n\t\t\tlogger.log(IAppLogger.INFO, \"yearPrefix=\" + yearPrefix);\r\n\t\t\tString productPrefix = \"\";\r\n\t\t\tString productSuffix = \"\";\r\n\t\t\tif (productName.toUpperCase().contains(\"ISTEP\")) {\r\n\t\t\t\tproductPrefix = \"ISTEP\";\r\n\t\t\t} else if (productName.toUpperCase().contains(\"IMAST\")) {\r\n\t\t\t\tproductPrefix = \"IMAST\";\r\n\t\t\t} else if (productName.toUpperCase().contains(\"IREAD\")) {\r\n\t\t\t\tproductPrefix = \"IREAD3\";\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.ERROR, \"Invalid Product Prefix: Expected - ISTEP/IMAST/IREAD\");\r\n\t\t\t}\r\n\t\t\tif (productName.toUpperCase().contains(\"SPRING\")) {\r\n\t\t\t\tproductSuffix = \"SPRING\";\r\n\t\t\t} else if (productName.toUpperCase().contains(\"SUMMER\")) {\r\n\t\t\t\tproductSuffix = \"SUMMER\";\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.ERROR, \"Invalid Product Suffix: Expected - SPRING/SUMMER\");\r\n\t\t\t}\r\n\r\n\t\t\t// IC is available for latest two years\r\n\t\t\tif ((productName.contains(currentAdminYear)) || (productName.contains(lastAdminYear))) {\r\n\t\t\t\t// IC is available for ISTEP\r\n\t\t\t\tif (productName.contains(\"ISTEP\")) {\r\n\t\t\t\t\tshowIcDiv = \"Y\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tMap<String, Object> propertyMap = (Map<String,Object>)request.getSession().getAttribute(\"propertyMap\");\r\n\t\t\tif(propertyMap == null){\r\n\t\t\t\tMap<String, Object> tileParamMap = new HashMap<String, Object>();\r\n\t\t\t\ttileParamMap.put(\"contractName\", Utils.getContractName());\r\n\t\t\t\tpropertyMap = loginService.getContractProerty(tileParamMap);\r\n\t\t\t\trequest.getSession().setAttribute(\"propertyMap\", propertyMap);\r\n\t\t\t}\r\n\t\t\tString icFileLayoutDisplayName = yearPrefix + \" Invitation Code File Record Layout\";\r\n\t\t\tString icFileLayoutHref = propertyMap.get(IApplicationConstants.STATIC_PDF_LOCATION) + File.separator + propertyLookup.get(\"S3KEY_LAYOUTS\") + propertyLookup.get(\"IC_\" + productPrefix + \"_\" + productSuffix + \"_\" + selectedYear + \"_FILENAME\");\r\n\t\t\tif (icFileLayoutHref == null || icFileLayoutHref.isEmpty()) {\r\n\t\t\t\tif (showIcDiv == \"Y\") {\r\n\t\t\t\t\tlogger.log(IAppLogger.ERROR, \"IC Layout Filename is not configured in Properties file\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.INFO, \"icFileLayoutHref=\" + icFileLayoutHref);\r\n\t\t\t}\r\n\t\t\tlogger.log(IAppLogger.INFO, \"icFileLayoutDisplayName=\" + icFileLayoutDisplayName);\r\n\t\t\tmodelAndView.addObject(\"icFileLayoutDisplayName\", icFileLayoutDisplayName);\r\n\t\t\tmodelAndView.addObject(\"icFileLayoutHref\", icFileLayoutHref);\r\n\r\n\t\t\t// GRT is available for all years\r\n\t\t\tString grtFileLayoutDisplayName = yearPrefix + \" GRT File Record Layout\";\r\n\t\t\tString grtFileLayoutHref = propertyMap.get(IApplicationConstants.STATIC_PDF_LOCATION) + File.separator + propertyLookup.get(\"S3KEY_LAYOUTS\") + propertyLookup.get(\"GRT_\" + productPrefix + \"_\" + productSuffix + \"_\" + selectedYear + \"_FILENAME\");\r\n\t\t\tif (grtFileLayoutHref == null || grtFileLayoutHref.isEmpty()) {\r\n\t\t\t\tif (showGrtDiv == \"Y\") {\r\n\t\t\t\t\tlogger.log(IAppLogger.ERROR, \"GRT Layout Filename is not configured in Properties file\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.INFO, \"grtFileLayoutHref=\" + grtFileLayoutHref);\r\n\t\t\t}\r\n\t\t\tlogger.log(IAppLogger.INFO, \"grtFileLayoutDisplayName=\" + grtFileLayoutDisplayName);\r\n\t\t\tmodelAndView.addObject(\"grtFileLayoutDisplayName\", grtFileLayoutDisplayName);\r\n\t\t\tmodelAndView.addObject(\"grtFileLayoutHref\", grtFileLayoutHref);\r\n\t\t} else {\r\n\t\t\tlogger.log(IAppLogger.ERROR, \"Invalid Product Name\");\r\n\t\t}\r\n\t\tlogger.log(IAppLogger.INFO, \"showGrtDiv=\" + showGrtDiv);\r\n\t\tlogger.log(IAppLogger.INFO, \"showIcDiv=\" + showIcDiv);\r\n\t\tmodelAndView.addObject(\"showGrtDiv\", showGrtDiv);\r\n\t\tmodelAndView.addObject(\"showIcDiv\", showIcDiv);\r\n\r\n\t\tlogger.log(IAppLogger.INFO, \"Exit: grtICFileForm()\");\r\n\t\treturn modelAndView;\r\n\t}", "public static String selectExcelFile (){\n\t\t\tfinal JFileChooser fc = new JFileChooser();\r\n\t\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\t\r\n\t\t\t//In response to a button click:\r\n\t\t\tint folderTarget = fc.showDialog(fc, \"Select Ecxel File\");\r\n\t\t\t\r\n\t\t\tString path =\"\";\r\n\t\t\tif (folderTarget == JFileChooser.APPROVE_OPTION){\r\n\t\t\t\tpath = fc.getSelectedFile().getAbsolutePath();\r\n\t\t\t\treturn path;\r\n\t\t\t} else if (folderTarget == JFileChooser.CANCEL_OPTION){\r\n\t\t\t\tfc.setVisible(false);\r\n\t\t\t}\t\r\n\t\t\treturn path;\r\n\t\t}", "public static OutputStream getOutputStreamFromHttpServlet(final String fileOutputName) throws IOException {\n final FacesContext fc = FacesContext.getCurrentInstance();\n final ExternalContext ec = fc.getExternalContext();\n ec.setResponseContentType(\"application/ms-excel; charset=UTF-8\");\n ec.setResponseCharacterEncoding(\"UTF-8\");\n ec.setResponseHeader(\"Content-Disposition\",\n \"attachment; filename*=UTF-8''\" + URLEncoder.encode(fileOutputName, \"UTF-8\"));\n ec.addResponseCookie(Constants.DOWNLOAD_COOKIE, \"true\", Collections.<String, Object>emptyMap());\n return ec.getResponseOutputStream();\n }", "@RequestMapping(value = \"/topicsExcell\", method = RequestMethod.POST)\n\tpublic ModelAndView downloadExcel(@Valid @ModelAttribute(\"topicExcellForm\") mTopicExcellValidation topicValidExcell, BindingResult result, Map model, HttpSession session) {\n\t\tList<mAcademicYear> patentReportingAcademicDateList = academicYearService.list();\n\t model.put(\"reportingAcademicDate\", patentReportingAcademicDateList);\n\t\t \n\t // create some sample data\n\t\t if(result.hasErrors()) {\n\t return new ModelAndView(\"cp.generateTopics\");\n\t }else\n\t {\n\t \t/**\n\t \t * Get list of all Projects (Topics)\n\t \t */\n\t\t\tString yearForGenerating = topicValidExcell.getReportingAcademicDate();\n\t\t\tString currentUserName = session.getAttribute(\"currentUserName\").toString();\n\t\t\tString currentUserCode = session.getAttribute(\"currentUserCode\").toString();\n\t\t String userRole = session.getAttribute(\"currentUserRole\").toString();\n\t\t List<mTopics> topicsList = tProjectService.loadTopicListByYear(userRole, currentUserCode, yearForGenerating);\n\t\t \n\t\t /**\n\t\t * Get list of all Patents\n\t\t */\n\t\t List<mPatents> patentsList = patentService.loadPatentListByYear(userRole, currentUserCode, yearForGenerating);\n\t\t model.put(\"patentsList\", patentsList);\n\t\t /**\n\t\t * Get staff's information\n\t\t */\n\t\t\tmStaff staff = staffService.loadStaffByUserCode(currentUserCode);\n\t\t\tmodel.put(\"yearOfPaper\", yearForGenerating);\n\t\t\tif(staff != null){\n\t\t\t List<mDepartment> departmentList = departmentService.loadDepartmentList();\n\t\t\t model.put(\"staffEmail\", staff.getStaff_Email());\n\t\t\t model.put(\"staffName\", staff.getStaff_Name());\n\t\t\t model.put(\"staffPhone\", staff.getStaff_Phone());\n\t\t\t model.put(\"staffCategory\", staff.getStaffCategory().getStaff_Category_Name());\n\t\t\t model.put(\"staffDepartementName\", staff.getDepartment().getDepartment_Name());\n\t\t\t model.put(\"staffDepartementCode\", staff.getDepartment().getDepartment_Code());\n\t\t\t}\n\t\t\t// return a view which will be resolved by an excel view resolver\n\t\t\treturn new ModelAndView(\"excelTopicsView\", \"topicsList\", topicsList);\n\t }\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n HttpSession session = request.getSession();\n\n out.println(\"<br/>\" + \"<br/>\" + \"<br/>\" + \"<br/>\" + \"<br/>\" + \"<br/>\" + \"<br/>\" + \"<br/>\");\n out.println(\"<center>\");\n MyPerson p = new MyPerson();\n String name = request.getParameter(\"name\");\n String type = request.getParameter(\"type\");\n String SubjectCodeString = request.getParameter(\"Subject_Code\");\n File file = null;\n\n boolean isEveryThingisOK = true;\n\n if (name == null || name.isEmpty()\n || type == null || type.isEmpty()\n || SubjectCodeString == null || SubjectCodeString.isEmpty()) {\n isEveryThingisOK = false;\n //out.println(\"<script type='text/javascript' > alert('Please fill all fields ^_^ ');history.back();</script>\");\n out.println(\"<br/>type:\" + type);\n out.println(\"<br/>SCode:\" + SubjectCodeString);\n out.println(\"<br/>name:\" + name);\n\n }\n /* int Subject_Code = 0;\n try {\n Subject_Code = Integer.parseInt(SubjectCodeString);\n } catch (Exception ex) {\n isEveryThingisOK = false;\n out.println(\"<script type='text/javascript' > alert('Subject code is an integer value please ^_^ ');history.back();</script>\");\n\n System.out.println(\"Subject_Code:\" + ex.getMessage());\n }\n */\n if (isEveryThingisOK) {\n try {\n\n //response.setContentType(\"application/pdf\");\n //set the header and also the Name by which user will be prompted to save\n response.setHeader(\"Content-Disposition\", \"attachment;filename=\" + name + \".\" + type);\n String webRootPath = getServletContext().getRealPath(\"/\").replace('\\\\', '/');\n\n file = new File(webRootPath + name + \".\" + type);//\"D:\\\\\"\n FileInputStream fileIn = new FileInputStream(file);\n ServletOutputStream out2 = response.getOutputStream();\n\n byte[] outputByte = new byte[4096];\n//copy binary contect to output stream\n while (fileIn.read(outputByte, 0, 4096) != -1) {\n out2.write(outputByte, 0, 4096);\n }\n fileIn.close();\n out2.flush();\n out2.close();\n System.out.println(\"<script type='text/javascript' > alert('Successfull Downloading File ^_^ ');history.back();</script>\");\n\n } catch (Exception ex) {\n out.println(\"<script type='text/javascript' > alert('Failed Downloading File ^_^ Error:\" + ex.getMessage() + \" ');history.back();</script>\");\n\n } finally {\n /*try {\n if (file.exists()) {\n file.delete();\n }\n\n } catch (Exception ex) {\n out.println(\"Error:\" + ex.getMessage());\n }\n */\n }\n }//end of is everything is ok\n\n \n }//end of try Print Writer\n\n }", "public String reporteIncumplimientoPuntoXVehiculoWeb (HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n \n String idRuta = request.getParameter(\"idRuta\");\n String idPunto = request.getParameter(\"idPunto\");\n String nombreRuta = request.getParameter(\"nombreRuta\");\n String nombrePunto = request.getParameter(\"nombrePunto\");\n String fecha = request.getParameter(\"fecha\");\n String nombreReporte = \"reporte_IncumplimientoPuntoXVehiculo\";\n int tipoReporte = 28;\n \n ParametrosReporte pr = new ParametrosReporte();\n \n if (pr != null) { \n pr.setTipoReporte(tipoReporte);\n pr.setIdRuta(Restriction.getNumber(idRuta));\n pr.setIdPunto(Restriction.getNumber(idPunto));\n pr.setNombreRuta(nombreRuta); \n pr.setNombrePunto(nombrePunto);\n pr.setNombreReporte(nombreReporte);\n pr.setFechaInicioStr(fecha);\n ReporteWeb rptw = new ReporteWeb(pr, request, response);\n return rptw.generarReporteWeb(tipoReporte);\n }\n \n return \"/app/reportes/reporte_IncumplimientoPuntoXRuta.jsp\";\n }", "protected String getExcelCSVData(HttpServletRequest request, RecordSet inputRecords, String layerId) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"getExcelCSVData\", new Object[]{request, inputRecords, layerId});\r\n }\r\n String delimiter = \"\\\"\";\r\n String comma = \",\";\r\n setDataBean(request, inputRecords);\r\n loadGridHeader(request, getAnchorColumnName(), layerId);\r\n\r\n XMLGridHeader header = (XMLGridHeader) request.getAttribute(\"gridHeaderBean\");\r\n BaseResultSet data = (BaseResultSet) request.getAttribute(\"dataBean\");\r\n\r\n StringBuffer excelString = new StringBuffer(\"\");\r\n OasisFields fieldsMap = (OasisFields) request.getAttribute(IOasisAction.KEY_FIELDS);\r\n // Store the visible fields.\r\n List visibleFields = new ArrayList();\r\n if (fieldsMap.hasLayer(layerId)) {\r\n List layerFields = fieldsMap.getLayerFields(layerId);\r\n Iterator layerIt = layerFields.iterator();\r\n // Get column title, the fields have been sorted.\r\n while (layerIt.hasNext()) {\r\n OasisFormField field = (OasisFormField) (layerIt.next());\r\n if (field.getIsVisible()) {\r\n visibleFields.add(field);\r\n excelString.append(delimiter).append(field.getLabel()).append(delimiter).append(comma);\r\n }\r\n }\r\n excelString.append(\"\\n\");\r\n // Get fields\r\n boolean bDateInd, bDateTimeInd, bUrlInd, isDataPresent;\r\n int colCount = data.getColumnCount();\r\n // Process columns.\r\n header.processDataColumns(data);\r\n data.beforeFirst();\r\n // Start loop through rows.\r\n while (data.next()) {\r\n // Start loop through visible columns.\r\n int headerIdx = 0;\r\n Iterator fieldIdIt = visibleFields.iterator();\r\n while (fieldIdIt.hasNext()) {\r\n OasisFormField visibleField = (OasisFormField) (fieldIdIt.next());\r\n String visibleFieldName = visibleField.getFieldId();\r\n visibleFieldName = visibleFieldName.substring(0, visibleFieldName.indexOf(header.getGridHeaderFieldnameSuffix()));\r\n for (int i = 1; i <= colCount; i++) {\r\n // System handles the visible fields only.\r\n String dataColumnName = data.getColumnName(i);\r\n if (!visibleFieldName.equalsIgnoreCase(dataColumnName)) {\r\n continue;\r\n }\r\n // skip xxxLOVLABEL columns\r\n if (dataColumnName.endsWith(\"LOVLABEL\"))\r\n continue;\r\n // skip xxx_FORMATTED columns\r\n if (dataColumnName.endsWith(FormatUtils.DISPLAY_FIELD_EXTENTION))\r\n continue;\r\n\r\n bDateInd = false;\r\n bDateTimeInd = false;\r\n bUrlInd = false;\r\n\r\n headerIdx = header.getHeaderIndex(dataColumnName).intValue();\r\n String dataItem = data.getString(dataColumnName, \"\");\r\n isDataPresent = (dataItem != null && dataItem.trim().length() > 0);\r\n HashMap headerMap = header.getHeaderMap(headerIdx);\r\n int type = ((Integer) headerMap.get(XMLGridHeader.CN_TYPE)).intValue();\r\n Integer id = (Integer) headerMap.get(XMLGridHeader.CN_DISPLAY);\r\n int display = (id == null) ? 0 : id.intValue();\r\n String name = (String) headerMap.get(XMLGridHeader.CN_NAME);\r\n ArrayList lov = (ArrayList) headerMap.get(XMLGridHeader.CN_LISTDATA);\r\n String iDec = (String) headerMap.get(XMLGridHeader.CN_DECIMALPLACES);\r\n boolean isProtected = ((Boolean) headerMap.get(XMLGridHeader.CN_PROTECTED)).booleanValue();\r\n\r\n // If this field is protected, set the data item to null as it should not appear in the xml\r\n if (isProtected)\r\n dataItem = \"\";\r\n if (!StringUtils.isBlank(iDec))\r\n if (!FormatUtils.isLong(iDec))\r\n iDec = null;\r\n\r\n // Start visible items\r\n if (!headerMap.get(XMLGridHeader.CN_VISIBLE).equals(\"N\")) {\r\n excelString.append(delimiter);\r\n switch (type) {\r\n //Percentage field type\r\n case XMLGridHeader.TYPE_PERCENTAGE:\r\n case XMLGridHeader.TYPE_UPDATEONLYPERCENTAGE:\r\n if (iDec == null)\r\n excelString.append(FormatUtils.formatPercentage(dataItem));\r\n else\r\n excelString.append(FormatUtils.formatPercentage(dataItem, Integer.parseInt(iDec)));\r\n break;\r\n case XMLGridHeader.TYPE_PHONE:\r\n case XMLGridHeader.TYPE_UPDATEONLYPHONE:\r\n excelString.append(FormatUtils.formatPhoneNumberForDisplay(dataItem));\r\n name += FormatUtils.DISPLAY_FIELD_EXTENTION;\r\n break;\r\n case XMLGridHeader.TYPE_FORMATMONEY:\r\n case XMLGridHeader.TYPE_UPDATEONLYMONEY:\r\n if (iDec == null)\r\n excelString.append(FormatUtils.formatCurrency(dataItem));\r\n else\r\n excelString.append(FormatUtils.formatCurrency(dataItem, Integer.parseInt(iDec)));\r\n break;\r\n case XMLGridHeader.TYPE_FORMATDATE:\r\n case XMLGridHeader.TYPE_DATE:\r\n case XMLGridHeader.TYPE_UPDATEONLYDATE:\r\n java.util.Date dte = data.getDate(i);\r\n excelString.append(OasisTagHelper.formatDateAsXml(dte));\r\n if (!FormatUtils.isDateFormatUS()) {\r\n excelString.append(OasisTagHelper.formatCustomDateAsXml(dte));\r\n name += FormatUtils.DISPLAY_FIELD_EXTENTION;\r\n }\r\n bDateInd = true;\r\n break;\r\n case XMLGridHeader.TYPE_FORMATDATETIME:\r\n case XMLGridHeader.TYPE_UPDATEONLYDATETIME:\r\n java.util.Date dtTime = data.getDate(i);\r\n excelString.append(OasisTagHelper.formatDateTimeAsXml(dtTime));\r\n if (!FormatUtils.isDateFormatUS()) {\r\n excelString.append(OasisTagHelper.formatCustomDateTimeAsXml(dtTime));\r\n name += FormatUtils.DISPLAY_FIELD_EXTENTION;\r\n }\r\n bDateTimeInd = true;\r\n break;\r\n case XMLGridHeader.TYPE_URL:\r\n case XMLGridHeader.TYPE_UPDATEONLYURL:\r\n bUrlInd = true;\r\n if (isDataPresent) {\r\n if (display == XMLGridHeader.DISPLAY_MONEY) {\r\n if (iDec == null)\r\n excelString.append(ResponseUtils.filter(FormatUtils.formatCurrency(dataItem)));\r\n else\r\n excelString.append(ResponseUtils.filter(FormatUtils.formatCurrency(dataItem, Integer.parseInt(iDec))));\r\n }\r\n else\r\n excelString.append(ResponseUtils.filter(dataItem));\r\n }\r\n break;\r\n case XMLGridHeader.TYPE_UPDATEONLYDROPDOWN:\r\n if (isDataPresent) {\r\n excelString.append(ResponseUtils.filter(dataItem));\r\n }\r\n if (OasisTagHelper.displayReadonlyCodeLookupAsLabel() && lov != null) {\r\n String decodedValue = CollectionUtils.getDecodedValue(lov, dataItem);\r\n if (CodeLookupManager.getInstance().getSelectOptionLabel().equals(decodedValue)) {\r\n decodedValue = \"\";\r\n }\r\n excelString.append(ResponseUtils.filter(decodedValue));\r\n name += \"LOVLABEL\";\r\n }\r\n // Populate url column in data island if there's href defined for this drop down list field\r\n if (!StringUtils.isBlank((String) headerMap.get(XMLGridHeader.CN_FIELD_HREF))) {\r\n bUrlInd = true;\r\n }\r\n break;\r\n case XMLGridHeader.TYPE_UPDATEONLY_MULTIPLE_DROPDOWN:\r\n if (isDataPresent) {\r\n excelString.append(ResponseUtils.filter(dataItem));\r\n }\r\n if (OasisTagHelper.displayReadonlyCodeLookupAsLabel() && lov != null) {\r\n String decodedValue = CollectionUtils.getDecodedValues(lov, dataItem.split(\",\"));\r\n if (CodeLookupManager.getInstance().getSelectOptionLabel().equals(decodedValue)) {\r\n decodedValue = \"\";\r\n }\r\n excelString.append(ResponseUtils.filter(decodedValue));\r\n name += \"LOVLABEL\";\r\n }\r\n if (!StringUtils.isBlank((String) headerMap.get(XMLGridHeader.CN_FIELD_HREF))) {\r\n bUrlInd = true;\r\n }\r\n break;\r\n default:\r\n if (isDataPresent) {\r\n // if a list of values is present for a readonly field, decode\r\n if (type == XMLGridHeader.TYPE_DEFAULT && lov != null)\r\n excelString.append(ResponseUtils.filter(CollectionUtils.getDecodedValue(lov, dataItem)));\r\n else if (!FormatUtils.isDateFormatUS() && FormatUtils.isDate(dataItem))\r\n excelString.append(ResponseUtils.filter(FormatUtils.formatDateForDisplay(dataItem)));\r\n else\r\n excelString.append(ResponseUtils.filter(dataItem));\r\n }\r\n break;\r\n }\r\n excelString.append(delimiter).append(comma);\r\n }\r\n }\r\n } // End Visible items\r\n // Append \"\\n\" to the every line.\r\n excelString.append(\"\\n\");\r\n }\r\n }\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"getExcelCSVData\", excelString);\r\n }\r\n return excelString.toString();\r\n }", "@RequestMapping(\"Downloads\")\n\n\tpublic ModelAndView downLoadExcel(HttpServletRequest request, HttpSession session) {\n\t\tString adminId = (String) request.getSession().getAttribute(\"adminId\");\n\t\tif (adminId != null) {\n\n\t\t\treturn new ModelAndView(\"Downloads\");\n\t\t}\n\t\treturn new ModelAndView(\"redirect:/Login\");\n\t}", "@SuppressWarnings({ \"unused\", \"rawtypes\" })\r\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tresp.setCharacterEncoding(\"utf-8\");\r\n\t\ttry {\r\n\t\t\tString reportName = req.getParameter(\"ReportName\");\r\n\t\t\tString baseUrl = req.getContextPath() + \"/webReport?ReportName=\" + reportName;\r\n\t\t\tString imgBaseUrl = req.getContextPath() + \"/WEB-INF/report-engine/images\";\r\n\t\t\tString outFormat = \"html\";\r\n\t\t\t// 处理页面传过来的参数\r\n\t\t\tHashMap<String, String> paramMap = new HashMap<String, String>();\r\n\t\t\tEnumeration en = req.getParameterNames();\r\n\t\t\twhile (en.hasMoreElements()) {\r\n\t\t\t\tString pName = (String) en.nextElement();\r\n\t\t\t\tString pValue = req.getParameter(pName);\r\n\t\t\t\tif (pName.equals(\"O_FORMAT\")) {\r\n\t\t\t\t\toutFormat = pValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tparamMap.put(pName, pValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tServletContext sc = req.getSession().getServletContext();\r\n\t\t\tthis.birtReportEngine = BirtEngine.getBirtEngine(sc);\r\n\t\t\tIReportRunnable design = birtReportEngine.openReportDesign(sc.getRealPath(\"/WEB-INF/reportFiles\") + \"/\" + reportName);\r\n\t\t\tHashMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\t\t// 以打开的报表设计文件为参数,创建一个获取参数的对象\r\n\t\t\tIGetParameterDefinitionTask paramTask = birtReportEngine.createGetParameterDefinitionTask(design);\r\n\t\t\t// 获取报表设计文件中的参数定义\r\n\t\t\tCollection paramDefns = paramTask.getParameterDefns(false);\r\n\t\t\t// 为获取的参数定义赋值\r\n\t\t\tIterator iter = paramDefns.iterator();\r\n\t\t\twhile (iter.hasNext()) {\r\n\t\t\t\tIParameterDefnBase pBase = (IParameterDefnBase) iter.next();\r\n\t\t\t\tif (pBase instanceof IScalarParameterDefn) {\r\n\t\t\t\t\tIScalarParameterDefn paramDefn = (IScalarParameterDefn) pBase;\r\n\t\t\t\t\tString pName = paramDefn.getName();// 报表参数名称\r\n\t\t\t\t\t// int pType = paramDefn.getDataType( );\r\n\t\t\t\t\tString pValue = paramMap.get(pName);// 页面传过来的值\r\n\t\t\t\t\tif (pValue == null) {\r\n\t\t\t\t\t\tpValue = \"\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbaseUrl += \"&\" + pName + \"=\" + pValue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Object pObject = stringToObject( pType, pValue );\r\n\t\t\t\t\tparameters.put(pName, pValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (outFormat.equals(\"html\")) {// 页面展示\r\n\t\t\t\tresp.setContentType(\"text/html\");\r\n\t\t\t\tHTMLRenderOption htmlOptions = new HTMLRenderOption();\r\n\t\t\t\thtmlOptions.setOutputFormat(RenderOption.OUTPUT_FORMAT_HTML);\r\n\t\t\t\t// setup image directory\r\n\t\t\t\t// HTMLRenderContext renderContext = new HTMLRenderContext();\r\n\t\t\t\t// renderContext.setBaseImageURL(req.getContextPath() +\r\n\t\t\t\t// \"/images\");\r\n\t\t\t\t// renderContext.setImageDirectory(sc.getRealPath(\"/images\"));\r\n\t\t\t\t// logger.log(Level.FINE, \"image directory \" +\r\n\t\t\t\t// sc.getRealPath(\"/images\"));\r\n\t\t\t\t// HashMap contextMap = new HashMap();\r\n\t\t\t\t// contextMap.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,\r\n\t\t\t\t// renderContext);\r\n\t\t\t\t// htmlOptions.setImageDirectory(\"output/image\");\r\n\t\t\t\t// htmlOptions.setMasterPageContent(true);\r\n\t\t\t\t// htmlOptions.setPageFooterFloatFlag(true);\r\n\t\t\t\tByteArrayOutputStream ostream = new ByteArrayOutputStream();\r\n\t\t\t\thtmlOptions.setOutputStream(ostream);\r\n\t\t\t\thtmlOptions.setHtmlPagination(true);// 加入分页条\r\n\t\t\t\thtmlOptions.setEmbeddable(true);// 去除html、head、body标记\r\n\t\t\t\tIRunAndRenderTask task = birtReportEngine.createRunAndRenderTask(design);\r\n\t\t\t\tif (parameters != null && !parameters.isEmpty()) {\r\n\t\t\t\t\ttask.setParameterValues(parameters);\r\n\t\t\t\t\ttask.validateParameters();\r\n\t\t\t\t}\r\n\t\t\t\tString maxRow = req.getParameter(\"MaxRowsPerQuery\");\r\n\t\t\t\tif (maxRow != null && maxRow.length() > 0) {\r\n\t\t\t\t\ttask.setMaxRowsPerQuery(Integer.parseInt(maxRow));// 设置每次查询最大行数\r\n\t\t\t\t}\r\n\t\t\t\ttask.setRenderOption(htmlOptions);\r\n\t\t\t\ttask.run();\r\n\t\t\t\ttask.close();\r\n\t\t\t\t\r\n\t\t\t\tPrintWriter out = resp.getWriter();\r\n//\t\t\t\tServletOutputStream out = resp.getOutputStream();\r\n//\t\t\t\t\r\n//\t\t\t\tPrintStream ps = new PrintStream(out); \r\n//\t\t\t\tps.println();\r\n\t\t\t\t\r\n\t\t\t\t//输出到html页面\r\n\t\t\t\tout.println(\"<!DOCTYPE html>\");\r\n\t\t\t\tout.println(\"<html lang=\\\"zh\\\">\");\r\n\t\t\t\tout.println(\"<head>\");\r\n\t\t\t\tout.println(\" <meta charset=\\\"utf-8\\\">\");\r\n\t\t\t\tout.println(\" <meta http-equiv=\\\"X-UA-Compatible\\\" content=\\\"IE=edge\\\">\");\r\n\t\t\t\tout.println(\" <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1\\\">\");\t\t\t\t\r\n\t\t\t\tout.println(\" <title>机灵报表</title>\");\r\n\t\t\t\tout.println(\" <link href=\\\"assets/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css\\\" rel=\\\"stylesheet\\\">\");\t\t\t\t\r\n\t\t\t\tout.println(\" <script src=\\\"assets/adminlte/bower_components/jquery/dist/jquery.js\\\" type=\\\"text/javascript\\\"></script>\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tout.println(\"<style>\");\r\n\t\t\t\tout.println(\"#top a{\");\r\n\t\t\t\tout.println(\" color:white;\");\r\n\t\t\t\tout.println(\"}\");\r\n\t\t\t\tout.println(\"</style>\");\t\t\t\t\r\n\t\t\t\tout.println(\" </head>\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tout.println(\"<body>\");\r\n\t\t\t\tout.println(\" <header id=\\\"top\\\" class=\\\"bs-docs-nav navbar navbar-static-top\\\" style=\\\"background-color:#3C8DBC;\\\">\");\r\n\t\t\t\tout.println(\" <div class=\\\"container\\\">\");\r\n\t\t\t\tout.println(\" <div class=\\\"nav-header\\\">\");\r\n\t\t\t\tout.println(\" <a href=\\\"#\\\" class=\\\"navbar-brand\\\">机灵报表</a>\");\r\n\t\t\t\tout.println(\" </div>\");\r\n\t\t\t\tout.println(\" <nav id=\\\"bs-navbar\\\" class=\\\"collapse navbar-collapse\\\">\");\r\n\t\t\t\tout.println(\" <ul class=\\\"nav navbar-nav\\\">\");\r\n\t\t\t\tout.println(\" <li class=\\\"active\\\">\");\r\n\t\t\t\tout.println(\" <a href=\\\"#\\\">导出</a>\");\r\n\t\t\t\tout.println(\" </li>\");\r\n\t\t\t\tout.println(\" <li>\");\r\n\t\t\t\tout.println(\" <a href=\\\"#\\\" onclick=\\\"printData()\\\">打印</a>\");\r\n\t\t\t\tout.println(\" </li>\");\r\n\t\t\t\tout.println(\" </ul>\");\r\n\t\t\t\tout.println(\" </nav>\");\r\n\t\t\t\tout.println(\" </div>\");\r\n\t\t\t\tout.println(\" </header>\");\r\n\t\t\t\t\r\n\t\t\t\tout.println(\"<!--startprint-->\");\r\n\t\t\t\tString ostr = ostream.toString(\"utf-8\");\r\n\t\t\t\tout.println(\"<div style= 'width:100%;overflow:auto '>\");\r\n\t\t\t\tout.println(ostr);\r\n\t\t\t\tout.println(\"</div>\");\r\n\t\t\t\tout.println(\"<!--endprint-->\");\r\n\t\t\t\t\r\n\t\t\t\tout.println(\"\");\r\n\t\t\t\tout.println(\"\");\r\n\t\t\t\tout.println(\"\");\r\n\t\t\t\t\r\n\t\t\t\tout.println(\"<script type=\\\"text/javascript\\\">\");\r\n\t\t\t\t//表格双击可编辑\r\n//\t\t\t\tout.println(\" jQuery(\\\"table td\\\").dblclick(function(el) {\");\r\n//\t\t\t\tout.println(\" var editTxt = el.target.innerText;\");\r\n//\t\t\t\tout.println(\" if(editTxt!=\\\"\\\"){\");\r\n//\t\t\t\tout.println(\" var editCell = jQuery(el.target);\");\r\n//\t\t\t\tout.println(\" var input = jQuery(\\\"<input type='text' value='\\\" + editTxt + \\\"'/>\\\");\");\r\n//\t\t\t\tout.println(\" editCell.html(input); \");\r\n//\t\t\t\tout.println(\" input.trigger(\\\"focus\\\"); \");\r\n//\t\t\t\tout.println(\" input.blur(function() { \");\r\n//\t\t\t\tout.println(\" var newTxt = jQuery(this).val();\");\r\n//\t\t\t\tout.println(\" editCell.html(newTxt);\");\r\n//\t\t\t\tout.println(\" });\");\r\n//\t\t\t\tout.println(\" }\");\r\n//\t\t\t\tout.println(\" });\");\r\n\t\t\t\t\r\n\t\t\t\t//JS打印表格\r\n\t\t\t\tout.println(\" function printData(){\");\r\n\t\t\t\tout.println(\" var bdhtml = window.document.body.innerHTML;\");\r\n\t\t\t\tout.println(\" var startStr = \\\"<!--startprint-->\\\"; \");\r\n\t\t\t\tout.println(\" var endStr = \\\"<!--endprint-->\\\"; \");\r\n\t\t\t\tout.println(\" var printHtml = bdhtml.substr(bdhtml.indexOf(startStr) + 17); \");\r\n\t\t\t\tout.println(\" printHtml = printHtml.substring(0, printHtml.indexOf(endStr)); \");\r\n\t\t\t\tout.println(\" window.document.body.innerHTML = printHtml; \");\r\n\t\t\t\tout.println(\" window.print();\");\r\n\t\t\t\tout.println(\" window.document.body.innerHTML = bdhtml\");\r\n\t\t\t\tout.println(\" }\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tout.println(\"</script>\");\r\n\t\t\t\tout.println(\"</body>\");\r\n\t\t\t\tout.println(\"</html>\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\tout.flush();\r\n\t\t\t\tout.close();\r\n\t\t\t\tostream.close();\r\n\t\t\t} else {// 导出文件\r\n\t\t\t\tRenderOption options;\r\n\t\t\t\tif (outFormat.equals(\"pdf\")) {\r\n\t\t\t\t\tresp.setContentType(\"application/pdf\");\r\n\t\t\t\t\tresp.setHeader(\"Content-Disposition\", \"attachment; filename=export.pdf\");\r\n\t\t\t\t\toptions = new PDFRenderOption();\r\n\t\t\t\t\toptions.setOutputFormat(RenderOption.OUTPUT_FORMAT_PDF);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (outFormat.equals(\"xls\")) {\r\n\t\t\t\t\t\tresp.setContentType(\"application/msexcel\");\r\n\t\t\t\t\t\tresp.setHeader(\"Content-disposition\", \"attachment; filename=export.xls\");\r\n\t\t\t\t\t} else if (outFormat.equals(\"doc\")) {\r\n\t\t\t\t\t\tresp.setContentType(\"application/msword\");\r\n\t\t\t\t\t\tresp.setHeader(\"Content-disposition\", \"attachment; filename=export.doc\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresp.setContentType(\"text/html\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\toptions = new HTMLRenderOption();\r\n\t\t\t\t\toptions.setOutputFormat(RenderOption.OUTPUT_FORMAT_HTML);\r\n\t\t\t\t}\r\n\t\t\t\toptions.setOutputStream(resp.getOutputStream());\r\n\t\t\t\tIRunAndRenderTask task = birtReportEngine.createRunAndRenderTask(design);// 不生成document文件\r\n\t\t\t\tif (parameters != null && !parameters.isEmpty()) {\r\n\t\t\t\t\ttask.setParameterValues(parameters);// 设置报表参数\r\n\t\t\t\t\ttask.validateParameters();\r\n\t\t\t\t}\r\n\t\t\t\ttask.setRenderOption(options);\r\n\t\t\t\ttask.run();\r\n\t\t\t\ttask.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new ServletException(e);\r\n\t\t}\r\n\t}", "Downloadable export(ExportType exportType, String query, Pageable pageable);", "public void doPost(HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException\n\t{\n\tresponse.setContentType(\"text/html\");\n\tMap params = request.getParameterMap();\n\tfor(Object key :params.entrySet())\n\t{\n\tSystem.out.println(\"key:::\"+key);\n\t}\n\tSystem.out.println(\"uploads:::::::::::::::\"+request.getParameter(\"__UPLOADS\"));\n\t/*List<FileUpload> uploads = (List<FileUpload>) request.getParameter(\"__UPLOADS\");\n\tSystem.out.println(uploads.size());*/\n\t// Actual logic goes here.\n\tPrintWriter out = response.getWriter();\n\tSystem.out.println(\"<h1>\" + message + \"</h1>\");\n\tout.println(\"<h1>\" + message + \"</h1>\");\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, URISyntaxException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n\r\n String idaseo = request.getParameter(\"IdResidencia\");\r\n String propietario = request.getParameter(\"Propietario\");\r\n String direccion = request.getParameter(\"Direccion\");\r\n String fecha_inicio_contrato = request.getParameter(\"FechaInicioContrato\");\r\n String fecha_final_contrato = request.getParameter(\"FechaFinalContrato\");\r\n String numeroHabitaciones = request.getParameter(\"NumeroHabitaciones\");\r\n int s = 2;\r\n if (idaseo != null\r\n && propietario != null\r\n && direccion != null\r\n && fecha_inicio_contrato != null\r\n && fecha_final_contrato != null\r\n && numeroHabitaciones != null) {\r\n bd.conectar();\r\n s = bd.agregar(Integer.valueOf(idaseo), propietario, direccion, java.sql.Date.valueOf(fecha_inicio_contrato), java.sql.Date.valueOf(fecha_final_contrato), Integer.valueOf(numeroHabitaciones));\r\n bd.desconectar();\r\n\r\n } else {\r\n response.sendRedirect(\"Residencia.html\");\r\n }\r\n if (s == 1) {\r\n response.sendRedirect(\"Home.html\");\r\n } else {\r\n if (s == 0) {\r\n response.setContentType(\"text/html\");\r\n PrintWriter outs4 = response.getWriter();\r\n String docType4\r\n = \"<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd>\\n\";\r\n out.println(docType4\r\n + \"<html>\\n\"\r\n + \"<head>\\n\"\r\n + \" <meta content=\\\"text/html; charset=ISO-8859-1\\\"\\n\"\r\n + \" http-equiv=\\\"content-type\\\">\\n\"\r\n + \" <title></title>\\n\"\r\n + \"</head>\\n\"\r\n + \"<body>\\n\"\r\n + \"<form action=\\\"Residencia\\\" name=\\\"Residencia\\\" method=\\\"post\\\">\\n\"\r\n + \" <table style=\\\"text-align: left; width: 100px;\\\" border=\\\"1\\\"\\n\"\r\n + \" cellpadding=\\\"2\\\" cellspacing=\\\"2\\\">\\n\"\r\n + \" <tbody>\\n\"\r\n + \" <tr>\\n\"\r\n + \" <td><img style=\\\"width: 432px; height: 256px;\\\"\\n\"\r\n + \" src=\\\"./Imagenes/Img_AsignarResidencia.jpg\\\"\\n\"\r\n + \" alt=\\\"\\\"></td>\\n\"\r\n + \" <tr>\\n\"\r\n + \" <td>Id duplicado, no se realizo el registro</td>\\n\"\r\n + \" </tr>\\n\"\r\n + \" </tr>\\n\"\r\n + \" <tr>\\n\"\r\n + \" <td>IdResidencia:<input name=\\\"IdResidencia\\\"></td>\\n\"\r\n + \" </tr>\\n\"\r\n + \" <tr>\\n\"\r\n + \" <td>IdResidencia:<input name=\\\"Propietario\\\"></td>\\n\"\r\n + \" </tr>\\n\"\r\n + \" <tr>\\n\"\r\n + \" <td>Compa�ia de Residencia:<input name=\\\"Direccion\\\"></td>\\n\"\r\n + \" </tr>\\n\"\r\n + \" <tr>\\n\"\r\n + \" <td>Fecha Inicio Contrato:<input\\n\"\r\n + \" name=\\\"FechaInicioContrato\\\"></td>\\n\"\r\n + \" </tr>\\n\"\r\n + \" <tr>\\n\"\r\n + \" <td>Fecha Final Contrato:<input\\n\"\r\n + \" name=\\\"FechaFinalContrato\\\"></td>\\n\"\r\n + \" </tr>\\n\"\r\n + \" <tr>\\n\"\r\n + \" <td>Precio Residencia:<input name=\\\"NumeroHabitaciones\\\"></td>\\n\"\r\n + \" </tr>\\n\"\r\n + \" <tr align=\\\"center\\\">\\n\"\r\n + \" <td><input name=\\\"Boton\\\" value=\\\"Ok\\\"\\n\"\r\n + \" type=\\\"submit\\\"></td>\\n\"\r\n + \" </tr>\\n\"\r\n + \" </tbody>\\n\"\r\n + \" </table>\\n\"\r\n + \" <br>\\n\"\r\n + \"</form>\\n\"\r\n + \"</body>\\n\"\r\n + \"</html>\\n\"\r\n + \"\");\r\n\r\n }\r\n\r\n }\r\n }\r\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t\tString employeename = request.getParameter(\"employeename\");\r\n\t\tString username = request.getParameter(\"username\");\r\n\t\tString status = request.getParameter(\"status\");\r\n\t\tEmployeeService service = new EmployeeService();\r\n//\t\t当前页码\r\n\t\tString PageNumStr = request.getParameter(\"pageNum\");\r\n\t\tint pageNum=0;\r\n\t\tif (PageNumStr==null||PageNumStr.equals(\"\")) {\r\n\t\t\tpageNum=1;\r\n\t\t}else {\r\n\t\t\tpageNum=Integer.parseInt(PageNumStr);\r\n\t\t}\r\n//\t\t每页的记录数量\r\n\t\tint pageSize = service.getPageSize();\r\n//\t\t起始记录索引\r\n\t\tint start = (pageNum-1)*pageSize;\r\n//\t\t查询的数量\r\n\t\tint count = pageSize;\r\n//\t\t获得所有记录数量,先调用DAO中的Search方法\r\n\t\tservice.searchEmployees(employeename, username, status);\r\n\t\tint countOfEmployees = service.getCountOfEmployees();\r\n//\t\t页数\r\n\t\tint countOfPages = service.getCountOfPage();\r\n\t\t\r\n\t\t\r\n\t\tList<Employee> list = service.searchEmployeeOfOnePage(employeename, username, status, start, count);\r\n\t\trequest.setAttribute(\"employeeslist\", list);\r\n//\t\t使用search标记调用了SearchEmployeesServlet,即显示结果表格\r\n\t\trequest.setAttribute(\"search\", \"1\");\r\n//\t\t存储页数,所有记录的数量,当前页码\r\n\t\trequest.setAttribute(\"countOfPages\", countOfPages);\r\n\t\trequest.setAttribute(\"countOfEmployees\", countOfEmployees);\r\n\t\trequest.setAttribute(\"pageNum\", pageNum);\r\n\t\trequest.getRequestDispatcher(\"searchemployees.jsp\").forward(request, response);\r\n\t\t\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(datimReport.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString userPath = request.getServletPath(); \n\t\tHttpSession session = request.getSession(); \n\t\tStudy study = (Study)session.getAttribute(\"study\");\n\t\tUser user = (User)session.getAttribute(\"user\");\n\n\t\tif(userPath.equals(\"/printCSV\")) {\n\t\t\tString category = request.getParameter(\"category\");\n\t\t\tString type = request.getParameter(\"type\");\n\t\t\tif(type.equals(\"grade\")) {\n\t\t\t\tint grade_group_id = study.getGradeGroupId(request.getParameter(\"category\"));\n\t\t\t\tFileIO.createCSV(Grade.getCSVLines(new GradeGroup(grade_group_id),study,user),category);\n\t\t\t}\n\t\t\telse if(type.equals(\"rank\")) {\n\t\t\t\tint grade_group_id = study.getRankGroupId(request.getParameter(\"category\"));\n\t\t\t\tFileIO.createCSV(Rank.getCSVLines(new GradeGroup(grade_group_id),study,user),category);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint grade_group_id = study.getCompareGroupId(request.getParameter(\"category\"));\n\t\t\t\tFileIO.createCSV(Compare.getCSVLines(new GradeGroup(grade_group_id),study,user),category);\n\t\t\t}\n\t\t\t\n\t\t\tresponse.sendRedirect(\"/Photo_Grader/home\");\n\t\t\treturn;\n\t\t}\n\n\t\tString url = \"/WEB-INF/view\" + userPath + \".jsp\";\n\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(url).forward(request, response);\n\t\t} catch (IOException ex){\n\t\t\tex.printStackTrace(System.err);\n\t\t}\n\t}", "protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\n\n\tHttpSession session = request.getSession();\n\tEmployeeBean user = (EmployeeBean) session.getAttribute(\"user\");\n\tif (user != null) {\n\t\t\n\t\tString filePath = getServletContext().getInitParameter(\"goal-upload\"); \n\t\tFileItemFactory factory = new DiskFileItemFactory();\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\tPrintWriter out = response.getWriter();\n\t\t\n\t\tList<FileItem> items = null;\n\t\tString fieldName = null;\n\t\tString fieldValue = null;\n\t\tString fileName = null;\n\t\tFile file = null;\n\t\t\n\t\t\n\t\tdouble attribute_m2_score = 0;\n\t\tString continue_for_next_month = null;\n\t\tString warning_letter = null;\n\t\tString termination_letter = null;\n\t\tString manager_status = null;\n\t\tint probation_assessment_m2_id = 0;\n\t\tint probation_assessment_termination_id = 0;\n\t\tint employee_master_id = 0;\n\t\tint reviewing_manager_id = 0;\n\t\tint month_id = 0;\n\t\tint year_id = 0;\n\t\t\n\t\t\n\t\tint under_manager_Of_reviewing = Integer.parseInt(user.getUnder_manager_id());\n\t\t\n\t\tLoginDAO loginDAO = new LoginDAO();\n\t\tEmployeeBean employeeBean1 = loginDAO.getEmailId(under_manager_Of_reviewing);\n\t\t\n\t\t/*String role_authority = employeeBean1.getRoleBean().getRole_authority();*/\n\t\tint role_id = employeeBean1.getRoleBean().getRole_id();\n\t\t\n\t\tString termination_remarks = null;\n\t\tEmployeeBean employeeBean = new EmployeeBean();\n\t\tMonthBean monthBean = new MonthBean();\n\t\tYearBean yearBean = new YearBean();\n\t\ttry {\n\t\t\titems = upload.parseRequest(request);// Parse Request\n\t\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\t\tFileItem item = items.get(i);\n\n\t\t\t\tif (item.isFormField()) {\n\t\t\t\t\tfieldName = item.getFieldName();\n\t\t\t\t\tfieldValue = item.getString();\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"probation_assessment_termination_id\")) {\n\t\t\t\t\t\tString value = fieldValue;\n\t\t\t\t\t\tprobation_assessment_termination_id = Integer.parseInt(value);\n\t\t\t\t\t\tSystem.out.println(\"probation_assessment_termination_id:\" + probation_assessment_termination_id);\n\t\t\t\t\t\tAllDeleteProbationDAO allDeleteProbationDAO = new AllDeleteProbationDAO();\n\t\t\t\t\t\tallDeleteProbationDAO.deleteTerminationPeriod(probation_assessment_termination_id);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"attribute_id\")) {\n\t\t\t\t\t\tString value = fieldValue;\n\t\t\t\t\t\tprobation_assessment_m2_id = Integer.parseInt(value);\n\t\t\t\t\t\tSystem.out.println(\"probation_assessment_m2_id:\" + probation_assessment_m2_id);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"employee_master_id\")) {\n\t\t\t\t\t\tString value = fieldValue;\n\t\t\t\t\t\temployee_master_id = Integer.parseInt(value);\n\t\t\t\t\t\tSystem.out.println(\"employee_master_id:\" + employee_master_id);\n\t\t\t\t\t\temployeeBean.setEmployee_master_id(employee_master_id);\n\t\t\t\t\t}\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"month_id\")) {\n\t\t\t\t\t\tString value = fieldValue;\n\t\t\t\t\t\tmonth_id = Integer.parseInt(value);\n\t\t\t\t\t\tSystem.out.println(\"month_id:\" + month_id);\n\t\t\t\t\t\tmonthBean.setMonth_id(month_id);\n\t\t\t\t\t}\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"year_id\")) {\n\t\t\t\t\t\tString value = fieldValue;\n\t\t\t\t\t\tyear_id = Integer.parseInt(value);\n\t\t\t\t\t\tSystem.out.println(\"month_id:\" + year_id);\n\t\t\t\t\t\tyearBean.setYear_id(year_id);\n\t\t\t\t\t}\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"reviewing_manager_id\")) {\n\t\t\t\t\t\tString value = fieldValue;\n\t\t\t\t\t\treviewing_manager_id = Integer.parseInt(value);\n\t\t\t\t\t\tSystem.out.println(\"revewing_manager_id:\" + reviewing_manager_id);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"month_score\")) {\n\t\t\t\t\t\tString value = fieldValue;\n\t\t\t\t\t\tattribute_m2_score = Double.parseDouble(value);\n\t\t\t\t\t\tSystem.out.println(\"attribute_m2_score:\" + attribute_m2_score);\n\t\t\t\t\t\tif(attribute_m2_score != 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tAllUpdateProbationDAO allUpdateProbationDAO = new AllUpdateProbationDAO();\n\t\t\t\t\t\tallUpdateProbationDAO.probationm2ScoreUpdateMonthWise(attribute_m2_score, probation_assessment_m2_id);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"continueMonth\")) {\n\t\t\t\t\t\tcontinue_for_next_month = fieldValue;\n\t\t\t\t\t\tSystem.out.println(\"continue_for_next_month:\" + continue_for_next_month);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"warningLetter\")) {\n\t\t\t\t\t\twarning_letter = fieldValue;\n\t\t\t\t\t\tSystem.out.println(\"warning_letter:\" + warning_letter);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"terminationLetter\")) {\n\t\t\t\t\t\ttermination_letter = fieldValue;\n\t\t\t\t\t\tSystem.out.println(\"terminationLetter:\" + termination_letter);\n\t\t\t\t\t\tAllUpdateProbationDAO allUpdateProbationDAO = new AllUpdateProbationDAO();\n\t\t\t\t\t\tallUpdateProbationDAO.probationm2ScoreUpdateByProbationId(continue_for_next_month,warning_letter,termination_letter,employee_master_id,month_id,year_id);\n\t\t\t\t\t\tmanager_status = \"pending\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(role_id == 2 ||role_id == 3 || role_id == 9){\n\t\t\t\t\t\t\tmanager_status = \"hrPending\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"inserted\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (fieldName.equalsIgnoreCase(\"termination_remarks\")) {\n\t\t\t\t\t\ttermination_remarks = fieldValue;\n\t\t\t\t\t\tSystem.out.println(\"termination_remarks:\" + termination_remarks);\n\t\t\t\t\t\tif(termination_letter.equalsIgnoreCase(\"terminationYes\")){\n\t\t\t\t\t\t\tSystem.out.println(\"terminedted inside\");\n\t\t\t\t\t\t\tif (termination_remarks != null) {\n\t\t\t\t\t\t\t\ttermination_remarks = fieldValue;\n\t\t\t\t\t\t\t\tSystem.out.println(\"termination_remarks:\" + termination_remarks);\n\t\t\t\t\t\t\t\tSystem.out.println(\"inside\");\n\t\t\t\t\t\t\t\tAllInsertProbationDAO allInsertProbationDAO = new AllInsertProbationDAO();\n\t\t\t\t\t\t\t\tProbationAssessmentTerminationBean probationAssessmentTerminationBean = new ProbationAssessmentTerminationBean(reviewing_manager_id, employeeBean, manager_status,monthBean,yearBean,termination_remarks);\n\t\t\t\t\t\t\t\tallInsertProbationDAO.terminationInsert(probationAssessmentTerminationBean);\n\t\t\t\t\t\t\t}}else{\n\t\t\t\t\t\t\t\tSystem.out.println(\"inside\");\n\t\t\t\t\t\t\t\ttermination_remarks = \"null\";\n\t\t\t\t\t\t\t\tAllInsertProbationDAO allInsertProbationDAO = new AllInsertProbationDAO();\n\t\t\t\t\t\t\t\tProbationAssessmentTerminationBean probationAssessmentTerminationBean = new ProbationAssessmentTerminationBean(reviewing_manager_id, employeeBean, manager_status,monthBean,yearBean,termination_remarks);\n\t\t\t\t\t\t\t\tallInsertProbationDAO.terminationInsert(probationAssessmentTerminationBean);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(fieldName.equalsIgnoreCase(\"redirect\")) {\n\t\t\t\t\t\trequest.getRequestDispatcher(\"probationFormApprovalManager.jsp\").forward(request, response);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t}\n\n\t\t} catch (FileUploadException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t} else {\n\t\trequest.setAttribute(\"sessionExpired\", \"Your session is expired...Please login again...\");\n\t\trequest.getRequestDispatcher(\"login.jsp\").forward(request, response);\n\t}\n}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException\n {\n response.setContentType(\"text/html\");\n Map params = request.getParameterMap();\n for(Object key :params.entrySet())\n {\n \t System.out.println(\"key:::\"+key);\n }\n System.out.println(\"uploads:::::::::::::::\"+request.getParameter(\"__UPLOADS\"));\n\t\t/*List<FileUpload> uploads = (List<FileUpload>) request.getParameter(\"__UPLOADS\");\n\t\tSystem.out.println(uploads.size());*/\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n System.out.println(\"<h1>\" + message + \"</h1>\");\n out.println(\"<h1>\" + message + \"</h1>\");\n }", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n\n PrintWriter out = response.getWriter();\n String title = \"Configuration of delete log-event\";\n String docType =\n \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" +\n \"transitional//en\\\">\\n\";\n\n ServletHelper helper = new ServletHelper();\n\n StringBuilder eventValues = new StringBuilder();\n eventValues.append(helper.getTRTag(helper.getDisabledInputTextTag(MessTypes.CLICK_LOG.getMyValue())));\n for(ServletHelper.ClickLogValues aValue : ServletHelper.ClickLogValues.values()){\n eventValues.append(helper.getTRTag(helper.getInputTextTag(aValue.getMyValue())));\n }\n\n\n\n// out.println(docType +\n// \"<html>\\n\" +\n// \"<head><title>\" + title + \"</title></head>\\n\" +\n// \"<body bgcolor=\\\"#f0f0f0\\\">\\n\" +\n// \"<h1 align=\\\"center\\\">\" + title + \"</h1>\\n\" +\n// \"<form method=\\\"POST\\\" action=\\\"/servlet/saveTestLog\\\">\" +\n// \"<table>\\n\" +\n// eventValues.toString() +\n// \"</table>\\n\" +\n// \"<input type=\\\"submit\\\" value=\\\"Save log\\\">\" +\n// \"</form>\" +\n// \"<br/>\" +\n// \"<h1 align=\\\"center\\\">\" + titleEventLog + \"</h1>\\n\" +\n// \"<form method=\\\"POST\\\" action=\\\"/servlet/saveTestLog\\\">\" +\n// \"<table>\\n\" +\n// eventLogInputs.toString() +\n// \"</table>\\n\" +\n// \"<input type=\\\"submit\\\" value=\\\"Save log\\\">\" +\n// \"</form>\" +\n//\n// \"</body></html>\");\n }", "public ActionForward bookingsReportExport(\n\t\t\tActionMapping mapping,\n\t\t\tActionForm form,\n\t\t\tHttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t\tString path = getServlet().getServletContext().getInitParameter(\"mypath\");\n\t\t\tString filename = \"\";\n\n\t\t\tSatbookDailyForm dailyForm = (SatbookDailyForm)form;\n\t\t\tActionMessages messages = new ActionMessages();\n\t\t\tSatbookBookingDAO db1 = new SatbookBookingDAO();\n\t\t\tSatbookOracleDAO db2 = new SatbookOracleDAO();\n\t\t\t\n\t\t\trequest.setAttribute(\"reportTypeList\",dailyForm.getReportTypeList());\n\t\t\trequest.setAttribute(\"possibleReports\",dailyForm.getPossibleReports());\n\t\t\tString fileHeading = \"\";\n\n\t\t\t//** REPORT TYPE\n\t\t\t// Was type of report selected, for which bookings, confirmed/not confirmed/both\n\t\t\t//*\n\t\t\tif ((null == dailyForm.getSelectedReportType())||(dailyForm.getSelectedReportType().length() == 0)) {\n\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Please choose which bookings must be displayed from drop down list.\"));\n\t\t\t\taddMessages(request, messages);\n\n\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\trequest.setAttribute(\"reportTypeList\",dailyForm.getReportTypeList());\n\n\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t}\n\n\t\t\t//** VALIDATE FROM DATE *//*\n\t\t\t// from date is mandatory\n\t\t\tif ((dailyForm.getFromDateDD() == null)||(dailyForm.getFromDateDD().length() == 0)||\n\t\t\t\t\t(dailyForm.getFromDateMM() == null)||(dailyForm.getFromDateMM().length() == 0)||\n\t\t\t\t\t(dailyForm.getFromDateYYYY() == null)||(dailyForm.getFromDateYYYY().length() == 0)) {\n\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Please enter the from date for the report.\"));\n\t\t\t\taddErrors(request, messages);\n\n\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\n\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t}\n\n\t\t\t// validate start year\n\t\t\tif ((dailyForm.getFromDateYYYY() == null)||(dailyForm.getFromDateYYYY().length() < 4)) {\n\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid year entered for the from date (must be 4 characters).\"));\n\t\t\t\taddErrors(request, messages);\n\n\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t}\n\n\t\t\t// validate start date (valid month, year, day)\n\t\t\tint startDayInt = Integer.parseInt(dailyForm.getFromDateDD());\n\t\t\tint startYearInt = Integer.parseInt(dailyForm.getFromDateYYYY());\n\t\t\tint startMonthInt = Integer.parseInt(dailyForm.getFromDateMM());\n\t\t\t\n\n\t\t\t// validate to month\n\t\t\tif (startMonthInt > 12) {\n\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid month entered for the from date.\"));\n\t\t\t\taddErrors(request, messages);\n\n\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t}\n\n\t\t\tif ((startMonthInt == 1)||(startMonthInt == 3)\n\t\t\t\t\t||(startMonthInt == 5)||(startMonthInt == 7)\n\t\t\t\t\t||(startMonthInt == 8)||(startMonthInt == 10)\n\t\t\t\t\t||(startMonthInt == 12)) {\n\t\t\t\tif (startDayInt > 31) {\n\t\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid day entered for from date.\"));\n\t\t\t\t\taddErrors(request, messages);\n\n\t\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t\t}\n\t\t\t} else if ((startMonthInt == 4)||(startMonthInt == 6)\n\t\t\t\t\t||(startMonthInt == 9)||(startMonthInt == 11)) {\n\t\t\t\tif (startDayInt > 30) {\n\t\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid day entered for from date.\"));\n\t\t\t\t\taddErrors(request, messages);\n\n\t\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t\t}\n\t\t\t} else if ((startMonthInt == 2)) {\n\t\t\t\tif (startYearInt % 4 == 0) {\n\t\t\t\t\tif (startDayInt > 29) {\n\t\t\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid day entered for from date.\"));\n\t\t\t\t\t\taddErrors(request, messages);\n\n\t\t\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (startDayInt > 28) {\n\t\t\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid day entered for start date.\"));\n\t\t\t\t\t\taddErrors(request, messages);\n\n\t\t\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// set from date:\n\t\t\tif (startDayInt <= 9) {\n\t\t\t\tdailyForm.setFromDateDD(\"0\"+startDayInt);\n\t\t\t}\n\t\t\tif (startMonthInt <= 9) {\n\t\t\t\tdailyForm.setFromDateMM(\"0\"+startMonthInt);\n\t\t\t}\n\t\t\tdailyForm.setFromDate(dailyForm.getFromDateYYYY()+\"-\"+dailyForm.getFromDateMM()+\"-\"+dailyForm.getFromDateDD());\n\n\t\t\t//** VALIDATE TO DATE *//*\n\t\t\t// to date is mandatory\n\t\t\tif ((dailyForm.getToDateDD() == null)||(dailyForm.getToDateDD().length() == 0)||\n\t\t\t\t\t(dailyForm.getToDateMM() == null)||(dailyForm.getToDateMM().length() == 0)||\n\t\t\t\t\t(dailyForm.getToDateYYYY() == null)||(dailyForm.getToDateYYYY().length() == 0)) {\n\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Please enter the to date for the report.\"));\n\t\t\t\taddErrors(request, messages);\n\n\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t}\n\n\t\t\t// validate to year\n\t\t\tif ((dailyForm.getToDateYYYY() == null)||(dailyForm.getToDateYYYY().length() < 4)) {\n\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid year entered for the to date (must be 4 characters).\"));\n\t\t\t\taddErrors(request, messages);\n\n\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t}\n\n\t\t\t// validate to date (valid month, year, day)\n\t\t\tint toDayInt = Integer.parseInt(dailyForm.getToDateDD());\n\t\t\tint toYearInt = Integer.parseInt(dailyForm.getToDateYYYY());\n\t\t\tint toMonthInt = Integer.parseInt(dailyForm.getToDateMM());\n\n\t\t\t// validate to month\n\t\t\tif (toMonthInt > 12) {\n\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid month entered for the to date.\"));\n\t\t\t\taddErrors(request, messages);\n\n\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t}\n\n\t\t\tif ((toMonthInt == 1)||(startMonthInt == 3)\n\t\t\t\t\t||(toMonthInt == 5)||(toMonthInt == 7)\n\t\t\t\t\t||(toMonthInt == 8)||(toMonthInt == 10)\n\t\t\t\t\t||(toMonthInt == 12)) {\n\t\t\t\tif (toDayInt > 31) {\n\t\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid day entered for to date.\"));\n\t\t\t\t\taddErrors(request, messages);\n\n\t\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t\t}\n\t\t\t} else if ((toMonthInt == 4)||(toMonthInt == 6)\n\t\t\t\t\t||(toMonthInt == 9)||(toMonthInt == 11)) {\n\t\t\t\tif (toDayInt > 30) {\n\t\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid day entered for to date.\"));\n\t\t\t\t\taddErrors(request, messages);\n\n\t\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t\t}\n\t\t\t} else if ((toMonthInt == 2)) {\n\t\t\t\tif (toYearInt % 4 == 0) {\n\t\t\t\t\tif (toDayInt > 29) {\n\t\t\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid day entered for to date.\"));\n\t\t\t\t\t\taddErrors(request, messages);\n\n\t\t\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (toDayInt > 28) {\n\t\t\t\t\t\tmessages.add(ActionMessages.GLOBAL_MESSAGE,\n\t\t\t\t\t\t\t\tnew ActionMessage(\"message.generalmessage\", \"Invalid day entered for to date.\"));\n\t\t\t\t\t\taddErrors(request, messages);\n\n\t\t\t\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\t\t\t\treturn mapping.findForward(\"bookingsreport\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// set to date:\n\t\t\tif (toDayInt <= 9) {\n\t\t\t\tdailyForm.setToDateDD(\"0\"+toDayInt);\n\t\t\t}\n\t\t\tif (toMonthInt <= 9) {\n\t\t\t\tdailyForm.setToDateMM(\"0\"+toMonthInt);\n\t\t\t}\n\t\t\tdailyForm.setToDate(dailyForm.getToDateYYYY()+\"-\"+dailyForm.getToDateMM()+\"-\"+dailyForm.getToDateDD());\n\n\t\t\tif (dailyForm.getSelectedReport().equals(\"DetailedReport\")) {\n\t\t\t\t//** SELECT BOOKINGS *//*\n\t\t\t\t//** =========== select bookings between from and to dates *//*\n\t\t\t\ttry {\n\t\t\t\t\tdailyForm.setBookingList(db1.selectBookingList(dailyForm.getFromDate(),dailyForm.getToDate(),dailyForm.getSelectedReportType(),dailyForm.getSystemID()));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\n\t\t\t\tif (dailyForm.getSystemID().equals(dailyForm.getSatbook())) {\n\t\t\t\t\tfor (int i=0; i < dailyForm.getBookingList().size(); i++) {\n\t\t\t\t\t\t// get booking subjects\n\t\t\n\t\t\t\t\t\tBookingForm booking = (BookingForm) dailyForm.getBookingList().get(i);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdb1.selectBkngSubjectDetial(booking);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdb2.selectSelectedSubject(booking);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (dailyForm.getSelectedReport().equals(\"DaysReport\")) {\n\t\t\t\t//** SELECT BOOKINGS *//*\n\t\t\t\t//** =========== select bookings between from and to dates *//*\n\t\t\t\ttry {\n\t\t\t\t\tdailyForm.setVenueList(db1.selectBookingListXtypePerVenue(dailyForm.getFromDate(),dailyForm.getToDate(),dailyForm.getSelectedReportType(),dailyForm.getSystemID(),\"DAYS\"));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else if (dailyForm.getSelectedReport().equals(\"HoursReport\")) {\n\t\t\t\t//** SELECT BOOKINGS *//*\n\t\t\t\t//** =========== select bookings between from and to dates *//*\n\t\t\t\ttry {\n\t\t\t\t\tdailyForm.setVenueList(db1.selectBookingListXtypePerVenue(dailyForm.getFromDate(),dailyForm.getToDate(),dailyForm.getSelectedReportType(),dailyForm.getSystemID(),\"HOURS\"));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n \n \n\t\t\trequest.setAttribute(\"dailyForm\", dailyForm);\n\t\t\trequest.setAttribute(\"bookingList\",dailyForm.getBookingList());\n\t\t\trequest.setAttribute(\"venueList\",dailyForm.getVenueList());\n\n\n\n\n\tif(dailyForm.getToDate() != null) {\n\t\tfilename = \"booking report \"+dailyForm.getToDate() + \".csv\";\n\t\n\t}else {\n\t\tfilename = \"satbook_list.csv\";\n\t}\n\n\t\n\ttry {\n\t\tsaveToServer(path,filename,request,dailyForm);\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\tFile file = new File(path + filename);\n\tDataInputStream in = null;\n\ttry {\n\t\tin = new DataInputStream(new FileInputStream(file));\n\t} catch (FileNotFoundException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\tServletOutputStream out = null;\n\ttry {\n\t\tout = response.getOutputStream();\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\tresponse.setDateHeader(\"Expires\", 0);\n\tresponse.setHeader( \"Pragma\", \"public\" );\n\tresponse.setContentType(\"application/octet-stream\");\n\tresponse.setContentLength((int)file.length());\n\tresponse.addHeader(\"Content-Disposition\", \"attachment;filename=\" + filename );\n\n\ttry {\n\t\tsaveToClient(in, out);\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\n\t\n\t\n\treturn null;\n}", "public String export() throws SQLException, IOException {\n\t\t\treturn employeeDAO.export();\n\t\t}", "@RequestMapping(value = \"/uploadHoliday\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody\r\n\tvoid uploadHoliday(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows Exception {\n\t\tfinal String fileUrl = \"/home/esh/Holiday.xls\";\r\n\r\n\t\tnew UploadHolidayService().insertDB(fileUrl);\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n \n HttpSession session = request.getSession();\n \n String totalApartments = request.getParameter(\"apartment_count\");\n String boxPosition = request.getParameter(\"box_position\");\n String energyPoint = request.getParameter(\"point_energy\");\n String note = request.getParameter(\"note\"); \n String exit = request.getParameter(\"exit\");\n String save = request.getParameter(\"save\");\n String status = request.getParameter(\"status\");\n \n if (save != null) { \n rDAO = new ReportDAOImpl();\n tDAO = new TaskDAOImpl();\n long taskId = Long.parseLong(save);\n task = tDAO.getTask(taskId);\n report = new Report();\n report.setReportAddress(task.getAddress());\n report.setTotalApartments(Integer.parseInt(totalApartments));\n report.setBoxPosition(boxPosition);\n report.setPointEnergy(energyPoint);\n report.setNote(note);\n rDAO.insertReport(taskId, report);\n if (\"exec\".equals(status)) {\n task.setTaskStatus(TaskStatusEnum.COMPLETED);\n tDAO.updateStatus(task);\n }\n if (\"cancel\".equals(status)) {\n task.setTaskStatus(TaskStatusEnum.CANCELED);\n tDAO.updateStatus(task);\n } \n session.setAttribute(\"tasks\", tDAO.getAllToExecutor(task.getExecutor()));\n request.setAttribute(\"tasks\", session.getAttribute(\"tasks\")); \n request.getRequestDispatcher(\"/fitter_page/fitter_page.jsp\").forward(request, response); \n } \n if (exit != null) { \n request.setAttribute(\"tasks\", session.getAttribute(\"tasks\")); \n request.getRequestDispatcher(\"/fitter_page/fitter_page.jsp\").forward(request, response); \n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, ClassNotFoundException, SQLException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n HttpSession session = request.getSession();\r\n String fname = request.getParameter(\"fname\");\r\n System.out.println(\"ggggggggggggggggggggggg\" + fname);\r\n RequestDispatcher rd = null;\r\n String userName = session.getAttribute(\"downloadUserMail\").toString();\r\n String data = \"\";\r\n String uploadedFileLocation =\"C://ServerFile/\";\r\n DBQuery db = new DBQuery();\r\n System.out.println(\"fname = \" + fname);\r\n //fname = db.getData(userName, fname);\r\n System.out.println(\"fname = \" + fname);\r\n System.out.println(\"uploadedFileLocation + fname = \" + uploadedFileLocation + fname);\r\n try {\r\n BufferedReader br = null;\r\n FileReader fr1 = null;\r\n FileInputStream fis;\r\n LineNumberReader lnr1 = null;\r\n fis = new FileInputStream(uploadedFileLocation + fname);\r\n br = new BufferedReader(new InputStreamReader(fis));\r\n fr1 = new FileReader(uploadedFileLocation + fname);\r\n lnr1 = new LineNumberReader(fr1);\r\n while (lnr1.readLine() != null) {\r\n String line_content = br.readLine();\r\n data += line_content + \"\\n\";\r\n }\r\n // out.print(data);\r\n response.setContentType(\"APPLICATION/OCTET-STREAM\");\r\n response.setHeader(\"Content-Disposition\", \"attachment; fname=\\\"\" + fname + \"\\\"\");\r\n java.io.FileInputStream fileInputStream = new java.io.FileInputStream(uploadedFileLocation + \"/\" + fname);\r\n int i;\r\n while ((i = fileInputStream.read()) != -1) {\r\n out.write(i);\r\n }\r\n fileInputStream.close();\r\n out.close();\r\n\r\n\r\n session.setAttribute(\"DownloadFile\", \"File Download Successful!!!\");\r\n rd = request.getRequestDispatcher(\"DownloadStatus.jsp\");\r\n rd.forward(request, response);\r\n \r\n \r\n \r\n \r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n \r\n \r\n \r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String title = \"Reading All Request Parameters\";\n\n\tout.println(\"<head><title>ShowParameters Servlet</title></head>\");\n\n out.println(\"<BODY BGCOLOR=\\\"#FDF5E6\\\">\\n\" +\n \"<H1 ALIGN=CENTER>\" + title + \"</H1>\\n\" +\n \"<TABLE BORDER=1 ALIGN=CENTER>\\n\" +\n \"<TR BGCOLOR=\\\"#FFAD00\\\">\\n\" +\n \"<TH>Parameter Name<TH>Parameter Value(s)\");\n\n Enumeration paramNames = request.getParameterNames();\n\n \twhile(paramNames.hasMoreElements())\n \t{\n \t \tString paramName = (String)paramNames.nextElement();\n \t \tout.print(\"<TR><TD>\" + paramName + \"<TD>\");\n\n \t\tString[ ] paramValues = request.getParameterValues(paramName);\n\n \t\tif (paramValues.length == 1)// array is one entry long? contains only empty string\n \t\t{\n \t\tString paramValue = paramValues[0];\n \t\tif (paramValue.length() == 0)\t//parameter has no value\n \t\t\t out.println(\"<I>No Value</I>\"); //displays in italic\n \t\telse\n \t\t\tout.println(paramValue);\n \t\t}\n \t\telse\t\t\t//parameter has multiple values\n \t\t{\n \t\tout.println(\"<UL>\");\n \t\tfor(int i=0; i<paramValues.length; i++)\n \t\t{\n \t\t\tout.println(\"<LI>\" + paramValues[i]);\t\t//values are dislayed\n \t\t}\n\n \t\tout.println(\"</UL>\");\n \t\t}\n \t}\n\n \tout.println(\"</TABLE>\\n</BODY></HTML>\");\n } finally { \n out.close();\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n PrintWriter pw= response.getWriter();\n// pw.println(\"<h1>\" + mess+\"</h1>\");\n String text = \"some text\";\n text = request.getParameter(\"alldata\");\n// response.setContentType(\"text/plain\"); // Set content type of the response so that jQuery knows what it can expect.\n// response.setCharacterEncoding(\"UTF-8\"); // You want world domination, huh?\n// response.getWriter().write(text); \n pw.println(text);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String name;\n PrintWriter out = response.getWriter();\n String inpDate = null;\n int shiftid = 0;\n int mealBreak = 0;\n int shortBreak = 0;\n int totalPieces = 0;\n int rejectedPieces = 0;\n int downTime = 0;\n\n Enumeration paramNames = request.getParameterNames();\n while (paramNames.hasMoreElements()) {\n name = (String) paramNames.nextElement();\n String[] values = request.getParameterValues(name);\n\n int i = 0;\n if (name.equals(\"date\")) {\n inpDate = values[i].toString();\n }\n if (name.equals(\"shiftid\")) {\n shiftid = Integer.parseInt(values[i].toString());\n\n }\n if (name.equals(\"mealbreak\")) {\n mealBreak = Integer.parseInt(values[i].toString());\n\n }\n if (name.equals(\"shorBreak\")) {\n shortBreak = Integer.parseInt(values[i].toString());\n\n }\n if (name.equals(\"totalPieces\")) {\n totalPieces = Integer.parseInt(values[i].toString());\n }\n if (name.equals(\"rejectedPieces\")) {\n rejectedPieces = Integer.parseInt(values[i].toString());\n\n }\n if (name.equals(\"downTime\")) {\n downTime = Integer.parseInt(values[i].toString());\n\n }\n i++;\n }\n\n double availability = (double) (480 - mealBreak - shortBreak - downTime) / 480;\n double quality = (double) (totalPieces - rejectedPieces) / totalPieces;\n double performance = (double) (7999 / (double) 8000);\n double oee = (double) availability * quality * performance;\n\n\n Connection con = null;\n ResultSet rs = null;\n try {\n\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1,:3306/sgd8088?user=root\");\n Statement st = con.createStatement();\n String query2 = \"call Insertshiftdetails(\" + shiftid + \",\" + \"'\" + inpDate + \"'\" + \",\" + downTime + \",\" + shortBreak + \",\" + mealBreak + \",\" + totalPieces + \",\" + rejectedPieces + \",8000)\";\n rs = st.executeQuery(query2);\n String query1 = \"call InsertIntoOee(\" + shiftid + \",\" + \"'\" + inpDate + \"'\" + \",\" + availability + \",\" + quality + \",\" + performance + \",\" + oee + \")\";\n rs = st.executeQuery(query1);\n out.println(\"Successfully entered\");\n\n } catch (Exception e) {\n out.println(\"Check input values\");\n } finally {\n try {\n if (con != null) {\n con.close();\n }\n } catch (SQLException e) {\n out.println(\"Connection problem\");\n }\n\n\n }\n\n\n }", "public abstract String toFORMParam();", "DataFrameExport export();", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");if(request.getParameter(\"id\")!=null) {\n String modo=request.getParameter(\"modo\");\n Map parameters = new HashMap(); \n if(request.getParameter(\"nomParametros\")!=null && request.getParameter(\"valParametros\")!=null) {\n String[] anomParametros=request.getParameter(\"nomParametros\").split(\",\");\n String[] avalParametros=request.getParameter(\"valParametros\").split(\",\");\n if(anomParametros.length==avalParametros.length)\n {\n for (int i=0;i<anomParametros.length;i++) \n parameters.put(anomParametros[i], avalParametros[i]);\n } \n parameters.put(JRParameter.REPORT_LOCALE, new Locale(\"es\",\"MX\"));\n }\n Connection conn= null;\n ResultSet rs = null;\n Statement st = null;\n try{\n CoreReporteJasper reporte=coreReporteJasperEJBLocal.find(Integer.parseInt(request.getParameter(\"id\")));\n CoreConexionesDao conexionDB=coreConexionesEJBLocal.find(reporte.getConexionDao());\n String cadenaEncriptacion=getServletContext().getInitParameter(\"SEC_ENCRYP\");\n Class.forName(conexionDB.getDriver());\n try {\n String sql=\"select DATA from CORE_REPORTE_JASPER where ESTATUS='AC' AND CORE_REPORTE_JASPER_ID=\"+request.getParameter(\"id\");\n conn = DriverManager.getConnection(conexionDB.getServidor(),conexionDB.getUsuario(),FCom.decrypt(conexionDB.getContrasena(),cadenaEncriptacion));\n st = conn.createStatement();\n rs = st.executeQuery(sql); \n InputStream inputStream=null;\n if(rs.next()) \n inputStream=(rs.getBinaryStream(1));\n if(inputStream!=null) { \n if(modo!=null && modo.equals(\"stream\")){ \n int tamanoInput = inputStream.available();\n byte[] datosArc = new byte[tamanoInput];\n inputStream.read(datosArc, 0, tamanoInput);\n response.getOutputStream().write(datosArc);\n }else{\n response.setContentType(\"application/pdf\");\n JasperPrint jasperPrint =JasperFillManager.fillReport(inputStream,parameters,conn );\n JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());\n }\n }\n }catch (JRException e) { \n throw e;\n } catch (SQLException e) {\n throw e;\n }catch (Exception e) {\n throw e;\n }finally{\n if (rs != null)\n rs.close();\n if (st != null)\n st.close();\n if (conn != null) \n conn.close();\n }\n }catch(Exception e1) {\n System.out.println(e1.getMessage());\n }\n }else {\n response.sendError(HttpServletResponse.SC_UNAUTHORIZED);\n }\n }", "public String getReport(TrvlApplicantReport bean,\r\n\t\t\tHttpServletResponse response, String[] labelNames,\r\n\t\t\tHttpServletRequest request) {\r\n\t\ttry {\r\n\t\t\tString reportType = \"\";\r\n\t\t\tif (bean.getReportType().equals(\"P\")) {\r\n\t\t\t\treportType = \"Pdf\";\r\n\t\t\t}\r\n\t\t\tif (bean.getReportType().equals(\"X\")) {\r\n\t\t\t\treportType = \"Xls\";\r\n\t\t\t}\r\n\t\t\tif (bean.getReportType().equals(\"T\")) {\r\n\t\t\t\treportType = \"Txt\";\r\n\t\t\t}\r\n\t\t\tlogger.info(\"reportType--------------->\" + reportType + \"<-------\");\r\n\r\n\t\t\tString reportName = \"\";\r\n\t\t\tif (!bean.getReportTitle().equals(\"\"))\r\n\t\t\t\treportName = bean.getReportTitle();\r\n\t\t\telse\r\n\t\t\t\treportName = \"Applicant Report\";\r\n\t\t\torg.paradyne.lib.report.ReportGenerator rg = new org.paradyne.lib.report.ReportGenerator(\r\n\t\t\t\t\treportType, reportName, \"\");\r\n\t\t\trg.addText(\"\\n\", 0, 0, 0);\r\n\r\n\t\t\tlogger.info(\"multi select values : \" + bean.getHiddenColumns());\r\n\t\t\tString mutliSelectValues = bean.getHiddenColumns();\r\n\t\t\tString splitComma[] = null;\r\n\t\t\tif (!mutliSelectValues.equals(\"\")) {\r\n\t\t\t\tString lastComma = mutliSelectValues.substring(0,\r\n\t\t\t\t\t\tmutliSelectValues.length() - 1);\r\n\r\n\t\t\t\tsplitComma = lastComma.split(\",\");\r\n\t\t\t}\r\n\r\n\t\t\tint count = 0;\r\n\r\n\t\t\tlogger.info(\"SPLIT--CCCCCCCCCCCCCCCC\\n\" + splitComma);\r\n\t\t\tObject[][] selectQueryObj = selectQuery(bean, labelNames, count,\r\n\t\t\t\t\tsplitComma, request);\r\n\r\n\t\t\tString empSelectQuery = (String) selectQueryObj[0][0];\r\n\t\t\tString guestSelectQuery = (String) selectQueryObj[0][1];\r\n\t\t\tString labels = (String) selectQueryObj[0][2];\r\n\t\t\tcount = Integer.parseInt((String) selectQueryObj[0][3]);\r\n\r\n\t\t\tString[] str_colNames = new String[count + 1];\r\n\t\t\tstr_colNames[0] = \"Travel Id\";\r\n\t\t\tint str_colNames_array = 0;\r\n\t\t\tint[] cellWidth = new int[count + 1];\r\n\t\t\tcellWidth[0] = 10;\r\n\t\t\tint cellWidth_array = 0;\r\n\t\t\tint[] cellAlign = new int[count + 1];\r\n\t\t\tcellAlign[0] = 0;\r\n\t\t\tint cellAlign_array = 0;\r\n\r\n\t\t\tObject[][] condQueryObj = conditionQuery(bean, labelNames);\r\n\t\t\tString empCondQuery = (String) condQueryObj[0][0];\r\n\t\t\tString guestCondQuery = (String) condQueryObj[0][1];\r\n\r\n\t\t\tString selfROtherFinQuery = empSelectQuery + \"\" + empCondQuery;\r\n\t\t\tString guestFinQuery = guestSelectQuery + \"\" + guestCondQuery;\r\n\t\t\tString finalQuery = selfROtherFinQuery + \" UNION \" + guestFinQuery;\r\n\r\n\t\t\tlogger.info(\"FINAL QUERY----\\n\\n\" + finalQuery);\r\n\r\n\t\t\tObject[][] finalObj = getSqlModel().getSingleResult(finalQuery);\r\n\r\n\t\t\t// CODING FOR HEADERS, WIDTH AND ALIGNMENTS\r\n\t\t\tif (splitComma != null && splitComma.length > 0) {\r\n\t\t\t\tfor (int i = 0; i < splitComma.length; i++) {\r\n\t\t\t\t\tString splitDash[] = splitComma[i].split(\"-\");\r\n\t\t\t\t\tlogger.info(\"Key.....\" + splitDash[0]);\r\n\t\t\t\t\tlogger.info(\"Value.....\" + splitDash[1]);\r\n\r\n\t\t\t\t\tif (splitDash[1].equals(labelNames[0])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[0];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 25;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[1])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[1];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 12;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[2])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[2];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 20;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[3])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[3];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 25;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[4])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[4];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 12;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[5])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[5];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 12;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[6])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[6];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 15;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[7])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[7];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 15;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[8])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[8];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 15;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse if (splitDash[1].equals(labelNames[9])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[9];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 15;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t} else if (splitDash[1].equals(labelNames[10])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[10];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 15;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t} else if (splitDash[1].equals(labelNames[11])) {\r\n\t\t\t\t\t\tstr_colNames[++str_colNames_array] = labelNames[11];\r\n\t\t\t\t\t\tcellWidth[++cellWidth_array] = 15;\r\n\t\t\t\t\t\tcellAlign[++cellAlign_array] = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tObject[][] objData1 = null;\r\n\t\t\tif (finalObj != null && finalObj.length > 0) {\r\n\t\t\t\tlogger.info(\"FINAL OBJECT LENGTH-----\" + finalObj.length);\r\n\t\t\t\tobjData1 = new Object[finalObj.length][count + 1];\r\n\t\t\t\t/*\r\n\t\t\t\t * if (bean.getCasteFlag().equals(\"true\")) { objData1 = new\r\n\t\t\t\t * Object[finalObj.length][count + 2]; }\r\n\t\t\t\t */\r\n\t\t\t\tlogger.info(\"objData1 length\" + objData1.length);\r\n\t\t\t\tfor (int i = 0; i < finalObj.length; ++i) {\r\n\t\t\t\t\tint int_count = 0;\r\n\t\t\t\t\tobjData1[i][0] = checkNull(String.valueOf(finalObj[i][0]));\r\n\t\t\t\t\t// Employee Id\r\n\t\t\t\t\tif (bean.getEmpId().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//EMPLOYEE NAME\r\n\t\t\t\t\tif (bean.getEmpName().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//APPLICATION DATE\r\n\t\t\t\t\tif (bean.getApplDate().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//BRANCH\r\n\t\t\t\t\tif (bean.getBranch().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//TRAVEL START DATE\r\n\t\t\t\t\tif (bean.getTravelStartDate().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//GRADE\r\n\t\t\t\t\tif (bean.getGrade().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//TRAVEL END DATE\r\n\t\t\t\t\tif (bean.getTravelEndDate().equals(\"true\")) {\r\n\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//TRAVEL TYPE\r\n\t\t\t\t\tif (bean.getTravelType().equals(\"true\")) {\r\n\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//TRAVEL PURPOSE\r\n\t\t\t\t\tif (bean.getTravelPurpose().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//ADVANCE AMOUNT\r\n\t\t\t\t\tif (bean.getTrvlAdvAmt().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//APPROVER\r\n\r\n\t\t\t\t\tif (bean.getApprover().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//INITIATOR NAME\r\n\t\t\t\t\tif (bean.getInitName().equals(\"true\")) {\r\n\t\t\t\t\t\tobjData1[i][++int_count] = checkNull(String\r\n\t\t\t\t\t\t\t\t.valueOf(finalObj[i][int_count]));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (bean.getReqStatus().trim().equals(\"R\"))\r\n\t\t\t\t\tbean.setExportAll(\"on\");\r\n\t\t\t\tif (bean.getExportAll().equals(\"on\")) {\r\n\t\t\t\t\tif (bean.getReportType().equals(\"P\")) {\r\n\t\t\t\t\t\trg.setFName(reportName);\r\n\t\t\t\t\t\trg.addFormatedText(reportName, 6, 0, 1, 1);\r\n\t\t\t\t\t\trg.addText(\"\\n\", 0, 0, 0);\r\n\t\t\t\t\t\trg.tableBody(str_colNames, objData1, cellWidth,\r\n\t\t\t\t\t\t\t\tcellAlign);\r\n\t\t\t\t\t} else if (bean.getReportType().equals(\"X\")) {\r\n\t\t\t\t\t\trg.setFName(reportName + \".xls\");\r\n\t\t\t\t\t\trg.addText(reportName, 0, 1, 0);\r\n\t\t\t\t\t\trg.addText(\"\\n\", 0, 0, 0);\r\n\t\t\t\t\t\trg.xlsTableBody(str_colNames, objData1, cellWidth,\r\n\t\t\t\t\t\t\t\tcellAlign);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\trg.setFName(reportName + \".doc\");\r\n\t\t\t\t\t\trg.addText(reportName, 0, 1, 0);\r\n\t\t\t\t\t\trg.tableBody(str_colNames, objData1, cellWidth,\r\n\t\t\t\t\t\t\t\tcellAlign);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString[] pageIndex = Utility.doPaging(bean.getMyPage(),\r\n\t\t\t\t\t\t\tobjData1.length, 20);\r\n\t\t\t\t\tif (pageIndex == null) {\r\n\t\t\t\t\t\tpageIndex[0] = \"0\";\r\n\t\t\t\t\t\tpageIndex[1] = \"20\";\r\n\t\t\t\t\t\tpageIndex[2] = \"1\";\r\n\t\t\t\t\t\tpageIndex[3] = \"1\";\r\n\t\t\t\t\t\tpageIndex[4] = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tint numOfRec = Integer.parseInt(pageIndex[1])\r\n\t\t\t\t\t\t\t- Integer.parseInt(pageIndex[0]);\r\n\t\t\t\t\tint columnLength = count + 1;\r\n\t\t\t\t\tObject[][] pageObj = new Object[numOfRec][columnLength];\r\n\t\t\t\t\tint z = 0;\r\n\t\t\t\t\tint srNo = 1;\r\n\t\t\t\t\tfor (int i = Integer.parseInt(pageIndex[0]); i < Integer\r\n\t\t\t\t\t\t\t.parseInt(pageIndex[1]); i++) {\r\n\t\t\t\t\t\tfor (int j = 0; j < columnLength; j++) {\r\n\t\t\t\t\t\t\t// logger.info(\"objData1[\"+i+\"][\"+j+\"] :\r\n\t\t\t\t\t\t\t// \"+objData1[i][j]);\r\n\t\t\t\t\t\t\tpageObj[z][j] = objData1[i][j];\r\n\t\t\t\t\t\t\t// pageObj[z][0] = String.valueOf(srNo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tz++;\r\n\t\t\t\t\t\tsrNo++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bean.getReportType().equals(\"P\")) {\r\n\t\t\t\t\t\trg.setFName(reportName);\r\n\t\t\t\t\t\trg.addFormatedText(reportName, 6, 0, 1, 1);\r\n\t\t\t\t\t\trg.addText(\"\\n\", 0, 0, 0);\r\n\t\t\t\t\t\trg.tableBody(str_colNames, pageObj, cellWidth,\r\n\t\t\t\t\t\t\t\tcellAlign);\r\n\t\t\t\t\t} else if (bean.getReportType().equals(\"X\")) {\r\n\t\t\t\t\t\trg.setFName(reportName + \".xls\");\r\n\t\t\t\t\t\trg.addText(reportName, 0, 1, 0);\r\n\t\t\t\t\t\trg.addText(\"\\n\", 0, 0, 0);\r\n\t\t\t\t\t\trg.xlsTableBody(str_colNames, pageObj, cellWidth,\r\n\t\t\t\t\t\t\t\tcellAlign);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\trg.setFName(reportName + \".doc\");\r\n\t\t\t\t\t\trg.addText(reportName, 0, 1, 0);\r\n\t\t\t\t\t\trg.tableBody(str_colNames, pageObj, cellWidth,\r\n\t\t\t\t\t\t\t\tcellAlign);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\trg.addFormatedText(\"There is no data to display.\", 0, 1, 1, 0);\r\n\t\t\t}\r\n\t\t\trg.createReport(response);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, URISyntaxException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n \r\n String idestudiantes=request.getParameter(\"IdEstudiante\");\r\n String idresidencia=request.getParameter(\"IdResidencia\");\r\n String idhabitacion=request.getParameter(\"IdHabitacion\");\r\n String fecha_asignacion=request.getParameter(\"FechaAsignacion\");\r\n String fecha_final=request.getParameter(\"FechaFinal\");\r\n \r\n \r\n \r\n if (idestudiantes !=null && !idestudiantes.equalsIgnoreCase(\"\")\r\n && idresidencia !=null && !idresidencia.equalsIgnoreCase(\"\")\r\n && idhabitacion !=null && !idhabitacion.equalsIgnoreCase(\"\")\r\n && fecha_asignacion !=null && !fecha_asignacion.equalsIgnoreCase(\"\")\r\n && fecha_final !=null && !fecha_final.equalsIgnoreCase(\"\")) {\r\n bd.conectar();\r\n bd.agregar(Integer.valueOf(idresidencia), Integer.valueOf(idestudiantes),Integer.valueOf(idhabitacion), java.sql.Date.valueOf(fecha_asignacion), java.sql.Date.valueOf(fecha_final));\r\n bd.desconectar();\r\n response.sendRedirect(\"Home.html\");\r\n \r\n }else{\r\n \r\n response.sendRedirect(\"AsignarEstudiantes.html\");\r\n \r\n }\r\n \r\n }\r\n }", "public static boolean writeExcelReport (HttpServletResponse response, String reportPath, Map reportParams, ResultSet reportData) {\r\n\t\tboolean returnValue = false;\r\n\t\ttry\t{\r\n\t\t byte[] outputBytes = null;\r\n\t\t\tByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n\t\t\tJasperPrint jasperPrint = JasperFillManager.fillReport(reportPath, reportParams, new JRResultSetDataSource(reportData));\r\n\t\t\tJRXlsExporter exporterXLS = setXlsExporter(byteArrayOutputStream, jasperPrint);\r\n\t\t exporterXLS.exportReport();\r\n\t\t outputBytes = byteArrayOutputStream.toByteArray();\r\n\r\n\t\t\t\r\n\t\t\tresponse.setHeader(\"Content-disposition\", \"inline; filename=report.xls\");\r\n\t\t response.setContentType(\"application/vnd.ms-excel\");\r\n\t\t response.getOutputStream().write(outputBytes);\r\n\t\t returnValue = true;\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn returnValue;\r\n\t}", "@RequestMapping(value = \"/downloadGRTInvitationCodeFiles\", method = RequestMethod.GET)\r\n\tpublic void downloadGRTInvitationCodeFiles(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: downloadGRTInvitationCodeFiles()\");\r\n\t\tMap<String, String> paramMap = new HashMap<String, String>();\r\n\r\n\t\tString type = (String) request.getParameter(\"type\");\r\n\t\tString testAdministrationVal = (String) request.getParameter(\"testAdministrationVal\");\r\n\t\tString testProgram = (String) request.getParameter(\"testProgram\");\r\n\t\tString corpDiocese = (String) request.getParameter(\"corpDiocese\");\r\n\t\tString school = (String) request.getParameter(\"school\");\r\n\r\n\t\tlogger.log(IAppLogger.INFO, \"type=\" + type);\r\n\t\tlogger.log(IAppLogger.INFO, \"testAdministrationVal=\" + testAdministrationVal);\r\n\t\tlogger.log(IAppLogger.INFO, \"testProgram=\" + testProgram);\r\n\t\tlogger.log(IAppLogger.INFO, \"corpDiocese=\" + corpDiocese);\r\n\t\tlogger.log(IAppLogger.INFO, \"school=\" + school);\r\n\r\n\t\tString productName = getProductNameById(testAdministrationVal);\r\n\t\tlogger.log(IAppLogger.INFO, \"productName=\" + productName);\r\n\t\tString[] tokens = productName.split(\" \");\r\n\t\tString product = tokens[0];\r\n\t\tString term = tokens[1];\r\n\t\tString year = tokens[2];\r\n\r\n\t\tlogger.log(IAppLogger.INFO, \"product=\" + product);\r\n\t\tlogger.log(IAppLogger.INFO, \"term=\" + term);\r\n\t\tlogger.log(IAppLogger.INFO, \"year=\" + year);\r\n\r\n\t\t// String userId = (String) request.getSession().getAttribute(IApplicationConstants.CURRUSERID);\r\n\t\t// String userName = (String) request.getSession().getAttribute(IApplicationConstants.CURRUSER);\r\n\t\tString customerId = (String) request.getSession().getAttribute(IApplicationConstants.CUSTOMER);\r\n\t\tlogger.log(IAppLogger.INFO, \"customerId=\" + customerId);\r\n\r\n\t\tString productStr = product;\r\n\t\tif (productStr.indexOf('+') > 0) {\r\n\t\t\tproductStr = productStr.replace(\"+\", \"\").trim();\r\n\t\t}\r\n\t\tif (productStr.indexOf('-') > 0) {\r\n\t\t\tproductStr = productStr.replace(\"-\", \"\").trim();\r\n\t\t}\r\n\t\tString layoutName = type + \"_\" + productStr + \"_\" + term + \"_\" + year;\r\n\t\tlayoutName = layoutName.toUpperCase();\r\n\t\tif (layoutName.indexOf(' ') > 0) {\r\n\t\t\tlayoutName = layoutName.replaceAll(\"\\\\s+\", \"\").trim();\r\n\t\t}\r\n\t\tlogger.log(IAppLogger.INFO, \"layoutName=\" + layoutName);\r\n\r\n\t\tString headers = propertyLookup.get(layoutName + \"_HEADER\");\r\n\t\tString aliases = propertyLookup.get(layoutName + \"_ALIAS\");\r\n\t\tArrayList<String> headerList = InorsDownloadUtil.getRowDataLayout(headers);\r\n\t\tArrayList<String> aliasList = InorsDownloadUtil.getRowDataLayout(aliases);\r\n\t\tif (headerList.size() != aliasList.size()) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, \"Header count(\" + headerList.size() + \") does not match with Alias count(\" + aliasList.size() + \")\");\r\n\t\t} else {\r\n\t\t\tlogger.log(IAppLogger.INFO, \"Header count(\" + headerList.size() + \") matches with Alias count(\" + aliasList.size() + \")\");\r\n\t\t}\r\n\r\n\t\tparamMap.put(\"type\", type);\r\n\t\tparamMap.put(\"product\", product);\r\n\t\tparamMap.put(\"term\", term);\r\n\t\tparamMap.put(\"year\", year);\r\n\t\tparamMap.put(\"productId\", testAdministrationVal);\r\n\t\tparamMap.put(\"testProgram\", testProgram);\r\n\t\tparamMap.put(\"parentOrgNodeId\", corpDiocese);\r\n\t\tparamMap.put(\"orgNodeId\", school);\r\n\t\t// paramMap.put(\"userId\", userId);\r\n\t\tparamMap.put(\"customerId\", customerId);\r\n\r\n\t\tbyte[] data = null;\r\n\t\tString fileName = layoutName.toLowerCase() + \".dat\";\r\n\t\tString zipFileName = layoutName.toLowerCase() + \".zip\";\r\n\t\tArrayList<ArrayList<String>> table = inorsService.getTabulerData(paramMap, aliasList, headerList);\r\n\t\tdata = InorsDownloadUtil.getTableDataBytes(table, IApplicationConstants.COMMA);\r\n\r\n\t\ttry {\r\n\t\t\tdata = FileUtil.zipBytes(fileName, data);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, \"zipBytes - \", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tFileUtil.browserDownload(response, data, zipFileName);\r\n\t\tlogger.log(IAppLogger.INFO, \"Exit: downloadGRTInvitationCodeFiles()\");\r\n\t}", "private void redirectExport()\r\n {\r\n String viewId = Pages.getViewId(FacesContext.getCurrentInstance());\r\n String baseName = Pages.getCurrentBaseName();\r\n DocumentData documentData = new ByteArrayDocumentData(baseName, excelWorkbook.getDocumentType(), excelWorkbook.getBytes());\r\n String id = DocumentStore.instance().newId();\r\n String url = DocumentStore.instance().preferredUrlForContent(baseName, excelWorkbook.getDocumentType().getExtension(), id);\r\n url = Manager.instance().encodeConversationId(url, viewId);\r\n DocumentStore.instance().saveData(id, documentData);\r\n try\r\n {\r\n FacesContext.getCurrentInstance().getExternalContext().redirect(url);\r\n }\r\n catch (IOException e)\r\n {\r\n throw new ExcelWorkbookException(Interpolator.instance().interpolate(\"Could not redirect to #0\", url), e);\r\n }\r\n }", "public void downloadResume(ActionMapping mapping, ActionForm form,\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\n ResumeUploadActionForm resumeUploadActionForm = (ResumeUploadActionForm) form;\r\n HttpSession session = request.getSession();\r\n CmnUserMst lObjCmnUserMst = (CmnUserMst) session.getAttribute(\"cmnUserMst\");\r\n ResourceBundle resourceBundle = ResourceBundle.getBundle(\"common/resources/Constants\");\r\n\r\n\r\n File folder = new File(MessageFormat.format(resourceBundle.getString(\"UPLOADPATH.RESUME\"), System.getenv(resourceBundle.getString(\"UPLOADPATH.BASE\")), lObjCmnUserMst.getUserId()));\r\n File[] listOfFiles = folder.listFiles();\r\n\r\n for (File file : listOfFiles) {\r\n if (file.isFile()) {\r\n \r\n// \r\n String fileName = file.getName(); \r\n response.setContentType(\"application/octet-stream\");\r\n response.setHeader(\"Content-Disposition\", \"attachment;filename=\" + fileName);\r\n\r\n try {\r\n //Get it from file system\r\n FileInputStream in = new FileInputStream(file);\r\n\r\n //Get it from web path\r\n //jndi:/localhost/StrutsExample/upload/superfish.zip\r\n //URL url = getServlet().getServletContext()\r\n // .getResource(\"upload/superfish.zip\");\r\n //InputStream in = url.openStream();\r\n\r\n //Get it from bytes array\r\n //byte[] bytes = new byte[4096];\r\n //InputStream in = new ByteArrayInputStream(bytes);\r\n\r\n ServletOutputStream out = response.getOutputStream();\r\n\r\n byte[] outputByte = new byte[4096];\r\n //copy binary content to output stream\r\n while (in.read(outputByte, 0, 4096) != -1) {\r\n out.write(outputByte, 0, 4096);\r\n }\r\n in.close();\r\n out.flush();\r\n out.close();\r\n\r\n } catch (Exception e) {\r\n\r\n e.printStackTrace();\r\n }\r\n\r\n \r\n }\r\n }\r\n\r\n\r\n\r\n\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n PrintWriter out = response.getWriter();\r\n //String userName = request.getParameter(\"userName\");\r\n //String fullName = request.getParameter(\"fullName\");\r\n //out.println(\"Hello welcome to the web application \" + userName + \" We know your full name is \" + fullName);\r\n // String prof = request.getParameter(\"prof\");\r\n //out.println(\"you are a \" + prof);\r\n // String location = request.getParameter(\"location\");\r\n String [] location = request.getParameterValues(\"location\");\r\n // length is a method \r\n out.println(\"you are at \" + location.length + \" places\");\r\n \r\n for(int i=0; i<location.length; i++){\r\n out.println(location [i]);\r\n }\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n try {\r\n processRequest(request, response);\r\n } catch (ParseException | ScriptException ex) {\r\n Logger.getLogger(searchservlet.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (NoSuchMethodException ex) {\r\n Logger.getLogger(searchservlet.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n }", "@GetMapping(\"applicant/excel\")\n public List<Applicant> getApplicantExcel()\n throws IOException {\n return applicantExcelService.getApplicantExcel();\n }", "public void exportXLS() {\n\t\t// Create a Workbook\n\t\tWorkbook workbook = new HSSFWorkbook(); // new HSSFWorkbook() for\n\t\t\t\t\t\t\t\t\t\t\t\t// generating `.xls` file\n\n\t\t/*\n\t\t * CreationHelper helps us create instances of various things like DataFormat,\n\t\t * Hyperlink, RichTextString etc, in a format (HSSF, XSSF) independent way\n\t\t */\n\t\tCreationHelper createHelper = workbook.getCreationHelper();\n\n\t\t// Create a Sheet\n\t\tSheet sheet = workbook.createSheet(\"العقود\");\n\n\t\t// Create a Font for styling header cells\n\t\tFont headerFont = workbook.createFont();\n\t\theaderFont.setBold(true);\n\t\theaderFont.setFontHeightInPoints((short) 14);\n\t\theaderFont.setColor(IndexedColors.RED.getIndex());\n\n\t\t// Create a CellStyle with the font\n\t\tCellStyle headerCellStyle = workbook.createCellStyle();\n\t\theaderCellStyle.setFont(headerFont);\n\n\t\t// Create a Row\n\t\tRow headerRow = sheet.createRow(0);\n\n\t\tString[] columns = { \"الرقم\", \"رقم العقد \", \"تاريخ البداية\", \"تاريخ النهاية\", \"المستثمر\", \"حالة الفاتورة\" };\n\t\t// Create cells\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tCell cell = headerRow.createCell(i);\n\t\t\tcell.setCellValue(columns[i]);\n\t\t\tcell.setCellStyle(headerCellStyle);\n\t\t}\n\n\t\t// Create Cell Style for formatting Date\n\t\tCellStyle dateCellStyle = workbook.createCellStyle();\n\t\tdateCellStyle.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MM-yyyy\"));\n\n\t\t// Create Other rows and cells with employees data\n\t\tint rowNum = 1;\n\t\tint num = 1;\n//\t\tfor (ContractDirect contObj : contractsDirectList) {\n//\t\t\tRow row = sheet.createRow(rowNum++);\n//\t\t\trow.createCell(0).setCellValue(num);\n//\t\t\trow.createCell(1).setCellValue(contObj.getContractNum());\n//\n//\t\t\tif (!tableHigriMode) {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartContDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndContDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t} else {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t}\n//\n//\t\t\tInvestor inv = (Investor) dataAccessService.findEntityById(Investor.class, contObj.getInvestorId());\n//\t\t\trow.createCell(4).setCellValue(inv.getName());\n//\t\t\trow.createCell(5).setCellValue(contObj.getPayStatusName());\n//\t\t\tnum++;\n//\t\t}\n\n\t\t// Resize all columns to fit the content size\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tsheet.autoSizeColumn(i);\n\t\t}\n\n\t\t// Write the output to a file\n\n\t\ttry {\n\t\t\tString path = \"D:/العقود.xls\";\n\t\t\tFileOutputStream fileOut = new FileOutputStream(path);\n\t\t\tworkbook.write(fileOut);\n\t\t\tfileOut.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\n\t\t\tworkbook.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Closing the workbook\n\n\t}", "@RequestMapping(value = \"/downloadBulkPdf\", method = RequestMethod.GET)\r\n\tpublic @ResponseBody\r\n\tString downloadBulkPdf(@ModelAttribute(\"groupDownload\") BulkDownloadTO bulkDownloadTO, HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: downloadBulkPdf()\");\r\n\t\tString currentUser = (String) request.getSession().getAttribute(IApplicationConstants.CURRUSER);\r\n\t\tString currentUserId = (String) request.getSession().getAttribute(IApplicationConstants.CURRUSERID);\r\n\t\tString currentOrg = (String) request.getSession().getAttribute(IApplicationConstants.CURRORG);\r\n\t\tString customer = (String) request.getSession().getAttribute(IApplicationConstants.CUSTOMER);\r\n\t\tlong currCustomer = (customer == null) ? 0 : Long.parseLong(customer);\r\n\t\tString status = \"Error\";\r\n\t\ttry {\r\n\t\t\t// remove retain bulk value\r\n\t\t\trequest.getSession().removeAttribute(\"retainBulkDownloadTO\");\r\n\t\t\tString fileType = request.getParameter(\"fileType\");\r\n\t\t\tString nodeid = (String) request.getParameter(\"tenantId\");\r\n\t\t\tString adminYear = (String) request.getParameter(\"AdminYear\");\r\n\t\t\tString reportUrl = (String) request.getParameter(\"reportUrl\");\r\n\t\t\tString docName = CustomStringUtil.appendString(currentUser, \" \", Utils.getDateTime(), \"_Querysheet.pdf\");\r\n\r\n\t\t\tString school = null, corp = null, orgClass = null, testProgram = null, grade = null;\r\n\t\t\tif (!\"CR\".equals(fileType)) {\r\n\t\t\t\tMap<String, Object> parameters = null;\r\n\t\t\t\tparameters = (Map<String, Object>) request.getSession().getAttribute(IApplicationConstants.REPORT_TYPE_CUSTOM + \"parameters\" + reportUrl);\r\n\t\t\t\twhile (parameters == null) {\r\n\t\t\t\t\tlogger.log(IAppLogger.WARN, \"Waiting for custom report parameter .... \");\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t\tparameters = (Map<String, Object>) request.getSession().getAttribute(IApplicationConstants.REPORT_TYPE_CUSTOM + \"parameters\" + reportUrl);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tadminYear = (String) parameters.get(\"p_adminYear\");\r\n\t\t\t\tschool = (String) parameters.get(\"p_school\");\r\n\t\t\t\tcorp = (String) parameters.get(\"p_corp\");\r\n\t\t\t\torgClass = (String) parameters.get(\"p_class\");\r\n\t\t\t\tgrade = (String) parameters.get(\"p_gradeid\");\r\n\t\t\t\ttestProgram = (String) parameters.get(\"p_testProgram\");\r\n\t\t\t}\r\n\t\t\tbulkDownloadTO.setQuerysheetFile(docName);\r\n\t\t\tbulkDownloadTO.setUdatedBy((currentUserId == null) ? 0 : Long.parseLong(currentUserId));\r\n\t\t\tbulkDownloadTO.setUsername(currentUser);\r\n\t\t\tbulkDownloadTO.setTestAdministration(adminYear);\r\n\t\t\tbulkDownloadTO.setSchool(school);\r\n\t\t\tbulkDownloadTO.setCorp(corp);\r\n\t\t\tbulkDownloadTO.setOrgClass(orgClass);\r\n\t\t\tbulkDownloadTO.setTestProgram(testProgram);\r\n\t\t\tbulkDownloadTO.setGrade(grade);\r\n\t\t\tbulkDownloadTO.setCustomerId(customer);\r\n\t\t\tbulkDownloadTO.setReportUrl(reportUrl);\r\n\t\t\tbulkDownloadTO.setRequestType(fileType);\r\n\t\t\tbulkDownloadTO.setDownloadMode(request.getParameter(\"mode\"));\r\n\r\n\t\t\tbulkDownloadTO = inorsService.createJob(bulkDownloadTO);\r\n\r\n\t\t\tString querysheetFile = PdfGenerator.generateQuerysheet(bulkDownloadTO, propertyLookup);\r\n\r\n\t\t\tlogger.log(IAppLogger.INFO, \"sending messsage --------------- \");\r\n\t\t\tmessageProducer.sendJobForProcessing(String.valueOf(bulkDownloadTO.getJobId()), Utils.getContractName());\r\n\r\n\t\t\tif (bulkDownloadTO.getJobId() != 0)\r\n\t\t\t\tstatus = \"Success\";\r\n\r\n\t\t\tresponse.setContentType(\"application/json\");\r\n\t\t\tresponse.getWriter().write(\"\");\r\n\t\t\tresponse.getWriter().write(\"{\\\"status\\\":\\\"\" + status + \"\\\"}\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, e.getMessage(), e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tresponse.getWriter().write(\"{\\\"status\\\":\\\"\" + status + \"\\\"}\");\r\n\t\t}\r\n\t\tlogger.log(IAppLogger.INFO, \"Exit: downloadBulkPdf()\");\r\n\t\treturn null;\r\n\t}", "Button getGenerateCSVFileButton();", "public String getExportMimeType(){\n return \"text/plain\";\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\trequest.setCharacterEncoding(\"utf-8\");\n\t\tString name=request.getParameter(\"name\");\n\t\tString profession=request.getParameter(\"profession\");\n\t\tString education=request.getParameter(\"education\");\n\t\tConnection con=null;\n\t\tPreparedStatement pstm=null;\n\t\tResultSet rs= null;\n\t\tString string=null;\n\t\tList<Resume> resumelist = new ArrayList<Resume>();\n\t\tif(!\"\".equals(name)){//姓名不为空\n\t\t\tstring = \"name='\"+name+\"'\";\n\t\t\tif(!\"\".equals(profession)){//专业不空\n\t\t\t\tstring=string+\" and profession='\"+profession+\"'\";\n\t\t\t\tif(!\"\".equals(education)){//学历不空\n\t\t\t\t\tstring=string+\" and education='\"+education+\"'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{//专业空\n\t\t\t\tif(!\"\".equals(education)){//学历不空\n\t\t\t\t\tstring=string+\" and education='\"+education+\"'\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{//姓名空\n\t\t\tif(!\"\".equals(profession)){//专业不空\n\t\t\t\tstring=\"profession='\"+profession+\"'\";\n\t\t\t\tif(!\"\".equals(education)){//学历不空\n\t\t\t\t\tstring=string+\" and education='\"+education+\"'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{//专业空\n\t\t\t\tif(!\"\".equals(education)){//学历不空\n\t\t\t\t\tstring=\"education='\"+education+\"'\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//全为空\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(string==null){\n\t\t\trequest.setAttribute(\"message\", \"请输入一个条件。<input type='button' value='返回' onclick=history.go(-1)>\");\n\t\t\trequest.getRequestDispatcher(\"/message.jsp\").forward(request, response);\n\t\t}\n\t\telse{\n\t\t\tString sql=\"select * from resume where \"+string;\t\n\t\t\ttry {\n\t\t\t\tcon=DbConnect.getDBconnection();\n\t\t\t\tpstm=con.prepareStatement(sql);\n\t\t\t\trs=pstm.executeQuery();\n\t\t\t\twhile(rs.next()) {\n\t\t\t\t\tResume resume=new Resume();\n\t\t\t\t\tresume.setName(rs.getString(1));\n\t\t\t\t\tresume.setSex(rs.getString(2));\n\t\t\t\t\tresume.setProfession(rs.getString(3));\n\t\t\t\t\tresume.setEducation(rs.getString(4));\n\t\t\t\t\tresume.setTel(rs.getString(5));\n\t\t\t\t\tresume.setEmail(rs.getString(6));\n\t\t\t\t\tresume.setHobby(rs.getString(7));\n\t\t\t\t\tresume.setExperience(rs.getString(8));\n\t\t\t\t\tresume.setSkill(rs.getString(9));\n\t\t\t\t\tresume.setHonor(rs.getString(10));\n\t\t\t\t\tresumelist.add(resume);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}finally{\n\t\t\t\tDbConnect.closeDB(con, pstm, rs);\n\t\t\t}\n\t\t\trequest.setAttribute(\"findresult\", resumelist);\n\t\t\trequest.getRequestDispatcher(\"findresult.jsp\").forward(request, response);\n\t\t}\n\t}", "public static void saveExcel() {\r\n\t\ttry {\r\n\t\t\tFileOutputStream fileOut = new FileOutputStream(Constant.EXCEL_PATH);\r\n\t\t\tworkBook.write(fileOut);\r\n\t\t\tfileOut.flush();\r\n\t\t\tfileOut.close();\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}", "@SuppressWarnings(\"unchecked\")\n @RequestMapping({ \"/agent/enrollment/exportBatch\", \"/provider/search/exportBatch\" })\n public void exportBatch(@ModelAttribute(\"criteria\") ProviderSearchCriteria criteria, HttpServletResponse response)\n throws PortalServiceException, IOException {\n String signature = \"EnrollmentController#search(ProviderSearchCriteria criteria)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"criteria\" }, new Object[] { criteria });\n\n if (criteria == null) {\n throw new IllegalArgumentException(\"A valid criteria must be provided.\");\n }\n\n ModelAndView results = doSearch(criteria, \"print\");\n SearchResult<UserRequest> items = (SearchResult<UserRequest>) results.getModel().get(\"results\");\n\n response.reset();\n response.setContentType(\"application/pdf\");\n String id = UUID.randomUUID().toString();\n response.setHeader(\"Content-Disposition\", \"attachment; filename=export_\" + id + \".pdf\");\n exportService.export(items.getItems(), null, response.getOutputStream());\n }", "String getParameter(HttpServletRequest request, String name) throws ValidationException;", "@RequestMapping(value = \"customer/download\" + SPRING_EXT, method = RequestMethod.POST)\r\n\tpublic void customer_download(\r\n\t\t\tHttpServletRequest req,\r\n\t\t\tHttpServletResponse response\r\n\t\t\t) \r\n\t{\r\n\t\t\r\n\t\tlog.debug(\"| customer_download | Entry\");\r\n\t\t\r\n\t\t/*Configuration*/\r\n\t\tString current_datetime = SDF_YYYY_MM_DD.format(new Date());\r\n\t\tString filename = \"STUDENTLIST_\"+current_datetime+\".csv\";\r\n\t\tString[] header = customerService.setUpCSVHeader();\r\n\t\tfinal CellProcessor[] whiterProcessors = customerService.setUpWriterProcessors(header);\r\n\t\t/*Configuration*/\r\n\t\t\r\n\t\t/*Data*/\r\n\t\tCustomerFilterObj filter = new CustomerFilterObj(req.getParameter(\"identificationNum\"), \r\n\t\t\t\treq.getParameter(\"name\"), req.getParameter(\"contactNum\"), req.getParameter(\"email\"),\r\n\t\t\t\treq.getParameter(\"invoiceNum\"), req.getParameter(\"event\"));\r\n\t\tList<CustomerDTO> customerList = customerService.getDownloadListByFilter(filter);\r\n\t\tList<Map<String, Object>> customerMap = customerService.convertCustomerListToMapList(header, customerList);\r\n\t\t/*Data*/\r\n\t\t\r\n\t\tCSVFileHandler handler = new CSVFileHandler();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\thandler.downloadCustomerCSV(customerMap, header, whiterProcessors, response, filename);\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tlog.debug(\"| customer_download | Exit\");\r\n \r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\t\tPrintWriter out = resp.getWriter();\n\t\tresp.setContentType(\"text/html\");\n\t\tEnumeration<String> parametrNames = req.getParameterNames();\n\n\t\twhile (parametrNames.hasMoreElements()) {\n\t\t\tString parameterName = parametrNames.nextElement();\n\n\t\t\tif (\"subjects\".equals(parameterName)) {\n\t\t\t\tString paramValueArr[] = req.getParameterValues(parameterName);\n\n\t\t\t\tString vals = String.join(\",\", paramValueArr);\n\n\t\t\t\tout.println(\"<b>\" + parameterName + \"</b>--\" + vals + \"<br/>\");\n\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\tString paramValue = req.getParameter(parameterName);\n\n\t\t\tout.println(\"<b>\" + parameterName + \"</b>--\" + paramValue + \"<br/>\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat ft = \n\t\t\t new SimpleDateFormat (\"E yyyy.MM.dd 'at' hh:mm:ss.S a zzz\");\n\t\t\n\t\tout.println(\"<b>Form submitted at: </b>\"+ft.format(new Date()));\n\n\t}", "protected void generarReporte(String fileNameOut){\n LinkedList datos;\n LinkedList listaHojas;\n frmHoja tmpSheet;\n Clases.Dato tmpDato;\n int numRows = 0;\n int numCols = 0;\n try{\n sw = new FileWriter(fileNameOut,true);\n //obtener lista de hojas desde el workplace\n listaHojas = wp.getListaHojas();\n\n //escribir encabezado de HTML a stream\n sw.write(\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\">\\n\");\n sw.write(\"<html>\\n<head>\\n<meta content=\\\"text/html; charset=ISO-8859-1\\\" http-equiv=\\\"content-type\\\">\\n\");\n sw.write(\"<title>JExcel</title>\\n\");\n sw.write(\"</head>\\n<body>\\n\");\n sw.write(\"<big><span style=\\\"font-weight: bold;\\\">Hoja generada por JExcel</span></big><br>\\n\");\n sw.write(\"<small>Universidad Mariano Gálvez de Guatemala</small><br>\\n<br>\\n\");\n sw.write(\"<small>Extensión Morales Izabal</small><br>\\n<br>\\n\");\n sw.write(\"<small>(C) Amy C. Leiva - 4890-15-</small><br>\\n<br>\\n\");\n // Iterar sobre cada hoja en listaSheets\n for (int i = 0; i < listaHojas.size();i++){\n // obtener maximo numero de datos\n tmpSheet = (frmHoja) listaHojas.get(i);\n\n numRows = tmpSheet.getHoja().getRowCount();\n numCols = tmpSheet.getHoja().getColumnCount();\n sw.write(\"<table style=\\\"text-align: left; width: 100%;\\\" border=\\\"1\\\" cellpadding=\\\"2\\\" cellspacing=\\\"2\\\">\\n\");\n sw.write(\"<tbody>\\n\");\n sw.write(\" <tr> <td colspan=\\\"4\\\" rowspan=\\\"1\\\"><big><span style=\\\"font-weight: bold;\\\">\");\n sw.write(\"Nombre de la Hoja: \" + tmpSheet.getId());\n sw.write(\"</span></big></td>\\n</tr>\\n\");\n sw.write(\" <tr><td>Fila</td><td>Columna</td><td>Expresi&oacute;n</td> <td>Valor Num&eacute;rico</td> </tr>\\n\");\n // obtener lista de datos desde matriz\n if( tmpSheet.getHoja().getTabla().estaVacia() == false){ // si la tabla tiene datos\n datos = tmpSheet.getHoja().getTabla().getSubset(1,1,numCols,numRows);\n //escribir tabla con datos generados\n for (int j = 0; j < datos.size();j++){\n tmpDato = (Clases.Dato) datos.get(j); \n sw.write(\"<tr>\\n\");\n sw.write(\"<td>\" + tmpDato.getRow() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getCol() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getExpr() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.eval() + \"</td>\\n\");\n sw.write(\"</tr>\\n\");\n }\n }\n else{\n sw.write(\"<tr><td colspan=\\\"4\\\" rowspan=\\\"1\\\"> Hoja Vacia... </td></tr>\");\n }\n sw.write(\" </tbody></table>\\n<br><br><br>\");\n // sw.write();\n // sw.write();\n }\n //escribir fin de datos\n sw.write(\"</body></html>\");\n //escribir a archivo de salida\n sw.close();\n }\n catch(Exception e){\n System.out.println(\"No se pudo guardar archivo:\" + e);\n }\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>conversion de monedas</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Generar matriz caracol</h1>\");\n\n out.println(\"<form action='' method='post'>\");\n out.println(\"Tamaño de matriz nxn:\");\n out.println(\"<input type='number' name='tamano' required>\");\n out.println(\"<br><br>\");\n out.println(\"<input type='submit' value=Procesar>\");\n out.println(\"</form>\");\n\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "public void Request(HttpServletRequest request, HttpServletResponse response, String name, String password)\n throws ServletException, IOException, Exception {\n\n Fillo fillo = new Fillo();\n com.codoid.products.fillo.Connection connection = fillo.getConnection(\"C:\\\\Users\\\\Suvanika S Rajan\\\\Documents\\\\GitHub\\\\NCP_CodeFun\\\\DB.xls\");\n String strQuery = \"Select * from Sheet1\";\n Recordset recordset = connection.executeQuery(strQuery);\n DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\n int flag = 0;\n while (recordset.next()) {\n System.out.println(\"PAssword: \" + recordset.getField(\"password\") + \" email: \" + recordset.getField(\"email\"));\n String name_db = recordset.getField(\"email\");\n String password_db = recordset.getField(\"password\");\n if (name_db.equals(name) && password_db.equals(password)) {\n flag = 1;\n System.out.println(\"heyyy\");\n response.sendRedirect(\"dashboard.html\");\n }\n }\n if (flag == 0) {\n response.sendRedirect(\"badlogin.html\");\n }\n\n recordset.close();\n connection.close();\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n\r\n \r\n String type= request.getParameter(\"reg_as\");\r\n String name= request.getParameter(\"username\");\r\n String email= request.getParameter(\"email\");\r\n String password= request.getParameter(\"password\");\r\n String passConfirm= request.getParameter(\"pass_confirm\");\r\n \r\n \r\n out.println(name);\r\n out.println(email);\r\n out.println(password);\r\n out.println(passConfirm);\r\n out.println(type);\r\n \r\n //connection code......\r\n \r\n try{\r\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\r\n \r\n String conn=\"jdbc:sqlserver://localhost:1433;databaseName=CareerCounsellingSystem\";\r\n \r\n Connection con= DriverManager.getConnection(conn, \"new_user\", \"123\");\r\n \r\n //query\r\n \r\n String q=\"INSERT INTO [Profile] (userName, email, [password], userType) values(?,?,?,?)\";\r\n \r\n PreparedStatement pstmt=con.prepareStatement(q);\r\n \r\n pstmt.setString(1,name);\r\n pstmt.setString(2,email);\r\n pstmt.setString(3,password);\r\n pstmt.setString(4,type);\r\n \r\n pstmt.executeUpdate();\r\n \r\n if(type==\"student\"){\r\n response.sendRedirect(\"http://localhost:9494/TestProject/Studenthome.jsp\");\r\n }\r\n out.println(\"Done\");\r\n \r\n response.sendRedirect(\"http://localhost:9494/TestProject/\");\r\n \r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n out.println(\"error\");\r\n }\r\n \r\n \r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n String method = request.getParameter(\"method\");\r\n \r\n if(method.equals(\"insertExam\")){\r\n try{\r\n String name = request.getParameter(\"name\");\r\n\r\n DateFormat sourceFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n String expDateAsString = request.getParameter(\"expeditionDate\");\r\n Date expDate = sourceFormat.parse(expDateAsString);\r\n\r\n String realDateAsString = request.getParameter(\"realizationDate\");\r\n Date realDate = sourceFormat.parse(realDateAsString);\r\n\r\n String certDateAsString = request.getParameter(\"certificationDate\");\r\n Date certDate = sourceFormat.parse(certDateAsString);\r\n \r\n String description = request.getParameter(\"description\");\r\n \r\n ExamController examController = new ExamController();\r\n examController.insert(name, expDate, realDate, certDate, description);\r\n }catch(Exception e){\r\n \r\n }\r\n }\r\n if(method.equals(\"findExam\")){\r\n ExamController examController = new ExamController();\r\n int id = Integer.parseInt( request.getParameter(\"id\") );\r\n System.out.println(id);\r\n Exams exam = examController.findById(id);\r\n String examData = \"\";\r\n\r\n examData += exam.getName();\r\n \r\n int month = exam.getExpeditionDate().getMonth() + 1;\r\n \r\n if( month < 10 )\r\n examData += \",\"+exam.getExpeditionDate().getDate()+\"/0\"+month+\"/\"+(exam.getExpeditionDate().getYear()+1900);\r\n else\r\n examData += \",\"+exam.getExpeditionDate().getDate()+\"/\"+month+\"/\"+(exam.getExpeditionDate().getYear()+1900);\r\n\r\n month = exam.getRealizationDate().getMonth() + 1;\r\n if( month < 10 )\r\n examData += \",\"+exam.getRealizationDate().getDate()+\"/0\"+month+\"/\"+(exam.getRealizationDate().getYear()+1900);\r\n else\r\n examData += \",\"+exam.getRealizationDate().getDate()+\"/\"+month+\"/\"+(exam.getRealizationDate().getYear()+1900);\r\n\r\n month = exam.getCertificationDate().getMonth() + 1;\r\n if( month < 10 )\r\n examData += \",\"+exam.getCertificationDate().getDate()+\"/0\"+month+\"/\"+(exam.getCertificationDate().getYear()+1900);\r\n else\r\n examData += \",\"+exam.getCertificationDate().getDate()+\"/\"+month+\"/\"+(exam.getCertificationDate().getYear()+1900);\r\n \r\n examData += \",\"+exam.getDescription();\r\n \r\n PrintWriter out = response.getWriter();\r\n out.print(examData);\r\n }\r\n \r\n if(method.equals(\"updateExam\")){\r\n try{\r\n int examId = Integer.parseInt( request.getParameter(\"id\") );\r\n System.out.println(\"id : \" + examId);\r\n String name = request.getParameter(\"name\");\r\n\r\n DateFormat sourceFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n String expDateAsString = request.getParameter(\"expeditionDate\");\r\n Date expDate = sourceFormat.parse(expDateAsString);\r\n\r\n String realDateAsString = request.getParameter(\"realizationDate\");\r\n Date realDate = sourceFormat.parse(realDateAsString);\r\n\r\n String certDateAsString = request.getParameter(\"certificationDate\");\r\n Date certDate = sourceFormat.parse(certDateAsString);\r\n \r\n String description = request.getParameter(\"description\");\r\n \r\n ExamController examController = new ExamController();\r\n examController.update(examId, name, expDate, realDate, certDate, description);\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n if(method.equals(\"deleteExam\")){\r\n try{\r\n ExamController examController = new ExamController();\r\n int id = Integer.parseInt( request.getParameter(\"id\") );\r\n System.out.println(id);\r\n Exams exam = examController.findById(id);\r\n examController.deleteExam(exam);\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n if(method.equals(\"examResults\")){\r\n try{\r\n ExamController examController = new ExamController();\r\n Collection<ExamResult> examResults = examController.getResultsByExam();\r\n String results = \"\";\r\n for(ExamResult examResult: examResults){\r\n results += \"$$\" + examResult.getExam().getExamId() + \"&&\" + examResult.getExam().getName() + \"&&\" + examResult.getPassed() + \"&&\" + examResult.getFailed();\r\n }\r\n System.out.println(results);\r\n results = results.substring(2);\r\n PrintWriter out = response.getWriter();\r\n out.print(results);\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n processRequest(request, response);\r\n }", "public interface ReportSaveAction {\n public String EXCEL = \"excel\";\n public String PDF = \"pdf\";\n\n public InputStream getExcelStream() throws Exception;\n\n public InputStream getPdfStream() throws Exception;\n}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String button = request.getParameter(\"button\");\n MassPunchScheduleDetailsModel model =new MassPunchScheduleDetailsModel();\n MassPunchScheduleDetailsBean bean=new MassPunchScheduleDetailsBean();\n HttpSession session = request.getSession();\n if (button.equals(\"getdata\")) {\n\n //ScheduleTemplate\n String MassPunchScheduleData = model.getMassPunchScheduleData();\n session.setAttribute(\"MassPunchScheduleData\", MassPunchScheduleData);\n System.out.println(\"MassPunchScheduleData\"+MassPunchScheduleData);\n\n \n //Employee\n String EmployeeMaster = model.getEmployeeData();\n session.setAttribute(\"EmployeeData\", EmployeeMaster);\n\n\n //Table Display\n ArrayList list = model.MassPunchDetailTableData();\n session.setAttribute(\"MassPunchScheduleDetailsData\", list);\n\n response.sendRedirect(\"View/MassPunchScheduleDetails/MassPunchScheduleDetails.jsp?redirected=true\");\n\n }\n\n if(button.equals(\"Submit\")){\n int MassPunchScheduleData=Integer.parseInt(request.getParameter(\"MassPunchScheduleData\"));\n System.out.println(\"MassPunchScheduleData\"+MassPunchScheduleData);\n \n int EmployeeName=Integer.parseInt(request.getParameter(\"EmployeeData\"));\n System.out.println(\"EmployeeName\"+EmployeeName);\n\n bean.setMass_punch_schedule_id(MassPunchScheduleData);\n bean.setEmployees_id(EmployeeName);\n \n int result= model.InsertEmployeesDetails(bean);\n if(result==1){\n response.sendRedirect(\"View/MassPunchScheduleDetails/MassPunchScheduleDetails.jsp?redirected=true\");\n // request.getRequestDispatcher(\"View/MassPunchScheduleDetails/MassPunchScheduleDetails.jsp?redirected=true\").forward(request, response);\n }\n }\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n finally {\n out.close();\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n public void export(String dataTableId, String type)\r\n {\r\n excelWorkbook = ExcelFactory.instance().getExcelWorkbook(type);\r\n\r\n CSSParser parser = new CSSParser();\r\n\r\n // Gets the datatable\r\n UIData dataTable = (UIData) FacesContext.getCurrentInstance().getViewRoot().findComponent(dataTableId);\r\n if (dataTable == null)\r\n {\r\n throw new ExcelWorkbookException(Interpolator.instance().interpolate(\"Could not find data table with id #0\", dataTableId));\r\n }\r\n\r\n // Inits the workbook and worksheet\r\n UIWorkbook uiWorkbook = new UIWorkbook();\r\n excelWorkbook.createWorkbook(uiWorkbook);\r\n UIWorksheet uiWorksheet = new UIWorksheet();\r\n uiWorkbook.getChildren().add(uiWorksheet);\r\n uiWorksheet.setStyle(CSSParser.getStyle(dataTable));\r\n uiWorksheet.setStyleClass(CSSParser.getStyleClass(dataTable));\r\n excelWorkbook.createOrSelectWorksheet(uiWorksheet);\r\n\r\n // Saves the datatable var\r\n String dataTableVar = dataTable.getVar();\r\n Object oldValue = FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get(dataTableVar);\r\n\r\n // Processes the columns\r\n List<javax.faces.component.UIColumn> columns = ExcelComponent.getChildrenOfType(dataTable.getChildren(), javax.faces.component.UIColumn.class);\r\n columnWidths = parseColumnWidths(uiWorksheet);\r\n int col = 0;\r\n for (javax.faces.component.UIColumn column : columns)\r\n {\r\n ColumnStyle columnStyle = new ColumnStyle(parser.getCascadedStyleMap(column));\r\n boolean cssExport = columnStyle.export == null || columnStyle.export;\r\n if (column.isRendered() && cssExport)\r\n {\r\n uiWorksheet.getChildren().add(column);\r\n Iterator iterator = UIWorksheet.unwrapIterator(dataTable.getValue());\r\n processColumn(column, iterator, dataTableVar, col++);\r\n excelWorkbook.nextColumn();\r\n }\r\n }\r\n\r\n // Restores the data table var\r\n if (oldValue == null)\r\n {\r\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().remove(dataTableVar);\r\n }\r\n else\r\n {\r\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(dataTableVar, oldValue);\r\n }\r\n\r\n // Redirects to the generated document\r\n redirectExport();\r\n\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\n if (action == null) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n return;\n }\n \n HttpSession session = request.getSession();\n Integer userid = (Integer) session.getAttribute(\"userid\");\n if (userid == null) {\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n return;\n }\n \n /**\n * LOAD SHEET\n */\n if (action.equals(\"request\")) {\n try {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n SheetUsuario sheet = SheetDAO.getSheet(id, userid);\n if (sheet != null) {\n if (sheet.getNome() != null) {\n response.setContentType(\"application/json;charset=UTF-8\");\n response.getWriter().print(\"[{\"\n + \"\\\"id\\\":\" + sheet.getId()\n + \",\\\"criador\\\":\" + sheet.getCriador()\n + \",\\\"idstyle\\\":\" + sheet.getIdstyle()\n + \",\\\"gameid\\\":\" + sheet.getGameid()\n + \",\\\"segura\\\":\" + (sheet.isSegura() ? \"true\" : \"false\")\n + \",\\\"visualizar\\\":\" + (sheet.isVisualizar()? \"true\" : \"false\")\n + \",\\\"editar\\\":\" + (sheet.isEditar()? \"true\" : \"false\")\n + \",\\\"deletar\\\":\" + (sheet.isDeletar()? \"true\" : \"false\")\n + \",\\\"values\\\":\" + sheet.getValues()\n + \",\\\"nome\\\":\" + GsonFactory.getFactory().getGson().toJson(sheet.getNome())\n + \"}]\");\n } else {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n }\n } else {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n }\n } catch (NumberFormatException e) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n }\n return;\n }\n \n \n /**\n * LIST SHEETS\n */\n if (action.equals(\"list\")) {\n ArrayList<JogoUsuarioSheet> jogos = JogoDAO.getJogosSheets(userid);\n response.setContentType(\"application/json;charset=UTF-8\");\n GsonFactory.getFactory().getGson().toJson(jogos, response.getWriter());\n return;\n }\n \n /**\n * UPDATE SHEET\n */\n if (action.equals(\"update\")) {\n Validation valid = new Validation();\n String name = request.getParameter(\"name\");\n String values = request.getParameter(\"values\");\n if (!valid.validName(name) || values == null) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n return;\n }\n try {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Gson gson = GsonFactory.getFactory().getGson();\n JsonObject jvalues = gson.fromJson(values, JsonObject.class);\n\n kinds.Sheet sheet = new kinds.Sheet();\n sheet.setId(id);\n sheet.setNome(name);\n sheet.setValues(gson.toJson(jvalues));\n\n SheetDAO dao = new SheetDAO();\n int result = dao.updateSheet(sheet, userid);\n if (result == 2) {\n response.setStatus(HttpServletResponse.SC_NO_CONTENT);\n } else if (result == 1) {\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n } else if (result == 0) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n } else if (result == -1) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n }\n } catch (NumberFormatException | JsonSyntaxException e) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n }\n return;\n }\n \n /**\n * LIST SHEET PERMISSIONS\n */\n if (action.equals(\"listPerm\")) {\n try {\n ArrayList<SheetPermissao> sp = SheetDAO.getPrivileges(Integer.parseInt(request.getParameter(\"id\")), userid);\n if (sp == null) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n } else if (sp.size() == 0) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n } else {\n response.setContentType(\"application/json;charset=UTF-8\");\n GsonFactory.getFactory().getGson().toJson(sp, response.getWriter());\n }\n } catch (NumberFormatException e) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n }\n return;\n }\n \n /**\n * UPDATE PERMISSIONS\n */\n if (action.equals(\"updatePerm\")) {\n if (request.getParameter(\"id\") == null || request.getParameter(\"privileges\") == null) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n return;\n }\n try {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Gson gson = GsonFactory.getFactory().getGson();\n JsonArray privilegesJson = gson.fromJson(request.getParameter(\"privileges\"), JsonArray.class);\n SheetPermissao sp;\n ArrayList<SheetPermissao> sheets = new ArrayList<SheetPermissao>();\n JsonObject privilegeJson;\n for (int i = 0; i < privilegesJson.size(); i++) {\n privilegeJson = privilegesJson.get(i).getAsJsonObject();\n if (!privilegeJson.has(\"userid\") || !privilegeJson.has(\"visualizar\") || !privilegeJson.has(\"editar\")\n || !privilegeJson.has(\"deletar\")) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n return;\n }\n sp = new SheetPermissao();\n\n sp.setUserid(privilegeJson.get(\"userid\").getAsInt());\n sp.setVisualizar(privilegeJson.get(\"visualizar\").getAsBoolean());\n sp.setEditar(privilegeJson.get(\"editar\").getAsBoolean());\n sp.setDeletar(privilegeJson.get(\"deletar\").getAsBoolean());\n sp.setPromote(privilegeJson.get(\"promote\").getAsBoolean());\n\n sheets.add(sp);\n }\n int result = SheetDAO.updatePrivileges(sheets, id, userid);\n if (result == 1) {\n response.setStatus(HttpServletResponse.SC_NO_CONTENT);\n } else if (result == 0) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n } else {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR );\n }\n } catch (NumberFormatException | JsonSyntaxException e) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n }\n return;\n }\n \n /**\n * CREATE SHEET\n */\n if (action.equals(\"create\")) {\n try {\n Validation valid = new Validation();\n String name = request.getParameter(\"name\");\n if (!valid.validName(name)) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n return;\n }\n int idJogo = Integer.parseInt(request.getParameter(\"gameid\"));\n int idStyle = Integer.parseInt(request.getParameter(\"idstyle\"));\n boolean publica = request.getParameter(\"publica\") != null && request.getParameter(\"publica\").equalsIgnoreCase(\"true\");\n kinds.Sheet sheet = new kinds.Sheet();\n sheet.setCriador(userid);\n sheet.setIdstyle(idStyle);\n sheet.setNome(name);\n sheet.setValues(\"{}\");\n sheet.setPublica(publica);\n \n int creation = SheetDAO.createSheet(sheet, userid, idJogo);\n if (creation == 2) {\n response.setStatus(HttpServletResponse.SC_NO_CONTENT);\n } else if (creation == 1) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n } else if (creation == 0) {\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n } else {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n }\n } catch (NumberFormatException e) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n }\n return;\n }\n \n /**\n * DELETE SHEET\n */\n if (action.equals(\"delete\")) {\n try {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n int result = SheetDAO.deleteSheet(id, userid);\n if (result == 1) {\n response.setStatus(HttpServletResponse.SC_NO_CONTENT);\n } else if (result == 0) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n } else {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n }\n } catch (NumberFormatException e) {\n response.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n }\n return;\n }\n \n response.setStatus(HttpServletResponse.SC_NOT_IMPLEMENTED);\n }", "public ActionLocation exportInquiryTeam(ModuleMapping mapping, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tString returnLabel = \"exportInquiryTeam\";\n\t\tString teamcode = (String) request.getParameter(\"teamCode\");\n\t\tString teamname = (String) request.getParameter(\"teamName\");\n\t\tString status = (String) request.getParameter(\"status\");\n\t\tString teamleader = (String) request.getParameter(\"teamleader\");\n\t\tString orgId = (String) request.getParameter(\"orgId\");\n\t\tStaffVO currentStaff = (StaffVO) request.getSession().getAttribute(CommonName.CURRENT_STAFF_INFOR);\n\t\tHashMap paramMap = new HashMap();\n\t\tIDBManager dbManager = null;\n\t\ttry {\n\t\t\tdbManager = DBManagerFactory.getDBManager();\n\t\t\tTeamDAO teamDao = new TeamDAO(dbManager);\n\t\t\tTeamVO tvo = new TeamVO();\n\t\t\tif (teamcode != null && !\"\".equals(teamcode)) {\n\t\t\t\t// tvo.setTeamCode(teamcode);\n\t\t\t\tparamMap.put(\"teamCode\", teamcode.trim());\n\t\t\t}\n\t\t\tif (teamname != null && !\"\".equals(teamname)) {\n\t\t\t\t// tvo.setTeamName(teamname);\n\t\t\t\tparamMap.put(\"teamName\", teamname.trim());\n\t\t\t}\n\t\t\tif (status != null && !\"\".equals(status)) {\n\t\t\t\t// tvo.setStatus(status);\n\t\t\t\tparamMap.put(\"status\", status);\n\t\t\t}\n\t\t\tif (teamleader != null && !\"\".equals(teamleader)) {\n\t\t\t\ttvo.setTLeaderName(teamleader);\n\t\t\t}\n\t\t\tif (orgId != null && !\"\".equals(orgId)) {\n\t\t\t\torgId = \"'\" + orgId + \"'\";\n\t\t\t\t// tvo.setOrgId(orgId);\n\t\t\t\tparamMap.put(\"orgId\", orgId);\n\t\t\t} else {\n\t\t\t\t// tvo.setOrgId(currentStaff.getLowerCompanys());\n\t\t\t\tparamMap.put(\"orgId\", currentStaff.getLowerCompanys());\n\t\t\t}\n\n\t\t\t// List all records\n\t\t\tPageVO page = new PageVO();\n\t\t\tpage.setPageSize(0);\n\t\t\tpage.setCurrentPage(1);\n\n\t\t\tpage.setParamMap(paramMap);\n\t\t\tCollection teaList = teamDao.searchTeamList(page);\n\t\t\trequest.setAttribute(\"eflowteamList\", teaList);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturnLabel = \"fail\";\n\t\t} finally {\n\t\t\tif (dbManager != null) {\n\t\t\t\tdbManager.freeConnection();\n\t\t\t}\n\t\t}\n\t\treturn mapping.findActionLocation(returnLabel);\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(download.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(download.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet f_reg_validate</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet f_reg_validate at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n */\n } finally { \n out.close();\n }\n }" ]
[ "0.6828371", "0.6544777", "0.6209866", "0.5978391", "0.5947565", "0.5851954", "0.58277076", "0.56374043", "0.5596618", "0.5536627", "0.553352", "0.5495296", "0.53919184", "0.5382634", "0.53373134", "0.5322719", "0.5299857", "0.5259335", "0.5249661", "0.52337277", "0.5222191", "0.5213438", "0.51962864", "0.5138576", "0.5133457", "0.5117634", "0.5101432", "0.50997275", "0.5099648", "0.5069012", "0.5054076", "0.50155187", "0.50131506", "0.50099874", "0.5005672", "0.49999267", "0.49932095", "0.49918416", "0.49913356", "0.49911377", "0.49689066", "0.49597076", "0.49439594", "0.4937684", "0.49342573", "0.4925242", "0.49246395", "0.4920333", "0.49202", "0.49189454", "0.49187928", "0.4912518", "0.4909754", "0.49079034", "0.48922935", "0.4887222", "0.4883867", "0.48751816", "0.48724023", "0.4863313", "0.48581758", "0.48482096", "0.48403388", "0.48330733", "0.4830097", "0.48215085", "0.4815197", "0.4810343", "0.48091263", "0.48062822", "0.4803312", "0.48022413", "0.48014256", "0.47825742", "0.47792533", "0.47785825", "0.47750828", "0.47738314", "0.4768581", "0.47609296", "0.47580075", "0.47481495", "0.47465414", "0.47396672", "0.4734889", "0.47315004", "0.47221586", "0.47209603", "0.47176784", "0.4716531", "0.4714795", "0.47072187", "0.4705437", "0.47045833", "0.470298", "0.46972492", "0.4696043", "0.4687623", "0.46835765", "0.46823612", "0.46791196" ]
0.0
-1
p = 2^192 2^32 2^12 2^8 2^7 2^6 2^3 1
private static ECDomainParameters init(String name) { BigInteger p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37"); BigInteger a = ECConstants.ZERO; BigInteger b = BigInteger.valueOf(3); byte[] S = null; BigInteger n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D"); BigInteger h = BigInteger.valueOf(1); ECCurve curve = new ECCurve.Fp(p, a, b); //ECPoint G = curve.decodePoint(Hex.decode("03" //+ "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D")); ECPoint G = curve.decodePoint(Hex.decode("04" + "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D" + "9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D")); return new NamedECDomainParameters(curve, G, n, h, S, name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HugeUInt pow(int p) {\r\n \tHugeUInt one = new HugeUInt(1);\r\n \tHugeUInt acc = one;\r\n \tif(p==0){\r\n \t\treturn one;\r\n \t}\r\n \tHugeUInt c = one.multiply(this);\r\n \twhile(p>1){\r\n \t\tif(p%2==0){\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\telse if(p%2==1){\r\n \t\t\tacc = acc.multiply(c);\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\tp/=2;\r\n \t}\r\n \treturn c.multiply(acc);\r\n }", "public BigInteger getP() {return(p);}", "BigInteger generatePublicExponent(BigInteger p, BigInteger q) {\n return new BigInteger(\"65537\");\n }", "int permute(int p) {\n int index = wrap(p);\n if (_map != null && _map.containsKey(index)) {\n return _map.get(index);\n } else {\n return index;\n }\n }", "static int[] permutationEquation(int[] p) {\n int[] ret = new int[p.length];\n HashMap<Integer,Integer> values = new HashMap<>();\n for(int i = 0; i < p.length; i++){\n values.put(p[i],i+1);\n }\n for(int i = 1; i <=p.length; i++){\n int index1 = values.get(i);\n int index2 = values.get(index1);\n ret[i-1] = index2;\n }\n return ret;\n }", "static int modPow(int b, int p, int m) {\n b = b % m;\n int res = 1;\n\n while (p > 0) {\n if (p % 2 == 1)\n res = (res * b) % m;\n p /= 2;\n b = b * b % m;\n }\n return res;\n }", "RSAKeygen(){\n Random rnd = new Random();\n p = BigInteger.probablePrime(bitlength, rnd);\n BigInteger eTmp = BigInteger.probablePrime(bitlength, rnd);\n\n while(p.equals(eTmp)){\n eTmp = BigInteger.probablePrime(bitlength,rnd);\n }\n\n q = eTmp;\n n = p.multiply(q);\n }", "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 void genKeyPair(BigInteger p, BigInteger q)\n {\n n = p.multiply(q);\n BigInteger PhiN = RSA.bPhi(p, q);\n do {\n e = new BigInteger(2 * SIZE, new Random());\n } while ((e.compareTo(PhiN) != 1)\n || (Utils.bigGCD(e,PhiN).compareTo(BigInteger.ONE) != 0));\n d = RSA.bPrivateKey(e, p, q);\n }", "public static int geometric( double p ) {\n // using algorithm given by Knuth\n return (int) Math.ceil( Math.log( uniform() ) / Math.log( 1.0 - p ) );\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 }", "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 }", "@Test\n public void testP() {\n System.out.println(\"p\");\n NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3);\n instance.rand();\n assertEquals(0.027, instance.p(0), 1E-7);\n assertEquals(0.0567, instance.p(1), 1E-7);\n assertEquals(0.07938, instance.p(2), 1E-7);\n assertEquals(0.09261, instance.p(3), 1E-7);\n assertEquals(0.05033709, instance.p(10), 1E-7);\n }", "int kelilingPP(int a, int b){\r\n return 2*(a+b);\r\n }", "@Override\n\tpublic double[] hash(int[] p) {\n\t\tint N = p.length;\n\t\tdouble[] g = new double[N];\n\t\tfor (int k = 0; k < N; k++) {\t\t// dimension k\n\t\t\tint h = h8(p, k + seed);\n\t\t\tg[k] = (double) (h & 0xFF) / 0xFF;\n\t\t}\n\t\treturn g;\n\t}", "private int mapping(int p, int q) {\n if (p < 1 || q < 1)\n throw new IllegalArgumentException(\"either p or q or both are below 1\");\n// return -1;\n int k = count * (p - 1) + q - 1;\n return k;\n }", "private static int jacobiSymbol(int p, BigInteger n) {\n if (p == 0)\n return 0;\n\n // Algorithm and comments adapted from Colin Plumb's C library.\n int j = 1;\n int u = n.mag[n.mag.length-1];\n\n // Make p positive\n if (p < 0) {\n p = -p;\n int n8 = u & 7;\n if ((n8 == 3) || (n8 == 7))\n j = -j; // 3 (011) or 7 (111) mod 8\n }\n\n // Get rid of factors of 2 in p\n while ((p & 3) == 0)\n p >>= 2;\n if ((p & 1) == 0) {\n p >>= 1;\n if (((u ^ (u>>1)) & 2) != 0)\n j = -j; // 3 (011) or 5 (101) mod 8\n }\n if (p == 1)\n return j;\n // Then, apply quadratic reciprocity\n if ((p & u & 2) != 0) // p = u = 3 (mod 4)?\n j = -j;\n // And reduce u mod p\n u = n.mod(BigInteger.valueOf(p)).intValue();\n\n // Now compute Jacobi(u,p), u < p\n while (u != 0) {\n while ((u & 3) == 0)\n u >>= 2;\n if ((u & 1) == 0) {\n u >>= 1;\n if (((p ^ (p>>1)) & 2) != 0)\n j = -j; // 3 (011) or 5 (101) mod 8\n }\n if (u == 1)\n return j;\n // Now both u and p are odd, so use quadratic reciprocity\n assert (u < p);\n int t = u; u = p; p = t;\n if ((u & p & 2) != 0) // u = p = 3 (mod 4)?\n j = -j;\n // Now u >= p, so it can be reduced\n u %= p;\n }\n return 0;\n }", "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 }", "@Test\n public void testLargeM() {\n assertEquals(32, PiGenerator.powerMod(2, 5, 42423131));\n }", "char permute(char p) {\n return _alphabet.toChar(permute(_alphabet.toInt(p)));\n }", "private int h2(int p){\n\t\tdouble A = (Math.sqrt(5) - 1) / 2;\n\t\treturn (int) Math.abs(this.table.length * ((p * A) - (int)(p * A))) % table.length;\n\t}", "@Test\n public void testLargeALargeM() {\n assertEquals(11479907, PiGenerator.powerMod(123456, 2, 42423131));\n }", "static void print(BigInteger[] P) \r\n{\r\n\tString a = P[0].toString(16);\r\n\tString b = P[1].toString(16);\r\n\tSystem.out.printf(\" |%S|\",a); \r\n\tSystem.out.printf(\" |%S| \\n\",b);\r\n}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.printf(\"p 2^p-1 \\n\");\n\t\tSystem.out.println(\"________________\");\n\t\t\n\t\tfor(int i=2; i<=2147483647; i++ ) {\n\t\t\tif(isPrime(marsenne(i))) {\n\t\t\t\tSystem.out.printf(i +\" \"+marsenne(i)+\"\\n\");\n\t\t\t}\n\t\t}\n\n\t}", "public long modPow(int b, int p, int m) {\r\n if (p == 0)\r\n return 1;\r\n else if (p % 2 == 0)\r\n return square(modPow(b, p / 2, m)) % m;\r\n else\r\n return ((b % m) * modPow(b, p - 1, m)) % m;\r\n }", "static public PublicParameter BFSetup1(int n)\n\t\t\tthrows NoSuchAlgorithmException {\n\n\t\tString hashfcn = \"\";\n\t\tEllipticCurve E;\n\t\tint n_p = 0;\n\t\tint n_q = 0;\n\t\tPoint P;\n\t\tPoint P_prime;\n\t\tPoint P_1;\n\t\tPoint P_2;\n\t\tPoint P_3;\n\t\tBigInt q;\n\t\tBigInt r;\n\t\tBigInt p;\n\t\tBigInt alpha;\n\t\tBigInt beta;\n\t\tBigInt gamma;\n\n\t\tif (n == 1024) {\n\t\t\tn_p = 512;\n\t\t\tn_q = 160;\n\t\t\thashfcn = \"SHA-1\";\n\t\t}\n\n\t\t// SHA-224 is listed in the RFC standard but has not yet been\n\t\t// implemented in java.\n\t\t// else if (n == 2048) {\n\t\t// n_p = 1024;\n\t\t// n_q = 224;\n\t\t// hashfcn = \"SHA-224\";\n\t\t// }\n\n\t\t// The Following are not implemented based on the curve used from the\n\t\t// JPair Project\n\t\t// else if (n == 3072) {\n\t\t// n_p = 1536;\n\t\t// n_q = 256;\n\t\t// hashfcn = \"SHA-256\";\n\t\t// }\n\t\t//\n\t\t// else if (n == 7680) {\n\t\t// n_p = 3840;\n\t\t// n_q = 384;\n\t\t// hashfcn = \"SHA-384\";\n\t\t// }\n\t\t//\n\t\t// else if (n == 15360) {\n\t\t// n_p = 7680;\n\t\t// n_q = 512;\n\t\t// hashfcn = \"SHA-512\";\n\t\t// }\n\n\t\tRandom rnd = new Random();\n\t\tTatePairing sstate = Predefined.ssTate();\n\n\t\t// This can be used if you are not implementing a predefined curve in\n\t\t// order to determine the variables p and q;\n\t\t// do{\n\t\t// q = new BigInt(n_p, 100, rnd);\n\t\t// r = new BigInt(n_p, rnd );\n\t\t// p = determinevariables(r, q, n_p, rnd);\n\t\t// P_ = sstate.getCurve().randomPoint(rnd);\n\t\t// P = sstate.getCurve().multiply(P_, BigInt.valueOf(12).multiply(r));\n\t\t// } while (P !=null);\n\n\t\tq = sstate.getGroupOrder();\n\t\tFp fp_p = (Fp) sstate.getCurve().getField();\n\t\tp = fp_p.getP();\n\n\t\tr = new BigInt(n_p, rnd);\n\t\t// P_ = sstate.getCurve2().randomPoint(rnd);\n\t\t// P = sstate.getCurve2().multiply(P_, BigInt.valueOf(12).multiply(r));\n\t\tP = sstate.RandomPointInG1(rnd);\n\t\tP_prime = sstate.RandomPointInG2(rnd);\n\t\tdo {\n\t\t\talpha = new BigInt(q.bitLength(), rnd);\n\t\t} while (alpha.subtract(q).signum() == -1);\n\n\t\tdo {\n\t\t\tbeta = new BigInt(q.bitLength(), rnd);\n\t\t} while (beta.subtract(q).signum() == -1);\n\n\t\tdo {\n\t\t\tgamma = new BigInt(q.bitLength(), rnd);\n\t\t} while (beta.subtract(q).signum() == -1);\n\n\t\tP_1 = sstate.getCurve().multiply(P, alpha);\n\t\t// System.out.println(\"P_1 is on curve : \" +\n\t\t// sstate.getCurve().isOnCurve(P_1));\n\t\tP_2 = sstate.getCurve2().multiply(P_prime, beta);\n\t\t// System.out.println(\"P_2 is on curve : \" +\n\t\t// sstate.getCurve2().isOnCurve(P_2));\n\t\tP_3 = sstate.getCurve().multiply(P, gamma);\n\t\t// System.out.println(\"P_3 is on curve : \" +\n\t\t// sstate.getCurve().isOnCurve(P_3));\n\n\t\tsecret.add(alpha);\n\t\tsecret.add(beta);\n\t\tsecret.add(gamma);\n\n\t\tComplex v = (Complex) sstate.compute(P_1, P_2);\n\t\treturn new PublicParameter(sstate, p, q, P, P_prime, P_1, P_2, P_3, v,\n\t\t\t\thashfcn);\n\t}", "final int wrap(int p) {\n int r = p % size();\n if (r < 0) {\n r += size();\n }\n return r;\n }", "public static void main(String args[]) {\n System.out.print(\"please enter the value of n: \");\n Scanner in = new Scanner(System.in);\n Long n = in.nextLong();\n // generate a prime number p\n p = GEN_pq(n);\n System.out.println(\"p: \" + p);\n // generate a prime number q\n do {\n q = GEN_pq(n);\n } while(p==q);\n\n System.out.println(\"q: \" + q);\n // compute the value of N\n N = p * q;\n System.out.println(\"N: \" + N);\n // compute the value of phi(N)\n phi_N = (p - 1) * (q - 1);\n System.out.println(\"phi(N) : \" + phi_N);\n // generate the exponential number e (e must be smaller than phi(N)\n // and it must be relative prime with phi(N))\n e = GEN_e(phi_N);\n System.out.println(\"e: \" + e);\n // the trapdoor for RSA: d = (k * phi(N) + 1) / e\n d = GEN_d(phi_N);\n// d = (2 * (phi_N) + 1) / e;\n System.out.println(\"d: \" + d);\n // find and add all possible values into set Zn*\n Z = new ArrayList<Long>();\n for (long i = 1; i < N; i++) {\n if (gcd(i, N) == 1) {\n Z.add(i);\n }\n }\n // randomly select an element from the set Zn*\n Random rand = new Random();\n int index = rand.nextInt(Z.size() - 1);\n x = Z.get(index);\n System.out.println(\"x: \" + x);\n long y = encrypt(x, e, N);\n System.out.println(\"y: \" + y);\n long x_prime = decrpyt(y, d, N);\n System.out.println(\"decrypted x: \" + x_prime);\n if (x_prime == x) System.out.println(\"The RSA algorithm is functioning correctly\");\n }", "static int psw(){\n\t\tint psw = 0;\n\t\tpsw+=(CS?1:0);\n\t\tpsw+=(P?4:0);\n\t\tpsw+=(AC?16:0);\n\t\tpsw+=(Z?64:0);\n\t\tpsw+=(S?128:0);\n\t\treturn psw;\n\t}", "private int p(K k, int i) {\r\n return i/2 + (i*i)/2 + (i%2);\r\n }", "AdaptiveProbMap(int n, int rate) \n {\n this.rate = rate;\n this.data = new int[n*33];\n\n for (int i=0, k=0; i<n; i++, k+=33)\n {\n for (int j=0; j<33; j++)\n this.data[k+j] = (i == 0) ? Global.squash((j-16)<<7) << 4 : this.data[j];\n }\n }", "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 }", "@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 static void main(String[] arrr){\n\t\tlong mod = 10000000011L;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\tlong total=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttotal = (total+((long)Math.pow((countBit(arr[i])),(i+1))%mod))%mod;\n\t\t}\n\t\tSystem.out.println(total);\n\t}", "int luasPP(int a, int b){\r\n return a*b;\r\n }", "long perm(int n, int m, long mod) {\n long result = 1;\n for (int i = n - m + 1; i <= n; ++i) {\n result = result * i % mod;\n }\n return result;\n }", "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 void generateKeys() {\n\t\t// p and q Length pairs: (1024,160), (2048,224), (2048,256), and (3072,256).\n\t\t// q must be a prime; choosing 160 Bit for q\n\t\tSystem.out.print(\"Calculating q: \");\n\t\tq = lib.generatePrime(160);\n\t\tSystem.out.println(q + \" - Bitlength: \" + q.bitLength());\n\t\t\n\t\t// p must be a prime\n\t\tSystem.out.print(\"Calculating p \");\n\t\tp = calculateP(q);\n\t System.out.println(\"\\np: \" + p + \" - Bitlength: \" + p.bitLength());\n\t System.out.println(\"Test-Division: ((p-1)/q) - Rest: \" + p.subtract(one).mod(q));\n\t \n\t // choose an h with (1 < h < p−1) and try again if g comes out as 1.\n \t// Most choices of h will lead to a usable g; commonly h=2 is used.\n\t System.out.print(\"Calculating g: \");\n\t BigInteger h = BigInteger.valueOf(2);\n\t BigInteger pMinusOne = p.subtract(one);\n\t do {\n\t \tg = h.modPow(pMinusOne.divide(q), p);\n\t \tSystem.out.print(\".\");\n\t }\n\t while (g == one);\n\t System.out.println(\" \"+g);\n\t \n\t // Choose x by some random method, where 0 < x < q\n\t // this is going to be the private key\n\t do {\n\t \tx = new BigInteger(q.bitCount(), lib.getRandom());\n }\n\t while (x.compareTo(zero) == -1);\n\t \n\t // Calculate y = g^x mod p\n\t y = g.modPow(x, p);\n\t \n System.out.println(\"y: \" + y);\n System.out.println(\"-------------------\");\n System.out.println(\"Private key (x): \" + x);\n\t}", "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 static int factorial(int p){\n\t\t// in this application p cannot be negative, so no logic for negative factorials\n\t\t// is included. if p=0 or 1 then 1 is returned.\n\t\t// if p>1 then p! is returned\n\t\t// also, in this application p is small (p will generally be 5, \n\t\t// but could range from 2 to 7)\n\t\t// so no logic for large p or exception handling for memory overflow is included\n\t\tint returnValue = p;\n\t\tif(p > 1) {\n\t\t\tfor(int m = 1; m < p; m++){\n\t\t\t\treturnValue = returnValue*(p-m);\n\t\t\t}\n\t\t} else if(p==0) {\n\t\t\treturnValue = 1;\n\t\t}\n\t\treturn(returnValue);\n\t}", "public byte[] getPermutation() {\n byte[] p = new byte[48];\n for(int i = 0; i < 24; i+=3) {\n int k = co[i/3];\n if(k == 0) {}\n else if(k == 1) {k=2;}\n else {k=1;}\n int r = cp[i/3] * 3 + k;\n p[i] = (byte) r;\n p[i+1] = (byte) (((r-r/3*3+1)%3)+r/3*3);\n p[i+2] = (byte) (((r-r/3*3+2)%3)+r/3*3);\n }\n for(int i = 24; i < 48; i +=2) {\n int r = ep[(i-24)/2]*2 + eo[(i-24)/2];\n p[i] = (byte) (r + 24);\n p[i+1] = (byte) ((r-r/2*2+1)%2 + r/2*2 + 24);\n }\n return p;\n }", "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}", "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 }", "private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }", "public static int getBitsNumber(int n) {\r\n\t\treturn (int) (Math.log(n) / Math.log(2.0) + 0.9999);\r\n\t}", "public static long nPr(int n, int r)\n throws IllegalArgumentException\n {\n if ((r > n) || (r < 0) || (n < 0))\n throw new IllegalArgumentException();\n long npr = 1;\n for (int p = n - r + 1; p <= n; p++)\n npr *= p;\n return npr;\n }", "@Test\n public void testLargeA() {\n assertEquals(18, PiGenerator.powerMod(123456, 2, 23));\n }", "public static long nPr(int n, int r) {\n if(r > n)\n return 0;\n if(r == 0)\n return 1;\n\n return nPr(n-1, r) + r * nPr(n-1, r-1);\n }", "BigInteger getPower_consumption();", "private int h8 (int[] p, int sd) {\n\t\tint h = sd & 0xFF;\n\t\tfor (int k = 0; k < p.length; k++) {\n\t\t\th = P[h + p[k] & 0xFF];\n\t\t}\n\t\treturn h;\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}", "static String power (String s, int p) {\r\n if (s==errorSignature) return errorSignature;\r\n if (p==1) return s;\r\n try {\r\n StringBuffer result = new StringBuffer();\r\n char type [] = new char[1];\r\n int pos [] = new int[1];\r\n int power[] = new int[1];\r\n int index[] = new int[1];\r\n int n = eatNumber (s, pos); // <n>(..dimensionReference)\r\n result.append (n);\r\n for (int i=0; i<n; i++) {\r\n String name = eatReference (s, pos, type, power, index);\r\n char c = type[0]; // 'D' or 'W' ...\r\n result.append (c);\r\n if (c=='D') {result.append (p*power[0]).append (name). append (';');}\r\n else if (c=='W') {result.append (p*power[0]).append ('V' ).append (index[0]).append (';');}\r\n else {throw new RuntimeException ();}\r\n }\r\n return result.toString();\r\n }\r\n catch (RuntimeException e) {\r\n throw new RuntimeException (\"INTERNAL ERROR: illegal dimension signature: \"+s);\r\n }\r\n }", "public void testTwoWayDistribution() {\n for(int p = 0; p < 20; p++) {\n int[] landings = new int[2];\n for(long in = 0; in < 100000; in++) {\n long longHash = FPGenerator.std64.fp(p+\"a\"+in);\n// long longHash = rand.nextLong();\n// long longHash = ArchiveUtils.doubleMurmur((p+\":\"+in).getBytes());\n landings[conhash.bucketFor(longHash, 2)]++;\n }\n// System.out.println(landings[0]+\",\"+landings[1]);\n assertTrue(\"excessive changes\",Math.abs(landings[0]-landings[1]) < 2000); \n }\n }", "private double getPseudoLoadingFactor( int... plus ) {\n if (plus.length > 0 && plus.length < 2) {\n return (double) (int) (((double) (n + nd + plus[0]) / N) * 10000) / 10000; \n }\n return (double) (int) (((double) (n + nd) / N) * 10000) / 10000;\n }", "public static int[] prc(int[] arr,int p)\r\n {\n char[][] barr=new char[arr.length][];\r\n /*for(int i=0;i<barr.length;i++)\r\n barr[i] = new StringBuilder(\"\");*/\r\n int[] onesarr=new int[barr.length];\r\n int odd,even;\r\n odd=even=0;\r\n for(int i=0;i<arr.length;i++)\r\n {\r\n barr[i]=(Integer.toBinaryString(p^arr[i])).toCharArray();\r\n }\r\n\r\n /*for(int i=0;i<barr.length;i++)\r\n System.out.print(barr[i]+\" \");\r\n System.out.println();*/\r\n /*for(int i=0;i<barr.length;i++)\r\n {\r\n char[] tmp=new char[barr[i].length()];\r\n barr[i].getChars(0, barr[i].length(), tmp, 0);\r\n int t=0;\r\n for(int j=0;j<tmp.length;j++)\r\n {\r\n if(tmp[j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }*/\r\n for(int i=0;i<barr.length;i++)\r\n {\r\n int t=0;\r\n for(int j=0;j<barr[i].length;j++)\r\n {\r\n if(barr[i][j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }\r\n /*for(int i=0;i<onesarr.length;i++)\r\n System.out.print(onesarr[i]+\" \");\r\n System.out.println();*/\r\n for(int i=0;i<onesarr.length;i++)\r\n {\r\n if(onesarr[i]%2==0)\r\n even++;\r\n else\r\n odd++;\r\n }\r\n int[] ansarr=new int[2];\r\n ansarr[0]=even;\r\n ansarr[1]=odd;\r\n return ansarr; \r\n }", "short getP( byte[] buffer, short offset );", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }", "public static double petaBitsToBits(double num) { return gigaBitsToBits(petaBitsToGigaBits(num)); }", "int equalPairOfBits(int n, int m) {\n return ((BinaryOperator<Integer>) (a, b) -> {\n String one = Integer.toBinaryString(a);\n String two = Integer.toBinaryString(b);\n //FUCK YO SHIT, THIS IS STUPID\n int max = Math.max(one.length(), two.length());\n if (max != one.length())\n one = IntStream.range(0, max - one.length())\n .mapToObj(aq -> \"0\")\n .reduce(\"\", (r, c) -> r + c) + one;\n if (max != two.length())\n two = IntStream.range(0, max - two.length())\n .mapToObj(aq -> \"0\")\n .reduce(\"\", (r, c) -> r + c) + two;\n for (int i = max - 1, j = 0; i > -1; --i, j++) {\n if (one.charAt(i) == two.charAt(i))\n return (int) Math.pow(2, j);\n }\n return 0;\n }).apply(n, m);\n }", "public static String pPermutation(String input) {\n\n assert input.length() == 32;\n\n StringBuilder result = new StringBuilder();\n\n for (int[] ints : PPermutation) {\n for (int anInt : ints) {\n result.append(input.charAt(anInt - 1));\n }\n }\n\n return result.toString();\n }", "public BigIntegerAffinePoint mul(BigIntegerAffinePoint p, BigInteger[] secretBits, BigIntegerAffinePoint[] precomputedTable) {\n\n BigIntegerAffinePoint result = new BigIntegerAffinePoint(precomputedTable[secretBits.length]);\n adddivTable = new BigInteger[secretBits.length];\n for (int j = secretBits.length - 1; j >= 0; j--) {\n BigIntegerAffinePoint tmp = addBigIntegerAffinePoints(result, precomputedTable[j], secretBits.length -j -1);\n\n BigInteger isOne = secretBits[j];\n\n result.x = result.x.add(isOne.multiply(tmp.x.subtract(result.x))).mod(FIELD_PRIME);\n result.y = result.y.add(isOne.multiply(tmp.y.subtract(result.y))).mod(FIELD_PRIME);\n }\n result = subAffinePoints(result, precomputedTable[secretBits.length]);\n\n return result;\n }", "public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "static int gen(int n)\n{ \n int []S = new int [n + 1];\n \n S[0] = 0;\n if(n != 0)\n S[1] = 1;\n \n for (int i = 2; i <= n; i++)\n { \n \n // S(2 * n) = 4 * S(n)\n if (i % 2 == 0)\n S[i] = 4 * S[i / 2];\n \n // S(2 * n + 1) = 4 * S(n) + 1\n else\n S[i] = 4 * S[i/2] + 1;\n }\n \n return S[n];\n}", "public static void main (String[] args)\n {\n int[] f = {3,3,1}; \n \n //System.out.println(nCPr(f,3));\n System.out.println(nCPr(f,3));\n \n System.exit(0);\n \n /*\n long t = System.currentTimeMillis();\n System.out.println(primes0(Long.MAX_VALUE)); \n System.out.println((System.currentTimeMillis() - t) /1);\n \n t = System.currentTimeMillis();\n System.out.println(primes(Long.MAX_VALUE,null)); \n System.out.println((System.currentTimeMillis() - t) /1);*/\n \n br.com.hkp.classes.math.numberstheory.QuickSieve sv = \n new br.com.hkp.classes.math.numberstheory.QuickSieve(50000000);\n \n System.out.println(\">>>\"+primeFactors(89999999));\n \n \n \n Iterator<Integer> it = sv.getList().iterator();\n \n double soma = 0;\n \n while (it.hasNext())\n \n {\n long n = it.next();\n if (n > 6000)\n break;\n else\n soma += 32000000 / it.next();\n }\n \n System.out.println(soma);\n \n //System.exit(0);\n \n \n System.out.println(\" Fatorando...\");\n long pow = (long)Math.pow(50000000, 2);\n \n System.out.println(\" pow = \" +pow);\n \n for (int i = 0; i <= 300; i++)\n {\n long random = (long)(pow * Math.random());//715256374182293l;\n System.out.println(\" random = \" + random);\n long t = System.currentTimeMillis();\n System.out.print(\"Primes : \"+primeFactors(random,sv.getList())); \n long time = System.currentTimeMillis() - t;\n System.out.println(\" > \"+ time + \" milseg\");\n \n t = System.currentTimeMillis();\n System.out.print(\"Primes0 : \"+primeFactors(random)); \n long time0 = System.currentTimeMillis() - t;\n System.out.println(\" > \"+ time0 + \" milseg\");\n \n \n System.out.println(\" ratio = \" + ((time != 0) ? time0/time : \"N/A\"));\n }\n //System.out.println(primes(14552145213l)); \n //System.out.println((7l*7l*73l*127l*337l*92737l*649657l) == Long.MAX_VALUE); \n //System.out.println(5l*23l*53301701l*1504703107l); \n //System.out.println((7l*7l*73l*127l*337l*92737l*649657l)); \n System.exit(0);\n //System.out.println(frac(5.97));\n int[] v = {3,2,0};\n System.out.println(nPr(v,3));\n \n System.exit(0);\n\n double pi = 5.97;\n //System.out.println(frac(pi));\n double fracPi = frac (pi);\n double fracMinusPi = frac (-pi);\n double i = integ(pi);\n //System.out.printf (\"%f %f %f %.14f%n\", pi, fracPi, fracMinusPi,i);\n System.out.println ( fracPi);\n\n BigDecimal bdPi = new BigDecimal (\"\" +5.97);\n BigDecimal bdFracPi = frac (bdPi);\n BigDecimal bdFracMinusPi = frac (bdFracPi.negate());\n\n //System.out.printf (\"%f %f %f%n\", bdPi, bdFracPi, bdFracMinusPi);\n System.out.println(bdFracPi);\n }", "public static int findNearestPowerofTwo(int n) {\n\t\tif ((n & n - 1) == 0) {\n return n;\n }\n int a = 1;\n while (a < n) {\n a = a << 1;\n }\n\n\n return a >> 1;\n\t}", "static boolean isPowerOfTwo(int n) \n{\n\tif (n==0) return false;\n \treturn (n & (n-1)) == 0;\n}", "private void recoverCodes(PrioQ p)\n\t{\n\t\tcodes = new String[256];\n\t\t\n\t\tString s = \"\";\n\t\twhile(s.length() < p.get(0).getCount())\n\t\t{\n\t\t\ts += \"0\";\n\t\t}\n\t\tp.get(0).setCanCode(s);\n\t\tcodes[p.get(0).getData()] = s;\n\t\t\n\t\tint n = 0;\n\t\tfor(int i = 1; i < p.size(); i++)\n\t\t{\n\t\t\tn++;\n\t\t\twhile(Integer.toBinaryString(n).length() < \n\t\t\t\t\tp.get(i).getCount())\n\t\t\t{\n\t\t\t\tn = n << 1;\n\t\t\t}\n\t\t\t\n\t\t\tp.get(i).setCanCode(Integer.toBinaryString(n));\n\t\t\tcodes[p.get(i).getData()] = Integer.toBinaryString(n);\n\t\t}\n\t}", "public abstract byte getMaxExponentSize();", "public static BigInteger getPent(int i)\n {\n\tBigInteger bii = new BigInteger(\"\"+i);\n BigInteger tmp = bii;\n tmp = tmp.multiply(bi3);\n tmp = tmp.add(bim1);\n tmp = tmp.multiply(bii);\n\ttmp = tmp.divide(bi2); //i*(3*i - 1)/2\n\treturn tmp;\n }", "public final KeyPair generateKeyPair() {\n\t\tif (SECURE_RANDOM == null) {\n\t\t\tSECURE_RANDOM = new SecureRandom();\n\t\t}\n\t\t// for p and q we divide the bits length by 2 , as they create n, \n\t\t// which is the modulus and actual key size is depend on it\n\t\tBigInteger p = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\tBigInteger q;\n\t\tdo {\n\t\t\tq = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\t} while (q.compareTo(p) == 0);\n\n\t\t// lambda = lcm(p-1, q-1) = (p-1)*(q-1)/gcd(p-1, q-1)\n\t\tBigInteger lambda = p.subtract(BigInteger.ONE).multiply(q\n\t\t\t\t.subtract(BigInteger.ONE)).divide(p.subtract(BigInteger.ONE)\n\t\t\t\t.gcd(q.subtract(BigInteger.ONE)));\n\n\t\tBigInteger n = p.multiply(q); // n = p*q\n\t\tBigInteger nsquare = n.multiply(n); // nsquare = n*n\n\t\tBigInteger g;\n\t\tdo {\n\t\t\t// generate g, a random integer in Z*_{n^2}\n\t\t\tdo {\n\t\t\t\tg = new BigInteger(STRENGTH, 64, SECURE_RANDOM);\n\t\t\t} while (g.compareTo(nsquare) >= 0\n\t\t\t\t\t|| g.gcd(nsquare).intValue() != 1);\n\n\t\t\t// verify g, the following must hold: gcd(L(g^lambda mod n^2), n) =\n\t\t\t// 1,\n\t\t\t// where L(u) = (u-1)/n\n\t\t} while (g.modPow(lambda, nsquare).subtract(BigInteger.ONE).divide(n)\n\t\t\t\t.gcd(n).intValue() != 1);\n\n\t\t// mu = (L(g^lambda mod n^2))^{-1} mod n, where L(u) = (u-1)/n\n\t\tBigInteger mu = g.modPow(lambda, nsquare).subtract(BigInteger.ONE)\n\t\t\t\t.divide(n).modInverse(n);\n\n\t\tPaillierPublicKey publicKey = new PaillierPublicKey(n, g, nsquare);\n\t\tPaillierPrivateKey privateKey = new PaillierPrivateKey(lambda, mu,\n\t\t\t\tnsquare, n);\n\n\t\treturn new KeyPair(publicKey, privateKey);\n\t}", "int minverse(int z)\n {\n int to,t1;\n int q,y;\n if(z<=1)\n return z;\n t1=0x10001/z;\n y=0x10001%z;\n if(y==1)\n return (0xffff&(1-t1));\n to=1;\n do\n {\n q=z/y;\n z=z%y;\n to+=q*t1;\n if(z==1)\n return to;\n q=y/z;\n y=y%z;\n t1+=q*to;\n }while(y!=1);\n return (0xffff&(1-t1));\n }", "int next(int bits);", "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 int fastPower(int a, int b, int n) {\n // write your code here\n long base = a, ans = 1;\n while (n > 0) {\n if (n % 2 == 1) {\n ans = ans * base % b;\n }\n n /= 2;\n base = base * base % b;\n }\n return (int) ans % b;\n }", "public final boolean ec_dec_bit_logp(final int _logp) {\r\n\t\tfinal long r = this.rng;\r\n\t\tfinal long d = this.val;\r\n\t\tfinal long s = r >>> _logp;\r\n\t\tfinal boolean ret = d < s;\r\n\t\tif( ! ret ) {\r\n\t\t\tthis.val = d - s;\r\n\t\t}\r\n\t\tthis.rng = ret ? s : r - s;\r\n\t\tec_dec_normalize();\r\n\t\treturn ret;\r\n\t}", "public static String pow(String bytes,int size, int value){\n if(value==1||value==0||size<1||size>bytes.length()||!Cript2010x8b.USEPOWNTHRT) return bytes; \n String out=\"\"; \n int max=bytes.length()/size; \n if(bytes.length()%size!=0) \n max++; \n for(int i=0;i<max;i++){ \n String subStr=\"\"; \n for(int l=0;l<size;l++) \n try{ \n subStr+=bytes.charAt(i*size+(size-l-1)); \n }catch(Exception e){ \n String bug=bytes.substring(i*size); \n bug=addLong(bug,1,value); \n return out+bug; \n } \n BigInteger current=strToBInt(subStr); \n current=current.pow(value); \n int exiter=0;\n while(current.compareTo(BigInteger.valueOf(2).pow(8*size))>0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size).negate());exiter++;} \n exiter=0;\n while(current.compareTo(BigInteger.ZERO)<0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size));exiter++;} \n out+=BintToStr(current,size); \n } \n return out; \n }", "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 long nextLong(long n) {\n long bits;\n long val;\n do {\n bits = (rnd.nextLong() << 1) >>> 1;\n val = bits % n;\n } while (bits - val + (n - 1) < 0L);\n return val;\n }", "private static long nPr(int[] frequency, int i, int n, int r)\n { \n //nao ha mais posicoes disponiveis para incluir elementos de permutacao\n if (r == 0) return 1;\n \n //retornara o calculo de nPr\n long npr = 0;\n \n //numero de elementos que ainda sobrarao, no proximo nivel de recursao,\n //para serem distribuidos pelas posicoes restantes\n n = n - frequency[i]; \n \n //chama o metodo recursivamente enquanto o numero de elementos que \n //restarem para serem distribuidos for maior ou igual ao numero de \n //posicoes disponiveis no proximo nivel de recursao\n for (\n int assignedsElements = Math.min(r, frequency[i]); \n (assignedsElements >= 0) && (n >= r - assignedsElements);\n assignedsElements--\n )\n \n //nCr() retorna o numero de maneiras que se pode distribuir \n //<assignedsElements> elementos de permutacao em <r> posicoes\n //Eh multiplicado pelas permutacoes que ainda se pode fazer nas \n //posicoes restantes com os elementos restantes\n npr += nCr(r, assignedsElements)\n * \n nPr(frequency, i+1, n, r - assignedsElements);\n \n return npr;\n }", "private int countPermuation(int n, int m){\n\t\tint res = 1;\n\t\tfor(int i = n - m + 1; i <= n; i++){\n\t\t\tres *= i;\n\t\t}\n\t\treturn res;\n\t}", "public long bits() {\n\t\tlong x = n;\n\t\tif (x > 0) {\n\t\t\tlong msw = get(x - 1) & 0xffffffffL;\n\t\t\tx = (x - 1) * BPU;\n\t\t\tx = x & 0xffffffffL;\n\t\t\tlong w = BPU;\n\t\t\tdo {\n\t\t\t\tw >>= 1;\n\t\t\t\tif (msw >= ((1 << w) & 0xffffffffL)) {\n\t\t\t\t\tx += w;\n\t\t\t\t\tx = x & 0xffffffffL;\n\t\t\t\t\tmsw >>= w;\n\t\t\t\t}\n\t\t\t} while (w > 8);\n\t\t\tx += bittab[(int) msw];\n\t\t\tx = x & 0xffffffffL;\n\t\t}\n\t\treturn x;\n\t}", "@Test\n public void testLargeB() {\n assertEquals(12, PiGenerator.powerMod(2, 42, 13));\n }", "java.math.BigInteger getNcbieaa();", "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 abstract long mo9748m();", "public static boolean ipot(long n) {\n\t\treturn n+(n-1) == (n^(n-1));\n\t}", "public int R_M(){\n\t\tBigInteger nminus1=n.subtract(BigInteger.ONE);\n\t\tdo{\n\t\t\tif(nminus1.mod(two.pow(a)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(a);\n\t\t\t}\n\t\t\titerator++;\n\t\t\ta++;\n\t\t}while(!(two.pow(a).compareTo(n)>0));\n\t\t\n\t\ta=table.get(table.size()-1);\n\t\tBigInteger m=nminus1.divide(two.pow(a));\n\t\tint wlen=n.bitLength();\n\t\tBigInteger b;\n\t\tBigInteger z;\n\t\tfor(int i=0;i<iterations;i++){\n\t\t\tint straznik=0;\n\t\t\tint straznik1=0;\n\t\t\tdo{\n\t\t\t b=new BigInteger(wlen,new Random());\n\t\t\t}while(!(b.compareTo(BigInteger.ONE)>0) && !(b.compareTo(nminus1)<0));\n\t\t\tz=b.modPow(m, n);\n\t\t\tif(z.equals(BigInteger.ONE) || z.equals(nminus1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int j=0;j<a-1;j++){\n\t\t\t\t\tz=z.pow(2).mod(n);\n\t\t\t\t\tif(z.equals(nminus1)){\n\t\t\t\t\t\tstraznik++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(z.equals(BigInteger.ONE)){\n\t\t\t\t\t\tstraznik1++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(straznik==1){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(straznik1==1){\n\t\t\t\t\tgetComposite();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tgetComposite();\n\t\t\treturn 0;\n\t\t}\n\t\tgetProbablyPrime();\n\t\treturn 1;\n\t\t}", "public static int FermatPT(int n) {\n\n for (int i = 2; i < (n/3); i++) {\n\n if((longPow(i,n-1,n))!=1){\n return i;\n }\n\n }\n\n\t\treturn 0;\n\t}", "java.math.BigInteger getNcbistdaa();", "private static BigInteger generatePFactor(\n Random randomSeed,\n SComplexity complexity,\n int certainty,\n BigInteger q) {\n long time = System.nanoTime();\n BigInteger m;\n BigInteger mR;\n BigInteger p = null;\n int step = 0;\n while ((step++) < MAX_STEPS) {\n m = new BigInteger(complexity.getPBitLength(), randomSeed);\n mR = m.mod(q.multiply(MathUtils.INTEGER_2));\n p = m.subtract(mR).add(BigInteger.ONE);\n if (p.isProbablePrime(certainty)) {\n LOGGER.info(\n String.format(\n \"Generated p number, took=%dms\\nq=%s\",\n TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - time),\n p.toString(RADIX)\n )\n );\n break;\n }\n }\n return p;\n }", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "public static BigInteger[] multiply_Point(BigInteger[] point, BigInteger factor) \r\n{\r\n\tBigInteger[] erg = point;\r\n\tBigInteger[] NULL= new BigInteger[2];\r\n\tNULL[0] = ZERO;\r\n\tNULL[1] = ZERO; \r\n\tif(factor.equals(ZERO)) return NULL;\r\n\tif(factor.equals(ONE)) return erg;\r\n\tif(factor.equals(TWO)) return multiply_2(erg);\r\n\tif(factor.equals(THREE)) return addition(multiply_2(erg),erg);\r\n\tif(factor.equals(FOUR)) return multiply_2(multiply_2(erg));\r\n\tif(factor.compareTo(FOUR)==1); \r\n\t{ \r\n\t\tint exp = factor.bitLength()-1;\r\n\t\tfor(;exp >0;exp--)erg = multiply_2(erg);\r\n\t\tfactor = factor.clearBit(factor.bitLength()-1);\r\n\t\terg = addition(multiply_Point(point,factor),erg);\r\n\t}\r\n\treturn erg; \r\n}", "int ainverse(int z)\n {\n return (65536-z);\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 }", "void genPromote(Collection ret, int from, int to, int bits) {\n\tfor (char i = KNIGHT; i <= QUEEN; ++i) {\n\tBouger g = new Bouger(from, to, i, (bits | 32), 'P');\n\tg.setScore(1000000 + (i * 10));\n\tret.add(g);\n\t}\n\t}", "@Test\n public void testLogP() {\n System.out.println(\"logP\");\n NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3);\n instance.rand();\n assertEquals(Math.log(0.027), instance.logp(0), 1E-7);\n assertEquals(Math.log(0.0567), instance.logp(1), 1E-7);\n assertEquals(Math.log(0.07938), instance.logp(2), 1E-7);\n assertEquals(Math.log(0.09261), instance.logp(3), 1E-7);\n assertEquals(Math.log(0.05033709), instance.logp(10), 1E-7);\n }", "public long countFriendsPairings(int n) \n {\n if(n<3){\n return n;\n }\n else{\n long mod=(long)Math.pow(10,9)+7;\n long b=1;\n long a=2;\n long curr=0;\n for(int i=3;i<n+1;i++){\n curr=(a+(i-1)*b)%mod;\n b=a;\n a=curr;\n \n } \n \n \n \n return curr; } \n }", "public static void main(String[] args) {\n\t\tArrayList<Integer> primelist = sieve(7071);\n\t\tArrayList<Double> second = new ArrayList<Double>();\n\t\tfor(int one : primelist) \n\t\t\tsecond.add(Math.pow(one, 2));\n\t\tArrayList<Double> third = new ArrayList<Double>();\n\t\tprimelist = sieve(368);\n\t\tfor(int one : primelist)\n\t\t\tthird.add(Math.pow(one, 3));\n\t\tArrayList<Double> fourth = new ArrayList<Double>();\n\t\tprimelist = sieve(84);\n\t\tfor(int one : primelist)\n\t\t\tfourth.add(Math.pow(one, 4));\n\n\t\tArrayList<Double> possibilities = new ArrayList<Double>();\n\t\tfor (int k = fourth.size() - 1; k >=0 ; k--) {\n\t\t\tfor (int j = 0; j < third.size(); j++) {\n\t\t\t\tdouble sum = fourth.get(k) + third.get(j);\n\t\t\t\tif (sum > 50000000)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 0; i < second.size(); i++) {\n\t\t\t\t\t\tdouble nextsum = sum + second.get(i);\n\t\t\t\t\t\tif (nextsum > 50000000)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// I am not sure whether it can be proved that the sum is unique.\n\t\t\t\t\t\t\tif (!possibilities.contains(nextsum))\n\t\t\t\t\t\t\t\tpossibilities.add(nextsum);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint totalcount = possibilities.size();\n\t\tSystem.out.println(totalcount);\n\t}", "@Test\n // boundary\n public void testGenerateNextLikelyPrime_4() {\n NaturalNumber n = new NaturalNumber2(4);\n CryptoUtilities.generateNextLikelyPrime(n);\n assertEquals(\"5\", n.toString());\n }" ]
[ "0.684629", "0.66019636", "0.63386416", "0.6263519", "0.6002366", "0.5961315", "0.59177554", "0.58354783", "0.5798281", "0.5789918", "0.57827634", "0.57654065", "0.57564396", "0.57411563", "0.5740614", "0.57356936", "0.5733148", "0.5724704", "0.5707446", "0.5686074", "0.5679198", "0.5669023", "0.5644693", "0.5633834", "0.5631067", "0.5601436", "0.5595397", "0.5583809", "0.557439", "0.55679494", "0.55566716", "0.5553365", "0.554713", "0.5536923", "0.5532598", "0.55314755", "0.55174726", "0.55063707", "0.5505791", "0.54924595", "0.548003", "0.547324", "0.54621935", "0.5461039", "0.5452119", "0.54486746", "0.5444382", "0.5419454", "0.53958607", "0.5395847", "0.5394844", "0.53834677", "0.53815746", "0.53774273", "0.53621954", "0.5359452", "0.53560257", "0.5354992", "0.5354564", "0.53523266", "0.53419673", "0.5337356", "0.5336319", "0.5336046", "0.53352", "0.53198004", "0.5315662", "0.5308743", "0.53051966", "0.53051597", "0.52988863", "0.5294973", "0.52893317", "0.5287823", "0.52870923", "0.5286264", "0.52832305", "0.52766776", "0.5270746", "0.5269061", "0.52659726", "0.5260015", "0.52530944", "0.52501863", "0.52501816", "0.5248381", "0.5238556", "0.5237752", "0.5237254", "0.523327", "0.5229455", "0.52286863", "0.52280885", "0.52278626", "0.5226797", "0.5214318", "0.52061594", "0.52028877", "0.5200878", "0.5195441", "0.5188662" ]
0.0
-1
Get the cache size to use.
int getCacheSizeInMiB();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSize() {\n synchronized (lock) {\n return cache.size();\n }\n }", "public int getCacheMaxSizeKB() {\n return (cacheHandler.getMaxCacheSizeKB());\n }", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "public long getCacheSize() {\n DiskCacheManager diskCacheManager = getDiskCacheManager();\n if (diskCacheManager == null) return 0;\n return diskCacheManager.getCacheSize();\n }", "public float getCacheSizeKB() {\n return ((float) cacheHandler.getCurrentCacheSizeBytes() / 1000);\n }", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "public static long getCacheSize() {\n return sDiskLruCache.size();\n }", "public int getCacheSize() {\n return cache.size();\n }", "public int getCacheSize() {\n\t\treturn _cacheSize;\n\t}", "public int getCacheSize();", "public int size() {\n return cache.size();\n }", "public int size() {\n synchronized (cacheMap) {\n return cacheMap.size();\n }\n }", "int getTotalLength() {\n synchronized (lock) {\n return cache.getTotalLength();\n }\n }", "int getCurrentCacheSize();", "@Override\n\tpublic int size() {\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.size();\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}", "public int size() {\r\n\t\treturn cache.size();\r\n\t}", "public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }", "int getMaximumCacheSize();", "public Long sizeInKB() {\n return this.sizeInKB;\n }", "public int getMaximumCacheSize() {\n return this.maximumCacheSize;\n }", "public int getCacheCount() {\n DiskCacheManager diskCacheManager = getDiskCacheManager();\n if (diskCacheManager == null) return 0;\n return diskCacheManager.getCacheCount();\n }", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public long getSize() {\n return size.get();\n }", "public int getResourceCache()\r\n {\r\n return getSemanticObject().getIntProperty(swb_resourceCache);\r\n }", "public String getCacheClusterSize() {\n return cacheClusterSize;\n }", "public long getGlobalMemcacheSize() {\n long total = 0;\n synchronized (onlineRegions) {\n for (HRegion region : onlineRegions.values()) {\n total += region.memcacheSize.get();\n }\n }\n return total;\n }", "public int getMaxDiskCacheSize() {\n return mMaxDiskCacheSize;\n }", "int getCachedCount();", "public int GetSize() {\n\t\tif(this.V == 0) {\n\t\t\t\n\t\t\t// Read from settings file\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"settings.txt\"));\n\t\t\t\tString line;\n\t\t\t\tif((line = br.readLine()) != null) {\n\t\t\t\t\tthis.V = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t}\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn this.V;\n\t}", "public Long get_cachetotresponsebytes() throws Exception {\n\t\treturn this.cachetotresponsebytes;\n\t}", "public int getCachedCount() {\n return cached_.size();\n }", "public static int getSIZE() {\n return SIZE;\n }", "public static int getCacheSize(Context ctx) {\n final DisplayMetrics displayMetrics = ctx.getResources().\n getDisplayMetrics();\n final int screenWidth = displayMetrics.widthPixels;\n final int screenHeight = displayMetrics.heightPixels;\n // 4 bytes per pixel\n final int screenBytes = screenWidth * screenHeight * 4;\n\n return screenBytes * 3;\n }", "@Override\n public int getCacheSize() {\n return 4 + 20 * (4 + 4 + 8);\n }", "public static native int getMaxCacheMem();", "public int size() {\n processQueue();\n return weakCache.size();\n }", "public Long get_cacheutilizedmemorykb() throws Exception {\n\t\treturn this.cacheutilizedmemorykb;\n\t}", "public int size()\n {\n // check if the cache needs flushing\n checkFlush();\n\n return super.size();\n }", "public int getCachedCount() {\n return cached_.size();\n }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public static long getTotalCacheSize(String packageName) {\n long cacheSize = 0;\n cacheSize += getInternalCacheSize(packageName);\n if (isExternalStorageMounted()) {\n cacheSize += getExternalCacheSize(packageName);\n }\n return cacheSize;\n }", "long getCacheHits();", "public Long get_cachetotrequests() throws Exception {\n\t\treturn this.cachetotrequests;\n\t}", "public Long get_cachemaxmemorykb() throws Exception {\n\t\treturn this.cachemaxmemorykb;\n\t}", "public long getSize() {\n\t\treturn size;\n\t}", "public static byte getSize() {\n return SIZE;\n }", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "@Override\n\tpublic long getMaxCacheSize() {\n\t\treturn 0;\n\t}", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public int getLocalSize();", "public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}", "@Override\n public int getCacheSize() {\n return 4 + this.arraySet.getTotalBytesSize();\n }", "public int getCachedTasksSize() {\n return cachedTasks.size();\n }", "public long getSize() {\r\n return size;\r\n }", "public long getSize() {\n return size;\n }", "public static native int getMaxCache();", "@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "@Override\n\tpublic long getCacheSize() {\n\t\treturn 0;\n\t}", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "private static int getBufferSize() {\n\t\tint result = -1;\n\n\t\t// see if the system property is set\n\t\tString property = System.getProperty(BUFFER_SIZE_PROPERTY);\n\t\tif (property != null && !property.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(property);\n\t\t\t}\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\tLOGGER.log(Level.WARNING, \"invalid buffer size: \" + property);\n\t\t\t}\n\t\t}\n\n\t\t// overrule negative or unspecified values with a 4 MB buffer (yes, I know that's a lot, but we want\n\t\t// quality output, right?)\n\t\tif (result < 0) {\n\t\t\tresult = 4 * 1024 * 1024;\n\t\t}\n\n\t\treturn result;\n\t}", "public synchronized long size() {\n\t\treturn size;\n\t}", "@Override\n public int getCacheSize() {\n return 4 * 1024 * 1024;\n }", "long storageSize();", "public final int cacheNodeChunkSize() {\n return -1;\r\n }", "public long getByteCount() {\n return byteCount;\n }", "long getMemorySize() {\n return MemoryBudget.DELTAINFO_OVERHEAD +\n MemoryBudget.byteArraySize(key.length);\n }", "public long getSize();", "public Long maxSizeInMegabytes() {\n return this.maxSizeInMegabytes;\n }", "int getLocalSize();", "public long getEntrySize() {\n return size;\n }", "public long size() {\n\t\treturn size;\n\t}", "public TSizeInBytes getSize() {\n\n\t\treturn size;\n\t}", "public int GetSize() \n\t{\n\t\treturn numEntries; //dummy return so file would compile\n\t}", "public int getMaxCacheSizeOnLowDiskSpace() {\n return mMaxCacheSizeOnLowDiskSpace;\n }", "public static int size_cost() {\n return (16 / 8);\n }", "long getSize();", "public long getSize() {\n return mSize;\n }", "public final long getSize() { return size; }", "public synchronized int getSize() {\n\t\treturn this.size;\n\t}", "public int get_size();", "public int get_size();", "public Integer getSize() {\n return size;\n }", "public Long get_cachetotflashcachehits() throws Exception {\n\t\treturn this.cachetotflashcachehits;\n\t}", "public int getNumCacheHit() {\n return cacheHandler.getCountCacheHit();\n }", "public long estimateSize() {\n/* 1448 */ return this.est;\n/* */ }", "public int getSpeed() {\r\n\t\t\tlong elapsedTime = System.currentTimeMillis() - tStartTime;\r\n\t\t\t\r\n\t\t\t// Refresh cache every 5 secs & prevent fake speed when resume\r\n\t\t\tif (elapsedTime > 5000) {\r\n\t\t\t\tspeedRefresh();\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Math.round(1000f * tDownloaded / elapsedTime);\r\n\t\t}", "long getLocalOffHeapSizeInBytes();", "public synchronized int getEntrySize() {\n return bytesPerSlot;\n }", "long getLocalOnHeapSizeInBytes();", "public final int capacity() {\n return packetCache.getCapacity();\n }", "public int getApproximateSize() {\r\n return approximateSize;\r\n }", "@Override\n public synchronized int size() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.size();\n }", "public Long get_cachetotexpireatlastbyte() throws Exception {\n\t\treturn this.cachetotexpireatlastbyte;\n\t}", "public Long get_cachetotpethits() throws Exception {\n\t\treturn this.cachetotpethits;\n\t}" ]
[ "0.8202184", "0.7916673", "0.79135406", "0.7911505", "0.79008037", "0.785041", "0.78418994", "0.7746778", "0.7732624", "0.7376946", "0.7324135", "0.7320254", "0.73098296", "0.72779983", "0.71778786", "0.7177758", "0.70746857", "0.7050973", "0.7027388", "0.6916441", "0.6915496", "0.6890271", "0.6834498", "0.68309534", "0.6792721", "0.67812145", "0.67642057", "0.6743923", "0.67297864", "0.6687556", "0.6683591", "0.66796386", "0.66690403", "0.6660207", "0.66550267", "0.6654595", "0.66509503", "0.6650827", "0.66494954", "0.66393423", "0.6633836", "0.6621832", "0.661965", "0.66142666", "0.65584904", "0.6547715", "0.6541292", "0.65372825", "0.6536734", "0.6528803", "0.6528203", "0.6528203", "0.6528203", "0.6528203", "0.65246695", "0.6516841", "0.65096635", "0.65051466", "0.6501623", "0.64946544", "0.6493473", "0.6484013", "0.64703614", "0.64538604", "0.64488184", "0.64254314", "0.6423859", "0.6417555", "0.64084804", "0.64043146", "0.6403366", "0.64018404", "0.63980126", "0.6393572", "0.6391172", "0.638208", "0.6374639", "0.63727176", "0.63584226", "0.635235", "0.6349114", "0.6345353", "0.63447917", "0.6325225", "0.6323024", "0.63196385", "0.63196385", "0.6310498", "0.63083035", "0.6298422", "0.62933314", "0.6289611", "0.62737584", "0.62734795", "0.6271286", "0.62664545", "0.6264205", "0.62550014", "0.6250519", "0.6249946" ]
0.7822718
7
Get the cache concurrency to use.
int getCacheConcurrency();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native int getConcurrency();", "public Long get_cachenumcached() throws Exception {\n\t\treturn this.cachenumcached;\n\t}", "public int getConcurrency() throws SQLException\n {\n return m_rs.getConcurrency();\n }", "public Long getConcurrentExecutions() {\n return this.ConcurrentExecutions;\n }", "public int getResourceCache()\r\n {\r\n return getSemanticObject().getIntProperty(swb_resourceCache);\r\n }", "public TransactionConcurrency concurrency();", "public Optional<Integer> maxRetriesCcc() {\n return Codegen.integerProp(\"maxRetriesCcc\").config(config).get();\n }", "public Long get_cachecompressedbytesservedrate() throws Exception {\n\t\treturn this.cachecompressedbytesservedrate;\n\t}", "@JsProperty(name = \"hardwareConcurrency\")\n Number getHardwareConcurrency();", "int getMaxConcurrent();", "public String getConcurrentPool() {\n return getPropertyAsString(CONCURRENT_POOL, CONCURRENT_POOL_DEFAULT);\n }", "public Long getMaxConcurrentConnection() {\n return this.MaxConcurrentConnection;\n }", "public Long get_cachetotpetrequests() throws Exception {\n\t\treturn this.cachetotpetrequests;\n\t}", "public Long get_cachetotrequests() throws Exception {\n\t\treturn this.cachetotrequests;\n\t}", "public int currentConcurrencyLimit(int max) {\n\t\tint retVal = tool_concurrency;\n\n\t\tif (retVal <= 0) {\n\t\t\tretVal = Runtime.getRuntime().availableProcessors(); //ForkJoinPool.getCommonPoolParallelism();\n\t\t}\n\t\tif (max <= 0) {\n\t\t\treturn retVal;\n\t\t} else {\n\t\t\treturn retVal > max ? max : retVal;\n\t\t}\n\t}", "public static native int getMaxCache();", "public Long get_cachecompressedbytesserved() throws Exception {\n\t\treturn this.cachecompressedbytesserved;\n\t}", "Builder withCacheConcurrency(int concurrency);", "public int getCacheSize() {\n return cache.size();\n }", "int getCurrentCacheSize();", "public int getCacheSize() {\n\t\treturn _cacheSize;\n\t}", "public int getConcurrency() throws SQLException {\n\n try {\n debugCodeCall(\"getConcurrency\");\n checkClosed();\n UpdatableRow row = new UpdatableRow(conn, result);\n return row.isUpdatable() ? ResultSet.CONCUR_UPDATABLE : ResultSet.CONCUR_READ_ONLY;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public int getNumberConcurrentEmulators() {\n\t\treturn (numberConcurrentEmulators);\n\t}", "public Long get_cachetothits() throws Exception {\n\t\treturn this.cachetothits;\n\t}", "public Long get_cachetotpethits() throws Exception {\n\t\treturn this.cachetotpethits;\n\t}", "int getMaximumCacheSize();", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "int getCachedCount();", "public String getCacheClassName() {\n return cacheClassName;\n }", "public Long get_cachepethitsrate() throws Exception {\n\t\treturn this.cachepethitsrate;\n\t}", "public Long get_cachepetrequestsrate() throws Exception {\n\t\treturn this.cachepetrequestsrate;\n\t}", "public synchronized int getThreads()\n/* */ {\n/* 181 */ return this.threads;\n/* */ }", "public static RequestCountForCartBundleCache getCache()\n\t{\n\t\treturn instance;\n\t}", "public int getIoThreadMultiplier()\n {\n return ioThreadMultiplier;\n }", "public Long get_cachetotinvalidationrequests() throws Exception {\n\t\treturn this.cachetotinvalidationrequests;\n\t}", "public int getMaximumCacheSize() {\n return this.maximumCacheSize;\n }", "public Object getMaxConcurrentConnections() {\n return this.maxConcurrentConnections;\n }", "public Long get_cachecurmisses() throws Exception {\n\t\treturn this.cachecurmisses;\n\t}", "public ConcurrencyTemplate<Game> getConcurrencyTemplate() {\n return concurrencyTemplate;\n }", "public int getCapacity() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}", "public long getThreads() { return threads; }", "@ZAttr(id=1154)\n public int getGalSyncMaxConcurrentClients() {\n return getIntAttr(Provisioning.A_zimbraGalSyncMaxConcurrentClients, 2);\n }", "public Object maxConcurrentConnections() {\n return this.maxConcurrentConnections;\n }", "public String getCacheClusterSize() {\n return cacheClusterSize;\n }", "public Long get_cacheparameterizedrequestsrate() throws Exception {\n\t\treturn this.cacheparameterizedrequestsrate;\n\t}", "public String getCacheControl() {\n return this.cacheControl;\n }", "public int getResultSetConcurrency() throws SQLException {\n return currentPreparedStatement.getResultSetConcurrency();\n }", "public long getCacheExpirationSeconds() {\n return cache.getCacheExpirationSeconds();\n }", "public int getCachedCount() {\n return cached_.size();\n }", "CloudCache getCache(String cacheName);", "public ConcurrentHashMap<Long, NativeDownloadModel> mo45197b() {\n ConcurrentHashMap<Long, NativeDownloadModel> concurrentHashMap = new ConcurrentHashMap<>();\n try {\n for (Map.Entry<String, ?> entry : m41930c().getAll().entrySet()) {\n try {\n long longValue = Long.valueOf(entry.getKey()).longValue();\n NativeDownloadModel b = NativeDownloadModel.m41805b(new JSONObject((String) entry.getValue()));\n if (longValue > 0 && b != null) {\n concurrentHashMap.put(Long.valueOf(longValue), b);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n return concurrentHashMap;\n }", "public int getCachedCount() {\n return cached_.size();\n }", "public Long get_cacheinvalidationrequestsrate() throws Exception {\n\t\treturn this.cacheinvalidationrequestsrate;\n\t}", "public Long get_cachetotparameterizedrequests() throws Exception {\n\t\treturn this.cachetotparameterizedrequests;\n\t}", "public int getCacheSize();", "public static String getCacheClassName( ) {\n return CACHE_CLASS_NAME;\n }", "public int getNumberOfThreads(){\n return numberOfThreads;\n }", "int getPoolSize();", "public Integer getCpus() {\n return cpus;\n }", "public Long get_cachecurhits() throws Exception {\n\t\treturn this.cachecurhits;\n\t}", "public float getCacheSizeKB() {\n return ((float) cacheHandler.getCurrentCacheSizeBytes() / 1000);\n }", "public int getCacheCount() {\n DiskCacheManager diskCacheManager = getDiskCacheManager();\n if (diskCacheManager == null) return 0;\n return diskCacheManager.getCacheCount();\n }", "public int getNumberOfThreads() { return numberOfThreads; }", "public Integer getCpus() {\n return cpus;\n }", "public Long get_cachemaxmemoryactivekb() throws Exception {\n\t\treturn this.cachemaxmemoryactivekb;\n\t}", "public Long get_cacherequestsrate() throws Exception {\n\t\treturn this.cacherequestsrate;\n\t}", "public Long get_cachehitsrate() throws Exception {\n\t\treturn this.cachehitsrate;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "public static long getRequests() {\n return requests;\n }", "int getPoolRaces();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "int getWriterConcurrency();", "public int getWorkerThreads() {\n return workerThreads;\n }", "public String getResourceCacheType()\r\n {\r\n return getSemanticObject().getProperty(swb_resourceCacheType);\r\n }", "public static long getCacheSize() {\n return sDiskLruCache.size();\n }", "public int getActivePoolSize(){return activePoolSize;}", "public HashMap<String, Integer> getClassCMCScores() {\n return classCMCScores;\n }", "public Long get_cachemissesrate() throws Exception {\n\t\treturn this.cachemissesrate;\n\t}", "SW_ConcurrencyPackage getSW_ConcurrencyPackage();", "public int getPoolSize() {\n return poolSize;\n }", "public int getCacheMaxSizeKB() {\n return (cacheHandler.getMaxCacheSizeKB());\n }", "int getCacheSizeInMiB();", "public Integer getCcn()\r\n {\r\n return (Integer) ( (IntegerMetricBO) getMetrics().get( CCN ) ).getValue();\r\n }", "public Long get_cachepercentpethits() throws Exception {\n\t\treturn this.cachepercentpethits;\n\t}", "int getNumberOfTasksOnCriticalPath();", "public int getCacheAccessTime() { return Integer.parseInt(cacheAccessTime.getText()); }", "public MemoryCacheParams get() {\n return new MemoryCacheParams(m114359b(), 256, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, f81939a);\n }", "public Long get_cachetotfulltoconditionalrequest() throws Exception {\n\t\treturn this.cachetotfulltoconditionalrequest;\n\t}", "public static synchronized long getConnectionAttemptsGlobalCounter() {\n return connectionAttemptsGlobalCounter;\n }", "public int getResultSetConcurrency() throws SQLException {\n return 0;\r\n }", "long getCacheMisses();", "public Long get_cachetotstoreablemisses() throws Exception {\n\t\treturn this.cachetotstoreablemisses;\n\t}", "public Long get_cachetotmisses() throws Exception {\n\t\treturn this.cachetotmisses;\n\t}", "public CacheChangeSet obtainCacheChangeSet() {\n if (changeSet == null) {\n changeSet = new CacheChangeSet();\n }\n return changeSet;\n }", "public int getMaxRetries() {\n\t return maxRetries.get();\n\t}", "int getExecutorCorePoolSize();", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "public static CacheControl getCacheControl(int cacheType) {\n switch (cacheType) {\n case CACHE_NETWORK: {\n return CacheControl.FORCE_NETWORK;\n }\n\n case CACHE_IF_HIT: {\n return new CacheControl.Builder()\n .maxAge(DEFAULT_CACHE_FRESH_DURATION, TimeUnit.SECONDS)\n .build();\n }\n\n case CACHE_FORCE: {\n return CacheControl.FORCE_CACHE;\n }\n\n default:\n return CacheControl.FORCE_NETWORK;\n }\n }", "public long getCBR(int communicationCost) {\n return maximalCcc + communicationCost * iterations;\n }", "int getExecutorPoolSize();" ]
[ "0.6824617", "0.66832024", "0.6293353", "0.61947846", "0.6188422", "0.61550355", "0.614468", "0.6134977", "0.60910887", "0.6044533", "0.6040297", "0.59491086", "0.5904981", "0.5869392", "0.58563864", "0.5838417", "0.5832706", "0.5826829", "0.5806465", "0.577306", "0.57577455", "0.57431215", "0.5717413", "0.5695911", "0.56477326", "0.5636799", "0.563496", "0.56297886", "0.56160975", "0.561181", "0.5607001", "0.55997694", "0.5598513", "0.5582961", "0.5578963", "0.5554212", "0.5546554", "0.5546276", "0.55357546", "0.55233574", "0.55206525", "0.55191255", "0.5495937", "0.549056", "0.5488056", "0.54810315", "0.54748064", "0.5437372", "0.54210716", "0.54068613", "0.5400797", "0.5398112", "0.5381", "0.53712714", "0.53568417", "0.53564036", "0.53553724", "0.5332334", "0.5330511", "0.5325091", "0.5314709", "0.53029424", "0.5297861", "0.52910197", "0.52631074", "0.5252303", "0.52519715", "0.52436113", "0.52406687", "0.5239598", "0.5232567", "0.5227283", "0.5214282", "0.52135944", "0.5211018", "0.5191814", "0.51847774", "0.51802003", "0.51800567", "0.5165929", "0.5160627", "0.51537967", "0.5151153", "0.51463383", "0.51458913", "0.514484", "0.51402175", "0.51349735", "0.5133108", "0.51122165", "0.51120037", "0.51117927", "0.51069605", "0.5105801", "0.51042175", "0.50958407", "0.5093695", "0.5089421", "0.5087812", "0.5085733" ]
0.7983155
0
Get the fill rate to target. If the active data falls below this percentage the storage will try to compact the storage file.
int getAutoCompactFillRate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder withAutoCompactFillRate(int percentage);", "public double getFill() {\n\t\treturn _fillGrade;\n\t}", "public float getLoad(){\n\t\treturn 1.0f*size/capacity;\n\t}", "public float getRate() {\n\treturn durationStretch * nominalRate;\n }", "public float getByteRate() {\n return byteMonitor.getRate();\n }", "public float getCapacity();", "public double getSupplyToDemandRatio() {\n return (this.supplyToDemandRatio == -1.0) ? (double) this.getTotalSupply() / this.getTotalDemand() : this.supplyToDemandRatio;\n }", "public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "public RMFill getFill() { return _fill; }", "float getFull();", "public double getAvailable() {\r\n\t\treturn this.capacity - flow;\r\n\t}", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}", "private BigDecimal calculateBaseValueFare(PassengerCharterDTO passengerCharterDTO)\n {\n // Full fare = ((Actual transaction value)/ (100-discount percent)) * 100\n BigDecimal fullFare = null;\n\n fullFare = BigDecimal\n .valueOf((passengerCharterDTO.getTransactionValue().doubleValue() / (100 - passengerCharterDTO\n .getDiscountPercent().doubleValue())) * 100);\n return fullFare;\n }", "public int getChargeRate();", "float getConsumeReduction();", "public float getMaxRatio();", "public double getGroupLoad() {\n int assignSum = assignList.stream().mapToInt(AssignCar::getAssignedCount).sum();\n return groupPriority * capacity.getMaxVolume().getVolumeWeight() +\n assignSum * nextGroupCapacity.getMaxVolume().getVolumeWeight();\n }", "private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }", "BigDecimal getRecoveryFactor();", "public synchronized float getLoadFactor() {\n return (float)entries / (float)slots;\n }", "double getLeftoverMemoryPercentile() {\n return MathUtils.toPercentile(getLeftoverMemory(), pm.getMemory());\n }", "public BigDecimal getUsagePercentage() {\n return this.usagePercentage;\n }", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "public float getCountRate() {\n return countMonitor.getRate();\n }", "public double ComputeBaseFare(){\n\t\tif(this.getFlightClass().equalsIgnoreCase(\"BC\")){\n\t\t\t\treturn this.ComputeDistance() * 0.5;\n\t\t}\n\t\telse if(this.getFlightClass().equalsIgnoreCase(\"EP\")){\n\t\t\treturn this.ComputeDistance() * 0.2;\n\t\t}\n\t\telse{\n\t\t\treturn this.ComputeDistance() * 0.15;\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "public double getOccupiedHdGB () { return getHdBaseResource().getOccupiedCapacity(); }", "public double getPCapacity() {\n\t\treturn pCapacity;\n }", "protected double getDataRate() {\n\t\treturn (double) getThroughput() / (double) getElapsedTime();\n\t}", "public void utilization() {\r\n\t\tfloat fAktuell = this.aktuelleLast;\r\n\t\tfloat fMax = this.raumsonde.getMaxNutzlast();\r\n\t\tfloat prozent = fAktuell / fMax * 100;\r\n\r\n\t\tSystem.out.println(\" \" + fAktuell + \"/\" + fMax + \" (\" + prozent + \"%)\");\r\n\t}", "public int getCombatDensityRate() {\n return combatDensityRate;\n }", "@Override\r\n\tpublic float getEnergyConsumption() {\r\n\t\treturn 2500 - robot.getBatteryLevel();\r\n\t}", "public float getCost() {\r\n return defaultCost;\r\n }", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "public float getMinRatio();", "@Override\r\n\tpublic float getCharge() {\n\t\treturn 0;\r\n\t}", "public float getDCMb();", "public int getSupplyReadinessRate() {\n return supplyReadinessRate;\n }", "@Override\r\n\tpublic int getBufferPercentage() {\n\t\treturn 0;\r\n\t}", "@Override\n public int getRatePerSqFeet() {\n if (hasWifi == true)\n return ratePerSqFeet + 2;\n else\n return ratePerSqFeet;\n }", "public static float getConsumeRate() {\n return consumerate;\n }", "float getCostReduction();", "@Override\n public int fillInternal(FluidStack resource, boolean doFill)\n {\n if (resource == null || resource.amount <= 0)\n {\n return 0;\n }\n\n if (!doFill)\n {\n if (fluid == null)\n {\n return Math.min(capacity, resource.amount);\n }\n\n if (!fluid.isFluidEqual(resource))\n {\n return 0;\n }\n\n return Math.min(capacity - fluid.amount, resource.amount);\n }\n\n if (fluid == null)\n {\n fluid = new FluidStack(resource, Math.min(capacity, resource.amount));\n\n onContentsChanged();\n\n if (tile != null)\n {\n FluidEvent.fireEvent(new FluidEvent.FluidFillingEvent(fluid, tile.getWorld(), tile.getPos(), this, fluid.amount));\n }\n return fluid.amount;\n }\n\n if (!fluid.isFluidEqual(resource))\n {\n return 0;\n }\n int filled = capacity - fluid.amount;\n\n if (resource.amount < filled)\n {\n fluid.amount += resource.amount;\n filled = resource.amount;\n }\n else\n {\n fluid.amount = capacity;\n }\n \n if (filled>0) {\n \tonContentsChanged();\n }\n \n if (tile != null)\n {\n FluidEvent.fireEvent(new FluidEvent.FluidFillingEvent(fluid, tile.getWorld(), tile.getPos(), this, filled));\n }\n return filled;\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public double getCurrentPercentageError() {\n\t\tdouble returnValue = 0.0;\n\t\tint currentValue = this.readSensorValue();\n\t\tint optimum = getOptimumSensorValue(currentValue);\n\t\tif (currentValue > optimum) {\n\t\t\treturnValue = (double) (currentValue - optimum)\n\t\t\t\t\t/ (double) (this.highReadInValue - optimum);\n\t\t} else if (currentValue < optimum) {\n\t\t\treturnValue = -((double) (optimum - currentValue) / (double) (optimum - this.lowReadInValue));\n\t\t}\n\t\treturn returnValue;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getBlueCarFaultPercentage();", "@Override\n\tpublic double calcConsumedEnergy() {\n\t\treturn (getBasicEnergyCost() * 4);\n\t}", "int getBatteryPercentage();", "@Override\n\tpublic int getBufferPercentage() {\n\t\treturn 0;\n\t}", "public float getEnergyRate() { return EnergyRate; }", "public int getCurrentMemoryFailoverResourcesPercent() {\r\n return currentMemoryFailoverResourcesPercent;\r\n }", "public double getCurrentFuel();", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "BigDecimal getFare();", "com.cantor.drop.aggregator.model.CFTrade.Capacity getCapacity();", "@Override\n public double getCONSUMPTION() {\n if (status && brightValue != 0) {\n this.consumption = (super.DEFAULTCONSUMPTION + 2) + (brightValue / 100);\n } else if (status) {\n this.consumption = super.DEFAULTCONSUMPTION + 2;\n } else if (status != true) {\n this.consumption = super.DEFAULTCONSUMPTION;\n }\n\n return consumption;\n }", "protected abstract float _getGrowthChance();", "public float getRate(){\r\n return rate;\r\n }", "public java.lang.Double getLimitUsageRate() {\n return limitUsageRate;\n }", "public int getCustomInformationTransferRate();", "public int getBatteryPercentage() {\n if (extraCase_ == 6) {\n return (Integer) extra_;\n }\n return 0;\n }", "private double getLoadFactor() {\r\n\t\t\treturn numberOfElements / (double) currentCapacity;\r\n\t\t}", "public int getBatteryPercentage() {\n if (extraCase_ == 6) {\n return (Integer) extra_;\n }\n return 0;\n }", "private long getFree(String path) {\n StatFs statFs = new StatFs(path);\n\n if (Constants.BETA)\n Log.i(\"DeviceModel\", \"Free on \"+path+\"=\"+statFs.getBlockSize());\n return (isJellyBean)\n ? statFs.getAvailableBlocksLong() * statFs.getBlockSizeLong()\n : (long)statFs.getAvailableBlocks() * (long)statFs.getBlockSize();\n }", "public double getMaxCharge() {\r\n return maxCharge;\r\n }", "@ComputerMethod\n private FloatingLong getEnergyUsage() {\n return getActive() ? energyContainer.getEnergyPerTick() : FloatingLong.ZERO;\n }", "public double getTotalHdGB () { return n.getResources(RESOURCETYPE_HD).stream().mapToDouble(r->r.getCapacity()).sum (); }", "public double getFoodProductionRate() {\r\n\t\treturn foodProductionRate;\r\n\t}", "private float getRefreshRate() {\n return 1;\n }", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "ChargeableWeightMeasureType getChargeableWeightMeasure();", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "public double getPartialDerviative(double consumptionAllocation);", "public Long get_cachenummbreadfromdiskrate() throws Exception {\n\t\treturn this.cachenummbreadfromdiskrate;\n\t}", "@Override\n public double getMeasure() {\n return getFuelEffieciency();\n }", "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "public BigDecimal getConsumption() {\n return consumption;\n }", "public int getFuelCapacity() {\n return this.type.fuelCapacity;\n }", "public int getRatePerSqFeet() {\n if (hasWifi == true)\n return ratePerSqFeet + 2;\n else\n return ratePerSqFeet;\n }", "int getLumOff(){\n return getPercentageValue(\"lumOff\");\n }", "float getCostScale();", "Double getFreeFloat();", "private void fillData() {\n timer = null;\n timer2 = null;\n timer = new Timer();\n timer2 = new Timer();\n\n ActivityManager.MemoryInfo mi = new ActivityManager.MemoryInfo();\n ActivityManager activityManager = (ActivityManager) getActivity().getSystemService(ACTIVITY_SERVICE);\n activityManager.getMemoryInfo(mi);\n double availableMegs = mi.availMem / 0x100000L;\n double percentAvail = mi.availMem / (double)mi.totalMem * 100.0;\n\n\n// long l = AppUtil.getAvailMemory(mContext);\n// long y = AppUtil.getTotalMemory(mContext);\n// final double x = (((y - l) / (double) y) * 100);\n// // arcProcess.setProgress((int) x);\n final double x = 100 - percentAvail;\n arcProcess.setProgress(0);\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n\n if (arcProcess.getProgress() >= (int) x) {\n timer.cancel();\n } else {\n arcProcess.setProgress(arcProcess.getProgress() + 1);\n }\n\n }\n });\n }\n }, 50, 20);\n\n SDCardInfo mSDCardInfo = StorageUtil.getSDCardInfo();\n SDCardInfo mSystemInfo = StorageUtil.getSystemSpaceInfo(mContext);\n\n long nAvailaBlock;\n long TotalBlocks;\n if (mSDCardInfo != null) {\n nAvailaBlock = mSDCardInfo.free + mSystemInfo.free;\n TotalBlocks = mSDCardInfo.total + mSystemInfo.total;\n } else {\n nAvailaBlock = mSystemInfo.free;\n TotalBlocks = mSystemInfo.total;\n }\n\n final double percentStore = (((TotalBlocks - nAvailaBlock) / (double) TotalBlocks) * 100);\n\n capacity.setText(StorageUtil.convertStorage(TotalBlocks - nAvailaBlock) + \"/\" + StorageUtil.convertStorage(TotalBlocks));\n arcStore.setProgress(0);\n\n timer2.schedule(new TimerTask() {\n @Override\n public void run() {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n\n if (arcStore.getProgress() >= (int) percentStore) {\n timer2.cancel();\n } else {\n arcStore.setProgress(arcStore.getProgress() + 1);\n }\n\n }\n });\n }\n }, 50, 20);\n\n\n }", "public abstract Float getGeonorCapacity(int stationId) throws DataAccessException;", "public float getRate() {\n\t\treturn rate;\n\t}", "public int getFuelCapacity() {\r\n return fuelCapacity;\r\n }", "public int getQualifyingPercentage() {\n return qualifyingPercentage;\n }", "public double getSettlementDiscountPercent() {\n return (settlePct);\n }", "public Integer getConsumption() {\r\n return consumption;\r\n }", "public double getFixedCost(FieldContext fieldContext) {\n\t\treturn 0;\n\t}", "public float getQuality();", "public double getEfficiencyPercentual()\n\t{\n\t\t//Difference from Jsprit algorithm path cost and transport service provider path cost\n\t\tdouble difference = algBestPathDistance - providerBestPathDistance;\n\t\t\n\t\t//Efficiency percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (1 - difference / providerBestPathDistance));\n\t}", "double getLeftoverCPUPercentile() {\n return MathUtils.toPercentile(getLeftoverCPU(), pm.getCPU());\n }", "public BigDecimal getTOTAL_DEFERRED_PROFIT() {\r\n return TOTAL_DEFERRED_PROFIT;\r\n }", "@Override\n\tpublic double getRate() {\n\t\treturn 7;\n\t}", "public long getMinFree() {\n return params.getMinimumFree() * 1024 * 1024;\n }", "public double calculateAdditionalCharge() {\n return 5.0;\n }", "public double getReadPressure(){\n return this.mFarm.getReadPressure();\n }", "public void calculate(){\n double totalFlow = this.mFarm.getCompFlow() * this.mFarm.getNumComps();\n double activeOutlets = this.mFarm.getChanPerPen() * this.mFarm.getActivePens()\n + this.mFarm.getActiveChnlWalk();\n double flowPerChnl = totalFlow / activeOutlets;\n double calcPressure = calculateCalcPressure();\n double pressCorr = Math.sqrt((this.mFarm.getReadPressure() + 14.7)/(calcPressure + 14.7));\n double stdCorr = Math.sqrt((this.mFarm.getReadPressure() + 14.7)/(0.0 + 14.7));\n double targetReadingFlow = flowPerChnl / pressCorr;\n double stdReading = flowPerChnl / stdCorr;\n final double MAXSTANDARDFLOW = 16;\n double maxFlowRate = MAXSTANDARDFLOW * pressCorr;\n double targetReadingPercent = Math.round(100 * flowPerChnl / maxFlowRate);\n\n this.mFarm.setTargetFlowDisplay((this.mFarm.getPanelGen() == 4) ? targetReadingPercent : targetReadingFlow);\n\n this.mFarm.setStdReading(stdReading);\n\n }" ]
[ "0.6191207", "0.6015937", "0.6001188", "0.5964752", "0.57553947", "0.5741969", "0.5723591", "0.57075673", "0.56641805", "0.5660763", "0.5555334", "0.5545021", "0.55218357", "0.54978144", "0.54345", "0.5425346", "0.5420858", "0.54083854", "0.53798395", "0.53701305", "0.5350595", "0.5348419", "0.53453743", "0.5339834", "0.5334333", "0.5323485", "0.53158814", "0.5301068", "0.5298577", "0.52968705", "0.5285138", "0.5284836", "0.52812254", "0.5275033", "0.52710354", "0.52664685", "0.52548563", "0.5252806", "0.5247885", "0.5240031", "0.52394295", "0.52381504", "0.5230824", "0.5224515", "0.52230847", "0.52226967", "0.5219522", "0.5211637", "0.52087945", "0.520356", "0.52025825", "0.52004147", "0.5195644", "0.5189639", "0.51871306", "0.51810616", "0.5174404", "0.51689297", "0.5167958", "0.5162603", "0.5160988", "0.5152781", "0.5144364", "0.51416254", "0.5139282", "0.51386726", "0.5136842", "0.5130897", "0.5130514", "0.51223433", "0.5120709", "0.5116039", "0.5107286", "0.51009405", "0.5100606", "0.50961536", "0.50958955", "0.5094594", "0.50841194", "0.50748265", "0.5070059", "0.50686586", "0.50565046", "0.50526553", "0.50498223", "0.5042788", "0.5033527", "0.50308514", "0.5030124", "0.5026533", "0.50239486", "0.50217724", "0.50120544", "0.50084436", "0.5003111", "0.500178", "0.49984938", "0.49963763", "0.49931568", "0.49923995" ]
0.6926513
0
Get the amount of KiB that can be written before changes will be automatically bew written to disk.
int getAutoCommitBufferSizeInKiB();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getByteCount()\n {\n return written;\n }", "public Long sizeInKB() {\n return this.sizeInKB;\n }", "long sizeInBytes() throws IOException;", "Long diskSizeBytes();", "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 getTotalBytesWritten() {\n return totalBytesWritten;\n }", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "public long getByteCount() {\n return byteCount;\n }", "@Value.Default\n public int getByteSize() {\n\treturn 0;\n }", "@Override\n public long ramBytesUsed() {\n ensureOpen();\n return sizeInBytes.get();\n }", "Integer diskSizeGB();", "public long picoSize() throws IOException {\n return _backing.length();\n }", "public int serializedSizeInBytes() {\n\t\treturn this.sizeInBytes() + 3 * 4;\n\t}", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "public double getOutputSizeInBytes()\n {\n return totalSize;\n }", "public int getTotalSize();", "long getMemorySize() {\n return MemoryBudget.DELTAINFO_OVERHEAD +\n MemoryBudget.byteArraySize(key.length);\n }", "public long getTempFilesBytesWritten() {\n if(tempFileSizeBytesLeft == null || localTempFileSizeLimit <= 0) {\n return -1;\n }\n return localTempFileSizeLimit - tempFileSizeBytesLeft.get();\n }", "protected long getVerificationByteCount() {\n final long verificationByteCount = testVerificationByteCount >= 0 ?\n testVerificationByteCount :\n kvsImpl.getDefaultLOBVerificationBytes();\n\n return Math.min(lobSize, verificationByteCount);\n }", "public int getLengthInBytes()\n {\n return lengthInBytes;\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 getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public int getNumberOfBytes() {\n\treturn this.type.getNumberOfBytes();\n }", "public int TotalBytes()\n {\n int totalBytes = request.getContentLength();\n if (totalBytes == -1) return 0;\n return totalBytes;\n }", "public int getLengthInBytes()\n \t{\n \t\treturn FormatableBitSet.numBytesFromBits(lengthAsBits);\n \t}", "long getOccupiedSize();", "public long getTotalSize() {\n return totalSize;\n }", "int getTotalSize();", "public Long get_cacheutilizedmemorykb() throws Exception {\n\t\treturn this.cacheutilizedmemorykb;\n\t}", "float computeSize() {\n if (dirtyS) {\n size = modelRoot.getCSize().getSize(node);\n dirtyBufS = true;\n modelRoot.decrementNumberOfDirtySNodes();\n dirtyS = false;\n }\n return size;\n }", "BigDecimal getCacheSpaceAvailable();", "public long getBytesUsed(){\r\n\t\treturn bytesUsed;\r\n\t}", "long getUsedSpace() throws IOException;", "public long getTxnSize() {\n return snapLog.getTotalLogSize();\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "long getMaxFileSizeBytes();", "public double getCapacity() {\n\t\tIterator<Ball> it = this.contents.iterator();\n\t\tdouble retVal = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tretVal += it.next().getCapacity();\n\t\t}\n\t\treturn retVal;\n\t}", "long storageSize();", "public long getRetainedSizeInBytes()\n {\n return INSTANCE_SIZE\n + sizeOf(nullable)\n + estimatedSizeOf(columnName)\n + sizeOf(comment, SizeOf::estimatedSizeOf)\n + jdbcTypeHandle.getRetainedSizeInBytes();\n }", "public int getTotalCapacity() {\n return totalCapacity;\n }", "@Deprecated\n long getOnDiskSizeInBytes();", "public int availableBytes()\n throws IOException {\n\n // Do not know the available byte count\n return -1;\n }", "@Override\n public int getUsedSize() {\n return usedSize;\n }", "public final int bytesConsumed() {\n/* 218 */ return this.bytesConsumed;\n/* */ }", "public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }", "public float getCacheSizeKB() {\n return ((float) cacheHandler.getCurrentCacheSizeBytes() / 1000);\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public int numberOfBytes() {\n return this.data.size();\n }", "public long getBytesWritten() {\n\t\treturn written;\n\t}", "public long cumulativeWrittenBytes()\r\n/* 224: */ {\r\n/* 225:419 */ return this.cumulativeWrittenBytes.get();\r\n/* 226: */ }", "public int size() {\n return bytes.length;\n }", "public long getBytesWritten() {\n return luceneDirectory.getBytesWritten();\n }", "@Override\n\tpublic long getUsedSpace()\n\t{\n\t\treturn 0;\n\t}", "int getTotalLength() {\n synchronized (lock) {\n return cache.getTotalLength();\n }\n }", "public int getBloomFilterSizeInBytesCount() {\n return bloomFilterSizeInBytes_.size();\n }", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "public int getSize() {\n return this.serialize().limit();\n }", "public int maximumSizeInBytes() {\n return maximumSizeInBytes;\n }", "public double getOccupiedRamGB () { return getRamBaseResource().getOccupiedCapacity(); }", "private long size() {\n\t\treturn 0;\n\t}", "public int getTotalSize() {\n return totalSize_;\n }", "long throttleByteCount() {\n return parseLong(settings.get(THROTTLE_BYTE_COUNT), Long.MAX_VALUE);\n }", "public final int getTotalBytes() {\n return this.totalBytes;\n }", "public abstract long size() throws IOException;", "public Long get_cachenummbwrittentodisk() throws Exception {\n\t\treturn this.cachenummbwrittentodisk;\n\t}", "public final double terabytes()\n\t{\n\t\treturn gigabytes() / 1024.0;\n\t}", "int totalWritten();", "public int getBloomFilterSizeInBytesCount() {\n return bloomFilterSizeInBytes_.size();\n }", "public static long getTotalInternalStorageSize() {\n StatFs stat = new StatFs(getInternalStoragePath());\n return stat.getBlockSize() * stat.getBlockCount();\n }", "long getAvailableSpace() throws IOException;", "public synchronized long size() {\n\t\treturn size;\n\t}", "int getBloomFilterSizeInBytesCount();", "public static long getCommitedNonHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage nonHeap = memBean.getNonHeapMemoryUsage();\n\n\t\treturn nonHeap.getCommitted();\n\t}", "@Override\n public int getWriteUnsafeSize() {\n int total = UnsafeMemory.SIZE_OF_INT +UnsafeMemory.SIZE_OF_LONG;\n\n //fileName and Last\n total+=UnsafeMemory.getWriteUnsafeSize(fileName, UnsafeMemory.STRING_TYPE);\n total+=UnsafeMemory.SIZE_OF_INT;\n\n //arrays\n int debug =UnsafeMemory.getWriteUnsafeSize(nameIndex,UnsafeMemory.ARRAYLIST_STRING_TYPE);\n total+=debug;\n debug+=UnsafeMemory.getWriteUnsafeSize(entries,UnsafeMemory.ARRAYLIST_KID_TYPE);\n total+=debug;\n total+=UnsafeMemory.getWriteUnsafeSize(kingdoms,UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n\n //No longer stored in memory\n //total+=UnsafeMemory.getWriteUnsafeSize(sequences,UnsafeMemory.ARRAYLIST_DNABITSTRING_TYPE);\n\n\n //rocksDbKlueFileName\n total += UnsafeMemory.getWriteUnsafeSize(rocksDbKlueFileName, UnsafeMemory.STRING_TYPE);\n\n //boolean readOnly = false;\n total += UnsafeMemory.SIZE_OF_BOOLEAN;\n\n //ArrayList<Integer> sequenceLength = new ArrayList<Integer>();\n total += UnsafeMemory.getWriteUnsafeSize(sequenceLength, UnsafeMemory.ARRAYLIST_INT_TYPE);\n\n //ArrayList<HashMap<Integer,Character>> exceptionsArr;\n total += UnsafeMemory.SIZE_OF_INT // byte header\n + UnsafeMemory.SIZE_OF_LONG // SerialUID\n + UnsafeMemory.SIZE_OF_INT; // number of entries\n\n for (int z=0; z < exceptionsArr.size(); z++){\n total += UnsafeMemory.getWriteUnsafeSize(exceptionsArr.get(z), UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n }\n\n\n return total;\n }", "@ApiModelProperty(required = true, value = \"Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\\\"local\\\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\\\"not available\\\")\")\n\n public Long getSize() {\n return size;\n }", "@Override\n public int getMaxWriteSize() {\n return mMaxWriteSize;\n }", "public static long getCacheSize() {\n return sDiskLruCache.size();\n }", "public long memoriaDisponível() {\n int numeroDeParticoes = numeroDeParticoesDeDisco();\n long memoriaDisponivel = 0;\n for (int i = 0; i < numeroDeParticoes; i++) {\n memoriaDisponivel += operatingSystem.getFileSystem().getFileStores()[i].getUsableSpace();\n }\n return memoriaDisponivel;\n }", "@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}", "public int GetSize() \n\t{\n\t\treturn numEntries; //dummy return so file would compile\n\t}", "public long size() {\n\t\treturn size;\n\t}", "int getCacheSizeInMiB();", "public int size() {\n return used;\n }", "public long currentWrittenBytes()\r\n/* 214: */ {\r\n/* 215:405 */ return this.currentWrittenBytes.get();\r\n/* 216: */ }", "long throttleByteCount() {\n return parseLong(get(THROTTLE_BYTE_COUNT), Long.MAX_VALUE);\n }", "@Override\n\tpublic long bytesWritten() {\n\t\treturn 0;\n\t}", "public int getCurrentSize() {\n return count;\n }", "protected static long getMinUploadFreespace() {\n return minUploadFreespace;\n }", "public static long getAvailableDiskSpace() {\r\n\t\treturn availableDiskSpace;\r\n\t}", "public long size() {\n try {\n return Files.size(path);\n } catch (final IOException e) {\n throw new StageAccessException(\"Unable to get the size of staged document!\", e);\n }\n }", "public int getLogDiskSpaceLimit() {\n return agentConfig.getLogDiskSpaceLimit();\n }", "public int getSize() {\n\n\treturn getSectors().size() * getUnitSize(); // 254 byte sectors\n }", "@SuppressWarnings( \"unused\" )\n public int capacity() {\n return buffer.capacity() - buffer.limit();\n }", "public final long getBytesTested()\n\t{\n\t\treturn bytesTested_;\n\t}" ]
[ "0.7315315", "0.71030796", "0.704531", "0.6947894", "0.6944603", "0.69192487", "0.6870169", "0.6870169", "0.68639714", "0.6857471", "0.6828686", "0.681556", "0.67825943", "0.67800266", "0.67591715", "0.66953766", "0.66911477", "0.66738236", "0.66662216", "0.66549385", "0.66395867", "0.66001093", "0.6550348", "0.65394557", "0.65332794", "0.6519119", "0.6519119", "0.6503552", "0.6494976", "0.64892095", "0.6471667", "0.64637345", "0.6449011", "0.6448531", "0.6444752", "0.6443378", "0.6436632", "0.6433229", "0.64291304", "0.6424343", "0.6424343", "0.64196885", "0.64062667", "0.64049923", "0.64017034", "0.639955", "0.63985974", "0.6391439", "0.6389389", "0.6385629", "0.63751066", "0.6372328", "0.63708514", "0.6335045", "0.6327143", "0.632518", "0.6319443", "0.63155836", "0.6312262", "0.6311371", "0.63110465", "0.6300679", "0.62954205", "0.6290118", "0.62847453", "0.62841797", "0.6281749", "0.62748593", "0.62737703", "0.6261478", "0.62605214", "0.62468517", "0.62466806", "0.6246267", "0.62330204", "0.62255055", "0.62241006", "0.6220049", "0.6217719", "0.62176514", "0.6213676", "0.6203198", "0.62009853", "0.61972404", "0.6188161", "0.61876494", "0.6185074", "0.6184416", "0.6175121", "0.6171147", "0.61577487", "0.6157328", "0.6153974", "0.6147807", "0.61441857", "0.61368644", "0.61354244", "0.61275566", "0.61246085", "0.6122143" ]
0.7286193
1
Set the cache size in MiB. Defaults to 128 MiB.
Builder withCacheSizeInMiB(int sizeInMiB);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCacheSize(int size) {\n\t\t_cacheSize = size;\n\t}", "public TransactionBuilder setCacheSize(long size);", "HandlebarsKnotOptions setCacheSize(Long cacheSize) {\n this.cacheSize = cacheSize;\n return this;\n }", "public void setCacheMaxSizeKB(int maxSizeKB) {\n cacheHandler.setMaxCacheSizeKB(maxSizeKB);\n resetChain();\n }", "public static void setDiskCacheSize(long size) {\n sDiskCacheSize = size;\n }", "public void setMaxCacheEntrySize(int val) {\n this.mMaxCacheEntrySize = val;\n }", "void setMaximumCacheSize(int maximumCacheSize);", "@Override\n\tpublic void setCacheSize(long bps) {\n\t\t\n\t}", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "int getCacheSizeInMiB();", "@Override\n\tpublic void setSizeToCache(int sizeToCache) {\n\t\t\n\t}", "public void setSize(long value) {\n this.size = value;\n }", "@Override\n public int getCacheSize() {\n return 4 * 1024 * 1024;\n }", "public void setMaxMemoryCacheSize(int val) {\n this.mMaxMemoryCacheSize = val;\n }", "private void setMaxCacheMemSize(long maxSize) {\n\t\tif ( maxSize < 25 * 1024 ) {\n\t\t\tthrow new IllegalAccessError(\"Cache size must be at least 25 KB (\"+(25*1024)+\" bytes)\");\n\t\t}\n\t\tlog.info(\"setCacheSize(): New cache size: \"+maxSize+\" bytes.\");\n\t\tfinal boolean shrink = this.maxSize > maxSize;\n\t\tthis.maxSize = maxSize;\n\t\tif ( shrink ) {\n\t\t\tpurgeCache(true);\n\t\t}\n\t}", "public void setLocalSize(int size);", "public int getCacheSize();", "@Override\n public void setMaxSize(int maxSize){\n if (maxSize < 0){\n throw new IllegalArgumentException(\"Memory cache size must not be negative\");\n }\n\n this.maxSize = maxSize;\n\n if (maxSize == 0){\n // unlimited cache size\n return;\n }\n\n int cacheSize = this.size();\n if (cacheSize > maxSize){\n // max cache size is less than current cache size\n // delete all object that are out of bound\n ArrayList<K> cacheObjects = new ArrayList<>(this.cache.keySet());\n for (int i = maxSize; i < cacheSize; i++){\n this.delete(cacheObjects.get(i));\n }\n }\n }", "public void setPkCacheSize(int pkCacheSize) {\n }", "public DBMaker setMRUCacheSize(int cacheSize) {\n if (cacheSize < 0) throw new IllegalArgumentException(\"Cache size is smaller than zero\");\n cacheType = DBCacheRef.MRU;\n mruCacheSize = cacheSize;\n return this;\n }", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "private void setMemorySize() { }", "public Builder setMaxDiskCacheSize(int val) {\n mMaxDiskCacheSize = val;\n return this;\n }", "public int getCacheMaxSizeKB() {\n return (cacheHandler.getMaxCacheSizeKB());\n }", "@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }", "public void setMaximumCacheSize(int i) {\n this.maximumCacheSize = i;\n shrinkCacheToMaximumSize();\n }", "private void setDefaultStepSize(ResourceEnum cacheType) {\n switch (cacheType) {\n case FIELD_DATA_CACHE:\n // Field data cache having step size of 512MB\n this.stepSizeInBytes = (long) 512 * MB_TO_BYTES;\n break;\n case SHARD_REQUEST_CACHE:\n // Shard request cache step size of 512KB\n this.stepSizeInBytes = (long) 512 * KB_TO_BYTES;\n break;\n default:\n throw new IllegalArgumentException(\n String.format(\"Unrecognizable cache type: [%s]\", cacheType.toString()));\n }\n }", "protected void setMaxSize(int size) {\n maxSize = size;\n }", "public void setMaxCacheEntries(int val) {\n this.mMaxCacheEntries = val;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.965 -0500\", hash_original_method = \"B06B3FDC2D2CDF223C79F9432CF6B221\", hash_generated_method = \"EC13B61AE91A640A596BB8C3880035C6\")\n \n public void setCacheSize(int bytes){\n \t//Formerly a native method\n \taddTaint(bytes);\n }", "@Override\n public int getCacheSize() {\n return 4 + 20 * (4 + 4 + 8);\n }", "public void setSize(int value) {\n\t\tthis.size = value;\n\t}", "public float getCacheSizeKB() {\n return ((float) cacheHandler.getCurrentCacheSizeBytes() / 1000);\n }", "public void setSize(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}", "public int getCacheSize() {\n\t\treturn _cacheSize;\n\t}", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "public void setMaxSize(int c) {\n maxSize = c;\n }", "private void setSize() {\n width = AppConfig.width;\n height = (int) (AppConfig.width * 0.56);\n requestOptions = new RequestOptions()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC);\n \n }", "@Override\n\tpublic long getMaxCacheSize() {\n\t\treturn 0;\n\t}", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void setSize(Integer size) {\n this.size = size;\n }", "public Builder setMaxUploadSizeInBytes(long value) {\n \n maxUploadSizeInBytes_ = value;\n onChanged();\n return this;\n }", "public void setMaxSize(int maxSize) {\n this.maxSize = maxSize;\n }", "@Override\n public int getCacheSize() {\n return 4 + this.arraySet.getTotalBytesSize();\n }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }", "public void setSizeInBits(final int size) {\n\t\tthis.sizeinbits = size;\n\t}", "public void setSize(int size) {\r\n _size = size;\r\n }", "public int getCacheSize() {\n return cache.size();\n }", "public Builder setMaxSize(int value) {\n \n maxSize_ = value;\n onChanged();\n return this;\n }", "public void setSize(int size){\n this.size = size;\n }", "@Override\n\tpublic long getCacheSize() {\n\t\treturn 0;\n\t}", "public void setSize(int size) {\r\n this.size = size;\r\n }", "public Long maxSizeInMegabytes() {\n return this.maxSizeInMegabytes;\n }", "public BoundedCache( final int cacheSize ) {\n mCacheSize = cacheSize;\n }", "int getCurrentCacheSize();", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public void setTileSize(int tSize) {\r\n\t\tthis.tSize = tSize;\r\n\t}", "public BitmapMemoryCache() {\r\n //use 25% of available heap size\r\n setLimit(Runtime.getRuntime().maxMemory() / 4);\r\n }", "int getMaximumCacheSize();", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(int size) {\n\t\t _size = size;\n\t}", "public Cache(Integer size) {\n this.size = size;\n recentlyUsed = new ArrayList<K>();\n cache = new HashMap<>();\n }", "public void set_size(int s);", "public void setBlockSize(long value) {\n this.blockSize = value;\n }", "public Builder setMaxCacheSizeOnLowDiskSpace(int val) {\n this.mMaxCacheSizeOnLowDiskSpace = val;\n return this;\n }", "private void setSize(int s){\n\t\tsize = s;\n\t}", "public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}", "public void setSize(String size) {\n this.size = size;\n }", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setPackageSize(int size){\r\n }", "public com.autodesk.ws.avro.Call.Builder setObjectSize(java.lang.Long value) {\n validate(fields()[6], value);\n this.object_size = value;\n fieldSetFlags()[6] = true;\n return this; \n }", "private void addLengthToCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / 1024 + 1);\r\n }", "public void setPreparedStatementCacheSize(int size)\n {\n _preparedStatementCacheSize = size;\n }", "public Builder setMaxSize(int value) {\n bitField0_ |= 0x00000001;\n maxSize_ = value;\n onChanged();\n return this;\n }", "public void setMaxSize(int size) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n maxSize = size;\n if (maxSize != 0 && minSize > maxSize) {\n minSize = maxSize;\n log.warn(\"pool min size set to \" + minSize + \" to stay <= max size\");\n }\n }", "public static long getCacheSize() {\n return sDiskLruCache.size();\n }", "public void setSize(int size) {\n this.size = size;\n }", "public GameSettingBuilder setMapSize(int mapSize) {\n this.mapSize = mapSize;\n return this;\n }", "public static void setAdSizeInCache(Map<String,String> dataMap){ \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_ADSIZE_KEY)){\n \t\tmemcache.delete(MEDIA_PLAN_ADSIZE_KEY);\n \t}\n \tmemcache.put(MEDIA_PLAN_ADSIZE_KEY, dataMap);\n\t}", "public long getCacheSize() {\n DiskCacheManager diskCacheManager = getDiskCacheManager();\n if (diskCacheManager == null) return 0;\n return diskCacheManager.getCacheSize();\n }", "public static native void setMaxCacheMem(int max_mem);", "public void shrinkCacheToMaximumSize() {\n while (this.cacheSize > this.maximumCacheSize) {\n getNodeFromCache();\n }\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "public void setSize(double size) \n {\n this.size = size;\n }", "public Builder setServerPayloadSizeBytes(int value) {\n \n serverPayloadSizeBytes_ = value;\n onChanged();\n return this;\n }", "public void setMemorySize(Integer memorySize) {\n this.MemorySize = memorySize;\n }", "public synchronized void updateMaxSize(int maxSize) {\n setMaxSize(maxSize);\n }", "public void setObjectSize(java.lang.Long value) {\n this.object_size = value;\n }", "public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}", "public void setMaxSize(int size) {\n maxSize = size;\n while (size() > maxSize) {\n remove(0);\n }\n }", "public void setBufferSize(int size) {\n this.response.setBufferSize(size);\n }", "public void setSIZE(java.lang.String SIZE) {\n this.SIZE = SIZE;\n }", "public TarArchiveEntry setEntrySize(long size) {\n if (size < 0) {\n throw new IllegalArgumentException(\"size is out of range: \" + size);\n }\n this.size = size;\n return this;\n }", "public InMemoryResponseCache() {\n\t\tthis( 250*1024 ); // 250 KB cache\n\t}", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }" ]
[ "0.7561651", "0.71712065", "0.7080268", "0.70405596", "0.70344025", "0.69539934", "0.68628496", "0.6839201", "0.67615545", "0.67137456", "0.66268754", "0.6567184", "0.6551962", "0.65291566", "0.64936554", "0.64404714", "0.62927276", "0.62768286", "0.62724745", "0.62661994", "0.6261926", "0.62534624", "0.6228819", "0.61815315", "0.6147286", "0.61459553", "0.61450726", "0.6143745", "0.6142541", "0.6119433", "0.61147106", "0.61054575", "0.6103959", "0.6099469", "0.6095961", "0.60865855", "0.60712504", "0.6062091", "0.5952786", "0.5911998", "0.5883753", "0.5865696", "0.58576405", "0.5852024", "0.5842265", "0.58112776", "0.5800185", "0.57917905", "0.57719594", "0.57584745", "0.5741572", "0.5737818", "0.57360065", "0.57299787", "0.5725219", "0.5717433", "0.5717229", "0.570853", "0.5704921", "0.56910276", "0.5689958", "0.5689958", "0.5649172", "0.56490934", "0.56480694", "0.5630659", "0.5629406", "0.56257457", "0.5617087", "0.5609631", "0.5608915", "0.5608915", "0.5608915", "0.5608915", "0.5603444", "0.5602154", "0.5574202", "0.5573821", "0.55582255", "0.5547727", "0.5537986", "0.5527281", "0.55182284", "0.55179346", "0.55141425", "0.5507578", "0.5501257", "0.549913", "0.54901093", "0.54877025", "0.548739", "0.54828286", "0.5482282", "0.5479857", "0.5470324", "0.5468844", "0.54630953", "0.54478586", "0.5435026", "0.54293907" ]
0.6819431
8
Set the cache concurrency. Defaults to 16.
Builder withCacheConcurrency(int concurrency);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native void setConcurrency(int concurrency);", "int getCacheConcurrency();", "public void setMaxConcurrentAccessCount(String newValue);", "void setMaximumCacheSize(int maximumCacheSize);", "public void setConcurrentThreadSize(int aConcurrentThreadSize) {\n concurrentThreadCount = aConcurrentThreadSize;\n }", "public void setResourceCache(int value)\r\n {\r\n getSemanticObject().setIntProperty(swb_resourceCache, value);\r\n }", "public void setMaximumCacheSize(int i) {\n this.maximumCacheSize = i;\n shrinkCacheToMaximumSize();\n }", "public static native void setMaxCache(int max);", "public void setConcurrentExecutions(Long ConcurrentExecutions) {\n this.ConcurrentExecutions = ConcurrentExecutions;\n }", "@Override\r\n public void setCaching(int parseInt) {\n\r\n }", "public void setMaxCacheEntries(int val) {\n this.mMaxCacheEntries = val;\n }", "public void setCacheSize(int size) {\n\t\t_cacheSize = size;\n\t}", "@DefaultValue(\"20\")\n int getApiClientThreadPoolSize();", "public TransactionBuilder setCacheSize(long size);", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "void setPoolRaces(int poolRaces);", "public TransactionConcurrency concurrency();", "@Override\n\tpublic void setConnectionPoolSize(int arg0) {\n\n\t}", "private void setConcurrencyMode(DeployBeanDescriptor<?> desc) {\n if (desc.getConcurrencyMode() != null) {\n // concurrency mode explicitly set during deployment\n return;\n }\n if (checkForVersionProperties(desc)) {\n desc.setConcurrencyMode(ConcurrencyMode.VERSION);\n } else {\n desc.setConcurrencyMode(ConcurrencyMode.NONE);\n }\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.965 -0500\", hash_original_method = \"B06B3FDC2D2CDF223C79F9432CF6B221\", hash_generated_method = \"EC13B61AE91A640A596BB8C3880035C6\")\n \n public void setCacheSize(int bytes){\n \t//Formerly a native method\n \taddTaint(bytes);\n }", "@Override\n\tpublic void setCacheSize(long bps) {\n\t\t\n\t}", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public static native int getConcurrency();", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public void setMaxConcurrentConnection(Long MaxConcurrentConnection) {\n this.MaxConcurrentConnection = MaxConcurrentConnection;\n }", "@Override\n public int getCacheSize() {\n return 4 * 1024 * 1024;\n }", "public void setIoThreadMultiplier(int ioThreadMultiplier)\n {\n this.ioThreadMultiplier = ioThreadMultiplier;\n }", "public Options setNumThreads(int numThreads) {\n this.numThreads = numThreads;\n return this;\n }", "@Override\n public int getCacheSize() {\n return 4 + 20 * (4 + 4 + 8);\n }", "public int getIoThreadMultiplier()\n {\n return ioThreadMultiplier;\n }", "@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }", "@JsProperty(name = \"hardwareConcurrency\")\n Number getHardwareConcurrency();", "private void setConfigNumMaxBgJobs(int value) {\n this.bitField0_ |= 2;\n this.configNumMaxBgJobs_ = value;\n }", "public void disableConcurrency() {\n concurrent = false;\n }", "HandlebarsKnotOptions setCacheSize(Long cacheSize) {\n this.cacheSize = cacheSize;\n return this;\n }", "void setAccessCounter(int cnt);", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "public void setCapacity(int value) {\n this.capacity = value;\n }", "public void setMaxCacheEntrySize(int val) {\n this.mMaxCacheEntrySize = val;\n }", "public void setPkCacheSize(int pkCacheSize) {\n }", "public static void bgfx_set_transform_cached(@NativeType(\"uint32_t\") int _cache, @NativeType(\"uint16_t\") int _num) {\n nbgfx_set_transform_cached(_cache, (short)_num);\n }", "public void setCacheMaxSizeKB(int maxSizeKB) {\n cacheHandler.setMaxCacheSizeKB(maxSizeKB);\n resetChain();\n }", "public void setNumOfThreads(String numOfThreadsStr) {\n numOfThreads = Integer.parseInt(numOfThreadsStr);\n }", "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 }", "@Override\n\tpublic int getMaxThreads() {\n\t\treturn 10;\n\t}", "public static void setAvailableProcessors(int availableProcessors) {\n/* 87 */ holder.setAvailableProcessors(availableProcessors);\n/* */ }", "@Override\r\n public int getMaxConcurrentProcessingInstances() {\r\n return 1;\r\n }", "@ZAttr(id=1154)\n public Map<String,Object> setGalSyncMaxConcurrentClients(int zimbraGalSyncMaxConcurrentClients, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalSyncMaxConcurrentClients, Integer.toString(zimbraGalSyncMaxConcurrentClients));\n return attrs;\n }", "@ZAttr(id=1154)\n public void setGalSyncMaxConcurrentClients(int zimbraGalSyncMaxConcurrentClients) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalSyncMaxConcurrentClients, Integer.toString(zimbraGalSyncMaxConcurrentClients));\n getProvisioning().modifyAttrs(this, attrs);\n }", "public BoundedCache( final int cacheSize ) {\n mCacheSize = cacheSize;\n }", "public void setMiterLimit(float limit);", "@Test\n public void testCollidingKeyAccessDiffCacheMultiRollingRestart()\n {\n doStressTest(\"IdxTestCKADCMRR\", getCacheName0(), getCacheName1(),\n IdentityExtractor.INSTANCE,\n new CompositeKeyCreator()\n {\n public CompositeKey getCompositeKey(Object oKeyNatural, NamedCache cache)\n {\n return new CompositeKey(\n oKeyNatural, getSurrogateKey(cache, oKeyNatural, Base.getRandom().nextInt(20)));\n }\n },\n /*nServers*/3, /*cRollingRestart*/5);\n }", "public void setCapacity(int capacity) \n {\n this.capacity = capacity;\n }", "int getMaximumCacheSize();", "public void setCapacity(Integer capacity) {\n this.capacity = capacity;\n }", "public void setMutexBits(int p_75248_1_) {\n/* 55 */ this.mutexBits = p_75248_1_;\n/* */ }", "public void setMaxThreads(int maxThreads)\r\n {\r\n this.maxThreads = maxThreads;\r\n }", "public static native void setMaxCacheMem(int max_mem);", "public int getCacheSize();", "@ZAttr(id=1154)\n public int getGalSyncMaxConcurrentClients() {\n return getIntAttr(Provisioning.A_zimbraGalSyncMaxConcurrentClients, 2);\n }", "public static @Range(from = 2, to = Integer.MAX_VALUE) int threadAmount(@NonNull DriverEnvironment environment) {\n return environment.equals(DriverEnvironment.NODE) ? Math.max(8, Runtime.getRuntime().availableProcessors() * 2) : 4;\n }", "public void setCached() {\n }", "int getWriterConcurrency();", "public void setNumberConcurrentEmulators(int emu) {\n\t\tnumberConcurrentEmulators = emu;\n\t}", "@Test\n public void testSameKeyAccessDiffCacheMulti()\n {\n doStressTest(\"IdxTestSKADCM\", getCacheName0(), getCacheName1(),\n IdentityExtractor.INSTANCE,\n new CompositeKeyCreator()\n {\n public CompositeKey getCompositeKey(Object oKeyNatural, NamedCache cache)\n {\n return new CompositeKey(oKeyNatural, oKeyNatural);\n }\n },\n /*nServers*/3, /*cRollingRestart*/0);\n }", "@Bean\n\tpublic CacheManager cacheManager() {\n \tCaffeineCacheManager cacheManager = new CaffeineCacheManager();\n \tcacheManager.setCacheSpecification(\"maximumSize=500,expireAfterWrite=60m\");\n \treturn cacheManager;\n\t}", "public void incrMetaCacheNumClearServer() {\n metaCacheNumClearServer.inc();\n }", "@Override\n public Set<Characteristics> characteristics() {\n return EnumSet.of(Characteristics.CONCURRENT);\n }", "public void setMaxMemoryCacheSize(int val) {\n this.mMaxMemoryCacheSize = val;\n }", "private void setConfigNumMinBgJobs(int value) {\n this.bitField0_ |= 4;\n this.configNumMinBgJobs_ = value;\n }", "@JsProperty\n public void setMiterLimit(int miterLimit);", "void setPoolNumber(int poolNumber);", "public void setHighWaterThreadCount(int threads)\n { _threadPool.setMaxSize(threads);\n }", "public int getNumberConcurrentEmulators() {\n\t\treturn (numberConcurrentEmulators);\n\t}", "int getCurrentCacheSize();", "public void setCapacity(int capacity) {\r\n\r\n this.capacity = capacity;\r\n }", "public void setCapacity(int capacity) {\r\n this.capacity = capacity;\r\n }", "public void setMaxIdleConns(int value) {\n this.maxIdleConns = value;\n }", "void setAccessCounterForSession(int cnt);", "public DBMaker setMRUCacheSize(int cacheSize) {\n if (cacheSize < 0) throw new IllegalArgumentException(\"Cache size is smaller than zero\");\n cacheType = DBCacheRef.MRU;\n mruCacheSize = cacheSize;\n return this;\n }", "public void setCacheClusterSize(String cacheClusterSize) {\n this.cacheClusterSize = cacheClusterSize;\n }", "public void setSessionCounter(long sessionCounter);", "protected short maxRetries() { return 15; }", "public void setScannerCaching(int scannerCaching) {\n this.table.setScannerCaching(scannerCaching);\n }", "@Generated\n @Selector(\"setFetchBatchSize:\")\n public native void setFetchBatchSize(@NUInt long value);", "public void setCapacity(int n) {\n\t\tcapacity = n;\n\t}", "int getPoolSize();", "public void setCapacity( Resource.Type type, int capacity );", "@Test\n public void testSameKeyAccessDiffCacheMultiRollingRestart()\n {\n doStressTest(\"IdxTestSKADCMRR\", getCacheName0(), getCacheName1(),\n IdentityExtractor.INSTANCE,\n new CompositeKeyCreator()\n {\n public CompositeKey getCompositeKey(Object oKeyNatural, NamedCache cache)\n {\n return new CompositeKey(oKeyNatural, oKeyNatural);\n }\n },\n /*nServers*/3, /*cRollingRestart*/5);\n }", "public Render setMultithreading(int threads) {\r\n\t\tif (threads < 0)\r\n\t\t\tthrow new IllegalArgumentException(\"Multithreading patameter must be 0 or higher\");\r\n\t\tif (threads != 0)\r\n\t\t\t_threads = threads;\r\n\t\telse {\r\n\t\t\tint cores = Runtime.getRuntime().availableProcessors() - SPARE_THREADS;\r\n\t\t\tif (cores <= 2)\r\n\t\t\t\t_threads = 1;\r\n\t\t\telse\r\n\t\t\t\t_threads = cores;\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public void setCapacity(int capacity) {\n this.capacity = capacity;\n }", "@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}", "@Override\n public int getCacheSize() {\n return 4 + this.arraySet.getTotalBytesSize();\n }", "SchemaCache(int capacity) {\n super(64, 0.75f, true);\n this.capacity = capacity;\n }", "AgentPolicyBuilder setMaxCacheAgeMs(long maxCacheAgeMs);", "public void setCapacity(int capacity)\n {\n Validate.isTrue(capacity > 0, \"Capacity must be > 0\");\n capacity_ = capacity; \n }", "public HttpClient setMaxPoolSize(Env env, NumberValue size) {\n client.setMaxPoolSize(size.toInt());\n return this;\n }", "@Test\n public void testCollidingKeyAccessDiffCache()\n {\n doStressTest(\"IdxTestCKADC\", getCacheName0(), getCacheName1(),\n IdentityExtractor.INSTANCE,\n new CompositeKeyCreator()\n {\n public CompositeKey getCompositeKey(Object oKeyNatural, NamedCache cache)\n {\n return new CompositeKey(\n oKeyNatural, getSurrogateKey(cache, oKeyNatural, Base.getRandom().nextInt(20)));\n }\n },\n /*nServers*/1, /*cRollingRestart*/0);\n }", "public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}", "void setCopies(short copies);" ]
[ "0.66106045", "0.6175426", "0.5931113", "0.5839735", "0.57175857", "0.5430251", "0.5430241", "0.538902", "0.52956825", "0.5288915", "0.5167213", "0.5166711", "0.51159585", "0.51152176", "0.5096131", "0.50928575", "0.5091932", "0.50635827", "0.5063434", "0.50361514", "0.5033578", "0.5029317", "0.49965748", "0.49932832", "0.49884668", "0.4984322", "0.49725148", "0.49712443", "0.49462447", "0.4929322", "0.4925114", "0.4917293", "0.48793787", "0.4845155", "0.4843497", "0.48416024", "0.4802155", "0.47904003", "0.477834", "0.4772384", "0.47550616", "0.47486198", "0.47373587", "0.47023937", "0.4698929", "0.4684821", "0.4656427", "0.46355683", "0.462774", "0.4621406", "0.46109644", "0.4607935", "0.45984012", "0.4593375", "0.4593088", "0.45892572", "0.45819226", "0.45805335", "0.4577796", "0.4571162", "0.4567794", "0.4566112", "0.4564885", "0.45562994", "0.45553544", "0.45453477", "0.45416394", "0.45396408", "0.45329705", "0.45244253", "0.45204785", "0.4514395", "0.4514007", "0.4513201", "0.4509401", "0.45009273", "0.44958264", "0.44840124", "0.44780362", "0.44728577", "0.44645172", "0.44628453", "0.4455339", "0.44468838", "0.44419387", "0.4436675", "0.44343507", "0.4432925", "0.44308588", "0.44270998", "0.44262254", "0.44250906", "0.4424573", "0.44237337", "0.44186804", "0.44138253", "0.44081092", "0.43949237", "0.43911958", "0.43868527" ]
0.67412436
0
Set the fill rate to target, when active data falls below this percentage the data file will be automatically compacted.
Builder withAutoCompactFillRate(int percentage);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFillLevel(final double fill) {\n\t\t_fillGrade = fill;\n\t}", "public void setFill(boolean fill) {\n\t\t_fill = fill;\n\t\tnotifyObs(this);\n\t}", "public void setFill(boolean b){\n\t\tthis.fill = b;\n\t}", "void setFill(boolean fill);", "public void setFill(boolean fill) {\n isFilled = fill;\n }", "public void fill() \n\t{\n\t\tfilled++; //increment load factor\n\t\tloadFactor = ((double)filled / (double)length);\n\t\tif (loadFactor > minLoadFactor) { //if load factor surpass a predetermined threshold\n\t\t\tdoubleTable(); //double the table\n\t\t}\t\n\t}", "int getAutoCompactFillRate();", "@Override\n public void toggleFill() {\n // empty bc mock\n }", "public T setTargetPercentage(float perc)\n\t{\n\t\tif (isStarted())\n\t\t{\n\t\t\tLttl.Throw(\"Can't change target percentage after tween has started.\");\n\t\t}\n\t\ttargetPercentage = LttlMath.Clamp01(perc);\n\t\treturn (T) this;\n\t}", "public void setLevel(int fillLevel)\n\t{\n\t\tthis.fillLevel = fillLevel;\n\t\tthis.latestUpdate = new Date();\n\t}", "public void setCombatDensityRate(int value) {\n this.combatDensityRate = value;\n }", "public void setTarget(double target)\n {\n setTarget(target, null);\n }", "public void setFillArea(boolean fillArea) {\n\t\tthis.fillArea = fillArea;\n\t}", "public void setMaxDataRateLBL(DefaultPieDataset mdrlbl){\n\t\tmaxDataRateLBL = mdrlbl;\n\t}", "public void setFillEnabled(boolean fillEnabled){\n this.fillEnabled = fillEnabled;\n refreshTheView();\n }", "public void setExhaustion ( float value ) {\n\t\texecute ( handle -> handle.setExhaustion ( value ) );\n\t}", "public void setFalloff(float falloff) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 144, falloff);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 112, falloff);\n\t\t}\n\t}", "public FlexyDemoSettlingTank(String name, int fillLowPerc, int fillHighPerc, int fillIdealPerc) {\n super(name, fillLowPerc, fillHighPerc, fillIdealPerc);\n }", "private void setFillIndex() {\n\t\tint t = this.fillgingIndex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.fillgingIndex = 0;\n\t\t\tsetComponentsOfIndex();\n\t\t} else {\n\t\t\tthis.fillgingIndex = t;\n\t\t}\n\n\t}", "public void setRate(double newRate) {\n this.rate = newRate;\n }", "public void setExhaustionLevel(float f) {\n this.c = Math.min(f, 40f);\n }", "public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}", "void setThreshold(float value);", "public void setDef(float def);", "public void setRate();", "public void setSupplyReadinessRate(int value) {\n this.supplyReadinessRate = value;\n }", "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "public void setSupplyMovementRate(int value) {\n this.supplyMovementRate = value;\n }", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }", "public void SetRatio(double ratio) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetRatio(swigCPtr, this, ratio);\n }", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "public void setTarget(TestSetDiscrepancyReportResourceTarget target) {\n this.target = target;\n }", "public Action setFillEnabled(boolean fillEnabled) {\n mFillEnabled = fillEnabled;\n return this;\n }", "DataFrameFill fill();", "public void setRate(int rate) { this.rate = rate; }", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public synchronized void setRatio(int min, int max, int curr) {\n setRatio(getRatio(min, max, curr));\r\n }", "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "public void fill(float value) {\n for (int i = 0; i < storage.length; i++) {\n storage[i] = value;\n }\n }", "public void updateHBMData(int target, int rate, float duration) {\n Bundle bundle = this.mHBMData;\n if (bundle == null) {\n Slog.w(TAG, \"mHBMData == null, no updateHBMData\");\n } else if (bundle.getInt(\"target\") != target || this.mHBMData.getInt(\"rate\") != rate || ((double) Math.abs(this.mHBMData.getFloat(\"duration\") - duration)) > 1.0E-6d) {\n this.mHBMData.putInt(\"target\", target);\n this.mHBMData.putInt(\"rate\", rate);\n this.mHBMData.putFloat(\"duration\", duration);\n String str = TAG;\n Slog.i(str, \"hbm_dimming target=\" + this.mHBMData.getInt(\"target\") + \" rate=\" + this.mHBMData.getInt(\"rate\") + \" duration=\" + this.mHBMData.getFloat(\"duration\"));\n this.mDisplayEngineManager.setDataToFilter(\"HBM\", this.mHBMData);\n }\n }", "@Override\n\tpublic void setPersonal_4_HalfGaugeMeter() \n\t{\n\t}", "public void setPercentThreshold(double d)\n {\n percentThreshold = d;\n }", "private void reset(double[][] distTo) {\n /**\n *reset all the values to maxvalue.\n */\n for (int i = 0; i < distTo.length; i++) {\n for (int j = 0; j < distTo[i].length; j++) {\n distTo[i][j] = Double.MAX_VALUE;\n }\n }\n }", "public void setChangeRateFactor(double percent) {\r\n\t\tchangeRateFactor = Math.abs(percent);\r\n\t}", "public void set_AllSpreadIndexToOne(){\r\n\t//test to see if the fuel moistures are greater than 33 percent.\r\n\t//if they are, set their index value to 1\r\n\tif ((FFM>33)){ // fine fuel greater than 33?\r\n\t\tGRASS=0; \r\n\t\tTIMBER=0;\r\n\t}else{\r\n\t\tTIMBER=1;\r\n\t}\r\n}", "public void setFill(RMFill aFill)\n{\n if(RMUtils.equals(getFill(), aFill)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_fill!=null) _fill.removePropertyChangeListener(this);\n firePropertyChange(\"Fill\", _fill, _fill = aFill, -1); // Set value and fire PropertyChange\n if(_fill!=null) _fill.addPropertyChangeListener(this);\n}", "@Override\n public void fill() {\n graphicsEnvironmentImpl.fill(canvas);\n }", "public void changeDiscountRate (double value) {\n this.discountRate = value;\n }", "public void setBlueCarFaultPercentage(java.math.BigDecimal value);", "public void setPercentage() {\n\t\tif (this.winnumber == 0) {\n\t\t\tthis.percentage = 0;\n\t\t} else {\n\t\t\tthis.percentage = (double) this.winnumber * 100 / (double) this.gamenumber;\n\t\t}\n\t}", "public void setFillArea(boolean b)\r\n/* 34: */ {\r\n/* 35: 26 */ this.fillArea = b;repaint();\r\n/* 36: */ }", "@Override\n\tpublic void\n\tfill( double value )\n\t{\n\t\tdata[0] = data[1] = data[2] = value;\n\t}", "public RMFill getFill() { return _fill; }", "public void resupply()\n {\n fuel = model.maxFuel;\n ammo = model.maxAmmo;\n }", "@Override\n\tpublic void setPersonal_4_HalfGaugeMeter() \n\t{\n\t\tbgColor = METER_SCALE_COLOR;\n\t}", "public void setSpeed(float val) {speed = val;}", "public abstract void setRate();", "public abstract void setDecimation(float decimation);", "public void setGrowthRate(int growthRate) {\n growthRate /= 100;\n this.growthRate = growthRate;\n }", "public void setCost(int maxTemp) {\n\t\tthis.cost = 900 + (200 * (Math.pow( 0.7, ((double)maxTemp/5.0) )));\n\t}", "public void fillWith ( float value)\n {\n for (int i = 0; i < getDimX(); i++) {\n for (int y = 0; y < getDimY(); y++) {\n m_grid[i][y] = value;\n }\n }\n }", "public void setRate(float wpm) {\n\tif (wpm > 0 && wpm < 1000) {\n\t setDurationStretch(nominalRate / wpm);\n\t}\n }", "private void setTipPercentage(){\n System.out.println(\"You indicated the service quality was \"+\n serviceQuality+\". What percentage tip would you like to leave?\");\n tipRate=keyboard.nextDouble();\n \n \n }", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "public void setMinConf (float value) {\r\n min_conf = value; }", "public void setProgress(float p) {\n _progress = Math.max(0.0f, Math.min(1.0f, p));\n }", "public void adjust_FineFuelMoisture(){\r\n\t// If FFM is one or less we set it to one\t\t\r\n\tif ((FFM-1)<=0){\r\n\t\tFFM=1;\r\n\t}else{\r\n\t\t//add 5 percent FFM for each Herb stage greater than one\r\n\t\tFFM=FFM+(iherb-1)*5;\r\n\t}\r\n}", "public void setMaxSpeed(double value) {\n super.setMaxSpeed(value);\n }", "public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }", "public void setToDefualts(){\n\t\tchangeInPlayerHealth = 0;\n\t\tchangeInPlayerScore = 0;\n\t\tchangInBatteryCharge = 0;\n\t\tpuaseForAnimation = false;\n\t}", "public void setFilled(boolean filled) {\r\n this.filled = filled;\r\n }", "public void setUsedLimit(float value) {\n this.usedLimit = value;\n }", "public FlightProfile setEnergyRate( float val ) {\n EnergyRate = val;\n return this;\n }", "void unsetValueRatio();", "public void setBalance(float value)\n {\n balanceCtrl.setValue(value);\n }", "public void specialize(){\n\tdefense *= .6;\n\tattRating *= 1.4;\n\tif ( attRating > 2.0){\n\t attRating = 2.0;\n\t}\n }", "public void setCost(double value) {\n this.cost = value;\n }", "public void setTargetRange(float targetRange) {\n\t\tthis.targetRange = targetRange;\n\t}", "public synchronized void setRampRate(Double rampRate)\n {\n this.rampRate = rampRate;\n }", "public void setFill(boolean fill) {\r\n if (fill) {\r\n \tmPaint.setStyle(Paint.Style.FILL);\r\n }else{\r\n \tmPaint.setStyle(Paint.Style.STROKE);\r\n }\r\n }", "public void minMaxSamplingRate(MyInt min, MyInt max, MyInt preferred) {\r\n\r\n\t\tsuper.minMaxSamplingRate(min, max, preferred);\r\n\t\tsampleRate = preferred.getValue();\r\n\t\tdoInitialization();\r\n\t}", "@Override\n public int fillInternal(FluidStack resource, boolean doFill)\n {\n if (resource == null || resource.amount <= 0)\n {\n return 0;\n }\n\n if (!doFill)\n {\n if (fluid == null)\n {\n return Math.min(capacity, resource.amount);\n }\n\n if (!fluid.isFluidEqual(resource))\n {\n return 0;\n }\n\n return Math.min(capacity - fluid.amount, resource.amount);\n }\n\n if (fluid == null)\n {\n fluid = new FluidStack(resource, Math.min(capacity, resource.amount));\n\n onContentsChanged();\n\n if (tile != null)\n {\n FluidEvent.fireEvent(new FluidEvent.FluidFillingEvent(fluid, tile.getWorld(), tile.getPos(), this, fluid.amount));\n }\n return fluid.amount;\n }\n\n if (!fluid.isFluidEqual(resource))\n {\n return 0;\n }\n int filled = capacity - fluid.amount;\n\n if (resource.amount < filled)\n {\n fluid.amount += resource.amount;\n filled = resource.amount;\n }\n else\n {\n fluid.amount = capacity;\n }\n \n if (filled>0) {\n \tonContentsChanged();\n }\n \n if (tile != null)\n {\n FluidEvent.fireEvent(new FluidEvent.FluidFillingEvent(fluid, tile.getWorld(), tile.getPos(), this, filled));\n }\n return filled;\n }", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "public final void setBestFit() {\r\n setZoom(ZOOM_BEST_FIT);\r\n }", "public void _setMin(float min)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMinimum((int) (min * 100));\r\n } else\r\n {\r\n setMinimum((int) min);\r\n }\r\n }", "public void calculate(){\n double totalFlow = this.mFarm.getCompFlow() * this.mFarm.getNumComps();\n double activeOutlets = this.mFarm.getChanPerPen() * this.mFarm.getActivePens()\n + this.mFarm.getActiveChnlWalk();\n double flowPerChnl = totalFlow / activeOutlets;\n double calcPressure = calculateCalcPressure();\n double pressCorr = Math.sqrt((this.mFarm.getReadPressure() + 14.7)/(calcPressure + 14.7));\n double stdCorr = Math.sqrt((this.mFarm.getReadPressure() + 14.7)/(0.0 + 14.7));\n double targetReadingFlow = flowPerChnl / pressCorr;\n double stdReading = flowPerChnl / stdCorr;\n final double MAXSTANDARDFLOW = 16;\n double maxFlowRate = MAXSTANDARDFLOW * pressCorr;\n double targetReadingPercent = Math.round(100 * flowPerChnl / maxFlowRate);\n\n this.mFarm.setTargetFlowDisplay((this.mFarm.getPanelGen() == 4) ? targetReadingPercent : targetReadingFlow);\n\n this.mFarm.setStdReading(stdReading);\n\n }", "public void set(double speed) {\n climb_spark_max.set(speed);\n }", "public void setFilled(boolean filled) {\n this.filled = filled;\n }", "public void setFilled(boolean filled) \n\t{\n\t\tthis.filled = filled;\n\t}", "public void setPercentage(int i){\n\t\tif(loadBar != null) loadBar.setValue(i);\n\t\tif(i >= 100){\n\t\t\tdispose();\n\t\t}\n\t}", "public void autoscale()\n\t\t{\n\t\tdouble maxFC=1;\n\t\tdouble minP=-1;\n\t\t\n\t\tfor(int i=0;i<de.getNumGenes();i++)\n\t\t\t{\n\t\t\tdouble f=Math.abs(de.fc[i]);\n\t\t\tdouble p=de.logP[i];\n\t\t\tif(f>maxFC)\n\t\t\t\tmaxFC=f;\n\t\t\tif(p<minP)\n\t\t\t\tminP=p;\n\t\t\t}\n\t\tmaxFC*=1.2;\n\t\tminP*=1.2;\n\t\tscaleFC=1/maxFC;\n\t\tscaleP=-1/minP;\n\t\t}", "public void setSpeedLimit(int speedLim) {\n \tthis.currentSpeedLimit = trkMdl.getBlock(this.lineColor,this.currentBlock).getSpeedLimit();\n }", "public void setFilled ( boolean flag ) {\r\n\t\tfill_flag = flag;\r\n\t}", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "public void setValue(float value)\n {\n \tPixelVal = value;\n }", "private void setLowestMeasuredPercentile(double lowestPercentileValue) {\n for (QoSSentinel sentinel : qosHandler.getQosSentinels()) {\n sentinel.setLowestPercentileValue(lowestPercentileValue);\n }\n }", "@Override\r\n\tpublic void setPercentage(BigDecimal percentage) {\r\n\t\tif(percentage==null) return;\r\n\t\tsuper.setCalculationPercent(new Percent(percentage));\r\n\t}", "public void setAreaFillingColor(ColorRGB areaFillingColor) {\n this.areaFillingColor = areaFillingColor;\n currentPath.setFill(Color.rgb(areaFillingColor.getRed(), areaFillingColor.getGreen(), areaFillingColor.getBlue()));\n }", "public void SetPolyFillMode(short fillmode) throws IOException {\n\t\taddCommandX(META_SETPOLYFILLMODE, fillmode);\n\t}", "public void setMaxSpeed() {\n\t\tspeed = MAX_SPEED;\n\t}" ]
[ "0.60582227", "0.58112174", "0.57310504", "0.572511", "0.5654712", "0.56298405", "0.5553878", "0.55072784", "0.55003077", "0.5495248", "0.5429591", "0.54290855", "0.5395498", "0.5380435", "0.5343662", "0.5295214", "0.52950335", "0.527571", "0.5213323", "0.51820695", "0.5165746", "0.516379", "0.5156108", "0.51551753", "0.51509327", "0.5145822", "0.5135555", "0.51094276", "0.5100442", "0.5098079", "0.5076196", "0.5071638", "0.5046831", "0.5018439", "0.5017554", "0.5006611", "0.5005479", "0.5001936", "0.49995705", "0.49979982", "0.49919686", "0.4990204", "0.4985246", "0.497466", "0.49581164", "0.49547443", "0.49506283", "0.4928054", "0.4921341", "0.48957434", "0.48930398", "0.48929814", "0.4890313", "0.4882924", "0.4880858", "0.48761004", "0.4875695", "0.48681673", "0.48661077", "0.4864748", "0.4856651", "0.48551968", "0.4855178", "0.48530233", "0.4851821", "0.48498964", "0.4837642", "0.48348418", "0.48339126", "0.48275542", "0.48264357", "0.4824194", "0.482086", "0.48078382", "0.480531", "0.4802133", "0.4794311", "0.47924006", "0.47907877", "0.4784077", "0.47824094", "0.47745925", "0.47657663", "0.47625026", "0.4761292", "0.47603083", "0.47585952", "0.47578895", "0.47550705", "0.47490898", "0.4746226", "0.47411716", "0.47406033", "0.47404188", "0.47337893", "0.47332987", "0.4727222", "0.47254184", "0.47225294", "0.47173664" ]
0.62410384
0
Set the the number of KiB that can be written before an automatic commit to disk happens.
Builder withAutoCommitBufferSizeInKiB(int sizeInKiB);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getAutoCommitBufferSizeInKiB();", "private void setMemorySize() { }", "public void setSize(long value) {\n this.size = value;\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}", "Update withDiskSizeGB(Integer diskSizeGB);", "public void set_size(int s);", "public void setNumberOfAvailableFiles(int value) {\n this.numberOfAvailableFiles = value;\n }", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "public synchronized void limitNextBytes() {\n limitNextBytes(1);\n }", "public void setSize(int value) {\n\t\tthis.size = value;\n\t}", "public void setMaxFileSize(int sINGLESIZE) {\n\t\t\r\n\t}", "public void setBufferSize(int i) {\n\n\t}", "public Builder setMaxUploadSizeInBytes(long value) {\n \n maxUploadSizeInBytes_ = value;\n onChanged();\n return this;\n }", "public TransactionBuilder setCacheSize(long size);", "public void setLocalSize(int size);", "@Override\n public void setBufferSize(int arg0) {\n\n }", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }", "public synchronized void limitNextBytes() {\n this.limitNextBytes(1);\n }", "public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }", "public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }", "protected void txPut(int n) {}", "public Builder setNumOfChunks(int value) {\n \n numOfChunks_ = value;\n onChanged();\n return this;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.965 -0500\", hash_original_method = \"B06B3FDC2D2CDF223C79F9432CF6B221\", hash_generated_method = \"EC13B61AE91A640A596BB8C3880035C6\")\n \n public void setCacheSize(int bytes){\n \t//Formerly a native method\n \taddTaint(bytes);\n }", "void setSpikesPerChunk(VariableAmount count);", "void setNoOfBuckets(int noOfBuckets);", "@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}", "public static void setDiskCacheSize(long size) {\n sDiskCacheSize = size;\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 setPackageSize(int size){\r\n }", "public void setPkCacheSize(int pkCacheSize) {\n }", "public void setCapacity(int value) {\n this.capacity = value;\n }", "@Override\n public int getMaxWriteSize() {\n return mMaxWriteSize;\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 }", "private void adjustMaxBytesPerGatheringWrite(long attempted, long written, long oldMaxBytesPerGatheringWrite) {\n/* 286 */ if (attempted == written) {\n/* 287 */ if (attempted << 1L > oldMaxBytesPerGatheringWrite) {\n/* 288 */ config().setMaxBytesPerGatheringWrite(attempted << 1L);\n/* */ }\n/* 290 */ } else if (attempted > 4096L && written < attempted >>> 1L) {\n/* 291 */ config().setMaxBytesPerGatheringWrite(attempted >>> 1L);\n/* */ } \n/* */ }", "public void setMaxBufferSize(int value) {\n this.maxBufferSize = value;\n }", "public void setMaxFileSize(String value)\r\n\t{\r\n\t\tmaxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);\r\n\t}", "public void autoSize() {\n\t\t//no op\n\t}", "void setBufferSize(int bufferSize);", "@Override\n public void setMaxWriteSize(int maxWriteSize) {\n mMaxWriteSize = maxWriteSize;\n }", "public WriterOptions stripeSize(long value) {\n stripeSizeValue = value;\n return this;\n }", "void setMaximumCacheSize(int maximumCacheSize);", "@Override\n public void accept(int value) {\n tracker.increaseBytesRequested(value);\n }", "@Override\n\tpublic void setStorageSpace(int amount) {\n\t\tif(network==null)return;\n\t\tnetwork.setBytesLimit(gibibytesToBytes(amount));\n\t\tNetwork.log(\"Set new storage amount\");\n\t}", "private void addLengthToCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / 1024 + 1);\r\n }", "public void setMaxConcurrentAccessCount(String newValue);", "public int setUp() throws IOException {\r\n\t\tint kSz = 0;\r\n\t\tkeys = ByteBuffer.allocate(size * FREE.length);\r\n\t\tvalues = ByteBuffer.allocate(size * 8);\r\n\t\tclaims = ByteBuffer.allocate(size);\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tkeys.put(FREE);\r\n\t\t\tvalues.putLong(-1);\r\n\t\t\tclaims.put((byte) 0);\r\n\t\t\tkSz++;\r\n\t\t}\r\n\t\treturn size;\r\n\t}", "public void setKeySize(int keySize) {\n this.keySize = keySize;\n }", "public void setAutoCommit (int value) {\n this.autoCommit = value;\n }", "public void setNumberOfInProcessFiles(int value) {\n this.numberOfInProcessFiles = value;\n }", "public void sizeHasBeenSet() {\n isSizeSet = true;\n }", "public Builder setMaxDiskCacheSize(int val) {\n mMaxDiskCacheSize = val;\n return this;\n }", "public void setAudiofileSize(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), AUDIOFILESIZE, value);\r\n\t}", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "public Builder setAvailableCapacity(int value) {\n \n availableCapacity_ = value;\n onChanged();\n return this;\n }", "private void setConfigNumMaxBgJobs(int value) {\n this.bitField0_ |= 2;\n this.configNumMaxBgJobs_ = value;\n }", "public Builder setMaxCacheSizeOnLowDiskSpace(int val) {\n this.mMaxCacheSizeOnLowDiskSpace = val;\n return this;\n }", "public abstract void adjustSize(long size);", "@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}", "public void setFileSize(long fileSize)\r\n {\r\n lFileSize = fileSize;\r\n }", "public Builder setFileSize(long value) {\n \n fileSize_ = value;\n onChanged();\n return this;\n }", "void mark(@Nonnegative int readLimit);", "public void setGroupingSize(int newValue) {\n groupingSize = (byte) newValue;\n }", "public void setBlockSize(long value) {\n this.blockSize = value;\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 setWriteBufferSize(long writeBufferSize) throws IOException {\n this.table.setAutoFlush(false);\n this.table.setWriteBufferSize(writeBufferSize);\n }", "@Value.Default\n public int getByteSize() {\n\treturn 0;\n }", "public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }", "public Builder setMaxCacheSizeOnVeryLowDiskSpace(int val) {\n this.mMaxCacheSizeOnVeryLowDiskSpace = val;\n return this;\n }", "default void setSpikesPerChunk(int count) {\n setSpikesPerChunk(VariableAmount.fixed(count));\n }", "@Test\n public void testEnsureBufferSizeExpandsToMaxBufferSize() {\n assertEnsureBufferSizeExpandsToMaxBufferSize(false);\n }", "public abstract void resetBytesWritten();", "public void setSizeQty(Number value) {\n setAttributeInternal(SIZEQTY, value);\n }", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }", "public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }", "public void setCapacity(int n) {\n\t\tcapacity = n;\n\t}", "public void setMaxMemoryCacheSize(int val) {\n this.mMaxMemoryCacheSize = val;\n }", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\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 long getByteCount()\n {\n return written;\n }", "public void setTreeSize(Double newtreesize)\n {\n treesize = newtreesize; \n }", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }", "public void setMaxCacheEntrySize(int val) {\n this.mMaxCacheEntrySize = val;\n }", "public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}", "public void setBytesNum(long bytes) {\n\t\tif (bytes < 0)\n\t\t\tthrow new IllegalArgumentException(\"The bytes number cannot be less than 0, \" + bytes + \" given\");\n\t\tthis.bytesNum = bytes;\n\t}", "public void setSize(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}", "public void overwriteObjectCount(long objectCount) {\n\t\tthis.expectedObjectCount = objectCount;\n\t}", "private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }", "@Override\n public int getMaxCapacity() {\n return 156250000;\n }", "void setCopies(short copies);", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "@Test\n public void testEnsureBufferSizeExpandsToBeyondMaxBufferSize() {\n assertEnsureBufferSizeExpandsToMaxBufferSize(true);\n }", "private void setConfigNumMinBgJobs(int value) {\n this.bitField0_ |= 4;\n this.configNumMinBgJobs_ = value;\n }", "protected void setQuantityOfShares(int quantity){\n\t\tif(quantity < 0){\n\t\t\tthrow new IllegalArgumentException(\"Quantity can't be less than 0: \" + quantity);\n\t\t}\n\t\tsynchronized(this){\n\t\t\tthis.quantityOfShares = quantity;\n\t\t}\n\t}", "@Override\n public void setAtomicNumber(int atomicNumber) {\n }", "public void setBlockCount(long value) {\n this.blockCount = value;\n }" ]
[ "0.6536669", "0.6211795", "0.6074024", "0.60380715", "0.5959651", "0.59563226", "0.59522104", "0.5837817", "0.58241963", "0.58057815", "0.5800804", "0.5776329", "0.57757896", "0.57698554", "0.5763094", "0.5762077", "0.57387805", "0.5729327", "0.5717995", "0.5712673", "0.5712673", "0.5707003", "0.5698459", "0.5688296", "0.5685799", "0.56848526", "0.56832355", "0.5677804", "0.56728244", "0.56398374", "0.5621375", "0.5617099", "0.56114936", "0.56048936", "0.56048936", "0.56038344", "0.5588905", "0.5583535", "0.5581972", "0.55780935", "0.5576515", "0.5573108", "0.5570465", "0.55502033", "0.5538015", "0.5535266", "0.55344003", "0.55246395", "0.552223", "0.54986495", "0.54961205", "0.5491437", "0.54764754", "0.54738086", "0.54638684", "0.54575986", "0.54439396", "0.5440837", "0.5440788", "0.54339004", "0.5420069", "0.541988", "0.5419709", "0.5390276", "0.538272", "0.5380581", "0.53805405", "0.5371035", "0.534951", "0.5348142", "0.53475255", "0.53443086", "0.5334321", "0.5334142", "0.53332144", "0.533042", "0.5325125", "0.5314798", "0.5295539", "0.52939487", "0.5292501", "0.5292501", "0.5292501", "0.5283941", "0.52761805", "0.52711254", "0.52706677", "0.5270168", "0.52691424", "0.52679294", "0.52598166", "0.52581733", "0.5257575", "0.52545613", "0.5253274", "0.52523845", "0.524981", "0.524792", "0.5247915", "0.5246632" ]
0.65136147
1
Created by Administrator on 2017/4/27.
public interface CompactDisk { void play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo38117a() {\n }", "public void mo4359a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private TMCourse() {\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void publierEnchere() {\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 }", "public contrustor(){\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\n protected void getExras() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public void designBasement() {\n\t\t\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo55254a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void create() {\n\t\t\n\t}", "@Override\n void init() {\n }", "public void gored() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "private Singletion3() {}", "@Override\n\tpublic void einkaufen() {\n\t}", "private UsineJoueur() {}", "Constructor() {\r\n\t\t \r\n\t }", "public void mo6081a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "protected Doodler() {\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}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo12930a() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void init() {}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}" ]
[ "0.6317728", "0.61648273", "0.5908346", "0.58938915", "0.5867411", "0.58474797", "0.58417153", "0.5761282", "0.57582784", "0.57563454", "0.5750185", "0.5742878", "0.5742878", "0.57303566", "0.57303566", "0.5725511", "0.5702455", "0.56822497", "0.5680489", "0.5673821", "0.5659059", "0.565779", "0.5649438", "0.5647316", "0.5637661", "0.5600766", "0.5593329", "0.5590009", "0.55877465", "0.55768067", "0.5564278", "0.5558751", "0.55562687", "0.5555821", "0.5555821", "0.5555821", "0.5555821", "0.5555821", "0.5555821", "0.5555821", "0.55517924", "0.55375856", "0.55241376", "0.55241376", "0.55241376", "0.55241376", "0.55241376", "0.55241376", "0.55236423", "0.5514133", "0.5489799", "0.5475644", "0.5473649", "0.5472491", "0.5454621", "0.54535866", "0.5453048", "0.54478765", "0.5443887", "0.5443497", "0.5433992", "0.543233", "0.5431643", "0.5428659", "0.54268974", "0.5425887", "0.5425129", "0.5423093", "0.5423093", "0.5422736", "0.54207665", "0.5415053", "0.54110515", "0.5408037", "0.5406823", "0.5402187", "0.53946537", "0.53946537", "0.53946537", "0.53946537", "0.53946537", "0.5393938", "0.5391023", "0.5390918", "0.5389638", "0.5389323", "0.5388664", "0.538805", "0.5375567", "0.53715205", "0.5368769", "0.53639305", "0.5363093", "0.5361483", "0.5359512", "0.5357034", "0.5357034", "0.5350547", "0.53444284", "0.53388304", "0.5335387" ]
0.0
-1
TODO Autogenerated method stub
protected ModelAndView handleRequestInternal(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception { System.out.println("IN CourceController"); cs=new CourseService(); ArrayList<String>courseList=cs.getCourses(); System.out.println("ArrayList get0 "+courseList.get(0)); return new ModelAndView("show", "AL", courseList); }
{ "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 Bus viewBusToBook(int bno) { return userdao.viewBusToBook(bno); }
{ "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 User getuserId(String name) { return userdao.getuserId(name); }
{ "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 User viewUser(String nm) { return userdao.viewUser(nm); }
{ "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 List<Bus> searchBus(Bus bb) { return userdao.searchBus(bb); }
{ "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 long getAvalbSeat(int busNum) { return userdao.getAvalbSeat(busNum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public String regUser(User uu) { return userdao.regUser(uu); }
{ "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 int checkUser(User u) { return userdao.checkUser(u); }
{ "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 List<BookingBus> viewBooking(int id) { return userdao.viewBooking(id); }
{ "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 long getCOUNTofSeatsBooked(seatStructure s) { return userdao.getCOUNTofSeatsBooked(s); }
{ "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 List<seatStructure> seatNUM(int s) { return userdao.seatNUM(s); }
{ "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 insertBookData(BookingBus b) { userdao.insertBookData(b); }
{ "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 updateSeatTable(seatTable st) { userdao.updateSeatTable(st); }
{ "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 insertSeatNum(seatStructure ss) { userdao.insertSeatNum(ss); }
{ "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 User getUserDt(int id) { return userdao.getUserDt(id); }
{ "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 int validateUsername(User u) { return 0; }
{ "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 List<BookingBus> viewBookingBusDetails(int bnum) { return userdao.viewBookingBusDetails(bnum); }
{ "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 DataGrid dataGrid(Query query) { DataGrid<SysActionLog> dg = new DataGrid<SysActionLog>(); dg.setTotal(sysActionLogDao.getRecordCount(query.getQueryParams())); dg.setRows(sysActionLogDao.queryByCondition(query)); return dg; }
{ "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 int insert(SysActionLog vo) { SequenceGenerator oid = new SequenceGenerator(); String [] ids = oid.generate(1); vo.setSal_id(ids[0]); //todo //增加版本号和新增时间 return sysActionLogDao.insert(vo); }
{ "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 int delete(String id) { return sysActionLogDao.delete(id); }
{ "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
The interface IElementService allows to.
public interface IElementService { /** * Create new element * @param name */ public IElement createNewElement(String name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ElementServiceImpl() {\n\t\tsuper();\n\t}", "public IElement element(String id);", "public interface IElement extends IBaseElement, IVisible {\n\n /**\n * Get element attribute\n *\n * @param name Specify name for attribute\n * @return Returns chosen attribute\n */\n String getAttribute(String name);\n\n /**\n * @param name Specify attribute name\n * @param value Specify attribute value\n * Waits while attribute gets expected value. Return false if this not happens\n */\n void waitAttribute(String name, String value);\n\n void waitContainsAttribute(String name, String value);\n\n /**\n * @param attributeName Specify attribute name\n * @param value Specify attribute value\n * Sets attribute value for Element\n */\n void setAttribute(String attributeName, String value);\n\n void removeAttribute(String attributeName);\n\n}", "public interface IHasElement extends IHasParent {\r\n WebElement getWebElement();\r\n void setWebElement(WebElement webElement);\r\n}", "@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}", "public interface ElementsGetter {\n\t\n\t/**\n\t * Tests if this ElementsGetter contains more elements.\n\t * @return true if this ElementsGetter contains at least one more element to provide, false otherwise.\n\t */\n\tboolean hasNextElement();\n\t\n\t/**\n\t * Returns the next element of this ElementsGetter if it has at least one more element to provide.\n\t * @return the next element of this ElementsGetter if exists.\n\t * @throws NoSuchElementException if no more elements exist.\n\t */\n\tObject getNextElement() throws NoSuchElementException;\n\t\n\t/**\n\t * Processes all the remaining elements in this ElementsGetter using the given processor object.\n\t * @param p Processor object that processes the remaining elements.\n\t */\n\tdefault void processRemaining(Processor p) {\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "Element() {\n\t}", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public interface Element {\r\n\r\n void accept(Visitor visitor);\r\n}", "public interface Element_itf {\n\n// Gestion de la position\n\t/** Obtenir la position\n\t * @return position la position\n\t */\n\tpublic Position getPosition();\n\n// Méthode estDestructible\n\t/** Renvoie vrai si l'élément est destructible a la position\n\t * @param position la position depuis laquelle on tente de détruire l'élément\n\t * @return true si on peut le detruire, false sinon\n\t */\n\tpublic boolean estDestructible (Position position);\n\n// Affichage du niveau\n\t/** afficher tous les détails de l'element\n\t * @return string détail de l'element\n\t */\n\tpublic String toString();\n\n}", "public interface IElementController {\n /**\n * Inicjalizuje kontroler(bus itp.)\n */\n void initialize();\n\n /**\n * Odinicjalizowuje kontroler.\n */\n void uninitialize();\n\n /**\n * Ustawia mapę\n *\n * @param map Mapa Mapa MapBoxowa\n */\n void setMap(MapboxMap map);\n\n /**\n * Metoda pozwalajaca na dodanie elementow do mapy. Za dodanie elementow do mapy odpowieada c, ktory definiuje jakiego rodzaju\n * obiekty przyjmuje, a nastepnie tworzy z nich markery lub polylines.\n *\n * @param objects\n */\n void provideObjects(Collection<? extends Object> objects);\n\n /**\n * Usuwa z mapy wszystkie elementy dnaego typu, np. POIe, nawigacje. Nalezy tutaj podac klase szablonu z danego {@link MapBoxElementsProvider}.\n *\n * @param modelClass - klasa szablonu z {@link MapBoxElementsProvider}\n */\n void clearObjects(Class modelClass);\n\n /**\n * Wywolywana przy niszczeniu mapy.\n */\n void onDestroy();\n\n /**\n * Decyduje czy obiekty moga byc dodawane na mapie.\n *\n * @param enabled True jesli obiekty moga byc dodawane do mapy, false gdy maja zostac usuniete.\n */\n void setEnabled(boolean enabled);\n\n /**\n * Aktualizuje obiekty Polylines na mapie. Runnable odpalane jest na wątku głównym.\n */\n void updatePolylines(MapElementUpdateRunnable mapElementUpdateRunnable);\n\n /**\n * Aktualizuje elementy na mapie, np. MarkerViews. Runnable odpalane jest na wątku głównym.\n *\n */\n void updateElements(MapElementUpdateRunnable mapElementUpdateRunnable);\n\n\n /**\n * Zwraca listę providerow.\n *\n */\n Set<MapBoxElementsProvider> getProviders();\n\n <T extends MapBoxElementsProvider >T getProvider(Class<T> providerClass);\n\n <T extends MapBoxElementsProvider > boolean hasProvider(Class<T> providerClass);\n}", "@Override\n\tpublic Element getElement() {\n\t\treturn elem;\n\t}", "public void setElement(Element element) {\n this.element = element;\n }", "public interface ElementsGetter<T> {\n\t\n\t/**\n\t * Metoda provjerava ima li jos elemenata\n\t * u kolekciji\n\t * @return boolean true ako ima jos elemenata, false ako nema\n\t */\n\tpublic boolean hasNextElement();\n\t\n\t/**\n\t * Metoda dohvaca iduci element kolekcije i vraca ga.\n\t * @return Object koji je iduci element iz kolekcije\n\t */\n\tpublic T getNextElement();\n\t\n\t/**\n\t * Nad svim preostalim elementima kolekcije poziva \n\t * metodu procesora p process(Object value).\n\t * @param p Procesor koji hocemo pozvati nad\n\t * preostalim elementima kolekcije.\n\t * @throws NullPointerException ako je procesor p null\n\t */\n\tdefault void processRemaining(Processor<? super T> p) {\n\t\tObjects.requireNonNull(p);\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "public E getElement() { return element; }", "public interface IWlanElement {\n\n\t/**\n\t * retrieve element id\n\t * \n\t * @return\n\t */\n\tpublic byte getElementId();\n\t\n\t/**\n\t * data \n\t * @return\n\t */\n\tpublic byte[] getData();\n\t\n}", "public Object getElement()\r\n\t\t{ return element; }", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "public T getElement()\n {\n\n return element;\n }", "public I_Element getElement() {\n\t\treturn element;\n\t}", "public interface ElementEncounter\n{\n\t/**\n\t * Get the rendering context.\n\t *\n\t * @return\n\t */\n\tRenderingContext getContext();\n\n\t/**\n\t * Get the object being rendered.\n\t *\n\t * @return\n\t */\n\tObject getObject();\n\n\t/**\n\t * Skip the current element.\n\t *\n\t * @return\n\t */\n\tvoid skip();\n\n\t/**\n\t * Manually emit the wrapped content.\n\t *\n\t * @throws IOException\n\t *\n\t */\n\tvoid emit()\n\t\tthrows IOException;\n\n\t/**\n\t * Get the output used for rendering. This should be used with care,\n\t * no extra actions are taken to ensure that the output is valid HTML\n\t * when this is used directly.\n\t *\n\t * @return\n\t */\n\tTemplateOutputStream getOutput();\n\n\t/**\n\t *\n\t * @param name\n\t * @param value\n\t */\n\tvoid pushAttribute(String name, String value);\n}", "public interface SsElementFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tSsElementFactory eINSTANCE = ssElement.impl.SsElementFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>SS Elements</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>SS Elements</em>'.\n\t * @generated\n\t */\n\tSSElements createSSElements();\n\n\t/**\n\t * Returns a new object of class '<em>Element</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Element</em>'.\n\t * @generated\n\t */\n\tElement createElement();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tSsElementPackage getSsElementPackage();\n\n}", "void element() {}", "public void setElement(Element Element) {\n\t\telement = Element;\n\t}", "public interface CardPageElement extends ElementGroup {\n}", "public boolean isElement() {\r\n return element;\r\n }", "Element asElement();", "Object element();", "Object element();", "Elem getElem();", "public Element getElement()\n {\n return m_Element;\n }", "@Override\n public Iterator<E> iterator() {\n return new ElementIterator();\n }", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "Element getElement();", "public interface ButtonArticleService extends Service<ButtonArticle> {\n\n}", "public Element element() {\n\t\treturn _element;\n\t}", "public T getElement() {\n return element;\n }", "Element getGenericElement();", "public E getElement() {\r\n return element;\r\n }", "public interface TElement extends HasID, THasPropertyChange, PropertyChangeListener, Serializable {\n\n /**\n * Used if a requested attribute is not a member of the TElement derived\n * Class.\n */\n public final Object NOT_DEFINED = \"ATT_NOT_DEFINED\";\n\n /**\n * return the attribute value or teal.sim.TElement.NOT_DEFINED\n **/\n public Object getProperty(String attName);\n\n /**\n * set the attribute value return value is success\n **/\n public boolean setProperty(String attName, Object value);\n\n public void addRoute(Route r);\n \n /** \n * Establish a route from this object's source attribute and the targeted \n * attribute of another TElement. \n **/\n public void addRoute(String attribute, TElement listener, String targetName);\n \n \n /** \n * Remove a route from this object's source attribute and the target's output attribute. \n **/\n public void removeRoute(String attribute, TElement listener, String targetName);\n}", "public interface TmxElement {\n\n\t/**\n\t * Method used to implement the visitor pattern with the different TMX\n\t * elements\n\t * \n\t * @param visitor\n\t */\n\tvoid accept(TmxElementVisitor visitor);\n\n\t/**\n\t * @return a textual description of the object implementation\n\t */\n\tString description();\n\n\t/**\n\t * @return an element assembler that will accept or not other TMX elements\n\t * to be assembled with it\n\t */\n\tTmxElementAssembler createAssembler();\n\n\t/**\n\t * Get this object assembled to another using an assembler\n\t * \n\t * @param assembler\n\t */\n\tvoid getAssembled(TmxElementAssembler assembler) throws TmxInvalidAssembly;\n}", "public ElementObjectSupport(ContainerI c, Element element) {\r\n\t\tthis(c, null, element);\r\n\t}", "public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}", "public Element getElement() {\r\n\t\treturn element;\r\n\t}", "public Element getElement() {\n return element;\n }", "public Element getElement() {\n return element;\n }", "@Override\r\n\tpublic boolean getElemento(T elemento) {\n\t\treturn false;\r\n\t}", "@Override\npublic void findElement(String by) {\n\t\n}", "@Override\r\n\tpublic Object getElement(Object elementKey) {\n\t\treturn elements.get(elementKey);\r\n\t}", "public T getElement() {\n\t\treturn element;\n\t}", "public void setElement(Object e) {\n element = e;\n }", "public Element getElement() {\n return super.getElement();\n }", "public E element();", "public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}", "public Object getElement() {\n return element;\n }", "final public Element getElement() {\n return element;\n }", "public interface LazElement {\n Element getElement(Element actorTabSliderElement);\n\n String getBeanName(Object data);\n}", "Element getElement(String id);", "@Property Element getDocumentElement();", "public String getElement() { return element; }", "public interface IElementValidator {\n\n /**\n * This method is called by the agency to validate a user's input on a configuration form.\n * @param toValidate The string from the user's input to the component that is to be validated\n * @return Empty string if valid, error message if not valid\n */\n String validate(String toValidate);\n}", "public interface MyAbstractElement extends EObject {\n}", "public interface EditableFilterElement {\r\n\r\n\tpublic String getTextValue();\r\n}", "@Override\n\t\tpublic E getElement() throws IllegalStateException {\n\t\t\treturn element;\n\t\t}", "@DISPID(1001)\n @PropGet\n ms.html.IHTMLElement element();", "public interface EndElementHandler {\n\n /**\n * Called after all attributes and sub-elements have been set.\n * @throws Exception any exception\n */\n public void endElement() throws Exception; \n}", "@Override\n public void visitElement(PsiElement psiElement) {\n if(YamlHelper.isStringValue(psiElement) && YamlElementPatternHelper.getInsideKeyValue(\"services\").accepts(psiElement)) {\n visitConstructor(psiElement);\n visitCall(psiElement);\n }\n\n super.visitElement(psiElement);\n }", "protected SoEnabledElementsList getEnabledElements() {\n\t \t\treturn enabledElements;\n\t \t}", "public Element getElement() {\n/* 78 */ return this.e;\n/* */ }", "private Element get() {\n return new MockElement();\n }", "@Override\r\n public List<Element> findElements()\r\n {\n return null;\r\n }", "public interface ElementExtensibleXMLObject extends XMLObject {\n\n /**\n * Gets the list of XMLObjects added to this XMLObject as part of the \"any\" content model.\n * \n * @return list of XMLObjects added to this XMLObject as part of the \"any\" content model\n */\n public List<XMLObject> getUnknownXMLObjects();\n \n /**\n * Gets the list of XMLObjects added to this XMLObject as part of the \"any\" content model,\n * and which match the specified QName.\n * \n * @param typeOrName the QName of the statements to return\n * @return list of XMLObjects added to this XMLObject as part of the \"any\" content model\n */\n public List<XMLObject> getUnknownXMLObjects(QName typeOrName);\n}", "public Object getElement();", "public void newElement() {\r\n }", "private static interface Service {}", "@Override\n public List<IExpression> getElements() {\n return elements;\n }", "@Override\n\tpublic Element getElement() {\n\t\treturn null;\n\t}", "public interface Service {\n // Service-specific methods go here\n }", "public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}", "public org.w3c.dom.Element getElement() {\n return element;\n }", "@NonNull\n ElementFactory<?, ?, ?, ?> getElementFactory();", "public interface Service {\n\n}", "public interface Service {\n\n}", "protected abstract void onElementRegistered(Level level, T element);", "public void setElement(T element) {\n\t\tthis.element = element;\n\t}", "@Override\n public abstract void addToXmlElement(Element element);", "@Override\n\t@TimeComplexity(\"O(1)\")\n\tpublic E element()\n\t{\n\t\treturn element;\n\t}", "public interface OrderedProductService extends Service<OrderedProduct> {\n}", "public RTWElementRef getAsElement(int i);", "@Override\r\n\tpublic void modifiedService(ServiceReference<T> reference, ServletContextHelperElement service) {\n\t}", "public T get() {\n return element;\n }", "public T getElement();", "ElementDefinition createElementDefinition();", "com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType getListOfServiceElements();", "public interface PostTagRefService extends IService<PostTagRef> {\n\n}", "public interface XMLizable {\n\n /**\n * Write this element as an XML DOM element.\n */\n Element toXML();\n\n /**\n * Read this element as the content of the given element.\n */\n void readXML(Element elem) throws XMLSyntaxError;\n}", "public interface WeighInService {\n}", "public void setElement(String element) {\n this.element = element;\n }", "public abstract boolean addDataTo(Element element);", "public void setElement(WebElement element) {\n\t\t\r\n\t}" ]
[ "0.6968613", "0.66141146", "0.64170897", "0.63924783", "0.6241731", "0.62250143", "0.6178672", "0.61639404", "0.6086597", "0.6064393", "0.60066855", "0.59579134", "0.59178334", "0.5913194", "0.59022206", "0.5871", "0.58645874", "0.5842713", "0.5838944", "0.5830271", "0.581774", "0.5813553", "0.58099306", "0.5783574", "0.5783494", "0.57742447", "0.57715374", "0.57616", "0.57616", "0.5752418", "0.5746206", "0.5742457", "0.574244", "0.5732948", "0.5726527", "0.57122284", "0.5712202", "0.5691285", "0.56844974", "0.56775135", "0.56773627", "0.567338", "0.56673425", "0.56633025", "0.5659367", "0.5659367", "0.5657292", "0.5644854", "0.56447047", "0.56406957", "0.56331384", "0.56239", "0.5621458", "0.5613787", "0.56112325", "0.55979735", "0.5592675", "0.5588183", "0.5580483", "0.55506116", "0.5538318", "0.5537446", "0.55362207", "0.55334204", "0.5530852", "0.55299217", "0.5524228", "0.5518815", "0.55017555", "0.54997605", "0.54993534", "0.5483743", "0.5483628", "0.548148", "0.54768515", "0.54693776", "0.5464302", "0.5455425", "0.5449574", "0.5448598", "0.5443893", "0.5437447", "0.5437447", "0.5434504", "0.5426245", "0.5418918", "0.541738", "0.54131097", "0.54089904", "0.5406765", "0.54010487", "0.5389823", "0.53890836", "0.53881985", "0.5375817", "0.53536737", "0.5345503", "0.53370756", "0.53338385", "0.5332336" ]
0.7304612
0
checking tournament ended or not
public boolean tournamentNotEnded(int id) throws Exception { LocalDate today=LocalDate.now(); LocalDate endDate; Connection con=ConnectionManager.getConnection(); PreparedStatement pstmt = con.prepareStatement("select end_date from tournament where id="+id); ResultSet rs = pstmt.executeQuery(); rs.next(); endDate=rs.getDate("end_date").toLocalDate(); con.close(); return (today.compareTo(endDate) <= 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean verifyEndGame(Player gamer);", "boolean hasGameEndedResponse();", "void matchEnd(boolean winner);", "public boolean gameEnd(){\r\n return !hasMovements(model.getCurrentPlayer().getColor());\r\n }", "public boolean hasGameEnded() {\n return winner != 0;\n }", "boolean isGameComplete();", "private void checkForGameEnd() {\n\t\tint checkWin = controller.checkForWinner();\n\t\tif(playerType == null && checkWin == 1 || (playerType != null && playerType == checkWin)) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"VICTORY\");\n\t\t\talert.setHeaderText(\"VICTORY\");\n\t\t\talert.setContentText(\"CONGRATULATIONS! YOU WIN!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t\t\n\t\t}else if (playerType == null && checkWin == 2 || (playerType != null && playerType%2 + 1 == checkWin)) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"DEFEAT\");\n\t\t\talert.setHeaderText(\"DEFEAT\");\n\t\t\talert.setContentText(\"SHAME! YOU LOSE!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t\t\n\t\t}else if (controller.checkForTie()) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"STALEMATE\");\n\t\t\talert.setHeaderText(\"STALEMATE\");\n\t\t\talert.setContentText(\"ALAS! TIE GAME!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t}\n\t\t\n\t\tif(playerType != null && gameFinished) {\n\t\t\tSystem.out.println(\"closing connection\");\n\t\t\ttry {\n\t\t\t\tconnection.close();\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"ERROR CLOSING\");\n\t\t\t}\n\t\t}\n\t}", "public boolean gameEnd(){\n\t\treturn(\tturn >= 50 || evaluateState()==true );\r\n\t}", "private void endGame() {\r\n\r\n m_state.setState(State.ENDING_GAME);\r\n\r\n /* find winner */\r\n for(KimTeam team : m_survivingTeams) {\r\n if(team != null) {\r\n if(!team.isOut()) {\r\n m_winner = team;\r\n }\r\n\r\n //remove survivors from m_teams so not to duplicate stats\r\n m_teams[team.m_freq] = null;\r\n }\r\n }\r\n\r\n /* end poll */\r\n if(m_poll != null) {\r\n m_poll.endPoll(m_winner, m_connectionName);\r\n m_poll = null;\r\n }\r\n\r\n /* display scoresheet */\r\n m_botAction.sendArenaMessage(\"--------Base1--------W--L --------Base2--------W--L --------Base3--------W--L --------Base4--------W--L\");\r\n\r\n if(!m_skipFirstRound) {\r\n printFormattedTeams(m_teams, m_numTeams);\r\n m_botAction.sendArenaMessage(\"------------------------- ------------------------- ------------------------- -------------------------\");\r\n }\r\n\r\n printFormattedTeams(m_survivingTeams, 4);\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n\r\n if(m_winner != null) {\r\n m_botAction.sendArenaMessage(\"Winner: \" + m_winner.toString(), 5);\r\n\r\n for(KimPlayer kp : m_winner) {\r\n Player p = m_botAction.getPlayer(kp.m_name);\r\n\r\n if(p != null && p.isPlaying()) {\r\n m_botAction.warpTo(p.getPlayerID(), 512, 277);\r\n }\r\n }\r\n } else {\r\n m_botAction.sendArenaMessage(\"No winner.\");\r\n }\r\n\r\n updateDB();\r\n\r\n /* announce mvp and clean up */\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n m_botAction.sendArenaMessage(\"MVP: \" + m_mvp.m_name, 7);\r\n //refreshScoreboard();\r\n cleanUp();\r\n resetArena();\r\n m_state.setState(State.STOPPED);\r\n }\r\n }, 4000);\r\n }", "protected abstract boolean isGameFinished();", "private boolean GameEnds(){\n \tif(endGameCounter!=0) {\n \t\treturn false;\n \t\t\n \t}\n \t\n \treturn true;\n }", "boolean checkEndGame() throws RemoteException;", "public boolean hasEnded(){\r\n\t\treturn state == GameState.FINISHED;\r\n\t}", "private boolean isGameEnded() {\n int playerOneRemainingSeeds = 0;\n int playerTwoRemainingSeeds = 0;\n\n boolean isEnded = false;\n\n Player playerOne = mContainersManager.getOwnerOf(0);\n Player playerTwo = mContainersManager.getOwnerOf(7);\n\n for (int i = 0 ; i < mNumberOfBowls; i++) {\n playerOneRemainingSeeds += mContainersManager.getNumberOfSeedsOf(i);\n }\n for (int j = (mNumberOfBowls + mNumberOfTrays) ; j < (mContainersManager.getNumberContainers() - 1); j++) {\n playerTwoRemainingSeeds += mContainersManager.getNumberOfSeedsOf(j);\n }\n\n if ((playerOneRemainingSeeds == 0) || (playerTwoRemainingSeeds == 0)) {\n isEnded = true;\n }\n\n // If the game is ended put all remaining seeds in the player bowl_selected and find the winner\n if (isEnded) {\n if (playerOneRemainingSeeds > 0) {\n for (int j = 0; j < mNumberOfBowls; j++) {\n mContainersManager.emptyBowl(j);\n }\n mContainersManager.putSeedsInTrayOf( playerOne, playerOneRemainingSeeds);\n } else {\n for (int j = (mNumberOfBowls + mNumberOfTrays);\n j < (mContainersManager.getNumberContainers() -1); j++)\n {\n mContainersManager.emptyBowl(j);\n }\n mContainersManager.putSeedsInTrayOf(playerTwo, playerTwoRemainingSeeds);\n }\n setWinner();\n }\n\n return isEnded;\n }", "@Override\n public void endOfTournament(boolean hasWonTournament) {\n JSONArray wonTournamentJSON = booleanToJSON(hasWonTournament);\n JSONArray message = createMessage(\"end-of-tournament\", wonTournamentJSON);\n sendJSONArray(message);\n readVoidMessage();\n gracefullyShutdown();\n }", "@Test\n public void game_already_ended() {\n Player p1 = new Player(\"Player\");\n playerLobby.getGameCenter().newGame(p1, new Player(\"Opp\"));\n playerLobby.getGameCenter().setJustEnded(p1, new Player(\"Opp\"), true);\n\n when(session.attribute(\"player\")).thenReturn(new Player(\"Player\"));\n\n CuT.handle(request, response);\n assertTrue(playerLobby.getGameCenter().justEnded(p1));\n }", "boolean end() {\r\n\t\tif (this.gameOver == true)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean isGameFinished() {\n if (listaJogadores.size() - listaJogadoresFalidos.size() == 1) {\n return true;\n } else {\n return false;\n }\n\n }", "@Override\n\tpublic boolean isIsFinal() {\n\t\treturn _esfTournament.isIsFinal();\n\t}", "protected boolean isFinished() {\n \t\n \tif(current_time >= goal) {\n \t\t\n \t\treturn true;\n \t}else {\n \t\t\n \t\treturn false;\n \t}\n }", "public abstract boolean isEnded();", "@Override\r\n\tboolean isFinished() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(checkForWin() != -1)\r\n\t\t\treturn true;\r\n\t\telse if(!(hasValidMove(0) || hasValidMove(1)))\r\n\t\t\treturn true; //game draw both are stuck\r\n\t\telse return false;\r\n\t}", "boolean CanFinishTurn();", "boolean isGoalReached(ExerciseSessionData data);", "public boolean end(Match match, Profile player) throws Exception{\n System.out.println(\"S: \" + player.getName() + \" end game!\");\n synchronized(this){\n player.setEnd(true);\n int end = 0;\n for(Profile i: this.players)\n if(i.finish())\n end++;\n if(end == this.players.size()){\n notifyAll();\n return true;\n }\n wait();\n return true;\n }\n }", "private void checkFinish() {\n for (Player temp: players) {\n if (temp.getNumberOfCards() == 0) {\n System.out.println(\"...................................................................................................................................................................\");\n System.out.println(\"Game finished.\\n\");\n System.out.println(Color.PURPLE.getPrintColor() + temp.getName() + \" is winner.\\n\" + Color.RESET.getPrintColor());\n setGameStatus();\n }\n }\n if (!gameStatus) {\n System.out.println(Color.RESET.getPrintColor() + \"Results:\\n\");\n for (Player temp: players) {\n if (temp.getNumberOfCards() != 0) {\n System.out.println(Color.CYAN.getPrintColor() + temp.toString());\n System.out.print(temp.handToString() + Color.RESET.getPrintColor());\n }\n }\n }\n }", "public boolean isFinished() {\n\t\tif ((player1_moves | player2_moves) == COMPLETE) {\n\t\t\tfinished = true;\n\t\t\tcurrentPlayer = '\\0';\n\t\t}\n\t\tfor (int i : winning_cases) {\n\t\t\tif ((player1_moves & i) == i) {\n\t\t\t\twinner = 'X';\n\t\t\t\tfinished = true;\n\t\t\t} else if ((player2_moves & i) == i) {\n\t\t\t\twinner = 'O';\n\t\t\t\tfinished = true;\n\t\t\t}\n\t\t}\n\t\treturn finished;\n\t}", "public void testEndGame() {\n\t\tGame game = new Game(5, \"\");\n\t\t\n\t\t//Method being tested\n\t\tgame.endGame();\n\t\t\n\t\t//Check outcome;\n\t\tMasterShip expectedPlayer = null;\n\t\tMasterShip actualPlayer = game.getPlayer();\n\t\t\n\t\tGrid expectedGrid = null;\n\t\tGrid actualGrid = game.getTheGrid();\n\t\t\n\t\tHashSet<EnemyShip> actualEnemys = game.getAllEnemys();\n\t\t\n\t\tassertTrue(expectedPlayer == actualPlayer && expectedGrid == actualGrid && actualEnemys.isEmpty());\n\t\t\n\t}", "public void endTurn() {\n\t\tturnEnd = false;\n\t\tmadeMove = false;\n\t\tcurrentPlayer.resetUndos();\n\t\tif (currentPlayer == player1) {\n\t\t\tcurrentPlayer = player2;\n\t\t} else {\n\t\t\tcurrentPlayer = player1;\n\t\t}\n\t\t//printBoard();\n\t\tSystem.out.println(\"It is now \" + currentPlayer.getName() + \"'s turn\");\n\t}", "void askEndTurn();", "public static boolean isGameFinished() {\n return mafiaIsWinner() || citizenIsWinner();\n }", "private boolean winGame() {\n if (model.isCompleted()) {\n win.message(\"Winner\");\n return true;\n }\n return false;\n }", "public void gameEnded() {}", "@Override\n public boolean isFinished() {\n return System.currentTimeMillis() >= endtime;\n }", "public boolean endGame(Player p) {\r\n int points = 0;\r\n int pointsteamMate = 0;\r\n for (int i = 0; i < players.size(); i++) {\r\n Player aux = players.get(i);\r\n if (p.getTeam() != aux.getTeam()) {\r\n points += aux.getDominoPoints();\r\n } else {\r\n pointsteamMate += aux.getDominoPoints();\r\n }\r\n }\r\n if (pointsteamMate > points) {\r\n points = pointsteamMate;\r\n }\r\n p.sumPoints(points);\r\n createNewGame();\r\n return p.getGameScore() >= maxPoints;\r\n }", "public void endOfTurn();", "public void checkEndGame() {\n\t\tint total = 0;\n\t\tint total2 = 0;\n\t\tfor (int i = 0; i < 6; i++) {\n\t\t\ttotal += board[i];\n\t\t}\n\t\tfor (int i = 7; i < 13; i++) {\n\t\t\ttotal2 += board[i];\n\t\t}\n\n\t\tif (total == 0 || total2 == 0) {\n\t\t\tgameOver = true;\n\t\t}\n\t}", "public void roundEnded() {\n\t\t\n\t\t// Deduct a life from the currently active player.\n\t\t// Increment the current round number by 1.\n\t\tdeductLife();\n\t\tincrementCurrentRoundNumber();\n\t\t\n\t\t// Switch which player is now active. \n\t\tswitchPlayer();\n\t}", "public boolean checkForEndgame() {\n\t\tCalculatePossibleMoves(true);\n\t\tint blackMoves = getNumberOfPossibleMoves();\n\t\tCalculatePossibleMoves(false);\n\t\tint redMoves = getNumberOfPossibleMoves();\n\t\t\n\t\tif (blackMoves == 0 && redMoves == 0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean isTeamAWinner(BattleFactory factory) {\r\n\t\tBattle battle = factory.generateBattle();\r\n\t\tdo {\r\n\t\t\tBattleAction action = battle.nextAction();\r\n\t\t\tif (action instanceof ActionFinish) {\r\n\t\t\t\tif (((ActionFinish) action).teamAVictor) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (!battle.isOver());\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isIsTeamMatch() {\n\t\treturn _esfTournament.isIsTeamMatch();\n\t}", "public boolean isGameOver() {\n if (!isFirstTurn) {\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS||state.score().totalPoints(TeamId.TEAM_2)>=Jass.WINNING_POINTS) {\n return true;\n }\n else {\n return false;\n }\n } \n else {return false;}\n }", "boolean endOfGame() {\n return false;\n }", "@Test\n public void shoudBeFinishedGameIfNotNewGameWasStarted() {\n\n boolean finishedGame = true ;\n boolean result = scoreService.isEndGame() ;\n assertThat( finishedGame, is(result ) ) ;\n }", "private void whichPlayerHasTurn() throws PlayerOutOfTurn {\n if (test.equals(lastPicked)) {\n throw (new PlayerOutOfTurn());\n }\n }", "public static void checkTurnEnd(){\n\t\tboolean end = true;\n\t\tfor (int i = 0; i < heroList.length && end; i++) {\n\t\t\t\n\t\t\tif (heroList[i].isAlive()){\n\t\t\t\tif (heroList[i].getOtherAction()){\n\t\t\t\t\tend = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (checkVictory()) {\n\t\t\tinBattle = false;\n\t\t\t//screenNumber = ID_POST_BATTLE_CUTSCENE;\n\t\t\t//gui.setScreenID(screenNumber);\n\t\t\tscreenNumber = ID_POST_BATTLE_CUTSCENE;\n\t\t\tCutscene.loadCutscene(player.getCurLevel(), false);\n\t\t\tgui.setScreenID(screenNumber);\n\t\t\tgui.initializeCutscene();\n\t\t\tplayer.setCurLevel(player.getCurLevel()+1);\n\t\t}\n\t\t\n\t\tif (end) {\n\t\t\tai.play();\n\t\t\tgui.setEnemyPath(ai.getMoveCommands());\n\t\t\t\n\t\t\ttotalEnemyAttacks = 0;\n\t\t\tcurEnemyAttacker = -1;\n\t\t\t\n\t\t\tfor (int i = 0; i < enemyList.length; i++){\n\t\t\t\t\n\t\t\t\tif (ai.getAttackCommands(i) != null){\n\t\t\t\t\ttotalEnemyAttacks++;\n\t\t\t\t\t\n\t\t\t\t\tif (curEnemyAttacker == -1){\n\t\t\t\t\t\tcurEnemyAttacker = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (totalEnemyAttacks > 0){\n\t\t\t\tgui.setEnemyHasAttackCommand(true);\n\t\t\t\tscreenNumber = ID_POST_BATTLE_CUTSCENE;\n\t\t\t\tisEnemyAttacking = true;\n\t\t\t\t//gui.setScreenID(screenNumber);\n\t\t\t\tString message = ((Enemy)enemyList[curEnemyAttacker]).getEnemyType() + \" did \" + ai.getAttackCommandsDamage(curEnemyAttacker) + \" damage to \" + ((Hero)ai.getAttackCommands(curEnemyAttacker)).getName() + \"!\";\n\t\t\t\tCutscene.loadAttackCutscene(((Enemy)enemyList[curEnemyAttacker]).getEnemyID() * -1 - 1, ai.getAttackCommands(curEnemyAttacker).getUnitID(), message, map.getTileNumber(enemyList[curEnemyAttacker].getCoordinate()));\n\t\t\t\t\n\t\t\t\tcurEnemyAttack = 1;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tplayer.resetAllHeroes();\n\t\t\t}\n\n\t\t}\n\t}", "protected boolean isFinished() {\n\n \tif(weAreDoneSenor == true) {\n\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n \t\n }", "public boolean canEndTurn(){\n\t\treturn moved;\n\n\t}", "Boolean checkEndGame() {\n for (WarPlayer player : players) {\n if (player.getHand().size() == 0)\n return true;\n }\n return false;\n }", "@Test\n public void shouldEndGameBeFalseBeforeStartingGame() {\n boolean expResult = false ;\n boolean result = scoreService.isEndMatch() ;\n assertEquals(expResult, result) ;\n }", "public boolean hasFinished(int neighbour){\n\t//System.out.println(\"ATTENTION\");\n\treturn false;\n }", "public boolean isEnded(){\n\t\treturn ended;\n\t}", "public boolean endManche(Player winner) {\n if(numManche != 0) {\n ManchesDTO manche = new ManchesDTO();\n manche.setMatch(new MatchesDTO(match, matchTime));\n if (winner != null) {\n manche.setNumber(numManche);\n PhrasesDTO newPhras = getCurrentPhrase();\n String them = Match.prepareStringForDB(newPhras.getTheme());\n String phras = Match.prepareStringForDB(newPhras.getPhrase());\n manche.setPhrase(new PhrasesDTO(them, phras));\n dbManager.addMancheWinner(winner.getIdPlayer(), manche, winner.getPartialPoints());\n }\n setNumManche(numManche + 1);\n manche.setNumber(numManche);\n if(numManche < 6) {\n PhrasesDTO newPhrase = getCurrentPhrase();\n String theme = Match.prepareStringForDB(newPhrase.getTheme());\n String phrase = Match.prepareStringForDB(newPhrase.getPhrase());\n manche.setPhrase(new PhrasesDTO(theme, phrase));\n calledConsonant = new ArrayList<String>();\n boolean tur = turns.saveMoves(dbManager);\n boolean man = true;\n dbManager.addManche(manche);\n if (man && tur) {\n return true;\n } else\n return false;\n }else\n return false;\n }else\n return true;\n }", "public static void checkResult() {\n\t\tint sum = PlayerBean.PLAYERONE - PlayerBean.PLAYERTWO;\n\n\t\tif (sum == 1 || sum == -2) {\n\t\t\tScoreBean.addWin();\n\t\t\tresult = \"player one wins\";\n\t\t} else {\n\t\t\tScoreBean.addLoss();\n\t\t\tresult = \"player two wins\";\n\t\t}\n\t}", "public void endsGameAndSetsWinner(Player player) {\n this.winner = player.getId(); \n this.gameStarted = false; \n \n }", "public boolean endOfGame() {\n\t\tfor(CardGamePlayer player : playerList) {\n\t\t\tif(gameStarted && player.getNumOfCards() == 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isCycleOver(){\n if(playersTurns.isEmpty()) {\n eventListener.addEventObject(new RoundEvent(EventNamesConstants.RoundEnded));\n return true;\n }\n return false;\n }", "public boolean getEndTurn() {\n\t\treturn turnEnd;\n\t}", "public boolean isFinished() {\n\t\tif (gameSituation == UNFINISHED) {\n\t\t\treturn false;\n\t\t} // Of if\n\n\t\treturn true;\n\t}", "public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}", "public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }", "public void endRound() {\n\t\tif (roundNumber>maxRounds) {\n\t\t\tSystem.out.println(\"hae �etta er MAX ROUNDS! LEIKUR �TTI A� VERA B�INN\");\n\t\t\tendGame();\n\t\t} else {\n\t\t\tSystem.out.println(\"�ETTA er r�tt leikur er ekki b�inn round: \"+ getCurrentRound());\n\t\t\tmatchResults = core.simulateNextRound();\n\t\t\tSystem.out.println(\"B�INN A� SIMULATA ROUND \");\n\t\t\tFootballPlayer[] players = core.getAllFootballPlayers();\n\t\t\tfor (int i = 0; i<players.length; i++) {\n\t\t\t\tStatistics[] stats = players[i].getStats();\n\t\t\t\tSystem.out.println(players[i].getName() + \" \" + stats[1].getGoals());\n\t\t\t}\n\t\t\tcalculatePoints();\n\t\t\troundNumber++;\n\t\t}\n\t\tusers.get(0).setTransferFinished(false);\n\t\tusers.get(1).setTransferFinished(false);\n\t}", "@Override\n\tpublic boolean endGame() {\t\n\t\tif (playerScore[0] == MAX_SCORE || playerScore[1] == MAX_SCORE) return true;\n\t\treturn false;\n\t}", "public boolean endGame(String nom){\n \tif((nbFantomes==0 || players.size()==0) ||\n \t (gameMode==2 && (!live(nom) || winOfJuggernaut())))\n \t return true;\n \treturn false;\n }", "public boolean hasEnded() {\n\t\treturn ended;\n\t}", "boolean hasTeam();", "boolean hasVotingEndTime();", "public boolean canEndTurn() {\n\t\tif (hasMoved || hasCaptured) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean gameContinue() {\n for (Player player : players) {\n if (player.getPoints() > END_GAME_POINTS) {\n return false;\n }\n }\n return true;\n }", "void finishMatch() {\n\t\tint playerResult = ParticipantResult.MATCH_RESULT_NONE;\n\t\tint opponentResult = ParticipantResult.MATCH_RESULT_NONE;\n\n\t\tif (!GameActivity.gameMachine.player.isAlive()) {\n\t\t\tLayoutHelper.showResult(resultTextView, false);\n\t\t\tplayerResult = ParticipantResult.MATCH_RESULT_LOSS;\n\t\t\topponentResult = ParticipantResult.MATCH_RESULT_WIN;\n\t\t} else if (!GameActivity.gameMachine.opponent.isAlive()) {\n\t\t\tLayoutHelper.showResult(resultTextView, true);\n\t\t\tplayerResult = ParticipantResult.MATCH_RESULT_WIN;\n\t\t\topponentResult = ParticipantResult.MATCH_RESULT_LOSS;\n\t\t}\n\n\t\tArrayList<ParticipantResult> results = new ArrayList<ParticipantResult>();\n\n\t\tresults.add(new ParticipantResult(GPGHelper.getMyId(\n\t\t\t\tgameHelper.getApiClient(), match), playerResult,\n\t\t\t\tParticipantResult.PLACING_UNINITIALIZED));\n\n\t\tresults.add(new ParticipantResult(GPGHelper.getOpponentId(\n\t\t\t\tgameHelper.getApiClient(), match), opponentResult,\n\t\t\t\tParticipantResult.PLACING_UNINITIALIZED));\n\n\t\tif (match.getStatus() == TurnBasedMatch.MATCH_STATUS_ACTIVE) {\n\t\t\tif (match.getTurnStatus() == TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN) {\n\t\t\t\tGames.TurnBasedMultiplayer.finishMatch(\n\t\t\t\t\t\tgameHelper.getApiClient(), match.getMatchId(),\n\t\t\t\t\t\twriteGameState(match), results);\n\t\t\t\tturnUsed = true;\n\t\t\t\tremoveNotification();\n\t\t\t}\n\t\t} else if (match.getStatus() == TurnBasedMatch.MATCH_STATUS_COMPLETE) {\n\t\t\tif (match.getTurnStatus() == TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN) {\n\t\t\t\tGames.TurnBasedMultiplayer.finishMatch(\n\t\t\t\t\t\tgameHelper.getApiClient(), match.getMatchId());\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void shouldFinishedGameBeFalseWhenStartingGame() {\n boolean expResult = true ;\n boolean result = scoreService.isEndGame() ;\n assertEquals(expResult, result) ;\n }", "private void finaliseGame() {\r\n gameOn = false;\r\n if(bestAnswer==null) {\r\n target.reply(\"Nobody got an answer. The best answer was: \" + CountdownSolver.Solve( sourceNumbers, targetNumber ));\r\n return;\r\n }\r\n if( bestAnswer.getAnswer() == bestPossibleAnswer ) {\r\n String reply = Constants.BOLD + bestAnswer.getUsername() + Constants.BOLD\r\n + \" has won with \" + bestAnswer.getAnswer() + \"!\";\r\n if( bestPossibleAnswer!=targetNumber)\r\n reply+=\" This was the best possible answer.\";\r\n target.reply(reply);\r\n } else {\r\n target.reply( \"The best answer was \" + bestAnswer.getAnswer() + \" by \" + bestAnswer.getUsername() + \".\"\r\n + \" But the best possible answer was: \" + CountdownSolver.Solve( sourceNumbers, targetNumber ));\r\n }\r\n bestAnswer=null;\r\n runner.stop();\r\n }", "public boolean hasFutureGames() {\n /*\n if (this.games.isEmpty()) {\n\n //Pull games from DB\n List<Game> refereeGames = EntityManager.getInstance().getRefereeGames(this);\n for (Game game : refereeGames) {\n if (!this.games.contains(game)) {\n this.games.add(game);\n }\n }\n }\n */\n HashMap<String, Boolean> gamesStatus = EntityManager.getInstance().getRefereeGamesStatus(this);\n for (Map.Entry<String, Boolean> hasGameFinished : gamesStatus.entrySet()) {\n if (!hasGameFinished.getValue()) {\n return true;\n }\n }\n for (Game game : getGames()) {\n if (!game.hasFinished()) {\n return true;\n }\n }\n return false;\n }", "public boolean isJourneyEnded(){\n\t\treturn journeyEnded;\n\t}", "public void checkEndGame() {\n\t\t\n\t\tboolean gameFinished = false;\n\t\t//boolean playerOne = false;\n\t\t//boolean playerTwo = false;\n\t\t\n\t\t\n\t\tif (bucket[13].getnumOfRocks() == 0 && bucket[12].getnumOfRocks() == 0 && bucket[11].getnumOfRocks() == 0\n\t\t\t\t&& bucket[10].getnumOfRocks() == 0 && bucket[9].getnumOfRocks() == 0\n\t\t\t\t&& bucket[8].getnumOfRocks() == 0) {\n\n\t\t\tint left = bucket[6].getnumOfRocks() + bucket[5].getnumOfRocks() + bucket[4].getnumOfRocks()\n\t\t\t\t\t+ bucket[3].getnumOfRocks() + bucket[2].getnumOfRocks() + bucket[1].getnumOfRocks()\n\t\t\t\t\t+ bucket[0].getnumOfRocks();\n\n\t\t\tbucket[0].setnumOfRocks(left, c);\n\t\t\tbucket[6].setnumOfRocks(0, c);\n\t\t\tbucket[5].setnumOfRocks(0, c);\n\t\t\tbucket[4].setnumOfRocks(0, c);\n\t\t\tbucket[3].setnumOfRocks(0, c);\n\t\t\tbucket[2].setnumOfRocks(0, c);\n\t\t\tbucket[1].setnumOfRocks(0, c);\n\t\t\t\n\t\t\tgameFinished = true;\n\t\t}\n\n\t\tif (bucket[1].getnumOfRocks() == 0 && bucket[2].getnumOfRocks() == 0 && bucket[3].getnumOfRocks() == 0\n\t\t\t\t&& bucket[4].getnumOfRocks() == 0 && bucket[5].getnumOfRocks() == 0 && bucket[6].getnumOfRocks() == 0) {\n\n\t\t\tint right = bucket[13].getnumOfRocks() + bucket[12].getnumOfRocks() + bucket[11].getnumOfRocks();\n\t\t\tright = right + bucket[10].getnumOfRocks() + bucket[9].getnumOfRocks() + bucket[8].getnumOfRocks()\n\t\t\t\t\t+ bucket[7].getnumOfRocks();\n\n\t\t\tbucket[7].setnumOfRocks(right, c);\n\t\t\tbucket[13].setnumOfRocks(0, c);\n\t\t\tbucket[12].setnumOfRocks(0, c);\n\t\t\tbucket[11].setnumOfRocks(0, c);\n\t\t\tbucket[10].setnumOfRocks(0, c);\n\t\t\tbucket[9].setnumOfRocks(0, c);\n\t\t\tbucket[8].setnumOfRocks(0, c);\n\n\t\t\tgameFinished = true;\n\t\t}\n\t\t\n\t\t\n\t\tif(gameFinished==true){\n\t\t\tif(bucket[7].getnumOfRocks()<bucket[0].getnumOfRocks()){\n\t\t\t\tplayerOne=true;\n\t\t\t}else{\n\t\t\t\tplayerTwo=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*if(playerOne==true){\n\t\t\tSystem.out.println(\"Player A won\");\n\t\t}\n\t\tif(playerTwo == true){\n\t\t\tSystem.out.println(\"Player B won\");\n\t\t}\n\t\t */\n\t\t\n\t}", "private void checkEndGame() {\n if (field.getStackSize() == (field.getPegCount() - 1)) {\n endGame = true;\n }\n }", "public void endOfTurn() {\n if (playerInTurn.equals(Player.RED)) {\n playerInTurn = Player.BLUE;\n observers.turnEnds(playerInTurn, age);\n controlStrategy.playRound(this);\n return;\n }\n\n // If blue is in turn, change player in turn to red and do end-of-round processing.\n playerInTurn = Player.RED;\n\n // Calculate the age of the game in the next round.\n age = ageStrategy.calculateAge(age);\n\n // Restore the move count of all the units.\n for (Position p : world.getUnitPositions()) {\n world.getUnitAt(p).restoreMoveCount();\n }\n\n // For each city, add 6 to the current amount of production, and produce as many units as it can afford.\n for (Position p : world.getCityPositions()) {\n ModifiableCity city = world.getCityAt(p);\n\n workForceStrategy.gatherFoodAndProduction(world, p);\n\n populationStrategy.populationGrowth(world, p);\n\n // produce units!\n city.produceUnits(world, p, observers);\n }\n // Add to the counter of rounds played in the game.\n roundsPlayed++;\n\n observers.turnEnds(playerInTurn, age);\n\n controlStrategy.playRound(this);\n\n }", "@Test\n public void endGameDetectionTrue() {\n logic.setDirection(1);\n for (int i = 0; i < 100; i++) {\n logic.eatFoodForTesting();\n logic.gameLogic();\n }\n assertFalse(logic.gameLogic());\n }", "private void checkResults() {\n\t\tif (isOver()) {\n\t\t\tfor (GameListener gameListener : gameListeners) {\n\t\t\t\tgameListener.gameOverCallback();\n\t\t\t}\n\t\t}\n\t}", "boolean isGameSpedUp();", "@Override\n public boolean isCompleted() {\n return time.secondsPassed==finishLevel;\n }", "private void endGame(){\n if (winner){\n Toast.makeText(this, \"Fin del Juego: Tu ganas\", Toast.LENGTH_SHORT).show();\n finish();\n } else {\n Toast.makeText(this, \"Fin del Juego: Tu pierdes\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "public void run() {\r\n for(int i = group; i < 64; i += 4) {\r\n if(!m_teams[i].isOut()) {\r\n setSurvivingTeam(m_teams[i]);\r\n return;\r\n }\r\n }\r\n\r\n m_botAction.sendArenaMessage(\"No one won for Base \" + (group + 1));\r\n }", "boolean hasVisitEndtime();", "boolean hasVisitEndtime();", "public synchronized boolean completeMission() {\n //determine mission success / fail\n int numFails = 0;\n for (boolean choice : teamMemberChoices.values()) {\n if (!choice) {\n numFails++;\n }\n }\n if (numFails == 1) {\n sendPublicMessage(\"*The mission was a failure! There was 1 fail.*\");\n } else if (numFails > 1) {\n sendPublicMessage(\"*The mission was a failure! There were \" + numFails + \" fails.*\");\n } else {\n sendPublicMessage(\"*The mission was a success!*\");\n }\n\n CompleteMissionState completeMissionState = doMissionState.completeMission(numFails == 0);\n if (completeMissionState.isGameOver()) {\n //report the winner\n if (completeMissionState.didSpiesWin()) {\n sendPublicMessage(\"*3 missions have failed! Spies win!*\");\n announceSpies();\n sendPublicMessage(\"Thank you for playing!\");\n } else {\n sendPublicMessage(\"*3 missions have succeeded! The Resistance wins!*\");\n announceSpies();\n sendPublicMessage(\"Thank you for playing!\");\n }\n reset();\n return true;\n } else {\n pickTeamState = completeMissionState.getPickTeamState();\n state = State.PICK_TEAM;\n teamSelection = new HashSet<>();\n return false;\n }\n }", "public void gameLoop() {\n while (!d_TournamentEnded) {\n d_CurrentPhase.run();\n }\n }", "public void endGame(boolean emptyEnd){\n\t\t\n\t\tif(emptyEnd){\n\t\t\tArrayList<Integer> opponentStones = new ArrayList<Integer>();\n\t\t\tboolean done = false;\n\t\t\tint turnID = DBCommunicator.requestInt(\"SELECT id from beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + opponent + \"' ORDER BY id DESC\");\n\t\t\tString restQuery = \"\";\n\t\t\tString query = \"SELECT letter_id FROM letterbakjeletter WHERE spel_id = \" + id + \" AND beurt_id = \" + turnID + \" \" + restQuery + \" ORDER BY beurt_id DESC\";\n\t\t\twhile(!done){\n\t\t\t\tint newCharachter = DBCommunicator.requestInt(query);\n\t\t\t\tif(!(newCharachter == 0)){\n\t\t\t\t\topponentStones.add(newCharachter);\n\t\t\t\t\trestQuery += \" AND letter_id <> \" + newCharachter;\n\t\t\t\t\tquery = \"SELECT letter_id FROM letterbakjeletter WHERE spel_id = \" + id + \" AND beurt_id = \" + turnID + \" \" + restQuery + \" ORDER BY beurt_id DESC\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdone = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint totalValue = 0;\n\t\t\tfor(int e : opponentStones){\n\t\t\t\tString letterChar = DBCommunicator.requestData(\"SELECT letterType_karakter FROM letter WHERE id = \" + e + \" AND spel_id = \" + id + \" AND lettertype_letterset_code = 'EN'\");\n\t\t\t\tint letterValue = DBCommunicator.requestInt(\"SELECT waarde FROM lettertype WHERE letterset_code = 'EN' AND karakter = '\" + letterChar + \"'\");\n\t\t\t\ttotalValue += letterValue;\n\t\t\t}\n\t\t\t\n\t\t\tint opTurn = turnID + 2;\n\t\t\tint myTurn = opTurn + 1;\n\t\t\tint opValue = totalValue * -1;\n\t\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES \"\n\t\t\t\t\t+ \"(\" + opTurn + \", \" + id + \", '\" + opponent + \"', \" + opValue + \", 'End'),\"\n\t\t\t\t\t+ \"(\" + myTurn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + totalValue + \", 'End')\");\n\t\t}\n\t\telse{\n\t\t\tint turnID = DBCommunicator.requestInt(\"SELECT id from beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"' ORDER BY id DESC\");\n\t\n\t\t\tint totalValue = 0;\n\t\t\tfor(int e : gameStones){\n\t\t\t\tString letterChar = DBCommunicator.requestData(\"SELECT letterType_karakter FROM letter WHERE id = \" + e + \" AND spel_id = \" + id + \" AND lettertype_letterset_code = 'EN'\");\n\t\t\t\tint letterValue = DBCommunicator.requestInt(\"SELECT waarde FROM lettertype WHERE letterset_code = 'EN' AND karakter = '\" + letterChar + \"'\");\n\t\t\t\ttotalValue += letterValue;\n\t\t\t}\n\t\t\t\n\t\t\tint opTurn = turnID + 1;\n\t\t\tint myTurn = opTurn + 1;\n\t\t\tint myValue = totalValue * -1;\n\t\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES \"\n\t\t\t\t\t+ \"(\" + opTurn + \", \" + id + \", '\" + opponent + \"', \" + totalValue + \", 'End'),\"\n\t\t\t\t\t+ \"(\" + myTurn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + myValue + \", 'End')\");\n\t\t}\n\t}", "public boolean isDone() {\r\n\t\tint count = 0;\r\n\t\t//Checks the movieGuess array for '_' characters. If there are none we can safely assume the player has finished.\r\n\t\tfor(int x = 0; x < movieGuess.length; x++) {\r\n\t\t\tif(movieGuess[x] == '_')\t{\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//used a counter to avoid premature (i.e., before finishing the array traversal) true or false.\r\n\t\tif(count > 0)\r\n\t\t\treturn false;\t\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "public boolean winner(){\n\t\treturn goals1 > goals2;\n\t}", "boolean isPlayerTurn();", "public void end() {\n\t\tSystem.out.print(\"Game ends - \");\n\t\tif (player1.getPoints() > player2.getPoints()) {\n\t\t\tSystem.out.printf(\"%s wins by %d points\\n\", player1.getName(), player1.getPoints()-player2.getPoints());\n\t\t} else if (player1.getPoints() < player2.getPoints()) {\n\t\t\tSystem.out.printf(\"%s wins by %d points\\n\", player2.getName(), player2.getPoints()-player1.getPoints());\n\t\t} else {\n\t\t\tSystem.out.println(\"Game tied\");\n\t\t}\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn (System.currentTimeMillis() > Endtime);\n\t}", "public static String checkEndGame(){\n\t\tif(turn.equals(\"white\") && king.whiteKingCheck == true){\n\t\t\tif(endGame.checkMate(board, \"white\")){\n\t\t\t\tincrementPoints(\"black\");\n\t\t\t\treturn \"Check Mate! Black Wins!\\n Press OK to start new game\";\n\t\t\t}\n\t\t}\n\t\tif(turn.equals(\"black\") && king.blackKingCheck == true){\n\t\t\tif(endGame.checkMate(board, \"black\")){\n\t\t\t\tincrementPoints(\"white\");\n\t\t\t\treturn \"Check Mate! White Wins!\\n Press OK to start new game\";\n\t\t\t}\n\t\t}\n\t\treturn \"noCheckMate\";\n\t}", "boolean hasEndTime();", "public boolean gameCompleted() {\n\t\tint[] expected = {5,5,5,5,5};\n\t\tif(Arrays.equals(_answeredQuestions, expected)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected boolean processGameEnd(int gameNumber, String whiteName, String blackName, String reason, String result){return false;}", "private boolean checkGameOver() {\n\t\tboolean singlePlayerWon = otherPlayer.getLife() == 0;\n\t\tboolean otherPlayerWon = singlePlayer.getLife() == 0;\n\n\t\tif (singlePlayerWon || otherPlayerWon) {\n\t\t\tthis.singlePlayer.createEndButton(singlePlayerWon);\n\t\t\tthis.singlePlayer.onGameOver();\n\t\t\tthis.otherPlayer.onGameOver();\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isGameOver() {\n if(gameDescriptor.getTotalCycles() < roundNumber){\n eventListener.addEventObject(new RoundEvent(EventNamesConstants.GameFinished));\n return true;\n }\n return false;\n }", "public boolean endOfGame() {\n\t\tfor (int i = 0; i < getNumOfPlayers(); i++) {\n\t\t\tif (this.getPlayerList().get(i).getCardsInHand().isEmpty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}" ]
[ "0.724352", "0.6938412", "0.6921382", "0.690628", "0.68551964", "0.6764565", "0.6752304", "0.6702566", "0.66808265", "0.66635764", "0.66447085", "0.6642593", "0.66379297", "0.6625381", "0.66185117", "0.65884763", "0.6569156", "0.65592855", "0.64850515", "0.6484701", "0.6472163", "0.6468255", "0.6454494", "0.64312065", "0.64291465", "0.6424144", "0.64200234", "0.63990307", "0.63875455", "0.63865703", "0.6376091", "0.6320121", "0.6316719", "0.62892866", "0.62812704", "0.6270116", "0.6268726", "0.6262837", "0.6254388", "0.6248906", "0.6246291", "0.6246185", "0.62451494", "0.6243454", "0.6241767", "0.6213169", "0.6201137", "0.6197667", "0.6187236", "0.6183678", "0.6182974", "0.6182863", "0.61808753", "0.61776334", "0.61674166", "0.6163699", "0.6161599", "0.61492157", "0.61446726", "0.61393785", "0.61352277", "0.6135193", "0.6127399", "0.6120844", "0.6103058", "0.60964584", "0.60890985", "0.6087324", "0.6084821", "0.608242", "0.60820025", "0.6079923", "0.60796905", "0.60740584", "0.6066826", "0.60659754", "0.6054696", "0.6050227", "0.60446435", "0.6044426", "0.6039272", "0.6038954", "0.6032401", "0.6032195", "0.6032195", "0.6031653", "0.6029029", "0.6024272", "0.60220355", "0.60159504", "0.6013455", "0.6008994", "0.60083103", "0.6003233", "0.60006917", "0.59918296", "0.598385", "0.5983781", "0.5979063", "0.597868" ]
0.69021726
4
Displaying players to the user based on date
public boolean displayPlayersOfTournament(LocalDate date) throws Exception { Connection con=ConnectionManager.getConnection(); PreparedStatement pstmt = con.prepareStatement("select tournament.name,tournament.start_date,tournament.end_date,players.name from players,tournament where ? BETWEEN tournament.start_date AND tournament.end_date and (players.final_result='Win' and players.tournament_id=tournament.id)"); pstmt.setDate(1,Date.valueOf(date)); ResultSet rs=pstmt.executeQuery(); if(rs.next()==false) { con.close(); return false; } else { System.out.println("Tournament StartDate EndDate WinnerName"); while(rs.next()) { System.out.printf("%-20s %15s %15s %15s %n",rs.getString(1),rs.getDate(2).toLocalDate(),rs.getDate(3).toLocalDate(),rs.getString(4)); } con.close(); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String showTasksOnDate(LocalDate date) {\n int count = 1;\n Optional<ArrayList<Timeable>> current = Optional.ofNullable(dateAndTimeables.get(date));\n if (current.isPresent()) {\n StringBuilder result = new StringBuilder(\"Here are the tasks on this date: \");\n for (Timeable d: current.get()) {\n result.append(\"\\n\").append(count++).append(\". \").append(d);\n }\n return result.toString();\n } else {\n return \"No tasks on this date!\";\n }\n }", "private void displayPlayers() {\n\t\tfor (Player p: game.getPlayers()) {\n\t\t\tview.updateDisplay(p.getId(), p.getDeck().getNumberOfCards());\n\t\t}\n\t}", "public String viewByDate(LocalDate date) {\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"E, MMM dd YYYY\");\n\n\t\tString str = formatter.format(date);\n\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\t\t\tformatter = DateTimeFormatter.ofPattern(\"E, MMM dd YYYY\");\n\t\t\tstr = formatter.format(date);\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tstr = str + \"\\n\\n\" + \"\\t\" + e.sTime + \" - \" + e.eTime + \": \" + e.name;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstr = str + \"\\n\\n\"+\":: No Event Scheduled Yet ::\";\n\t\t}\n\n\t\treturn str;\n\n\t}", "@Override\r\n\tpublic void showDoTimeMessage(Player player) {\n\t}", "public String showPlayList(){\n String dataPlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n thePlayLists[i].uptadeDurationFormat(thePlayLists[i].uptadeDuration());\n thePlayLists[i].changeGender(thePlayLists[i].uptadeGender());\n dataPlayList += thePlayLists[i].showDatePlayList();\n }\n }\n return dataPlayList;\n }", "void showWaitingPlayerList(List<String> waitingPlayerUsernames);", "public void actualDateSwitchAction() {\n\t\tdateToDisplay = Utils.removeTime(Calendar.getInstance().getTime());\n\t\tshowAnimalList(dateToDisplay);\n\t\tanimalsListPanel.switchToToday();\n\t}", "public void sortByDate(){\n output.setText(manager.display(true, \"date\"));\n }", "public void print() {\r\n System.out.print( getPlayer1Id() + \", \" );\r\n System.out.print( getPlayer2Id() + \", \");\r\n System.out.print(getDateYear() + \"-\" + getDateMonth() + \"-\" + getDateDay() + \", \");\r\n System.out.print( getTournament() + \", \");\r\n System.out.print(score + \", \");\r\n System.out.print(\"Winner: \" + winner);\r\n System.out.println();\r\n }", "@SuppressWarnings(\"deprecation\")\n private void update(Player player) {\n Team team = teams.getTeam(player);\n\n if (team == null) {\n for (Player online : game.getPlayers()) {\n player.showPlayer(online);\n online.showPlayer(player);\n }\n return;\n }\n\n for (Player online : game.getPlayers()) {\n if (team.hasPlayer(online)) {\n player.hidePlayer(online);\n online.hidePlayer(player);\n } else {\n player.showPlayer(online);\n online.showPlayer(player);\n }\n }\n }", "public void showResult(NimPlayer player1, NimPlayer player2) {\n String g1 = \"game\";\n String g2 = \"game\";\n\n // check the sigular\n if (player1.getWinTimes() >= 2) {\n g1 = \"games\";\n }\n if (player2.getWinTimes() >= 2) {\n g2 = \"games\";\n }\n System.out.println(player1.getName() + \" won \" +\n player1.getWinTimes() + \" \" + g1 + \" out of \" +\n player1.getTotalTimes() + \" played\");\n System.out.println(player2.getName() + \" won \" +\n player2.getWinTimes() + \" \" + g2 + \" out of \" +\n player2.getTotalTimes() + \" played\");\n }", "private void showDateDialog() {\n\t\tDateDetailInfo[] dateInfo = DateDetailInfo.getDateDetailInfo();\n\t\tboolean noDate = (dateInfo == null);\n\t\tboolean allPermanent = (null != dateInfo)\n\t\t\t\t&& (dateInfo.length == 1)\n\t\t\t\t&& (dateInfo[0] != null)\n\t\t\t\t&& (dateInfo[0].deadText != null)\n\t\t\t\t&& (dateInfo[0].deadText.equals(this.getResources().getString(\n\t\t\t\t\t\tR.string.package_detail_forever)));\n\t\tif (DateDetailInfo.dayOffMax > 0 && (!(noDate || allPermanent))) {\n\t\t\tinitDateDialog();\n\t\t\tDateDialog dialog = new DateDialog(this);\n\t\t\tdialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\n\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\tdialog.setListener(new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tstartGetTicketActivity();\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (null != DateDialog.mListStr && DateDialog.mListStr.length > 1) {\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t}\n\t}", "public void doBriefing() {\n // Get all class sessions\n List<Models.Session> sessions = em.createNativeQuery(\"select s.* from session s, classparticipant cpa, participant p where s.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ? and current_date = date(s.starttime) order by s.starttime asc\", Models.Session.class).setParameter(1, user.getUserid()).getResultList();\n\n // If no data\n if (sessions.isEmpty()) {\n replyChat(\"It seems that you're free today!\");\n }\n\n // To format dates\n DateTimeFormatter timeFmt = DateTimeFormat.forPattern(\"h:mm a'\");\n DateTimeFormatter dateFmt = DateTimeFormat.forPattern(\"MMM d', ' YYYY\");\n \n String output = addStats(new DateTime().toString(dateFmt), \"Currently \" + new DateTime().toString(timeFmt));\n\n output += addChat(\"Hey there! You have \" + sessions.size() + \" classes today\");\n\n // For each session\n for (Models.Session session : sessions) {\n\n Models.Class classroom = session.getClassid();\n\n String startTime = new DateTime(session.getStarttime()).toString(timeFmt);\n String endTime = new DateTime(session.getEndtime()).toString(timeFmt);\n\n String status = \"\";\n // If already started\n if (new DateTime().isAfter(new DateTime(session.getStarttime()))) {\n\n // If already ended\n if (new DateTime().isAfter(new DateTime(session.getEndtime()))) {\n status = \"PAST\";\n } // Havent ended\n else {\n status = \"ONGOING\";\n }\n } // Havent started\n else {\n status = \"UPCOMING\";\n }\n\n output += \"<div class='result display' onclick=\\\"window.location.href='SessionDetails?id=\" + classroom.getClassid() + \"&code=\" + session.getSessionid() + \"'\\\">\\n\"\n + \" <div class='top'>\\n\"\n + \" <img class='icon' src='https://www.flaticon.com/svg/static/icons/svg/717/717874.svg'>\\n\"\n + \" <div class='text'>\\n\"\n + \" <a class='type'>\" + status + \"</a>\\n\"\n + \" <a class='name'>\" + classroom.getClasstitle() + \"</a>\\n\"\n + \" <a class='subname'>\" + startTime + \" - \" + endTime + \"</a>\\n\"\n + \" </div>\\n\"\n + \" </div>\\n\"\n + \" </div>\";\n }\n\n servlet.putInJsp(\"result\", output);\n }", "@GetMapping(\"/bestplayers\")\n public String best(Map<String, Object> model) {\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, -5);\n Date date = calendar.getTime();\n System.out.println(date.toString());\n List<Match> matchs = matchRepo.findByMatchTimeAfter(date);\n\n\n Map<Chessplayer, Double> result = matchs.stream() //преобразуем в стрим\n // .map(Match::getMatchDetails) //мапа деталий матчей\n .flatMap(Match -> Match.getMatchDetails().stream()) //мапа деталей матча\n\n .collect(Collectors.groupingBy(MatchDetails::getChessplayer, Collectors.summingDouble(MatchDetails::getRatingChange)))\n\n .entrySet()\n .stream()\n .sorted(Map.Entry.<Chessplayer, Double>comparingByValue().reversed())\n .limit(5)\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));\n\n model.put(\"players\", result);\n\n return \"bestPlayers\";\n\n }", "@PermitAll\n public void cmdShowSchedule(User teller) {\n command.sendQuietly(\"qtell {0} {1}\", teller, \"Current Schedule:\\\\n\");\n Collection<Game> games = tournamentService.findAllGames();\n for (Game game : games) {\n int boardNum = game.boardNumber;\n String whiteStatus = (game.whitePlayer.isOnline()) ? \"\" : \" ?\";\n String whitePlayer = game.whitePlayer.getHandle();\n String blackStatus = (game.blackPlayer.isOnline()) ? \"\" : \" ?\";\n String blackPlayer = game.blackPlayer.getHandle();\n String gameStatus = game.getStatusString();\n String msg = String.format(\"Board %2d: %18s%2s %18s%2s %s\", boardNum, whitePlayer, whiteStatus, blackPlayer, blackStatus, gameStatus);\n command.sendQuietly(\"qtell {0} {1}\", teller, msg);\n }\n command.sendQuietly(\"qtell {0}\", teller);\n }", "public void displayDetails(List<String> players, int np, int rID) {\n Platform.runLater(() -> {\n roomID.setText(\"Rood ID: \" + rID);\n playerNumber.setText(\"Players: \" + players.size() + \"/\" + np);\n playerList.getChildren().clear();\n for (String username : players) {\n Text usernameText = new Text(username);\n usernameText.getStyleClass().add(\"light-text\");\n playerList.getChildren().add(usernameText);\n }\n });\n }", "public void cmdShowPlayer(User teller, Player player) {\n Formatter msg = new Formatter();\n Integer rating = player.ratings().get(USCL_RATING);\n String ratingStr = (rating == null || rating < 0) ? \"Unavailable\" : rating.toString();\n msg.format(\" Player %s:\\\\n\", player);\n msg.format(\" %6s: %s\\\\n\", \"Name\", player.getRealName());\n msg.format(\" %6s: %s\\\\n\", \"Title\", player.getTitles());\n msg.format(\" %6s: %s\\\\n\", \"Rating\", ratingStr);\n msg.format(\" %6s: %s\\\\n\", \"Team\", player.getTeam());\n msg.format(\" %6s: %s\\\\n\", \"Web\", player.getWebsite());\n command.qtell(teller, msg);\n }", "private void setInfoPlayers() {\n\n\t\t//PLAYER 1\n\t\tlblPlayer1name.setText(players.get(0).getName());\n\t\tlblCashP1.setText(\"\" + players.get(0).getMoney());\n\t\tlblBuildP1.setText(\"\" + players.get(0).getNumberBuildings());\n\t\tlblPropP1.setText(\"\" + players.get(0).getOwnproperties().size());\n\t\tlblPosP1.setText(\"\"+ players.get(0).getPosition());\n\n\t\t//PLAYER 2\n\t\tlblPlayer2name.setText(players.get(1).getName());\n\t\tlblCashP2.setText(\"\" + players.get(1).getMoney());\n\t\tlblBuildP2.setText(\"\" + players.get(1).getNumberBuildings());\n\t\tlblPropP2.setText(\"\" + players.get(1).getOwnproperties().size());\n\t\tlblPosP2.setText(\"\"+ players.get(1).getPosition());\n\t\t\n\t\tif(players.size() > 2){\n\t\t\t//PLAYER 3\n\t\t\tlblPlayerName3.setText(players.get(2).getName());\n\t\t\tlblCashP3.setText(\"\" + players.get(2).getMoney());\n\t\t\tlblBuildP3.setText(\"\" + players.get(2).getNumberBuildings());\n\t\t\tlblPropP3.setText(\"\" + players.get(2).getOwnproperties().size());\n\t\t\tlblPosP3.setText(\"\"+ players.get(2).getPosition());\n\n\t\t\tif(players.size() > 3){\n\t\t\t\t//PLAYER 4\n\t\t\t\tlblPlayerName4.setText(players.get(3).getName());\n\t\t\t\tlblCashP4.setText(\"\" + players.get(3).getMoney());\n\t\t\t\tlblBuildP4.setText(\"\" + players.get(3).getNumberBuildings());\n\t\t\t\tlblPropP4.setText(\"\" + players.get(3).getOwnproperties().size());\n\t\t\t\tlblPosP4.setText(\"\"+ players.get(3).getPosition());\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void verTurnosDia(Date d){\n this.listaTurnosDia= this.controlador.listarTurnos(d);\n //guardo en el \n this.listaTurnos.setListData(this.listaTurnosDia);\n }", "public void displayDate() {\n\t\tSystem.out.print(year + \"/\" + month + \"/\" + day);\r\n\t}", "public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }", "private static void displayUserTeam() {\n\t\tif (game.getCurrentRound()==1) {\n\t\t\tfor (int i = 0; i<11; i++) {\n\t\t\t\tplayerNameArray[i].setText(\"Name\");\n\t\t\t\timageArray[i].setIcon(MainGui.getShirt(\"noTeam\"));\n\t\t\t\tbuttonArray[i].setText(\"+\");\n\t\t\t}\n\t\t}\n\t}", "public void displayPlayerWinnings()\n {\n for(int card = 0; card < playerCardsWon; card++)\n {\n System.out.println(playerWinnings[card].toString());\n }\n }", "public List<Player> formatPlayers(ResultSet rs) {\n\t\tList<Player> pList = new ArrayList<Player>();\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlayer p = new Player(rs.getString(3), rs.getString(4), rs.getDate(5), rs.getInt(6));\n\t\t\t\tpList.add(p);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn pList;\n\t}", "private String getPlayersInfo(List<LightPlayer> players, String name){\n StringBuilder stringBuilder = new StringBuilder();\n for (LightPlayer player : players){\n stringBuilder.append(player.getName());\n if (player.getName().equals(name)) {\n stringBuilder.append(\" (you)\");\n }\n\n stringBuilder\n .append(\"\\n\")\n .append(player.getColor().name())\n .append(\" \")\n .append(\"[\")\n .append(player.getColor().name().toCharArray()[0])\n .append(\"]\")\n .append(\"\\n\");\n\n if (player.getCard() != null) {\n stringBuilder.append(player.getCard().getName().name());\n }\n\n stringBuilder.append(\"\\n\\n\\n\");\n }\n\n return stringBuilder.toString();\n }", "public void timeToChallenger() {\n\n\n String c = null;\n for(PlayerInterface p : onlinePlayers){\n if(p.getNickname().equals(getCurrentTurn().getCurrentPlayer().getNickname())){\n c = p.getWorkerRef().get(0).getColor();\n break;\n }\n }\n notifyCards(getCurrentTurn().getCurrentPlayer().getNickname(), c);\n notifyChoose(cardsChosen, this.getAllGods(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n }", "public void printAllPlayerStats(List<Player> players);", "public void printDetailedPlayer(Player player);", "void showDate()\n {\n Date d=new Date();\n SimpleDateFormat s=new SimpleDateFormat(\"dd-MM-yyyy\");\n date.setText(s.format(d));\n }", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "public void startNewTurn(){\n currentPlayer = players.peek();\n players.add(players.remove());\n view.changeCurrentPlayer(currentPlayer.getName(), currentPlayer.getPlayerDiePath(), numDays);\n currentPlayer.setHasPlayed(false);\n }", "void setVisiblePlayers() {\n\n switch (team1Players) {\n\n case 6:\n\n tvt1p6.setVisibility(View.VISIBLE);\n\n spnPlayer6.setVisibility(View.VISIBLE);\n\n case 5:\n\n tvt1p5.setVisibility(View.VISIBLE);\n\n spnPlayer5.setVisibility(View.VISIBLE);\n\n case 4:\n\n tvt1p4.setVisibility(View.VISIBLE);\n\n spnPlayer4.setVisibility(View.VISIBLE);\n\n case 3:\n\n tvt1p3.setVisibility(View.VISIBLE);\n\n spnPlayer3.setVisibility(View.VISIBLE);\n\n case 2:\n\n tvt1p2.setVisibility(View.VISIBLE);\n\n spnPlayer2.setVisibility(View.VISIBLE);\n\n case 1:\n\n tvt1p1.setVisibility(View.VISIBLE);\n\n spnPlayer1.setVisibility(View.VISIBLE);\n\n break;\n\n }\n\n }", "@Override\n public List<ConnectathonParticipant> getPeopleAttendingOnWednesday() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getPeopleAttendingOnWednesday\");\n }\n\n renderAddPanel = false;\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager() || Role.isLoggedUserMonitor()) {\n\n EntityManager em = EntityManagerService.provideEntityManager();\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND cp.institution = \" +\n \":inInstitution AND wednesdayMeal IS true\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n query.setParameter(IN_INSTITUTION, choosenInstitutionForAdmin);\n return query.getResultList();\n } else {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND wednesdayMeal IS \" +\n \"true\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n return query.getResultList();\n }\n } else {\n selectedInstitution = Institution.getLoggedInInstitution();\n EntityManager em = EntityManagerService.provideEntityManager();\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND cp.institution = \" +\n \":inInstitution AND wednesdayMeal IS true\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n query.setParameter(IN_INSTITUTION, selectedInstitution);\n return query.getResultList();\n }\n }", "public void displayEvent(String name, String club, PrintWriter out, Connection con) {\n\n ResultSet rs = null;\n\n int year = 0;\n int month = 0;\n int day = 0;\n int act_hr = 0;\n int act_min = 0;\n int signUp = 0;\n int max = 0;\n int size = 0;\n int guests = 0;\n //int teams = 0;\n int c_month = 0;\n int c_day = 0;\n int c_year = 0;\n int c_time = 0;\n int c_hr = 0;\n int c_min = 0;\n\n String format = \"\";\n String pairings = \"\";\n String memcost = \"\";\n String gstcost = \"\";\n String itin = \"\";\n String c_ampm = \"\";\n String act_ampm = \"\";\n\n //\n // Locate the event and display the content\n //\n try {\n\n PreparedStatement stmt = con.prepareStatement (\n \"SELECT * FROM events2b \" +\n \"WHERE name = ?\");\n\n stmt.clearParameters(); // clear the parms\n stmt.setString(1, name);\n rs = stmt.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n year = rs.getInt(\"year\");\n month = rs.getInt(\"month\");\n day = rs.getInt(\"day\");\n act_hr = rs.getInt(\"act_hr\");\n act_min = rs.getInt(\"act_min\");\n signUp = rs.getInt(\"signUp\");\n format = rs.getString(\"format\");\n pairings = rs.getString(\"pairings\");\n size = rs.getInt(\"size\");\n max = rs.getInt(\"max\");\n guests = rs.getInt(\"guests\");\n memcost = rs.getString(\"memcost\");\n gstcost = rs.getString(\"gstcost\");\n c_month = rs.getInt(\"c_month\");\n c_day = rs.getInt(\"c_day\");\n c_year = rs.getInt(\"c_year\");\n c_time = rs.getInt(\"c_time\");\n itin = rs.getString(\"itin\");\n\n } else { // name not found - try filtering it\n\n name = SystemUtils.filter(name);\n\n stmt.clearParameters(); // clear the parms\n stmt.setString(1, name);\n rs = stmt.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n year = rs.getInt(\"year\");\n month = rs.getInt(\"month\");\n day = rs.getInt(\"day\");\n act_hr = rs.getInt(\"act_hr\");\n act_min = rs.getInt(\"act_min\");\n signUp = rs.getInt(\"signUp\");\n format = rs.getString(\"format\");\n pairings = rs.getString(\"pairings\");\n size = rs.getInt(\"size\");\n max = rs.getInt(\"max\");\n guests = rs.getInt(\"guests\");\n memcost = rs.getString(\"memcost\");\n gstcost = rs.getString(\"gstcost\");\n c_month = rs.getInt(\"c_month\");\n c_day = rs.getInt(\"c_day\");\n c_year = rs.getInt(\"c_year\");\n c_time = rs.getInt(\"c_time\");\n itin = rs.getString(\"itin\");\n }\n }\n stmt.close();\n\n //\n // Create time values\n //\n act_ampm = \"AM\";\n\n if (act_hr == 0) {\n\n act_hr = 12; // change to 12 AM (midnight)\n\n } else {\n\n if (act_hr == 12) {\n\n act_ampm = \"PM\"; // change to Noon\n }\n }\n if (act_hr > 12) {\n\n act_hr = act_hr - 12;\n act_ampm = \"PM\"; // change to 12 hr clock\n }\n\n c_hr = c_time / 100;\n c_min = c_time - (c_hr * 100);\n\n c_ampm = \"AM\";\n\n if (c_hr == 0) {\n\n c_hr = 12; // change to 12 AM (midnight)\n\n } else {\n\n if (c_hr == 12) {\n\n c_ampm = \"PM\"; // change to Noon\n }\n }\n if (c_hr > 12) {\n\n c_hr = c_hr - 12;\n c_ampm = \"PM\"; // change to 12 hr clock\n }\n\n //\n // Build the html page\n //\n out.println(SystemUtils.HeadTitle(\"Member Event Information\"));\n out.println(\"<body bgcolor=\\\"#FFFFFF\\\" text=\\\"#000000\\\">\");\n out.println(\"<font face=\\\"Arial, Helvetica, Sans-serif\\\"><center>\");\n\n out.println(\"<table border=\\\"0\\\" valign=\\\"top\\\">\"); // table for main page\n out.println(\"<tr><td align=\\\"center\\\" valign=\\\"top\\\">\");\n out.println(\"<font size=\\\"3\\\">\");\n out.println(\"Event: <b>\" + name + \"</b>\");\n out.println(\"</font></td></tr>\");\n out.println(\"<tr><td align=\\\"left\\\">\");\n out.println(\"<font size=\\\"2\\\"><br><br>\");\n out.println(\"<b>Date:</b>&nbsp;&nbsp; \" + month + \"/\" + day + \"/\" + year);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n if (act_min < 10) {\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":0\" + act_min + \" \" + act_ampm);\n } else {\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":\" + act_min + \" \" + act_ampm);\n }\n out.println(\"<br><br>\");\n\n out.println(\"<b>Format:</b>&nbsp;&nbsp; \" + format + \"<br><br>\");\n out.println(\"<b>Pairings by:</b>&nbsp;&nbsp; \" + pairings);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b># of Teams:</b>&nbsp;&nbsp; \" + max);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Team Size:</b>&nbsp;&nbsp; \" + size + \"<br><br>\");\n out.println(\"<b>Guests per Member:</b>&nbsp;&nbsp;\" + guests);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Cost per Guest:</b>&nbsp;&nbsp;\" + gstcost);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Cost per Member:</b>&nbsp;&nbsp;\" + memcost + \"<br><br>\");\n\n if (signUp != 0) { // if members can sign up\n\n if (c_min < 10) {\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":0\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\n } else {\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\n }\n out.println(\"<br><br>\");\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\n\n out.println(\"<br><br>\");\n out.println(\"To register for this event click on the <b>Events</b> tab after closing this window.<br>\");\n\n } else {\n\n if (!club.equals( \"inverness\" )) { // if NOT Inverness\n\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\n out.println(\"<br><br>\");\n }\n out.println(\"Online sign up was not selected for this event.\");\n }\n out.println(\"</font></td></tr>\");\n out.println(\"<tr><td align=\\\"center\\\">\");\n out.println(\"<font size=\\\"2\\\">\");\n //\n // End of HTML page\n //\n out.println(\"<p align=\\\"center\\\"><br><form>\");\n out.println(\"<input type=\\\"button\\\" value=\\\"CLOSE\\\" onClick='self.close();'>\");\n out.println(\"</form></p>\");\n out.println(\"</font></td>\");\n out.println(\"</tr></table>\");\n out.println(\"</center></font></body></html>\");\n out.close();\n\n }\n catch (Exception exc) {\n out.println(SystemUtils.HeadTitle(\"Database Error\"));\n out.println(\"<BODY><CENTER>\");\n out.println(\"<BR><BR><H3>Database Access Error</H3>\");\n out.println(\"<BR><BR>Sorry, we are unable to access the database at this time.\");\n out.println(\"<BR>Error:\" + exc.getMessage());\n out.println(\"<BR><BR>Please try again later.\");\n out.println(\"<BR><BR>If problem persists, contact your golf shop (provide this information).\");\n out.println(\"<br><br><form>\");\n out.println(\"<input type=\\\"button\\\" value=\\\"Close\\\" onClick='self.close();'>\");\n out.println(\"</form>\");\n out.println(\"</center></font></body></html>\");\n out.close();\n }\n }", "List<Player> getViewers();", "private void listPlayer(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tList<Player> players = playerDbUtil.getPlayers();\n\n\t\t// adiciona o jogador no request attribute\n\t\trequest.setAttribute(\"PLAYER_LIST\", players);\n\n\t\t// envia para a jsp:list-players (view)\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"/list-players.jsp\");\n\t\tdispatcher.forward(request, response);\n\t}", "private void handlePlayerConnect(Player player) {\n server.runTaskLater(() -> server.getPaymentLog().checkPendingAccepts(player), 1500, TimeUnit.MILLISECONDS);\n\n if (player.hasPermission(Rank.ADMIN)) {\n server.runTaskLater(() -> server.getDataSource().getCollection(\"archon\", \"dailytop\").count((result, t) -> {\n if (result == null) {\n result = 0L;\n }\n\n List<String> msg = new ArrayList<>();\n msg.add(\"&8\" + Message.BAR);\n msg.add(\"&6[&c&lArchon&6] &aProxy \" + player.getProxy().getId() + \" &7[\" + player.getRegion().name() + \" Network]\");\n msg.add(\"\");\n msg.add(\"&e[Today]\");\n int mostOnlineToday = server.getCache().getCurrentMostOnline();\n int uniqueLoginsToday = (int) (long) result;\n int newPlayersToday = server.getCache().getCurrentNewPlayers();\n\n try (Connection conn = server.getDataSource().getConnection();\n Statement stmt = conn.createStatement()) {\n // 1-day stats\n try (ResultSet rs = stmt.executeQuery(\"SELECT most_online, unique_logins, new_players FROM dailytop WHERE date = (SELECT MAX(date) FROM dailytop)\")) {\n if (rs.next()) {\n int mostOnlineYesterday = rs.getInt(\"most_online\");\n int uniqueLoginsYesterday = rs.getInt(\"unique_logins\");\n int newPlayersYesterday = rs.getInt(\"new_players\");\n\n double mostOnlineChange = Util.getPercentageChange(mostOnlineYesterday, mostOnlineToday);\n String disp = (mostOnlineChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(mostOnlineChange) + \"% &7from yesterday)\";\n msg.add(\"&7* &6Most Online: &d\" + Util.addCommas(mostOnlineToday) + \" \" + disp);\n\n double uniqueLoginsChange = Util.getPercentageChange(uniqueLoginsYesterday, uniqueLoginsToday);\n disp = (uniqueLoginsChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(uniqueLoginsChange) + \"% &7from yesterday)\";\n msg.add(\"&7* &6Unique Logins: &d\" + Util.addCommas(uniqueLoginsToday) + \" \" + disp);\n\n double newPlayersChange = Util.getPercentageChange(newPlayersYesterday, newPlayersToday);\n disp = (newPlayersChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(newPlayersChange) + \"% &7from yesterday)\";\n msg.add(\"&7* &6New Players: &d\" + Util.addCommas(newPlayersToday) + \" \" + disp);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n ZonedDateTime time = ZonedDateTime.now(ZoneId.of(\"America/Los_Angeles\"));\n msg.add(\"&e[From yesterday at this hour: \" + time.format(DateTimeFormatter.ofPattern(\"h a\")) + \" \" + time.getZone().getDisplayName(TextStyle.FULL, Locale.ENGLISH) + \"]\");\n // prev day (same hour) stats\n try (ResultSet rs = stmt.executeQuery(\"SELECT online, most_online, unique_logins, new_players FROM daily_stats WHERE DATE(time) = DATE(SUBDATE(UTC_TIMESTAMP, 1)) && HOUR(time) = HOUR(UTC_TIMESTAMP) LIMIT 1;\")) {\n if (rs.next()) {\n int onlineYesterday = rs.getInt(\"online\");\n int mostOnlineYesterday = rs.getInt(\"most_online\");\n int uniqueLoginsYesterday = rs.getInt(\"unique_logins\");\n int newPlayersYesterday = rs.getInt(\"new_players\");\n\n double currentOnlineChange = Util.getPercentageChange(onlineYesterday, server.getOnlineCount());\n String disp = (currentOnlineChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(currentOnlineChange) + \"% &7from yesterday at this hour)\";\n msg.add(\"&7* &3Online: &b\" + Util.addCommas(onlineYesterday) + \" \" + disp);\n\n double mostOnlineChange = Util.getPercentageChange(mostOnlineYesterday, mostOnlineToday);\n disp = (mostOnlineChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(mostOnlineChange) + \"% &7from yesterday at this hour)\";\n msg.add(\"&7* &3Most Online: &b\" + Util.addCommas(mostOnlineYesterday) + \" \" + disp);\n\n double uniqueLoginsChange = Util.getPercentageChange(uniqueLoginsYesterday, uniqueLoginsToday);\n disp = (uniqueLoginsChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(uniqueLoginsChange) + \"% &7from yesterday at this hour)\";\n msg.add(\"&7* &3Unique Logins: &b\" + Util.addCommas(uniqueLoginsYesterday) + \" \" + disp);\n\n double newPlayersChange = Util.getPercentageChange(newPlayersYesterday, newPlayersToday);\n disp = (newPlayersChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(newPlayersChange) + \"% &7from yesterday at this hour)\";\n msg.add(\"&7* &3New Players: &b\" + Util.addCommas(newPlayersYesterday) + \" \" + disp);\n } else {\n msg.add(\"&7&oNo data to display from this time.\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n msg.add(\"&8\" + Message.BAR);\n\n try (ResultSet rs = stmt.executeQuery(\"SELECT (SELECT COUNT(*) FROM votes) AS total, COUNT(*) AS today FROM votes WHERE DATE(time) = CURDATE();\")) {\n if (rs.next()) {\n msg.add(\"&aVotes Today: &7\" + Util.addCommas(rs.getInt(\"today\"))\n + \"&a, Total Votes: &7\" + Util.addCommas(rs.getInt(\"total\")) + \" (\" + Util.humanReadableNumber(rs.getInt(\"total\")) + \")\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n player.message(msg);\n }), 1, TimeUnit.SECONDS);\n }\n }", "public boolean showPlayer(){\n\t\t\n\t\tSystem.out.println(\"\\t\"+color+\"\\t \"+playermoney+\"\\t \\t\"+totalminions+\" \\t\"+totalbuildings+\" \\t\\t\"+personalityCard.cardName);\n\t\treturn true;\n\t}", "String printListDate(String date);", "@Override\n public List<ConnectathonParticipant> getPeopleAttendingOnThursday() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getPeopleAttendingOnThursday\");\n }\n\n renderAddPanel = false;\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager() || Role.isLoggedUserMonitor()) {\n\n EntityManager em = EntityManagerService.provideEntityManager();\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND cp.institution = \" +\n \":inInstitution AND thursdayMeal IS true\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n query.setParameter(IN_INSTITUTION, choosenInstitutionForAdmin);\n return query.getResultList();\n } else {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND thursdayMeal IS \" +\n \"true\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n return query.getResultList();\n }\n } else {\n selectedInstitution = Institution.getLoggedInInstitution();\n EntityManager em = EntityManagerService.provideEntityManager();\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND cp.institution = \" +\n \":inInstitution AND thursdayMeal IS true\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n query.setParameter(IN_INSTITUTION, selectedInstitution);\n return query.getResultList();\n }\n }", "public List<Player> getDisplayList(){\n\t\tList<Player> dis = new ArrayList<>(1);\n\t\tif(!playersFinished.isEmpty()){\n\t\t\tdis.add(playersFinished.get(tempNumber -1));//last to finish\n\t\t}\n\t\treturn dis;\n\t}", "public void render(Date date, List<Task> listOfTasks);", "public String toString() {\n \tSimpleDateFormat formatter = new SimpleDateFormat(\"MMM dd, yyyy\");\n \t\n \t// convert the released date from calendar object to a date object\n \tDate gameDateobject = this.released.getTime();\n \t\n \t// convert the date object to a specific format\n \tString printDate = formatter.format(gameDateobject);\n \t\n \t// build and return the final string\n \tString finalOutput = \"\\\"\" + this.name + \"\\\"\" + \", released on: \" + printDate;\n \t\n\t\treturn finalOutput;\n }", "List<Player> listPlayers();", "private void dashboard() {\n\n Timeline timeline = new Timeline(\n new KeyFrame(Duration.seconds(0),\n new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent actionEvent) {\n Calendar time = Calendar.getInstance();\n\n String hourString = POSUtilies.pad(2, ' ', time.get(Calendar.HOUR) == 0 ? \"12\" : time.get(Calendar.HOUR) + \"\");\n String minuteString = POSUtilies.pad(2, '0', time.get(Calendar.MINUTE) + \"\");\n String secondString = POSUtilies.pad(2, '0', time.get(Calendar.SECOND) + \"\");\n String am_pm = POSUtilies.pad(2, '0', time.get(Calendar.AM_PM) + \"\");\n if (am_pm.equalsIgnoreCase(\"00\")) {\n am_pm = \"AM\";\n\n }\n if (am_pm.equalsIgnoreCase(\"01\")) {\n am_pm = \"PM\";\n\n }\n\n lblTime.setText(hourString + \":\" + minuteString + \":\" + secondString + \" \" + am_pm);\n lblDate.setText(d.format(date));\n }\n }\n ),\n new KeyFrame(Duration.seconds(1))\n );\n timeline.setCycleCount(Animation.INDEFINITE);\n timeline.play();\n }", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"play ROV 2hr.\";\n\t}", "Collection<User> players();", "public void Print_date()\n {\n \n System.out.println(\"Date: \" + date);\n }", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"Let's Play Football\";\n\t}", "public void displayHotPlayers(Player fantasy) throws IOException {\n\t\tExportExcel.export(\"Week.xls\", 0, fantasy);\n\t\t\n\t\tMinHeap min = MinHeap.getInstance();\n\t\t\n\t\tHashMap<String, Integer> outputPlayers = new HashMap<String, Integer>();\n\t\t\n\t\tPercentLine[] topStats = min.getOverall(min.OVERALL);\n\t\tSystem.out.println(\"Overall Top Value\");\n\t\tUtil.displayHeap(topStats, min.OVERALL, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.POINTS);\n\t\tSystem.out.println(\"Overall Top Points\");\n\t\tUtil.displayHeap(topStats, min.POINTS, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.REBOUNDS);\n\t\tSystem.out.println(\"Overall Top Rebounds\");\n\t\tUtil.displayHeap(topStats, min.REBOUNDS, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.ASSISTS);\n\t\tSystem.out.println(\"Overall Top Assists\");\n\t\tUtil.displayHeap(topStats, min.ASSISTS, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.THREES);\n\t\tSystem.out.println(\"Overall Top Threes\");\n\t\tUtil.displayHeap(topStats, min.THREES, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.STEALS);\n\t\tSystem.out.println(\"Overall Top Steals\");\n\t\tUtil.displayHeap(topStats, min.STEALS, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.BLOCKS);\n\t\tSystem.out.println(\"Overall Top Blocks\");\n\t\tUtil.displayHeap(topStats, min.BLOCKS, outputPlayers);\n\t\t\n\t\tSystem.out.println(\"Players +3 Categories\");\n\t\tUtil.display(outputPlayers);\n\t\t\n\t\ttopStats = MyTeam.getInstance().getList();\n\t\tSystem.out.println(ExportExcel.TEAM_PERFORMANCE + \"'s Performance over the last week\");\n\t\tUtil.displayHeap(topStats, min.OVERALL, outputPlayers);\n\t}", "public PlayerSet getPlayer(){\n return definedOn;\n }", "public void displayPlayer(Nimsys nimSys, Scanner keyboard,ArrayList<Player> list)throws EventException {\r\n\t\tboolean flag = false;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\tCollections.sort(list, new Comparator<Player>(){ //using collection sort to sort the ArrayList by Username\r\n\t\t\tpublic int compare(Player a1, Player a2) {\r\n\t\t\t\treturn a1.getUserName().compareTo(a2.getUserName());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tif(nimSys.commands.length==1){\r\n\t\t\twhile(aa.hasNext()){\r\n\t\t\t\tPlayer in = aa.next();\r\n\t\t\t\tString information=in.showPlayer();\r\n\t\t\t\tSystem.out.println(information);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\twhile (aa.hasNext()) {\r\n\t\t\t\tPlayer in = aa.next();\r\n\t\t\t\tif(in.getUserName().equals(nimSys.commands[1])){\r\n\t\t\t\t\tSystem.out.println(in.showPlayer());\r\n\t\t\t\t\tflag = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(flag=false)\r\n\t\t\t\tSystem.out.println(\"This player don't exist\");\r\n\t\t}\r\n\t}", "public void showInfo() {\n System.out.println(\"Showtime ID \" + showtimeID + \", Movie title: \" + movieTitle + \", Datetime: \" + dateTime.get(Calendar.YEAR) + \" \" + (dateTime.get(Calendar.MONTH) + 1) + \" \" + dateTime.get(Calendar.DATE) + \" \" + dateTime.get(Calendar.HOUR_OF_DAY) + \" \" + dateTime.get(Calendar.MINUTE));\n }", "public void showBookingsByDates(JTextArea output, Date fromDate, Date toDate)\r\n {\r\n output.setText(\"Bookinger mellom \" \r\n + (DateFormat.getDateInstance(DateFormat.MEDIUM).format(fromDate)) \r\n + \" og \" + (DateFormat.getDateInstance(DateFormat.MEDIUM).format(toDate)) + \"\\n\\n\");\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n \r\n if((booking.getToDate().compareTo(toDate) >= 0 &&\r\n booking.getFromDate().compareTo(fromDate) <= 0) ||\r\n (booking.getToDate().compareTo(toDate) <= 0) && \r\n booking.getFromDate().compareTo(fromDate) >= 0)\r\n {\r\n output.append(booking.toString() \r\n + \"\\n*******************************************************\\n\");\r\n }//End of if\r\n }// End of while\r\n }", "public void displayOnderwerpList() {\n List<Onderwerp> onderwerpList = winkel.getOnderwerpList();\n System.out.println(\"Kies een onderwerp: \");\n for (int i = 0; i < onderwerpList.size(); i++) {\n System.out.println((i + 1) + \". \" + onderwerpList.get(i));\n }\n }", "private void reportWinner (Player player) {\n System.out.println();\n System.out.println(\"Player \" + player.name() +\n \" wins.\");\n System.out.println();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(UserUpdate.this, date, cal\n .get(Calendar.YEAR), cal.get(Calendar.MONTH), cal\n .get(Calendar.DAY_OF_MONTH)).show();\n }", "public void updateView() {\n// LocalDate startDate = LocalDate.of(2017, Month.SEPTEMBER, 1);\n// LocalDate endDate = LocalDate.of(2017, Month.SEPTEMBER, 6);\n// getRecords(startDate, endDate);\n }", "@Override\r\n\tpublic void showGetPrisonCardMessage(Player player) {\n\t\t\r\n\t}", "private void drawBookingDate() {\n try {\n bookingDate = bookingModel.getUserBookingDate(employeeID);\n labelBookingDate.setText(\"Booking Date: \" + bookingDate);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void printDate() {\r\n printDayOfWeek();\r\n System.out.println(cur.getDay());\r\n printMonth();\r\n System.out.println(cur.getYear());\r\n }", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}", "public void displayWinner(Player player) {\n System.out.println(\"Partie terminée !\");\n System.out.println(player.getPlayerName()+\" remporte la partie avec les billes \"+player.getColor().toString(true));\n System.out.println(\"――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\");\n }", "@Override\n public String toString() {\n DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;\n assert dtfDate instanceof DateTimeFormatter : \"date formatter has to be of type DateTimeFormatter\";\n assert dtfTime instanceof DateTimeFormatter : \"time formatter has to be of type DateTimeFormatter\";\n final String EVENT_STRING_SHOWED_TO_USER =\n \"[E]\" + super.toString() + this.stringOfTags + \" \" + \"(at: \" + this.date.format(dtfDate) +\n \" \" + this.time.format(dtfTime) + \")\";\n return EVENT_STRING_SHOWED_TO_USER;\n }", "@Override\r\n public String toString(){\n \r\n for(Player player: players){\r\n if(player == null){\r\n continue;\r\n }\r\n System.out.println(player.toString());\r\n }\r\n return \"\";\r\n }", "public void addingPlayedMatch() throws IOException {\n\n displayStatistics();\n Scanner scn = new Scanner(System.in);\n System.out.println(\"Enter date (dd.mm.yyyy): \");\n String scanned = scn.nextLine();\n Date date;\n try {\n date = new SimpleDateFormat(\"dd.mm.yyyy\").parse(scanned);\n } catch (ParseException ex) {\n System.out.println(\"date should in this format!!! >> mm-dd-yyyy\");\n return;\n }\n System.out.println(\"Enter Team 1: \");\n scanned = scn.nextLine();\n FootballClub team1 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team1 = club;\n }\n if (team1 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n System.out.println(\"Enter Team 2: \");\n scanned = scn.nextLine();\n FootballClub team2 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team2 = club;\n }\n if (team2 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n\n System.out.println(\"Team 1 goals: \");\n scanned = scn.nextLine();\n int team1Goal = -1;\n try {\n team1Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team1Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n System.out.println(\"Team 2 goals: \");\n scanned = scn.nextLine();\n int team2Goal = -1;\n try {\n team2Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team2Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n\n Match match = new Match(date,team1,team2,team1Goal,team2Goal); //setting variables when user enter number of goals\n match.setDate(date);\n match.setTeam1(team1);\n match.setTeam2(team2);\n match.setTeam1Goal(team2Goal);\n match.setTeam2Goal(team1Goal);\n matchArrayList.add(match);\n team1.setNumOfGoalsScored(team1.getNumOfGoalsScored() + team1Goal);\n team2.setNumOfGoalsScored(team2.getNumOfGoalsScored() + team2Goal);\n team1.setNumOfGoalsReceived(team1.getNumOfGoalsReceived() + team2Goal);\n team2.setNumOfGoalsReceived(team2.getNumOfGoalsReceived() + team1Goal);\n team1.setNumOfMatchesPlayed(team1.getNumOfMatchesPlayed() + 1);\n team2.setNumOfMatchesPlayed(team2.getNumOfMatchesPlayed() + 1);\n\n if (team1Goal > team2Goal) {\n team1.setNumOfPoints(team1.getNumOfPoints() + 3);\n team1.setNumOfWins(team1.getNumOfWins() + 1);\n team2.setNumOfDefeats(team2.getNumOfDefeats() + 1);\n } else if (team1Goal < team2Goal) {\n team2.setNumOfPoints(team2.getNumOfPoints() + 3);\n team2.setNumOfWins(team2.getNumOfWins() + 1);\n team1.setNumOfDefeats(team1.getNumOfDefeats() + 1);\n } else {\n team1.setNumOfPoints(team1.getNumOfPoints() + 1);\n team2.setNumOfPoints(team2.getNumOfPoints() + 1);\n team1.setNumOfDraws(team1.getNumOfDraws() + 1);\n team2.setNumOfDraws(team2.getNumOfDraws() + 1);\n }\n\n FileOutputStream fis = new FileOutputStream(\"clubData.txt\");\n ObjectOutputStream oos = new ObjectOutputStream(fis);\n oos.writeObject(footballClubArrayList);\n oos.close();\n fis.close();\n\n displayStatistics();\n matchArrayList.add(new Match(date, team1, team2, team1Goal, team2Goal));\n\n\n try {\n FileOutputStream fileOut = new FileOutputStream(\"matchData.txt\");\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(matchArrayList);\n objectOut.close();\n fileOut.close();\n System.out.println(\"Match added Successfully\");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }", "private void setDate() {\n\n for (int i = 0; i < historicList.size(); i++) {\n if (i == 0) {\n dateList.get(0).setText(\"Hier\");\n }\n if (i == 1) {\n dateList.get(0).setText(\"Avant - hier\");\n dateList.get(1).setText(\"Hier\");\n }\n\n if (i == 2) {\n dateList.get(0).setText(\"Il y a trois jours\");\n dateList.get(1).setText(\"Avant - hier\");\n dateList.get(2).setText(\"Hier\");\n\n }\n\n if (i == 3) {\n dateList.get(0).setText(\"Il y a quatre jours\");\n dateList.get(1).setText(\"Il y a trois jours\");\n dateList.get(2).setText(\"Avant - hier\");\n dateList.get(3).setText(\"Hier\");\n }\n\n if (i == 4) {\n dateList.get(0).setText(\"Il y a cinq jours\");\n dateList.get(1).setText(\"Il y a quatre jours\");\n dateList.get(2).setText(\"Il y a trois jours\");\n dateList.get(3).setText(\"Avant - hier\");\n dateList.get(4).setText(\"Hier\");\n }\n\n if (i == 5) {\n dateList.get(0).setText(\"Il y a six jours\");\n dateList.get(1).setText(\"Il y a cinq jours\");\n dateList.get(2).setText(\"Il y a quatre jours\");\n dateList.get(3).setText(\"Il y a trois jours\");\n dateList.get(4).setText(\"Avant - hier\");\n dateList.get(5).setText(\"Hier\");\n }\n\n if (i == 6) {\n dateList.get(0).setText(\"Il y a une semaine\");\n dateList.get(1).setText(\"Il y a six jours\");\n dateList.get(2).setText(\"Il y a cinq jours\");\n dateList.get(3).setText(\"Il y a quatre jours\");\n dateList.get(4).setText(\"Il y a trois jours\");\n dateList.get(5).setText(\"Avant - hier\");\n dateList.get(6).setText(\"Hier\");\n }\n\n }\n }", "private void dayLoop(Player p){\r\n\t\t//Loop for every day.\r\n\t\tSystem.out.println(\"*******************\");\r\n\t\tSystem.out.println(\"It is now \" + p.getName() + \"'s turn on this day.\");\r\n\t\twhile(p.getActions() > 0){\r\n\t\t\tSystem.out.println(\"Choose what you're going to do with the day.\");\r\n\t\t\tSystem.out.println(p.getName() + \" has \" + p.getActions() + \" actions left for the day.\");\r\n\t\t\tSystem.out.println(\"1. Play with a pet.\");\r\n\t\t\tSystem.out.println(\"2. Feed a pet.\");\r\n\t\t\tSystem.out.println(\"3. Go to the store.\");\r\n\t\t\tSystem.out.println(\"4. Print out pet status.\");\r\n\t\t\tSystem.out.println(\"5. End the day early.\");\r\n\t\t\tint selected = getNumber(1,5);\r\n\t\t\tswitch(selected){\r\n\t\t\t//Playing with a pet.\r\n\t\t\tcase 1:\r\n\t\t\t\tplay(p);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t\t//Feeding a pet.\r\n\t\t\tcase 2:\r\n\t\t\t\tfeed(p);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t\t//Code for the store.\r\n\t\t\tcase 3:\r\n\t\t\t\tstoreTrip(p);\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Print Pet Status\r\n\t\t\tcase 4:\r\n\t\t\t\tfor(Pet pet : p.getPets()){\r\n\t\t\t\t\tSystem.out.println(pet.printStatus());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Print Player inventory.\r\n\t\t\tcase 5:\r\n\t\t\t\tp.printInventory();\r\n\t\t\t\t//Finish the day early.\r\n\t\t\tcase 6:\r\n\t\t\t\tp.setActions(0);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"Fatal Error.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tendDay(p);\r\n\t}", "@Override\r\n\tpublic StandingDataPO getDatasOfDailyStandingPlayers(Season season, String date, PlayerData dataType) {\n\t\t\r\n\t\tArrayList<MatchPO> matches = SeasonListPO.getMatchesOfOneDay(season,date);\r\n\t\tif(matches.size()==0)\r\n\t\t\treturn null;\r\n\t\tArrayList<PlayerDataOfOneMatchPO> datas=new ArrayList<>();\r\n\t\tfor(MatchPO oneMatch : matches){\r\n\t\t\tdatas.addAll(oneMatch.getFirstTeam_PlayerData());\r\n\t\t\tdatas.addAll(oneMatch.getSecondTeam_PlayerData());\r\n\t\t}\r\n\t\tCollections.sort(datas,new PlayerDataComparator(dataType));\r\n\t\t\r\n\t\tdouble standingData = 0 ;\r\n\t\tswitch(dataType){\r\n\t\tcase score:\r\n\t\t\t\tstandingData=datas.get(0).getScoreOfOneMatch();\r\n\t\t\tbreak;\r\n\t\tcase numberOfRebound:\r\n\t\t\t\tstandingData=datas.get(0).getNumberOfReboundOfOneMatch();\r\n\t\t\tbreak;\r\n\t\tcase numberOfAssist:\r\n\t\t\t\tstandingData=datas.get(0).getNumberOfAssistOfOneMatch();\r\n\t\t\tbreak;\r\n\t\tcase numberOfBlock:\r\n\t\t\t\tstandingData=datas.get(0).getNumberOfBlockOfOneMatch();\r\n\t\t\tbreak;\r\n\t\tcase numberOfSteal:\r\n\t\t\t\tstandingData=datas.get(0).getNumberOfSteal();\r\n\t\t}\r\n\t\tPlayerDataOfOneMatchPO oneMatchData=datas.get(0);\r\n\t\tPlayerPO thePlayer=PlayerListPO.findPlayerAccurately(oneMatchData.getName());\r\n\t\tStandingDataPO standingDataPO = new StandingDataPO(thePlayer.getName(), thePlayer.getPosition(), \r\n\t\t\t\t\tthePlayer.getTeam(season),standingData);\r\n\t\t\r\n\t\treturn standingDataPO;\r\n\t}", "public StringBuffer2D printPlayers(){\n StringBuffer2D sb = new StringBuffer2D();\n int playerWidth = 15;\n String playerHeader = \"Players\";\n String godHeader = \"God Card\";\n sb.appendln(Color.LIGHTGRAY_UNDERLINED.escape(playerHeader)+\" \".repeat(playerWidth-playerHeader.length())+Color.LIGHTGRAY_UNDERLINED.escape(godHeader));\n if(cellWidth >= 3) {\n sb.appendln(\"\");\n }\n for(Player player : players){\n String playerName = resizedPlayerName(player.getNickName(), playerWidth);\n String cardName = player.getCard().getName();\n //true if currentPlayer\n sb.appendln(Color.fromPlayerColor(player.getColor(), false).escape(playerName)+cardName);\n }\n return sb;\n }", "default String toDisplay(Date date) {\n return getDisplayDateFormat().format(date);\n }", "@Override\r\n public String toString()\r\n {\r\n //Returns String representation of this Player object\r\n return (\"Player: \" + username + \" is a \" + title + \" ranked \" + rank\r\n + \", has completed \" + gamesCompleted \r\n + \" with a fastest time of \" + fastestTime + \", and an average time of \" + averageTime\r\n + \" currently completing a game: \" + isCompletingGame);\r\n }", "private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}", "private void updatePlayerList() \n\t{\n\t\tplayerStatus.clear();\n\n\t\tfor(Player thisPlayer: players) // Add the status of each player to the default list model.\n\t\t{\n\t\t\tplayerStatus.addElement(thisPlayer.toString());\n\t\t}\n\n\t}", "private void show() {\n System.out.println(team.toString());\n }", "public String showdown() {\n if(this.playerH.Rank() < this.serverH.Rank()|| \n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() < this.serverH.getSecondaryRank()) ||\n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() == this.serverH.getSecondaryRank() && this.playerH.getAuxRank() < this.serverH.getAuxRank())){\n if(this.playerBet <= this.serverBet){\n this.money_server += this.playerBet + this.serverBet;\n }\n else{\n this.money_server+= this.serverBet + this.serverBet; \n this.money_player += this.playerBet - this.serverBet;\n }\n }\n else if(this.playerH.Rank() > this.serverH.Rank()|| \n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() > this.serverH.getSecondaryRank()) ||\n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() == this.serverH.getSecondaryRank() && this.playerH.getAuxRank() > this.serverH.getAuxRank())){\n if(this.playerBet >= this.serverBet){\n this.money_player += this.playerBet + this.serverBet;\n }\n else{\n this.money_player += 2*this.playerBet;\n this.money_server += this.serverBet-this.playerBet;\n }\n }\n else{\n \n this.money_player += this.playerBet;\n this.money_server += this.serverBet;\n }\n this.playerBet = 0;\n this.serverBet = 0;\n this.state = -1;\n return \"show\"+this.serverH.toString();\n }", "public void displayPlayerCards(int playerID)\r\n\t{\r\n\t\t// checks for two distinct IDs. If, for some reason, the wrong value has been passed, then nothing will print\r\n\t\tif (playerID == PLAYER1_ID)\r\n\t\t{\r\n\t\t\t// Displays player, point total, and the individual cards in hand, using methods in player1 object\r\n\t\t\tSystem.out.println(\"Player (\" + player1.getTotal() + \"):\\t\" + player1.getCards() );\r\n\t\t}\r\n\t\telse if (playerID == DEALER_ID)\r\n\t\t{\r\n\t\t\t// Displays dealer, point total, and the individual cards in hand, using methods in dealer object\r\n\t\t\tSystem.out.println(\"Dealer (\" + dealer.getTotal() + \"):\\t\" + dealer.getCards() );\r\n\t\t} // end if else\r\n\t}", "public void printOtherPlayersInfo(Match match, String nickname) {\n try {\n ArrayList<Player> otherPlayers = match.getOtherPlayers(nickname);\n for (Player player : otherPlayers) {\n System.out.println(player.getNickname());\n System.out.println(player.getNumOfToken());\n ShowScheme scheme = new ShowScheme(player.getScheme());\n System.out.println(\"\");\n chooseAction(match, nickname);\n }\n } catch (NullPointerException e) {\n } catch (NumberFormatException e) {\n System.out.println(\"Digita un carattere valido\");\n } catch (IndexOutOfBoundsException e) {\n }\n\n }", "public void printByDate() {\n for (int i = 0; i < numBooks; i++)\n {\n for (int j = i + 1; j < numBooks; j++) {\n if (books[i].getDatePublished().compareTo(books[j].getDatePublished()) > 0)\n {\n Book temp = books[i];\n books[i] = books[j];\n books[j] = temp;\n }\n }\n }\n System.out.println(\"**List of books by the dates published.\");\n for (Book b : books){\n if(b != null) {\n System.out.println(b);\n }\n }\n System.out.println(\"**End of list\");\n }", "public void printTaskByDate(String date)\n {\n tasks.stream()\n .filter(task -> task.getDate().equals(date))\n .map(task -> task.getDetails())\n .forEach(details -> System.out.println(details)); \n }", "private static void addNewlyArrivedUsersAsPlayers(Match match, boolean hasTheGameStarted) {\n LinkedList<Player> playersInGame = match.getGame().listOfAllPlayersAndDealer_LastPosition();\n LinkedList<User> allUsers = match.getUsers();\n List<User> newUsers = getUsersWhoAreNotRegisteredAsPlayers(playersInGame, allUsers);\n\n for (User newUser : newUsers) {\n Player newPlayer = new Player(newUser);\n match.getGame().preparePlayerForNextRound(newPlayer, hasTheGameStarted);\n match.getGame().addPlayer(newPlayer);\n }\n }", "public void printPlayerStat(Player player);", "private void renderPlayers() {\n\t\tfor (Player player : this.game.players()) {\n\t\t\t/* So, logically convluted crap ahead.\n\t\t\t * Player position is tracked via a 1-based coordinate system.\n\t\t\t * Our output array is 0-based.\n\t\t\t * Our output array contains an additional row/column on each side for the wall.\n\t\t\t *\n\t\t\t * Hence, when mapping the player's position to an\n\t\t\t * index in the output array, we have to subtract one\n\t\t\t * to switch from 1-basedness to 0-basedness, then add\n\t\t\t * 1 to accomodate for the wall column/row. Which\n\t\t\t * leaves us with a difference of 0. */\n\t\t\tthis.output[player.position().y][player.position().x] = player.sign();\n\t\t}\n\t}", "List<Player> getPlayers();", "public void seeVaccinationSchedule() {\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement;\n\n sqlStatement = \"SELECT * FROM pets\";\n ResultSet resultSet;\n\n sqlStatement =\n \" SELECT name, vaccination_type, date_to_vaccinate_next \" +\n \" FROM pets \" +\n \" LEFT JOIN vaccines \" +\n \" ON pets.id = vaccines.pet_id \" +\n \" ORDER BY date_to_vaccinate_next\";\n\n resultSet = statement.executeQuery(sqlStatement);\n\n while (resultSet.next()) {\n String petsName = resultSet.getString(\"name\");\n String vaccineTitle = resultSet.getString(\"vaccination_type\");\n String nextVaccination = resultSet.getString(\"date_to_vaccinate_next\");\n\n\n System.out.println(petsName.toUpperCase(Locale.ROOT) + \" -> \" + \"|| Next vaccination: \" + nextVaccination + \" || Vaccine Type: \" + vaccineTitle);\n\n }\n } catch (SQLException exception) {\n\n System.out.println(\"Error getting vaccination schedule list \" + exception);\n\n }\n\n }", "public void showPlayerStats(Player player) {\n pIcon = new JLabel(player.getName() + \"'s turn\");\n pIcon.setBackground(Color.white);\n pIcon.setBorder(BorderFactory.createEtchedBorder(0));\n pIcon.setBounds(icon.getIconWidth() + 10, 240, 150, 20);\n bPane.add(pIcon, new Integer(2));\n\n //JButton pRank;\n pRank = new JLabel(\"Rank: \" + player.getRank());\n pRank.setBackground(Color.white);\n pRank.setBorder(BorderFactory.createEtchedBorder(0));\n pRank.setBounds(icon.getIconWidth() + 10, 270, 150, 20);\n bPane.add(pRank, new Integer(2));\n\n //JButton pCredits;\n pCredits = new JLabel(\"Credits: \" + player.getCredits());\n pCredits.setBackground(Color.white);\n pCredits.setBorder(BorderFactory.createEtchedBorder(0));\n pCredits.setBounds(icon.getIconWidth() + 10, 300, 150, 20);\n bPane.add(pCredits, new Integer(2));\n\n //JButton pDollars;\n pDollars = new JLabel(\"Dollars: \" + player.getDollars());\n pDollars.setBackground(Color.white);\n pDollars.setBorder(BorderFactory.createEtchedBorder(0));\n pDollars.setBounds(icon.getIconWidth() + 10, 330, 150, 20);\n bPane.add(pDollars, new Integer(2));\n\n //JButton pRehearsalTokens;\n pRehearsalTokens = new JLabel(\"Rehears Toks: \" + player.getRehearsalTokens());\n pRehearsalTokens.setBackground(Color.white);\n pRehearsalTokens.setBorder(BorderFactory.createEtchedBorder(0));\n pRehearsalTokens.setBounds(icon.getIconWidth() + 10, 360, 150, 20);\n bPane.add(pRehearsalTokens, new Integer(2));\n\n //JButton pRoom;\n pRoom = new JLabel(\"Room: \" + player.getRoom());\n pRoom.setBackground(Color.white);\n pRoom.setBorder(BorderFactory.createEtchedBorder(0));\n pRoom.setBounds(icon.getIconWidth() + 10, 390, 150, 20);\n bPane.add(pRoom, new Integer(2));\n\n //JButton pRole;\n if (player.getRole() == null) {\n pRole = new JLabel(\"Role: None\");\n } else {\n pRole = new JLabel(\"Role: \" + player.getRole().getName());\n }\n pRole.setBackground(Color.white);\n pRole.setBorder(BorderFactory.createEtchedBorder(0));\n pRole.setBounds(icon.getIconWidth() + 10, 420, 150, 20);\n bPane.add(pRole, new Integer(2));\n\n pDays = new JLabel(\"Day: \"+Deadwood.getInstance().getDays());\n pDays.setBackground(Color.red);\n pDays.setOpaque(true);\n pDays.setBorder(BorderFactory.createEtchedBorder(0));\n pDays.setBounds(icon.getIconWidth() + 10, 480, 150, 20);\n bPane.add(pDays, new Integer(2));\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2 + 1, arg3);\n }", "public String printByDateOpen() {\n StringBuilder result = new StringBuilder(\"--Printing statements by date opened--\\n\\n\");\n sortByDateOpen();\n result.append(orderedPrint());\n return result.toString();\n }", "void addEventPlayers(Player player, boolean team);", "public void setDate(String date){\n this.date = date;\n }", "private void drawPlayers(Graphics g){\r\n\t\t// Comprobamos que existen jugadores\r\n\t\tint x = 40, y = 60;\r\n\t\tint spanLeft = 0, spanRight = 0;\r\n\t\tif(players != null){\r\n\t\t\t//Recorremos los jugadores\r\n\t\t\tListIterator<Player> it = players.listIterator();\r\n\t\t\twhile(it.hasNext()){\r\n\t\t\t\tif(it.nextIndex()<4){ // los cuatro primeros jugadores van a la izquierda\r\n\t\t\t\t\tit.next().draw(g, x, y+spanLeft, deck);\r\n\t\t\t\t\tspanLeft += 150;\r\n\t\t\t\t}else{ // los cuatro siguientes a la derecha\r\n\t\t\t\t\tit.next().draw(g, x+500, y+spanRight, deck);\r\n\t\t\t\t\tspanRight += 150;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tg.setColor(Color.black);\r\n\t\t\tg.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n\t\t\tg.setColor(Color.white);\r\n\t\t\tg.setFont(new Font(\"Arial\", Font.PLAIN, 70));\r\n\t\t\tg.drawString(\"¡Bienvenido a Siete y Media!\", 50, 150);\r\n\t\t\tg.setFont(new Font(\"Arial\", Font.PLAIN, 18));\r\n\t\t\tg.drawString(\"Configura tu partida.\", 50, 200);\r\n\t\t}\r\n\r\n\t}", "public void showLobby(ArrayList<String> players) throws IOException {\n String firstOpponentUsername = null, secondOpponentUsername;\n lobbyPane= FXMLLoader.load(Objects.requireNonNull(GodsController.class.getClassLoader().getResource(\"Fxml/Lobby.fxml\")));\n borderPane=(BorderPane) lobbyPane.getChildren().get(1);\n exitButton=(ImageView) borderPane.getBottom();\n playerStackPane=(StackPane) borderPane.getLeft();\n playerUsernameLabel=(Label) playerStackPane.getChildren().get(2);\n opponentsVBox=(VBox) borderPane.getRight();\n firstOpponentPane=(StackPane) opponentsVBox.getChildren().get(0);\n secondOpponentPane=(StackPane) opponentsVBox.getChildren().get(1);\n firstOpponentLabel=(Label) firstOpponentPane.getChildren().get(2);\n secondOpponentLabel=(Label) secondOpponentPane.getChildren().get(2);\n if(Client.getNumPlayers()==2) opponentsVBox.getChildren().remove(1);\n playerUsernameLabel.setText(Client.getUsername());\n for(String username :players ){\n if(!Client.getUsername().equals(username)) {\n if(firstOpponentUsername==null) {\n firstOpponentLabel.setText(firstOpponentUsername=username);\n }\n else secondOpponentLabel.setText(secondOpponentUsername = username);\n }\n }\n GUI.getGameStage().setScene(new Scene(lobbyPane));\n GUI.getGameStage().show();\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2 + 1, arg3);\n }", "public List<TilePojo> getCharactesListByDate() {\n\t\tLOGGER.info(\"getCharactesListByDate -> Start\");\n\t\tcharactesListByDate = new LinkedList<>();\n\t\tList<TilePojo> charList = tileGalleryAndLandingService.getTilesByDate(homePagePath, galleryFor, null,\n\t\t\t\tresource.getResourceResolver(), true);\n\t\tcharactesListByDate = getFixedNumberChar(charList, 12);\n\t\tLOGGER.info(\"getCharactesListByDate -> End\");\n\t\treturn charactesListByDate;\n\t}", "private void showMatch() {\n System.out.println(\"Player 1\");\n game.getOne().getField().showField();\n System.out.println(\"Player 2\");\n game.getTwo().getField().showField();\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public String toString() {\n String outputDate = this.date.format(outputDateFormat);\n return \"[D]\" + super.toString() + \" (by: \" + outputDate + \")\";\n }", "@Override\n\tpublic void show(String t, Date u) {\n\t\tSystem.out.println(t);\n\t\tSystem.out.println(u);\n\t}", "public String printResults(Athletes competitor, Game gam){\n\t\tAthletes winner1 = gam.getWinner1();\n\t\tAthletes winner2 = gam.getWinner2();\n\t\tAthletes winner3 = gam.getWinner3();\n\t\t\n\t\t\t\tif(competitor == winner1){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 5\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}else if(competitor == winner2){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 3\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}else if(competitor == winner3){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 1\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 0\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}" ]
[ "0.5746442", "0.57378185", "0.55839586", "0.556355", "0.55612457", "0.5483021", "0.54134643", "0.5410376", "0.54031724", "0.5401202", "0.53751975", "0.5351012", "0.5325582", "0.5319209", "0.53121316", "0.52966535", "0.5295698", "0.5288238", "0.52516145", "0.5235009", "0.5211757", "0.5208189", "0.5203007", "0.5195329", "0.51926047", "0.51694393", "0.5159047", "0.5148112", "0.51398563", "0.5137348", "0.51294553", "0.5116538", "0.51154935", "0.511466", "0.51132363", "0.51084006", "0.5101761", "0.5100618", "0.5100322", "0.50918996", "0.5091818", "0.50896734", "0.5079156", "0.50733405", "0.5073107", "0.50556636", "0.5052355", "0.5044613", "0.50404406", "0.5032513", "0.50273305", "0.5021179", "0.5011282", "0.50025266", "0.49966905", "0.4995923", "0.49892777", "0.4978036", "0.49776685", "0.4964969", "0.49609676", "0.49533248", "0.49482772", "0.4940664", "0.4940612", "0.49394995", "0.49382025", "0.4937662", "0.49345276", "0.49279213", "0.4915727", "0.49157164", "0.4913881", "0.49118486", "0.4910395", "0.490958", "0.49039292", "0.49035364", "0.48930585", "0.48871475", "0.48830047", "0.4880093", "0.48763606", "0.48751158", "0.48745045", "0.48662445", "0.4865791", "0.48572704", "0.48542857", "0.48533505", "0.48474458", "0.48439783", "0.4843339", "0.48422885", "0.4837535", "0.48321185", "0.48321185", "0.4831821", "0.48316643", "0.4831419" ]
0.69741976
0
Method to add direction to the current direction
void steer(Integer direction) { this.currentDirection += direction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDirection (Direction direction)\r\n {\r\n directions.add(direction);\r\n }", "public abstract void setDirection(int dir);", "public void setDirectionMove(double direction);", "public void move(String direction) {\n \n }", "void changeDirection();", "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 setDirection(Vector direction){\n\t\t_direction = direction;\n\t}", "protected void changeDirection(Direction newDir)\n {\n // Change direction.\n myDir = newDir;\n }", "void setDirections(Directions dir){\n this.dir = dir;\n }", "protected void nextDirection()\n {\n if (this.lastKeyDirection == Canvas.LEFT)\n {\n this.lastKeyDirection = keyDirection = Canvas.RIGHT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n else if (this.lastKeyDirection == Canvas.RIGHT)\n {\n this.lastKeyDirection = keyDirection = Canvas.LEFT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n }", "@Override\n public void setDirection(Direction direction) {\n\n }", "public void changeDirection(){\n\t\tthis.toRight ^= true;\n\t\t\n\t\tif(this.toRight)\n\t\t\tthis.nextElem = (this.currElem + 1) % players.size();\n\t\telse\n\t\t\tthis.nextElem = (this.currElem - 1 + players.size()) % players.size();\n\t}", "public void setDirection(int dir)\r\n\t{\r\n\t\tdirection = dir;\r\n\t}", "public void setDirection(float directionDegree);", "public void move(String direction);", "public void updateDirectionView();", "private MoveAction moveInDirection(Direction direction) {\n\t\tposition.x += direction.x();\n\t\tposition.y += direction.y();\n\t\tmoveAllLists();\n\t\treturn new MoveAction(direction.moveCode());\n\t}", "public void updateDirection(float dir)\n {\n firstDraw = false;\n direction = dir;\n invalidate();\n }", "public void setDirection(float direction)\r\n {\r\n this.direction = direction;\r\n }", "private void setDirection() {\r\n\t\tif (destinationFloor > initialFloor){\r\n\t\t\tdirection = 1;\r\n\t\t} else {\r\n\t\t\tdirection = -1;\r\n\t\t}\r\n\t}", "public void setDirection(Direction direction) {\n this.direction = direction;\n update();\n }", "private void updateDirection()\n {\n if (Math.abs(InputSystem.LT_Button_Control_Stick) > 0.1)\n {\n // if lt button is pressed, reverse direction of elevator\n setReverseDirection(true);\n }\n else\n {\n setReverseDirection(false);\n }\n }", "private void turnToDesiredDirection() {\n\n\t\tdouble dir = sens.getDirection();\n\n\t\tif (dir < desiredDirection) {\n\t\t\tif (Math.abs(dir - desiredDirection) < 180) {\n\t\t\t\tdir += TURNSPEED;\n\t\t\t} else {\n\t\t\t\tdir -= TURNSPEED;\n\t\t\t}\n\t\t} else {\n\t\t\tif (Math.abs(dir - desiredDirection) < 180) {\n\t\t\t\tdir -= TURNSPEED;\n\t\t\t} else {\n\t\t\t\tdir += TURNSPEED;\n\t\t\t}\n\t\t}\n\t\t\n\t\tsens.setDirection(dir);\n\t\t\n\t}", "public void setDirection(Direction direction) {\n this.direction = direction;\n }", "public void setDirection(Direction direction) {\n this.direction = direction;\n }", "public void setDirection(Direction direction) {\n this.direction = direction;\n }", "private void turnAround() {\r\n this.setCurrentDirection(-getCurrentDirection());\r\n }", "public void move(){\n x+=xDirection;\n y+=yDirection;\n }", "public void setDirection(Directions direction) {\n\t\tlogic.setDirection(direction);\n\t}", "public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }", "public void setDirection(String direction) {\r\n this.direction = direction;\r\n }", "public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}", "public void moveUporDown(int direction)\n\t{\n\t\tif (this.direction == direction || this.direction == -direction)\n\t\t\treturn ;\n\t\tthis.direction = direction;\n\t\tdirx = 0;\n\t\tdiry = 0;\n\t\tif (direction == 1 || direction == -1)\n\t\t\tdirx = direction;\n\t\telse\n\t\t\tdiry = direction / 2;\n\t}", "public void addMove() {\n\t\tmove = \"mv \" + posX + \" \" + posY;\n\t}", "public void setDirection(int value) {\n this.direction = value;\n }", "public void setDirection(String direction) {\n this.direction = direction;\n }", "public void setDirection(int direction) {\r\n\t\tthis.direction = direction;\r\n\t}", "void onDirectionChanged(Direction direction);", "public void move() {\r\n\t\tthis.vector2D = this.vector2D.add(Direction.DOWN.getUnitVector());\r\n\t}", "public void move(String direction) {\n\tpreviousMove = direction;\n\tout.println(\"MOVE \" + direction);\n}", "public void setDirection(Vector3f direction) {\r\n\t\tmDirection.set(direction);\r\n\t}", "public DirectedPosition withDirection(Direction newDirection) {\r\n return new DirectedPosition(this.position, newDirection);\r\n }", "private void setDirection(int index, String s) {\n _directions.get(index).add(s);\n }", "public void direction(int dirX, int dirY) {\r\n if (dirX == 1 && dirY == 0) {\r\n this.direction = \"HORI\";\r\n }\r\n else if (dirX == 1 && dirY == -1) {\r\n this.direction = \"RISE\";\r\n }\r\n else if (dirX == 0 && dirY == 1) {\r\n this.direction = \"VERTI\";\r\n }\r\n else {\r\n this.direction = \"FALL\";\r\n }\r\n }", "public Player setDirection(String direction) { //<>// //<>//\n switch (direction) {\n case (\"UP\"):\n this.direction = UPKEY;\n break;\n case (\"DOWN\"):\n this.direction = DOWNKEY;\n break;\n case (\"LEFT\"):\n this.direction = LEFTKEY;\n break;\n case (\"RIGHT\"): //<>//\n this.direction = RIGHTKEY; //<>//\n break;\n }\n //<>//\n return this;\n }", "public void direction()\n {\n if(!goLeft){\n horzVelocity = 1;\n }else{\n horzVelocity = -1;\n }\n }", "public void setDirection(){\n\n if (gameStatus != demoPlay)\n client_sb.i_Button = direct;\n\n TankMoveDelay++;\n StarGun_GSR loc=(StarGun_GSR)client_sb.getGameStateRecord();\n\n if (TankMoveDelay >= 1 &&\n loc.getPlayerX() < StarGun_SB.PLAYER_RIGHT_BORDER &&\n\t loc.getPlayerX() > 0) {\n TankMoveDelay = 0;\n switch (direct) {\n\tcase StarGun_SB.DIRECT_LEFT:\n\t if (TankPos==0)TankPos=iTankAmount-1;\n\t else TankPos--;\n\t\t\t\t break;\n case StarGun_SB.DIRECT_RIGHT:\n\t if (TankPos==iTankAmount-1)TankPos=0;\n\t else TankPos++;\n\t\t\t\t break;\n }\n }\n }", "@NotNull\n void move(Direction direction) {\n this.position.move(direction);\n lookingDirection = direction;\n }", "abstract void setDirection(double x, double y, double z);", "public void changeDirection() {\n\t\t// Define the direction we want to change from as our current direction.\n\t\tfinal float oldDirection = this.requiredSwipeDirection;\n\t\t// While our swipe direction is the direction we want to change from,\n\t\twhile (this.requiredSwipeDirection == oldDirection)\n\t\t\t// Set our SwipeTile's direction to a random direction.\n\t\t\tsetDirection(SwipeTile.randomDirection());\n\t}", "public void move(int directionX, int directionY) {\r\n posX += directionX;\r\n posY += directionY;\r\n anchorX += directionX;\r\n anchorY += directionY;\r\n }", "public void setDirection(int value) {\n this.direction = value;\n }", "public void changeDirection()\n {\n if(goLeft){\n goLeft = false;\n }else{\n goLeft = true;\n }\n }", "public void setDirection(double direction) {\n\t\tif (direction <= MAX_DIRECTION && direction >= MIN_DIRECTION) {\n\t\t\tthis.direction = direction;\n\t\t} else if (direction > MAX_DIRECTION) { \n\t\t\t//this.direction = MIN_DIRECTION + (MAX_DIRECTION - direction);\n\t\t\tthis.direction %= MIN_DIRECTION ;\n\t\t\tif (Double.isNaN(this.direction)) {\n\t\t\t\tthis.direction = MIN_DIRECTION;\n\t\t\t}\n\t\t} else if (direction < MIN_DIRECTION) {\n\t\t\t//this.direction = MAX_DIRECTION - (MIN_DIRECTION + direction);\n\t\t\tthis.direction %= MAX_DIRECTION;\n\t\t\tif (Double.isNaN(this.direction)) {\n\t\t\t\tthis.direction = MAX_DIRECTION;\n\t\t\t}\n\t\t} //else if (direction)\n\t\t\n\t}", "void move(String direction) {\n \tif (direction.equals(\"A\")) { \n \t\tsetXCoord(getXCoord()-getHSpeed());\n \t} else if (direction.equals(\"D\")) {\n \t\tsetXCoord(getXCoord()+getHSpeed());\n \t}\n }", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "public void updateDirectionFace();", "public Vector3d getDirection() { return mDirection; }", "public void directionRestriction(){\n \t\n }", "default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }", "public Direction getDirection() {\n return currentDirection;\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "public void walk(int direction);", "private void setDirection() {\n directionX = corePos.getX() - projectile.getX();\n directionY = corePos.getY() - projectile.getY();\n\n double length = Math.sqrt(directionX*directionX + directionY*directionY);\n\n if (length != 0) {\n directionX = directionX/length;\n directionY = directionY/length;\n }\n }", "public void place(int nextX, int nextY, String nextDirection) {\n // checks if the new position is valid.\n if (grid == null || grid.isOutside(nextX, nextY)) {\n return;\n }\n int nextDir = Arrays.asList(DIRECTIONS).indexOf(nextDirection.toUpperCase());\n if (nextDir < 0) {\n return;\n }\n currX = nextX;\n currY = nextY;\n currDirection = nextDir;\n canMove = true;\n }", "Direction(int ID, Place from, Place to, String dir) {\n\t\tthis.ID = ID;\n\t\tthis.from = from;\n\t\tthis.to = to;\n\t\tthis.dir = DirType.valueOf(dir);\t// Use valueOf() to get the enum of it\n\n\t\tlocked = false;\t// All new directions are by default unlocked\n\t}", "public Direction getDirection()\n {\n return dir;\n }", "public double getDirectionMove();", "public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);", "public String getDirection() {\r\n return direction;\r\n }", "public Direction direction()\n {\n return myDir;\n }", "@Override\n public void move() {\n switch (direction){\n case SOUTH:\n position.setY(position.getY() + currentSpeed);\n break;\n case NORTH:\n position.setY(position.getY() - currentSpeed);\n break;\n case WEST:\n position.setX(position.getX() - currentSpeed);\n break;\n case EAST:\n position.setX(position.getX() + currentSpeed);\n }\n }", "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}", "public void faceDirection(Vector direction) {\n \tVector originalFaceDirection = new Vector(0,0,-1);\n \t\n \tfloat angle;\n \t\n \tif (direction.size() == 0)\n \t\tangle = 0;\n \telse\n \t\tangle = (float)Math.toDegrees( direction.angleBetween(originalFaceDirection) );\n \t\n \tVector orientation = player.getOrientation();\n \tplayer.setOrientation( angle , orientation.y(), orientation.z());\n }", "public abstract void addEdge(Point p, Direction dir);", "public float getDirection()\r\n {\r\n return direction;\r\n }", "public float getDirection();", "default void setDirection(Vector3 v) {\r\n setDirection(v.getX(), v.getY(), v.getZ());\r\n }", "public String getDirection() {\n return direction;\n }", "private void goDirection(Command command) {\n String direction = command.getFirstParameter();\n Room nextRoom = currentRoom.nextRoom(direction);\n\n // try to leave current room\n if (nextRoom == null) {\n System.out.println(\"There is no door!\");\n } else {\n currentRoom = nextRoom;\n }\n }", "public abstract void move( char direction );", "public void Update(Direction direction) {\n if(direction == Direction.UP)\n this.second -= 13;\n if(direction == Direction.DOWN)\n this.second += 13;\n if(direction == Direction.LEFT)\n this.first -= 13;\n if(direction == Direction.RIGHT)\n this.first += 13;\n }", "public void setDirection(byte value) \n\t{\n\t\tdirection = value;\n\t}", "public void moveDirection(int step)\r\n\t{\r\n\t\tint updatedDirectionVal = step;\r\n\t\t//Reset to 1 when the value of updated direction is more than maximum (i.e. 4) \r\n\t\tif(currentDirection.getValue()-updatedDirectionVal ==2 ||\r\n\t\t\t\tupdatedDirectionVal-currentDirection.getValue()==2){\r\n\t\t\tdecreaseSpeed();\r\n\t\t\treturn; \r\n\t\t}\r\n\t\t//Reset to 4 when the value of updated direction is less than minimum (i.e. 1)\r\n\t\telse if(currentDirection.getValue() == updatedDirectionVal){\r\n\t\t\tincreaseSpeed();\r\n\t\t}\r\n\t\t//Update the current direction of the snake for this player\r\n\t\tcurrentDirection = directionValueToSnakeDirection(updatedDirectionVal);\r\n\t\tsnakes.get(snakeIndex).setSnakeDirection(currentDirection);\r\n\t}", "public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }", "public void move(Direction direction) {\n position.translate(direction);\n update();\n }", "public void setCurrentDirection(int currentDirection) {\r\n this.currentDirection = currentDirection;\r\n }", "public String getDirection() {\n return this.direction;\n }", "public void moveUserPlane(int direction) {\r\n\t\tlevelManager.moveUserPlane(direction);\r\n\t}", "String getDirection();", "public Place followDirection ( String checkDirection)\r\n\t{\t\r\n\t\t for( int i=0; i < directions.size(); i++)\r\n\t\t {\r\n\t\t\t if( directions.get(i).match( checkDirection))\r\n\t\t\t {\r\n\t\t\t\t // If direction matches with direction object's direction, now again check that if the door is unlocked or not. \r\n\t\t\t\t return directions.get(i).follow();\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t } \r\n\t\t System.out.println (\"There is no direction from this DOOR....OH No, You are stuck at this Current Place:\" + this.name());\r\n\t\t return this;\r\n\t}", "@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }", "int getDirection();", "public static void setDirection(String direction) {\n if (direction.equals(\"up\")) {\n pacManDirection = up;\n } else if (direction.equals(\"down\")) {\n pacManDirection = down;\n } else if (direction.equals(\"left\")) {\n pacManDirection = left;\n } else {\n pacManDirection = right;\n }\n }", "public boolean setDirection(Direction dir)\n {\n this.dir = dir;\n return true;\n }", "public Builder setDirection(int value) {\n bitField0_ |= 0x00000020;\n direction_ = value;\n onChanged();\n return this;\n }", "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 final flipsParser.direction_return direction() throws RecognitionException {\n flipsParser.direction_return retval = new flipsParser.direction_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token To390=null;\n Token To393=null;\n flipsParser.fixedDirection_return fixedDirection388 = null;\n\n flipsParser.leftRightDirection_return leftRightDirection389 = null;\n\n flipsParser.fixedDirection_return fixedDirection391 = null;\n\n flipsParser.clockDirection_return clockDirection392 = null;\n\n flipsParser.fixedDirection_return fixedDirection394 = null;\n\n flipsParser.relativeDirection_return relativeDirection395 = null;\n\n\n CommonTree To390_tree=null;\n CommonTree To393_tree=null;\n RewriteRuleTokenStream stream_To=new RewriteRuleTokenStream(adaptor,\"token To\");\n RewriteRuleSubtreeStream stream_fixedDirection=new RewriteRuleSubtreeStream(adaptor,\"rule fixedDirection\");\n RewriteRuleSubtreeStream stream_relativeDirection=new RewriteRuleSubtreeStream(adaptor,\"rule relativeDirection\");\n RewriteRuleSubtreeStream stream_leftRightDirection=new RewriteRuleSubtreeStream(adaptor,\"rule leftRightDirection\");\n RewriteRuleSubtreeStream stream_clockDirection=new RewriteRuleSubtreeStream(adaptor,\"rule clockDirection\");\n try {\n // flips.g:576:2: ( fixedDirection -> ^( DIRECTION FIXED fixedDirection ) | leftRightDirection To fixedDirection -> ^( DIRECTION FIXED ^( TURN leftRightDirection ) fixedDirection ) | clockDirection To fixedDirection -> ^( DIRECTION FIXED ^( TURN clockDirection ) fixedDirection ) | relativeDirection -> ^( DIRECTION RELATIVE relativeDirection ) )\n int alt146=4;\n alt146 = dfa146.predict(input);\n switch (alt146) {\n case 1 :\n // flips.g:576:4: fixedDirection\n {\n pushFollow(FOLLOW_fixedDirection_in_direction3326);\n fixedDirection388=fixedDirection();\n\n state._fsp--;\n\n stream_fixedDirection.add(fixedDirection388.getTree());\n\n\n // AST REWRITE\n // elements: fixedDirection\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 // 577:2: -> ^( DIRECTION FIXED fixedDirection )\n {\n // flips.g:577:5: ^( DIRECTION FIXED fixedDirection )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DIRECTION, \"DIRECTION\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n adaptor.addChild(root_1, stream_fixedDirection.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:578:4: leftRightDirection To fixedDirection\n {\n pushFollow(FOLLOW_leftRightDirection_in_direction3342);\n leftRightDirection389=leftRightDirection();\n\n state._fsp--;\n\n stream_leftRightDirection.add(leftRightDirection389.getTree());\n To390=(Token)match(input,To,FOLLOW_To_in_direction3344); \n stream_To.add(To390);\n\n pushFollow(FOLLOW_fixedDirection_in_direction3346);\n fixedDirection391=fixedDirection();\n\n state._fsp--;\n\n stream_fixedDirection.add(fixedDirection391.getTree());\n\n\n // AST REWRITE\n // elements: fixedDirection, leftRightDirection\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 // 579:2: -> ^( DIRECTION FIXED ^( TURN leftRightDirection ) fixedDirection )\n {\n // flips.g:579:5: ^( DIRECTION FIXED ^( TURN leftRightDirection ) fixedDirection )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DIRECTION, \"DIRECTION\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n // flips.g:579:23: ^( TURN leftRightDirection )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TURN, \"TURN\"), root_2);\n\n adaptor.addChild(root_2, stream_leftRightDirection.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n adaptor.addChild(root_1, stream_fixedDirection.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:580:4: clockDirection To fixedDirection\n {\n pushFollow(FOLLOW_clockDirection_in_direction3368);\n clockDirection392=clockDirection();\n\n state._fsp--;\n\n stream_clockDirection.add(clockDirection392.getTree());\n To393=(Token)match(input,To,FOLLOW_To_in_direction3370); \n stream_To.add(To393);\n\n pushFollow(FOLLOW_fixedDirection_in_direction3372);\n fixedDirection394=fixedDirection();\n\n state._fsp--;\n\n stream_fixedDirection.add(fixedDirection394.getTree());\n\n\n // AST REWRITE\n // elements: fixedDirection, clockDirection\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 // 581:2: -> ^( DIRECTION FIXED ^( TURN clockDirection ) fixedDirection )\n {\n // flips.g:581:5: ^( DIRECTION FIXED ^( TURN clockDirection ) fixedDirection )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DIRECTION, \"DIRECTION\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n // flips.g:581:23: ^( TURN clockDirection )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TURN, \"TURN\"), root_2);\n\n adaptor.addChild(root_2, stream_clockDirection.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n adaptor.addChild(root_1, stream_fixedDirection.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 4 :\n // flips.g:582:4: relativeDirection\n {\n pushFollow(FOLLOW_relativeDirection_in_direction3394);\n relativeDirection395=relativeDirection();\n\n state._fsp--;\n\n stream_relativeDirection.add(relativeDirection395.getTree());\n\n\n // AST REWRITE\n // elements: relativeDirection\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 // 583:2: -> ^( DIRECTION RELATIVE relativeDirection )\n {\n // flips.g:583:5: ^( DIRECTION RELATIVE relativeDirection )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DIRECTION, \"DIRECTION\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(RELATIVE, \"RELATIVE\"));\n adaptor.addChild(root_1, stream_relativeDirection.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\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 int getDirection() {\n return direction;\n }", "public boolean setDirection(Direction dir) {\n //If a new direction was set but the update wasn't made yet,\n // you cannot change the direction.\n if (!moveMade) {\n return false;\n }\n if (!direction.isValid(dir)) {\n return false;\n }\n prevDir = direction;\n direction = dir;\n moveMade = false;\n return true;\n }" ]
[ "0.7457509", "0.67327875", "0.6661159", "0.6653745", "0.6598466", "0.6515267", "0.6500039", "0.6475741", "0.64335376", "0.6400683", "0.63976073", "0.63911647", "0.63813543", "0.63587284", "0.630243", "0.6257866", "0.6241544", "0.6212683", "0.6199272", "0.6173198", "0.61659", "0.61041933", "0.6097792", "0.6096738", "0.6096738", "0.6096738", "0.6084045", "0.60798144", "0.60723704", "0.6023071", "0.6018095", "0.60102725", "0.60002875", "0.59837645", "0.59777987", "0.5977125", "0.59741396", "0.59505767", "0.59372485", "0.59340376", "0.5933031", "0.5923646", "0.5912626", "0.59107244", "0.59099966", "0.5907933", "0.5899052", "0.5897107", "0.5896011", "0.58842677", "0.5876396", "0.587473", "0.5866144", "0.58646965", "0.5846539", "0.5846246", "0.58429635", "0.5818526", "0.5780615", "0.576857", "0.576788", "0.57651824", "0.5761272", "0.5761082", "0.5744128", "0.57397175", "0.5732857", "0.5722089", "0.57111496", "0.570542", "0.5701784", "0.57016027", "0.56836367", "0.5682797", "0.56827605", "0.5673649", "0.5671126", "0.5666419", "0.566005", "0.5651063", "0.565012", "0.564658", "0.56432295", "0.5641313", "0.563775", "0.5635512", "0.56350285", "0.5629459", "0.5628446", "0.56242836", "0.561622", "0.56125015", "0.5609314", "0.55974394", "0.558814", "0.55844134", "0.5579391", "0.55789393", "0.5568094", "0.5565994" ]
0.6927657
1
Method to set velocity to currentVelocity and direction to currentDirection.
void move(Integer velocity, Integer direction) { this.currentVelocity = velocity; this.currentDirection = direction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVelocity(Vector3d velocity) {\n getMotion().setVelocity(velocity);\n }", "public void setVelocity ( org.bukkit.util.Vector velocity ) {\n\t\texecute ( handle -> handle.setVelocity ( velocity ) );\n\t}", "public void setVelocity(double velocity) {\n m_motor.set(ControlMode.Velocity, toEncoderPulsesPer100ms(velocity));\n }", "public void setVelocity(Vector2D velocity)\n\t{\n\t\tthis.velocity = velocity;\n\t}", "public void setVelocity(Vector2d velocity) {\n\t\tthis.velocity=velocity;\n\t}", "public void setVelocity(Velocity velocity) {\r\n this.v.setVelocity(velocity);\r\n }", "public void setVelocity () {\n\t\t\tfb5.getCommunicationModule().setClientHandler(null);\n\t\t\tif(state == BotMove.SHARP_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)0);\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT){\n\t\t\t\tfb5.setVelocity((byte)100,(byte)200);\n\t\t\t}\n\t\t\telse if(state == BotMove.SOFT_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)100);\n\t\t\t}\n\t\t\telse if(state == BotMove.FORWARD){\n\t\t\t\twt.turning = false;\n\t\t\t\tLog.d(TAG,\"Setting forward velocity\");\n\t\t\t\tfb5.setVelocity((byte)150,(byte)150);\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(state == BotMove.STOP){\n\t\t\t\twt.turning = false;\n\t\t\t\tfb5.setVelocity((byte)0,(byte)0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfb5.moveForward();\n\t\t\tfb5.accModifiedStart();\n\t\t}", "public void setVelocity(float x, float y)\n\t{\n\t\tthis.vel.x = x;\n\t\tthis.vel.y = y;\n\t}", "public void setVelocity(double velocity) {\n //set the velocity of the motors\n m_masterMotor.set(ControlMode.Velocity, velocity);\n \n //set our slave motors to follow master\n m_closeSlaveMotor.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor1.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor2.follow(m_masterMotor, FollowerType.PercentOutput);\n }", "public void setVelocity(double x, double y) {\n velocityX = x;\n velocityY = y;\n }", "public void setVelocity(double x, double y) {\n getMotion().setVelocity(x, y);\n }", "public void setVelocity(Velocity velocity) {\n this.v = velocity;\n }", "@Raw\n protected void setVelocity(double xVelocity, double yVelocity){\n if ( !isValidVelocity(xVelocity, yVelocity)){\n this.velocity.setVelocity(0.0, 0.0);\n }\n else {\n this.velocity.setVelocity(xVelocity, yVelocity);\n }\n }", "public void setVelocity(double x, double y) {\n velocity[X] = x;\n velocity[Y] = y;\n //velocity[Z] = z;\n }", "void setVelocity(int vel) {\n\t\tthis.velocity = vel;\n\t}", "private void updateVelocity() {\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateX() > MAX_SPEED_X) {\n\t \t\tsetvX(MAX_SPEED_X);\n\t \t} else if (getNode().getTranslateX() < -MAX_SPEED_X) {\n\t \t\tsetvX(-MAX_SPEED_X);\n\t } else {\n\t \t\tsetvX(getNode().getTranslateX());\n\t \t}\n\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateY() > MAX_SPEED_Y) {\n\t \t\tsetvY(MAX_SPEED_Y);\n\t \t} else if (getNode().getTranslateY() < -MAX_SPEED_Y) {\n\t \t\tsetvY(-MAX_SPEED_Y);\n\t \t} else {\n\t \t\tsetvY(getNode().getTranslateY());\n\t \t}\n\t }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocityVector(double newDX, double newDY) {\r\n this.dx = newDX;\r\n this.dy = newDY;\r\n }", "public void setVelocity(Velocity v) {\r\n this.vel = v;\r\n }", "public void setVelocity(double dx, double dy) {\r\n this.vel = new Velocity(dx, dy);\r\n }", "public void setVelocity(double dx, double dy) {\n this.v = new Velocity(dx, dy);\n }", "public void setVelocity(double dx, double dy) {\n this.velocity.setDx(dx);\n this.velocity.setDy(dy);\n }", "public GameObject setVelocity(Vector vel) {\n\t\tthis.velocity = vel;\n\t\treturn this;\n\t}", "public void setVelocity(double dx, double dy) {\n this.velocity = new Velocity(dx, dy);\n }", "public void setVelocity(double dx, double dy) {\n this.velocity = new Velocity(dx, dy);\n }", "public void setVelocity(double dx, double dy) {\r\n this.v.setVelocity(dx, dy);\r\n }", "static void resetVelocity(){currentVelocity = INITIAL_SPEED;}", "public void setSpeedVector(Vector2D vector)\n {\n mSpeedVector = vector;\n }", "public void setVerticalVelocity( final float velocity )\r\n {\r\n this.v_velocity = velocity;\r\n }", "public void setDirection(Vector direction){\n\t\t_direction = direction;\n\t}", "public void setVelocity(float horizontalInput, float verticalInput) {\n\t\tbody.setLinearVelocity(speed*horizontalInput , speed*verticalInput );\n\t}", "public void configVelocityControl() {\n leftDrive.configTeleopVelocity();\n rightDrive.configTeleopVelocity();\n }", "public void changeVel(double xV, double yV){ \n this.xVel += xV;\n this.yVel += yV;\n }", "public void setVelocity(double x, double y, double z) {\n getMotion().setVelocity(x, y, z);\n }", "public void setVelocity(double x, double y, double z) {\n/* 72 */ this.motionX = x;\n/* 73 */ this.motionY = y;\n/* 74 */ this.motionZ = z;\n/* */ \n/* 76 */ if (this.prevRotationPitch == 0.0F && this.prevRotationYaw == 0.0F) {\n/* */ \n/* 78 */ float var7 = MathHelper.sqrt_double(x * x + z * z);\n/* 79 */ this.prevRotationYaw = this.rotationYaw = (float)(Math.atan2(x, z) * 180.0D / Math.PI);\n/* 80 */ this.prevRotationPitch = this.rotationPitch = (float)(Math.atan2(y, var7) * 180.0D / Math.PI);\n/* */ } \n/* */ }", "public synchronized void setVelocitySetpoint(DriveSignal signal, double leftFeed,\n double rightFeed) {\n if (RobotState.mDriveControlState == DriveControlState.PATH_FOLLOWING) {\n leftDrive.set(ControlMode.Velocity, signal.getLeftNativeVelTraj(), signal.getBrakeMode(),\n leftFeed);\n rightDrive.set(ControlMode.Velocity, signal.getRightNativeVelTraj(), signal.getBrakeMode(),\n rightFeed);\n } else {\n RobotState.mDriveControlState = DriveControlState.VELOCITY_SETPOINT;\n leftDrive.set(ControlMode.Velocity, signal.getLeftNativeVel(), signal.getBrakeMode());\n rightDrive.set(ControlMode.Velocity, signal.getRightNativeVel(), signal.getBrakeMode());\n }\n currentSetpoint = signal;\n }", "public void setVelocity(double lSpeed, double rSpeed)\n\t{\n\t\tdouble targetVelocityRight = rSpeed * Constants.velocityConstant;\n\t\tdouble targetVelocityLeft = lSpeed * Constants.velocityConstant;\n\t\trightSRX.set(ControlMode.Velocity, targetVelocityRight);\n\t\tleftSRX.set(ControlMode.Velocity, targetVelocityLeft);\n\t}", "public void updateVelocity(){\r\n if (getPosition().x <= 0 || getPosition().x >= GameBoard.MAX_X) {\r\n setVelocity(getVelocity().add(getVelocity().mul(reverse)));\r\n }\r\n }", "public void setVelocityY(double y) {\n\t\tvelocity.setY(y);\n\t}", "public static void initVelocity() {\n }", "public void setVelocityEngine(VelocityEngine velocityEngine)\n\t{\n\t\tthis.velocityEngine = velocityEngine;\n\t}", "public void setVelocity(float dummyX, float dummyZ){\n\t\t\n\t}", "public void setDir(Vector2 dirVec) {\n this.dirVec = dirVec;\n // Travelling horizontally\n if (dirVec.x == 0) {\n setAngle(Math.PI);\n }\n else {\n setAngle(Math.PI/2);\n }\n }", "protected void calcVelocity()\n\t{}", "public Velocity(double xDir, double yDir, double mag){\n\t\tif(xDir > 1 || xDir < -1 || yDir > 1 || yDir < -1){\n\t\t\tthrow new RuntimeException(\"Invalid Velocity Direction, values should be only from 1 to -1\");\n\t\t}\n\t\tthis.xDir = xDir;\n\t\tthis.yDir = yDir;\n\t\tthis.magnitude = mag;\n\t\t//System.out.println(xDir + \" \" + yDir + \" \" + getAngle() + \" \" + mag);\n\t}", "public void moveY(int dir) { velocity.add(PVector.mult(up, speed * dir)); }", "public void setFlingDirection(int velocityY) {\n if (velocityY > 0) {\n this.mFlingDirection = this.FLING_BACKWARD;\n } else {\n this.mFlingDirection = this.FLING_FOWARD;\n }\n }", "public void setVelocityProperties(Properties velocityProperties)\n\t{\n\t\tsetVelocityPropertiesMap(velocityProperties);\n\t}", "public void setVelocity(Vector2f n)\n\t{\n\t\tsetVelocity(n.x, n.y);\n\t}", "public void direction()\n {\n if(!goLeft){\n horzVelocity = 1;\n }else{\n horzVelocity = -1;\n }\n }", "public void setVelocity(double value) {\n _avTable.set(ATTR_VELOCITY, value);\n }", "private void setMovingDir(Direction dir)\n {\n if(moving != dir)\n {\n \txSpeed = 0;\n \t\n \tSystem.out.println(\"xSpeed = 0\");\n \t\n resetAccelX();\n }\n moving = dir;\n setFacing(dir);\n //System.out.println(\"setMovingDir: \" + dir);\n }", "public void setCurrentDirection(ElevatorStatus currentDirection) {\n\t\tthis.currentDirection = currentDirection;\n\t}", "public void setMotor_ang_target_velocity(float motor_ang_target_velocity) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 132, motor_ang_target_velocity);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 124, motor_ang_target_velocity);\n\t\t}\n\t}", "public void setCurrentDirection(int currentDirection) {\r\n this.currentDirection = currentDirection;\r\n }", "public void setAngularVelocity(Vector3f vec) {\n rBody.setAngularVelocity(Converter.convert(vec, tempVec));\n rBody.activate();\n }", "private void calculateVelocity() {\n\t\tthis.velocity = Math.sqrt((this.roughRange *this.roughRange * this.gravity_Math)\n\t\t\t\t/ ((this.roughRange * Math.sin(2 * angle)) + (2\n\t\t\t\t\t\t* Constant.heroBaseHeight * Math.cos(angle) * Math\n\t\t\t\t\t\t\t.cos(angle))));\n\t\t\n\t}", "public void setTranslationVel(Vector3f vec, int xform) {\n\t\tm_xforms[xform].m_translateVel.set(vec);\n\t}", "public void setDirection(Direction direction) {\n\t\t// Set the arrow textures to the new direction's corresponding arrow textures.\n\t\tthis.arrowGreen = SwipeTile.getArrow(game, direction, true);\n\t\tthis.arrowGray = SwipeTile.getArrow(game, direction, false);\n\t\t// Set the required swipe direction to the new direction.\n\t\tsetSwipeRequirement(SwipeTile.createSwipe(direction, requiredSwipeMagnitude));\n\t\t// Refresh the arrow so it uses the new Textures.\n\t\trefreshArrow();\n\t}", "public void setVector(float x, float y)\n {\n speedVector.x = x / 5;\n speedVector.y = y / 5;\n if((mag = speedVector.x * speedVector.x + speedVector.y * speedVector.y) > 1)\n {\n mag = FloatMath.sqrt(mag);\n speedVector.x /= mag;\n speedVector.y /= mag;\n }\n }", "public void setyVelocity(float yVelocity) {\n if (moves) {\n this.yVelocity = yVelocity;\n }\n }", "public VelocityComponent(Point3D velocity) {\n this.velocity = velocity;\n }", "public void addVelocity(Vector2d vector) {\n\t\tvelocity.add(vector);\n\t}", "public void setRotationVel(Vector3f vec, int xform) {\n\t\tm_xforms[xform].m_rotateVel.set(vec);\n\t}", "public void currentSpeed(double currentSpeed)\n\t{\n\t\tspeed = currentSpeed;\n\t\t\n\t}", "public void setMotor_lin_target_velocity(float motor_lin_target_velocity) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 128, motor_lin_target_velocity);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 120, motor_lin_target_velocity);\n\t\t}\n\t}", "public void setDirection(double direction) {\n\t\tgyroPid.setSetpoint(direction);\n\t}", "public void setSpeed( Vector2 sp ) { speed = sp; }", "public void applyVelocityChange(final Vector2f velocityChange);", "public void move() {\n\t\tthis.move(velocity.x, velocity.y);\n\t}", "public boolean setMotorVelocities(final double leftVelocity, final double rightVelocity)\n {\n return finchController.setMotorVelocities(leftVelocity, rightVelocity);\n }", "public Vector2D getVelocity()\n\t{\n\t\treturn velocity;\n\t}", "public void setVelocityEngine(VelocityEngine engine) {\n\t\tve = engine;\n\t}", "public Velocity(double dx, double dy) {\r\n this.dx = dx;\r\n this.dy = dy;\r\n }", "public Velocity(double dx, double dy) {\r\n this.dx = dx;\r\n this.dy = dy;\r\n }", "public void setCurrentSpeed (double speed);", "public void setV(double vx, double vy, double vz){\n vel[0] = vx;\n vel[0] = vy;\n vel[0] = vz;\n }", "private void UpdateVelocity()\n\t{\n\t\tVector2 currentPosition = new Vector2(parent.transform.position);\n\t\tVector2 newVelocity = Vector2.Add(currentPosition,previousPosition.negate());\n\t\tpreviousPosition = currentPosition;\n\t\t\n\t\tfloat currentRotation = parent.transform.rotation;\n\t\tangularVelocity = currentRotation - previousRotation;\n\t\tpreviousRotation = currentRotation;\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "public Velocity getVelocity() {\r\n return this.vel;\r\n }", "public boolean setMotorVelocities(final int leftVelocity, final int rightVelocity)\n {\n return finchController.setMotorVelocities(leftVelocity, rightVelocity);\n }", "public VelocityComponent(double xVector, double yVector, double zVector) {\n velocity = new Point3D(xVector, yVector, zVector);\n }", "public Velocity(double dx, double dy) {\n this.dx = dx;\n this.dy = dy;\n }", "public Velocity(double dx, double dy) {\n this.dx = dx;\n this.dy = dy;\n }", "public Point2D.Float getVelocity() {\r\n\t\treturn velocity;\r\n\t}", "public Velocity getVelocity() {\n return this.velocity;\n }", "public Velocity(int dx, int dy) {\n this((double) dx, (double) dy);\n }", "public void setRotationVel(Vector3f vec) {\n\t\tm_xforms[NvCameraXformType.MAIN].m_rotateVel.set(vec);\n\t}", "public Vector2f getVelocity(){\n\t\treturn velocity.copy();\n\t}", "public Velocity(double dx, double dy) {\n this.dxVelocity = dx;\n this.dyVelocity = dy;\n }", "public void moveZ(int dir) { velocity.add(PVector.mult(forward, speed * dir)); }", "public final Vector2D getVelocity() {\n return velocity;\n }", "public void setDirection(Vector3f direction) {\r\n\t\tmDirection.set(direction);\r\n\t}", "public Vector2D getVelocity ();", "protected void setLinearVelocity(Vector2 vel)\n\t\t{\n\t\tthis.projectileType.getBody().setLinearVelocity(vel);\n\t\t}", "@Override\n public void setValue(Point3D value) {\n this.velocity = value;\n }", "public void moveX(int dir) { velocity.add(PVector.mult(right, speed * dir)); }", "public void setVelY(int velY){\r\n\t\tthis.velY = velY;\r\n\t}", "public double getVelocity() {\n \treturn this.currentSpeed;\n }" ]
[ "0.73361176", "0.7319803", "0.7246075", "0.72251344", "0.72177047", "0.7215323", "0.71712506", "0.7137408", "0.7067159", "0.7065636", "0.7064414", "0.7052546", "0.70184225", "0.69959337", "0.69898003", "0.69560033", "0.694701", "0.694701", "0.694701", "0.69455934", "0.69436467", "0.6941176", "0.6921847", "0.69146854", "0.6893596", "0.6887144", "0.6887144", "0.68802947", "0.6756354", "0.675346", "0.6701745", "0.6673327", "0.66174364", "0.6609222", "0.6543837", "0.6520643", "0.6520239", "0.6467935", "0.6348908", "0.63279045", "0.6327005", "0.6294076", "0.62873644", "0.6276627", "0.626812", "0.62567574", "0.6172056", "0.6168042", "0.6157678", "0.61541295", "0.615394", "0.6152793", "0.61412334", "0.61228365", "0.61193293", "0.60990816", "0.60955435", "0.60861045", "0.608383", "0.6050374", "0.6048542", "0.6047463", "0.6037156", "0.6029642", "0.60247755", "0.6023996", "0.6021219", "0.6008531", "0.5996363", "0.59901154", "0.5985723", "0.5976895", "0.5974061", "0.5973025", "0.5965709", "0.5958879", "0.5958879", "0.5956769", "0.5949373", "0.5946565", "0.5943786", "0.5935773", "0.5931326", "0.5929264", "0.5929264", "0.5916607", "0.59149253", "0.58932024", "0.5888305", "0.58841825", "0.58781254", "0.58723056", "0.58678716", "0.58597887", "0.5853053", "0.5847249", "0.5837921", "0.5832225", "0.5819369", "0.58148783" ]
0.73602307
0
Method to change the currentVelocity to zero
void stop() { this.currentDirection = 0; this.currentVelocity = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void resetVelocity(){currentVelocity = INITIAL_SPEED;}", "public void clearVelocity();", "public void zeroSpeed() {\n controlRotator.proportionalSpeedSetter(0.0);\n }", "public void clearAngularVelocity();", "public void resetYVel() {\n this.yVel = 0;\n }", "public void zero() {\r\n\t\tthis.x = 0.0f;\r\n\t\tthis.y = 0.0f;\r\n\t}", "public static void zero_acceleration( Body body ) {\r\n body.currentState.ax = 0;\r\n body.currentState.ay = 0;\r\n body.currentState.az = 0;\r\n }", "@Raw\n protected void setVelocity(double xVelocity, double yVelocity){\n if ( !isValidVelocity(xVelocity, yVelocity)){\n this.velocity.setVelocity(0.0, 0.0);\n }\n else {\n this.velocity.setVelocity(xVelocity, yVelocity);\n }\n }", "public void stop() {\n\t\tthis.velocity = 0.0;\n\t}", "public void disableVelocityMode()\n {\n final String funcName = \"disableVelocityMode\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n this.maxVelocity = 0.0;\n }", "public static void initVelocity() {\n }", "protected void calcVelocity()\n\t{}", "public void setVelocity () {\n\t\t\tfb5.getCommunicationModule().setClientHandler(null);\n\t\t\tif(state == BotMove.SHARP_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)0);\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT){\n\t\t\t\tfb5.setVelocity((byte)100,(byte)200);\n\t\t\t}\n\t\t\telse if(state == BotMove.SOFT_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)100);\n\t\t\t}\n\t\t\telse if(state == BotMove.FORWARD){\n\t\t\t\twt.turning = false;\n\t\t\t\tLog.d(TAG,\"Setting forward velocity\");\n\t\t\t\tfb5.setVelocity((byte)150,(byte)150);\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(state == BotMove.STOP){\n\t\t\t\twt.turning = false;\n\t\t\t\tfb5.setVelocity((byte)0,(byte)0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfb5.moveForward();\n\t\t\tfb5.accModifiedStart();\n\t\t}", "public void updateVelocity(){\r\n if (getPosition().x <= 0 || getPosition().x >= GameBoard.MAX_X) {\r\n setVelocity(getVelocity().add(getVelocity().mul(reverse)));\r\n }\r\n }", "public boolean atVelocity() {\n return false;\n }", "public void reverseXVelocity() {\n xVelocity *= -1;\n }", "public double getCurrentVelocity( )\r\n {\r\n return Math.sqrt( this.h_velocity * this.h_velocity + this.v_velocity * this.v_velocity );\r\n }", "public void stop()\n\t{\n\t\tfrogVelocityX = 0;\n\t}", "void resetMotionVector()\n {\n forwardVector.resetMotionVector();\n backwardVector.resetMotionVector();\n }", "void setVelocity(int vel) {\n\t\tthis.velocity = vel;\n\t}", "public void zero();", "public void clearMovement( )\r\n {\r\n this.setVerticalAcceleration( 0.0f );\r\n this.setHorizontalAcceleration( 0.0f );\r\n this.setVerticalVelocity( 0.0f );\r\n this.setHorizontalVelocity( 0.0f );\r\n }", "private void updateVelocity() {\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateX() > MAX_SPEED_X) {\n\t \t\tsetvX(MAX_SPEED_X);\n\t \t} else if (getNode().getTranslateX() < -MAX_SPEED_X) {\n\t \t\tsetvX(-MAX_SPEED_X);\n\t } else {\n\t \t\tsetvX(getNode().getTranslateX());\n\t \t}\n\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateY() > MAX_SPEED_Y) {\n\t \t\tsetvY(MAX_SPEED_Y);\n\t \t} else if (getNode().getTranslateY() < -MAX_SPEED_Y) {\n\t \t\tsetvY(-MAX_SPEED_Y);\n\t \t} else {\n\t \t\tsetvY(getNode().getTranslateY());\n\t \t}\n\t }", "public final void setZero() {\n \t\n\t\tthis.m00 = 0.0F;\n\t\tthis.m01 = 0.0F;\n\t\tthis.m02 = 0.0F;\n\t\tthis.m10 = 0.0F;\n\t\tthis.m11 = 0.0F;\n\t\tthis.m12 = 0.0F;\n\t\tthis.m20 = 0.0F;\n\t\tthis.m21 = 0.0F;\n\t\tthis.m22 = 0.0F;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "private void setInitialBallVelocity() {\n\t\tvx = rgen.nextDouble(1.0, 3.0);\n\t\tif (rgen.nextBoolean(0.5)) vx = -vx;\n\t\t\n\t\tvy = 3;\n\t}", "public void zero()\n {\n Runnable zeroRunnable = new Runnable() {\n @Override\n public void run()\n {\n {\n boolean liftLimit;\n boolean extendLimit;\n\n\n\n do\n {\n liftLimit = liftLimitSwitch.getState();\n extendLimit = extendLimitSwitch.getState();\n\n if (!liftLimit)\n {\n lift.setPower(-0.5);\n }\n else\n {\n lift.setPower(0);\n }\n\n if (extendLimit)\n {\n extend.setPower(-0.5);\n }\n else\n {\n extend.setPower(0);\n }\n\n if (cancel)\n {\n break;\n }\n } while (!liftLimit || !extendLimit);\n\n if (!cancel)\n {\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n extend.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n extend.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n isZeroed = true;\n }\n }\n }\n };\n\n zeroThread = new Thread(zeroRunnable);\n zeroThread.start();\n }", "public void setVelocity(float dummyX, float dummyZ){\n\t\t\n\t}", "private void reset() {\n\t\tmVelocityTracker.clear();\n\t\tmSwiping = false;\n\t\tmAbleToSwipe = false;\n\t}", "public void zeroValues()\n {\n fx = 0.0f;\n fy = 0.0f;\n fz = 0.0f;\n magnitude = 0.0f;\n }", "public void setVelocity(Velocity velocity) {\n this.v = velocity;\n }", "@Override\n\tpublic double getSpeed() {\n\t\treturn 0;\n\t}", "private void bounceOffVerticalWall() {\n vx = -vx;\n }", "public void resetXMovement() {\n this.xVel = 0;\n this.xTargetSpeed = 0;\n }", "public boolean relaxVelocity()\n {\n return adjustToVelocity( preferedVelocity );\n }", "public void clearSpeed ()\n {\n ((Agent)_actor).setSpeed(((ActorConfig.Agent)_config).speed);\n }", "public void setVelocity(Velocity velocity) {\r\n this.v.setVelocity(velocity);\r\n }", "public void setVelocity(Velocity v) {\r\n this.vel = v;\r\n }", "public void setVelocity(double value) {\n _avTable.set(ATTR_VELOCITY, value);\n }", "@Override\r\n\tpublic float getVerticalSpeed() {\n\t\treturn 0;\r\n\t}", "static int getVelocity(){return currentVelocity;}", "public synchronized void reset(){\n\t\tif(motor.isMoving())\n\t\t\treturn;\n\t\tmotor.rotateTo(0);\n\t}", "private void UpdateVelocity()\n\t{\n\t\tVector2 currentPosition = new Vector2(parent.transform.position);\n\t\tVector2 newVelocity = Vector2.Add(currentPosition,previousPosition.negate());\n\t\tpreviousPosition = currentPosition;\n\t\t\n\t\tfloat currentRotation = parent.transform.rotation;\n\t\tangularVelocity = currentRotation - previousRotation;\n\t\tpreviousRotation = currentRotation;\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "public void currentSpeed()\n\t{\n\t\tif(speed == 0)\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in rest\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in motion\");\n\t\t\t\n\t\t}\n\t}", "public void stopEngine(){\n currentSpeed = 0;\n }", "public void stopEngine(){\n currentSpeed = 0;\n }", "public void reset () {\n if (!this.on) {\n return;\n }\n\n this.currentSensorValue = 0;\n }", "public void setVelocity ( org.bukkit.util.Vector velocity ) {\n\t\texecute ( handle -> handle.setVelocity ( velocity ) );\n\t}", "public Vector4d setZero() {\n\t\tx = y = z = w =0;\n\t\treturn this;\n\t}", "public void setVelocity(double x, double y) {\n getMotion().setVelocity(x, y);\n }", "public void zero() {\n fill(0);\n }", "public void restrictVelocity() {\n\t\tif (velocity.x > MAX_VELOCITY.x)\r\n\t\t\tvelocity.x = MAX_VELOCITY.x;\r\n\t\tif (velocity.y > MAX_VELOCITY.y)\r\n\t\t\tvelocity.y = MAX_VELOCITY.y;\r\n\t\t\r\n\t\tif (velocity.x < -MAX_VELOCITY.x)\r\n\t\t\tvelocity.x = -MAX_VELOCITY.x;\r\n\t\tif (velocity.y < -MAX_VELOCITY.y)\r\n\t\t\tvelocity.y = -MAX_VELOCITY.y;\r\n\t}", "@Override\n\tpublic void setZeroLinearSpeedThreshold(float value) {\n\t\t\n\t}", "public void setVelocity(String value) {\n setVelocity(Format.toDouble(value));\n }", "public double getVelocity() {\n return mV;\n }", "protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}", "public void zeroHeading() {\n gyro.reset();\n gyro.zeroYaw();\n }", "public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "public void Reset(){\n py = 0f;\n }", "public void setVelocity(double x, double y) {\n velocityX = x;\n velocityY = y;\n }", "public void zeroHeading() {\n m_gyro.reset();\n }", "public void stop() {\n m_servo.setSpeed(0.0);\n }", "public Velocity getVelocity() {\n return this.velocity;\n }", "public double getVelocity() {\n \treturn this.currentSpeed;\n }", "@Override\r\n\tpublic void reset() {\n\t\tposition.set(0, 0);\r\n\t\talive = false;\r\n\t}", "public abstract Vector4fc zero();", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00000080);\n speed_ = 0;\n onChanged();\n return this;\n }", "public void setVelocity(float x, float y)\n\t{\n\t\tthis.vel.x = x;\n\t\tthis.vel.y = y;\n\t}", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00000800);\n speed_ = 0;\n onChanged();\n return this;\n }", "private double getVelocity() {\n \tif (currentState == DriveState.accelerating) {\n \t\treturn acceleration * timer.get();\n \t}\n \telse if (currentState == DriveState.cruisung) {\n \t\treturn maxVelocity;\n \t}\n \telse if (currentState == DriveState.decelerating) {\n \t\treturn maxVelocity - acceleration * (timer.get());\n \t}\n \t\t\n \treturn 0;\n }", "public void setDefaultSpeed (double speed) {\n setDefaultSpeed(speed, -speed);\n }", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00001000);\n speed_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00001000);\n speed_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00001000);\n speed_ = 0;\n onChanged();\n return this;\n }", "public Vector2f getVelocity(){\n\t\treturn velocity.copy();\n\t}", "public void reset(int x, int y) {\n ball.relocate(x, y);\n velX = 0;\n velY = 0;\n }", "public void resetSpeed()\r\n\t{\r\n\t\tcurrentSpeed = SnakeSpeed.DEFAULT;\r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}", "@Override\n public void resetAccelY()\n {\n }", "public Velocity getVelocity() {\n return this.v;\n\n }", "private Vector2D leftVelocity() {\n return new Vector2D(this.movementSpeed * this.differenceTime * -1, 0);\n }", "public void jump(){\n if(onGround)\n y_velocity = -0.45f;\n }", "public void brake(){\n if (speed <= 0){\n speed = 0;\n }\n else{\n speed -= 5;\n }\n }", "public void decSpeed()\n\t{\n\t\tmoveVec.setLocation(moveVec.getX() * .9, moveVec.getY() * .9);\n\t\t//this.speed *= 0.9;\n\t}", "public void reset(){\n value = 0;\n }", "public void zero()\n {\n encoderOffset = -getEncoder().getPosition();\n }", "@Override\n\tpublic float getZeroLinearSpeedThreshold() {\n\t\treturn 0;\n\t}", "public void setVelocity(Vector3d velocity) {\n getMotion().setVelocity(velocity);\n }", "@Override\n\tpublic void reset() {\n\t\tsuper.reset();\n\t\tmSpeed = 0.0;\n\t\tmGoalAngle = 0.0;\n\t\tmCurrentAngle = mNavigation.getHeadingInDegrees();\n\t}", "public void setVelocity(Vector2d velocity) {\n\t\tthis.velocity=velocity;\n\t}", "void resetForce();", "public void setCurrentSpeed (double speed);", "public Builder clearSpeed() {\n \n speed_ = 0;\n onChanged();\n return this;\n }", "public Point2D.Float getVelocity() {\r\n\t\treturn velocity;\r\n\t}", "public GameObject setVelocity(Vector vel) {\n\t\tthis.velocity = vel;\n\t\treturn this;\n\t}", "public void setVelocity(double velocity) {\n m_motor.set(ControlMode.Velocity, toEncoderPulsesPer100ms(velocity));\n }", "private void setZero(){\r\n\t for(int i = 0; i < nodes.size(); i++){\r\n\t Node currentNode = nodes.get(i);\r\n\t for (int j = 0; j < currentNode.getEdges().size(); j++){\r\n\t Edge currentEdge = currentNode.getEdge(j);\r\n\t currentEdge.setResidualFlow(currentEdge.getFlow());\r\n\t currentEdge.setFlow(0);\r\n }\r\n }\r\n }", "public void setVelocity(double x, double y) {\n velocity[X] = x;\n velocity[Y] = y;\n //velocity[Z] = z;\n }", "@Override\n public void update(){\n super.update();\n if(getPositionY() < -2.f){\n setAngleXYDeltaTheta(0.0f);\n setAngleXY(0.0f);\n setPositionY(1.0f);\n setDy(0.0f);\n setDx(0.0f);\n setInPlay(true);\n }\n }" ]
[ "0.8096211", "0.7894915", "0.74555045", "0.72029746", "0.7063629", "0.6833636", "0.6810534", "0.67325264", "0.6723573", "0.67121154", "0.6601999", "0.65742826", "0.6545132", "0.65307796", "0.6518716", "0.64959913", "0.62933654", "0.6275582", "0.62364155", "0.6213412", "0.6212742", "0.6154045", "0.6144622", "0.61367", "0.6127845", "0.6127845", "0.6127845", "0.6127324", "0.6124199", "0.6117775", "0.6109117", "0.60727555", "0.60624784", "0.6058466", "0.6049978", "0.60457563", "0.6017928", "0.60095507", "0.5977938", "0.59718037", "0.5958582", "0.59212863", "0.5915368", "0.59111345", "0.5907232", "0.58966446", "0.5892676", "0.5892676", "0.5890048", "0.58843523", "0.5871504", "0.5860826", "0.5850446", "0.5840495", "0.58381474", "0.583673", "0.583599", "0.58322257", "0.5831461", "0.58308625", "0.58294046", "0.582593", "0.5813718", "0.5807656", "0.5788952", "0.57858026", "0.5778141", "0.5772684", "0.5770133", "0.5768157", "0.5767491", "0.57666975", "0.5761916", "0.57574826", "0.57568514", "0.57568514", "0.574342", "0.5740454", "0.5735422", "0.5727929", "0.5724398", "0.57224727", "0.57192147", "0.57058215", "0.57018524", "0.5701144", "0.5691239", "0.5690992", "0.56830513", "0.5674809", "0.5665704", "0.5662977", "0.56605643", "0.5654012", "0.5650649", "0.56440496", "0.562905", "0.56246495", "0.5622774", "0.56223893" ]
0.6487596
16
onmiResult result = new onmiResult(dump)
@Test public void test() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo24178a(ResultData resultdata);", "public void dump( Result out ) throws JAXBException;", "public void mo5062c(Result result) {\n }", "public Result() {\n }", "public Result() {\n }", "public Result(){\n\t}", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "public Result() {\r\n super();\r\n System.out.println(\"Result:Constructor\");\r\n }", "void dump() throws RemoteException;", "private void print(FromHostResult < CustomerData > result) {\n try {\n System.out.println(\"Host bytes converted : \"\n + result.getBytesProcessed());\n System.out.println(\"Result JAXB instance as XML :\");\n JAXBContext jaxbContext = JAXBContext.newInstance(CustomerData.class);\n Marshaller marshaller = jaxbContext.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n marshaller.marshal(\n new ObjectFactory().createCustomerData(result.getValue()),\n System.out);\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }", "public abstract boolean mo66251a(Result<T> result);", "public MapResult() {\n }", "public abstract Result<T> mo66250a();", "public AllPoojaResult() {}", "public void dump();", "void onResult(AIResponse result);", "@Override\n\tpublic void dump() {\n\t\t\n\t}", "public com.onedrive.sdk.extensions.AsyncOperationStatus generateResult(com.onedrive.sdk.http.IHttpRequest r2, com.onedrive.sdk.http.IConnection r3, com.onedrive.sdk.serializer.ISerializer r4, com.onedrive.sdk.logger.ILogger r5) throws java.lang.Exception {\n /*\n r1 = this;\n int r2 = r3.getResponseCode()\n r0 = 303(0x12f, float:4.25E-43)\n if (r2 != r0) goto L_0x001e\n java.lang.String r2 = \"Item copy job has completed.\"\n r5.logDebug(r2)\n java.util.Map r2 = r3.getHeaders()\n java.lang.String r3 = \"Location\"\n java.lang.Object r2 = r2.get(r3)\n java.lang.String r2 = (java.lang.String) r2\n com.onedrive.sdk.extensions.AsyncOperationStatus r2 = com.onedrive.sdk.extensions.AsyncOperationStatus.createdCompleted(r2)\n return r2\n L_0x001e:\n r2 = 0\n java.io.BufferedInputStream r5 = new java.io.BufferedInputStream // Catch:{ all -> 0x0048 }\n java.io.InputStream r0 = r3.getInputStream() // Catch:{ all -> 0x0048 }\n r5.<init>(r0) // Catch:{ all -> 0x0048 }\n java.lang.String r2 = com.onedrive.sdk.http.DefaultHttpProvider.streamToString(r5) // Catch:{ all -> 0x0046 }\n java.lang.Class<com.onedrive.sdk.extensions.AsyncOperationStatus> r0 = com.onedrive.sdk.extensions.AsyncOperationStatus.class\n java.lang.Object r2 = r4.deserializeObject(r2, r0) // Catch:{ all -> 0x0046 }\n com.onedrive.sdk.extensions.AsyncOperationStatus r2 = (com.onedrive.sdk.extensions.AsyncOperationStatus) r2 // Catch:{ all -> 0x0046 }\n java.util.Map r3 = r3.getHeaders() // Catch:{ all -> 0x0046 }\n java.lang.String r4 = \"Location\"\n java.lang.Object r3 = r3.get(r4) // Catch:{ all -> 0x0046 }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ all -> 0x0046 }\n r2.seeOther = r3 // Catch:{ all -> 0x0046 }\n r5.close()\n return r2\n L_0x0046:\n r2 = move-exception\n goto L_0x004b\n L_0x0048:\n r3 = move-exception\n r5 = r2\n r2 = r3\n L_0x004b:\n if (r5 == 0) goto L_0x0050\n r5.close()\n L_0x0050:\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onedrive.sdk.concurrency.AsyncMonitorResponseHandler.generateResult(com.onedrive.sdk.http.IHttpRequest, com.onedrive.sdk.http.IConnection, com.onedrive.sdk.serializer.ISerializer, com.onedrive.sdk.logger.ILogger):com.onedrive.sdk.extensions.AsyncOperationStatus\");\n }", "private cufftResult()\r\n {\r\n }", "@Test\n public void test1() throws Exception {\n System.out.printf(\"\\n%s\\n\", Marshall\n .getInstance()\n .marshal(\n new MobilePayRequest()\n .setSystemId(16)\n .setDate(new Date())\n .setPayId(12414L)\n .setCard(\"5577 2127 0898 5646\")\n .setPhone(\"+380937103721\")\n .setAmount(10.1)\n .setUserId(4234L)\n .setUserLogin(\"+380937103721\")\n .setIp(\"127.0.0.1\"),\n MarshallProperties.FORMATTED_OUTPUT));\n }", "@Test\n public void testWriteLexicon_4args() {\n //String expResult = \n //System.out.println(\"writeLexicon\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel model = makeModel(instance);\n Lexicon lexicon = model.getLexica().iterator().next();\n LinguisticOntology lingOnto = new LexInfo();\n Writer target = new StringWriter();\n instance.writeLexicon(model, lexicon, lingOnto, target);\n //System.out.println(target.toString());\n }", "zzana mo29855eb() throws RemoteException;", "OutputPin getResult();", "OutputPin getResult();", "Output createOutput();", "void onResult(T result);", "void onResult(T result);", "void onResult(int ret);", "public abstract Object mo1185b();", "public NMapRun getResult() {\n\t\tOnePassParser parser = new OnePassParser() ;\n\t\tNMapRun nmapRun = parser.parse(outFilePath, OnePassParser.FILE_NAME_INPUT ) ;\n\t\treturn nmapRun ;\n\t}", "String responseToString(MovilizerResponse response);", "public Commande_structureSerializationTest(){\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public void receiveResultPlanesHijo(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.PlanesHijoResponseE result\r\n ) {\r\n }", "public void receiveResultminload(\n loadbalance.LoadBalanceStub.MinloadResponse result\n ) {\n }", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "public interface Result {\n public void onResult(Object object, String function, boolean IsSuccess, int RequestStatus, String MessageStatus);\n\n\n\n}", "private void dumpResponse(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataRspFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------rsp data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------rsp data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }", "public void setResult() {\n }", "public X837Ins_2320_MOA_MedicareOutpatientAdjudicationInformation() {}", "@Override\r\n public void onResult(String result)\r\n {\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Firmware version = \"+result));\r\n }", "public void serialize() {\n\t\t\n\t}", "InputStream mo1151a();", "byte[] getResult();", "zzafe mo29840Y() throws RemoteException;", "public ReturnInfo()\r\n\t{\r\n\t\tsuper();\r\n\t}", "private void dumpQuery(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataReqFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------query data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------query data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }", "void newResult(Result result);", "Output1(Res1 r){\n this.r = r;\n }", "@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}", "@Override\n\t\tpublic void onGetPoiIndoorResult(PoiIndoorResult arg0) {\n\t\t\tLog.d(\"测试数据\", \"\");\n\t\t\t\n\t\t}", "Result getResult();", "@Test\r\n public void testParseResult() throws Exception \r\n {\r\n System.out.println(\"parseResult\");\r\n JsonObject data = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n JsonArray expResult = null;\r\n // instance.parseResult(data, null);\r\n }", "public void mo5061b(Result result) {\n mo5097b();\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "V result() throws Exception;", "public EventResult(String result) {\n\n }", "zzand mo29852bb() throws RemoteException;", "public interface Resultator extends Remote{\n\tpublic String getResult() throws RemoteException;\n\tpublic void setResult(String result) throws RemoteException;\n\tpublic boolean isProcessed() throws RemoteException;\n\tpublic void setProcessed() throws RemoteException;\n}", "public void receiveResultsIO_FI_OA_AFS_OA024(out.deal.afs.zc024.MT_FI_OA_AFS_OA024_REP result) {\n\t}", "public static void setResult(String resultInfo) {\n }", "void mo706a(int i) throws RemoteException;", "void mo750t() throws RemoteException;", "private void readSimulationResults(){\n\t\tString tempDir = System.getProperty(\"java.io.tmpdir\");\r\n\t\tFile file = new File(tempDir+File.separator+\"simulation.bin\");\r\n\t try {\r\n\t \t\r\n\t \tObjectInputStream in = new ObjectInputStream(new FileInputStream(file));\r\n\t\t\t// Deserialize the object\r\n\t\t\t\r\n\t\t\tresults = (PortfolioStatistics) in.readObject();\r\n\t\t\tin.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void onOutputReceived(MoneroOutputWallet output);", "zzang mo29839S() throws RemoteException;", "public abstract void copy(Result result, Object object);", "public byte[] requestDump(Model tempModel) \n {\n \n return new byte[0]; \n }", "public void dump() throws IOException;", "public void dump() {\n for(Object object : results) {\n System.out.println( object );\n }\n }", "public abstract Object getOutput ();", "public LoadResult(String msg)\n {\n message = msg;\n }", "public XMA21InstResponse createInstFromString(String rawResponse) {\n \n if (LOG.isDebugEnabled())\n LOG.debug(\"Returned Data : \" + rawResponse);\n \n String address = null;\n String duz = null;\n String username = null;\n String domain = null;\n String message = null;\n String ien = null;\n \n List<String> rawLines = processLines(rawResponse);\n \n for (String s : rawLines) {\n \n String[] rawSplit = s.split(\"\\\\^\");\n \n // For Local or Remote Response\n if (s.startsWith(\"ADDRESS\")) {\n \n if (rawLines.size() == 3)\n address = rawSplit[1].trim();\n else if (rawLines.size() == 2)\n duz = rawSplit[1].trim();\n }\n \n // For Remote Response\n if (s.startsWith(\"REMOTE\")) { \n \n if (rawSplit.length == 3) {\n ien = rawSplit[1].trim();\n domain = rawSplit[2].trim();\n }\n }\n \n // For Local Response\n if (s.startsWith(\"LOCAL\")) {\n username = rawSplit[2].trim();\n }\n \n // For Message Response\n if (s.startsWith(\"-1\")) { \n message = rawSplit[1].trim();\n }\n \n // For ERROR Response\n if (s.startsWith(\"ERROR\")) { \n message = rawSplit[1].trim();\n }\n \n }\n \n if (3 == rawLines.size() ) {\n return new XMA21InstResponse(address, ien, domain, rawResponse);\n }\n if (2 == rawLines.size()) {\n return new XMA21InstResponse(username, duz, rawResponse);\n }\n if (1 == rawLines.size()) {\n return new XMA21InstResponse(message, rawResponse);\n }\n \n return null; \n \n }", "public void receiveResultextract(\n com.exacttarget.wsdl.partnerapi.ExtractResponseMsgDocument result\n ) {\n }", "void mo5018b();", "public String getResult();", "public String getResult();", "public String getResult();", "Output(Res r){\n this.r = r;\n }", "public void extract() {\n \n try {\n //Extrae la plantilla de la imagen. \n template = fingerprintSDK.extract(fingerprint);\n \n //Notifies it has been extracted and the quality of the extraction\n //write template quality to log\n switch (template.getQuality()){\n case Template.HIGH_QUALITY: \n objpantprincipal.pintaraltacalidad();\n break;\n case Template.MEDIUM_QUALITY: \n objpantprincipal.pintarmedianacalidad();\n break;\n case Template.LOW_QUALITY: \n objpantprincipal.pintarbajacalidad();\n break;\n }\n //Muestra la plantilla en la imagen\n objpantprincipal.showImage(GrFingerJava.getBiometricImage(template,fingerprint));\n objpantprincipal.writeLog(\"Minucias extraidas con éxito\");\n } catch (GrFingerJavaException e) {\n //write error to log\n Toolkit.getDefaultToolkit().beep();\n objpantprincipal.writeLog(\"Error, no se pudieron extraer las minucias, vuelva a intentarlo\");\n }\n \n }", "Info mo7564ix();", "public Musik(){}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "public interface IResult {\n public abstract void process(String line) throws Exception;\n\n public abstract void processError(String line) throws Exception;\n\n public abstract void onFailure(Exception ex);\n\n public abstract void onComplete(int diag);\n\n public IResult setProcess(Process process);\n\n public Process getProcess();\n\n public IResult setData(Serializable data);\n\n public Serializable getData();\n\n public IResult setError(int error);\n\n public int getError();\n\n}", "int mo744n() throws RemoteException;", "public void setResult(Object result) {\n this.result = result;\n }", "public TO result();", "public Thaw_result(Thaw_result other) {\r\n }", "public void receiveResultAmbitosHijo(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.AmbitosHijoResponseE result\r\n ) {\r\n }", "public Results(Blippy pBlippy)\n {\n super(pBlippy);\n }", "public void setResult(String result) {\n this.result = result;\n }", "protocol.Result.ResultCode getResultCode();" ]
[ "0.5920834", "0.5800006", "0.5632483", "0.55032295", "0.55032295", "0.5497696", "0.5455944", "0.5439", "0.5351469", "0.5247502", "0.5142536", "0.5119442", "0.5114512", "0.51044595", "0.51035136", "0.50666195", "0.5055008", "0.5012712", "0.50101846", "0.5004786", "0.50003797", "0.49730977", "0.49721694", "0.49721694", "0.49703413", "0.4967138", "0.4967138", "0.49666983", "0.4947293", "0.49278054", "0.49181768", "0.49154726", "0.49035555", "0.49009487", "0.4889492", "0.48838806", "0.48838806", "0.48778763", "0.48770982", "0.4875871", "0.4867604", "0.48486957", "0.48371387", "0.4833851", "0.48322684", "0.48292968", "0.48249593", "0.48037535", "0.48006153", "0.4797478", "0.47969386", "0.47969386", "0.47947678", "0.47843313", "0.47791705", "0.4775562", "0.4769601", "0.4761712", "0.47583008", "0.4757853", "0.4756907", "0.47480705", "0.4741076", "0.4736486", "0.47322452", "0.47265998", "0.47231704", "0.47207117", "0.47206756", "0.47197464", "0.4719297", "0.47138298", "0.47116864", "0.47072524", "0.4701132", "0.46980605", "0.46916163", "0.4690691", "0.4690691", "0.4690691", "0.46898326", "0.4688515", "0.4685708", "0.46830925", "0.46780664", "0.46780664", "0.46780664", "0.46780664", "0.46780664", "0.46780664", "0.46780664", "0.46780664", "0.46771157", "0.46765238", "0.46742353", "0.4670909", "0.46676463", "0.46668136", "0.4666165", "0.46634427", "0.46569645" ]
0.0
-1
Creates new form frmSplashScreen
public frmSplashScreen() { initComponents(); this.setLocationRelativeTo(null); timer.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showSplashScreen() {\n splashDialog = new SplashScreenDialog(this);\n splashDialog.show();\n }", "@Override\n public void showSplash() {\n }", "private static void splashScreen() {\n\t\t\n\t\tString message = \"Welcome to JProject v\"+VERSION+\"\\nby Gabriel Skoropada\";\n\t\t\n\t\tJOptionPane.showMessageDialog(null, message, \"JProject v\"+VERSION, JOptionPane.NO_OPTION, null);\n\t\t\n\t}", "public void showSplashScreen() {\r\n\r\n JPanel content = (JPanel) getContentPane();\r\n content.setBackground(Color.white);\r\n\r\n // setting the window's properties\r\n \r\n int width = 700;\r\n int height = 438;\r\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\r\n int x = (screen.width - width) / 2;\r\n int y = (screen.height - height) / 2;\r\n setBounds(x, y, width, height);\r\n\r\n // build the splash screen using an image \r\n \r\n JLabel gifImage = new JLabel(new ImageIcon(this.getClass().getResource(\"/splash.gif\")));\r\n content.add(gifImage, BorderLayout.CENTER);\r\n\r\n // display it\r\n setVisible(true);\r\n\r\n new resourceLoader().execute();\r\n }", "public ScreenSplash() {\n initComponents();\n this.setCursor(new Cursor(HAND_CURSOR));\n setBackground(new Color(0, 0, 0, 0));\n }", "private void splashScreen() {\r\n\t\t// Clear the screen, reset the level, and display the legend\r\n\t\tclear();\r\n\t\tdisplay.setLegend(\"Asteroids\");\r\n\r\n\t\t// Place four asteroids near the corners of the screen.\r\n\t\tplaceAsteroids();\r\n\t}", "public Splash() {\n initComponents();\n }", "public Splash() {\n initComponents();\n }", "private void createSplash(ArticleElement ae) {\n\t\tint splashWidth = 427;\n\t\tint splashHeight = 120;\n\t\tint width = ae.getDataParamWidth();\n\t\tint height = ae.getDataParamHeight();\n\t\tif (ae.getDataParamShowMenuBar()) {\n\t\t\t// The menubar has extra height:\n\t\t\theight += 31;\n\t\t}\n\t\tif (ae.getDataParamShowToolBar()) {\n\t\t\t// The toolbar has extra height:\n\t\t\theight += 57;\n\t\t}\n\t\tboolean showLogo = ((width >= splashWidth) && (height >= splashHeight));\n\t\tsplash = new SplashDialog(showLogo);\n\t\t\n\t\tif (width > 0 && height > 0) {\n\t\t\tsetWidth(width + \"px\");\n\t\t\tsetDataParamWidth(ae.getDataParamWidth());\n\t\t\tsetDataParamHeight(ae.getDataParamHeight());\n\t\t\tsetHeight(height + \"px\");\n\t\t\tsplash.addStyleName(\"splash\");\n\t\t\tsplash.getElement().getStyle()\n\t\t\t .setTop((height / 2) - (splashHeight / 2), Unit.PX);\n\t\t\tsplash.getElement().getStyle()\n\t\t\t .setLeft((width / 2) - (splashWidth / 2), Unit.PX);\n\n\t\t}\n\t\taddStyleName(\"jsloaded\");\n\t\tadd(splash);\n\t}", "protected void displaySplashScreen() {\n\t\t// Creates new thread to act as timer.\n\t\tThread logoTimer = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\n\t\t\t\t\tint logoTimer = 0;\n\t\t\t\t\t// Pauses for SPLASH_TIME amount of time\n\t\t\t\t\twhile (logoTimer < SPLASH_TIME) {\n\t\t\t\t\t\tsleep(100);\n\t\t\t\t\t\tlogoTimer = logoTimer + 100;\n\t\t\t\t\t}\n\t\t\t\t\t// Calls the activity from manifest.xml\n\t\t\t\t\tIntent intent = new Intent(getApplicationContext(),\n\t\t\t\t\t\t\tMenuActivity.class);\n\t\t\t\t\tintent.putExtra(\"connect\", connect);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Starts the thread.\n\t\tlogoTimer.start();\n\t}", "public SplashScreen getSplashScreen1() {\n if (splashScreen1 == null) {//GEN-END:|31-getter|0|31-preInit\n // write pre-init user code here\n splashScreen1 = new SplashScreen(getDisplay());//GEN-BEGIN:|31-getter|1|31-postInit\n splashScreen1.setTitle(\"splashScreen1\");\n splashScreen1.setCommandListener(this);\n splashScreen1.setImage(getImage());\n splashScreen1.setText(\"TA-DAAAA!!!\");//GEN-END:|31-getter|1|31-postInit\n // write post-init user code here\n }//GEN-BEGIN:|31-getter|2|\n return splashScreen1;\n }", "public void showSplashScreen(View view) {\n // start the splash screen to show information\n Intent intent = new Intent(LoginActivity.this, InformationActivity.class);\n startActivity(intent);\n }", "public SplashScreen getSplashScreen() {\n if (splashScreen == null) {//GEN-END:|26-getter|0|26-preInit\n // write pre-init user code here\n splashScreen = new SplashScreen(getDisplay());//GEN-BEGIN:|26-getter|1|26-postInit\n splashScreen.setTitle(\"splashScreen\");\n splashScreen.setCommandListener(this);\n splashScreen.setText(\"Who is Java`s mascote?\");//GEN-END:|26-getter|1|26-postInit\n // write post-init user code here\n }//GEN-BEGIN:|26-getter|2|\n return splashScreen;\n }", "public static void showSplashScreen(Class cls, String propFile) {//todo: is this useful ?????.....\n final Class appClass = cls;\n final String resPropFile = propFile;\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n if (splashScreen == null) {\n String filename = \"\";\n String resFile = CoreUtil.getPathOnly(appClass.getName(), true) + \"resources.\" + resPropFile;\n try {\n filename = ResourceBundle.getBundle(resFile)\n .getString(\"image.SplashScreenImage\");\n } catch (MissingResourceException e) {\n System.out.println(\"java.util.MissingResourceException: Couldn't find value for: image.SplashScreenImage\");\n }\n String path = \"resources/images/\" + filename;\n ImageIcon img = new ImageIcon(appClass.getResource(path));\n splashScreen = new JWindow();\n splashLabel = new JLabel(img);\n splashScreen.getContentPane().add(splashLabel);\n splashScreen.pack();\n }\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n splashScreen.setLocation(screenSize.width / 2 - splashScreen.getSize().width / 2,\n screenSize.height / 2 - splashScreen.getSize().height / 2);\n splashScreen.setVisible(true);\n }\n });\n }", "public DisplayPage(SplashPage parent) {\n initComponents();\n this.parent = parent;\n }", "private void showSplash() {\n \t\tthis.splashInfoContainer.setVisibility( View.VISIBLE );\n \t}", "private void SplashScreen() {\n// if (!mSettings.getBoolean(\"PlayedBefore\", false)) {\n// mSolitaireView.DisplaySplash();\n// }\n splas.setVisibility(View.VISIBLE);\n Handler h = new Handler(Looper.getMainLooper());\n h.postDelayed(new Runnable() {\n @Override\n public void run() {\n splas.setVisibility(View.GONE);\n }\n }, 3000);\n }", "@Override\n\tpublic Screen getStartScreen() {\n\t\treturn new Splash(this);\n\t}", "public SplashScreen(String image, int showTime)\r\n {\r\n\tlogo = new ImageIcon(image);\r\n\r\n\tContainer splashPanel = getContentPane();\r\n\tsplashPanel.setLayout(new BorderLayout());\r\n\tBorder bd1 = BorderFactory.createBevelBorder(BevelBorder.RAISED);\r\n\tBorder bd2 = BorderFactory.createEtchedBorder();\r\n\tBorder bd3 = BorderFactory.createCompoundBorder(bd1, bd2);\r\n\t((JPanel) splashPanel).setBorder(bd3);\r\n\r\n\tsplashPanel.add(\"Center\", new JLabel(logo, JLabel.CENTER));\r\n\r\n\tsetUndecorated(true);\r\n\tshowFor(showTime);\r\n }", "public static void hideSplashScreen() {//todo: is this useful ?????.....\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n if (splashScreen != null) {\n splashScreen.setVisible(false);\n splashScreen.dispose();\n }\n }\n });\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(InputForm.this,SplashScreen.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n SplashScreen.show(this); // here\n super.onCreate(savedInstanceState);\n }", "private static void hideSplashScreen() {\n if (splash != null) {\n splash.dispose();\n splash = null;\n }\n }", "public SplashScreen() {\r\n instance = this;\r\n\r\n width = 600;\r\n height = 600;\r\n\r\n icon = \"graphics/application/icon_96.png\";\r\n }", "private void setupSplash() {\n \t\tthis.splashInfoContainer = (LinearLayout) this.findViewById( R.id.edit_gpsfilter_area_splash );\n \n \t\tTextView textView = (TextView) this.splashInfoContainer.findViewById( R.id.edit_gpsfilter_area_splash_text );\n \t\ttextView.setText( Html.fromHtml( this.getString( R.string.edit_gpsfilter_area_splash_text ) ) );\n \n \t\t// Define fade out animation.\n \t\tthis.splashFadeOut = new AlphaAnimation( 1.00f, 0.00f );\n \t\tthis.splashFadeOut.setDuration( SPLASH_FADE_DELAY );\n \t\tthis.splashFadeOut.setAnimationListener( new AnimationListener() {\n \t\t\tpublic void onAnimationStart( Animation animation ) {\n \t\t\t}\n \n \t\t\tpublic void onAnimationRepeat( Animation animation ) {\n \t\t\t}\n \n \t\t\tpublic void onAnimationEnd( Animation animation ) {\n \t\t\t\tsplashInfoContainer.setVisibility( View.GONE );\n \t\t\t}\n \t\t} );\n \n \t\t// Don't show if not new and we got polygon.\n \t\tif ( !this.isConsideredFresh() ) {\n \t\t\tthis.splashInfoContainer.setVisibility( View.GONE );\n \t\t}\n \t}", "public void startSplashGameOver(){\r\n\t\t\r\n\t\tpanel[CurrentPanel].stop();\r\n\t\t\r\n\t\tDriver.panel[CurrentPanel].setVisible(false);\r\n\t\tgame.remove(panel[CurrentPanel] );\r\n\t\t\r\n\t\tCurrentPanel = 0;\r\n\t\t\r\n\t\t\r\n\t\tpanel[CurrentPanel] = new Splash(this);\r\n\t\t\r\n\t\tadd( panel[CurrentPanel] );\r\n\t\tpanel[CurrentPanel].setVisible(true);\r\n\t\tgame.setVisible(true);\r\n\t\t\r\n\t\tpanel[CurrentPanel].start();\r\n\t\t\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n UserInfoData entry = new UserInfoData(this);\n \t\n \tentry.open();\n \t\n \tfinal String data = entry.getData();\n \t\n \tentry.close();\n Thread splashTimer = new Thread(){\n \tpublic void run(){\n \t\ttry{\n \t\t\tsleep(3000);\n \t\t\t\n \t}\n \t\tcatch(InterruptedException e){\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t}\n finally{\n \tif (!data.equals(\"\")){\n \t\t\tstartActivity(new Intent (\"com.JacobyApps.android.mainMenu\")); \n \t}\n \t\telse{\n \n startActivity(new Intent (\"android.intent.action.Signup\"));\n \t}\n \tfinish();\n \t \n }\n \t \n \t}\n \t\n };\n splashTimer.start();\n }", "public void startSplash(int nextPanel,Man m){\r\n\t\t\r\n\t\tpanel[CurrentPanel].stop();\r\n\t\t\r\n\t\tDriver.panel[CurrentPanel].setVisible(false);\r\n\t\tgame.remove(panel[CurrentPanel] );\r\n\t\t\r\n\t\tCurrentPanel = nextPanel;\r\n\t\t\r\n\t\t\r\n\t\tpanel[CurrentPanel] = new Splash(this,nextPanel,m);\r\n\t\t\r\n\t\tadd( panel[CurrentPanel] );\r\n\t\tpanel[CurrentPanel].setVisible(true);\r\n\t\tgame.setVisible(true);\r\n\t\t\r\n\t\tpanel[CurrentPanel].start();\r\n\t\t\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n makeActivityFullScreen();\n setContentView(R.layout.activity_splash);\n }", "private void showLocksForm() throws edu.mit.coeus.exception.CoeusException{\r\n CurrentLockForm currentLockForm = new CurrentLockForm(mdiForm,true);\r\n currentLockForm.display();\r\n }", "public static void main(String args[]) \n {\n //declare constant to hold the speed of the loader\n final int LOAD_SPEED = 10;\n //create the new splash screen called mySplash\n TspSplash mySplash = new TspSplash();\n //center splash\n mySplash.setLocationRelativeTo(null);\n //set icon \n mySplash.setIconImage(Toolkit.getDefaultToolkit().getImage\n (\"src/Images/Salesperson.png\")); \n //make splash visible\n mySplash.setVisible(true);\n \n try\n {\n //create a variable which will count loop to 100, incrementing by\n //one until it reaches 100\n for(int loader = 0; loader <= 100; loader++)\n {\n //set speed of counter (miliseconds)\n Thread.sleep(LOAD_SPEED);\n //display the counter in the loading label\n mySplash.loadingJLabel.setText(\"Loading \" \n + Integer.toString(loader) + \"%\");\n //increment the progress bar with the counter\n mySplash.splashJProgressBar.setValue(loader);\n //when the loop gets to 100, close the splash screen\n if (loader == 100)\n {\n //when loader is done, close the splash screen\n mySplash.dispose();\n }\n }\n }\n catch (Exception exp)\n {\n JOptionPane.showMessageDialog(null, \"Loading error--\" \n + \"Cannot load splash\");\n }\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TspGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TspGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TspGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TspGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() \n {\n public void run() \n {\n new TspGUI().setVisible(true);\n }\n });\n }", "public static void splashScreen() {\n System.out.println(line(\"-\", 80));\n System.out.println(\"Welcome to DavisBaseLite\"); // Display the string.\n System.out.println(\"DavisBaseLite Version \" + getVersion());\n System.out.println(getCopyright());\n System.out.println(\"\\nType \\\"help;\\\" to display supported commands.\");\n System.out.println(line(\"-\", 80));\n }", "public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n // Do not display title bar, this makes the splash screen really full screen\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n \r\n // Check if we need to display the splash screen. If no, go directly to the main intent\r\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\r\n boolean showscreen = prefs.getBoolean(\"showsplashscreen\", true);\r\n if (! showscreen) {\r\n \t gotoMainIntent();\r\n \t return;\r\n }\r\n \r\n\r\n // Set the layout\r\n setContentView(R.layout.splash);\r\n\r\n // This will run after a specified time (SPLASH_DISPLAY_LENGHT milliseconds)\r\n new Handler().postDelayed(new Runnable(){\r\n public void run() {\r\n \t gotoMainIntent();\r\n }\r\n }, SPLASH_DISPLAY_LENGHT);\r\n }", "public frmPrincipal() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n Image imgIconoApp = new ImageIcon(\"src/vistas/icon.png\").getImage();\n setIconImage(imgIconoApp);\n }", "public static void splashScreen() {\n System.out.println(printLine(\"-\",100));\n System.out.println(\"Welcome to KaviBase\"); // Display the string.\n System.out.println(\"Version \" + getVersion());\n System.out.println(getCopyright());\n System.out.println(\"\\nType \\\"help;\\\" to display supported commands.\");\n System.out.println(\"\\nEvery command should end with semicolon ;\");\n System.out.println(printLine(\"-\",100));\n }", "public SplashWindow() {\n imagem = new JLabel(new ToImageIcon().toImageIcon(new ImagemLoad().imageLoader(img)));\n imagem.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n }", "private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }", "private void showSplash ()\n {\n ResourceBundle resourceBundle = null;\n try\n {\n resourceBundle = ResourceBundle.getBundle(\"splash\", Locale.getDefault());\n }\n catch (MissingResourceException ignored)\n {\n System.out.println(\"Info: file splash.properties not found in resources root directory.\");\n }\n\n FXMLLoader fxmlLoader = new FXMLLoader();\n if (resourceBundle != null)\n {\n fxmlLoader.setResources(resourceBundle);\n }\n try\n {\n primaryStage.setScene(new Scene(fxmlLoader.load(getClass().getResourceAsStream(\"/splash.fxml\"))));\n primaryStage.initStyle(StageStyle.UNDECORATED);\n primaryStage.centerOnScreen();\n primaryStage.show();\n }\n catch (NullPointerException ignored)\n {\n System.out.println(\"Info: file splash.fxml not found in resources root directory.\");\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n\n }", "@Override\n public void onCreate(final Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.splash_screen);\n\n /* New Handler to start the Menu-Activity\n * and close this Splash-Screen after some seconds.*/\n new Handler().postDelayed(() -> {\n Intent mainIntent = new Intent(SplashScreen.this, MainActivity.class);\n SplashScreen.this.startActivity(mainIntent);\n SplashScreen.this.finish();\n }, SPLASH_DISPLAY_SECONDS * 1000);\n }", "private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed\r\n WelcomeScreen obj = new WelcomeScreen();\r\n obj.setVisible(true);\r\n this.dispose();\r\n }", "public SplashScreen(EventHandler<ActionEvent> splashScreenComboBoxEvent) {\n\t\troot = new BorderPane();\n\t\troot.setCenter(makeLanguageSelectionView(splashScreenComboBoxEvent));\n\t}", "public Login() \n {\n super();\n create();\n this.setVisible(true);\n initComponents();\n }", "@Override\n public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n //Assign the splashscreen_activity_main layout to the SplashScreenActivity\n setContentView(R.layout.splashscreen_activity_main);\n\n /* New Handler to start the Menu-Activity\n * and close this Splash-Screen after some seconds.*/\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n /* Create an Intent that will start the Menu-Activity. */\n Intent mainIntent = new Intent(SplashscreenActivity.this, MainActivity.class);\n SplashscreenActivity.this.startActivity(mainIntent);\n //We call finish() function to prevent user to come back to splashScreen\n SplashscreenActivity.this.finish();\n }\n }, SPLASH_DISPLAY_LENGTH);\n }", "protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}", "@Override \r\n public void onCreate(Bundle icicle) { \r\n super.onCreate(icicle);\r\n \r\n getWindow().setFormat(PixelFormat.RGBA_8888);\r\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER);\r\n setContentView(R.layout.splash_activity);\r\n \r\n //Display the current version number \r\n PackageManager pm = getPackageManager(); \r\n try {\r\n \tPackageInfo pi = pm.getPackageInfo(\"org.mems\", 0);\r\n TextView versionNumber = (TextView) findViewById(R.id.versionNumber); \r\n versionNumber.setText(\"Version \" + pi.versionName); \r\n } catch (NameNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n new Handler().postDelayed(new Runnable() {\r\n public void run() { \r\n \tIntent mainIntent = new Intent(SplashActivity.this, MainActivity.class); \r\n \tSplashActivity.this.startActivity(mainIntent); \r\n \tSplashActivity.this.finish(); \r\n } \r\n }, 2000); //2000 for release \r\n }", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n requestWindowFeature(1);\n getWindow().setFlags(1024, 1024);\n setContentView(R.layout.activity_splash_screen);\n new Handler().postDelayed(new Runnable() {\n public void run() {\n SplashScreen.this.startActivity(new Intent(SplashScreen.this, MainActivity.class));\n SplashScreen.this.finish();\n }\n }, 3000);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n SplashScreen.show(this);\n super.onCreate(savedInstanceState);\n }", "public void launchStartupScreen() {\n\t\tnew StartUpScreen(this);\n\t}", "private void hideSplash() {\n \t\tthis.splashInfoContainer.startAnimation( this.splashFadeOut );\n \t}", "void setSplashContentView() {\n// verifyUser = PreferenceHelper.isVerifyMail(getContext());\n // user is logged in app and is active.\n view.setSplashViewLayout(R.layout.activity_splash);\n\n }", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.splashscreen);\n ((LinearLayout)findViewById(R.id.bgsplashid)).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent mainIntent = new Intent(splash.this,firstAct.class);\n isClicked = true;\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n }\n });\n\n /* New Handler to start the Menu-Activity\n * and close this Splash-Screen after some seconds.*/\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n /* Create an Intent that will start the Menu-Activity. */\n if(!isClicked) {\n Intent mainIntent = new Intent(splash.this, firstAct.class);\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n }\n }\n }, SPLASH_DISPLAY_LENGTH);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //TODO: add any code you want to do while the splash screen is showing before the MainActivity is shown\n\n// try {\n// Thread.sleep(5000);\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "@Override\r\n\t\t public void run() {\n\t\t Intent i = new Intent(SplashScreen.this, MainMenuActivity.class);\r\n\t\t startActivity(i);\r\n\t\t \r\n\t\t //Menyelesaikan Splashscreen\r\n\t\t finish();\r\n\t\t }", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.activity_splash_screen);\n\n intent = new Intent(this, MainActivity.class);\n\n\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n\n //Start MainActivity\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGTH);\n }", "static void renderSplashFrame(Graphics2D g) {\n\t\tfinal String version = \"Release: 2.1.1 - release date: 2022-07-31\";\r\n\t\tg.setComposite(AlphaComposite.Clear);\r\n\t\tg.fillRect(120, 140, 200, 40);\r\n\t\tg.setPaintMode();\r\n\t\tg.setColor(Color.BLACK);\r\n\t\tg.drawString(\"Loading \" + version + \"...\", 120, 350);\r\n\t}", "public LoginW() {\n this.setUndecorated(true);\n initComponents();\n origin = pnlBackG.getBackground();\n lblErrorLogin.setVisible(false);\n this.setLocationRelativeTo(null);\n Fondo();\n }", "public Main() {\r\n\t\ttry {\r\n\t\t\tcreateFolders();\r\n\t\t\trestaurar();\r\n\t\t\tMaterialLookAndFeel materialTheme = new MaterialLookAndFeel(\r\n\t\t\t\t\t(MaterialTheme) Utils.getInstance().getCurrentTheme());\r\n\r\n\t\t\tUIManager.setLookAndFeel(materialTheme);\r\n\t\t\tUIManager.getLookAndFeelDefaults().put(\"TabbedPane[tab].height\", 5);\r\n\t\t\tUIManager.getLookAndFeelDefaults().put(\"OptionPane.minimumSize\",new Dimension(800,100));\r\n\t\t\tSplash screen = new Splash();\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tscreen.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tThread t1 = new Thread(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tcreateTables();\r\n\t\t\t\t\tTableModelMembro.getInstance().uploadDataBase();\r\n\t\t\t\t\tTableModelFuncionario.getInstance().uploadDataBase();\r\n\t\t\t\t\tTableModelFinancas.getInstance().uploadDataBase();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tt1.start();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t\tfor (int i = 0; i <= 100; i++) {\r\n\t\t\t\t\tThread.sleep(35);\r\n\t\t\t\t\tEventQueue.invokeLater(new Incrementar(i, screen));\r\n\t\t\t\t}\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tString message = \"Ocorreu um erro ao abrir o programa. Tenta novamente!\\n\" + e.getMessage();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message, \"Erro\", JOptionPane.ERROR_MESSAGE,\r\n\t\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/FC_SS.jpg\")));\r\n\t\t\t\tLog.getInstance().printLog(message);\r\n\t\t\t}\r\n\r\n\t\t\tt1.join();\r\n\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tscreen.setVisible(false);\r\n\t\t\t\t\tLogin.getInstance().open();\r\n\t\t\t\t\tinicialTime = System.currentTimeMillis();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tLog.getInstance().printLog(\"O programa iniciou\");\r\n\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t\tString message = \"Ocorreu um erro ao abrir o programa. Tenta novamente!\\n\" + e1.getMessage();\r\n\t\t\tJOptionPane.showMessageDialog(null, message, \"Erro\", JOptionPane.ERROR_MESSAGE,\r\n\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/FC_SS.jpg\")));\r\n\t\t\tLog.getInstance().printLog(message);\r\n\t\t\tSystem.exit(1);\r\n\r\n\t\t}\r\n\t}", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "public loginform() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2 - this.getWidth()/2, dim.height/2 - this.getHeight()/2);\n conn = MySql.connectDB();\n timer = new Timer(50, new MyProgressBarManager());\n }", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public Form getLoginForm() {\n if (LoginForm == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n LoginForm = new Form(\"Welcome\", new Item[]{getTextField()});//GEN-BEGIN:|14-getter|1|14-postInit\n LoginForm.addCommand(getExitCommand());\n LoginForm.addCommand(getOkCommand());\n LoginForm.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return LoginForm;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pgbCargando = new javax.swing.JProgressBar();\n lblCargando = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n setOpacity(0.0F);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n getContentPane().add(pgbCargando, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 248, 420, 3));\n\n lblCargando.setFont(new java.awt.Font(\"Segoe UI\", 0, 9)); // NOI18N\n lblCargando.setText(\"Cargando...\");\n getContentPane().add(lblCargando, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, -1, -1));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/pkgAgenda_Virtual/Images/SplashScreen.png\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "public void disposeSplashWindow()\n {\n \n }", "public void startProcessPlantillaFactura(Boolean conSplash) throws Exception {\n\t\t\r\n\t\tfinal JTabbedPane jTabbedPaneBusquedasPlantillaFactura=this.jTabbedPaneBusquedasPlantillaFactura; \r\n\t\t\r\n\t\tfinal JPanel jPanelParametrosReportesPlantillaFactura=this.jPanelParametrosReportesPlantillaFactura;\r\n\t\t//final JScrollPane jScrollPanelDatosPlantillaFactura=this.jScrollPanelDatosPlantillaFactura;\r\n\t\tfinal JTable jTableDatosPlantillaFactura=this.jTableDatosPlantillaFactura;\t\t\r\n\t\tfinal JPanel jPanelPaginacionPlantillaFactura=this.jPanelPaginacionPlantillaFactura;\r\n\t\t//final JScrollPane jScrollPanelDatosEdicionPlantillaFactura=this.jScrollPanelDatosEdicionPlantillaFactura;\r\n\t\tfinal JPanel jPanelAccionesPlantillaFactura=this.jPanelAccionesPlantillaFactura;\r\n\t\t\r\n\t\tJPanel jPanelCamposAuxiliarPlantillaFactura=new JPanelMe();\r\n\t\tJPanel jPanelAccionesFormularioAuxiliarPlantillaFactura=new JPanelMe();\r\n\t\t\r\n\t\tif(this.jInternalFrameDetalleFormPlantillaFactura!=null) {\r\n\t\t\tjPanelCamposAuxiliarPlantillaFactura=this.jInternalFrameDetalleFormPlantillaFactura.jPanelCamposPlantillaFactura;\r\n\t\t\tjPanelAccionesFormularioAuxiliarPlantillaFactura=this.jInternalFrameDetalleFormPlantillaFactura.jPanelAccionesFormularioPlantillaFactura;\r\n\t\t}\r\n\t\t\r\n\t\tfinal JPanel jPanelCamposPlantillaFactura=jPanelCamposAuxiliarPlantillaFactura;\r\n\t\tfinal JPanel jPanelAccionesFormularioPlantillaFactura=jPanelAccionesFormularioAuxiliarPlantillaFactura;\r\n\t\t\r\n\t\t\r\n\t\tfinal JMenuBar jmenuBarPlantillaFactura=this.jmenuBarPlantillaFactura;\r\n\t\tfinal JToolBar jTtoolBarPlantillaFactura=this.jTtoolBarPlantillaFactura;\t\t\r\n\t\t\r\n\t\t\r\n\t\tJMenuBar jmenuBarDetalleAuxiliarPlantillaFactura=new JMenuBar();\r\n\t\tJToolBar jTtoolBarDetalleAuxiliarPlantillaFactura=new JToolBar();\t\t\r\n\t\t\r\n\t\tif(this.jInternalFrameDetalleFormPlantillaFactura!=null) {\r\n\t\t\tjmenuBarDetalleAuxiliarPlantillaFactura=this.jInternalFrameDetalleFormPlantillaFactura.jmenuBarDetallePlantillaFactura;\r\n\t\t\tjTtoolBarDetalleAuxiliarPlantillaFactura=this.jInternalFrameDetalleFormPlantillaFactura.jTtoolBarDetallePlantillaFactura;\r\n\t\t}\r\n\t\t\r\n\t\tfinal JMenuBar jmenuBarDetallePlantillaFactura=jmenuBarDetalleAuxiliarPlantillaFactura;\r\n\t\tfinal JToolBar jTtoolBarDetallePlantillaFactura=jTtoolBarDetalleAuxiliarPlantillaFactura;\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(Constantes2.CON_PROCESO_HILO) {\r\n\t\t\tThread threadRunnableProcess;\r\n\t\t\tProcessRunnable processRunnable;\r\n\t\t\t\r\n\t\t\tprocessRunnable=new ProcessRunnable();\r\n\t\t\t\r\n\t\t\tprocessRunnable.setsTipo(\"START\");\r\n\t\t\tprocessRunnable.setDesktop(jDesktopPane);\r\n\t\t\tprocessRunnable.setModuloActual(moduloActual);\r\n\t\t\tprocessRunnable.setModuloUsuarioSeleccionado(moduloActual);\r\n\t\t\tprocessRunnable.setOpcionActual(opcionActual);\r\n\t\t\tprocessRunnable.setParametroGeneralSg(parametroGeneralSg);\r\n\t\t\tprocessRunnable.setParametroGeneralUsuario(parametroGeneralUsuario);\r\n\t\t\tprocessRunnable.setResumenUsuarioActual(resumenUsuarioActual);\r\n\t\t\tprocessRunnable.setUsuarioActual(usuarioActual);\r\n\t\t\t\r\n\t\t\tprocessRunnable.jTabbedPaneBusquedas=jTabbedPaneBusquedasPlantillaFactura;\r\n\t\t\tprocessRunnable.jPanelParametrosReportes=jPanelParametrosReportesPlantillaFactura;\r\n\t\t\tprocessRunnable.jTableDatos=jTableDatosPlantillaFactura;\r\n\t\t\tprocessRunnable.jPanelCampos=jPanelCamposPlantillaFactura;\r\n\t\t\tprocessRunnable.jPanelPaginacion=jPanelPaginacionPlantillaFactura;\r\n\t\t\tprocessRunnable.jPanelAcciones=jPanelAccionesPlantillaFactura;\r\n\t\t\tprocessRunnable.jPanelAccionesFormulario=jPanelAccionesFormularioPlantillaFactura;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tprocessRunnable.jmenuBar=jmenuBarPlantillaFactura;\r\n\t\t\tprocessRunnable.jmenuBarDetalle=jmenuBarDetallePlantillaFactura;\r\n\t\t\tprocessRunnable.jTtoolBar=jTtoolBarPlantillaFactura;\r\n\t\t\tprocessRunnable.jTtoolBarDetalle=jTtoolBarDetallePlantillaFactura;\r\n\t\t\tprocessRunnable.jInternalFrameBase=this;\r\n\t\t\t\r\n\t\t\t//processRunnable.CargarObjetosRendimientoCriticoModuloInventario();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthreadRunnableProcess=new Thread(processRunnable);//.start();\r\n\t\t\t\t\t\r\n\t\t\tthreadRunnableProcess.start();\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tFuncionesSwing.enableDisablePanels(false,jTabbedPaneBusquedasPlantillaFactura ,jPanelParametrosReportesPlantillaFactura,jTableDatosPlantillaFactura, /*jScrollPanelDatosPlantillaFactura,*/jPanelCamposPlantillaFactura,jPanelPaginacionPlantillaFactura, /*jScrollPanelDatosEdicionPlantillaFactura,*/ jPanelAccionesPlantillaFactura,jPanelAccionesFormularioPlantillaFactura,jmenuBarPlantillaFactura,jmenuBarDetallePlantillaFactura,jTtoolBarPlantillaFactura,jTtoolBarDetallePlantillaFactura);\r\n\t\t\r\n\t\t\tstartProcess();//this.\r\n\t\t}\r\n\t\t\t\t\t\t\r\n\t\t/*\r\n\t\tif(conSplash) {\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t public void run() {\r\n\t\t\t \t try {\r\n\t\t\t\t\t\t\tFuncionesSwing.enableDisablePanels(false,jTabbedPaneBusquedasPlantillaFactura ,jPanelParametrosReportesPlantillaFactura, jScrollPanelDatosPlantillaFactura,jPanelPaginacionPlantillaFactura, jScrollPanelDatosEdicionPlantillaFactura, jPanelAccionesPlantillaFactura,jPanelAccionesFormularioPlantillaFactura,jmenuBarPlantillaFactura,jmenuBarDetallePlantillaFactura,jTtoolBarPlantillaFactura,jTtoolBarDetallePlantillaFactura);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tstartProcess();//this.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t});\r\n\t\t}\r\n\t\t*/\r\n\t}", "private void removeSplashScreen(final boolean z) {\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n /* class org.apache.cordova.splashscreen.SplashScreen.AnonymousClass4 */\n\n public void run() {\n if (SplashScreen.splashDialog != null && SplashScreen.this.splashImageView != null && SplashScreen.splashDialog.isShowing()) {\n int fadeDuration = SplashScreen.this.getFadeDuration();\n if (fadeDuration <= 0 || z) {\n SplashScreen.this.spinnerStop();\n SplashScreen.splashDialog.dismiss();\n Dialog unused = SplashScreen.splashDialog = null;\n SplashScreen.this.splashImageView = null;\n return;\n }\n AlphaAnimation alphaAnimation = new AlphaAnimation(1.0f, 0.0f);\n alphaAnimation.setInterpolator(new DecelerateInterpolator());\n alphaAnimation.setDuration((long) fadeDuration);\n SplashScreen.this.splashImageView.setAnimation(alphaAnimation);\n SplashScreen.this.splashImageView.startAnimation(alphaAnimation);\n alphaAnimation.setAnimationListener(new Animation.AnimationListener() {\n /* class org.apache.cordova.splashscreen.SplashScreen.AnonymousClass4.AnonymousClass1 */\n\n public void onAnimationRepeat(Animation animation) {\n }\n\n public void onAnimationStart(Animation animation) {\n SplashScreen.this.spinnerStop();\n }\n\n public void onAnimationEnd(Animation animation) {\n if (SplashScreen.splashDialog != null && SplashScreen.this.splashImageView != null && SplashScreen.splashDialog.isShowing()) {\n SplashScreen.splashDialog.dismiss();\n Dialog unused = SplashScreen.splashDialog = null;\n SplashScreen.this.splashImageView = null;\n }\n }\n });\n }\n }\n });\n }", "public GUIHandler(Display pDisplay) {\r\n\t\tdisplay = pDisplay;\r\n\r\n\t\t/* Creates and shows a splash screen. */\r\n\t\tshell = new Shell(display, SWT.NO_TRIM);\r\n\t\tInputStream is = getClass().getResourceAsStream(\"bilder/logo.jpg\");\r\n\t\tImage logo = new Image(display, is);\r\n\t\tImageData imdata = logo.getImageData();\r\n\t\tshell.setSize(imdata.width, imdata.height);\r\n\t\tRectangle r = display.getBounds();\r\n\t\tint shellX = (r.width - imdata.width) / 2;\r\n\t\tint shellY = (r.height - imdata.height) / 2;\r\n\t\tshell.setLocation(shellX, shellY);\r\n\t\tshell.open();\r\n\t\tGC gc = new GC(shell);\r\n\t\tgc.drawImage(logo,0,0);\r\n\t\t\r\n\t\t/* Do as much work as possible while the splash screen is showing. */\r\n\t\tmodel = new MinimedModel();\r\n\t\tGridLayout gridLayout = new GridLayout();\r\n\t\tgridLayout.marginHeight = 0;\r\n\t\tgridLayout.marginWidth = 0;\r\n\t\tgridData = new GridData(GridData.FILL_BOTH);\r\n\t\tcontroller = new StartController(model, display);\r\n\t\tcontroller.addObserver(this);\r\n\t\t\r\n\t\t/* Removes the splash screen. */\r\n\t\tgc.dispose();\r\n\t\tlogo.dispose();\r\n\t\tshell.dispose();\r\n\r\n\t\t/* Creates a new shell and starts the rest of the program. */\r\n\t\tshell = new Shell(display, SWT.RESIZE);\r\n\t\tshell.setText(\"MiniMed\");\r\n\t\tshell.setLayout(gridLayout);\r\n\t\t//shell.setBounds(200,200,240,320); // For testing only! remove this line!!!!!\r\n\t\tview = new StartView(shell, model, (StartController)controller);\r\n\t\tview.setLayoutData(gridData);\r\n\r\n\t\tshell.open();\r\n\t\twhile (!shell.isDisposed()) {\r\n\t\t\tif (!display.readAndDispatch ()) display.sleep ();\r\n\t\t}\r\n\t\tdisplay.dispose ();\r\n\t}", "public frm_menu() {\n initComponents();\n\n //if (c_conectar.verificar_conexion()) {\n if (c_conectar.conectar()) {\n cargar_login();\n } else {\n JOptionPane.showMessageDialog(null, \"ERROR!! , NO ES POSIBLE CONECTAR A LA BASE DE DATOS\");\n System.exit(0);\n }\n// } else {\n// JOptionPane.showMessageDialog(null, \"ERROR!! , NO TIENE SERVICIO DE INTERNET\\nVERIFIQUE SU CONEXION\\nSE CERRARA EL SISTEMA LUEGO DE ESTE MENSAJE\");\n// System.exit(0);\n// }\n this.setExtendedState(JFrame.MAXIMIZED_BOTH);\n \n obtener_version_pc();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n GLSurfaceView view = new GLSurfaceView(this);\n view.setEGLConfigChooser(8, 8, 8, 8, 16, 0); //Transparent background\n view.getHolder().setFormat(PixelFormat.TRANSLUCENT); //Transparent background\n view.setRenderer(new OpenGLRenderer(this));\n setContentView(view);\n //Transition to Landing screen\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n // This app main activity\n Intent i = new Intent(SplashActivity.this, SearchActivity.class);\n startActivity(i);\n finish();\n }\n }, SPLASH_TIME_OUT);\n }", "public WelcomeScreen() {\n initComponents();\n }", "public void run() {\n Intent i = new Intent(activity_splash.this, MainActivity.class);\r\n startActivity(i); // menghubungkan activity splashscren ke xml\r\n //jeda selesai Splashscreen\r\n this.finish();\r\n }", "public frmMain(Login newLogin) {\n\t\t\n\t\tsetUndecorated(true);\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetLocationByPlatform(true);\n\t\tsetExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(0, 0, screenSize.width, screenSize.height);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setMinimumSize(new Dimension(4000, 10));\n\t\tcontentPane.setPreferredSize(new Dimension(4000, 10));\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tpanelMenu = new JPanel();\n\t\tpanelMenu.setMaximumSize(new Dimension(160, 32767));\n\t\tpanelMenu.setBackground(new Color(51, 51, 51));\n\t\tpanelMenu.setPreferredSize(new Dimension(250, 10));\n\t\tpanelMenu.setBounds(new Rectangle(0, 0, 200, 0));\n\t\tcontentPane.add(panelMenu, BorderLayout.WEST);\n\t\tpanelMenu.setLayout(null);\n\t\t\n\t\tJLabel lblHighlightNotifications = new JLabel(\"\");\n\t\tlblHighlightNotifications.setOpaque(true);\n\t\tlblHighlightNotifications.setBackground(new Color(0, 255, 255));\n\t\tlblHighlightNotifications.setBounds(238, 86, 12, 85);\n\t\tpanelMenu.add(lblHighlightNotifications);\n\t\t\n\t\t\n\t\tJLabel lblHighlightThesis = new JLabel(\"\");\n\t\tlblHighlightThesis.setOpaque(true);\n\t\tlblHighlightThesis.setBackground(Color.CYAN);\n\t\tlblHighlightThesis.setBounds(238, 275, 12, 82);\n\t\tpanelMenu.add(lblHighlightThesis);\n\t\t\n\t\tJLabel lblHighlightSettings = new JLabel(\"\");\n\t\tlblHighlightSettings.setOpaque(true);\n\t\tlblHighlightSettings.setBackground(Color.CYAN);\n\t\tlblHighlightSettings.setBounds(238, 461, 12, 82);\n\t\tpanelMenu.add(lblHighlightSettings);\n\t\t\n\t\tJLabel lblHighlightStatistics = new JLabel(\"\");\n\t\tlblHighlightStatistics.setOpaque(true);\n\t\tlblHighlightStatistics.setBackground(Color.CYAN);\n\t\tlblHighlightStatistics.setBounds(238, 647, 12, 82);\n\t\tpanelMenu.add(lblHighlightStatistics);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Notifications\");\n\t\tlblNewLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblNewLabel.setForeground(new Color(169, 169, 169));\n\t\tlblNewLabel.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tlblNewLabel.setBounds(61, 138, 128, 30);\n\t\tpanelMenu.add(lblNewLabel);\n\t\t\n\t\tJLabel label_13 = new JLabel(\"\");\n\t\tlabel_13.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlabel_13.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/dashboard_diploma_icon.png\")));\n\t\tlabel_13.setBounds(100, 275, 50, 50);\n\t\tpanelMenu.add(label_13);\n\t\t\n\t\tJLabel lblDiploma = new JLabel(\"Thesis\");\n\t\tlblDiploma.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblDiploma.setForeground(new Color(169, 169, 169));\n\t\tlblDiploma.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tlblDiploma.setBounds(94, 327, 61, 30);\n\t\tpanelMenu.add(lblDiploma);\n\t\t\n\t\tJLabel label_14 = new JLabel(\"\");\n\t\tlabel_14.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlabel_14.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings-gears.png\")));\n\t\tlabel_14.setBounds(100, 461, 50, 50);\n\t\tpanelMenu.add(label_14);\n\t\t\n\t\tJLabel lblSettings = new JLabel(\"Settings\");\n\t\tlblSettings.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblSettings.setForeground(new Color(169, 169, 169));\n\t\tlblSettings.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tlblSettings.setBounds(84, 513, 81, 30);\n\t\tpanelMenu.add(lblSettings);\n\t\t\n\t\tJLabel label_15 = new JLabel(\"\");\n\t\tlabel_15.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlabel_15.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/bars.png\")));\n\t\tlabel_15.setBounds(100, 647, 50, 50);\n\t\tpanelMenu.add(label_15);\n\t\t\n\t\tJLabel lblStatistics = new JLabel(\"Statistics\");\n\t\tlblStatistics.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblStatistics.setForeground(new Color(169, 169, 169));\n\t\tlblStatistics.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tlblStatistics.setBounds(81, 699, 87, 30);\n\t\tpanelMenu.add(lblStatistics);\n\t\t\n\t\tpanelMenuNotifications = new JPanel();\n\t\tpanelMenuNotifications.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tpanelMenuNotifications.setOpaque(false);\n\t\tpanelMenuNotifications.setBounds(0, 69, 250, 123);\n\t\tpanelMenu.add(panelMenuNotifications);\n\t\t\n\t\tpanelMenuThesis = new JPanel();\n\t\tpanelMenuThesis.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tpanelMenuThesis.setOpaque(false);\n\t\tpanelMenuThesis.setBounds(0, 253, 250, 123);\n\t\tpanelMenu.add(panelMenuThesis);\n\t\t\n\t\tpanelMenuSettings = new JPanel();\n\t\tpanelMenuSettings.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tpanelMenuSettings.setOpaque(false);\n\t\tpanelMenuSettings.setBounds(0, 441, 250, 123);\n\t\tpanelMenu.add(panelMenuSettings);\n\t\t\n\t\tpanelMenuStats = new JPanel();\n\t\tpanelMenuStats.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tpanelMenuStats.setOpaque(false);\n\t\tpanelMenuStats.setBounds(0, 625, 250, 123);\n\t\tpanelMenu.add(panelMenuStats);\n\t\t\n\t\tJButton btnMyAccount = new JButton(\"MY ACCOUNT\");\n\t\t\n\t\tbtnMyAccount.setContentAreaFilled(false);\n\t\tbtnMyAccount.setFocusPainted(false);\n\t\tbtnMyAccount.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbtnMyAccount.setForeground(new Color(102, 102, 102));\n\t\tbtnMyAccount.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tbtnMyAccount.setBorder(UIManager.getBorder(\"Button.border\"));\n\t\tbtnMyAccount.setBounds(33, 748, 186, 64);\n\t\tpanelMenu.add(btnMyAccount);\n\t\t\n\t\tJButton btnLogOut = new JButton(\"LOG OUT\");\n\t\tbtnLogOut.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tLoginForm window = new LoginForm();\n\t\t\t\twindow.frmLogin.setVisible(true);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnLogOut.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tLoginForm window = new LoginForm();\n\t\t\t\twindow.frmLogin.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnLogOut.setForeground(new Color(102, 102, 102));\n\t\tbtnLogOut.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tbtnLogOut.setFocusPainted(false);\n\t\tbtnLogOut.setContentAreaFilled(false);\n\t\tbtnLogOut.setBorder(UIManager.getBorder(\"Button.border\"));\n\t\tbtnLogOut.setBounds(33, 812, 186, 64);\n\t\tpanelMenu.add(btnLogOut);\n\t\t\n\t\tpanelTop = new JPanel();\n\t\tpanelTop.setMinimumSize(new Dimension(10, 200));\n\t\tpanelTop.setPreferredSize(new Dimension(10, 170));\n\t\tcontentPane.add(panelTop, BorderLayout.NORTH);\n\t\tpanelTop.setLayout(new BoxLayout(panelTop, BoxLayout.X_AXIS));\n\t\t\n\t\tpanelLogo = new JPanel();\n\t\tpanelLogo.setMinimumSize(new Dimension(250, 200));\n\t\tpanelLogo.setPreferredSize(new Dimension(250, 200));\n\t\tpanelLogo.setSize(new Dimension(160, 0));\n\t\tpanelLogo.setMaximumSize(new Dimension(250, 32767));\n\t\tpanelLogo.setBackground(new Color(51, 204, 204));\n\t\tpanelTop.add(panelLogo);\n\t\tpanelLogo.setLayout(null);\n\t\t\n\t\tJLabel lblLogo = new JLabel(\"\");\n\t\tlblLogo.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/dashboard_logo_icon.png\")));\n\t\tlblLogo.setBounds(66, 23, 117, 117);\n\t\tpanelLogo.add(lblLogo);\n\t\t\n\t\tpanelPerson = new JPanel();\n\t\tpanelPerson.setMinimumSize(new Dimension(10, 200));\n\t\tpanelPerson.setMaximumSize(new Dimension(32767, 200));\n\t\tpanelPerson.setBackground(new Color(51, 204, 255));\n\t\tpanelPerson.setPreferredSize(new Dimension(270, 200));\n\t\tpanelTop.add(panelPerson);\n\t\tpanelPerson.setLayout(null);\n\t\t\n\t\t// Metoda qe merr si paramter se cfare lloj anetari eshte (student,profesor ose administrator)\n\t\t// dhe shfaq ikonen dhe labelen perkatese tek ana djathte larte\n\t\tuserMember(newLogin);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\tcontentPane.add(panelMain, BorderLayout.CENTER);\n\t\tpanelMain.setLayout(null);\n\t\t\n\t\t//DB\n\t\t// Marrja e te dhenave nga Databasa (Tema per studentin)\n\t\tString[] columnNames = {\"Tema\",\n \"Viti\",\n \"Profesori\"};\n\n\t\tObject[][] data = {\n\t\t{\"Data Mining\", \"2017\",\n\t\t\"Blerim Reha\", new Integer(10), new Boolean(false)},\n\t\t{\"Siguria te dhenave\", \"2018\",\n\t\t\"Lule Ahmedi\", new Integer(3), new Boolean(true)},\n\t\t{\"Artificial Intellegence\", \"2018\",\n\t\t\"Agni Dika\", new Integer(2), new Boolean(false)}\n\t\t};\n\t\t\n\t\tString[] columnNames1 = {\"Tema\",\n \"Viti\",\n \"Profesori\"};\n\n\t\tObject[][] data1 = {\n\t\t{\"Data Mining\", \"2017\",\n\t\t\"Blerim Reha\", new Integer(10), new Boolean(false)}\n\t\t};\n\t\t\n\t\t//DB\n\t\t// Marrja e te dhenave nga Databasa (Tema per administraten)\n\t\tString[] AdministrataColumnNamesThesis = {\"Tema\",\n \"Studenti\", \n \"Fakulteti\",\n \"Lenda\",\n \"Profesori\",\n \"Viti\",\n \"Statusi\"};\n\n\t\tObject[][] Administratadata = {\n\t\t{\"Analysis Using Data Mining\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Aprovuar\"},\n\t\t{\"Analysis Using Data Mining\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Anuluar\"},\n\t\t{\"Analiza e tregut\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Anuluar\"},\n\t\t{\"Analysis Using Data Mining\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Anuluar\"},\n\t\t{\"Siguria ne Internet\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Ne Shqyrtim\"}\n\n\t\t};\n\t\t\n\t\tpanelAdministrataDiploma = new JPanel();\n\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\n\t\tpanelStudentStats = new JPanel();\n\t\tpanelStudentStats.setVisible(false);\n\t\t\n\t\tpanelAdministrataStats = new JPanel();\n\t\tpanelAdministrataStats.setVisible(false);\n\t\t\n\t\tpanelAdministrataBtnKontrollo = new JPanel();\n\t\tpanelAdministrataBtnKontrollo.setVisible(false);\n\t\t\n\t\tpanelAdministrataSettingsShto = new JPanel();\n\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\n\t\tpanelStudentProfile = new JPanel();\n\t\tpanelStudentProfile.setVisible(false);\n\t\t\n\t\tpanelStudentMyAccount = new JPanel();\n\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\n\t\tpanelStudentSettings = new JPanel();\n\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\n\t\t\t\tpanelStudentDiploma = new JPanel();\n\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\n\t\t\t\tpanelStudentDiploma.setBounds(0, 0, 1427, 865);\n\t\t\t\tpanelMain.add(panelStudentDiploma);\n\t\t\t\tpanelStudentDiploma.setBackground(Color.WHITE);\n\t\t\t\tpanelStudentDiploma.setLayout(null);\n\t\t\t\t\n\t\t\t\ttxtAdd = new JTextField();\n\t\t\t\ttxtAdd.setText(\"Add\");\n\t\t\t\ttxtAdd.setOpaque(false);\n\t\t\t\ttxtAdd.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\ttxtAdd.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\t\t\ttxtAdd.setColumns(10);\n\t\t\t\ttxtAdd.setBorder(null);\n\t\t\t\ttxtAdd.setBounds(824, 678, 71, 46);\n\t\t\t\tpanelStudentDiploma.add(txtAdd);\n\t\t\t\t\n\t\t\t\tJLabel lblStudentDiplomaShto = new JLabel(\"\");\n\t\t\t\tlblStudentDiplomaShto.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\tif(cmbZgjedhProfesorin.getSelectedIndex() != 0 && cmbZgjedhLenden.getSelectedIndex() !=0) {\n\t\t\t\t\t\t\tProfesori newProf = new Profesori();\n\t\t\t\t\t\t\tnewProf.getProfesoriFromEmri(cmbZgjedhProfesorin.getSelectedItem().toString());\n\t\t\t\t\t\t\tLenda newLenda = new Lenda();\n\t\t\t\t\t\t\tnewLenda.getLenden(cmbZgjedhLenden.getSelectedItem().toString());\n\t\t\t\t\t\t\tPunimi newPunim = new Punimi(txtShkruajTemen.getText(),\n\t\t\t\t\t\t\t\t\tnewProf.getID(), newLenda.getLenda(),\"x\");\n\t\t\t\t\t\t\tnewPunim.setStudenti(newLogin.student);\n\t\t\t\t\t\t\tnewPunim.setDepartamenti(newLogin.student.getDepartamenti());\n\t\t\t\t\t\t\tnewPunim.setLenda(newLenda);\n\t\t\t\t\t\t\tif(newPunim.insertNewPunim()) {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni shtuar me sukses punimin!\");\n\t\t\t\t\t\t\t\ttxtShkruajTemen.setText(\"\");\n\t\t\t\t\t\t\t\tcmbZgjedhLenden.setSelectedIndex(0);\n\t\t\t\t\t\t\t\tcmbZgjedhProfesorin.setSelectedIndex(0);\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate shtimit te punimit - Ne server\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate shtimit te punimit\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t//Vendi ku kemi me shtu temen e diplomes\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlblStudentDiplomaShto.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\t\t\tlblStudentDiplomaShto.setBounds(761, 678, 200, 46);\n\t\t\t\tpanelStudentDiploma.add(lblStudentDiplomaShto);\n\t\t\t\t\n\t\t\t\ttxtUpload = new JTextField();\n\t\t\t\ttxtUpload.setText(\"Upload\");\n\t\t\t\ttxtUpload.setOpaque(false);\n\t\t\t\ttxtUpload.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\ttxtUpload.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\t\t\ttxtUpload.setColumns(10);\n\t\t\t\ttxtUpload.setBorder(null);\n\t\t\t\ttxtUpload.setBounds(807, 500, 114, 46);\n\t\t\t\tpanelStudentDiploma.add(txtUpload);\n\t\t\t\t\n\t\t\t\tJLabel lblStudentDiplomaUploadIcon = new JLabel(\"\");\n\t\t\t\tlblStudentDiplomaUploadIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/upload.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\t\t\tlblStudentDiplomaUploadIcon.setBounds(807, 376, 107, 111);\n\t\t\t\tpanelStudentDiploma.add(lblStudentDiplomaUploadIcon);\n\t\t\t\t\n\t\t\t\ttxtShkruajTemen = new JTextField();\n\t\t\t\ttxtShkruajTemen.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\ttxtShkruajTemen.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\ttxtShkruajTemen.setBounds(332, 140, 579, 79);\n\t\t\t\ttxtShkruajTemen.setBorder(null);\n\t\t\t\ttxtShkruajTemen.setOpaque(false);\n\t\t\t\tpanelStudentDiploma.add(txtShkruajTemen);\n\t\t\t\ttxtShkruajTemen.setColumns(10);\n\t\t\t\t\n\t\t\t\tJLabel lblStudentDiplomaTema = new JLabel(\"\");\n\t\t\t\tlblStudentDiplomaTema.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(600, 100, Image.SCALE_SMOOTH)));\n\t\t\t\tlblStudentDiplomaTema.setBounds(322, 126, 608, 105);\n\t\t\t\tpanelStudentDiploma.add(lblStudentDiplomaTema);\n\t\t\t\t\n\t\t\t\t// DB\n\t\t\t\t// Tek Faqja per uploadim te diplomes , mbushja e comboBox me te dhenat nga profesorat e departamentit\n\t\t\t\tcmbZgjedhProfesorin = new JComboBox();\n\t\t\t\tcmbZgjedhProfesorin.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\tcmbZgjedhProfesorin.setModel(new DefaultComboBoxModel(new String[] {\"Zgjedheni Profesorin\"}));\n\t\t\t\tcmbZgjedhProfesorin.setBackground(Color.WHITE);\n\t\t\t\tcmbZgjedhProfesorin.setBounds(322, 571, 363, 84);\n\t\t\t\tpanelStudentDiploma.add(cmbZgjedhProfesorin);\n\t\t\t\tJLabel lblStudentDiplomaUpload = new JLabel(\"\");\n\t\t\t\tlblStudentDiplomaUpload.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n\t\t\t\t\t\t\n\t\t\t\t\t\tString path;\n\t\t\t\t\t\t\n\t\t\t\t\t\tchooser.showSaveDialog(null);\n\n\t\t\t\t\t FileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t\t \"docx\", \"doc\", \"txt\",\"pdf\");\n\t\t\t\t\t chooser.setFileFilter(filter);\n\t\t\t\t\t \n\t\t\t\t\t int returnVal = chooser.showOpenDialog(frame);\n\t\t\t\t\t if(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t \tString regex = \".pdf$\";\n\t\t\t\t\t \tif(RegularExpressionClass.cheackString(chooser.getSelectedFile().getPath(),regex)) {\n\t\t\t\t\t \t\tpathLabel.setText(chooser.getSelectedFile().getPath());\n\t\t\t\t\t \t}else {\n\t\t\t\t\t \t\tJOptionPane.showMessageDialog(null, \"Format i papranuar, zgjedhni formation PDF!\");\n\t\t\t\t\t \t}\n\t\t\t\t\t \t\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t //System.out.println(path.replace(\"\\\\\", \"\\\\\\\\\"));\n\n\t\t\t\t\t //path = path.replace(\"\\\", \"\\\\\");\n//\t\t\t\t\t ReadFromFile2 read = new ReadFromFile2(path.replace(\"\\\\\", \"\\\\\\\\\"));\n//\t\t\t\t\t String test = read.getText();\n//\t\t\t\t\t txtKerko.setText(test);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlblStudentDiplomaUpload.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\t\t\tlblStudentDiplomaUpload.setBounds(761, 376, 200, 177);\n\t\t\t\tpanelStudentDiploma.add(lblStudentDiplomaUpload);\n\t\t\t\tpanels.add(panelStudentDiploma);\n\t\t\t\t\n\t\t\t\ttxtTema = new JTextField();\n\t\t\t\ttxtTema.setEditable(false);\n\t\t\t\ttxtTema.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtTema.setText(\"Tema\");\n\t\t\t\ttxtTema.setBorder(null);\n\t\t\t\ttxtTema.setBounds(131, 147, 114, 69);\n\t\t\t\tpanelStudentDiploma.add(txtTema);\n\t\t\t\ttxtTema.setColumns(10);\n\t\t\t\t\n\t\t\t\tcmbZgjedhDepartamentin = new JComboBox();\n\t\t\t\tcmbZgjedhDepartamentin.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\tcmbZgjedhDepartamentin.setBackground(Color.WHITE);\n\t\t\t\tcmbZgjedhDepartamentin.setBounds(322, 474, 363, 84);\n\t\t\t\tpanelStudentDiploma.add(cmbZgjedhDepartamentin);\n\t\t\t\ttry {\n\t\t\t\t\tcmbZgjedhDepartamentin.setModel(new DefaultComboBoxModel(new String[] {newLogin.student.getDepartamenti().getDeparamenti()}));\n\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcmbZgjedhFakultetin = new JComboBox();\n\t\t\t\tcmbZgjedhFakultetin.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\tcmbZgjedhFakultetin.setBackground(Color.WHITE);\n\t\t\t\tcmbZgjedhFakultetin.setBounds(322, 376, 363, 84);\n\t\t\t\tpanelStudentDiploma.add(cmbZgjedhFakultetin);\n\t\t\t\ttry { \n\t\t\t\t\tcmbZgjedhFakultetin.setModel(new DefaultComboBoxModel(new String[] {newLogin.student.getFakulteti().getEmri()}));\n\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\ttxtFakulteti_1 = new JTextField();\n\t\t\t\t\t\ttxtFakulteti_1.setEditable(false);\n\t\t\t\t\t\ttxtFakulteti_1.setText(\"Fakulteti\");\n\t\t\t\t\t\ttxtFakulteti_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\t\t\ttxtFakulteti_1.setColumns(10);\n\t\t\t\t\t\ttxtFakulteti_1.setBorder(null);\n\t\t\t\t\t\ttxtFakulteti_1.setBounds(131, 386, 114, 69);\n\t\t\t\t\t\tpanelStudentDiploma.add(txtFakulteti_1);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttxtDepartamenti_1 = new JTextField();\n\t\t\t\t\t\ttxtDepartamenti_1.setEditable(false);\n\t\t\t\t\t\ttxtDepartamenti_1.setText(\"Departamenti\");\n\t\t\t\t\t\ttxtDepartamenti_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\t\t\ttxtDepartamenti_1.setColumns(10);\n\t\t\t\t\t\ttxtDepartamenti_1.setBorder(null);\n\t\t\t\t\t\ttxtDepartamenti_1.setBounds(132, 484, 153, 69);\n\t\t\t\t\t\tpanelStudentDiploma.add(txtDepartamenti_1);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttxtProfesori = new JTextField();\n\t\t\t\t\t\ttxtProfesori.setEditable(false);\n\t\t\t\t\t\ttxtProfesori.setText(\"Profesori\");\n\t\t\t\t\t\ttxtProfesori.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\t\t\ttxtProfesori.setColumns(10);\n\t\t\t\t\t\ttxtProfesori.setBorder(null);\n\t\t\t\t\t\ttxtProfesori.setBounds(131, 581, 129, 69);\n\t\t\t\t\t\tpanelStudentDiploma.add(txtProfesori);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttxtLenda_1 = new JTextField();\n\t\t\t\t\t\ttxtLenda_1.setText(\"Lenda\");\n\t\t\t\t\t\ttxtLenda_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\t\t\ttxtLenda_1.setEditable(false);\n\t\t\t\t\t\ttxtLenda_1.setColumns(10);\n\t\t\t\t\t\ttxtLenda_1.setBorder(null);\n\t\t\t\t\t\ttxtLenda_1.setBounds(131, 678, 129, 69);\n\t\t\t\t\t\tpanelStudentDiploma.add(txtLenda_1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tcmbZgjedhLenden = new JComboBox();\n\t\t\t\t\t\tcmbZgjedhLenden.setModel(new DefaultComboBoxModel(new String[] {\"Zgjedh Lenden\"}));\n\t\t\t\t\t\tcmbZgjedhLenden.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\t\t\tcmbZgjedhLenden.setBackground(Color.WHITE);\n\t\t\t\t\t\tcmbZgjedhLenden.setBounds(322, 668, 363, 84);\n\t\t\t\t\t\tpanelStudentDiploma.add(cmbZgjedhLenden);\n\t\t\t\t\t\t\n\t\t\t\t\t\tpathLabel = new JLabel(\"\");\n\t\t\t\t\t\tpathLabel.setBounds(771, 571, 190, 16);\n\t\t\t\t\t\tpanelStudentDiploma.add(pathLabel);\n\t\t\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\n\t\t\t\tpanelStudentNotifications = new JPanel();\n\t\t\t\tpanelStudentNotifications.setBackground(Color.WHITE);\n\t\t\t\tpanelStudentNotifications.setBounds(0, 0, 1427, 865);\n\t\t\t\tpanelMain.add(panelStudentNotifications);\n\t\t\t\tpanelStudentNotifications.setLayout(null);\n\t\t\t\t\n\t\t\t\t// Mesazhi qe do shfaqet kur nje studenti i vjen nje notification(Studenti)\n\t\t\t\ttxtStudentNotificationsMessage = new JTextField();\n\t\t\t\ttxtStudentNotificationsMessage.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtStudentNotificationsMessage.setOpaque(false);\n\t\t\t\ttxtStudentNotificationsMessage.setBorder(null);\n\t\t\t\ttxtStudentNotificationsMessage.setColumns(10);\n\t\t\t\ttxtStudentNotificationsMessage.setBounds(328, 487, 752, 259);\n\t\t\t\tpanelStudentNotifications.add(txtStudentNotificationsMessage);\n\t\t\t\t\n\t\t\t\t// Tema qe do te shfaqet per te cilen i vie notifications(Studenti)\n\t\t\t\ttxtStudentNotificationsTema = new JTextField();\n\t\t\t\ttxtStudentNotificationsTema.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtStudentNotificationsTema.setOpaque(false);\n\t\t\t\ttxtStudentNotificationsTema.setBorder(null);\n\t\t\t\ttxtStudentNotificationsTema.setBounds(313, 274, 773, 77);\n\t\t\t\tpanelStudentNotifications.add(txtStudentNotificationsTema);\n\t\t\t\ttxtStudentNotificationsTema.setColumns(10);\n\t\t\t\t\n\t\t\t\tJLabel lblNjoftimet = new JLabel(\"NJOFTIMET\");\n\t\t\t\tlblNjoftimet.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\tlblNjoftimet.setBounds(578, 66, 196, 65);\n\t\t\t\tpanelStudentNotifications.add(lblNjoftimet);\n\t\t\t\t\n\t\t\t\tscrollPane_1 = new JScrollPane();\n\t\t\t\tscrollPane_1.setBounds(317, 205, 725, 146);\n\t\t\t\tpanelStudentNotifications.add(scrollPane_1);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\ttable_1 = new JTable(Administratadata,AdministrataColumnNamesThesis);\n\t\t\t\t\ttable_1.setBackground(SystemColor.window);\n\t\t\t\t\ttable_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\t\t\t\ttable_1.setFillsViewportHeight(true);\n\t\t\t\t\tscrollPane_1.setViewportView(table_1);\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\ttable_1 = new JTable(Administratadata,AdministrataColumnNamesThesis);\n\t\t\t\t\ttable_1.setBackground(SystemColor.window);\n\t\t\t\t\ttable_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\t\t\t\ttable_1.setFillsViewportHeight(true);\n\t\t\t\t\tscrollPane_1.setViewportView(table_1);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\ttable_1 = new JTable(Administratadata,AdministrataColumnNamesThesis);\n//\t\t\t\ttable_1.setBackground(SystemColor.window);\n//\t\t\t\ttable_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n//\t\t\t\ttable_1.setFillsViewportHeight(true);\n//\t\t\t\tscrollPane_1.setViewportView(table_1);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\n\t\t\t\tpanelAdministrataNjoftimet = new JPanel();\n\t\t\t\tpanelAdministrataNjoftimet.setBounds(0, 0, 1660, 900);\n\t\t\t\tpanelMain.add(panelAdministrataNjoftimet);\n\t\t\t\tpanelAdministrataNjoftimet.setBackground(SystemColor.textHighlightText);\n\t\t\t\tpanelAdministrataNjoftimet.setLayout(null);\n\t\t\t\t\n\t\t\t\ttxtSearch = new JTextField();\n\t\t\t\ttxtSearch.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtSearch.setBounds(445, 56, 407, 63);\n\t\t\t\tpanelAdministrataNjoftimet.add(txtSearch);\n\t\t\t\ttxtSearch.setText(\"Search\");\n\t\t\t\ttxtSearch.setBorder(null);\n\t\t\t\ttxtSearch.setColumns(10);\n\t\t\t\t\n\t\t\t\tJLabel lblSearch = new JLabel(\"\");\n\t\t\t\tlblSearch.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/myaccount_rectangle.png\")));\n\t\t\t\tlblSearch.setBounds(436, 40, 433, 94);\n\t\t\t\tpanelAdministrataNjoftimet.add(lblSearch);\n\t\t\t\t\n\t\t\t\tJLabel lblSearchIcon = new JLabel(\"\");\n\t\t\t\tlblSearchIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/search.png\")).getImage().getScaledInstance(50, 50, Image.SCALE_SMOOTH)));\n\t\t\t\tlblSearchIcon.setBounds(894, 56, 73, 69);\n\t\t\t\tpanelAdministrataNjoftimet.add(lblSearchIcon);\n\t\t\t\t\n\t\t\t\tJScrollPane scrollPane = new JScrollPane();\n\t\t\t\tscrollPane.setViewportBorder(null);\n\t\t\t\tscrollPane.setBounds(256, 171, 816, 75);\n\t\t\t\tpanelAdministrataNjoftimet.add(scrollPane);\n\t\t\t\t\n\t\t\t\tJTable tblAdministrataNotifications = new JTable(data, columnNames);\n\t\t\t\ttblAdministrataNotifications.setBackground(SystemColor.window);\n\t\t\t\ttblAdministrataNotifications.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\t\t\tscrollPane.setViewportView(tblAdministrataNotifications);\n\t\t\t\t\n\t\t\t\tpanelNotificationClicked = new JPanel();\n\t\t\t\tpanelNotificationClicked.setBackground(Color.WHITE);\n\t\t\t\tpanelNotificationClicked.setBounds(0, 374, 1618, 491);\n\t\t\t\tpanelAdministrataNjoftimet.add(panelNotificationClicked);\n\t\t\t\tpanelNotificationClicked.setLayout(null);\n\t\t\t\t\n\t\t\t\t// Tema qe shfaqet pasi te klikohet nje item i tabeles (tblAdministrataNotifications)\n\t\t\t\ttxtSingleNotification = new JTextField();\n\t\t\t\ttxtSingleNotification.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\ttxtSingleNotification.setBounds(274, 178, 670, 76);\n\t\t\t\ttxtSingleNotification.setBorder(null);\n\t\t\t\ttxtSingleNotification.setOpaque(false);\n\t\t\t\tpanelNotificationClicked.add(txtSingleNotification);\n\t\t\t\ttxtSingleNotification.setColumns(10);\n\t\t\t\t\n\t\t\t\ttxtNoftimet = new JTextField();\n\t\t\t\ttxtNoftimet.setBounds(451, 66, 243, 61);\n\t\t\t\ttxtNoftimet.setBackground(Color.WHITE);\n\t\t\t\ttxtNoftimet.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\ttxtNoftimet.setText(\"Njoftimi selektuar\");\n\t\t\t\ttxtNoftimet.setBorder(null);\n\t\t\t\tpanelNotificationClicked.add(txtNoftimet);\n\t\t\t\ttxtNoftimet.setColumns(10);\n\t\t\t\t\n\t\t\t\t// Kur klikohet aplikohet algoritmi per plagjiature per temen perkatese dhe shfaqet dritarja per detaje\n\t\t\t\tJLabel lblKontrolloTemen = new JLabel(\"\");\n\t\t\t\tlblKontrolloTemen.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t\tlblKontrolloTemen.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/control.png\")).getImage().getScaledInstance(50, 50, Image.SCALE_SMOOTH)));\n\t\t\t\tlblKontrolloTemen.setBounds(1160, 196, 50, 50);\n\t\t\t\tpanelNotificationClicked.add(lblKontrolloTemen);\n\t\t\t\t\n\t\t\t\ttxtKontrollo = new JTextField();\n\t\t\t\ttxtKontrollo.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtKontrollo.setBackground(Color.WHITE);\n\t\t\t\ttxtKontrollo.setText(\"Kontrollo\");\n\t\t\t\ttxtKontrollo.setBorder(null);\n\t\t\t\ttxtKontrollo.setBounds(1134, 144, 106, 41);\n\t\t\t\tpanelNotificationClicked.add(txtKontrollo);\n\t\t\t\ttxtKontrollo.setColumns(10);\n\t\t\t\t\n\t\t\t\tJLabel lblSingleNotification = new JLabel(\"\");\n\t\t\t\tlblSingleNotification.setBounds(258, 138, 705, 155);\n\t\t\t\tlblSingleNotification.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t\t\t.getScaledInstance(700, 100, Image.SCALE_SMOOTH)));\n\t\t\t\tpanelNotificationClicked.add(lblSingleNotification);\n\t\t\t\t\n\t\t\t\t// Kur klikohet hapet tema per te u lexuar\n\t\t\t\tJLabel lblIconReadThesisPdf = new JLabel(\"\");\n\t\t\t\tlblIconReadThesisPdf.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/pdf.png\")).getImage()\n\t\t\t\t\t\t.getScaledInstance(70, 70, Image.SCALE_SMOOTH)));\n\t\t\t\tlblIconReadThesisPdf.setBounds(985, 171, 70, 83);\n\t\t\t\tpanelNotificationClicked.add(lblIconReadThesisPdf);\n\t\t\t\t\n\t\t\t\t// All panels false\n\t\t\t\t panelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t \n\n\t\t\t\t lblKontrolloTemen.addMouseListener(new MouseAdapter() {\n\t\t\t\t \t@Override\n\t\t\t\t \tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t \t\t//ADMINISTRATA\n\t\t\t\t \t}\n\t\t\t\t });\n\t\t\n\t\tpanelProfesorDiploma = new JPanel();\n\t\tpanelProfesorDiploma.setBackground(Color.WHITE);\n\t\tpanelProfesorDiploma.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelProfesorDiploma);\n\t\tpanelProfesorDiploma.setLayout(null);\n\t\t\n\t\tJLabel lblLita = new JLabel(\"Lista e temave te diplomes\");\n\t\tlblLita.setFont(new Font(\"Tahoma\", Font.PLAIN, 35));\n\t\tlblLita.setBounds(430, 104, 420, 127);\n\t\tpanelProfesorDiploma.add(lblLita);\n\t\t\n\t\tJScrollPane scrollPane_3 = new JScrollPane();\n\t\tscrollPane_3.setBounds(212, 318, 871, 88);\n\t\tpanelProfesorDiploma.add(scrollPane_3);\n\t\t\n\t\ttableProfesoriDiploma = new JTable(Administratadata,AdministrataColumnNamesThesis);\n\t\ttableProfesoriDiploma.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tscrollPane_3.setViewportView(tableProfesoriDiploma);\n\t\tpanelProfesorDiploma.setVisible(false);\n\t\tpanelProfesorDiploma.setVisible(false);\n\t\t\n\t\tString[] StudentNotificationsColumns = {\"Id\",\n\t\t\t\t\"Tema\",\n \"Studenti\",\n \"Departamenti\",\n \"Viti\",\n \"Profesori\"};\n\n\t\tObject[][] StudentNotificationsData = {\n\t\t{\"1\",\"Data Mining\", \"Blend Arifaj\",\"Kompjuterike\",\"2017\", \"BlerimRexha\"},\n\t\t{\"2\",\"Data Mining\", \"Arianit Lubishtani\",\t\"Kompjuterike\",\"2017\", \"LuleAhmedi\"}\n\t\t};\n// Me i mor te gjith profesorat nga DB\n\t\tProfesori prof = new Profesori();\n\t\tEnumeration<String> profesoret = prof.getAllProfesoret();\n\t\twhile(profesoret.hasMoreElements()) {\n\t\t\tcmbZgjedhProfesorin.addItem(profesoret.nextElement());\n\t\t}\n\t\ttry {\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t}catch (Exception e) {\n\t\t}\n\t\tLenda lendet = new Lenda();\n\t\tEnumeration<String> Lendet = lendet.getLendet();\n\t\twhile(Lendet.hasMoreElements()) {\n\t\t\tcmbZgjedhLenden.addItem(Lendet.nextElement());\n\t\t}\n\t\tpanelStudentiChangePassword = new JPanel();\n\t\tpanelStudentiChangePassword.setBackground(Color.WHITE);\n\t\tpanelStudentiChangePassword.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentiChangePassword);\n\t\tpanelStudentiChangePassword.setLayout(null);\n\t\t\n\t\ttxtChangePassword = new JTextField();\n\t\ttxtChangePassword.setText(\"Change password\");\n\t\ttxtChangePassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtChangePassword.setColumns(10);\n\t\ttxtChangePassword.setBorder(null);\n\t\ttxtChangePassword.setBounds(606, 69, 216, 51);\n\t\tpanelStudentiChangePassword.add(txtChangePassword);\n\t\t\n\t\tlblPassword = new JTextField();\n\t\tlblPassword.setEditable(false);\n\t\tlblPassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tlblPassword.setBorder(null);\n\t\tlblPassword.setText(\"Old password\");\n\t\t\n\t\tlblPassword.setBounds(278, 249, 216, 51);\n\t\tpanelStudentiChangePassword.add(lblPassword);\n\t\tlblPassword.setColumns(10);\n\t\t\n\t\tlblNewPassword = new JTextField();\n\t\tlblNewPassword.setEditable(false);\n\t\tlblNewPassword.setText(\"New password\");\n\t\tlblNewPassword.setBorder(null);\n\t\tlblNewPassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tlblNewPassword.setColumns(10);\n\t\tlblNewPassword.setBounds(278, 387, 216, 51);\n\t\tpanelStudentiChangePassword.add(lblNewPassword);\n\t\t\n\t\tlblRepeatNewPassword = new JTextField();\n\t\tlblRepeatNewPassword.setEditable(false);\n\t\tlblRepeatNewPassword.setText(\"Repeat new password\");\n\t\tlblRepeatNewPassword.setBorder(null);\n\t\tlblRepeatNewPassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tlblRepeatNewPassword.setColumns(10);\n\t\tlblRepeatNewPassword.setBounds(278, 522, 268, 51);\n\t\tpanelStudentiChangePassword.add(lblRepeatNewPassword);\n\t\t\t\t\n\t\t\t\tpwdOldPassword = new JPasswordField();\n\t\t\t\tpwdOldPassword.setBounds(618, 249, 471, 51);\n\t\t\t\tpanelStudentiChangePassword.add(pwdOldPassword);\n\t\t\t\t\n\t\t\t\tpwdNewPassword = new JPasswordField();\n\t\t\t\tpwdNewPassword.setBounds(618, 387, 471, 51);\n\t\t\t\tpanelStudentiChangePassword.add(pwdNewPassword);\n\t\t\t\t\n\t\t\t\tpwdNewPasswordd = new JPasswordField();\n\t\t\t\tpwdNewPasswordd.setBounds(618, 510, 471, 51);\n\t\t\t\tpanelStudentiChangePassword.add(pwdNewPasswordd);\n\t\t\t\t\n\t\t\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\n\t\t\t\tlblNewLabel_1.setBounds(605, 225, 520, 98);\n\t\t\t\tlblNewLabel_1.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).\n\t\t\t\t\t\tgetImage().getScaledInstance(500, 80, Image.SCALE_SMOOTH)));\n\t\t\t\t\n\t\t\t\t\t\tpanelStudentiChangePassword.add(lblNewLabel_1);\n\t\t\t\t\n\t\t\t\tJLabel label_1 = new JLabel(\"\");\n\t\t\t\tlabel_1.setBounds(605, 366, 520, 98);\n\t\t\t\tlabel_1.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).\n\t\t\t\t\t\tgetImage().getScaledInstance(500, 80, Image.SCALE_SMOOTH)));\n\t\t\t\tpanelStudentiChangePassword.add(label_1);\n\t\t\t\t\n\t\t\t\tJLabel label_6 = new JLabel(\"\");\n\t\t\t\tlabel_6.setBounds(605, 490, 520, 98);\n\t\t\t\tlabel_6.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).\n\t\t\t\t\t\tgetImage().getScaledInstance(500, 80, Image.SCALE_SMOOTH)));\n\t\t\t\tpanelStudentiChangePassword.add(label_6);\n\t\t\t\t\n\t\t\t\tJButton btnCancelPass = new JButton(\"Cancel\");\n\t\t\t\tbtnCancelPass.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\t\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tbtnCancelPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\tbtnCancelPass.setBounds(856, 663, 150, 60);\n\t\t\t\tpanelStudentiChangePassword.add(btnCancelPass);\n\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\n\t\t\t\tJButton btnSave_1 = new JButton(\"Save\");\n\t\t\t\tbtnSave_1.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\t\t\tif(newLogin.student.getPassHash().equals(Hash.saltedHashString(new String(pwdOldPassword.getPassword()), newLogin.student.getID()))) {\n\t\t\t\t\t\t\t\tif(new String(pwdNewPassword.getPassword()).equals(new String(pwdNewPasswordd.getPassword()))) {\n\t\t\t\t\t\t\t\t\tif(newLogin.student.updateStudentPassword(new String(pwdNewPassword.getPassword()))) {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni bere perditesimin e passwordit me sukses!\");\n\t\t\t\t\t\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\t\t\t\t\t\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te passwordit\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Passwordi gabim!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(newLogin.profesor.getPassHash().equals(Hash.saltedHashString(new String(pwdOldPassword.getPassword()), newLogin.profesor.getID()))) {\n\t\t\t\t\t\t\t\tif(new String(pwdNewPassword.getPassword()).equals(new String(pwdNewPasswordd.getPassword()))) {\n\t\t\t\t\t\t\t\t\tif(newLogin.profesor.updateProfesorPassword(new String(pwdNewPassword.getPassword()))) {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni bere perditesimin e passwordit me sukses!\");\n\t\t\t\t\t\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\t\t\t\t\t\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te passwordit\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Passwordi gabim!\");\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\tbtnSave_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\tbtnSave_1.setBounds(683, 663, 150, 60);\n\t\t\t\tpanelStudentiChangePassword.add(btnSave_1);\n\t\tpanelStudentSettings.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentSettings);\n\t\tpanelStudentSettings.setBackground(Color.WHITE);\n\t\tpanelStudentSettings.setLayout(null);\n\t\t\n\t\ttxtStudentProfile = new JTextField();\n\t\ttxtStudentProfile.setText(\"Profile\");\n\t\ttxtStudentProfile.setOpaque(false);\n\t\ttxtStudentProfile.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\ttxtStudentProfile.setColumns(10);\n\t\ttxtStudentProfile.setBorder(null);\n\t\ttxtStudentProfile.setBounds(548, 342, 74, 42);\n\t\tpanelStudentSettings.add(txtStudentProfile);\n\t\t\n\t\tJLabel lblStudentSettingsProfileIcon = new JLabel(\"New label\");\n\t\tlblStudentSettingsProfileIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/settings_password_button.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblStudentSettingsProfileIcon.setBounds(538, 231, 100, 100);\n\t\tpanelStudentSettings.add(lblStudentSettingsProfileIcon);\n\t\t\n\t\ttxtStudentPassword = new JTextField();\n\t\ttxtStudentPassword.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\ttxtStudentPassword.setText(\"Password\");\n\t\ttxtStudentPassword.setBorder(null);\n\t\ttxtStudentPassword.setOpaque(false);\n\t\ttxtStudentPassword.setBounds(174, 342, 107, 42);\n\t\tpanelStudentSettings.add(txtStudentPassword);\n\t\ttxtStudentPassword.setColumns(10);\n\t\t\n\t\tJLabel lblStudentSettingsPassIcon = new JLabel(\"New label\");\n\t\tlblStudentSettingsPassIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/settings_password_button.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblStudentSettingsPassIcon.setBounds(174, 231, 100, 100);\n\t\tpanelStudentSettings.add(lblStudentSettingsPassIcon);\n\t\t\n\t\tJLabel lblStudentSettingsPassRectangle = new JLabel(\"\");\n\t\tlblStudentSettingsPassRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tpanelStudentiChangePassword.setVisible(true);\n\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tlblStudentSettingsPassRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblStudentSettingsPassRectangle.setBounds(107, 217, 239, 183);\n\t\tpanelStudentSettings.add(lblStudentSettingsPassRectangle);\n\t\t\n\t\tJLabel lblStudentSettingsProfile = new JLabel(\"\");\n\t\tlblStudentSettingsProfile.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tpanelStudentMyAccount.setVisible(true);\n\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t//Mbushja me vlera\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\ttxtEmri.setText(newLogin.student.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.student.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.student.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.student.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(newLogin.student.getUniversiteti().getEmri());\n\t\t\t\t\ttxtFakulteti.setText(newLogin.student.getFakulteti().getEmri());\n\t\t\t\t\ttxtDepartamenti.setText(newLogin.student.getDepartamenti().getDeparamenti());\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\ttxtEmri.setText(newLogin.profesor.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.profesor.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.profesor.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.profesor.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(\"-NOT DEFINED-\");\n\t\t\t\t\ttxtFakulteti.setText(\"-NOT DEFINED-\");\n\t\t\t\t\ttxtDepartamenti.setText(\"-NOT DEFINED-\");\n\t\t\t\t}else {\n\t\t\t\t\ttxtEmri.setText(newLogin.administrat.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.administrat.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.administrat.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.administrat.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(newLogin.administrat.getFakulteti().getUniversiteti().getEmri());\n\t\t\t\t\ttxtFakulteti.setText(newLogin.administrat.getFakulteti().getEmri());\n\t\t\t\t\ttxtDepartamenti.setText(\"-NOT DEFINED-\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlblStudentSettingsProfile.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblStudentSettingsProfile.setBounds(464, 217, 239, 183);\n\t\tpanelStudentSettings.add(lblStudentSettingsProfile);\n\t\tpanelStudentSettings.setVisible(false);\n\t\tpanelStudentMyAccount.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentMyAccount);\n\t\tpanelStudentMyAccount.setBackground(Color.WHITE);\n\t\tpanelStudentMyAccount.setLayout(null);\n\t\t\n\t\ttxtFakulteti = new JTextField();\n\t\ttxtFakulteti.setEditable(false);\n\t\ttxtFakulteti.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtFakulteti.setColumns(10);\n\t\ttxtFakulteti.setBorder(null);\n\t\ttxtFakulteti.setBounds(343, 638, 403, 55);\n\t\tpanelStudentMyAccount.add(txtFakulteti);\n\t\t\n\t\ttxtDepartamenti = new JTextField();\n\t\ttxtDepartamenti.setEditable(false);\n\t\ttxtDepartamenti.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtDepartamenti.setColumns(10);\n\t\ttxtDepartamenti.setBorder(null);\n\t\ttxtDepartamenti.setBounds(343, 725, 403, 55);\n\t\tpanelStudentMyAccount.add(txtDepartamenti);\n\t\t\n\t\ttxtTel = new JTextField();\n\t\ttxtTel.setEditable(false);\n\t\ttxtTel.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtTel.setColumns(10);\n\t\ttxtTel.setBorder(null);\n\t\ttxtTel.setBounds(343, 442, 403, 55);\n\t\tpanelStudentMyAccount.add(txtTel);\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\ttxtEmail.setEditable(false);\n\t\ttxtEmail.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtEmail.setColumns(10);\n\t\ttxtEmail.setBorder(null);\n\t\ttxtEmail.setBounds(343, 331, 403, 55);\n\t\tpanelStudentMyAccount.add(txtEmail);\n\t\t\n\t\ttxtMbiemri = new JTextField();\n\t\ttxtMbiemri.setEditable(false);\n\t\ttxtMbiemri.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtMbiemri.setColumns(10);\n\t\ttxtMbiemri.setBorder(null);\n\t\ttxtMbiemri.setBounds(343, 233, 403, 55);\n\t\tpanelStudentMyAccount.add(txtMbiemri);\n\t\t\n\t\ttxtUniversiteti = new JTextField();\n\t\ttxtUniversiteti.setEditable(false);\n\t\ttxtUniversiteti.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtUniversiteti.setColumns(10);\n\t\ttxtUniversiteti.setBorder(null);\n\t\ttxtUniversiteti.setBounds(341, 545, 403, 55);\n\t\tpanelStudentMyAccount.add(txtUniversiteti);\n\t\t\n\t\ttxtEmri = new JTextField();\n\t\ttxtEmri.setEditable(false);\n\t\ttxtEmri.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtEmri.setBounds(341, 136, 403, 55);\n\t\ttxtEmri.setBorder(null);\n\t\t\n\t\tpanelStudentMyAccount.add(txtEmri);\n\t\ttxtEmri.setColumns(10);\n\t\t\n\t\tlblEmrii = new JTextField();\n\t\tlblEmrii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblEmrii.setText(\"Emri\");\n\t\tlblEmrii.setBorder(null);\n\t\tlblEmrii.setBounds(119, 136, 150, 48);\n\t\tpanelStudentMyAccount.add(lblEmrii);\n\t\tlblEmrii.setColumns(10);\n\t\t\n\t\tJLabel lblStudentEmriMyAccount = new JLabel(\"\");\n\t\tlblStudentEmriMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentEmriMyAccount.setBounds(333, 111, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentEmriMyAccount);\n\t\t\n\t\tlblMbiemrii = new JTextField();\n\t\tlblMbiemrii.setText(\"Mbiemri\");\n\t\tlblMbiemrii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblMbiemrii.setColumns(10);\n\t\tlblMbiemrii.setBorder(null);\n\t\tlblMbiemrii.setBounds(119, 240, 150, 48);\n\t\tpanelStudentMyAccount.add(lblMbiemrii);\n\t\t\n\t\tJLabel lblStudentMbiemriMyAccount = new JLabel(\"\");\n\t\tlblStudentMbiemriMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentMbiemriMyAccount.setBounds(333, 208, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentMbiemriMyAccount);\n\t\t\n\t\tlblEmaili = new JTextField();\n\t\tlblEmaili.setText(\"Email\");\n\t\tlblEmaili.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblEmaili.setColumns(10);\n\t\tlblEmaili.setBorder(null);\n\t\tlblEmaili.setBounds(119, 338, 150, 48);\n\t\tpanelStudentMyAccount.add(lblEmaili);\n\t\t\n\t\tlblTeli = new JTextField();\n\t\tlblTeli.setText(\"Tel\");\n\t\tlblTeli.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblTeli.setColumns(10);\n\t\tlblTeli.setBorder(null);\n\t\tlblTeli.setBounds(119, 442, 150, 48);\n\t\tpanelStudentMyAccount.add(lblTeli);\n\t\t\n\t\tlblUniversitetii = new JTextField();\n\t\tlblUniversitetii.setText(\"Universiteti\");\n\t\tlblUniversitetii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblUniversitetii.setColumns(10);\n\t\tlblUniversitetii.setBorder(null);\n\t\tlblUniversitetii.setBounds(119, 541, 164, 48);\n\t\tpanelStudentMyAccount.add(lblUniversitetii);\n\t\t\n\t\tlblFakultetii = new JTextField();\n\t\tlblFakultetii.setText(\"Fakulteti\");\n\t\tlblFakultetii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblFakultetii.setColumns(10);\n\t\tlblFakultetii.setBorder(null);\n\t\tlblFakultetii.setBounds(119, 637, 164, 48);\n\t\tpanelStudentMyAccount.add(lblFakultetii);\n\t\t\n\t\tlblDepartamentii = new JTextField();\n\t\tlblDepartamentii.setText(\"Departamenti\");\n\t\tlblDepartamentii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblDepartamentii.setColumns(10);\n\t\tlblDepartamentii.setBorder(null);\n\t\tlblDepartamentii.setBounds(119, 735, 182, 48);\n\t\tpanelStudentMyAccount.add(lblDepartamentii);\n\t\t\n\t\tJLabel lblStudentEmailMyAccount = new JLabel(\"\");\n\t\tlblStudentEmailMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentEmailMyAccount.setBounds(333, 308, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentEmailMyAccount);\n\t\t\n\t\tJLabel lblStudentTelMyAccount = new JLabel(\"\");\n\t\tlblStudentTelMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentTelMyAccount.setBounds(333, 417, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentTelMyAccount);\n\t\t\n\t\tJLabel lblStudentUniversitetiMyAccount = new JLabel(\"\");\n\t\tlblStudentUniversitetiMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentUniversitetiMyAccount.setBounds(333, 516, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentUniversitetiMyAccount);\n\t\t\n\t\tJLabel lblStudentFakultetiMyAccount = new JLabel(\"\");\n\t\tlblStudentFakultetiMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentFakultetiMyAccount.setBounds(333, 609, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentFakultetiMyAccount);\n\t\t\n\t\tJLabel lblStudentDepartamentMyAccount = new JLabel(\"\");\n\t\tlblStudentDepartamentMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentDepartamentMyAccount.setBounds(333, 704, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentDepartamentMyAccount);\n\t\t\n\t\tJButton btnEdit = new JButton(\"Edit\");\n\t\tbtnEdit.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tbtnEdit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtEmri.setEditable(true);\n\t\t\t\ttxtMbiemri.setEditable(true);\n\t\t\t\ttxtEmail.setEditable(true);\n\t\t\t\ttxtTel.setEditable(true);\n\t\t\t\tbtnSave.setEnabled(true);\n\t\t\t\tbtnEdit.setEnabled(false);\n\t\t\t}\n\t\t});\n\t\tbtnEdit.setBounds(829, 725, 120, 60);\n\t\tpanelStudentMyAccount.add(btnEdit);\n\t\t\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnSave.setEnabled(false);\n\t\t\t\tbtnEdit.setEnabled(true);\n\t\t\t\ttxtEmri.setEditable(false);\n\t\t\t\ttxtMbiemri.setEditable(false);\n\t\t\t\ttxtEmail.setEditable(false);\n\t\t\t\ttxtTel.setEditable(false);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tnewLogin.student.setEmri(txtEmri.getText());\n\t\t\t\t\tnewLogin.student.setMbiemri(txtMbiemri.getText());\n\t\t\t\t\tnewLogin.student.setEmail(txtEmail.getText());\n\t\t\t\t\tnewLogin.student.setTel(txtTel.getText());\n\t\t\t\t\tif(newLogin.student.updateStuentData()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni perditesuar te dhenat me sukses!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te te dhenave!\");\n\t\t\t\t\t}\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")){\n\t\t\t\t\tnewLogin.profesor.setEmri(txtEmri.getText());\n\t\t\t\t\tnewLogin.profesor.setMbiemri(txtMbiemri.getText());\n\t\t\t\t\tnewLogin.profesor.setEmail(txtEmail.getText());\n\t\t\t\t\tnewLogin.profesor.setTel(txtTel.getText());\n\t\t\t\t\tif(newLogin.profesor.updateProfesorData()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni perditesuar te dhenat me sukses!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te te dhenave!\");\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tnewLogin.administrat.setEmri(txtEmri.getText());\n\t\t\t\t\tnewLogin.administrat.setMbiemri(txtMbiemri.getText());\n\t\t\t\t\tnewLogin.administrat.setEmail(txtEmail.getText());\n\t\t\t\t\tnewLogin.administrat.setTel(txtTel.getText());\n\t\t\t\t\tif(newLogin.administrat.updateAdministrataData()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni perditesuar te dhenat me sukses!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te te dhenave!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSave.setEnabled(false);\n\t\tbtnSave.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tbtnSave.setBounds(972, 725, 120, 60);\n\t\tpanelStudentMyAccount.add(btnSave);\n\t\tpanelStudentMyAccount.setVisible(false);\n\t\tpanelStudentProfile.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentProfile);\n\t\tpanelStudentProfile.setBackground(Color.WHITE);\n\t\tpanelStudentProfile.setLayout(null);\n\t\t\n\t\ttxtProfileEmail = new JTextField();\n\t\ttxtProfileEmail.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtProfileEmail.setColumns(10);\n\t\ttxtProfileEmail.setBorder(null);\n\t\ttxtProfileEmail.setBounds(311, 429, 403, 53);\n\t\tpanelStudentProfile.add(txtProfileEmail);\n\t\t\n\t\ttxtProfileMbiemri = new JTextField();\n\t\ttxtProfileMbiemri.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtProfileMbiemri.setColumns(10);\n\t\ttxtProfileMbiemri.setBorder(null);\n\t\ttxtProfileMbiemri.setBounds(311, 322, 403, 53);\n\t\tpanelStudentProfile.add(txtProfileMbiemri);\n\t\t\n\t\ttxtProfileTel = new JTextField();\n\t\ttxtProfileTel.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtProfileTel.setColumns(10);\n\t\ttxtProfileTel.setBorder(null);\n\t\ttxtProfileTel.setBounds(311, 533, 403, 53);\n\t\tpanelStudentProfile.add(txtProfileTel);\n\t\t\n\t\ttxtProfileEmri = new JTextField();\n\t\ttxtProfileEmri.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtProfileEmri.setBounds(311, 219, 403, 53);\n\t\ttxtProfileEmri.setBorder(null);\n\t\t\n\t\tpanelStudentProfile.add(txtProfileEmri);\n\t\ttxtProfileEmri.setColumns(10);\n\t\t\n\t\ttxtSaveBtn = new JTextField();\n\t\ttxtSaveBtn.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtSaveBtn.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\ttxtSaveBtn.setText(\"SAVE\");\n\t\ttxtSaveBtn.setBorder(null);\n\t\ttxtSaveBtn.setColumns(10);\n\t\ttxtSaveBtn.setBounds(528, 689, 186, 64);\n\t\tpanelStudentProfile.add(txtSaveBtn);\n\t\t\n\t\ttxtCancelBtn = new JTextField();\n\t\ttxtCancelBtn.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtCancelBtn.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\ttxtCancelBtn.setText(\"CANCEL\");\n\t\ttxtCancelBtn.setBorder(null);\n\t\ttxtCancelBtn.setBounds(311, 689, 186, 64);\n\t\tpanelStudentProfile.add(txtCancelBtn);\n\t\ttxtCancelBtn.setColumns(10);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setText(\"Emri\");\n\t\ttextField.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttextField.setColumns(10);\n\t\ttextField.setBorder(null);\n\t\ttextField.setBounds(123, 219, 150, 48);\n\t\tpanelStudentProfile.add(textField);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setText(\"Mbiemri\");\n\t\ttextField_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttextField_1.setColumns(10);\n\t\ttextField_1.setBorder(null);\n\t\ttextField_1.setBounds(123, 322, 150, 48);\n\t\tpanelStudentProfile.add(textField_1);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setText(\"Email\");\n\t\ttextField_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttextField_2.setColumns(10);\n\t\ttextField_2.setBorder(null);\n\t\ttextField_2.setBounds(123, 434, 150, 48);\n\t\tpanelStudentProfile.add(textField_2);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setText(\"Tel\");\n\t\ttextField_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttextField_3.setColumns(10);\n\t\ttextField_3.setBorder(null);\n\t\ttextField_3.setBounds(123, 533, 150, 48);\n\t\tpanelStudentProfile.add(textField_3);\n\t\t\n\t\tJLabel lblStudentEmriProfile = new JLabel(\"\");\n\t\tlblStudentEmriProfile.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentEmriProfile.setBounds(303, 193, 423, 105);\n\t\tpanelStudentProfile.add(lblStudentEmriProfile);\n\t\t\n\t\tJLabel lblStudentMbiemriProfile = new JLabel(\"\");\n\t\tlblStudentMbiemriProfile.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentMbiemriProfile.setBounds(303, 296, 423, 105);\n\t\tpanelStudentProfile.add(lblStudentMbiemriProfile);\n\t\t\n\t\tJLabel lblStudentEmailProfile = new JLabel(\"\");\n\t\tlblStudentEmailProfile.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentEmailProfile.setBounds(303, 398, 423, 105);\n\t\tpanelStudentProfile.add(lblStudentEmailProfile);\n\t\t\n\t\tJLabel lblStudentTelProfile = new JLabel(\"\");\n\t\tlblStudentTelProfile.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentTelProfile.setBounds(303, 500, 423, 105);\n\t\tpanelStudentProfile.add(lblStudentTelProfile);\n\t\t\n\t\tJLabel lblCancelBtn = new JLabel(\"\");\n\t\tlblCancelBtn.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(200, 80, Image.SCALE_SMOOTH)));\n\t\tlblCancelBtn.setBounds(303, 672, 207, 100);\n\t\tpanelStudentProfile.add(lblCancelBtn);\n\t\t\n\t\tJLabel lblSaveBtn = new JLabel(\"\");\n\t\tlblSaveBtn.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(200, 80, Image.SCALE_SMOOTH)));\n\t\tlblSaveBtn.setBounds(520, 672, 207, 100);\n\t\tpanelStudentProfile.add(lblSaveBtn);\n\t\t\n\t\tJSeparator separator = new JSeparator();\n\t\tseparator.setBounds(276, 807, 1, 2);\n\t\tpanelStudentProfile.add(separator);\n\t\tpanelStudentProfile.setVisible(false);\n\t\t\n\t\tpanelAdministrataAddLenda = new JPanel();\n\t\tpanelAdministrataAddLenda.setLayout(null);\n\t\tpanelAdministrataAddLenda.setBackground(Color.WHITE);\n\t\tpanelAdministrataAddLenda.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataAddLenda);\n\t\t\n\t\ttxtShto = new JTextField();\n\t\ttxtShto.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\ttxtShto.setText(\"ADD\");\n\t\ttxtShto.setOpaque(false);\n\t\ttxtShto.setBorder(null);\n\t\ttxtShto.setBounds(574, 490, 48, 46);\n\t\tpanelAdministrataAddLenda.add(txtShto);\n\t\ttxtShto.setColumns(10);\n\t\t\n\t\ttxtAdministrataShtoLendeEmri = new JTextField();\n\t\ttxtAdministrataShtoLendeEmri.setColumns(10);\n\t\ttxtAdministrataShtoLendeEmri.setBorder(null);\n\t\ttxtAdministrataShtoLendeEmri.setBounds(322, 259, 577, 62);\n\t\tpanelAdministrataAddLenda.add(txtAdministrataShtoLendeEmri);\n\t\t\n\t\tJLabel lblAdministrataShtoLende = new JLabel(\"\");\n\t\tlblAdministrataShtoLende.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataShtoLende.setBounds(312, 246, 609, 90);\n\t\tpanelAdministrataAddLenda.add(lblAdministrataShtoLende);\n\t\t\n\t\tJLabel lblShtoLendeTe = new JLabel(\"Shto lende te re\");\n\t\tlblShtoLendeTe.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblShtoLendeTe.setBounds(312, 65, 373, 62);\n\t\tpanelAdministrataAddLenda.add(lblShtoLendeTe);\n\t\t\n\t\tJLabel label_5 = new JLabel(\"Emri\");\n\t\tlabel_5.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlabel_5.setBounds(78, 259, 144, 62);\n\t\tpanelAdministrataAddLenda.add(label_5);\n\t\t\n\t\tJLabel btnShtoLendeTeRe = new JLabel(\"\");\n\t\tbtnShtoLendeTeRe.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tLenda newLenda = new Lenda();\n\t\t\t\tnewLenda.setLenda(txtAdministrataShtoLendeEmri.getText());\n\t\t\t\tif(newLenda.insertLenda()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Me sukses keni shtuar nje Lende te re!\");\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ju lutem, kontrolloni te dhenat!\");\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShtoLendeTeRe.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\tbtnShtoLendeTeRe.setBounds(501, 490, 200, 46);\n\t\tpanelAdministrataAddLenda.add(btnShtoLendeTeRe);\n\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\n\t\tpanelAdministrataAddUniversity = new JPanel();\n\t\tpanelAdministrataAddUniversity.setBackground(Color.WHITE);\n\t\tpanelAdministrataAddUniversity.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataAddUniversity);\n\t\tpanelAdministrataAddUniversity.setLayout(null);\n\t\t\n\t\ttxtAdd_1 = new JTextField();\n\t\ttxtAdd_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtAdd_1.setText(\"ADD\");\n\t\ttxtAdd_1.setBorder(null);\n\t\ttxtAdd_1.setOpaque(false);\n\t\ttxtAdd_1.setBounds(464, 419, 51, 46);\n\t\tpanelAdministrataAddUniversity.add(txtAdd_1);\n\t\ttxtAdd_1.setColumns(10);\n\t\t\n\t\ttxtAdministrataShtoUniversitet = new JTextField();\n\t\ttxtAdministrataShtoUniversitet.setBounds(238, 259, 573, 62);\n\t\ttxtAdministrataShtoUniversitet.setOpaque(false);\n\t\ttxtAdministrataShtoUniversitet.setBorder(null);\n\t\tpanelAdministrataAddUniversity.add(txtAdministrataShtoUniversitet);\n\t\ttxtAdministrataShtoUniversitet.setColumns(10);\n\t\t\n\t\tJLabel lblAdministrataEmriUniversitetit = new JLabel(\"\");\n\t\tlblAdministrataEmriUniversitetit.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataEmriUniversitetit.setBounds(229, 244, 609, 90);\n\t\tpanelAdministrataAddUniversity.add(lblAdministrataEmriUniversitetit);\n\t\t\n\t\tJLabel lblShtoUniversitetTe = new JLabel(\"Shto Universitet te ri\");\n\t\tlblShtoUniversitetTe.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblShtoUniversitetTe.setBounds(312, 65, 302, 62);\n\t\tpanelAdministrataAddUniversity.add(lblShtoUniversitetTe);\n\t\t\n\t\tJLabel lblEmri = new JLabel(\"Emri\");\n\t\tlblEmri.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblEmri.setBounds(78, 259, 144, 62);\n\t\tpanelAdministrataAddUniversity.add(lblEmri);\n\t\t\n\t\tJLabel btnShtoUniversitetTeRi = new JLabel(\"\");\n\t\tbtnShtoUniversitetTeRi.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tUniversiteti newUni = new Universiteti();\n\t\t\t\tnewUni.setEmri(txtAdministrataShtoUniversitet.getText());\n\t\t\t\tif(newUni.insertUniversitetin()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Me sukses keni shtuar nje Universitet te ri!\");\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ju lutem, kontrolloni te dhenat!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShtoUniversitetTeRi.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\tbtnShtoUniversitetTeRi.setBounds(390, 419, 200, 46);\n\t\tpanelAdministrataAddUniversity.add(btnShtoUniversitetTeRi);\n\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\n\t\tpanelAdministrataAddFakultet = new JPanel();\n\t\tpanelAdministrataAddFakultet.setLayout(null);\n\t\tpanelAdministrataAddFakultet.setBackground(Color.WHITE);\n\t\tpanelAdministrataAddFakultet.setBounds(10, 22, 1427, 865);\n\t\tpanelMain.add(panelAdministrataAddFakultet);\n\t\t\n\t\ttxtAdd_2 = new JTextField();\n\t\ttxtAdd_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtAdd_2.setText(\"ADD\");\n\t\ttxtAdd_2.setOpaque(false);\n\t\ttxtAdd_2.setBorder(null);\n\t\ttxtAdd_2.setBounds(557, 600, 54, 46);\n\t\tpanelAdministrataAddFakultet.add(txtAdd_2);\n\t\ttxtAdd_2.setColumns(10);\n\t\t\n\t\ttxtAdministrataShtoFakultetAdresa = new JTextField();\n\t\ttxtAdministrataShtoFakultetAdresa.setColumns(10);\n\t\ttxtAdministrataShtoFakultetAdresa.setBorder(null);\n\t\ttxtAdministrataShtoFakultetAdresa.setBounds(322, 479, 573, 62);\n\t\tpanelAdministrataAddFakultet.add(txtAdministrataShtoFakultetAdresa);\n\t\t\n\t\ttxtAdministrataShtoFakultetEmri = new JTextField();\n\t\ttxtAdministrataShtoFakultetEmri.setBounds(322, 259, 573, 62);\n\t\ttxtAdministrataShtoFakultetEmri.setBorder(null);\n\t\tpanelAdministrataAddFakultet.add(txtAdministrataShtoFakultetEmri);\n\t\ttxtAdministrataShtoFakultetEmri.setColumns(10);\n\t\t\n\t\tJLabel lblAdministrataShtoFakultetEmri = new JLabel(\"\");\n\t\tlblAdministrataShtoFakultetEmri.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataShtoFakultetEmri.setBounds(312, 246, 609, 90);\n\t\tpanelAdministrataAddFakultet.add(lblAdministrataShtoFakultetEmri);\n\t\t\n\t\tJLabel lblShtoFakultetTe = new JLabel(\"Shto Fakultet te ri\");\n\t\tlblShtoFakultetTe.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblShtoFakultetTe.setBounds(312, 65, 302, 62);\n\t\tpanelAdministrataAddFakultet.add(lblShtoFakultetTe);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"Emri\");\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlabel_2.setBounds(78, 259, 144, 62);\n\t\tpanelAdministrataAddFakultet.add(label_2);\n\t\t\n\t\tJLabel lblUniversiteti = new JLabel(\"Universiteti\");\n\t\tlblUniversiteti.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblUniversiteti.setBounds(78, 374, 201, 62);\n\t\tpanelAdministrataAddFakultet.add(lblUniversiteti);\n\t\t\n\t\tJLabel lblAdresa = new JLabel(\"Adresa\");\n\t\tlblAdresa.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblAdresa.setBounds(78, 492, 144, 62);\n\t\tpanelAdministrataAddFakultet.add(lblAdresa);\n\t\t\n\t\t// Gjenerohet nga databasa (lista e universiteteve)\n\t\tJComboBox cmbAdministrataUniversitati = new JComboBox();\n\t\tcmbAdministrataUniversitati.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tcmbAdministrataUniversitati.setModel(new DefaultComboBoxModel(new String[] {\"Zgjedhe Universitetin\"}));\n\t\tcmbAdministrataUniversitati.setBounds(322, 374, 483, 62);\n\t\tpanelAdministrataAddFakultet.add(cmbAdministrataUniversitati);\n\t\tUniversiteti uni = new Universiteti();\n\t\tEnumeration<String> universitetet = uni.getUniversitetet();\n\t\twhile(universitetet.hasMoreElements()) {\n\t\t\tcmbAdministrataUniversitati.addItem(universitetet.nextElement());\n\t\t}\n\t\t\n\t\tJLabel lblAdministrataShtoFakultetAdresa = new JLabel(\"\");\n\t\tlblAdministrataShtoFakultetAdresa.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataShtoFakultetAdresa.setBounds(312, 464, 609, 90);\n\t\tpanelAdministrataAddFakultet.add(lblAdministrataShtoFakultetAdresa);\n\t\t\n\t\t// Kur klikohet shtohet nje fakultet i ri (administrata)\n\t\tJLabel btnShtoFakultetTeRi = new JLabel(\"\");\n\t\tbtnShtoFakultetTeRi.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif(cmbAdministrataUniversitati.getSelectedIndex() != 0) {\n\t\t\t\t\tFakulteti newFk = new Fakulteti();\n\t\t\t\t\tnewFk.setEmri(txtAdministrataShtoFakultetEmri.getText());\n\t\t\t\t\tnewFk.setID(txtAdministrataShtoFakultetID.getText());\n\t\t\t\t\tnewFk.setAdresa(txtAdministrataShtoFakultetAdresa.getText());\n\t\t\t\t\tuni.inicializoUniversitetin(cmbAdministrataUniversitati.getSelectedItem().toString());\n\t\t\t\t\tnewFk.setUniversiteti(uni);\n\t\t\t\t\tif(newFk.insertNewFakultet()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Me sukses keni shtuar nje Fakultet te ri!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ju lutem te kontrolloni te dhenat!\");\n\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t});\n\t\tbtnShtoFakultetTeRi.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\tbtnShtoFakultetTeRi.setBounds(488, 600, 200, 46);\n\t\tpanelAdministrataAddFakultet.add(btnShtoFakultetTeRi);\n\t\t\n\t\ttxtAdministrataShtoFakultetID = new JTextField();\n\t\ttxtAdministrataShtoFakultetID.setColumns(10);\n\t\ttxtAdministrataShtoFakultetID.setBorder(null);\n\t\ttxtAdministrataShtoFakultetID.setBounds(322, 153, 573, 62);\n\t\tpanelAdministrataAddFakultet.add(txtAdministrataShtoFakultetID);\n\t\t\n\t\tJLabel lblId_1 = new JLabel(\"ID\");\n\t\tlblId_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblId_1.setBounds(78, 164, 144, 62);\n\t\tpanelAdministrataAddFakultet.add(lblId_1);\n\t\t\n\t\tJLabel label = new JLabel(\"\");\n\t\tlabel.setBounds(312, 140, 609, 90);\n\t\tlabel.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tpanelAdministrataAddFakultet.add(label);\n\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\n\t\tpanelAdministrataAddDepartament = new JPanel();\n\t\tpanelAdministrataAddDepartament.setLayout(null);\n\t\tpanelAdministrataAddDepartament.setBackground(Color.WHITE);\n\t\tpanelAdministrataAddDepartament.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataAddDepartament);\n\t\t\n\t\ttxtAdd_3 = new JTextField();\n\t\ttxtAdd_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtAdd_3.setText(\"ADD\");\n\t\ttxtAdd_3.setOpaque(false);\n\t\ttxtAdd_3.setBorder(null);\n\t\ttxtAdd_3.setBounds(561, 594, 55, 46);\n\t\tpanelAdministrataAddDepartament.add(txtAdd_3);\n\t\ttxtAdd_3.setColumns(10);\n\t\t\n\t\ttxtAdministrataShtoDepartamentEmri = new JTextField();\n\t\ttxtAdministrataShtoDepartamentEmri.setBorder(null);\n\t\ttxtAdministrataShtoDepartamentEmri.setBounds(322, 261, 577, 62);\n\t\tpanelAdministrataAddDepartament.add(txtAdministrataShtoDepartamentEmri);\n\t\ttxtAdministrataShtoDepartamentEmri.setColumns(10);\n\t\t\n\t\tlblAdministrataAddDepartament = new JLabel(\"\");\n\t\tlblAdministrataAddDepartament.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataAddDepartament.setBounds(312, 246, 609, 90);\n\t\tpanelAdministrataAddDepartament.add(lblAdministrataAddDepartament);\n\t\t\n\t\tJLabel lblShtoDepartamentTe = new JLabel(\"Shto Departament te ri\");\n\t\tlblShtoDepartamentTe.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblShtoDepartamentTe.setBounds(312, 65, 373, 62);\n\t\tpanelAdministrataAddDepartament.add(lblShtoDepartamentTe);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"Emri\");\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlabel_3.setBounds(78, 261, 144, 62);\n\t\tpanelAdministrataAddDepartament.add(label_3);\n\t\t\n\t\tJLabel label_4 = new JLabel(\"Universiteti\");\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlabel_4.setBounds(78, 470, 201, 62);\n\t\tpanelAdministrataAddDepartament.add(label_4);\n\t\t\n\t\tJComboBox cmbFakultetet = new JComboBox();\n\t\tcmbFakultetet.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tcmbFakultetet.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tcmbFakultetet.setBounds(322, 470, 483, 62);\n\t\tpanelAdministrataAddDepartament.add(cmbFakultetet);\n\t\tcmbFakultetet.addItem(\"Zgjedheni fakultetin!\");\n\t\tFakulteti fakulteti = new Fakulteti();\n\t\tEnumeration<String> fakultetet = fakulteti.getFakultetet();\n\t\twhile(fakultetet.hasMoreElements()) {\n\t\t\tcmbFakultetet.addItem(fakultetet.nextElement());\n\t\t}\n\t\t// Kur klikohet shtohet nje departament i ri\n\t\tJLabel btnShtoDepartamentTeRi = new JLabel(\"\");\n\t\tbtnShtoDepartamentTeRi.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif(cmbFakultetet.getSelectedIndex() != 0) {\n\t\t\t\t\tDepartamenti newDept = new Departamenti();\n\t\t\t\t\tnewDept.setDeparamenti(txtAdministrataShtoDepartamentEmri.getText());\n\t\t\t\t\tnewDept.setID(txtAdministrataShtoDepartamentID.getText());\n\t\t\t\t\tfakulteti.inicializoFakultetin(cmbFakultetet.getSelectedItem().toString());\n\t\t\t\t\tif(fakulteti.insertNewDepartament(newDept)) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Me sukses keni shtuar nje departament te ri!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ju lutem te kontrolloni te dhenat!\");\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShtoDepartamentTeRi.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\tbtnShtoDepartamentTeRi.setBounds(486, 594, 200, 46);\n\t\tpanelAdministrataAddDepartament.add(btnShtoDepartamentTeRi);\n\t\t\n\t\tJLabel lblId = new JLabel(\"ID\");\n\t\tlblId.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblId.setBounds(78, 366, 144, 62);\n\t\tpanelAdministrataAddDepartament.add(lblId);\n\t\t\n\t\ttxtAdministrataShtoDepartamentID = new JTextField();\n\t\ttxtAdministrataShtoDepartamentID.setColumns(10);\n\t\ttxtAdministrataShtoDepartamentID.setBorder(null);\n\t\ttxtAdministrataShtoDepartamentID.setBounds(322, 373, 393, 62);\n\t\tpanelAdministrataAddDepartament.add(txtAdministrataShtoDepartamentID);\n\t\t\n\t\tJLabel labelID = new JLabel(\"\");\n\t\tlabelID.setBounds(312, 349, 455, 108);\n\t\tlabelID.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tpanelAdministrataAddDepartament.add(labelID);\n\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\tpanelAdministrataSettingsShto.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataSettingsShto);\n\t\tpanelAdministrataSettingsShto.setLayout(null);\n\t\t\n\t\ttxtLenda = new JTextField();\n\t\ttxtLenda.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtLenda.setText(\"Lenda\");\n\t\ttxtLenda.setOpaque(false);\n\t\ttxtLenda.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\ttxtLenda.setColumns(10);\n\t\ttxtLenda.setBorder(null);\n\t\ttxtLenda.setBounds(853, 640, 82, 37);\n\t\tpanelAdministrataSettingsShto.add(txtLenda);\n\t\t\n\t\ttxtDepartament = new JTextField();\n\t\ttxtDepartament.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtDepartament.setText(\"Departament\");\n\t\ttxtDepartament.setOpaque(false);\n\t\ttxtDepartament.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\ttxtDepartament.setColumns(10);\n\t\ttxtDepartament.setBorder(null);\n\t\ttxtDepartament.setBounds(403, 640, 173, 37);\n\t\tpanelAdministrataSettingsShto.add(txtDepartament);\n\t\t\n\t\ttxtFakultet = new JTextField();\n\t\ttxtFakultet.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtFakultet.setText(\"Fakultet\");\n\t\ttxtFakultet.setOpaque(false);\n\t\ttxtFakultet.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\ttxtFakultet.setColumns(10);\n\t\ttxtFakultet.setBorder(null);\n\t\ttxtFakultet.setBounds(843, 295, 105, 37);\n\t\tpanelAdministrataSettingsShto.add(txtFakultet);\n\t\t\n\t\tJLabel lblShtoLendaIcon = new JLabel(\"\");\t\t\n\t\tlblShtoLendaIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoLendaIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoLendaIcon.setBounds(843, 548, 105, 81);\n\t\tpanelAdministrataSettingsShto.add(lblShtoLendaIcon);\n\t\t\n\t\tJLabel lblShtoLendaRectangle = new JLabel(\"\");\n\t\tlblShtoLendaRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoLendaRectangle.setBounds(760, 499, 271, 198);\n\t\tlblShtoLendaRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tpanelAdministrataSettingsShto.add(lblShtoLendaRectangle);\n\t\t\n\t\tJLabel lblShtoDepartamentIcon = new JLabel(\"\");\n\t\tlblShtoDepartamentIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoDepartamentIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoDepartamentIcon.setBounds(433, 548, 105, 81);\n\t\tpanelAdministrataSettingsShto.add(lblShtoDepartamentIcon);\n\t\t\n\t\tJLabel lblShtoFakultetIcon = new JLabel(\"\");\n\t\tlblShtoFakultetIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoFakultetIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoFakultetIcon.setBounds(843, 189, 105, 81);\n\t\tpanelAdministrataSettingsShto.add(lblShtoFakultetIcon);\n\t\t\n\t\ttxtUniversitet = new JTextField();\n\t\ttxtUniversitet.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtUniversitet.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\ttxtUniversitet.setText(\"Universitet\");\n\t\ttxtUniversitet.setBounds(419, 295, 143, 37);\n\t\ttxtUniversitet.setOpaque(false);\n\t\ttxtUniversitet.setBorder(null);\n\t\tpanelAdministrataSettingsShto.add(txtUniversitet);\n\t\ttxtUniversitet.setColumns(10);\n\t\t\n\t\tJLabel lblShtoUniversitetIcon = new JLabel(\"\");\n\t\tlblShtoUniversitetIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoUniversitetIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoUniversitetIcon.setBounds(433, 189, 105, 81);\n\t\tpanelAdministrataSettingsShto.add(lblShtoUniversitetIcon);\n\t\t\n\t\tJLabel lblShtoUniversitetRectangle = new JLabel(\"\");\n\t\tlblShtoUniversitetRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoUniversitetRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblShtoUniversitetRectangle.setBounds(348, 152, 271, 198);\n\t\tpanelAdministrataSettingsShto.add(lblShtoUniversitetRectangle);\n\t\t\n\t\tJLabel lblShtoFakultetRectangle = new JLabel(\"\");\n\t\tlblShtoFakultetRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoFakultetRectangle.setBounds(760, 152, 271, 198);\n\t\tlblShtoFakultetRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tpanelAdministrataSettingsShto.add(lblShtoFakultetRectangle);\n\t\t\n\t\tJLabel lblShtoDepartamentRectangle = new JLabel(\"\");\n\t\tlblShtoDepartamentRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoDepartamentRectangle.setBounds(348, 499, 271, 198);\n\t\tlblShtoDepartamentRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tpanelAdministrataSettingsShto.add(lblShtoDepartamentRectangle);\n\t\tpanelAdministrataBtnKontrollo.setBounds(0, 0, 1660, 900);\n\t\tpanelMain.add(panelAdministrataBtnKontrollo);\n\t\tpanelAdministrataBtnKontrollo.setBackground(SystemColor.text);\n\t\tpanelAdministrataBtnKontrollo.setLayout(null);\n\t\t\n\t\tJTextArea txtrDetajeTeTemes = new JTextArea();\n\t\ttxtrDetajeTeTemes.setWrapStyleWord(true);\n\t\ttxtrDetajeTeTemes.setText(\"Detaje te temes se diplomes pas kontrollimit nga algoritmi per plagjiature\");\n\t\ttxtrDetajeTeTemes.setFont(new Font(\"Monospaced\", Font.PLAIN, 25));\n\t\ttxtrDetajeTeTemes.setBounds(346, 313, 567, 493);\n\t\ttxtrDetajeTeTemes.setLineWrap(true);\n\t\tpanelAdministrataBtnKontrollo.add(txtrDetajeTeTemes);\n\t\t\n\t\ttemaDiplomes = new JTextField();\n\t\ttemaDiplomes.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttemaDiplomes.setText(\"Tema e diplomes \\\"Data Mining\\\" (2017)\");\n\t\ttemaDiplomes.setBounds(346, 159, 580, 87);\n\t\ttemaDiplomes.setBorder(null);\n\t\ttemaDiplomes.setOpaque(false);\n\t\tpanelAdministrataBtnKontrollo.add(temaDiplomes);\n\t\ttemaDiplomes.setColumns(10);\n\t\t\n\t\tJLabel temaRectangle = new JLabel(\"\");\n\t\ttemaRectangle.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(600, 100, Image.SCALE_SMOOTH)));\n\t\ttemaRectangle.setBounds(335, 147, 598, 111);\n\t\tpanelAdministrataBtnKontrollo.add(temaRectangle);\n\t\t\n\t\tJLabel detajeTemesDiplomes = new JLabel(\"\");\n\t\tdetajeTemesDiplomes.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(600, 600, Image.SCALE_SMOOTH)));\n\t\tdetajeTemesDiplomes.setBounds(328, 307, 598, 499);\n\t\tpanelAdministrataBtnKontrollo.add(detajeTemesDiplomes);\n\t\tpanels.add(panelAdministrataBtnKontrollo);\n\t\tpanelAdministrataStats.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataStats);\n\t\tpanelStudentStats.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentStats);\n\t\tpanelStudentStats.setBackground(Color.WHITE);\n\t\tpanelStudentStats.setLayout(null);\n\t\t\n\t\ttxtStatusiITemes = new JTextField();\n\t\ttxtStatusiITemes.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttxtStatusiITemes.setText(\"Statusi i temes tuaj\");\n\t\ttxtStatusiITemes.setBounds(257, 60, 265, 59);\n\t\ttxtStatusiITemes.setBorder(null);\n\t\tpanelStudentStats.add(txtStatusiITemes);\n\t\ttxtStatusiITemes.setColumns(10);\n\t\t\n\t\tJLabel lblStatusiTemesIcon = new JLabel(\"\");\n\t\tlblStatusiTemesIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/checked.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblStatusiTemesIcon.setBounds(325, 152, 115, 100);\n\t\tpanelStudentStats.add(lblStatusiTemesIcon);\n\t\t\n\t\ttxtShikoDokumentin = new JTextField();\n\t\ttxtShikoDokumentin.setText(\"Shiko dokumentin\");\n\t\ttxtShikoDokumentin.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttxtShikoDokumentin.setColumns(10);\n\t\ttxtShikoDokumentin.setBorder(null);\n\t\ttxtShikoDokumentin.setBounds(820, 60, 265, 59);\n\t\tpanelStudentStats.add(txtShikoDokumentin);\n\t\t\n\t\tJLabel lblShikoDokumentinIcon = new JLabel(\"\");\n\t\tlblShikoDokumentinIcon.setBounds(884, 130, 100, 118);\n\t\tlblShikoDokumentinIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/pdf.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tpanelStudentStats.add(lblShikoDokumentinIcon);\n\t\t\n\t\ttxtStatistikat = new JTextField();\n\t\ttxtStatistikat.setText(\"Statistikat\");\n\t\ttxtStatistikat.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttxtStatistikat.setColumns(10);\n\t\ttxtStatistikat.setBorder(null);\n\t\ttxtStatistikat.setBounds(586, 447, 148, 59);\n\t\tpanelStudentStats.add(txtStatistikat);\n\t\tpanelAdministrataDiploma.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataDiploma);\n\t\tpanelAdministrataDiploma.setBackground(Color.WHITE);\n\t\tpanelAdministrataDiploma.setLayout(null);\n\t\t\n\t\tJLabel lblSearchThesis = new JLabel(\"\");\n\t\tlblSearchThesis.setBounds(226, 150, 616, 109);\n\t\tlblSearchThesis.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(600, 100, Image.SCALE_SMOOTH)));\n\t\tpanelAdministrataDiploma.add(lblSearchThesis);\n\t\t\n\t\tJLabel lblSearchThesisIcon = new JLabel(\"\");\n\t\tlblSearchThesisIcon.setBounds(879, 150, 100, 100);\n\t\tlblSearchThesisIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/search.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tpanelAdministrataDiploma.add(lblSearchThesisIcon);\n\t\t\n\t\tJScrollPane scrollPane_2 = new JScrollPane();\n\t\tscrollPane_2.setBounds(226, 319, 743, 91);\n\t\tpanelAdministrataDiploma.add(scrollPane_2);\n\t\t\n\t\ttable_3 = new JTable(Administratadata,AdministrataColumnNamesThesis);\n\t\ttable_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tscrollPane_2.setViewportView(table_3);\n\t\t\n\t\tpanelAdministrataSettings = new JPanel();\n\t\tpanelAdministrataSettings.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataSettings);\n\t\tpanelAdministrataSettings.setVisible(false);\n\t\tpanelAdministrataSettings.setLayout(null);\n\t\t\n\t\tlblModifikoText = new JTextField();\n\t\tlblModifikoText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblModifikoText.setText(\"Modifiko\");\n\t\tlblModifikoText.setOpaque(false);\n\t\tlblModifikoText.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\tlblModifikoText.setColumns(10);\n\t\tlblModifikoText.setBorder(null);\n\t\tlblModifikoText.setBounds(836, 592, 128, 49);\n\t\tpanelAdministrataSettings.add(lblModifikoText);\n\t\t\n\t\tJLabel lblModifikoIcon = new JLabel(\"\");\n\t\tlblModifikoIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblModifikoIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/pencil-edit-button.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblModifikoIcon.setBounds(842, 480, 109, 101);\n\t\tpanelAdministrataSettings.add(lblModifikoIcon);\n\t\t\n\t\tJLabel lblModifikoRectangle = new JLabel(\"\");\n\t\tlblModifikoRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblModifikoRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblModifikoRectangle.setBounds(755, 455, 271, 198);\n\t\tpanelAdministrataSettings.add(lblModifikoRectangle);\n\t\t\n\t\tlblShtoTeDhenaText = new JTextField();\n\t\tlblShtoTeDhenaText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoTeDhenaText.setText(\"Shto\");\n\t\tlblShtoTeDhenaText.setOpaque(false);\n\t\tlblShtoTeDhenaText.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\tlblShtoTeDhenaText.setColumns(10);\n\t\tlblShtoTeDhenaText.setBorder(null);\n\t\tlblShtoTeDhenaText.setBounds(463, 592, 63, 49);\n\t\tpanelAdministrataSettings.add(lblShtoTeDhenaText);\n\t\t\n\t\tJLabel lblShtoTeDhenaIcon = new JLabel(\"\");\n\t\tlblShtoTeDhenaIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoTeDhenaIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoTeDhenaIcon.setBounds(436, 480, 109, 101);\n\t\tpanelAdministrataSettings.add(lblShtoTeDhenaIcon);\n\t\t\n\t\ttxtProfile = new JTextField();\n\t\ttxtProfile.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtProfile.setText(\"Profile\");\n\t\ttxtProfile.setOpaque(false);\n\t\ttxtProfile.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\ttxtProfile.setColumns(10);\n\t\ttxtProfile.setBorder(null);\n\t\ttxtProfile.setBounds(842, 313, 92, 49);\n\t\tpanelAdministrataSettings.add(txtProfile);\n\t\t\n\t\tJLabel lblProfileIcon = new JLabel(\"\");\n\t\tlblProfileIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblProfileIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/user.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblProfileIcon.setBounds(836, 189, 109, 113);\n\t\tpanelAdministrataSettings.add(lblProfileIcon);\n\t\t\n\t\tJLabel lblProfileRectangle = new JLabel(\"\");\n\t\tlblProfileRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblProfileRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblProfileRectangle.setBounds(755, 175, 271, 198);\n\t\tpanelAdministrataSettings.add(lblProfileRectangle);\n\t\t\n\t\tJLabel lblPasswordIcon = new JLabel(\"\");\n\t\tlblPasswordIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblPasswordIcon.setBounds(436, 201, 109, 101);\n\t\tlblPasswordIcon.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_password_button.png\")));\n\t\tpanelAdministrataSettings.add(lblPasswordIcon);\n\t\t\n\t\ttxtPasswordText = new JTextField();\n\t\ttxtPasswordText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtPasswordText.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\ttxtPasswordText.setText(\"Password\");\n\t\ttxtPasswordText.setOpaque(false);\n\t\ttxtPasswordText.setBorder(null);\n\t\ttxtPasswordText.setBounds(426, 313, 150, 49);\n\t\tpanelAdministrataSettings.add(txtPasswordText);\n\t\ttxtPasswordText.setColumns(10);\n\t\t\n\t\tJLabel lblPasswordRectangle = new JLabel(\"\");\n\t\tlblPasswordRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblPasswordRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblPasswordRectangle.setBounds(358, 175, 271, 198);\n\t\tpanelAdministrataSettings.add(lblPasswordRectangle);\n\t\t\n\t\tJLabel lblShtoTeDhenaRectangle = new JLabel(\"\");\n\t\tlblShtoTeDhenaRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoTeDhenaRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblShtoTeDhenaRectangle.setBounds(358, 455, 271, 198);\n\t\tpanelAdministrataSettings.add(lblShtoTeDhenaRectangle);\n\t\t/*\n\t\tpanels.add(panelAdministrataNjoftimet);\n\t\tpanels.add(panelAdministrataSettings);\n\t\tpanels.add(panelAdministrataSettingsShto);\n\t\tpanels.add(panelAdministrataThesis);\n\t\tpanels.add(panelAdministrataStats);\n\t\tpanels.add(panelStudentMyAccount);\n\t\tpanels.add(panelStudentProfile);\n\t\tpanels.add(panelStudentStats);\n\t\t\n\t\tlabelHighlight.add(lblHighlightNotifications);\n\t\tlabelHighlight.add(lblHighlightThesis);\n\t\tlabelHighlight.add(lblHighlightSettings);\n\t\tlabelHighlight.add(lblHighlightStatistics);\n\t*/\n\t\t panelAdministrataSettings.setVisible(false);\n\t\t panelAdministrataSettingsShto.setVisible(false);\n\t\t panelAdministrataBtnKontrollo.setVisible(false);\n\t\t panelAdministrataDiploma.setVisible(false);\n\t\t panelAdministrataStats.setVisible(false);\n\t\t panelStudentStats.setVisible(false);\n\t\t \n\t\t\n\t\t\n\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\tpanelStudentDiploma.setVisible(true);\n\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\tpanelProfesorDiploma.setVisible(true);\n\t\t}else {\n\t\t\tpanelAdministrataDiploma.setVisible(true);\t\t\t\n\t\t}\n\t\t\n\t\tlblHighlightNotifications.setVisible(false);\n\t\tlblHighlightThesis.setVisible(true);\n\t\tlblHighlightSettings.setVisible(false);\n\t\tlblHighlightStatistics.setVisible(false);\n\t\t\n\t\tpanelMenuNotifications.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t//caktoVisible(\"panelAdministrataNjoftimet\");\n\t\t\t\t//caktoVisibleHighlights(lblHighlightNotifications);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(true);\n\t\t\t\t\t//Studenti\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelProfesorDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(true);\n\t\t\t\t\t//Profesori\n\t\t\t\t}else {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(true);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(true);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(false);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\n\t\tpanelMenuThesis.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataThesis\");\n\t\t\t\t//caktoVisibleHighlights(lblHighlightThesis);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelStudentDiploma.setVisible(true);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelProfesorDiploma.setVisible(true);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t}else {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(true);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(true);\n\t\t\t\tlblHighlightSettings.setVisible(false);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\t\t\n\n\t\tpanelMenuSettings.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataSettings\");\n\t\t\t\t//caktoVisibleHighlights(lblHighlightSettings);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelProfesorDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t}else {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(true);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(true);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\n\t\tlblShtoTeDhenaRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataSettingsShto\");\n\t\t\t\t// ADMINISTRATA\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblShtoUniversitetRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\t\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(true);\n\t\t\t\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblShtoFakultetRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\t\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(true);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(true);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblShtoDepartamentRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\t\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(true);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(true);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblShtoLendaRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\t\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(true);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\t\n\t\t\t}\n\t\t});\n\t\tpanelMenuStats.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(true);\n\t\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(true);\n\t\t\t\t\tpanelProfesorDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\t\t\t\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t}else {\n\t\t\t\t\t\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(true);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(true);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(false);\n\t\t\t\tlblHighlightStatistics.setVisible(true);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Te implementohet eventi per butonin MyAccount\n\t\tbtnMyAccount.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tpanelStudentMyAccount.setVisible(true);\n\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\t\t\t\t//Mbushja me vlera\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\ttxtEmri.setText(newLogin.student.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.student.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.student.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.student.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(newLogin.student.getUniversiteti().getEmri());\n\t\t\t\t\ttxtFakulteti.setText(newLogin.student.getFakulteti().getEmri());\n\t\t\t\t\ttxtDepartamenti.setText(newLogin.student.getDepartamenti().getDeparamenti());\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\ttxtEmri.setText(newLogin.profesor.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.profesor.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.profesor.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.profesor.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(\"-NOT DEFINED-\");\n\t\t\t\t\ttxtFakulteti.setText(\"-NOT DEFINED-\");\n\t\t\t\t\ttxtDepartamenti.setText(\"-NOT DEFINED-\");\n\t\t\t\t}else {\n\t\t\t\t\ttxtEmri.setText(newLogin.administrat.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.administrat.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.administrat.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.administrat.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(newLogin.administrat.getFakulteti().getUniversiteti().getEmri());\n\t\t\t\t\ttxtFakulteti.setText(newLogin.administrat.getFakulteti().getEmri());\n\t\t\t\t\ttxtDepartamenti.setText(\"-NOT DEFINED-\");\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n\t\t/* layout splashscreen dengan background gambar */\n setContentView(R.layout.activity_spalsh);\n\t/* handler untuk menjalankan splashscreen selama 5 detik lalu\n\t * membuat HomeActivity\n\t */\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent = null;\n\n mainIntent = new Intent(SpalshActivity.this,\n HomeActivity.class);\n\n SpalshActivity.this.startActivity(mainIntent);\n SpalshActivity.this.finish();\n overridePendingTransition(R.layout.fadein,R.layout.fadeout);\n\n\n }\n }, SPLASH_DISPLAY_LENGHT);\n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n Thread timerThread = new Thread() {\n public void run() {\n try {\n sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n if (user != null) {\n redireccionar();\n }else{\n Intent intent = new Intent(SplashScreen.this, Login.class);\n startActivity(intent);\n }\n\n }\n }\n };\n timerThread.start();\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_splash_screen);\r\n StartAnimations();\r\n\r\n new Handler().postDelayed(new Runnable() {\r\n\r\n\r\n @Override\r\n public void run() {\r\n // This method will be executed once the timer is over\r\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }\r\n }, 5000);\r\n }", "private void nextScreen() {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, HomeActivity.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //check draw over app permission\n if (!Settings.canDrawOverlays(SplashScreenActivity.this)) {\n intent = new Intent(SplashScreenActivity.this, DrawOverAppActivity.class);\n }\n }\n startActivity(intent);\n }\n });\n }", "public static ImageIcon splashImage() {\n if (splashImage == null) {\r\n splashImage = IconLoader.icon(\"splash.png\");\r\n //splashImage = IconLoader.icon(I18N.get(\"splash.png\"));\r\n }\r\n return splashImage;\r\n }", "public JfPrincipal() {\n super(\"SURGI - Sistema Unificado para Registro e Gerenciamento de Informações - \" + versao.getVersao() + \" - \" + versao.getAno());\n initComponents();\n\n //Altera icone na barra de titulo\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.getImage(\"C:/SURGI/imagens/SURGI32x32.png\");\n this.setIconImage(img);\n\n //maximiza tela\n this.setExtendedState(MAXIMIZED_BOTH);\n\n //centraliza tela\n setSize(getWidth(), getHeight());\n setLocationRelativeTo(null);\n\n jlbVersao.setText(versao.getVersao());\n iniciaJfLogin();\n jfLogin.fechar();\n jfLogin = null;\n \n }", "protected void removeSplashScreen() {\n if (splashDialog != null) {\n splashDialog.dismiss();\n splashDialog = null;\n }\n }", "public void start() {\n\t\tFile splashFile = new File(\"Splash\", \"title\");\r\n\t\tsplashString = TextFileReader.getContents(splashFile);\r\n\t\tsendOutput(splashString);\r\n\t\tsendOutput(\"Version \" + versionNum);\r\n\t\tsendOutput(\"by \" + author);\r\n\t\tprintMenu();\r\n\t}", "public CentralAC_GUI(HVACGUI hvacForm) {\n\n //setting the content pane\n setContentPane(rootPanel);\n\n setPreferredSize(new Dimension(500, 500));\n pack();\n setVisible(true);\n //using the dispose on close to close the form\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n //setting the hvac form to false so its not the active form\n hvacForm.setEnabled(false);\n //calling the addToList method\n addToList();\n //making the hvac gui form active\n hvacForm.setEnabled(true);\n\n }", "public void goBackToSplash(View view) {\n startActivity(new Intent(view.getContext(), SplashScreenActivity.class));\n finish();\n }", "public StartScreen() {\n initComponents();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.form);\n\n\t\tif (android.os.Build.VERSION.SDK_INT > 9) {\n\t\t\t StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n\t\t\t StrictMode.setThreadPolicy(policy);\n\t\t\t}\n\t\tsplash=(Button)findViewById(R.id.button2);\n\t\tsplash.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent=new Intent(InputForm.this,SplashScreen.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tmyPrefs = this.getSharedPreferences(\"myPrefs\",MODE_WORLD_READABLE);\n prefsEditor = myPrefs.edit();\n //prefsEditor.putString(\"info\", \"false\");\n //prefsEditor.commit();\n String prefName = myPrefs.getString(\"info\", \"false\");\n\n if(prefName==\"true\")\n {\n \tIntent intent=new Intent(this,SplashScreen.class);\n \t\tstartActivity(intent);\n \t\n }\n else\n {\n \n\t\tname=(EditText)findViewById(R.id.editText1);\n\t\tage=(EditText)findViewById(R.id.editText2);\n\t\temail=(EditText)findViewById(R.id.editText4);\n\t\tcontact=(EditText)findViewById(R.id.editText3);\n\t\tcity=(EditText)findViewById(R.id.editText5);\n\t\tcourse=(EditText)findViewById(R.id.editText6);\n\t\tcountry=(EditText)findViewById(R.id.editText7);\n\t\t\n\t\tsub=(Button)findViewById(R.id.button1);\n\t\t\n\t\tsub.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tif((name.getText().toString().trim().equals(\"\")) \n\t\t\t\t\t\t|| (age.getText().toString().trim().equals(\"\")) \n\t\t\t\t\t\t|| (contact.getText().toString().trim().equals(\"\")) ||\n\t\t\t\t\t\t(email.getText().toString().trim().equals(\"\")) || (city.getText().toString().trim().equals(\"\")) ||\n\t\t\t\t\t\t(course.getText().toString().trim().equals(\"\")) || (country.getText().toString().trim().equals(\"\")))\n\t\t\t\t{\n\t\t\t\t Toast.makeText(getApplicationContext(), \"Please fill the remaining fields\", Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\n\t\t\t\t\tSname = name.getText().toString();\n\t\t\t\t\tSage = age.getText().toString();\n\t\t\t\t\tScontact = contact.getText().toString();\n\t\t\t\t\tSemail = email.getText().toString();\n\t\t\t\t\tScity = city.getText().toString();\n\t\t\t\t\tScourse = course.getText().toString();\n\t\t\t\t\tScountry = country.getText().toString();\n\t\t\t\t\tSystem.out.println(Sname);\n\t\t\t\t\tSystem.out.println(Sage);\n\t\t\t\t\tSystem.out.println(Scontact);\n\t\t\t\t\tSystem.out.println(Semail);\n\t\t\t\t\tSystem.out.println(Scity);\n\t\t\t\t\tSystem.out.println(Scountry);\n\t\t\t\t\tSystem.out.println(Scourse);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tHttpClient httpclient = new DefaultHttpClient();\n\t\t\t\t\tString data=\"\"+\"http://messi14.byethost7.com/info.php?name=\"+Sname+\"&age=\"+Sage+\"&contact=\"+Scontact+\"&email=\"+Semail+\"&city=\"+Scity+\"&course=\"+Scourse+\"&country=\"+Scountry+\"\";\n\t\t\t\t\tString data1=\"http://messi14.byethost7.com/info.php?name=pawan&age=34&contact=9821350649&[email protected]&city=Mumbai&course=MS&country=US\";\n\t\t\t\t\tSystem.out.println(data);\n\t\t\t\t\tSystem.out.println(data1);\n\t\t\t\t\tHttpGet httpget = new HttpGet(data);\n\t\t\t\t\ttry {\n\t\t\t\t\t HttpResponse response = httpclient.execute(httpget);\n\t\t\t\t\t System.out.println(\"Sent data\");\n\t\t\t\t\t if(response != null) {\n\t\t\t\t\t // String line = \"\";\n\t\t\t\t\n\t\t\t\t\t \t//InputStream inputstream = response.getEntity().getContent();\n\t\t\t\t\t //line = convertStreamToString(inputstream);\n\t\t\t\t\t Toast.makeText(getApplicationContext(),\"Info Updated\", Toast.LENGTH_SHORT).show();\n\n\t\t\t\t\t prefsEditor.putString(\"info\", \"true\");\n\t\t\t\t\t prefsEditor.commit();\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t Intent i=new Intent(getApplicationContext(),SplashScreen.class);\n\t\t\t\t\t startActivity(i);\n\t\t\t\t\t } else {\n\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Unable to complete your request\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t Intent i=new Intent(getApplicationContext(),SplashScreen.class);\n\t\t\t\t\t startActivity(i);\n\t\t\t\t\t }\n\t\t\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Caught ClientProtocolException\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Caught IOException\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Caught Exception\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t\t}\n\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\n\t}\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash);\n ButterKnife.inject(this);\n\n if(getResources().getBoolean(R.bool.isTablet)){\n lyMain.setBackgroundResource(R.drawable.ic_tablet_splash);\n }else {\n lyMain.setBackgroundResource(R.drawable.ic_smatphone_splash);\n }\n\n Thread timerThread = new Thread() {\n public void run() {\n try {\n sleep(3000);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n startActivity(new Intent(SplashActivity.this, ApplicationsGridActivity.class));\n }\n }\n };\n timerThread.start();\n\n }", "public static void main(String[] args) {\n\t\t// Define new Runnable for splash screen execution\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tSplashScreenView splash;\n\t\t\tTimer timer;\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t// Create splash screen boundary object and set visible\n\t\t\t\t\tsplash = new SplashScreenView();\n\t\t\t\t\tsplash.setVisible(true);\n\n\t\t\t\t\t// Begin timer for 2 seconds to display\n\t\t\t\t\ttimer = new Timer(2000, new ActionListener(){ \n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t// Create event on timer completion that hide the splash screen, and creates\n\t\t\t\t\t\t\t// the Kabasuji and corresponding view for interactions\n\t\t\t\t\t\t\tsplash.setVisible(false);\n\t\t\t\t\t\t\tKabasuji game = new Kabasuji();\n\t\t\t\t\t\t\tLevelSelectorView window = new LevelSelectorView(game);\n\n\t\t\t\t\t\t\t// allow controller to set up GUI based on the levels loaded by 'game'\n\t\t\t\t\t\t\tStartLevelSelectorController selectorController = new StartLevelSelectorController(window, game);\n\t\t\t\t\t\t\tselectorController.process();\n\n\t\t\t\t\t\t\t// show window\n\t\t\t\t\t\t\twindow.setVisible(true);\n\t\t\t\t\t\t\tImageIcon image = new ImageIcon(StartKabasuji.class.getResource(\"/images/heineman.jpg\"));\n\t\t\t\t\t\t\twindow.setIconImage(image.getImage().getScaledInstance(40, 40, 0));\n\t\t\t\t\t\t\tSystem.out.println(image);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t// Start the timer and ensure it only runs once\n\t\t\t\t\ttimer.setRepeats(false);\n\t\t\t\t\ttimer.start();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public Form1() {\n initComponents();\n setGlassPane(glassPaneLoading1);\n }", "public static void disposeSplash(){\n splash.dispose();\n }", "@Override protected void startup() {\n LoganoView main = new LoganoView(this);\n JFrame frame = main.getFrame();\n\n \n show(main);\n\n frame.setMinimumSize(new Dimension(800, 600));\n frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\n FrmLogin frmLogin = new FrmLogin();\n Helper.showForm(frmLogin);\n frmLogin.setLocationRelativeTo(frame);\n }", "Icon getSplashImage();", "public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }", "FORM createFORM();", "private void menu_AboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_AboutActionPerformed\n new frm_About().setVisible(true); \n }", "public frmDashBoard() {\n initComponents();\n }", "public void startProcessCierreCaja(Boolean conSplash) throws Exception {\n\t\t\r\n\t\tfinal JTabbedPane jTabbedPaneBusquedasCierreCaja=this.jTabbedPaneBusquedasCierreCaja; \r\n\t\t\r\n\t\tfinal JPanel jPanelParametrosReportesCierreCaja=this.jPanelParametrosReportesCierreCaja;\r\n\t\t//final JScrollPane jScrollPanelDatosCierreCaja=this.jScrollPanelDatosCierreCaja;\r\n\t\tfinal JTable jTableDatosCierreCaja=this.jTableDatosCierreCaja;\t\t\r\n\t\tfinal JPanel jPanelPaginacionCierreCaja=this.jPanelPaginacionCierreCaja;\r\n\t\t//final JScrollPane jScrollPanelDatosEdicionCierreCaja=this.jScrollPanelDatosEdicionCierreCaja;\r\n\t\tfinal JPanel jPanelAccionesCierreCaja=this.jPanelAccionesCierreCaja;\r\n\t\t\r\n\t\tJPanel jPanelCamposAuxiliarCierreCaja=new JPanelMe();\r\n\t\tJPanel jPanelAccionesFormularioAuxiliarCierreCaja=new JPanelMe();\r\n\t\t\r\n\t\tif(this.jInternalFrameDetalleFormCierreCaja!=null) {\r\n\t\t\tjPanelCamposAuxiliarCierreCaja=this.jInternalFrameDetalleFormCierreCaja.jPanelCamposCierreCaja;\r\n\t\t\tjPanelAccionesFormularioAuxiliarCierreCaja=this.jInternalFrameDetalleFormCierreCaja.jPanelAccionesFormularioCierreCaja;\r\n\t\t}\r\n\t\t\r\n\t\tfinal JPanel jPanelCamposCierreCaja=jPanelCamposAuxiliarCierreCaja;\r\n\t\tfinal JPanel jPanelAccionesFormularioCierreCaja=jPanelAccionesFormularioAuxiliarCierreCaja;\r\n\t\t\r\n\t\t\r\n\t\tfinal JMenuBar jmenuBarCierreCaja=this.jmenuBarCierreCaja;\r\n\t\tfinal JToolBar jTtoolBarCierreCaja=this.jTtoolBarCierreCaja;\t\t\r\n\t\t\r\n\t\t\r\n\t\tJMenuBar jmenuBarDetalleAuxiliarCierreCaja=new JMenuBar();\r\n\t\tJToolBar jTtoolBarDetalleAuxiliarCierreCaja=new JToolBar();\t\t\r\n\t\t\r\n\t\tif(this.jInternalFrameDetalleFormCierreCaja!=null) {\r\n\t\t\tjmenuBarDetalleAuxiliarCierreCaja=this.jInternalFrameDetalleFormCierreCaja.jmenuBarDetalleCierreCaja;\r\n\t\t\tjTtoolBarDetalleAuxiliarCierreCaja=this.jInternalFrameDetalleFormCierreCaja.jTtoolBarDetalleCierreCaja;\r\n\t\t}\r\n\t\t\r\n\t\tfinal JMenuBar jmenuBarDetalleCierreCaja=jmenuBarDetalleAuxiliarCierreCaja;\r\n\t\tfinal JToolBar jTtoolBarDetalleCierreCaja=jTtoolBarDetalleAuxiliarCierreCaja;\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(Constantes2.CON_PROCESO_HILO) {\r\n\t\t\tThread threadRunnableProcess;\r\n\t\t\tProcessRunnable processRunnable;\r\n\t\t\t\r\n\t\t\tprocessRunnable=new ProcessRunnable();\r\n\t\t\t\r\n\t\t\tprocessRunnable.setsTipo(\"START\");\r\n\t\t\tprocessRunnable.setDesktop(jDesktopPane);\r\n\t\t\tprocessRunnable.setModuloActual(moduloActual);\r\n\t\t\tprocessRunnable.setModuloUsuarioSeleccionado(moduloActual);\r\n\t\t\tprocessRunnable.setOpcionActual(opcionActual);\r\n\t\t\tprocessRunnable.setParametroGeneralSg(parametroGeneralSg);\r\n\t\t\tprocessRunnable.setParametroGeneralUsuario(parametroGeneralUsuario);\r\n\t\t\tprocessRunnable.setResumenUsuarioActual(resumenUsuarioActual);\r\n\t\t\tprocessRunnable.setUsuarioActual(usuarioActual);\r\n\t\t\t\r\n\t\t\tprocessRunnable.jTabbedPaneBusquedas=jTabbedPaneBusquedasCierreCaja;\r\n\t\t\tprocessRunnable.jPanelParametrosReportes=jPanelParametrosReportesCierreCaja;\r\n\t\t\tprocessRunnable.jTableDatos=jTableDatosCierreCaja;\r\n\t\t\tprocessRunnable.jPanelCampos=jPanelCamposCierreCaja;\r\n\t\t\tprocessRunnable.jPanelPaginacion=jPanelPaginacionCierreCaja;\r\n\t\t\tprocessRunnable.jPanelAcciones=jPanelAccionesCierreCaja;\r\n\t\t\tprocessRunnable.jPanelAccionesFormulario=jPanelAccionesFormularioCierreCaja;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tprocessRunnable.jmenuBar=jmenuBarCierreCaja;\r\n\t\t\tprocessRunnable.jmenuBarDetalle=jmenuBarDetalleCierreCaja;\r\n\t\t\tprocessRunnable.jTtoolBar=jTtoolBarCierreCaja;\r\n\t\t\tprocessRunnable.jTtoolBarDetalle=jTtoolBarDetalleCierreCaja;\r\n\t\t\tprocessRunnable.jInternalFrameBase=this;\r\n\t\t\t\r\n\t\t\t//processRunnable.CargarObjetosRendimientoCriticoModuloInventario();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthreadRunnableProcess=new Thread(processRunnable);//.start();\r\n\t\t\t\t\t\r\n\t\t\tthreadRunnableProcess.start();\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tFuncionesSwing.enableDisablePanels(false,jTabbedPaneBusquedasCierreCaja ,jPanelParametrosReportesCierreCaja,jTableDatosCierreCaja, /*jScrollPanelDatosCierreCaja,*/jPanelCamposCierreCaja,jPanelPaginacionCierreCaja, /*jScrollPanelDatosEdicionCierreCaja,*/ jPanelAccionesCierreCaja,jPanelAccionesFormularioCierreCaja,jmenuBarCierreCaja,jmenuBarDetalleCierreCaja,jTtoolBarCierreCaja,jTtoolBarDetalleCierreCaja);\r\n\t\t\r\n\t\t\tstartProcess();//this.\r\n\t\t}\r\n\t\t\t\t\t\t\r\n\t\t/*\r\n\t\tif(conSplash) {\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t public void run() {\r\n\t\t\t \t try {\r\n\t\t\t\t\t\t\tFuncionesSwing.enableDisablePanels(false,jTabbedPaneBusquedasCierreCaja ,jPanelParametrosReportesCierreCaja, jScrollPanelDatosCierreCaja,jPanelPaginacionCierreCaja, jScrollPanelDatosEdicionCierreCaja, jPanelAccionesCierreCaja,jPanelAccionesFormularioCierreCaja,jmenuBarCierreCaja,jmenuBarDetalleCierreCaja,jTtoolBarCierreCaja,jTtoolBarDetalleCierreCaja);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tstartProcess();//this.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t});\r\n\t\t}\r\n\t\t*/\r\n\t}", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "public void startProcessFacturaPuntoVenta(Boolean conSplash) throws Exception {\n\t\t\r\n\t\tfinal JTabbedPane jTabbedPaneBusquedasFacturaPuntoVenta=this.jTabbedPaneBusquedasFacturaPuntoVenta; \r\n\t\t\r\n\t\tfinal JPanel jPanelParametrosReportesFacturaPuntoVenta=this.jPanelParametrosReportesFacturaPuntoVenta;\r\n\t\t//final JScrollPane jScrollPanelDatosFacturaPuntoVenta=this.jScrollPanelDatosFacturaPuntoVenta;\r\n\t\tfinal JTable jTableDatosFacturaPuntoVenta=this.jTableDatosFacturaPuntoVenta;\t\t\r\n\t\tfinal JPanel jPanelPaginacionFacturaPuntoVenta=this.jPanelPaginacionFacturaPuntoVenta;\r\n\t\t//final JScrollPane jScrollPanelDatosEdicionFacturaPuntoVenta=this.jScrollPanelDatosEdicionFacturaPuntoVenta;\r\n\t\tfinal JPanel jPanelAccionesFacturaPuntoVenta=this.jPanelAccionesFacturaPuntoVenta;\r\n\t\t\r\n\t\tJPanel jPanelCamposAuxiliarFacturaPuntoVenta=new JPanelMe();\r\n\t\tJPanel jPanelAccionesFormularioAuxiliarFacturaPuntoVenta=new JPanelMe();\r\n\t\t\r\n\t\tif(this.jInternalFrameDetalleFormFacturaPuntoVenta!=null) {\r\n\t\t\tjPanelCamposAuxiliarFacturaPuntoVenta=this.jInternalFrameDetalleFormFacturaPuntoVenta.jPanelCamposFacturaPuntoVenta;\r\n\t\t\tjPanelAccionesFormularioAuxiliarFacturaPuntoVenta=this.jInternalFrameDetalleFormFacturaPuntoVenta.jPanelAccionesFormularioFacturaPuntoVenta;\r\n\t\t}\r\n\t\t\r\n\t\tfinal JPanel jPanelCamposFacturaPuntoVenta=jPanelCamposAuxiliarFacturaPuntoVenta;\r\n\t\tfinal JPanel jPanelAccionesFormularioFacturaPuntoVenta=jPanelAccionesFormularioAuxiliarFacturaPuntoVenta;\r\n\t\t\r\n\t\t\r\n\t\tfinal JMenuBar jmenuBarFacturaPuntoVenta=this.jmenuBarFacturaPuntoVenta;\r\n\t\tfinal JToolBar jTtoolBarFacturaPuntoVenta=this.jTtoolBarFacturaPuntoVenta;\t\t\r\n\t\t\r\n\t\t\r\n\t\tJMenuBar jmenuBarDetalleAuxiliarFacturaPuntoVenta=new JMenuBar();\r\n\t\tJToolBar jTtoolBarDetalleAuxiliarFacturaPuntoVenta=new JToolBar();\t\t\r\n\t\t\r\n\t\tif(this.jInternalFrameDetalleFormFacturaPuntoVenta!=null) {\r\n\t\t\tjmenuBarDetalleAuxiliarFacturaPuntoVenta=this.jInternalFrameDetalleFormFacturaPuntoVenta.jmenuBarDetalleFacturaPuntoVenta;\r\n\t\t\tjTtoolBarDetalleAuxiliarFacturaPuntoVenta=this.jInternalFrameDetalleFormFacturaPuntoVenta.jTtoolBarDetalleFacturaPuntoVenta;\r\n\t\t}\r\n\t\t\r\n\t\tfinal JMenuBar jmenuBarDetalleFacturaPuntoVenta=jmenuBarDetalleAuxiliarFacturaPuntoVenta;\r\n\t\tfinal JToolBar jTtoolBarDetalleFacturaPuntoVenta=jTtoolBarDetalleAuxiliarFacturaPuntoVenta;\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(Constantes2.CON_PROCESO_HILO) {\r\n\t\t\tThread threadRunnableProcess;\r\n\t\t\tProcessRunnable processRunnable;\r\n\t\t\t\r\n\t\t\tprocessRunnable=new ProcessRunnable();\r\n\t\t\t\r\n\t\t\tprocessRunnable.setsTipo(\"START\");\r\n\t\t\tprocessRunnable.setDesktop(jDesktopPane);\r\n\t\t\tprocessRunnable.setModuloActual(moduloActual);\r\n\t\t\tprocessRunnable.setModuloUsuarioSeleccionado(moduloActual);\r\n\t\t\tprocessRunnable.setOpcionActual(opcionActual);\r\n\t\t\tprocessRunnable.setParametroGeneralSg(parametroGeneralSg);\r\n\t\t\tprocessRunnable.setParametroGeneralUsuario(parametroGeneralUsuario);\r\n\t\t\tprocessRunnable.setResumenUsuarioActual(resumenUsuarioActual);\r\n\t\t\tprocessRunnable.setUsuarioActual(usuarioActual);\r\n\t\t\t\r\n\t\t\tprocessRunnable.jTabbedPaneBusquedas=jTabbedPaneBusquedasFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jPanelParametrosReportes=jPanelParametrosReportesFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jTableDatos=jTableDatosFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jPanelCampos=jPanelCamposFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jPanelPaginacion=jPanelPaginacionFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jPanelAcciones=jPanelAccionesFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jPanelAccionesFormulario=jPanelAccionesFormularioFacturaPuntoVenta;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tprocessRunnable.jmenuBar=jmenuBarFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jmenuBarDetalle=jmenuBarDetalleFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jTtoolBar=jTtoolBarFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jTtoolBarDetalle=jTtoolBarDetalleFacturaPuntoVenta;\r\n\t\t\tprocessRunnable.jInternalFrameBase=this;\r\n\t\t\t\r\n\t\t\t//processRunnable.CargarObjetosRendimientoCriticoModuloInventario();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthreadRunnableProcess=new Thread(processRunnable);//.start();\r\n\t\t\t\t\t\r\n\t\t\tthreadRunnableProcess.start();\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tFuncionesSwing.enableDisablePanels(false,jTabbedPaneBusquedasFacturaPuntoVenta ,jPanelParametrosReportesFacturaPuntoVenta,jTableDatosFacturaPuntoVenta, /*jScrollPanelDatosFacturaPuntoVenta,*/jPanelCamposFacturaPuntoVenta,jPanelPaginacionFacturaPuntoVenta, /*jScrollPanelDatosEdicionFacturaPuntoVenta,*/ jPanelAccionesFacturaPuntoVenta,jPanelAccionesFormularioFacturaPuntoVenta,jmenuBarFacturaPuntoVenta,jmenuBarDetalleFacturaPuntoVenta,jTtoolBarFacturaPuntoVenta,jTtoolBarDetalleFacturaPuntoVenta);\r\n\t\t\r\n\t\t\tstartProcess();//this.\r\n\t\t}\r\n\t\t\t\t\t\t\r\n\t\t/*\r\n\t\tif(conSplash) {\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t public void run() {\r\n\t\t\t \t try {\r\n\t\t\t\t\t\t\tFuncionesSwing.enableDisablePanels(false,jTabbedPaneBusquedasFacturaPuntoVenta ,jPanelParametrosReportesFacturaPuntoVenta, jScrollPanelDatosFacturaPuntoVenta,jPanelPaginacionFacturaPuntoVenta, jScrollPanelDatosEdicionFacturaPuntoVenta, jPanelAccionesFacturaPuntoVenta,jPanelAccionesFormularioFacturaPuntoVenta,jmenuBarFacturaPuntoVenta,jmenuBarDetalleFacturaPuntoVenta,jTtoolBarFacturaPuntoVenta,jTtoolBarDetalleFacturaPuntoVenta);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tstartProcess();//this.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t});\r\n\t\t}\r\n\t\t*/\r\n\t}", "private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }" ]
[ "0.70406467", "0.66382176", "0.65738845", "0.6521729", "0.6425485", "0.64225566", "0.63562113", "0.63562113", "0.6244608", "0.6179801", "0.6175552", "0.6131259", "0.611413", "0.6088823", "0.6062509", "0.60524696", "0.6043322", "0.6040713", "0.6019466", "0.600905", "0.5969235", "0.5942976", "0.59300184", "0.5901785", "0.58951974", "0.5880471", "0.5853133", "0.5846059", "0.58190453", "0.58128464", "0.5773995", "0.576669", "0.5738106", "0.5723579", "0.5723296", "0.57079875", "0.5684685", "0.5683262", "0.566885", "0.5655556", "0.5641786", "0.5596948", "0.55949247", "0.5570716", "0.5560912", "0.5550397", "0.5541221", "0.5524455", "0.5473988", "0.5455675", "0.545545", "0.54504615", "0.5442346", "0.5441108", "0.54386544", "0.5434875", "0.54304713", "0.5421664", "0.5417669", "0.54032993", "0.54011524", "0.5380509", "0.5380223", "0.5373645", "0.5363331", "0.53564304", "0.5352187", "0.53517574", "0.53503215", "0.53497", "0.53243536", "0.5324146", "0.5319058", "0.5317957", "0.5311403", "0.53103036", "0.530039", "0.5297547", "0.5293563", "0.5292772", "0.52917194", "0.529138", "0.52867454", "0.525113", "0.5248348", "0.52448046", "0.5242243", "0.5240055", "0.52395326", "0.52330273", "0.5225107", "0.5207618", "0.52010036", "0.51963866", "0.5191211", "0.51908684", "0.51864743", "0.5183921", "0.51731044", "0.51718485" ]
0.7297714
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() { pgbCargando = new javax.swing.JProgressBar(); lblCargando = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setUndecorated(true); setOpacity(0.0F); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); getContentPane().add(pgbCargando, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 248, 420, 3)); lblCargando.setFont(new java.awt.Font("Segoe UI", 0, 9)); // NOI18N lblCargando.setText("Cargando..."); getContentPane().add(lblCargando, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, -1, -1)); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pkgAgenda_Virtual/Images/SplashScreen.png"))); // NOI18N getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "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 frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "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 FormHorarioSSE() {\n initComponents();\n }", "public Kost() {\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 MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\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 POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\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.73200226", "0.7291205", "0.7291205", "0.7291205", "0.7286934", "0.72486174", "0.72148067", "0.7208562", "0.7196016", "0.7190541", "0.71850747", "0.71595925", "0.71484745", "0.7093441", "0.708049", "0.70576906", "0.6987498", "0.6977434", "0.69557697", "0.6954114", "0.69463736", "0.69432336", "0.6935982", "0.6932067", "0.69294006", "0.6925068", "0.69241905", "0.69122374", "0.69116175", "0.689272", "0.68923753", "0.68911856", "0.68911785", "0.6889383", "0.6883104", "0.6882112", "0.6881066", "0.68791443", "0.6876986", "0.68742603", "0.6872269", "0.6860655", "0.6857326", "0.68560773", "0.68556136", "0.68552834", "0.6853771", "0.68527913", "0.68527913", "0.68449986", "0.68374735", "0.6837303", "0.68292284", "0.68291926", "0.68263316", "0.68245447", "0.6824226", "0.6817715", "0.6816996", "0.68106586", "0.6810103", "0.6809513", "0.6808559", "0.6808408", "0.6802585", "0.67959464", "0.67944944", "0.67928296", "0.67914546", "0.67901224", "0.67896134", "0.67883486", "0.67817384", "0.6766481", "0.6766018", "0.676571", "0.6756985", "0.67556614", "0.675249", "0.67502266", "0.6743099", "0.6739551", "0.67379254", "0.6736453", "0.67339987", "0.6728092", "0.67274475", "0.6720717", "0.6715939", "0.6715854", "0.6714594", "0.670914", "0.6707494", "0.670563", "0.67009556", "0.6700291", "0.66993314", "0.6698221", "0.66939473", "0.66917986", "0.66896147" ]
0.0
-1
Gets the by id.
T getById(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String get(String id);", "public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}", "public T get(int id) {\n return this.session.get(this.type, id);\n }", "T get(Integer id);", "@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}", "Object get(ID id) throws Exception;", "T getById(int id);", "T get(ID id);", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "T getById(ID id);", "E getById(long id);", "public OpenERPRecord get(int id) {\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord n = i.next();\r\n\t\t\tInteger rID = (Integer) n.get(\"id\"); // no class cast exception\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// expected here...\r\n\t\t\tif (rID == id)\r\n\t\t\t\treturn n;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "D getById(K id);", "@SuppressWarnings(\"unchecked\")\n\tpublic T get(Long id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\treturn (T) session.get(target, id);\n\t}", "@Override\n public Building get(long id) {\n return dao.get(Building.class, id);\n }", "@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}", "T getbyId(I id);", "public T get(ID id) {\n\t\treturn (T) sessionFactory.getCurrentSession().get(clazz, id);\n\t}", "@Override\n public E getById(final I id) {\n LOG.info(\"[getById] Start: Id = \" + id);\n LOG.info(\"[getById] End\");\n return entityManager.find(entityClass, id);\n }", "public Etudiant getById(int id) {\n\t\treturn dao.getById(id);\r\n\t}", "RiceCooker getById(long id);", "@Override\n public Movie getFromId (Integer id) {return this.movies.get(id);}", "public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}", "T get(PK id);", "V get(K id);", "public Person get( Integer id ) {\n\t\t// Retrieve existing person\n\t\tPerson person = (Person) entityManager.createQuery(\"FROM Person p where p.id = :id\")\n \t.setParameter(\"id\", id).getSingleResult();\n\t\treturn person;\n\t}", "public AirspaceObject getObject(int id)\n\t{\n\t\treturn idToObject.get(id);\n\t}", "@Override\r\n\tpublic Libro read(int id) {\n\t\treturn libroRepository.findById(id).get();\r\n\t}", "public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected <ID extends Serializable> T get(ID id) {\n\t\tT retValue = null;\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tretValue = (T) session.get(mClazz, id);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute get by id\");\n\t\t}\n\n\t\treturn retValue;\n\t}", "@Override\n\tpublic Object getById(Integer id) {\n\t\treturn null;\n\t}", "public Person get( Integer id ) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\t\t\n\t\t\n\t\treturn(Person) session.get(Person.class,id);\n\t}", "@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}", "@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }", "@Override\n\tpublic T getById(long id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Log get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog log = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tlog = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn log;\r\n\t}", "public Paciente get( Long id ) {\r\n\t\t\tlogger.debug(\"Retrieving codigo with id: \" + id);\r\n\t\t\t\r\n\t\t\t/*for (Paciente paciente:codigos) {\r\n\t\t\t\tif (paciente.getId().longValue() == id.longValue()) {\r\n\t\t\t\t\tlogger.debug(\"Found record\");\r\n\t\t\t\t\treturn paciente;\r\n\t\t\t\t}\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t\tlogger.debug(\"No records found\");\r\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\tpublic UserAccount get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tUserAccount ua = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tua = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ua;\r\n\t}", "Clothes getById(int id);", "public o selectById(long id);", "@Override\n\tpublic Contract get(String id) {\n\t\treturn contractDao.findOne(id);\n\t}", "@Override\n\t\tpublic Carrera get(int id) {\n\t\t\t\treturn null;\n\t\t}", "@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}", "public Item getByID(Integer id) {\r\n Item item = null;\r\n //Transaction trans = null;\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n\r\n try {\r\n //trans = session.beginTransaction();\r\n\r\n item = (Item) session.get(Item.class, id);\r\n\r\n //trans.commit();\r\n } catch (HibernateException e) {\r\n //if (trans != null) { trans.rollback(); }\r\n e.printStackTrace();\r\n } finally {\r\n session.close();\r\n }\r\n return item;\r\n }", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "@Override\n\tpublic T getEntryById(Serializable id) {\n\t\treturn (T) this.hibernateTemplate.get(this.classt, id);\n\t}", "public ClassItem get(Long id) {\n return (ClassItem)get(ClassItem.class, id);\n }", "T getById(PK id);", "@Override\r\n\tpublic Amigo getById(int id) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic File getById(long id) {\n\t\treturn getSession().find(File.class, id);\n\t}", "@Override\n public Lekar findOne(Long id) {\n return lekarRepozitorijum.getOne(id);\n }", "public Data findById(Object id);", "public New getObject(long id);", "public T findById(int id)\n {\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n String query = createSelectQuery(\"id\");\n try\n {\n connection = ConnectionFactory.getConnection();\n statement = connection.prepareStatement(query);\n statement.setInt(1,id);\n resultSet = statement.executeQuery();\n\n return createObjects(resultSet).get(0);\n }catch (SQLException e)\n {\n LOGGER.log(Level.WARNING,type.getName() + \"DAO:findById\"+ e.getMessage());\n }finally {\n ConnectionFactory.close(resultSet);\n ConnectionFactory.close(statement);\n ConnectionFactory.close(connection);\n }\n return null;\n }", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "public Notifiche get(int id){\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Recupero il cpe\r\n\t\tNotifiche notifica = (Notifiche) session.get(Notifiche.class, id );\r\n\t\t\r\n\t\t//Restituisco il cpe trovato\r\n\t\treturn notifica;\r\n\t}", "public Activity getById(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t return e; \n\t}", "public Doctor get(String id) {\n\t\treturn dao.get(id);\n\t}", "public Person getOne(Integer id) {\n\t\tPerson person = personRepository.getOne(id);\n\t\treturn person;\n\t}", "public Product get(String id);", "@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }", "@Override\n\t@Transactional\n\tpublic T getById(Integer id) {\n\t\tif (id == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.add(Restrictions.idEq(id))\n\t\t\t\t.uniqueResult();\n\t\treturn initialize(checkType(result));\n\t}", "@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}", "@Override\n\tpublic Gasto findById(Integer id) {\n\t\treturn gastoModel.findById(id).orElseThrow(null);\n\t}", "public void getDetail(int id) {\n\t\t\n\t}", "public AIObject getAIObject(String id) {\n return aiObjects.get(id);\n }", "public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}", "@Override\r\n\tpublic Student getById(int id) {\n\t\treturn sdao.getStudentById(id);\r\n\t}", "public T getReultById(int id){\n return result_now.get(id);\n }", "@Override\n\tpublic Marca obtener(int id) {\n\t\treturn marcadao.obtener(id);\n\t}", "public Matiere findById(Integer id){\n return matiereRepository.getOne(id);\n }", "public User getUserFromID(String id) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"_id\", new ObjectId(id));\r\n\r\n // Loops over users found matching the details, returning the first one\r\n for (User user : users.find(query, User.class)) {\r\n return user;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }", "@Override\n public Song getSong(long id) {\n Song s = null;\n try {\n s = em.createQuery(\"SELECT s FROM Song s WHERE s.id = :id\", Song.class)\n .setParameter(\"id\", id)\n .getSingleResult();\n } catch (NoResultException e) {\n\n }\n return s;\n }", "@Override\n\tpublic Stock Find(Integer id) {\n\t\tStock stock = _stockDao.selectByPrimaryKey(id);\n\t\tif (stock == null) {\n\t\t\treturn new Stock();\n\t\t}\n\t\treturn stock;\n\t}", "@Override\n\tpublic Cat getById(Integer id) {\n\t\tOptional<Cat> cat = catRepository.findById(id);\n\t\tif(cat.isPresent()) {\n\t\t\treturn cat.get();\n\t\t} else {\n\t\t\tthrow new CatNotFoundException();\n\t\t}\n\t}", "@Override\n public ReporteAccidente getById(int id) {\n return repr.findOne(id);\n }", "@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }", "SharedPrivateLinkResource getById(String id);", "@Override\r\n\tpublic Code get(int id) {\n\t\treturn this.getHibernateTemplate().get(Code.class, id);\r\n\t}", "@Override\n\tpublic Room get(int id) {\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room WHERE id_room = \" + id);\n\t\t\tif(rs.next()) {\n\t\t\t\treturn new Room(rs.getInt(1), rs.getInt(2));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new Room();\n\t}", "@Override\n public Revue getById(int id) {\n return null;\n }", "@Override\r\n\tpublic Strumento getById(int id) throws StrumentoNotFoundException {\n\t\treturn strumentoRepository.getOne(id);\r\n\t}", "public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}", "@Override\n\tpublic Object findByID(Serializable id) {\n\t\treturn getSession().get(DirectTalentAdvertBean.class, id);\n\t}", "@Override\n\tpublic Enterprise get(Integer id) {\n\t\treturn enterpriseDAO.get(id);\n\t}", "@Override\n\tpublic Orderi get(Integer id) {\n\t\t\n\t\treturn (Orderi)getHibernateTemplate().get(Orderi.class, id);\n\t}", "public Item getItem(String id) {\r\n\t\treturn items.get(id);\r\n\t}", "public Employee get(int id) {\n\n\t\t\tfor (Employee c : employees) {\n\t\t\t\tif (c.getId()==(id)) {\n\t\t\t\t\treturn c;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public CyPoj findById(Integer id) {\n\t\treturn d.findById(id);\r\n\t}", "@Override\n public DetalleVenta get(int id) {\n return detalleVentaJpaRepository.getOne(id);\n }", "public Individual getIndividual(int id){\n for(Individual individual : individuals){\n if(individual.getId() == id){\n return individual;\n }\n }\n return null;\n }", "Message get(String id);", "Corretor findOne(Long id);", "@Override\n\tpublic ThematicItem getItem(Long id) {\n\t\treturn repository.getItem(id);\n\t}", "@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}", "M getById(Serializable id) throws DataAccessException;", "public Profilo get( Integer id ) {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Recupero il Profilo\r\n\t\tProfilo profilo = (Profilo) session.get(Profilo.class, id);\r\n\t\t\r\n\t\t//Restituisco il Profilo trovato\r\n\t\treturn profilo;\r\n\t}" ]
[ "0.7957887", "0.7921067", "0.7860507", "0.76280874", "0.7576149", "0.75005585", "0.7430083", "0.7421051", "0.7396251", "0.73795193", "0.73292184", "0.7292034", "0.7272272", "0.72417414", "0.723508", "0.72333616", "0.7220241", "0.72193897", "0.7187579", "0.71715593", "0.71678835", "0.71674913", "0.7166295", "0.71523565", "0.7148648", "0.7129972", "0.7113965", "0.7110848", "0.71108246", "0.710142", "0.70785946", "0.7075759", "0.7060421", "0.7060381", "0.7058717", "0.7056649", "0.70387554", "0.7017884", "0.70103467", "0.6993762", "0.69787705", "0.6966854", "0.69546694", "0.69533515", "0.69382906", "0.69278646", "0.69234824", "0.6920736", "0.69203794", "0.6917977", "0.6912868", "0.6910287", "0.690646", "0.6900494", "0.6899683", "0.6893267", "0.688907", "0.6885813", "0.6868208", "0.6861752", "0.68606156", "0.6854773", "0.6854335", "0.6853494", "0.6842172", "0.68405616", "0.6824124", "0.6822939", "0.6803884", "0.68023837", "0.679823", "0.679651", "0.67956156", "0.6791412", "0.6791309", "0.6790947", "0.67858064", "0.678537", "0.67837596", "0.6781826", "0.6778719", "0.67636156", "0.67540413", "0.6753104", "0.6749866", "0.67496276", "0.67433065", "0.6728306", "0.67261535", "0.6725626", "0.67232317", "0.67209554", "0.6712382", "0.671114", "0.6710262", "0.67098033", "0.670613", "0.67053974", "0.67033994", "0.6695452" ]
0.7306499
11
Gets the number of element.
Long getNumberOfElement();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumber() {\r\n\t\treturn page.getNumberOfElements();\r\n\t}", "public int getNumberOfElements();", "public Long getElementCount();", "public int getNrOfElements() {\n return this.nrOfElements;\n }", "public int getNumOfElements() {\n return numOfElements;\n }", "public abstract Integer getNumberOfElements();", "public int getNumElements()\n {\n return numElements;\n }", "public int getNumElements() {\n return numElements;\n }", "public int getNumElements() {\n return numElements;\n }", "public int getNumElements() {\n\t\treturn numElements;\n\t}", "public static int numberOfElement()\n\t{\n\t\treturn REF_INT_STRING.size();\n\t}", "public int getNumber() {\n\t\treturn nodeList.size();\n\t}", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int size() {\n return numOfElements;\n }", "public java.math.BigInteger getCount()\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(COUNT$8);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }", "public int size() {\n return this.n;\n }", "public int getNumElements() {\n return theMap.size();\n }", "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "public int getSize() {\n\t\treturn numElements;\n\t}", "public int getElementSize() {\n\t\treturn this.elementsize;\n\t}", "public IntegerDt getNumberOfInstancesElement() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}", "public IntegerDt getNumberOfInstancesElement() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}", "public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}", "public int size() {\r\n int temp = 0;\r\n for (int i = 0; i < elem.length; i++) {\r\n if (elem[i] != null) {\r\n temp++;\r\n }\r\n }\r\n return temp;\r\n }", "public int getNumberFound() {\n return numberFound;\n }", "public IntegerDt getNumberOfSeriesElement() { \n\t\tif (myNumberOfSeries == null) {\n\t\t\tmyNumberOfSeries = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfSeries;\n\t}", "public int sizeOf();", "public int size() {\n\t\treturn this.elements.size();\n\t}", "public int length() {\n\t\treturn this.n;\n\t}", "public int size() {\n\n return elements.size();\n }", "public int get_count();", "public int size() {\n\t\treturn elements.size();\n\t}", "public int count() {\n return this.count;\n }", "public int getNum() {\n\treturn this.n;\n }", "public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}", "public int size()\r\n {\r\n return n;\r\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public int getSize() {\n return this.n;\n }", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "public int size() {\r\n\t\treturn elements.size();\r\n\t}", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public int getUnitCount() {\n return _elements.length;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int size() {\n return n;\n }", "public int count() {\r\n return count;\r\n }", "public int totalNum(){\n return wp.size();\n }", "public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }", "public int getN() {\n return n_;\n }", "public int dataCount() {\n return this.root.dataCount();\n }", "public int getN() {\n return n_;\n }", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public int size() { \r\n \treturn n; \r\n }", "public int get_count() {\n return (int)getUIntBEElement(offsetBits_count(), 16);\n }", "public int getSubElementCount() { throw new RuntimeException(\"Stub!\"); }", "public static int numElements() {\n return values().length;\n }", "public int size() {\r\n\t\treturn n;\r\n\t\t\r\n\t}", "int getInCount();", "public int count() {\n\t\treturn count;\n\t}", "public int count() {\n return count;\n }", "public int getElementCount(final String elementLocator);", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "public int getNumberOfEntries();", "public int getN() {\r\n\t\treturn n;\r\n\t}", "public java.lang.Integer getNum () {\r\n\t\treturn num;\r\n\t}", "public int getNotYetCount() {\r\n return root.getNotYetCount();\r\n }", "public int size() {\n return elements.size();\n }", "public int size() {\n return _N;\n\n }", "public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "public int size()\r\n {\r\n return count;\r\n }", "public int getN() {\n\t\treturn n;\n\t}", "@XmlAttribute\r\n public Integer getCount() {\r\n return count;\r\n }", "Integer size();", "Integer size();", "public int GetNumber() {\n int num = 0;\n for (int i=0; i<m_colourMap.length; i++) {\n if (!(m_colourMap[i].equals(null))) {\n num++; \n }\n }\n return(num);\n }", "public int getN() {\n\t\treturn N;\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "public int getNum() {\n\t\treturn num;\n\t}", "public int size()\n\t{\n\t\treturn m_elements.size();\n\t}", "public int size() {\n\t\treturn elements;\n\t}", "public int size() {\n return n;\n\n }", "public int getLength()\n\t{\n\t\tDNode tem=first;\n\t\tint length=0;\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\tlength=length+1;\n\t\t\ttem=tem.nextDNode;\n\t\t}\n\t\tif(first!=null)\n\t\t\tlength=length+1;\n\t\treturn length;\n\t}", "public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }", "public int size()\n {\n return count;\n }", "public int size()\n\t\t{\n\t\treturn N;\n\t\t}", "public int size()\n {\n return N;\n }", "public int size() {\n return count;\n }", "public int size() {\r\n\t\treturn elements;\r\n\t}", "public int getSize()\r\n\t{\r\n\t\treturn this.num.size();\r\n\t}", "public int size() {\r\n return N;\r\n }", "public int size() {\n return elements;\n }", "public int size() {\n\t\treturn root.count();\n\t}" ]
[ "0.79022187", "0.7827057", "0.76962775", "0.7671963", "0.76505303", "0.76428765", "0.7591031", "0.75415254", "0.75415254", "0.75259686", "0.7344285", "0.73398256", "0.7175042", "0.7168442", "0.7098869", "0.70631516", "0.7045452", "0.7037769", "0.7028176", "0.7018143", "0.7011044", "0.7011044", "0.69873416", "0.69839865", "0.6962174", "0.6934315", "0.69179696", "0.6914103", "0.691264", "0.68956864", "0.6895664", "0.6886653", "0.6882396", "0.6881837", "0.6880713", "0.68717384", "0.68644494", "0.68581927", "0.68416065", "0.6838734", "0.6830644", "0.68304527", "0.682094", "0.682094", "0.682094", "0.682094", "0.682094", "0.682094", "0.682094", "0.682094", "0.682094", "0.682094", "0.681486", "0.68126786", "0.68068653", "0.6804426", "0.6790132", "0.678664", "0.6783894", "0.6779218", "0.676729", "0.6766645", "0.6763195", "0.67623997", "0.6756987", "0.6752659", "0.6751578", "0.6751463", "0.6748829", "0.6745416", "0.67452675", "0.67437065", "0.6739791", "0.6737235", "0.67351025", "0.6734338", "0.6731354", "0.67181575", "0.67178226", "0.671633", "0.671633", "0.6708021", "0.67062896", "0.6703401", "0.6703401", "0.66966075", "0.66942555", "0.66846997", "0.66842747", "0.6675443", "0.66715", "0.66674167", "0.666564", "0.6662668", "0.66624236", "0.6661566", "0.666017", "0.6656202", "0.66548455", "0.66542315" ]
0.8601257
0
// dd.findByIdAndYear("2761663971465", cd.findFirstByOrderByYearDesc().getYear()).addYear(5); Period p = pd.findById(3); // new ApplicationPeriod(LocalDate.of(2015, 7, 22), LocalDate.of(2015, 7, 23), dd.findByIdAndYear("2761663971465", // cd.findFirstByOrderByYearDesc().getYear()).getDegreeYear(5)); TimerTask timerTask = new ActivatePeriod(p, pd); pd.save(p); Timer timer = new Timer(true); Date today = new Date(); Date tomorrow = new Date(today.getTime() + (1000 10)); timer.schedule(timerTask, tomorrow); System.out.println("Scheduled for time " + tomorrow.toString());
@RequestMapping("/timer-period") public String timerPeriod() { return "Ok"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Scheduled(cron = \"0 0 10 17 8 ?\")\n\tpublic void scheduleTaskYearly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 10:00 o'clock in 17 August - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Scheduled(cron = \"0 0 * * * *\")\n public void scheduleTaskYear() {\n\t\tlog.info(\"Cron Task :: Execution Time Every Hour of Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "TimerSchedule createTimerSchedule();", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "public void scheduleAlarm() {\n\n Calendar cal = Calendar.getInstance();\n Intent alarmIntent = new Intent(context, PeriodicTransactionService.class);\n alarmIntent.setAction(PeriodicTransactionService.ACTION);\n Bundle bundle = new Bundle();\n bundle.putInt(PeriodicTransactionService.USER_ID_PARAM, userId);\n alarmIntent.putExtras(bundle);\n PendingIntent pintent = PendingIntent.getService(context,\n MyAlarmManager.REQUEST_CODE,\n alarmIntent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager alarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarm.setInexactRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), 4 * 1000, pintent);\n }", "public void saveScheduleManagement(Runnable task, LocalTime timePoint, Integer period, TimeUnit timeUnit) {\n LOGGER.info(\"START UP SAVE SCHEDULE MANAGEMENT.\");\n if (checkTodayCurrencyListInDb()) {\n saveCurrencyListToDb();\n ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();\n service.scheduleAtFixedRate(task, calculateTimeBeforeStart(timePoint), period, timeUnit);\n } else {\n ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();\n service.scheduleAtFixedRate(task, calculateTimeBeforeStart(timePoint), period, timeUnit);\n }\n }", "public void period() {\n\t\tPeriod annually = Period.ofYears(1);\n\t\tPeriod quarterly = Period.ofMonths(3);\n\t\tPeriod everyThreeWeeks = Period.ofWeeks(3);\n\t\tPeriod everyOtherDay = Period.ofDays(2);\n\t\tPeriod everyYearAndAWeek = Period.of(1, 0, 7);\n\t\tLocalDate date = LocalDate.of(2014, Month.JANUARY, 20);\n\t\tdate = date.plus(annually);\n\t\tSystem.out.println(date);\n\t\tSystem.out.println(Period.of(0, 20, 47)); // P20M47D\n\t\tSystem.out.println(Period.of(2, 20, 47)); // P2Y20M47D\n\t}", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@Test\n public void repeatingTask_changeRepeatPeriod_nextWeekDate() {\n LocalDate testDate = LocalDateTime.now().minusWeeks(1).minusDays(1).toLocalDate();\n LocalTime testTime = LocalTime.of(8, 30);\n LocalDateTime testDateTime = LocalDateTime.of(testDate, testTime);\n Event testEvent = new Event(\"8 days ago\", \"CS2113T\", testDateTime, testDateTime.plusHours(4),\n \"testing\");\n testTaskList.addTask(testEvent);\n // Set to 1w\n RepeatCommand testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.WEEKLY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n RepeatEvent repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n // Set to 1d\n testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.DAILY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n\n assertEquals(repeatEvent.getPeriodCounter(), 0);\n assertEquals(repeatEvent.getNextDateTime(), LocalDateTime.of(LocalDate.now().plusWeeks(1), testTime));\n }", "org.hl7.fhir.Period addNewAppliesPeriod();", "private static void timerTest4() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\tcalendar.set(Calendar.MINUTE, 20);\n\t\tcalendar.set(Calendar.SECOND, 0);\n\t\tDate time = calendar.getTime();\n\n\t\tTimer timer = new Timer();\n\t\tSystem.out.println(\"wait ....\");\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"timertest4\");\n\n\t\t\t}\n\t\t}, time, 24 * 60 * 60 * 1000);\n\n\t}", "public void generateSchedule(){\n\t\t\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "public void testPeriodic() {\n Scheduler.getInstance().run();\n }", "private void updateRecurringTaskWithRecurringPeriod(RecurringType type, int recurringPeriod,\n String nextStartDate, String nextEndDate) throws Exception {\n TestTask testData = helper.buildRecurringTaskWithoutStartDate(type, recurringPeriod);\n Task tryUpdate = new Task(testData);\n executeAddAndArchive(tryUpdate);\n TaskOccurrence nextDayTaskOccurrence = helper.buildTaskOccurrenceFromTask(tryUpdate, nextStartDate, nextEndDate);\n assertUpdateRecurringTasks(tryUpdate, nextDayTaskOccurrence, recurringPeriod);\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Test\n public void testSchedule() throws IOException, InterruptedException {\n Note note = notebook.createNote(\"note1\", anonymous);\n Paragraph p = note.addNewParagraph(ANONYMOUS);\n Map config = new HashMap<>();\n p.setConfig(config);\n p.setText(\"p1\");\n Date dateFinished = p.getDateFinished();\n Assert.assertNull(dateFinished);\n // set cron scheduler, once a second\n config = note.getConfig();\n config.put(\"enabled\", true);\n config.put(\"cron\", \"* * * * * ?\");\n note.setConfig(config);\n notebook.refreshCron(note.getId());\n Thread.sleep((2 * 1000));\n // remove cron scheduler.\n config.put(\"cron\", null);\n note.setConfig(config);\n notebook.refreshCron(note.getId());\n Thread.sleep((2 * 1000));\n dateFinished = p.getDateFinished();\n Assert.assertNotNull(dateFinished);\n Thread.sleep((2 * 1000));\n Assert.assertEquals(dateFinished, p.getDateFinished());\n notebook.removeNote(note.getId(), anonymous);\n }", "public void schedule(String name, long period, TimeUnit tunit) {\n\t\tschedule(name, period, period, TimeUnit.MILLISECONDS);\n\t}", "@Override\n public void schedulePeriodicNotification(Context context, long time, String title, String text, int period) {\n Notification notification = new Notification(title, text, new Date(time), Long.toString(time));\n notification.setNotificationID(notificationId);\n notification.setRequestCode(requestCode);\n user.addNotification(notification);\n Intent intent = new Intent(context, NotificationReceiver.class);\n intent.putExtra(getString(R.string.title), title);\n intent.putExtra(getString(R.string.text), text);\n intent.putExtra(getString(R.string.notificationid), Integer.toString(notificationId));\n notificationId++;\n PendingIntent pending = PendingIntent.getBroadcast(context, requestCode, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n requestCode++;\n AlarmManager manager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n assert manager != null;\n manager.setInexactRepeating(AlarmManager.RTC_WAKEUP, time,\n AlarmManager.INTERVAL_DAY*period, pending);\n }", "public static void main(String[] args) {\n Task a = new Task(\"s\", new Date(0), new Date(1000*3600*24*7), 3600);\n a.setActive(true);\n System.out.println(a.getStartTime());\n System.out.println(a.getEndTime());\n System.out.println(a.nextTimeAfter(new Date(0)));\n\n\n\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "Schedule createSchedule();", "public void schedule(String name, long initialDelay, long period, TimeUnit tunit) {\n\t\tschedule(name, period, period, tunit, opLevel);\n\t}", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "public static void enablePeriodicalRun(Context context) {\n\t}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n \tauto.autonomousPeriodic();\n\t}", "public void autonomousPeriodic()\r\n {\r\n \r\n }", "public void autonomousPeriodic() {\n \n }", "org.hl7.fhir.Period addNewValuePeriod();", "public void schedule(String name, long period) {\n\t\tschedule(name, period, period, TimeUnit.MILLISECONDS);\n\t}", "public void autonomousPeriodic() {\n\n }", "public void autonomousPeriodic() {\n\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "void getCurrentPeriodo();", "@Scheduled(fixedRate = 2000)\n\tpublic void scheduleTaskWithFixedRate() {\n\t\tlog.info(\"Fixed Rate Task :: Execution Time - {}\", dateTimeFormatter.format(LocalDateTime.now()) );\n\t}", "public Period getNextPeriod() throws PeriodNotFoundException;", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "public static void testPeriod() {\n LocalDate date1 = LocalDate.now();\n System.out.println(\"Current date: \" + date1);\n\n //add 1 month to the current date\n LocalDate date2 = date1.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + date2);\n\n Period period = Period.between(date2, date1);\n System.out.println(\"Period: \" + period);\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public void autonomousPeriodic() {\r\n \r\n }", "public static void main(String[] args) {\n MutablePeriod mp = new MutablePeriod();\n Period p = mp.period;\n Date pEnd = mp.end;\n\n // Let's turn back the clock\n pEnd.setYear(78);\n System.out.println(p);\n\n // Bring back the 60s\n pEnd.setYear(69);\n System.out.println(p);\n }", "private static void increment_time()\n\t{\n\t\ttime_of_day = time_of_day + 1;\n\t\tif(time_of_day>=120)\n\t\t{\n\t\t\ttime_of_day=time_of_day-120;\n\t\t}\n\t}", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\n }", "private void schedule(PlanRecord plan, Context context) {\n Date d = null;\n\n try {\n DateTime test = new DateTime();\n test.setStringSQL(plan.offset);\n d = test.getYearMonthDay();\n } catch (java.text.ParseException e) {\n Log.e(\"PlanReceiver-schedule\", \"Couldn't schedule \" + plan.name + \"\\n e:\" + e);\n e.printStackTrace();\n }\n\n Log.e(\"PlanReceiver-schedule\", \"d.year=\" + (d.getYear() + 1900) + \" d.date=\" + d.getDate() + \" d.month=\" + d.getMonth());\n\n Calendar firstRun = new GregorianCalendar(d.getYear() + 1900, d.getMonth(), d.getDate());\n Log.e(\"PlanReceiver-schedule\", \"FirstRun:\" + firstRun);\n\n Intent intent = new Intent(context, PlanReceiver.class);\n intent.putExtra(\"plan_id\", plan.id);\n intent.putExtra(\"plan_acct_id\", plan.acctId);\n intent.putExtra(\"plan_name\", plan.name);\n intent.putExtra(\"plan_value\", plan.value);\n intent.putExtra(\"plan_type\", plan.type);\n intent.putExtra(\"plan_category\", plan.category);\n intent.putExtra(\"plan_memo\", plan.memo);\n intent.putExtra(\"plan_offset\", plan.offset);\n intent.putExtra(\"plan_rate\", plan.rate);\n intent.putExtra(\"plan_next\", plan.next);\n intent.putExtra(\"plan_scheduled\", plan.scheduled);\n intent.putExtra(\"plan_cleared\", plan.cleared);\n\n //Parse Rate (token 0 is amount, token 1 is type)\n final String phrase = plan.rate;\n final String[] tokens = phrase.split(\"[ ]+\");\n\n final PendingIntent sender = PendingIntent.getBroadcast(context, Integer.parseInt(plan.id), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n //Get the AlarmManager service\n final AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n\n final Locale locale = context.getResources().getConfiguration().locale;\n final DateTime nextRun = new DateTime();\n\n if (tokens[1].contains(\"Days\")) {\n Log.d(\"PlanReceiver-schedule\", \"Days\");\n\n //If Starting Time is in the past, fire off next day(s)\n while (firstRun.before(Calendar.getInstance())) {\n firstRun.add(Calendar.DAY_OF_MONTH, Integer.parseInt(tokens[0]));\n }\n\n Log.d(\"PlanReceiver-schedule\", \"firstRun is \" + firstRun);\n\n nextRun.setCalendar(firstRun);\n\n ContentValues planValues = new ContentValues();\n planValues.put(DatabaseHelper.PLAN_NEXT, nextRun.getSQLDate(locale));\n context.getContentResolver().update(Uri.parse(MyContentProvider.PLANS_URI + \"/\" + plan.id), planValues, DatabaseHelper.PLAN_ID + \"=\" + plan.id, null);\n\n am.setRepeating(AlarmManager.RTC_WAKEUP, firstRun.getTimeInMillis(), (Integer.parseInt(tokens[0]) * AlarmManager.INTERVAL_DAY), sender);\n } else if (tokens[1].contains(\"Weeks\")) {\n Log.d(\"PlanReceiver-schedule\", \"Weeks\");\n\n //If Starting Time is in the past, fire off next week(s)\n while (firstRun.before(Calendar.getInstance())) {\n firstRun.add(Calendar.WEEK_OF_MONTH, Integer.parseInt(tokens[0]));\n }\n\n Log.d(\"PlanReceiver-schedule\", \"firstRun is \" + firstRun);\n\n nextRun.setCalendar(firstRun);\n\n ContentValues planValues = new ContentValues();\n planValues.put(DatabaseHelper.PLAN_NEXT, nextRun.getSQLDate(locale));\n context.getContentResolver().update(Uri.parse(MyContentProvider.PLANS_URI + \"/\" + plan.id), planValues, DatabaseHelper.PLAN_ID + \"=\" + plan.id, null);\n\n am.setRepeating(AlarmManager.RTC_WAKEUP, firstRun.getTimeInMillis(), (Integer.parseInt(tokens[0]) * AlarmManager.INTERVAL_DAY) * 7, sender);\n } else if (tokens[1].contains(\"Months\")) {\n Log.d(\"PlanReceiver-schedule\", \"Months\");\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(cal.getTimeInMillis());\n cal.add(Calendar.MONTH, Integer.parseInt(tokens[0]));\n\n //If Starting Time is in the past, fire off next month(s)\n while (firstRun.before(Calendar.getInstance())) {\n firstRun.add(Calendar.MONTH, Integer.parseInt(tokens[0]));\n }\n\n Log.d(\"PlanReceiver-schedule\", \"firstRun is \" + firstRun);\n\n nextRun.setCalendar(firstRun);\n\n ContentValues planValues = new ContentValues();\n planValues.put(DatabaseHelper.PLAN_NEXT, nextRun.getSQLDate(locale));\n context.getContentResolver().update(Uri.parse(MyContentProvider.PLANS_URI + \"/\" + plan.id), planValues, DatabaseHelper.PLAN_ID + \"=\" + plan.id, null);\n\n am.setRepeating(AlarmManager.RTC_WAKEUP, firstRun.getTimeInMillis(), cal.getTimeInMillis(), sender);\n } else {\n Log.e(\"PlanReceiver-schedule\", \"Could not set alarm; Something wrong with the rate\");\n }\n\n }", "public abstract Date getNextFireTime();", "public void autonomousPeriodic() {\r\n }", "public void autonomousPeriodic() {\r\n }", "public void initAlgorithm() {\n executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 1, 5,TimeUnit.MINUTES);\n// executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 2, 10,TimeUnit.SECONDS);\n\n // every day perform random thought dice roll\n // also roll for random time: 10am - 9pm\n Cron4j.scheduler.schedule(Cron4j.EVERY_DAY_AT_10_AM, () -> {\n int produceThoughtDice = (int) (Math.random() * 3); // 66% yes, 33% no\n if (produceThoughtDice < 2) {\n int timeShift = (int) (Math.random() * 12); // 0-11\n executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, timeShift, TimeUnit.HOURS);\n } else {\n System.out.println(\"Thought not produced today because of the dice: \" + produceThoughtDice);\n }\n });\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n// executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, 0, TimeUnit.SECONDS);\n// });\n\n // every week perform a statistical overview\n // should be not very long and with a lot of variations\n Cron4j.scheduler.schedule(Cron4j.EVERY_WEEK_SUNDAY_18_PM, () -> {\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n executor.schedule(scheduledThoughtsProducer::periodicalWeeklyThoughts, 0, TimeUnit.SECONDS);\n });\n\n // start the scheduler\n Cron4j.scheduler.start();\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "public void testPeriodic() {\n \t\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "abstract public void computeSchedule();", "public void schedule(long period) {\n\t\tschedule(\"ActivityTask\", period, period, TimeUnit.MILLISECONDS);\n\t}", "TemporalService accountingForTransmissionTime();", "@Scheduled(cron = \"0/20 * * * * *\")\n public void scheduleTaskSecond() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 20 Second - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Test\n void deve_retornar_o_periodo_second_period_in() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"10:30:00\"), LocalTime.parse(\"10:30:00\"));\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.SECOND_PERIOD_IN, response);\n }", "public abstract void schedule();", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.SECONDS);\n }", "Period mo20733e();", "public void testPeriodic() {\n\n\t}", "@Override\n public void autonomousPeriodic() {\n }", "public void testPeriodic() {\r\n \r\n }", "public void testPeriodic() {\r\n \r\n }", "@Test\n void deve_retornar_o_periodo_first_period_in() {\n List<LocalTime> localTimes = new ArrayList<>();\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_IN, response);\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\r\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }" ]
[ "0.6268947", "0.6246219", "0.6130831", "0.6128093", "0.6043123", "0.60354656", "0.59473276", "0.59434867", "0.59088445", "0.5899865", "0.58572114", "0.5830003", "0.5828695", "0.5822417", "0.57700366", "0.576961", "0.57662773", "0.5718636", "0.5692755", "0.56909704", "0.5675788", "0.5669537", "0.5666537", "0.5656743", "0.5656743", "0.5656743", "0.5656743", "0.56521344", "0.5630447", "0.5624443", "0.56143194", "0.56105775", "0.56105775", "0.56105775", "0.56105775", "0.56105775", "0.56105775", "0.5601169", "0.5588191", "0.5584844", "0.5575536", "0.55681884", "0.55607575", "0.5557099", "0.554482", "0.5540528", "0.5523412", "0.5523412", "0.5510111", "0.5506383", "0.55041814", "0.5502249", "0.54937845", "0.54927933", "0.5490414", "0.548009", "0.5479582", "0.5477663", "0.54744625", "0.54744625", "0.5470697", "0.54607415", "0.5451732", "0.5451732", "0.5449996", "0.5445425", "0.5445425", "0.5439464", "0.5437463", "0.5428415", "0.54252166", "0.54214686", "0.5420636", "0.54197484", "0.54181594", "0.5407983", "0.5407983", "0.5407983", "0.5407983", "0.54002255", "0.5397655", "0.5390665", "0.5386861", "0.5386547", "0.5386547", "0.5384739", "0.53843564", "0.53843564", "0.53843564", "0.5371157", "0.5370523", "0.5370523", "0.5370523", "0.5370523", "0.5370523", "0.5370523", "0.5370523", "0.5370523", "0.5370523", "0.5370523", "0.5370523" ]
0.0
-1
dd.findByIdAndYear("2761663971465", cd.findFirstByOrderByYearDesc().getYear()).addYear(5); TimerTask timerTask = new RetrieveStudentListTask(dd.findByIdAndYear("2761663971465", cd.findFirstByOrderByYearDesc().getYear()) .getDegreeYear(5), dd); Timer timer = new Timer(true); Date today = new Date(); Date tomorrow = new Date(today.getTime() + (1000 10)); timer.schedule(timerTask, tomorrow); System.out.println("Scheduled for time " + tomorrow.toString());
@RequestMapping("/timer") public String timer() { return "Ok"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void timerTest4() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\tcalendar.set(Calendar.MINUTE, 20);\n\t\tcalendar.set(Calendar.SECOND, 0);\n\t\tDate time = calendar.getTime();\n\n\t\tTimer timer = new Timer();\n\t\tSystem.out.println(\"wait ....\");\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"timertest4\");\n\n\t\t\t}\n\t\t}, time, 24 * 60 * 60 * 1000);\n\n\t}", "@Scheduled(cron = \"0 0 * * * *\")\n public void scheduleTaskYear() {\n\t\tlog.info(\"Cron Task :: Execution Time Every Hour of Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Scheduled(cron = \"0 0 10 17 8 ?\")\n\tpublic void scheduleTaskYearly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 10:00 o'clock in 17 August - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "public static void main(String[] args) \n { \n Timer timer = new Timer(); \n TimerTask task = new Helper(); \n\n timer.schedule(task, 3000, 5000); \n System.out.println(\"hi\");\n\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Scheduled(cron = \"0/20 * * * * *\")\n public void scheduleTaskSecond() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 20 Second - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Scheduled(fixedDelay=5000) //indicamos que esta tarea se repetira cada 5 segundos \n\tpublic void doTask() {\n\t\tLOGGER.info(\"Time is: \"+ new Date());\n\t}", "TimerSchedule createTimerSchedule();", "public static void main(String[] args) {\n Task a = new Task(\"s\", new Date(0), new Date(1000*3600*24*7), 3600);\n a.setActive(true);\n System.out.println(a.getStartTime());\n System.out.println(a.getEndTime());\n System.out.println(a.nextTimeAfter(new Date(0)));\n\n\n\n }", "public void schedule() {\n\t\tnew Timer().schedule(getTask(), TIME);\n\t}", "private void forestIncomeTimerStart(){\n forestIncomeTimer.schedule(new TimerTask() {\n\n @Override\n public void run() {\n\n\n forestModel.setWood(forestModel.getWood()\n .add(forestModel.getElfIncome())\n .add(forestModel.getLumberjackIncome())\n .add(forestModel.getWoodcutterIncome()));\n setWoodLabel();\n setWoodIncomeLabel();\n\n\n\n\n\n }\n\n }, 1, 1000);\n }", "public void run(){\n Timer time = new Timer(); // Instantiate Timer Object\n\n ScheduledClass st = new ScheduledClass(this.job,this.shm,time,this.stopp); // Instantiate SheduledTask class\n time.schedule(st, 0, this.periodicwait); // Create Repetitively task for every 1 secs\n }", "public void generateSchedule(){\n\t\t\n\t}", "@Test\n public void testTask() throws InterruptedException {\n\n SchedulingRunnable task1 = new SchedulingRunnable(\"demoTask\", \"taskWithParams\", \"aaa\",\"111\");\n cronTaskRegistrar.addCronTask(task1, \"0/15 * * * * ?\");\n Thread.sleep(10000);\n\n SchedulingRunnable task2 = new SchedulingRunnable(\"demoTask\", \"taskWithParams\", \"aaa\",\"111\");\n cronTaskRegistrar.addCronTask(task2, \"0/8 * * * * ?\");\n // 便于观察\n\n Thread.sleep(3000000);\n }", "public void startTimer() {\n timer = new Timer();\n\n //initialize the TimerTask's job\n //initializeTimerTask();\n\n //schedule the timer, after the first 5000ms the TimerTask will run every 10000ms\n timer.schedule(timerTask, 5000, Your_X_SECS * 1000); //\n //timer.schedule(timerTask, 5000,1000); //\n }", "public void startTimer() {\n timer = new Timer();\n\n //initialize the TimerTask's job\n initializeTimerTask();\n\n //schedule the timer, after the first 5000ms the TimerTask will run every 10000ms\n timer.schedule(timerTask, 5000, Your_X_SECS * 1000); //\n //timer.schedule(timerTask, 5000,1000); //\n }", "public abstract void schedule();", "private static void timerTest1() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"timertest1\");\n\t\t\t\ttimer.cancel();\n\n\t\t\t}\n\t\t}, 2000);\n\n\t}", "Timer getTimer();", "public void startTimer() {\n timer = new Timer();\n\n //initialize the TimerTask's job\n initializeTimerTask();\n //schedule the timer, after the first 5000ms the TimerTask will run every 10000ms\n timer.schedule(timerTask,100,1000);\n\n }", "@Scheduled(fixedRate = 2000)\n\tpublic void scheduleTaskWithFixedRate() {\n\t\tlog.info(\"Fixed Rate Task :: Execution Time - {}\", dateTimeFormatter.format(LocalDateTime.now()) );\n\t}", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "public void demoSchduleMethod() {\n log.info(\"Method executed at every 5 seconds. Current time is :: \" + new Date());\n }", "private static void increment_time()\n\t{\n\t\ttime_of_day = time_of_day + 1;\n\t\tif(time_of_day>=120)\n\t\t{\n\t\t\ttime_of_day=time_of_day-120;\n\t\t}\n\t}", "@Test\n public void testSchedule() throws IOException, InterruptedException {\n Note note = notebook.createNote(\"note1\", anonymous);\n Paragraph p = note.addNewParagraph(ANONYMOUS);\n Map config = new HashMap<>();\n p.setConfig(config);\n p.setText(\"p1\");\n Date dateFinished = p.getDateFinished();\n Assert.assertNull(dateFinished);\n // set cron scheduler, once a second\n config = note.getConfig();\n config.put(\"enabled\", true);\n config.put(\"cron\", \"* * * * * ?\");\n note.setConfig(config);\n notebook.refreshCron(note.getId());\n Thread.sleep((2 * 1000));\n // remove cron scheduler.\n config.put(\"cron\", null);\n note.setConfig(config);\n notebook.refreshCron(note.getId());\n Thread.sleep((2 * 1000));\n dateFinished = p.getDateFinished();\n Assert.assertNotNull(dateFinished);\n Thread.sleep((2 * 1000));\n Assert.assertEquals(dateFinished, p.getDateFinished());\n notebook.removeNote(note.getId(), anonymous);\n }", "SessionTask(long scheduleNext) {\n delayBeforeNext = scheduleNext;\n taskid = taskcount++;\n }", "public void schedule() {\n cancel();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n runnable.run();\n }\n }, delay);\n }", "public void startTimer() {\n timer = new Timer();\n //initialize the TimerTask's job\n initializeTimerTask();\n //schedule the timer, to wake up every 1 second\n timer.schedule(timerTask, 1000, 1000); //\n }", "public static void main(String[] args) {\n\t\tMyTaskA a=new MyTaskA();\n\t\tMyTask task=new MyTask();\n\t\tCalendar ca=Calendar.getInstance();\n\t\tca.add(Calendar.SECOND, 10);\n\t\tCalendar ca1=Calendar.getInstance();\n\t\tca1.add(Calendar.SECOND, 11);\n\t\tSystem.out.println(\"计划执行时间为:\"+ca.getTime());\n\t\tSystem.out.println(\"计划执行时间为:\"+ca1.getTime());\n\t\tTimer t=new Timer();\n\t\tt.schedule(a, ca.getTime());\n\t\tt.schedule(task, ca1.getTime(),4000);\n\t\t\n\t}", "@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }", "private void startTime()\n {\n timer.start();\n }", "public long getNextScheduled() {\n\t\tDate currDate = new Date();\n\t\t\n\t\tCalendar runTimeToday = Calendar.getInstance();\n\t\trunTimeToday.setTime(currDate);\n\t\t\n\t\trunTimeToday.set(Calendar.HOUR_OF_DAY, hour);\n\t\trunTimeToday.set(Calendar.MINUTE, minute);\n\t\trunTimeToday.set(Calendar.SECOND, 0);\n\t\t\n\t\tDate runTimeTodayDate = runTimeToday.getTime();\n\t\t\n\t\tif(currDate.before(runTimeTodayDate)) {\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is today.\");\n\t\t} else {\n\t\t\t// equals or after\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is tomorrow.\");\n\t\t\trunTimeToday.add(Calendar.DATE, 1);\n\t\t\trunTimeTodayDate = runTimeToday.getTime();\n\t\t}\n\t\t\n\t\tlong runTime = runTimeTodayDate.getTime() - currDate.getTime();\n\t\t\n\t\tif(false) {\n\t\t\t// Debugging\n\t\t\trunTime = 0;\n\t\t}\n\t\t\n\t\trunTime += randomDelay;\n\t\t\n\t\treturn runTime;\n\t}", "private void scheduleJob() {\n\n }", "@Scheduled(cron = \"0 * * * * ?\")\r\n public void cronJobSch() {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\r\n Date now = new Date();\r\n String strDate = sdf.format(now);\r\n System.out.println(\"Java cron job expression:: \" + strDate);\r\n }", "public abstract Date getNextFireTime();", "public void startTimer(){\n logger.trace(\"Sensor/\" + getModel().getId() + \" timer started\");\n if(newTimer != null){\n //newTimer = new Timer();\n if(timerTask != null) timerTask.cancel();\n newTimer.purge();\n timerTask = new TimerTask() {\n @Override\n public void run() {\n timerEngine();\n }\n };\n newTimer.schedule(timerTask,(getModel().getRefreshTime()*1000),(getModel().getRefreshTime()*1000)/2);\n }\n }", "@Scheduled(cron = \"0 0 8-10 * * *\")\n\tpublic void scheduleTaskHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8 - 10 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "protected abstract String scheduler_next();", "public void schedule(Runnable job, long delay, TimeUnit unit);", "public void startTimer() {\n timer = new Timer();\n\n //initialize the TimerTask's job\n initializeTimerTask();\n\n //schedule the timer, after the first 5000ms the TimerTask will run every 10000ms\n timer.schedule(timerTask, 5000, 10000);\n }", "abstract public void computeSchedule();", "public void scheduleNow(Runnable r) {\n ctx.requireStarted();\n ctx.getRunLoop().scheduleNow(r);\n }", "@Scheduled(fixedRate = 19000)\n public void tesk() {\n\t\tDateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\");\n DateFormat tf =new SimpleDateFormat(\"HH:mm\");\n\t\t// Get the date today using Calendar object.\n\t\tDate today = Calendar.getInstance().getTime(); \n\t\t// Using DateFormat format method we can create a string \n\t\t// representation of a date with the defined format.\n\t\tString reportDate = df.format(today);\n\t\tString repo = tf.format(today);\n\t\tSystem.out.println(\"Report Date: \" + reportDate);\n \n\t\t List<Tacher> tacher= tacherservice.findBydatetime(today, repo);\n\t\t\n\t\t if (tacher!=null){\t \n \t\t for(int i=0; i<tacher.size(); i++) {\n \t\t\t Tacher current = tacher.get(i);\n \t\t\t System.out.println(\"Tacher: \" + current.getId()+\" Statut=\"+current.getStatut()); \n \t\t tacherservice.metajourtacher(current.getId());\n \t\t System.out.println(\"Tacher: \" + current.getId()+\" Statut=\"+current.getStatut());\n \t\t } ///// fermeteur de for \n\t\t }//fermeteur de if\n\t}", "private void initTimerTask() {\n\t\t\n\t\ttimerTask = new TimerTask() { \n\t\t @Override \n\t\t public void run() { \n\t\t // TODO Auto-generated method stub \n\t\t \t\n\t\t \tif (isCompleteQuery) {\n\t\t \t\tisCompleteQuery = !isCompleteQuery;\n\t\t \t\t\n\t\t \t\tMessage message = new Message(); \n\t\t\t message.what = 911; \n\t\t\t handler.sendMessage(message); \n\t\t\t LogUtils.i(\"*****************定时任务查询\");\n\t\t\t\t}\n\t\t \n\t\t } \n\t\t}; \n\t\tif (timer == null) {\n\t\t\ttimer = new Timer();\n\t\t}\n\t\t\n\t\ttimer.schedule(timerTask, 10000, 5000);//延迟10秒查询,每5秒执行一次\n\t}", "@Override\n\tpublic void contextInitialized(ServletContextEvent sce) {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\t/************** Update at 3:00 everyday *********************/\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 3);\n\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\tcalendar.set(Calendar.SECOND, 0);\n\t\tDate date = calendar.getTime();\t//第一次执行定时任务的时间\n\t\t\n\t\t//如果第一次执行定时任务的时间早于当前的时间\n //此时要在第一次执行定时任务的时间上加一天,以便此任务在下个时间点执行。如果不加一天,任务会立即执行。循环执行的周期则以当前时间为准\n if (date.before(new Date())) {\n date = this.addDay(date, 1); //后延一天\n System.out.println(date);\n }\n \n\t\tTimer timer = new Timer();\n\t\tUpdate task = new Update();\n\t\t//安排指定的任务在指定的时间开始进行重复的固定延迟执行。\n\t\ttimer.schedule(task, date, PERIOD_DAY);\n\t}", "public final void scheduleNext(long j) {\n Observable d = this.configurationProvider.getServiceConfiguration(serviceTransaction$default(this, false, 1, null), DefaultStreamSampler$scheduleNext$1.INSTANCE).mo30225d((Function<? super T, ? extends ObservableSource<? extends R>>) new DefaultStreamSampler$scheduleNext$2<Object,Object>(this, j));\n Intrinsics.checkReturnedValueIsNotNull((Object) d, \"configurationProvider.ge…ECONDS)\\n }\");\n Disposable a = C11922d.m38477a(d, null, null, new DefaultStreamSampler$scheduleNext$3(this), 3, null);\n C11917a.m38473a(a, compositeDisposable());\n this.timer = a;\n }", "public void run() {\n long start = System.nanoTime();\n try {\n activeCount.inc();\n long delay = start - nextExecutionTime;//实践执行时间-理论应该执行的实际点\n taskExecutionDelay.record(delay, TimeUnit.NANOSECONDS);\n // real logic\n if (isPeriodic())\n runPeriodic();\n else\n ScheduledFutureTask.super.run();\n } finally {\n activeCount.dec();\n taskExecutionTime.record(System.currentTimeMillis() - start, TimeUnit.MILLISECONDS);\n }\n }", "@Override\n public void run() {\n // 获取最近一次执行时间并将其格式化。\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n System.out.println(\"Scheduled exec time is: \" + simpleDateFormat.format(scheduledExecutionTime()));\n System.out.println(\"Dancing...\");\n }", "public void saveScheduleManagement(Runnable task, LocalTime timePoint, Integer period, TimeUnit timeUnit) {\n LOGGER.info(\"START UP SAVE SCHEDULE MANAGEMENT.\");\n if (checkTodayCurrencyListInDb()) {\n saveCurrencyListToDb();\n ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();\n service.scheduleAtFixedRate(task, calculateTimeBeforeStart(timePoint), period, timeUnit);\n } else {\n ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();\n service.scheduleAtFixedRate(task, calculateTimeBeforeStart(timePoint), period, timeUnit);\n }\n }", "public Timer getOverallTimer();", "private static void timerTest2() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (count < 5) {\n\t\t\t\t\tSystem.out.println(\"timertest2\" + \" \" + ++count);\n\t\t\t\t} else {\n\t\t\t\t\ttimer.cancel();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 2000, 1000);\n\n\t}", "public void schedule(Context context, int requestCode)\n {\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n\n int alarmID = 0;\n Days[] days = getDays();\n int routineID = id;\n String routineName = name;\n\n Calendar routineTime = Calendar.getInstance();\n\n try\n {\n routineTime.setTime(Objects.requireNonNull(formatter.parse(time)));\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n // Schedule for each selected days\n for (Days day : days)\n {\n Calendar scheduleTime = Calendar.getInstance();\n\n // Set current calendar to current system time\n scheduleTime.setTimeInMillis(System.currentTimeMillis());\n scheduleTime.set(Calendar.HOUR_OF_DAY, routineTime.get(Calendar.HOUR_OF_DAY));\n scheduleTime.set(Calendar.MINUTE, routineTime.get(Calendar.MINUTE));\n scheduleTime.set(Calendar.SECOND, 0);\n scheduleTime.set(Calendar.MILLISECOND, 0);\n scheduleTime.set(Calendar.DAY_OF_MONTH, Calendar.DAY_OF_MONTH);\n\n switch(day)\n {\n case Sunday:\n scheduleTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n break;\n\n case Monday:\n scheduleTime.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);\n break;\n\n case Tuesday:\n scheduleTime.set(Calendar.DAY_OF_WEEK, Calendar.TUESDAY);\n break;\n\n case Wednesday:\n scheduleTime.set(Calendar.DAY_OF_WEEK, Calendar.WEDNESDAY);\n break;\n\n case Thursday:\n scheduleTime.set(Calendar.DAY_OF_WEEK, Calendar.THURSDAY);\n break;\n\n case Friday:\n scheduleTime.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY);\n break;\n\n case Saturday:\n scheduleTime.set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);\n break;\n }\n\n Log.i(\"Routine\", \"----- Scheduling -----\");\n\n // Check if whether the day selected has passed, if yes then\n // add 7 days into the scheduler\n if (scheduleTime.getTimeInMillis() <= System.currentTimeMillis())\n {\n scheduleTime.add(Calendar.DAY_OF_MONTH, 7);\n Log.i(\"Routine\", \"ADD 7 DAYS\");\n }\n\n // DEBUG LOG\n Log.i(\"Routine\", \"Routine ID : \" + routineID);\n Log.i(\"Routine\", \"Day : \" + scheduleTime.get(Calendar.DAY_OF_WEEK));\n Log.i(\"Routine\", \"Hours : \" + scheduleTime.get(Calendar.HOUR_OF_DAY));\n Log.i(\"Routine\", \"Minutes : \" + scheduleTime.get(Calendar.MINUTE));\n Log.i(\"Routine\", \"DOM : \" + scheduleTime.get(Calendar.DAY_OF_MONTH));\n Log.i(\"Routine\", \"Month : \" + scheduleTime.get(Calendar.MONTH));\n\n // Intent to handle broadcast from alarm manager\n Intent intent = new Intent(context, AlarmBroadcastReceiver.class);\n intent.putExtra(\"Routine ID\", routineID);\n intent.putExtra(\"Routine Name\", routineName);\n\n PendingIntent alarmPendingIntent = PendingIntent.getBroadcast(context, (routineID * 10) + alarmID, intent, 0);\n\n // Routine will always repeating\n int RUN_WEEKLY = 24 * 7 * 60 * 60 * 1000;\n\n switch(requestCode)\n {\n case REQ_ADD_SCHEDULE:\n Log.i(\"Routine\", \"SCHEDULE ACTION ADD\");\n\n // Schedule to alarm manager\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n alarmManager.setExactAndAllowWhileIdle(\n AlarmManager.RTC_WAKEUP,\n scheduleTime.getTimeInMillis(),\n alarmPendingIntent\n );\n }\n else\n {\n alarmManager.setExact(\n AlarmManager.RTC_WAKEUP,\n scheduleTime.getTimeInMillis(),\n alarmPendingIntent\n );\n }\n\n alarmID++;\n break;\n\n case REQ_DELETE_SCHEDULE:\n Log.i(\"Routine\", \"SCHEDULE ACTION REMOVE\");\n alarmManager.cancel(alarmPendingIntent);\n alarmID++;\n break;\n }\n }\n }", "private void startTimer(){\n timer= new Timer();\r\n task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n waitDuration++;\r\n\r\n timerLabel.setText(Integer.toString(waitDuration));\r\n }\r\n };\r\n timer.scheduleAtFixedRate(task,1000,1000);\r\n }", "void schedule(ScheduledJob job);", "long getStartTime();", "protected void runEachSecond() {\n \n }", "@Scheduled(fixedRate = 2000, initialDelay = 5000)\n\tpublic void scheduleTaskWithInitialDelay() {\n\t\tlog.info(\"Fixed Rate Task With Initial Delay :: Execution Time - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "Schedule createSchedule();", "@Override\n public void run() {\n schedule();\n }", "public interface TCTimer {\n\n public void cancel();\n\n public void schedule(TimerTask task, long delay);\n\n public void schedule(TimerTask task, Date time);\n\n public void schedule(TimerTask task, long delay, long period);\n\n public void schedule(TimerTask task, Date firstTime, long period);\n\n public void scheduleAtFixedRate(TimerTask task, long delay, long period);\n\n public void scheduleAtFixedRate(TimerTask task, Date firstTime,\n long period);\n}", "@Override // se crea una clase anonima donde se implementa el metodo run porque Timer task implementa la interfaz runnable\r\n public void run() {\r\n System.out.println(\"Tarea realizada en: \" + new Date() + \" nombre del Thread: \"\r\n + Thread.currentThread().getName()); //retorna el nombre del hilo actual\r\n System.out.println(\"Finaliza el tiempo\");\r\n timer.cancel(); // termina este timer descartando cualquier tarea programada actual\r\n }", "public void setupTimer() {\r\n\t\tmarcus.email.util.time.Timer actualTime = new marcus.email.util.time.Timer();\r\n\t\tactualTime.start();\r\n\t\tActionListener l = new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tlblTimeDate.setText(actualTime.getCurrentTime());\r\n\t\t\t}\r\n\t\t};\r\n\t\t//This is the Swing timer class that updates the actual timer\r\n\t\tTimer t = new Timer(100, l);\r\n\t\tt.start();\r\n\t}", "public void testPeriodic() {\n Scheduler.getInstance().run();\n }", "public void startTimer() {\n timer = new Timer();\n\n //initialize the TimerTask's job\n initializeTimerTask();\n\n //schedule the timer, to wake up every 1 second\n timer.schedule(timerTask, 10000, 10000);\n }", "public void onScheduled(long scheduledTime);", "@Scheduled(cron = \"0 0 9 * * *\", zone = \"Asia/Bangkok\")\n public void testEveryNineAM() {\n// log.info(\"Hey Hoo!!!\");\n }", "int getStartTime();", "int getStartTime();", "int getStartTime();", "void deschedule(ScheduledJob job);", "private static void timerTest3() {\n\t\tTimer timer = new Timer();\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"timertest3\");\n\n\t\t\t}\n\t\t}, 2000, 1000);\n\n\t}", "@Scheduled(cron = \"0 0/30 8-9 * * *\")\n\tpublic void scheduleTaskCustomHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8:00, 8:30, 9:00, 9:30 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "private void scheduleUpdateTimer() {\n\t\tassert completionUpdateTimer == null : \"Timer object was created\";\n\n\t\tfinal TimerTask timerTask = new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (deviceUnderDisplay != null) {\n\t\t\t\t\tfinal int timeToFinish = deviceUnderDisplay.getDriver()\n\t\t\t\t\t\t\t.getTimeToCompletion();\n\t\t\t\t\tif (timeToFinish > 0) {\n\t\t\t\t\t\tif (isInforming) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Inform elapsed time\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\treportTime(DeviceUI.ReportKind.FINISHING,\n\t\t\t\t\t\t\t\t\ttimeToFinish);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * We are starting.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\treportTime(DeviceUI.ReportKind.STARTING,\n\t\t\t\t\t\t\t\t\ttimeToFinish);\n\t\t\t\t\t\t\tisInforming = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (isInforming) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * The task has just finished\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\treportTime(DeviceUI.ReportKind.FINISHING, 0);\n\t\t\t\t\t\t\tisInforming = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tcompletionUpdateTimer.scheduleAtFixedRate(timerTask, 0,\n\t\t\t\tUPDATE_TIMER_REFRESH_RATE);\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "public SimpleSandTimer(final Instant deadline, final Supplier<Instant> now) {\n this.deadline = deadline;\n this.now = now;\n }", "private void updateSimState(Date currentSimDateTime){\n\n SimpleDateFormat ft =\n new SimpleDateFormat(\"E yyyy.MM.dd 'at' hh:mm:ss a\");\n String simDateTime = ft.format(currentSimDateTime);\n\n\n for(Person person : entirePopulation){\n for (Task task : person.getSchedule().getTasks()){\n int taskHour = task.getHourOfDay();\n\n int currentSimHour = currentSimDateTime.getHours();\n\n String output = \"{\" + taskHour + \" , \" + currentSimHour + \"}\";\n Log.d(\"Testing\", output);\n\n if(taskHour == currentSimHour ){\n // Perform given task now.\n Log.d(\"Task Executed: \", task.getTaskName());\n }\n }\n }\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public void setupTimerSchedule(GUIController controller, int startTime, int runRate){\n this.fTimer.scheduleAtFixedRate(controller, startTime, runRate);\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "public void startTimer(){\n timerStarted = System.currentTimeMillis();\n }", "public void scheduleAlarm() {\n\n Calendar cal = Calendar.getInstance();\n Intent alarmIntent = new Intent(context, PeriodicTransactionService.class);\n alarmIntent.setAction(PeriodicTransactionService.ACTION);\n Bundle bundle = new Bundle();\n bundle.putInt(PeriodicTransactionService.USER_ID_PARAM, userId);\n alarmIntent.putExtras(bundle);\n PendingIntent pintent = PendingIntent.getService(context,\n MyAlarmManager.REQUEST_CODE,\n alarmIntent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager alarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarm.setInexactRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), 4 * 1000, pintent);\n }", "@Test\n public void testGetNextAlarm()\n {\n addTask(\"task1\", now.plusMinutes(5), null, false);\n addTask(\"task2\", now.plusDays(5), null, false);\n addTask(\"task3\", now.plusMinutes(5), Type.DAY, false); //due date NOW + 5 min\n addTask(\"task4\", now.minusDays(1), Type.WEEK, false); //due date in 1 week\n addTask(\"task5\", now.plusMinutes(10), null, true); //disabled\n\n new GetNextAlarm().getNextAlarm(now.plusMinutes(5).getMillis(), false);\n\n //this should calculate the next occurrance of task3\n Cursor cursor = taskProvider.query(TaskProvider.TASK_JOIN_REPEAT_URI,\n new TaskTable().getColumns(TASK_ID, REPEAT_NEXT_DUE_DATE),\n REPEAT_NEXT_DUE_DATE+\"=\"+now.plusMinutes(5).plusDays(1).getMillis(),\n null,\n null);\n\n assertThat(cursor.getCount(), is(1));\n cursor.moveToFirst();\n assertThat(cursor.getInt(0), is(3));\n\n }", "private void schedule(PlanRecord plan, Context context) {\n Date d = null;\n\n try {\n DateTime test = new DateTime();\n test.setStringSQL(plan.offset);\n d = test.getYearMonthDay();\n } catch (java.text.ParseException e) {\n Log.e(\"PlanReceiver-schedule\", \"Couldn't schedule \" + plan.name + \"\\n e:\" + e);\n e.printStackTrace();\n }\n\n Log.e(\"PlanReceiver-schedule\", \"d.year=\" + (d.getYear() + 1900) + \" d.date=\" + d.getDate() + \" d.month=\" + d.getMonth());\n\n Calendar firstRun = new GregorianCalendar(d.getYear() + 1900, d.getMonth(), d.getDate());\n Log.e(\"PlanReceiver-schedule\", \"FirstRun:\" + firstRun);\n\n Intent intent = new Intent(context, PlanReceiver.class);\n intent.putExtra(\"plan_id\", plan.id);\n intent.putExtra(\"plan_acct_id\", plan.acctId);\n intent.putExtra(\"plan_name\", plan.name);\n intent.putExtra(\"plan_value\", plan.value);\n intent.putExtra(\"plan_type\", plan.type);\n intent.putExtra(\"plan_category\", plan.category);\n intent.putExtra(\"plan_memo\", plan.memo);\n intent.putExtra(\"plan_offset\", plan.offset);\n intent.putExtra(\"plan_rate\", plan.rate);\n intent.putExtra(\"plan_next\", plan.next);\n intent.putExtra(\"plan_scheduled\", plan.scheduled);\n intent.putExtra(\"plan_cleared\", plan.cleared);\n\n //Parse Rate (token 0 is amount, token 1 is type)\n final String phrase = plan.rate;\n final String[] tokens = phrase.split(\"[ ]+\");\n\n final PendingIntent sender = PendingIntent.getBroadcast(context, Integer.parseInt(plan.id), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n //Get the AlarmManager service\n final AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n\n final Locale locale = context.getResources().getConfiguration().locale;\n final DateTime nextRun = new DateTime();\n\n if (tokens[1].contains(\"Days\")) {\n Log.d(\"PlanReceiver-schedule\", \"Days\");\n\n //If Starting Time is in the past, fire off next day(s)\n while (firstRun.before(Calendar.getInstance())) {\n firstRun.add(Calendar.DAY_OF_MONTH, Integer.parseInt(tokens[0]));\n }\n\n Log.d(\"PlanReceiver-schedule\", \"firstRun is \" + firstRun);\n\n nextRun.setCalendar(firstRun);\n\n ContentValues planValues = new ContentValues();\n planValues.put(DatabaseHelper.PLAN_NEXT, nextRun.getSQLDate(locale));\n context.getContentResolver().update(Uri.parse(MyContentProvider.PLANS_URI + \"/\" + plan.id), planValues, DatabaseHelper.PLAN_ID + \"=\" + plan.id, null);\n\n am.setRepeating(AlarmManager.RTC_WAKEUP, firstRun.getTimeInMillis(), (Integer.parseInt(tokens[0]) * AlarmManager.INTERVAL_DAY), sender);\n } else if (tokens[1].contains(\"Weeks\")) {\n Log.d(\"PlanReceiver-schedule\", \"Weeks\");\n\n //If Starting Time is in the past, fire off next week(s)\n while (firstRun.before(Calendar.getInstance())) {\n firstRun.add(Calendar.WEEK_OF_MONTH, Integer.parseInt(tokens[0]));\n }\n\n Log.d(\"PlanReceiver-schedule\", \"firstRun is \" + firstRun);\n\n nextRun.setCalendar(firstRun);\n\n ContentValues planValues = new ContentValues();\n planValues.put(DatabaseHelper.PLAN_NEXT, nextRun.getSQLDate(locale));\n context.getContentResolver().update(Uri.parse(MyContentProvider.PLANS_URI + \"/\" + plan.id), planValues, DatabaseHelper.PLAN_ID + \"=\" + plan.id, null);\n\n am.setRepeating(AlarmManager.RTC_WAKEUP, firstRun.getTimeInMillis(), (Integer.parseInt(tokens[0]) * AlarmManager.INTERVAL_DAY) * 7, sender);\n } else if (tokens[1].contains(\"Months\")) {\n Log.d(\"PlanReceiver-schedule\", \"Months\");\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(cal.getTimeInMillis());\n cal.add(Calendar.MONTH, Integer.parseInt(tokens[0]));\n\n //If Starting Time is in the past, fire off next month(s)\n while (firstRun.before(Calendar.getInstance())) {\n firstRun.add(Calendar.MONTH, Integer.parseInt(tokens[0]));\n }\n\n Log.d(\"PlanReceiver-schedule\", \"firstRun is \" + firstRun);\n\n nextRun.setCalendar(firstRun);\n\n ContentValues planValues = new ContentValues();\n planValues.put(DatabaseHelper.PLAN_NEXT, nextRun.getSQLDate(locale));\n context.getContentResolver().update(Uri.parse(MyContentProvider.PLANS_URI + \"/\" + plan.id), planValues, DatabaseHelper.PLAN_ID + \"=\" + plan.id, null);\n\n am.setRepeating(AlarmManager.RTC_WAKEUP, firstRun.getTimeInMillis(), cal.getTimeInMillis(), sender);\n } else {\n Log.e(\"PlanReceiver-schedule\", \"Could not set alarm; Something wrong with the rate\");\n }\n\n }", "private \n void setTimerForTokenRenewal(DelegationTokenToRenew token, \n boolean firstTime) throws IOException {\n \n // calculate timer time\n long now = System.currentTimeMillis();\n long renewIn;\n if(firstTime) {\n renewIn = now;\n } else {\n long expiresIn = (token.expirationDate - now); \n renewIn = now + expiresIn - expiresIn/10; // little bit before the expiration\n }\n \n // need to create new task every time\n TimerTask tTask = new RenewalTimerTask(token);\n token.setTimerTask(tTask); // keep reference to the timer\n\n renewalTimer.schedule(token.timerTask, new Date(renewIn));\n }", "private void sleepByScheduleTime() throws InterruptedException\n\t{\n\t\tjava.util.Calendar calendar = java.util.Calendar.getInstance();\n\t\tcalendar.setTime(new java.util.Date(System.currentTimeMillis()));\n\t\tint currHour = calendar.get(calendar.HOUR_OF_DAY);\n\t\tif ((24 - currHour) * 60 < 2 * FtpData.SCHEDULE_TIME)\n\t\t{\n\t\t\tsleep((FtpData.SCHEDULE_TIME + 1) * 60000); // 00h:01\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsleep(FtpData.SCHEDULE_TIME * 60000); // n * minutes;\n\t\t}\n\t}", "@Scheduled(cron=\"0/5 * * * * ?\")\n public void reportCurrentTime() {\n log.info(\"The time is now {}\", dateFormat.format(new Date()));\n }", "public void createTimer()\n {\n if (timer != null )\n return;\n \n logger.trace(\"Creating rss timer and task.\");\n RssTimerRefreshFeed refresh = new RssTimerRefreshFeed(this);\n this.timer = new Timer();\n this.timer.scheduleAtFixedRate(refresh, 100, PERIOD_REFRESH_RSS);\n \n logger.trace(\"Done.\");\n }", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void initializeTimerTask() {\n timerTask = new TimerTask() {\n public void run() {\n Log.i(\"in timer\", \"in timer ++++ \"+ (counter++));\n cek_tugas();\n uploadphoto();\n cekNotifSampai();\n cekJanjiSurvey();\n }\n };\n }", "public static void main(String[] args) {\n\t\t\r\n\t\ttimer = new Timer();\r\n//\t\ttimer.schedule(new WorkTask(), 5000, 3000);\r\n\t\ttimer.schedule(new WorkTask(), 1000);\r\n\t}", "public Schedule(Date startTime, long repeatAfter, TimeUnit unit) {\n\t\tsuper();\n\t\tthis.startTime = startTime == null ? new Date() : startTime;\n\t\tthis.repeatAfter = repeatAfter;\n\t\tthis.unit = unit;\n\t}", "public double getStartTime();", "public void run() {\r\n\t\t// Get current date/time and format it for output\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat format = \r\n\t\t\tnew SimpleDateFormat(\"dd.mm.yyyy hh:mm:ss\");\r\n\t\tString current_time = format.format(date);\r\n\r\n\t\t// Output to user the name of the objecet and the current \r\n\t\t// time\r\n\t\tSystem.out.println(objectName + \" - Current time: \" + \r\n\t\t\t\tcurrent_time);\r\n\t\t\r\n\t\t// notify each observer of timer expiry\r\n\t\tnotifyObservers();\r\n\t}", "public static void main(String args[]) {\n\t\tTimer timer = new Timer(true);\n\t\t// timer.scheduleAtFixedRate(timerTask, 0, 1 * 1000);\n\t\ttimer.schedule(new MyTimerTask(1), 100);\n\t\ttimer.schedule(new MyTimerTask(2), 300);\n\t\ttimer.schedule(new MyTimerTask(3), 100);\n\t\ttimer.schedule(new MyTimerTask(4), 200);\n\t\ttimer.schedule(new MyTimerTask(5), 100);\n\t\tSystem.out.println(\"TimerTask started\");\n\t\t// cancel after sometime\n\t\ttry {\n\t\t\tThread.sleep(20000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttimer.cancel();\n\t\tSystem.out.println(\"TimerTask cancelled\");\n\t\ttry {\n\t\t\tThread.sleep(3000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Scheduled(fixedRate = 2000, initialDelay = 5000)\n public void scheduleTaskWithInitialDelay() {\n logger.info(\"Fixed Rate Task with Initial Delay :: Execution Time - {}\", formatter.format(LocalDateTime.now()));\n }", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "void activateAlarmThenStop(){\n\t Runnable soundAlarmTask = new SoundAlarmTask();\n\t ScheduledFuture<?> soundAlarmFuture = fScheduler.schedule(\n\t soundAlarmTask, startTime, TimeUnit.SECONDS\n\t );\n\t Runnable stopAlarm = new StopAlarmTask(soundAlarmFuture);\n\t fScheduler.schedule(stopAlarm, 3601, TimeUnit.SECONDS);\n\t \n\t System.out.println(\"methodStartTime: \" + startTime);\n\t \n\t //commented out below 2 lines, b/c I don't want this to stop!\n\t //Runnable stopAlarm = new StopAlarmTask(soundAlarmFuture);\n\t //fScheduler.schedule(stopAlarm, fShutdownAfter, TimeUnit.SECONDS);\n\t }", "public static void updateNextRun(String etlJobName, String cronExprStr, Date startTime) throws Exception {\n Time.CronExpression cronExpression = new Time.CronExpression(cronExprStr);\n Date nextTime = cronExpression.getNextValidTimeAfter(startTime);\n updateNextRun(etlJobName, nextTime);\n }", "public void startTimer() {\n startTime = System.currentTimeMillis();\n }" ]
[ "0.67466414", "0.6640639", "0.66097677", "0.66085446", "0.6518741", "0.64756274", "0.64476365", "0.64369196", "0.62771755", "0.6254854", "0.6227278", "0.621188", "0.62115985", "0.6147128", "0.60878634", "0.60752374", "0.6017248", "0.60068566", "0.6003317", "0.5961711", "0.5933361", "0.5882928", "0.5879746", "0.5866126", "0.58603626", "0.5852014", "0.5821303", "0.58039445", "0.5793255", "0.5767453", "0.576339", "0.57576036", "0.5750821", "0.5749161", "0.5732774", "0.5703362", "0.5683485", "0.5666077", "0.5662916", "0.56545746", "0.56544936", "0.5645595", "0.5641991", "0.56407386", "0.5639402", "0.56214255", "0.5614896", "0.56131697", "0.5607765", "0.5605428", "0.56015956", "0.5599514", "0.5584395", "0.5565609", "0.5559744", "0.5559415", "0.5553269", "0.5551715", "0.5550626", "0.5550514", "0.55413103", "0.5536711", "0.5511906", "0.5510134", "0.55078745", "0.5506446", "0.5493495", "0.5493495", "0.5493495", "0.54933316", "0.5485533", "0.54851377", "0.54824054", "0.5481731", "0.54807436", "0.547595", "0.54712313", "0.5467311", "0.5467271", "0.5457875", "0.5456762", "0.54421663", "0.5437469", "0.54302996", "0.5429082", "0.5415602", "0.5408808", "0.5403407", "0.54010755", "0.5392166", "0.53886", "0.5385926", "0.53753906", "0.5373968", "0.53731364", "0.5372169", "0.536737", "0.53659314", "0.53652567", "0.5363389", "0.5358015" ]
0.0
-1
Given the head of a Singly LinkedList, write a method to return the middle node of the LinkedList. If the total number of nodes in the LinkedList is even, return the second middle node. Input: 1>2>3>4>5>null Output: 3 Input: 1>2>3>4>5>6>null Output: 4 Input: 1>2>3>4>5>6>7>null Output: 4
public static void main(String[] args) { ListNode head = new ListNode(1); head.next = new ListNode(2); head.next.next = new ListNode(3); head.next.next.next = new ListNode(4); head.next.next.next.next = new ListNode(5); System.out.println("Middle Node : 3 got : " + findMiddle(head).value); head.next.next.next.next.next = new ListNode(6); System.out.println("Middle Node : 4 got : " + findMiddle(head).value); head.next.next.next.next.next.next = new ListNode(7); System.out.println("Middle Node : 4 got : " + findMiddle(head).value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListNode middleNode(ListNode head) {\n List<ListNode> array = new ArrayList<>();\n\n ListNode list = head;\n while (list != null) {\n array.add(list);\n list = list.next;\n }\n\n return array.get(array.size() / 2);\n }", "public static LLNode findMiddleNode(LLNode head) {\n\t\t\tLLNode currentNode = head;\n\t\t\tint length = 0;\n\t\t\twhile(currentNode != null) {\n\t\t\t\t++length;\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t\tint mid = (length/2)+1;\n\t\t\tcurrentNode = head;\n\t\t\twhile(--mid>0) {\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\n\t\t\treturn currentNode;\n\t\t}", "public int findMiddleNode2() {\n\t\tif (this.head!=null) {\n\t\t\tint len = 0;\n\t\t\tNode temp1 = this.head;\n\t\t\t// calculating the length. 0 based index for len\n\t\t\twhile (temp1.next != null) {\n\t\t\t\ttemp1 = temp1.next;\n\t\t\t\tlen++;\n\t\t\t}\n\t\t\t//System.out.println(\"length: \"+len);\n\t\t\t// temp2 to iterate once\n\t\t\tNode temp2 = this.head;\n\t\t\t/*\n\t\t\t * // temp3 travels twice as faster than temp2 (hare and tortoise approach). \n\t\t\t * while temp3 travels the entire LL, temp2 will be reaching exactly the middle of the LL\n\t\t\t */\n\t\t\tNode temp3 = this.head;\n\t\t\twhile (temp3!=null && temp3.next!=null && temp3.next.next!=null) {\n\t\t\t\ttemp2 = temp2.next;\n\t\t\t\ttemp3 = temp3.next.next;\n\t\t\t}\n\t\t\t// for even len -> middle is (len/2)+1 th index\n\t\t\tif ((len+1)%2 == 0) {\n\t\t\t\treturn temp2.next.data;\n\t\t\t}\n\t\t\t// for odd len -> middle is (len/2) th index\n\t\t\telse {\n\t\t\t\treturn temp2.data;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\treturn -1;\n\t\t}\n\n\t\t\n\t}", "public ListNode findTheMiddleNode2(ListNode head) {\n if (head == null)\n return null;\n ListNode slow = head;\n ListNode fast = head;\n\n while (fast != null && fast.next != null && (fast.next).next != null) {\n fast = (fast.next).next;\n slow = slow.next;\n }\n return slow;\n }", "public ListNode middleNode(ListNode head) {\n ListNode slow = head;\n ListNode fast = head;\n\n // base condition\n if (head == null || head.next == null) {\n return head;\n }\n\n while (fast != null && fast.next != null) {\n slow = slow.next;\n fast = fast.next.next;\n }\n return slow;\n }", "public ListNode findTheMiddleNode(ListNode head) {\n\n ListNode slow = head;\n ListNode fast = head;\n if (head == null) {\n return null;\n } else {\n while (fast != null && fast.next != null) {\n fast = (fast.next).next;\n slow = slow.next;\n }\n\n }\n return slow;\n }", "public void getMiddle(){\n\t\t/*Node slow_ptr = head;\n\t\tNode fast_ptr = head;\n\t\tif(head != null){\n\t\t\twhile(fast_ptr != null && slow_ptr != null){\n\t\t\t\tfast_ptr = fast_ptr.next.next;\n\t\t\t\tslow_ptr = slow_ptr.next;\n\t\t\t}\n logger.info(\"Middle element is:: \"+slow_ptr.getData());\n\t\t}*/\n\t\t\n\t\tNode current = head;\n\t\tint length = 0;\n\t\t\n\t\tNode middle = head;\n\t\t\n\t\twhile(current.next != null){\n\t\t\tlength++;\n\t\t\tif(length % 2 == 0){\n\t\t\t\tmiddle = middle.next;\n\t\t\t}\n\t\t\t\n\t\t\tcurrent = current.next;\n\t\t\t\n\t\t}\n\t\t\n\t\tif(length %2 == 1){\n\t\t\tmiddle = middle.next;\n\t\t}\n\t\t//logger.debug(\"length of the list:: \"+length+1);\n\t\t//logger.info(\"middle element of the linkedlist:: \"+middle.data);\n\t\t\n\t\t\n\t}", "public ListNode middleNode(ListNode head) {\n ListNode fastCursor = head;\n ListNode slowCursor = head;\n\n while (fastCursor != null && fastCursor.next != null) {\n slowCursor = slowCursor.next;\n fastCursor = fastCursor.next.next;\n }\n return slowCursor;\n }", "Node getMiddleNode(Node head){\n if(head == null || head.next == null){\n return head;\n }\n\n Node slowRunner = head;\n Node fastRunner = head;\n\n while(fastRunner != null && fastRunner.next != null){\n slowRunner=slowRunner.next;\n fastRunner=fastRunner.next.next;\n }\n return slowRunner;\n }", "public static ListNode getMiddle(ListNode head) {\r\n\tListNode fast = head.next;\r\n \tListNode slow = head;\r\n \t\r\n \twhile (fast != null && fast.next != null) {\r\n \t fast = fast.next.next;\r\n \t slow = slow.next;\r\n \t}\r\n \t\r\n \treturn slow;\r\n }", "public int getMiddleValue(){\n\tint nodeValue=0, llSize=0, brojac=0,middle;\n\tNode current=head;\n\twhile(current!=null){\n\t\tllSize++;\n\t\tcurrent=current.next;\n\t}\n\tmiddle=llSize/2;\n\tcurrent=head;\n\twhile(brojac!=middle){\n\t\tcurrent=current.next;\n\t\tbrojac++;\n\t}\n\tnodeValue=current.value;\n\treturn nodeValue;\n}", "public ListNode findMiddle(ListNode head) {\n\t\tListNode fast,slow;\n\t\tfast=slow=head;\n\t\twhile(fast!=null & fast.next()!=null) {\n\t\t\tfast=fast.next().next();\n\t\t\tslow=slow.next();\t\t\n\t\t}\n\t\treturn slow;\n\t}", "public static Node getMiddle(Node head)\n\t{\n\t\tif (head == null) \n\t\t\treturn head; \n\t\tNode hare = head, tortoise = head;\n\n\t\twhile (hare.next != null && hare.next.next != null) {\n\t\t\ttortoise = tortoise.next;\n\t\t\thare = hare.next.next;\n\t\t} \n\t\treturn tortoise;\n\t}", "public static Node middleNode(Node start, Node last) { \n if (start == null) \n return null; \n \n Node slow = start; \n Node fast = start.next; \n \n while (fast != last) \n { \n fast = fast.next; \n if (fast != last) \n { \n slow = slow.next; \n fast = fast.next; \n } \n } \n return slow; \n }", "public E middleElement(){\n\r\n Node <E> slowPointer = head;\r\n Node <E> fastPointer = head;\r\n\r\n if(head != null){\r\n while(fastPointer != null && fastPointer.getNext() != null){\r\n fastPointer = fastPointer.getNext().getNext();\r\n slowPointer = slowPointer.getNext();\r\n }\r\n\r\n return slowPointer.getItem();\r\n\r\n }\r\n\r\n\r\n return null;\r\n\r\n }", "public static ListNode midNode(ListNode head) {\n if (head == null || head.next == null)\n return head;\n\n ListNode slow = head, fast = head;\n while (fast.next != null && fast.next.next != null) {\n fast = fast.next.next;\n slow = slow.next;\n\n }\n return slow;\n }", "public ListNode middleNode3(ListNode head) {\n ListNode slow = head, fast = head;\n while (fast != null && fast.next != null) {\n fast = fast.next.next;\n slow = slow.next;\n }\n return slow;\n }", "public int getMiddle() {\n if (this.head == null) {\n return -1;\n }\n\n Node slowPointer = this.head;\n Node fastPointer = this.head;\n while (fastPointer.getNext() != null && fastPointer.getNext().getNext() != null) {\n fastPointer = fastPointer.getNext().getNext();\n slowPointer = slowPointer.getNext();\n }\n\n return slowPointer.getData();\n }", "public static LLNode findMiddleNodeUsing2Pointers(LLNode head) {\n\t\t\tLLNode slowPtr = head;\n\t\t\tLLNode fastPtr = head;\n\n\t\t\twhile(fastPtr != null && fastPtr.next != null) {\n\t\t\t\tslowPtr = slowPtr.next;\n\t\t\t\tfastPtr = fastPtr.next;\n\t\t\t\tif(fastPtr != null) {\n\t\t\t\t\tfastPtr = fastPtr.next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn slowPtr;\n\t\t}", "private static ListNode findPreMiddle(ListNode head) {\n\t\t\n\t\tif(head.next == null){return head;}\n\t\t\n\t\tListNode fast = head.next;\n\t\tListNode slow = head;\n\t\t\n\t\twhile(fast.next != null && fast.next.next != null){\n\t\t\tfast = fast.next.next;\n\t\t\tslow = slow.next;\n\t\t}\n\t\t\n\t\treturn slow;\n\t}", "public Node method2(Node head)\n {\n Node[] linkedList = new Node[100];\n int index = 0;\n while (head != null)\n {\n linkedList[index] = head;\n head = head.next;\n index++;\n }\n\n return linkedList[index/2];\n }", "static Node getEvenOdd(Node head){\n\t if(head == null)\n\t return null;\n\t Node tempEven = head, tempOdd = head.next, tempHead = head, tempOddHead = tempOdd;\n\t while(tempOdd != null && tempEven != null) {\n\t\tif(tempOdd.next == null) {\n\t\t\ttempEven.next = tempOddHead;\n\t\t\tbreak;\n\t\t}\n\t\ttempEven.next = tempOdd.next;\n\t\ttempEven = tempEven.next;\n\t if(tempEven.next != null) {\n\t \ttempOdd.next = tempEven.next;\n\t }\n\t else{\n\t \ttempOdd.next = null;\n\t \ttempEven.next = tempOddHead;\n\t\t\tbreak;\n\t }\n\t tempOdd = tempOdd.next;\n\t }\n\t return tempHead;\n\t}", "private int getmiddle() {\n Node slow = this;\n Node fast = this;\n Boolean slow_move = false;\n while (fast != null) {\n if (slow_move) {\n fast = fast.nextNode;\n slow = slow.nextNode;\n slow_move = false;\n } else {\n fast = fast.nextNode;\n slow_move = true;\n }\n }\n return slow.value;\n }", "public ListNode oddEvenList(ListNode head) {\n if(head == null)return head;\n ListNode dummyNode = new ListNode(-1);\n dummyNode.next = head;\n ListNode odd = head;\n ListNode even = head.next;\n ListNode start = even;\n while(odd.next != null && even.next != null){\n odd.next = even.next;\n odd = odd.next;\n even.next = odd.next;\n even = even.next;\n }\n odd.next = start;\n return dummyNode.next;\n }", "public ListNode oddEvenList(ListNode head) {\n\t\tif (head == null || head.next == null)\n\t\t\treturn head;\n\n\t\tListNode oddHead = new ListNode(0);\n\t\tListNode evenHead = new ListNode(0);\n\t\toddHead.next = head;\n\t\tevenHead.next = head;\n\t\tListNode odd = oddHead, even = evenHead;\n\t\tListNode cur = head;\n\t\tint count = 1;\n\t\twhile (cur != null) {\n\t\t\tif (count % 2 == 0) {\n\t\t\t\teven.next = cur;\n\t\t\t\teven = even.next;\n\t\t\t} else {\n\t\t\t\todd.next = cur;\n\t\t\t\todd = odd.next;\n\t\t\t}\n\t\t\tcount++;\n\t\t\tcur = cur.next;\n\t\t}\n\t\teven.next = null;\n\t\todd.next = evenHead.next;\n\t\treturn oddHead.next;\n\t}", "public Node solve1(Node head) {\n int length = 0;\n Node current = head;\n while (current != null) {\n current = current.next;\n length++;\n }\n\n int i = length / 2;\n current = head;\n while (current != null && i > 0) {\n current = current.next;\n i--;\n }\n\n return current;\n }", "public int searchMid() {\n Node p=head, q=head;\n while(p.next!=null && q.next!=null && q.next.next !=null) {\n p = p.next;\n q = q.next.next;\n }\n System.out.println(\"Mid:\"+q.data);\n return p.data;\n\n }", "public static Node deleteAllEvenPositionNodes(Node head) {\n int len = length(head);\n // if list have single node\n // then return\n if (len < 2) {\n // do not forget to lose link on head\n return null;\n }\n Node newHead = deleteFirst(head);\n deleteAllOddPositionNodes(newHead);\n return newHead;\n }", "public ListNode oddEvenListOnValue(ListNode head) {\n\t\tif (head == null || head.next == null)\n\t\t\treturn head;\n\n\t\tListNode oddHead = new ListNode(0);\n\t\tListNode evenHead = new ListNode(0);\n\t\toddHead.next = head;\n\t\tevenHead.next = head;\n\t\tListNode odd = oddHead, even = evenHead;\n\t\tListNode cur = head;\n\t\twhile (cur != null) {\n\t\t\tif (cur.val % 2 == 0) {\n\t\t\t\teven.next = cur;\n\t\t\t\teven = even.next;\n\t\t\t} else {\n\t\t\t\todd.next = cur;\n\t\t\t\todd = odd.next;\n\t\t\t}\n\t\t\tcur = cur.next;\n\t\t}\n\t\teven.next = null;\n\t\todd.next = evenHead.next;\n\t\treturn oddHead.next;\n\t}", "public static Node createEvenListFromOriginal(Node head){\n Node previous = null;\n Node current = head;\n Node newHead = null;\n Node newCurrent = null;\n while(current != null){\n if(current.data % 2 == 0){\n if(newHead == null){\n newHead = new Node(current.data);\n newCurrent = newHead;\n }\n else{\n Node next = new Node(current.data);\n newCurrent.next = next;\n newCurrent = next;\n }\n if(previous != null){\n previous.next = current.next;\n }\n }\n previous = current;\n current = current.next;\n }\n return newHead;\n }", "public static Pair<Node, Node> splitAndReverse(Node head){\n\t\tNode f = head; //fast\n\t\tNode s = head; //slow\n\t\tint pos = 0;\n\t\t\n\t\tNode next = null;\n\t\t\n\t\tdo{\n\t\t\tif(pos == 0){\n\t\t\t\tnext = s.next;\n\t\t\t}else if(pos % 2 == 0){\n\t\t\t\tNode prev = s;\n\t\t\t\ts = next;\n\t\t\t\tnext = next.next;\n\t\t\t\ts.next = prev;\n\t\t\t}\n\t\t\t\n\t\t\tpos++;\n\t\t\tf = f.next;\n\t\t}while(f != null);\n\t\t\n\t\thead.next = null;\n\t\t\n\t\tSystem.out.println(s != null ? s.value : null);\n\t\t\n\t\tNode firstHalfInReverese = s;\n\t\t\n\t\t\n\t\t//process the 2nd half\n\t\ts = next; \n\t\tnext = s.next;\n\t\ts.next = null;//breaking link between 1st and 2nd halves\n\t\t\n\t\twhile(next != null){\n\t\t\tNode prev = s;\n\t\t\ts = next;\n\t\t\tnext = next.next;\n\t\t\ts.next = prev;\n\t\t}\n\t\t\n\t\tSystem.out.println(s != null ? s.value : null);\n\t\t\n\t\tNode secondHalfInReverse = s;\n\t\t\n\t\treturn new Pair<>(firstHalfInReverese, secondHalfInReverse);\n\t}", "public E midElement() throws Exception //returns the mid element of the list//\n\t {\n\n\t\t if(isEmpty()) throw new Exception(\"cannot find mid element from empty list\");\n\t\t \n\t\t if(head.next == null) return head.data;\n\t\t \n\t\t if(head.next.next == null) return head.next.data;\n\t\t \n\t\t Node<E> temp=head;\n\t\t Node<E> temp1=head;\n\t\t while(temp1!=null && temp1.next!=null)\n\t\t {\n\t\t\t temp=temp.next;\n\t\t\t temp1=temp1.next.next;\n\t\t }\n\t\t return temp.data;\n\t }", "public static void midElement(Linkedlist list)\r\n\t {\r\n\t\t Node n = Linkedlist.head; \r\n\t\t int count=0,trav=0;\t\r\n\t\t\twhile(n!=null)\r\n\t\t\t{\r\n\t\t\t count++;\r\n\t\t\t n=n.next;\r\n\t\t\t}\r\n\t\t\tcount/=2;\r\n\t\t\tNode m = list.head;\r\n\t\t\t\r\n\t\t\twhile(m!=null)\r\n\t\t\t{\r\n\t\t\t\tif(trav==count)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.println(\"\\nThe Mid Element of the list is : \"+m.data);\r\n\t\t\t\t }\r\n\t\t\t\t m=m.next;\t\r\n\t\t\t\t trav++;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t }", "public static void printEvenNodes(Node head){\n Node current = head;\n while(current != null){\n if(current.data % 2 == 0){\n System.out.print(current.data);\n System.out.print(\"->\");\n }\n current = current.next;\n }\n System.out.println();\n }", "public Node returnNthFromLast(Node head, int n) {\n if (head == null) {\n System.out.println(\"LL length less than \" + n);\n return null;\n }\n\n Node first = head;\n Node second = head;\n\n //difference between first and second's position should be equal to n\n for (int i = 0; i < n; i++) {\n if (second != null) {\n second = second.next;\n } else {\n System.out.println(\"LL length less than \" + n);\n return null;\n }\n }\n\n while (second != null) {\n second = second.next;\n first = first.next;\n }\n\n return first;\n }", "public LinkedListNode kth(LinkedListNode head, int k){\n\t\tif(head==null) return null;\n\t\t\n\t\tNode p1=head;\n\t\tNdde p2=head;\n\t\t\n\t\tfor(int i=0;i<k;i++){\n\t\t\tif(p2==null) return null;\n\t\t\tp2=p2.next\n\t\t}\n\t\t\n\t\tif(p2==null) return null;\n\t\t\n\t\twhile(p2.next!=null){\n\t\t\tp2=p2.next;\n\t\t\tp1=p1.next;\n\t\t}\n\t\treturn p1;\n\t}", "public static int listEvenNumber( IntNode head ) {\r\n\t\tif( head == null )\r\n\t\t\treturn 0;\r\n\t\t\r\n\t\tint eCnt = 0;\r\n\t\tfor( IntNode cursor = head; cursor != null; cursor = cursor.link ) {\r\n\t\t\tif( cursor.data % 2 == 0 )\r\n\t\t\t\teCnt++;\r\n\t\t} // end for\r\n\t\treturn eCnt;\t\t\r\n\t}", "public static LinkedList invertedBisection(LinkedList head) {\n //set tail as head\n LinkedList tail = head;\n\n //reverse ll\n LinkedList p1 = null;\n LinkedList p2 = head;\n LinkedList p3 = head.next;\n if(p2 == null || p3 == null || p3.next == null || p3.next.next == null)\n return head;\n int count = 0;\n while(p2 != null){\n p2.next = p1;\n p1 = p2;\n p2 = p3;\n if(p3 != null)\n p3 = p3.next;\n count++;\n }\n head = p1;\n\n int midpoint = count / 2;\n //point to new head\n if(count % 2 == 0){\n LinkedList mid = head;\n tail.next = head;\n while(midpoint > 1){\n mid = mid.next;\n midpoint--;\n }\n head = mid.next;\n mid.next = null;\n }else{\n LinkedList temp = head;\n LinkedList mid = null;\n LinkedList beforeMid = null;\n while(midpoint >= 0){\n if(midpoint == 0){\n mid = head;\n }\n if(midpoint == 1){\n beforeMid = head;\n head = head.next;\n beforeMid.next = null;\n }else{\n head = head.next;\n }\n midpoint--;\n }\n tail.next = mid;\n mid.next = temp;\n }\n\n return head;\n }", "public static void main(String[] args) {\n Node current = new Node(1, null);\n for (int i = 2; i < 8; i++) {\n current = new Node(i, current);\n }\n Node head = current;\n // head = 7 -> 6 -> 5 -> 4 -> 3 -> 2 -> 1 -> (null)\n\n Node current2 = new Node(4, null);\n for (int i = 3; i > 0; i--) {\n current2 = new Node(i, current2);\n }\n Node head2 = current2;\n // head2 = 1 -> 2 -> 3 -> 4 -> (null)\n\n System.out.println(nthFromLast(head, 1)); // should return 1.\n System.out.println(nthFromLast(head, 5)); // should return 5.\n System.out.println(nthFromLast(head2, 2)); // should return 3.\n System.out.println(nthFromLast(head2, 4)); // should return 1.\n System.out.println(nthFromLast(head2, 5)); // should return null.\n System.out.println(nthFromLast(null, 1)); // should return null.\n }", "public static Node split(Node head)\n {\n Node slow = head;\n Node fast = head.next;\n\n // Advance 'fast' by two nodes, and advance 'slow' by single node\n while (fast != null)\n {\n fast = fast.next;\n if (fast != null)\n {\n slow = slow.next;\n fast = fast.next;\n }\n }\n\n return slow;\n }", "public Node<E> getFirst(){\n Node<E> toReturn = head.getNext();\n return toReturn == tail ? null: toReturn;\n }", "public synchronized DoubleLinkedListNodeInt getFirst() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\treturn head.getNext();\n\t}", "@Test\n public void testNextIndex_Middle() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 3, 4, 5));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n int expResult = 2;\n int result = instance.nextIndex();\n\n assertEquals(expResult, result);\n }", "Node split(Node head) {\n Node fast = head, slow = head;\n while (fast.next != null && fast.next.next != null) {\n fast = fast.next.next;\n slow = slow.next;\n }\n Node temp = slow.next;\n slow.next = null;\n return temp;\n }", "private ListNode split(ListNode head) {\n ListNode res = head.next;\n ListNode p1 = head, p2 = res;\n while (p1.next.next != null) {\n ListNode p1next = p2.next;\n ListNode p2next = p2.next.next;\n p1.next = p1next;\n p2.next = p2next;\n p1 = p1.next;\n p2 = p2.next;\n }\n p1.next = null;\n return res;\n }", "public static void main(String[] args) {\n ListNode head = null;\n\n // Use push() function to con\n // the below list 8 . 23 . 11 . 29 . 12 /\n head = push(head, 12);\n head = push(head, 29);\n head = push(head, 11);\n head = push(head, 23);\n head = push(head, 8);\n head = push(head, 2);\n findMiddleNode llist = new findMiddleNode();\n int middleNode = 0;\n int middleNode2 = 0;\n for (ListNode temp = head; temp != null; temp = temp.next) {\n middleNode = (llist.findTheMiddleNode(head)).data;\n middleNode2 = (llist.findTheMiddleNode2(head)).data;\n }\n System.out.println(middleNode);\n System.out.println(middleNode2);\n }", "private ListNode split2(ListNode head) {\n ListNode res = head.next;\n ListNode p1 = head;\n while (p1 != null) {\n ListNode p2 = p1.next;\n p1.next = p2.next;\n p1 = p1.next;\n if (p2.next != null) {\n p2.next = p1.next;\n }\n }\n return res;\n }", "Node split(Node head) {\r\n\t\tNode fast = head, slow = head;\r\n\t\twhile (fast.next != null && fast.next.next != null) {\r\n\t\t\tfast = fast.next.next;\r\n\t\t\tslow = slow.next;\r\n\t\t}\r\n\t\tNode temp = slow.next;\r\n\t\tslow.next = null;\r\n\t\treturn temp;\r\n\t}", "@Test\n public void testNext_Middle() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 4, 6));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n Integer expResult = 4;\n Integer result = instance.next();\n assertEquals(expResult, result);\n }", "int getNthFromLast(Node head, int n)\n {\n \t\n Node s=head;\n for(int i=0;i<n;i++)\n {\n if(s==null)\n return -1;\n s=s.next;\n }\n Node f=head;\n while(s!=null)\n {\n f=f.next;\n s=s.next;\n }\n return f.data;\n }", "private int first_leaf() { return n/2; }", "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "public OddEvenLinkedList() {\n this.head = null;\n this.tail = null;\n }", "public static ListNode detectCycle2(ListNode head){\n if(head == null) return null;\n\n ListNode intersectNode = getIntersection(head);\n if(intersectNode == null) return null;\n\n ListNode currNode = head;\n while(currNode != intersectNode) {\n currNode = currNode.next;\n intersectNode = intersectNode.next;\n }\n return intersectNode;\n }", "public void solution2(LinkedListNode head){\n if(head==null)\n return;\n LinkedListNode current=head;\n while(current!=null){\n LinkedListNode runner=current;\n while(runner.next!=null){\n if(runner.next.data==current.data)\n runner.next=runner.next.next;\n else\n runner=runner.next;\n }\n current=current.next;\n }\n }", "public ListNode removeNthFromEnd2(ListNode head, int n) {\n\n\t\tListNode dummy = new ListNode(-1);\n\t\tdummy.next = head;\n\t\tListNode p1 = dummy;\n\t\tfor (int i = 0; i < n + 1; i++) {\n\t\t\tp1 = p1.next;\n\t\t}\n\t\tListNode p2 = dummy;\n\t\twhile (p1 != null) {\n\t\t\tp1 = p1.next;\n\t\t\tp2 = p2.next;\n\t\t}\n\t\tp2.next = p2.next.next;\n\t\treturn dummy.next;\n\t}", "public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }", "public static IntNode copyOdd( IntNode head ) {\r\n\t\t\r\n\t\t// if head is not null, method should copy all the odd elements in the linked list starting from\r\n\t\t// the given head, create a new linked list with all these odd numbers, and return the linked list with the new head\r\n\t\tif( head != null ) {\r\n\t\t\tIntNode odd = new IntNode();\r\n\t\t\tfor( IntNode cursor = head; cursor != null; cursor = cursor.link ) {\r\n\t\t\t\tif( (cursor.data % 2) != 0 ) {\r\n\t\t\t\t\tif( odd.data == 0 )\r\n\t\t\t\t\t\todd.setNode(cursor.data);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\todd.addNodeAfterThis(cursor.data);\r\n\t\t\t\t} // end if\r\n\t\t\t} // end for\r\n\t\t\treturn odd;\r\n\t\t} // end if\r\n\t\treturn null;\r\n\t}", "public Node split(Node head){\r\n\t\t\tif(head == null || head.next == null)\r\n\t\t\t\treturn head;\r\n\t\t\telse{\r\n\t\t\t\tNode normalSpeed = head;\r\n\t\t\t\tNode doubleSpeed = head.next;\r\n\t\t\t\twhile(doubleSpeed.next!=null && doubleSpeed.next.next !=null){\r\n\t\t\t\t\tdoubleSpeed = doubleSpeed.next.next;\r\n\t\t\t\t\tnormalSpeed = normalSpeed.next;\r\n\t\t\t\t}\r\n\t\t\t\tNode temp = normalSpeed.next;\r\n\t\t\t\tnormalSpeed.next = null;\r\n\t\t\t\treturn temp;\r\n\t\t\t}\r\n\t\t}", "public T lookupHead(){\n if (head.next == tail && tail.prev == head){\n return null;\n }\n else {\n return head.next.data;\n }\n }", "public static Node findNthFromEnd(Node head, int n) {\n\t\t\n\t\t//use 2 pointers\n Node cur = head;\n Node p = head;\n \n int count = 1;\n \n while (count <= n -1 ) { //\n cur = cur.next; // the cur pointer moves forward next node\n count += 1; // increment count by 1\n \n }\n \n while (cur.next != null) {\n \tcur = cur.next;\n p = p.next;\n }\n return p;\n }", "public ListNode partition(ListNode head, int x) {\n ListNode smallHead = new ListNode(0);\n ListNode largeHead = new ListNode(0);\n ListNode small = smallHead;\n ListNode large = largeHead;\n while(head != null){\n if(head.val < x){\n small.next = head;\n small = small.next;\n } else {\n large.next = head;\n large = large.next;\n }\n head = head.next;\n }\n large.next = null;\n small.next = largeHead.next;\n return smallHead.next;\n }", "static ListNode removeNthFromEnd(ListNode head, int n) {\n \tif(n<=0){\n \t\treturn null;\n \t}\n \tListNode pre=new ListNode(0);\n \tpre.next=head;\n \tListNode cur=pre;\n \tfor(int i=0;i<n;i++){\n \t\tif(head==null){\n \t\t\treturn null;\n \t\t}\n \t\thead=head.next;\n \t}\n \twhile(head!=null){\n \t\thead=head.next;\n \t\tpre=pre.next;\n \t}\n \tpre.next=pre.next.next;\n \treturn cur.next;\n }", "public static int getNth(ListNode head, int index){\n\t\tif(head == null){\n\t\t\tthrows new IllegalAugumentException(\"Empty List\");\n\t\t} \n\t\t\n\t\tListNode current = head;\n\t\t//int count = 0;\n\t\twhile(current != null){\n\t\t\tfor(int count = 0; count < index; count++){\n\t\t\t\tcurrent = current.next;\n\t\t\t}\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tif(current = null){\n\t\t\tthrows new IndexOutOfBountException();\n\t\t}else{\n\t\t\treturn current.value;\n\t\t}\n\t}", "public Item getFirst() {\n Node removed = head.next;\n head.next = removed.next;\n removed.next = null;\n size--;\n return removed.item;\n }", "Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}", "public static LinkListPlay oddEven(LinkListPlay input) {\n if (input == null || input.getHead() == null || input.getHead().getNextNode() == null) {\n return input;\n }\n\n Node node = input.getHead();\n Node prev = null;\n LinkListPlay evenData = new LinkListPlay();\n int count = 1;\n\n while (node != null) {\n if (count % 2 == 0) {\n evenData.insertAtHead(new Node(node.getData()));\n prev.setNextNode(node.getNextNode());\n }\n prev = node;\n node = node.getNextNode();\n count++;\n\n }\n\n return mergeNode(input, evenData);\n //System.out.println(\"\");\n }", "int remove(){\n int x = head.val;\n head = head.next;\n if(--n == 0) tail = null;\n return x;\n }", "public static ListNode mockIntersectionList(ListNode head) {\n\t\tListNode head3 = null;\n\t\thead3 = insertAtEnd(head3, 9);\n\t\thead3 = insertAtEnd(head3, 10);\n\t\thead3 = insertAtEnd(head3, 12);\n\t\tListNode temp = head3;\n\t\twhile (temp.next != null)\n\t\t\ttemp = temp.next;\n\t\ttemp.next = head.next.next;\n\t\treturn head3;\n\t}", "public LinkedListNode<T> getFirstNode() {\n\t\t//return the head node of the list\n\t\treturn head;\t\t\n\t}", "public ListNode deleteHeadCircular(ListNode head){\n\tif(head == null || head.next == null){\n\t\treturn null; \n\t}\n\n\tListNode current = head; // a tempt pointer to the head\n\n\t//move to the node behinf the head \n\twhile(current.next != head){\n\t\tcurrent = current.next; \n\t}\n\n\thead = head.next; //move the head up \n\tcurrent.next = head; //set the node behind the former head equal to the new head \n\treturn head; //return the list\n}", "private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp.data;\n }\n else\n return null;\n }", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public void deleteMiddleNode(ListNode n) {\n if (n == null || n.next == null) {\n return;\n }\n\n ListNode next = n.next;\n //copy value;\n n.val = next.val;\n n.next = n.next.next;\n }", "public ListNode partition(ListNode head, int x) {\r\n \tif (head == null || head.next == null)\r\n \t\treturn head;\r\n \tListNode dummy_1 = new ListNode(0);\r\n \tListNode dummy_2 = new ListNode(0);\r\n \tListNode p1 = dummy_1, p2 = dummy_2;\r\n \twhile (head != null) {\r\n \t\tif (head.val < x) {\r\n \t\t\tp1.next = head;\r\n \t\t\tp1 = head;\r\n \t\t} else {\r\n \t\t\tp2.next = head;\r\n \t\t\tp2 = head;\r\n \t\t}\r\n \t\thead = head.next;\r\n \t}\r\n \tp1.next = dummy_2.next;\r\n \tp2.next = null;\t\t// very importance !!!\r\n \treturn dummy_1.next;\r\n }", "public int nNodefromEnd(int n) {\n\n Node temp1=head;\n Node temp2=head;\n\n if(head==null) {\n System.out.println(\"Empty List\");\n }\n\n int i=0;\n while(temp1!=null && i<n) {\n temp1=temp1.next;\n i++;\n }\n\n\n while(temp1!=null) {\n temp1=temp1.next;\n temp2=temp2.next;\n }\n\n\n return temp2.data;\n }", "public static ListNode getPreNode(ListNode head, ListNode end){\n ListNode prevEnd = head;\n while(prevEnd.next != end){\n prevEnd = prevEnd.next;\n }\n return prevEnd;\n }", "public LinkedListNode<T> getFirstNode()\n\t{\n\t\treturn head;\n\t}", "public ListNode partition(ListNode head, int x) {\n if(head == null || head.next == null)\n return head;\n \n ListNode dummyA = new ListNode(0), currA = dummyA;\n ListNode dummyB = new ListNode(0), currB = dummyB;\n while(head != null) {\n if(head.val < x) {\n currA.next = new ListNode(head.val);\n currA = currA.next;\n } else {\n currB.next = new ListNode(head.val);\n currB = currB.next;\n }\n head = head.next;\n }\n currA.next = dummyB.next;\n return dummyA.next;\n }", "public ListNode partition(ListNode head, int target) {\r\n\t // Write your solution here\r\n\t\tif (head == null || head.next == null) {\r\n\t\t\treturn head;\r\n\t\t}\r\n\t\t\r\n\t\tListNode small = new ListNode(0);\r\n\t\tListNode large = new ListNode(0);\r\n\t\tListNode currSmall = small;\r\n\t\tListNode currLarge= large;\t\t\r\n\t\t\r\n\t\twhile (head != null) {\r\n\t\t\tif (head.value < target) {\r\n\t\t\t\tcurrSmall.next = head;\r\n\t\t\t\tcurrSmall = currSmall.next;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcurrLarge.next = head;\r\n\t\t\t\tcurrLarge = currLarge.next;\r\n\t\t\t}\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t\t\r\n\t\tcurrLarge.next = null;\r\n\t\tcurrSmall.next = large.next;\r\n\t\treturn small.next;\r\n\t }", "public Node solve2(Node head) {\n Node slow = head;\n Node fast = head;\n\n while (fast != null && fast.next != null) {\n slow = slow.next;\n fast = fast.next.next;\n }\n\n return slow;\n }", "@Test\n public void testPreviousIndex_Middle() {\n\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n int expResult = 1;\n int result = instance.previousIndex();\n\n assertEquals(expResult, result);\n }", "public static Node findCycle(Node head) {\n if (head == null) return head;\n\n Node slow = head;\n Node fast = head.next;\n while (fast != null && fast.next != null) {\n if (fast == slow) break;\n slow = slow.next;\n fast = fast.next.next;\n }\n\n if (fast == slow) {\n slow = head;\n while (slow != fast.next) {\n slow = slow.next;\n fast = fast.next;\n }\n return fast.next;\n } else {\n return null;\n }\n }", "private View getMiddleItem()\n\t{\n\t\tsynchronized (this)\n\t\t{\n\t\t\tint count = getChildCount();\n\t\t\tif (count!= 0)\n\t\t\t{\n\t\t\t\tint width = getWidth();\n\t\t\t\tint childNumber =0;\n\t\t\t\tView child = null;\n\t\t\t\t// take next child starting from left until one is reached whose right edge is over the middle\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tchild = getChildAt(childNumber);\n\t\t\t\t\tchildNumber++;\n\t\t\t\t}\n\t\t\t\twhile (childNumber < count && child.getRight()<width/2);\n\t\t\t\treturn child;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "Node reverse(Node head) {\n\n\t\t// Write your code here\n\t\tNode curr = head;\n\t\tNode prev = null;\n\t\twhile (curr != null) {\n\t\t\twhile (curr != null && curr.data % 2 != 0) {\n\t\t\t\tprev = curr;\n\t\t\t\tcurr = curr.next;\n\t\t\t}\n\t\t\tif (curr != null && curr.data % 2 == 0) {\n\t\t\t\tif (prev != null) {\n\t\t\t\t\tprev.next = reverseHelper(curr);\n\t\t\t\t} else {\n\t\t\t\t\thead = reverseHelper(curr);\n\t\t\t\t}\n\t\t\t\tcurr = curr.next;\n\t\t\t}\n\t\t}\n\t\treturn head;\n\t}", "public int search(long n, int head, int tail) {\n if (head == tail)\n return head;\n int mid = (head + tail) / 2;\n long midValue = list.get(mid);\n if (n <= midValue) {\n return search(n, head, mid);\n } else {\n return search(n, mid + 1, tail);\n }\n }", "public ListNode getFirstNode(){\n\t\treturn firstNode;\n\t}", "public LinkedListNode<T> getFirstNode()\n\t{\n\t\treturn this.head;\n\t}", "public ListNode removeNthFromEnd(ListNode head, int n){\n\t\tif ( head == null || head.next == null )\t\t\t\t\t//'n will always be valid.' mean 1<= n <= length?\n\t\t\treturn null;\n\t\t\t\n\t\t//core logic\n\t\tListNode dummy = new ListNode(-1);\n\t\tdummy.next = head;\n\t\t\n\t\tListNode slow = dummy;\t\t\t\t// slow is the node just before the one to delete, no need to set pre\n\t\tListNode fast = dummy;\n// \t\tListNode pre = dummy;\n\t\t\n// \t\tint i = n - 1;\n\t\t\n\t\twhile ( n >= 1 ){\t\t\t\t\t// slow + n_step = fast\n\t\t\tfast = fast.next;\n\t\t\tn--;\n\t\t}\n\t\t\n\t\twhile ( fast.next != null ){\n\t\t\tfast = fast.next;\n\t\t\tslow = slow.next;\n// \t\t\tpre = pre.next;\n\t\t}\n\t\t\n// \t\tslow.next = fast;\t\t\t\t\t// when n==1, fast is the one to be deleted\n\t\tslow.next = slow.next.next;\n\t\treturn dummy.next;\n\t\t\n\t}", "private static SingleLinkedNode findFromEnd(SinglyLinkedList sll, int k) {\n\t\tSingleLinkedNode fast = sll.getHead();\r\n\t\tSingleLinkedNode slow = fast;\r\n\t\tint count = 1;\r\n\t\twhile (fast != null && count < k) {\r\n\t\t\tfast = fast.getNext();\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tif (fast == null) {\r\n\t\t\treturn null; // not enough elements.\r\n\t\t}\r\n\t\tif (fast.getNext() == null) {\r\n\t\t\t// remove 1st element.\r\n\t\t\tsll.setHead(slow.getNext());\r\n\t\t\treturn slow;\r\n\t\t}\r\n\t\t// Now slow and fast are k elements apart.\r\n\t\t// look 2 ahead so we can remove the element\r\n\t\twhile (fast.getNext().getNext() != null) {\r\n\t\t\tfast = fast.getNext();\r\n\t\t\tslow = slow.getNext();\r\n\t\t}\r\n\t\tfast = slow.getNext(); // temp pointer\r\n\t\tslow.setNext(slow.getNext().getNext());\r\n\t\treturn fast;\r\n\t\t\r\n\t}", "public ListNode findK(ListNode head,int k) {\n\t\tListNode fast,slow;\n\t\tfast=slow=head;\n\t\t//Move Kth first\n\t\twhile (k-->0) {\n\t\t\tfast=fast.next();\n\t\t}\n\t\twhile(fast!=null & fast.next()!=null) {\n\t\t\tfast=fast.next();\n\t\t\tslow=slow.next();\t\t\n\t\t}\n\t\treturn slow;\n\t}", "public ListNode findCycleStart(ListNode head) {\n int cycleLength = findCycleLength(head);\n\n ListNode current = head;\n for(int i = 0; i < cycleLength; i++) {\n current = current.next;\n }\n\n ListNode slow = head;\n ListNode fast = current;\n while(slow != fast) {\n slow = slow.next;\n fast = fast.next;\n }\n return slow;\n }", "public ListNode removeNthFromEnd(ListNode head, int n) {\n\t\tif(head == null)\n\t\t\treturn null;\n\t\tListNode p1 = head;\n\t\tListNode p2 = head;\n\t\tListNode pre = head;\n\t\tint i = 0;\n\t\twhile(i++ < n)\n\t\t{\n\t\t\tp2 = p2.next;\n\t\t}\n\t\twhile(p2 != null)\n\t\t{\n\t\t\tpre = p1;\n\t\t\tp1 = p1.next;\n\t\t\tp2 = p2.next;\n\t\t}\n\t\tif(pre == p1)\n\t\t\treturn p1.next;\n\t\tpre.next = p1.next;\n\t\treturn head;\n\t\t\n\t}", "public static void deleteAlternateNodes(Node<Integer> head) {\n int size=0;\n Node temp=head;\n while(head!=null && head.next!=null )\n {\n if(size%2!=0)\n {\n Node t=head.next;\n head.next=t.next;\n head=t.next;\n }\n size++;\n }\n }", "public T findStartOfCircle() {\n \tNode<T> current = head;\n \tList<T> seen = new ArrayList<>();\n \twhile (true) {\n \t\tseen.add(current.val);\n \t\tif (seen.contains(current.next.val)) return current.next.val;\n \t\telse current = current.next;\n\t\t}\n }", "int head(){\n if(isEmpty()!=1){\n return values[0];\n }\n return -1;\n }", "public TreeNode getMiddle() {\n\t\treturn middle;\n\t}", "public Node createSecondList(Node head) {\n\t\tif (head != null) {\n\t\t\t\n\t\t\t//Copying a List\n\t\t\tNode temp = head;\n\t\t\tNode secondHead = new Node(head);\n\t\t\tNode temp1 = secondHead;\n\t\t\twhile (temp.getNext() != null) {\n\t\t\t\ttemp = temp.getNext();\n\t\t\t\ttemp1.setNext(new Node(temp));\n\t\t\t\ttemp1 = temp1.getNext();\n\t\t\t}\n\n\t\t\t//Revering new list\n\t\t\tNode firstNode = secondHead;\n\t\t\tNode secondNode = secondHead;\n\t\t\tNode result = null;\n\t\t\twhile (firstNode != null) {\n\t\t\t\tsecondNode = firstNode.getNext();\n\t\t\t\tfirstNode.setNext(result);\n\t\t\t\tresult = firstNode;\n\t\t\t\tfirstNode = secondNode;\n\t\t\t}\n\t\t\tsecondHead = result;\n\t\t\treturn secondHead;\n\t\t}\n\t\treturn null;\n\n\t}", "public Node method1(Node head) {\n Node fastPointer = head;\n Node slowPointer = head;\n\n while (fastPointer != null && fastPointer.next != null) {\n fastPointer = fastPointer.next.next;\n slowPointer = slowPointer.next;\n }\n\n return slowPointer;\n }", "public int getFront() {\n if(size == 0) return -1;\n \n return head.next.val;\n \n}" ]
[ "0.7874309", "0.7765427", "0.765395", "0.74601144", "0.74569154", "0.7423777", "0.73973227", "0.73778224", "0.7280016", "0.7219321", "0.72170734", "0.7192552", "0.71468616", "0.7130953", "0.71122235", "0.6992462", "0.6944556", "0.68536925", "0.6848302", "0.6775141", "0.65104383", "0.64968836", "0.6312593", "0.6304631", "0.6228308", "0.6214511", "0.61945355", "0.60754323", "0.5969699", "0.59270436", "0.5915561", "0.5910885", "0.5898663", "0.58694667", "0.58488894", "0.58374", "0.58226585", "0.58036095", "0.5701431", "0.56847876", "0.5667149", "0.564094", "0.56122977", "0.5591115", "0.55803186", "0.55800027", "0.5565937", "0.55628455", "0.5558355", "0.5548162", "0.55464685", "0.55364025", "0.55257595", "0.5516854", "0.55070984", "0.54452837", "0.54360706", "0.543393", "0.543305", "0.5429864", "0.54271346", "0.5414023", "0.5399058", "0.5398219", "0.5394939", "0.5386817", "0.53818494", "0.5379287", "0.5373142", "0.5370007", "0.5356385", "0.535334", "0.5349204", "0.53472525", "0.53415614", "0.53274786", "0.5323346", "0.532199", "0.53081125", "0.52881765", "0.52862227", "0.5284104", "0.52745765", "0.5255649", "0.5250082", "0.52496934", "0.5245663", "0.523705", "0.52303135", "0.5229345", "0.52279204", "0.5226681", "0.5217228", "0.5213282", "0.52059734", "0.52036774", "0.52030945", "0.5202403", "0.520233", "0.5195026" ]
0.62778014
24
We have to reset our mock between tests because the mock objects are managed by the Spring container. If we would not reset them, stubbing and verified behavior would "leak" from one test to another.
@Before public void setUp() { Mockito.reset(memberServiceMock); mockMvc = MockMvcBuilders .webAppContextSetup(webApplicationContext) .apply(springSecurity()) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetMocking() {\n mockGraphReadMethods = mock(GraphReadMethods.class);\n mockGraphWriteMethods = mock(GraphWriteMethods.class);\n mockJsonNode = mock(JsonNode.class);\n mockJsonGenerator = mock(JsonGenerator.class);\n mockCache = mock(ImmutableObjectCache.class);\n }", "protected void forceMockUpMode(){\n teardown();\n }", "public void mock(){\n\n }", "@Disabled\n\t@Test\n\tpublic void testUnexpectedCallToMock(){\n\t\twarehouseMock.remove(\"cola\",2);\n\t\treplay(warehouseMock);\n\t\tOrder order = new Order(SPRITE,11);\n\t\torder.fill(warehouseMock);\n\t\tverify(warehouseMock);\n\n\t}", "public void testMock(){\n\t}", "@Test\n void givenMockObject_whenMakeInteractions_thenCanVerify() {\n List mockedList = mock(List.class);\n\n // use mock object\n mockedList.add(\"one\");\n // actual nothing is added\n assertEquals(0, mockedList.size());\n mockedList.clear();\n\n // verify order doesn't matter here\n verify(mockedList).clear();\n verify(mockedList).add(\"one\");\n }", "@BeforeEach\n void configureSystemUnderTest() {\n setupStub();\n }", "@Test\n public void resetClock_WhenCalled_ClockShouldBeResetTo0(){\n ContextManager.resetClock(\"David\");\n assertEquals(mockUser.clock , 0);\n\n }", "@Before\n\tpublic void setup() {\n\t\tMockitoAnnotations.initMocks(this);\n\t\n\t}", "@Disabled\n\t@Test\n\tpublic void testBadCallToMock(){\n\t\twarehouseMock.remove(\"cola\",2);\n\t\treplay(warehouseMock);\n\t\tverify(warehouseMock);\n\t}", "@Before\n\tpublic void setup() {\n\t\tMockitoAnnotations.initMocks(this);\n\t}", "public void testReset() {\n\t}", "@BeforeMethod(alwaysRun = true)\n protected void setUp()\n {\n for (final MetricName metricName : Metrics.defaultRegistry().allMetrics().keySet()) {\n Metrics.defaultRegistry().removeMetric(metricName);\n }\n\n httpHeaders = Mockito.mock(HttpHeaders.class);\n request = Mockito.mock(HttpServletRequest.class);\n filterRequestHandler = Mockito.mock(EventFilterRequestHandler.class);\n deserializerFactory = Mockito.mock(EventDeserializerFactory.class);\n eventDeserializer = new MockEventDeserializer();\n\n Mockito.verifyZeroInteractions(httpHeaders, request, filterRequestHandler, deserializerFactory);\n }", "@Before\n\tpublic void reset()\n\t{\n\t\tClientPlayerManager.resetSingleton();\n\t\tChatManager.resetSingleton();\n\t\tQualifiedObservableConnector.resetSingleton();\n\t}", "@Before\n public void SetUp()\n {\n Mockito.reset(userServiceMock);\n Mockito.clearInvocations(userServiceMock);\n mockMvc = MockMvcBuilders.webAppContextSetup(webConfiguration).build();\n }", "private void setUp() {\n final MockSettings spyStubOnly = withSettings().stubOnly()\n .defaultAnswer(CALLS_REAL_METHODS);\n final MockSettings mockStubOnly = withSettings().stubOnly();\n // Return mocked services: LocalServices.getService\n // Avoid real operation: SurfaceControl.mirrorSurface\n // Avoid leakage: DeviceConfig.addOnPropertiesChangedListener, LockGuard.installLock\n // Watchdog.getInstance/addMonitor\n mMockitoSession = mockitoSession()\n .mockStatic(LocalServices.class, spyStubOnly)\n .mockStatic(DeviceConfig.class, spyStubOnly)\n .mockStatic(SurfaceControl.class, mockStubOnly)\n .mockStatic(LockGuard.class, mockStubOnly)\n .mockStatic(Watchdog.class, mockStubOnly)\n .strictness(Strictness.LENIENT)\n .startMocking();\n\n setUpSystemCore();\n setUpLocalServices();\n setUpActivityTaskManagerService();\n setUpWindowManagerService();\n }", "@Before\n public void setUp() {\n MockitoAnnotations.initMocks(this);\n }", "@Before\n public void setUp() {\n MockitoAnnotations.initMocks(this);\n }", "@Before\n public void init() {\n DatabaseReference mockReference = mock(DatabaseReference.class);\n Task mockTask = mock(Task.class);\n mockAccount = mock(Account.class);\n when(mockReference.child(isA(String.class))).thenReturn(mockReference);\n when(mockReference.removeValue()).thenReturn(mockTask);\n doNothing().when(mockReference)\n .addListenerForSingleValueEvent(isA(ValueEventListener.class));\n }", "@Before\n\tpublic void setup(){\n\t\tMockitoAnnotations.initMocks(this);\n\t}", "public void stopMock() {\n isActive = false;\n }", "private Mocks() { }", "MockReset getReset() {\n\t\treturn this.reset;\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\tMockito.reset(mockMemberDao);\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\tMockitoAnnotations.initMocks(this);\n\t}", "@After\n public void tearDown() {\n GWTMockUtilities.restore();\n }", "@Test\n public void disableAutoRepoTest(){\n reportSettingsPresenter.disableAutoRepo();\n\n verify(databaseInitializer, Mockito.times(1));\n DatabaseInitializer.disableAutoRepo(appDatabase);\n }", "@Before\n public void setUp() {\n photoServiceImpl = new PhotoServiceImpl();\n photoDao = mock(PhotoDao.class);\n photoServiceImpl.setPhotoDao(photoDao);\n }", "private void setMockControlStateToReplay() {\n this.xmlRpcElementFactoryControl.replay();\n this.xmlRpcRequestParserControl.replay();\n this.xmlRpcResponseWriterControl.replay();\n this.xmlRpcServiceExporterControl.replay();\n }", "@Test\r\n public void testSetProxy() {\r\n // Not required\r\n }", "@Before\n\tpublic void setUp() {\n MockitoAnnotations.initMocks(this);\n PowerMockito.mockStatic(HashGeneratorUtil.class);\n\t}", "@Before\n\tpublic void beforeEach() {\n\t\tMockitoAnnotations.initMocks(this);\n\t}", "@Test\r\n\tpublic void mockitoVerify() throws Exception {\r\n\t\tRoom room01 = mock(Room.class);\r\n\t\troom01.setPrice(9.0);\r\n\t\t// verify if action was performed on the mock\r\n\t\tverify(room01).setPrice(9.0);\r\n\t\twhen(room01.getPrice()).thenReturn(9.0);\r\n\t}", "@Test\n public void test() {\n assertNotNull(\"cachedSpringContextWithRejectAndSpy shall be set\", cachedSpringContextWithRejectAndSpy);\n\n\n assertNotNull(\"Spring context shall not be null\", springContext);\n assertNotEquals(\"Should get different spring context\", cachedSpringContextWithRejectAndSpy, springContext);\n cachedSpringContextWithReject = springContext;\n }", "void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}", "@Before\n\tpublic void setUp() {\n\t beanFactory = context.mock(BeanFactory.class);\n\t\texpectationsFactory = new BeanFactoryExpectationsFactory(context, beanFactory);\n\t}", "@Before\n\tpublic void setUp()\n\t{\n\t\tm_mockery = new Mockery();\n\t\tm_values = m_mockery.mock(KeyedValues.class);\n\t}", "@After\n public void cleanUp(){\n mockUserRepo = null;\n mockSession = null;\n sut = null;\n }", "public void setUp() {\n System.setProperty(\"dexmaker.dexcache\", getContext().getCacheDir().toString());\n MockitoAnnotations.initMocks(this);\n\n when(mContext.getSystemService(DEVICE_POLICY_SERVICE)).thenReturn(mDevicePolicyManager);\n\n mHelper = new UserProvisioningStateHelper(\n mContext,\n mUtils,\n mSettingsFacade,\n PRIMARY_USER_ID);\n }", "@BeforeClass\n public void initMockito() {\n MockitoAnnotations.initMocks(this);\n }", "@Test\n public void test() {\n assertNotNull(\"cachedSpringContextWithRejectAndSpy shall be set\", cachedSpringContextWithRejectAndSpy);\n assertNotNull(\"cachedSpringContextWithReject shall be set\", cachedSpringContextWithReject);\n assertNotNull(\"cachedSpringContextWithSpy shall be set\", cachedSpringContextWithSpy);\n\n\n assertNotNull(\"Spring context shall not be null\", springContext);\n assertNotEquals(\"Should get different spring context\", cachedSpringContextWithRejectAndSpy, springContext);\n assertNotEquals(\"Should get different spring context\", cachedSpringContextWithReject, springContext);\n cachedSpringContextWithImpl = springContext;\n }", "@Override public void setUp() throws Exception {\n\t\tsuper.setUp();\n\t\toauth = new OAuthSource(getInstrumentation().getContext());\n\t\toauth.storage = spy(oauth.storage);\n\t\toauth.storage.invalidate();\n\t}", "@After\n public void tearDown()\n {\n mockDependencies.verifyMocks();\n mockDependencies = null;\n assertNull(\"'mockDependencies' should be null at the end of teardown\", mockDependencies);\n\n parser = null;\n assertNull(\"'parser' should be null at the end of teardown\", parser);\n }", "@After\n public void validate()\n {\n validateMockitoUsage();\n }", "@Test\n public void testResetField() {\n System.out.println(\"resetField\"); \n instance.resetField();\n \n }", "@Test\n public void test() {\n assertNotNull(\"cachedSpringContextWithRejectAndSpy shall be set\", cachedSpringContextWithRejectAndSpy);\n assertNotNull(\"cachedSpringContextWithReject shall be set\", cachedSpringContextWithReject);\n\n\n assertNotNull(\"Spring context shall not be null\", springContext);\n assertNotEquals(\"Should get different spring context\", cachedSpringContextWithRejectAndSpy, springContext);\n assertNotEquals(\"Should get different spring context\", cachedSpringContextWithReject, springContext);\n cachedSpringContextWithSpy = springContext;\n }", "@Before\n public void setUp() throws Exception {\n Authentication authentication = Mockito.mock(Authentication.class);\n Mockito.when(authentication.getPrincipal())\n .thenReturn(new SmartCosmosUser(accountUrn, \"urn:userUrn\", \"username\",\n \"password\", Arrays.asList(new SimpleGrantedAuthority(\"USER\"))));\n SecurityContext securityContext = Mockito.mock(SecurityContext.class);\n Mockito.when(securityContext.getAuthentication())\n .thenReturn(authentication);\n SecurityContextHolder.setContext(securityContext);\n }", "@Test\n void spyMockTest() {\n List list = spy(new LinkedList());\n\n //you can enable partial mock capabilities selectively on mocks:\n Person mock = Mockito.mock(Person.class);\n\n //Be sure the real implementation is 'safe'.\n //If real implementation throws exceptions or depends on specific state of the object then you're in trouble.\n when(mock.getName()).thenCallRealMethod();\n\n }", "@BeforeEach\n\tpublic void setUp()\n\t{\n\t\tGuestBook.clear();\n\t}", "@Before\n public void setUp() throws Exception {\n\n clientObserver = mock(MarshalObserver.class);\n client2Observer = mock(MarshalObserver.class);\n serverObserver = mock(MarshalObserver.class);\n\n client = getClientStrategy();\n client2 = getClientStrategy();\n server = getServerStrategy();\n\n client.setListener(clientObserver);\n client2.setListener(client2Observer);\n server.setListener(serverObserver);\n }", "@Before\n public void testSetUp() {\n s_limitService.resetApiLimit(null);\n }", "@Before\n public void setUp() {\n setThreadAssertsDisabledForTesting(true);\n MockitoAnnotations.initMocks(this);\n mDispatcherBridge =\n new PasswordSettingsUpdaterDispatcherBridge(mReceiverBridgeMock, mAccessorMock);\n }", "@Before\n public void setup(){\n\n mockUserRepo = mock(UserRepository.class);\n mockSession = mock(UserSession.class);\n mockValidator = mock(InputValidator.class);\n sut = new UserService( mockUserRepo, mockSession, mockValidator);\n\n }", "@BeforeEach\n public void reset() {\n WIREMOCK_SERVER.resetAll();\n // create new TestRail client instance\n restClientActor =\n RestClientActor.newBuilder()\n .withBaseURL(\"http://localhost:\" + WIREMOCK_SERVER.port())\n .withBasicAuth(\"User\", \"Password\")\n .withDefaultHeader(\"DefaultStaticHeader\", \"static-header-value\")\n .withDefaultHeader(\"DefaultDynamicHeader\", defaultDynamicHeaderSupplier)\n .build();\n }", "@Before\n\tpublic void setUp()\n\t{\n\t\tstadiumFacade = new DefaultStadiumFacade();\n\n\t\t/*\n\t\t * The facade is expected to make calls to an implementation of StadiumService but in this test we want to verify\n\t\t * the correct behaviour of StadiumFacadeImpl itself and not also implicitly test the behaviour of a\n\t\t * StadiumService. In fact as of writing this class, we do only have the interface IStadiumService and no\n\t\t * implementation. This requires that we mock out the IStadiumService interface. There are several strong\n\t\t * arguments for following this practice:\n\t\t * \n\t\t * If we were to include a real implementation of StadiumService rather than mocking it out..\n\t\t * \n\t\t * 1) we will not get \"false failures\" in StadiumFacadeImpl due to errors in the StadiumService implementation.\n\t\t * Such errors should be caught in tests that are focusing on StadiumService instead.\n\t\t * \n\t\t * 2) The condition could arise where an error in the facade gets hidden by a complimentary error in the\n\t\t * StadiumService implementation - resulting in a \"false positive\".\n\t\t * \n\t\t * By mocking out the interface IStadiumService..\n\t\t * \n\t\t * 3) we do not actually need an implementation of it. This therefore helps us to focus our tests on this POJO\n\t\t * before having to implement other POJOs on which it depends - allowing us to write tests early.\n\t\t * \n\t\t * 4) by focusing on the behaviour of the facade and the interfaces it uses, we are forced to focus also on the\n\t\t * those interface, improving them before writing their implementation.\n\t\t * \n\t\t * \n\t\t * Therefore we create a mock of the IStadiumService in the next line...\n\t\t */\n\t\tstadiumService = createMock(StadiumService.class);\n\t\t// We then wire this service into the StadiumFacade implementation..\n\t\tstadiumFacade.setStadiumService(stadiumService);\n\t}", "@Before\n public void setUp() throws Exception{\n\n MockitoAnnotations.initMocks(this);\n spyMainActivity = spy(new MainActivity());\n spyNewsArticleFragment = spy(new NewsArticleFragment());\n spyService = new Service(networkService);\n/* You have to use doReturn() for stubbing */\n Mockito.doReturn(spyMainActivity).when(spyNewsArticleFragment).getActivity();\n Mockito.doReturn(mockBaseApplication).when(spyMainActivity).getApplication();\n Mockito.doReturn(applicationComponent).when(mockBaseApplication).getAppComponent();\n Mockito.doReturn(mockLayoutInflaterProdRate).when(spyMainActivity).getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n Mockito.doReturn(mockInflatedView).when(mockLayoutInflater).inflate(anyInt(), any(ViewGroup.class), anyBoolean());\n Mockito.doReturn(mockInflatedViewProdRate).when(mockLayoutInflaterProdRate).inflate(anyInt(), any(ViewGroup.class));\n Mockito.doReturn(recyclerView).when(mockInflatedView).findViewById(R.id.recyclerView);\n Mockito.doReturn(mockFragmentManager).when(spyMainActivity).getFragmentManager();\n Mockito.doReturn(mockFragmentTransaction).when(mockFragmentManager).beginTransaction();\n Mockito.doReturn(mockFragmentTransaction).when(mockFragmentTransaction).add(anyInt(), any(Fragment.class), anyString());\n Mockito.doReturn(mockFragmentTransaction).when(mockFragmentTransaction).addToBackStack(anyString());\n Mockito.doReturn(0).when(mockFragmentTransaction).commit();\n }", "public void reset() {\n/* 277 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private MockClientFacade() {\n\t\t//this.c = Client.getInstance();\n\t}", "@Test\r\n public void testPurChaseBeverageWithNotEnoughMoneyMock() {\r\n when(recipeBook.getRecipes()).thenReturn(recipes);\r\n // recipe1 price is 50\r\n assertEquals(25, coffeeMaker2.makeCoffee(0, 25));\r\n // for unsuccessful purchase in the CoffeeMaker gerRecipes() is called at least once\r\n verify(recipeBook, atLeastOnce()).getRecipes();\r\n }", "@Test\n public void reactivateAlreadyActivated() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.CREATED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.reactivate(pProductId);\n }", "@Test(expected = BusinessException.class)\n public void reactivateNo() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n mockProductDAO.get(1L);\n times = 1;\n returns(null);\n }\n };\n\n productService.reactivate(pProductId);\n }", "private void clearMockUpdates() {\n mockUpdates_ = emptyProtobufList();\n }", "protected void setUp() throws Exception {\r\n beanUnderTest = new ContestManagerBean();\r\n\r\n context = new MockSessionContext();\r\n\r\n Field field = beanUnderTest.getClass().getDeclaredField(\"sessionContext\");\r\n field.setAccessible(true);\r\n field.set(beanUnderTest, context);\r\n\r\n entityManager = new MockEntityManager();\r\n DBUtil.clearDatabase();\r\n DBUtil.initDatabase();\r\n }", "static void undeployMockEJB() {\r\n if (mockEJBDeployed) {\r\n MockContextFactory.revertSetAsInitial();\r\n mockEJBDeployed = false;\r\n }\r\n }", "@After\n public void teardown() {\n RoboGuice.Util.reset();\n }", "@BeforeEach\n void setUp() {\n filteringRulesHandler = new FilteringRulesHandler();\n\n recInputParams = mock(RecInputParams.class);\n recStatusParams = mock(RecStatusParams.class);\n activeBundle = mock(ActiveBundle.class);\n multipleAlgorithmResult = mock(MultipleAlgorithmResult.class);\n merchandisingRuleExecutor = mock(MerchandisingRuleExecutor.class);\n recCycleStatus = mock(RecCycleStatus.class);\n filteringRulesResult = mock(FilteringRulesResult.class);\n\n ReflectionTestUtils.setField(filteringRulesHandler, \"merchandisingRuleExecutor\", merchandisingRuleExecutor);\n\n products = new LinkedList<>();\n product1 = new Product();\n product1.setProductId(\"1\");\n\n ruleIds = new HashSet<>();\n\n when(recInputParams.getCcp()).thenReturn(Collections.emptyMap());\n when(recStatusParams.getRecCycleStatus()).thenReturn(recCycleStatus);\n }", "@Override\n public void tearDown() {\n getLocalLogService().clear(); \n }", "@Before\r\n public void setUp() {\r\n clientAuthenticated = new MockMainServerForClient();\r\n }", "private void setUpLocalServices() {\n tearDownLocalServices();\n\n // UriGrantsManagerInternal\n final UriGrantsManagerInternal ugmi = mock(UriGrantsManagerInternal.class);\n LocalServices.addService(UriGrantsManagerInternal.class, ugmi);\n\n // AppOpsManager\n final AppOpsManager aom = mock(AppOpsManager.class);\n doReturn(aom).when(mContext).getSystemService(eq(Context.APP_OPS_SERVICE));\n\n // DeviceStateManager\n final DeviceStateManager dsm = mock(DeviceStateManager.class);\n doReturn(dsm).when(mContext).getSystemService(eq(Context.DEVICE_STATE_SERVICE));\n\n // Prevent \"WakeLock finalized while still held: SCREEN_FROZEN\".\n final PowerManager pm = mock(PowerManager.class);\n doReturn(pm).when(mContext).getSystemService(eq(Context.POWER_SERVICE));\n mStubbedWakeLock = createStubbedWakeLock(false /* needVerification */);\n doReturn(mStubbedWakeLock).when(pm).newWakeLock(anyInt(), anyString());\n doReturn(mStubbedWakeLock).when(pm).newWakeLock(anyInt(), anyString(), anyInt());\n\n // DisplayManagerInternal\n final DisplayManagerInternal dmi = mock(DisplayManagerInternal.class);\n doReturn(dmi).when(() -> LocalServices.getService(eq(DisplayManagerInternal.class)));\n\n // ColorDisplayServiceInternal\n final ColorDisplayService.ColorDisplayServiceInternal cds =\n mock(ColorDisplayService.ColorDisplayServiceInternal.class);\n doReturn(cds).when(() -> LocalServices.getService(\n eq(ColorDisplayService.ColorDisplayServiceInternal.class)));\n\n final UsageStatsManagerInternal usmi = mock(UsageStatsManagerInternal.class);\n LocalServices.addService(UsageStatsManagerInternal.class, usmi);\n\n // PackageManagerInternal\n final PackageManagerInternal packageManagerInternal = mock(PackageManagerInternal.class);\n LocalServices.addService(PackageManagerInternal.class, packageManagerInternal);\n doReturn(false).when(packageManagerInternal).isPermissionsReviewRequired(\n anyString(), anyInt());\n doReturn(null).when(packageManagerInternal).getDefaultHomeActivity(anyInt());\n\n ComponentName systemServiceComponent = new ComponentName(\"android.test.system.service\", \"\");\n doReturn(systemServiceComponent).when(packageManagerInternal).getSystemUiServiceComponent();\n\n // PowerManagerInternal\n final PowerManagerInternal pmi = mock(PowerManagerInternal.class);\n final PowerSaveState state = new PowerSaveState.Builder().build();\n doReturn(state).when(pmi).getLowPowerState(anyInt());\n doReturn(pmi).when(() -> LocalServices.getService(eq(PowerManagerInternal.class)));\n\n // PermissionPolicyInternal\n final PermissionPolicyInternal ppi = mock(PermissionPolicyInternal.class);\n LocalServices.addService(PermissionPolicyInternal.class, ppi);\n doReturn(true).when(ppi).checkStartActivity(any(), anyInt(), any());\n\n // InputManagerService\n mImService = mock(InputManagerService.class);\n // InputChannel cannot be mocked because it may pass to InputEventReceiver.\n final InputChannel[] inputChannels = InputChannel.openInputChannelPair(TAG);\n inputChannels[0].dispose();\n mInputChannel = inputChannels[1];\n doReturn(mInputChannel).when(mImService).monitorInput(anyString(), anyInt());\n doReturn(mInputChannel).when(mImService).createInputChannel(anyString());\n\n // StatusBarManagerInternal\n final StatusBarManagerInternal sbmi = mock(StatusBarManagerInternal.class);\n doReturn(sbmi).when(() -> LocalServices.getService(eq(StatusBarManagerInternal.class)));\n }", "@Test\n public void test() {\n assertNotNull(\"cachedSpringContextWithRejectAndSpy shall be set\", cachedSpringContextWithRejectAndSpy);\n\n\n assertNotNull(\"Spring context shall not be null\", springContext);\n assertNotEquals(\"Should NOT get the exact same spring context\", cachedSpringContextWithRejectAndSpy,\n springContext);\n }", "@Before\n public void setup() {\n MockitoAnnotations.initMocks(this);\n final AddressEndpoint addressEndpoint = new AddressEndpoint(addressRepository);\n this.mockAddressEndpoint = MockMvcBuilders.standaloneSetup(addressEndpoint).build();\n\n address01 = new Address(\"Procession St\", \"Paris\", \"75015\", \"FR\");\n address02 = new Address(\"Ritherdon Rd\", \"London\", \"8QE\", \"UK\");\n address03 = new Address(\"Inacio Alfama\", \"Lisbon\", \"A54\", \"PT\");\n address04 = new Address(\"Jardins\", \"Sao Paulo\", \"345678\", \"BR\");\n address05 = new Address(\"Coffey\", \"Perth\", \"654F543\", \"AU\");\n address06 = new Address(\"Harbour Bridge\", \"Sydney\", \"JHG3\", \"AU\");\n address07 = new Address(\"Playa de la Concha\", \"San Sebastian\", \"45678\", \"ES\");\n\n // Persist the object\n addressRepository.save(address01);\n addressRepository.save(address02);\n addressRepository.save(address03);\n addressRepository.save(address04);\n addressRepository.save(address05);\n addressRepository.save(address06);\n addressRepository.save(address07);\n }", "@Test\n public void testClear_EmptyMap() {\n configureAnswer();\n testObject.clear();\n\n verifyZeroInteractions(helper);\n }", "public void testRevert() {\n\t\tthis.two.revert();\n\t\tthis.one.revert();\n\t\tthis.replayMockObjects();\n\t\tthis.aggregate.revert();\n\t\tthis.verifyMockObjects();\n\t}", "@Before\n public void setUp() {\n InternalDataSerializer.reinitialize();\n }", "@Before\n public void setUp() throws Exception {\n MockitoAnnotations.initMocks(this);\n AnalyticsTracker.INSTANCE.setDryRun(true);\n }", "@POST(\"/ResetforTest\")\n\tint resetForTest();", "public void replayCommonBehavior() {\n\t\treplay(bundleContextMock);\n\t\treplay(bundleMock);\n\t\treplay(applicationContextMock);\n\t\tthis.replayed = true;\n\t}", "@AfterEach\n public void teardown() {\n mockDAO = null;\n addFlight = null;\n flight = null;\n }", "private void setUpMockObjects() {\n this.request = new CustomMockHttpServletRequest();\n byte[] content = { 4, 6, 7 };\n ServletInputStream inputStream = new DelegatingServletInputStream(\n new ByteArrayInputStream(content));\n this.request.inputStream = inputStream;\n\n this.response = new MockHttpServletResponse();\n\n this.setUpXmlRpcElementFactory();\n this.setUpXmlRpcRequestParser();\n this.setUpXmlRpcResponseWriter();\n this.setUpXmlRpcServiceExporterMap();\n }", "@Before\n public void setup(){\n\tMockito.when(mockOroSecret.getOROSecretKey()).thenReturn(\"abc@123\");\n\tutility = TokenUtility.getInstance(mockOroSecret);\n }", "@Test\n public void testTargetChangedNoModification() throws Exception {\n when(mockDifferentiator.isNew(Mockito.any(ByteBuffer.class))).thenReturn(false);\n final ConfigurationChangeNotifier testNotifier = mock(ConfigurationChangeNotifier.class);\n\n // In this case the WatchKey is null because there were no events found\n establishMockEnvironmentForChangeTests(null);\n\n verify(testNotifier, Mockito.never()).notifyListeners(Mockito.any(ByteBuffer.class));\n }", "@BeforeMethod\n private void setUp() throws ServerError {\n sessionMock.returns(updatePrxMock.getMock()).getUpdateService();\n\n // mock the session on the Blitz service mock\n updateService = new UpdateBlitzService(sessionMock.getMock());\n }", "@Before\n\tpublic void setup(){\n\t\taccount = mock(Account.class);\n\t\t\t\t\n\t\taccountDB = mock(AccountRepository.class);\n\t\twhen(accountDB.find(anyString())).thenReturn(account);\n\t\tservice = new LoginService(accountDB);\n\n\t}", "@Before\n public void setup() {\n MockitoAnnotations.initMocks(this);\n type = new IntegerType();\n }", "@Override\r\n protected void tearDown() throws Exception {\r\n ctx = null;\r\n projectService = null;\r\n }", "@Before\n public void setup(){\n MockitoAnnotations.initMocks(this);\n\n // create a standalone MVC Context to mocking\n mockMvc = MockMvcBuilders.standaloneSetup(customerController).build();\n }", "public MockServerClient reset() {\n getMockServerEventBus().publish(EventType.RESET);\n sendRequest(\n request()\n .withMethod(\"PUT\")\n .withPath(calculatePath(\"reset\")),\n true\n );\n return clientClass.cast(this);\n }", "private void verifyMockControlExpectations() {\n this.xmlRpcElementFactoryControl.verify();\n this.xmlRpcRequestParserControl.verify();\n this.xmlRpcResponseWriterControl.verify();\n this.xmlRpcServiceExporterControl.verify();\n }", "@Before\n public void setUp()\n {\n mockDependencies = new DefaultConfigurationParserMockDependencies();\n assertNotNull(\"'mockDependencies' should be non-null at the end of setup\", mockDependencies);\n mockDependencies.replayMocks();\n\n parser = new DefaultConfigurationParser(mockDependencies.getMockWidgetFactory());\n assertNotNull(\"'parser' should be non-null at the end of setup\", parser);\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Before\r\n\tpublic void initializeDefaultMockObjects()\r\n\t{\r\n\t\tconfigs = new ArrayList<Config>();\r\n\t\tscreenshots = new ArrayList<Screenshot>();\r\n\t\tprocessedImages = new ArrayList<ProcessedImage>();\r\n\t\ttestExecutions = new ArrayList<TestExecution>();\r\n\t\ttestEnvironments = new ArrayList<TestEnvironment>();\r\n\r\n\t\tinitializeDefaultTestExecution();\r\n\t\tinitializeDefaultTestEnvironment();\r\n\t\tinitializeDefaultScreenshot();\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tuserMockObj = Mockito.mock(User.class);\r\n\t\tmodelMockObj = Mockito.mock(Mobile.class);\r\n\t\toperMockObj = Mockito.mock(Oper.class);\r\n\t\tuserMockObj.setUserName(\"ahad\");\r\n\t\tuserMockObj.setCost(12500);\r\n\t\tmodelMockObj.setModelName(\"Samsung\");\r\n\t\toperMockObj.setOperId(1);\r\n\t\tmodelMockObj.setOperId(operMockObj);\r\n\t\tviewObj = Mockito.mock(ViewJdbcImpl.class);\r\n\t\tconn = viewObj.daoConnect();\r\n\t\tMockito.when(viewObj.duplicateCostCheck(userMockObj)).thenReturn(2);\r\n\t}", "@Before\r\n public void beforeTests() {\r\n request = Mockito.mock(HttpServletRequest.class);\r\n response = Mockito.mock(HttpServletResponse.class);\r\n session = Mockito.mock(HttpSession.class);\r\n BDDMockito.given(request.getSession()).willReturn(session);\r\n ServletContext context = Mockito.mock(ServletContext.class);\r\n BDDMockito.given(session.getServletContext()).willReturn(context);\r\n @SuppressWarnings(\"unchecked\")\r\n StorageService<String, Object> storageService = Mockito.mock(StorageService.class);\r\n BDDMockito.given(context.getAttribute(Mockito.anyString())).willReturn(storageService);\r\n LoginContextEntry loginContextEntry = Mockito.mock(LoginContextEntry.class);\r\n BDDMockito.given(loginContextEntry.isExpired()).willReturn(false);\r\n loginContext = Mockito.mock(LoginContext.class);\r\n BDDMockito.given(loginContext.getRelyingPartyId()).willReturn(\"dummyPartyId\");\r\n BDDMockito.given(loginContextEntry.getLoginContext()).willReturn(loginContext);\r\n BDDMockito.given(storageService.get(Mockito.anyString(), Mockito.anyString())).willReturn(loginContextEntry);\r\n Cookie cookie = Mockito.mock(Cookie.class);\r\n BDDMockito.given(cookie.getName()).willReturn(\"_idp_authn_lc_key\");\r\n BDDMockito.given(cookie.getValue()).willReturn(\"anythingNotNull\");\r\n Cookie[] requestCookies = { cookie };\r\n BDDMockito.given(request.getCookies()).willReturn(requestCookies);\r\n }", "@Test\n public void ShouldNotResyncSurveyPhotos() throws Throwable {\n\n setUp();\n\n when(imagePipeline.isInDiskCacheSync(any(Uri.class))).thenReturn(true);\n\n List<Survey> surveys = surveyList();\n\n when(mSurveyRepository.getSurveysNow()).thenReturn(surveys);\n imageRepository().sync(null);\n verify(imagePipeline, never()).prefetchToDiskCache(any(), any());\n }", "@BeforeEach\n void setUp() {\n GameService.getAllGames().clear();\n // test clear worked on consoles before running other tests\n Assertions.assertEquals(0, GameService.getAllGames().size());\n }", "@Before\n public void setUp()\n {\n sut = new NotificationMessageBuilderHelper();\n }", "@Before\r\n\tpublic void setUp() throws IllegalAccessException{\n\t\torder1 = new Order(1,\"Tshirt\",\"T shirt\",100,\"xyz01\",\"hp1\",0.00,\"\");\r\n\t\torder2 = new Order(2,\"Audio Device\",\"Audim Device\",200.90,\"xyz02\",\"Samsung1\",10.00,\"\");\r\n\t\torder3 = new Order(3,\"Formal Shirt\",\"Formal shirt\",100,\"xyz01\",\"RYM\",0.00,\"Completed\");\r\n\t\torder4 = new Order(4,\"Laptop\",\"Laptop\",70000.90,\"amdg\",\"dell1\",10.00,\"Completed\");\r\n\t\torder5 = new Order(5,\"Tshirt\",\"T shirt\",200.90,\"sgfkn\",\"hp2\",10.00,\"Completed\");\r\n\t\torder6 = new Order(6,\"TV\",\"TV\",200.90,\"sdfsg\",\"LG2\",10.00,\"Completed\");\r\n\t\torder7 = new Order(7,\"Stationary\",\"Stationary \",270.20,\"lsdfh\",\"Venus1\",20.00,\"Completed\");\r\n\t\t\r\n\t\t//configure mock objects\r\n\t\twhen(orderDao.create(order1)).thenReturn(order1.getId());\r\n\t\twhen(orderDao.update(order1)).thenReturn(order1.getId());\r\n\t\twhen(orderDao.delete(order1)).thenReturn(true);\r\n\t\twhen(orderDao.getAllOrders()).thenReturn(Arrays.asList(order1,order2,order3,order4,order5,order6,order7));\r\n\t\t\r\n\t\t//difference between spy and mock\r\n\t\twhen(orderDao_spy1.create(order2)).thenReturn(order2.getId());\r\n\t\tdoReturn(order2.getId()).when(orderDao_spy2).create(order2);\r\n\t\t\r\n\t\torderBO1.setOrderDao(orderDao_spy1);\r\n\t\torderBO2.setOrderDao(orderDao_spy2);\r\n\t}", "public static void tearDown() {\n reset();\n clear();\n APIConfig.getInstance().setAppId(null, null);\n APIConfig.getInstance().setDeviceId(null);\n APIConfig.getInstance().setToken(null);\n APIConfig.getInstance().setUserId(null);\n Leanplum.setApplicationContext(null);\n }", "@Before\r\n public void setup() {\n JacksonTester.initFields(this, new ObjectMapper());\r\n // MockMvc standalone approach\r\n mvc = MockMvcBuilders.standaloneSetup(peopleController)\r\n .build();\r\n //peopleService = Mockito.mock(PeopleServiceImpl.class);\r\n }" ]
[ "0.7747661", "0.7203523", "0.68366957", "0.66293955", "0.6431569", "0.6421154", "0.63946515", "0.6390141", "0.63270795", "0.62993914", "0.6272169", "0.6271002", "0.6267708", "0.62594885", "0.6257789", "0.62458706", "0.62443817", "0.6244007", "0.6238119", "0.62215567", "0.6177417", "0.6169169", "0.61455625", "0.61229825", "0.6120575", "0.609675", "0.60595113", "0.60527474", "0.604946", "0.6039384", "0.60363364", "0.6019198", "0.60110086", "0.6000731", "0.59831357", "0.5976974", "0.59326637", "0.5930847", "0.5917817", "0.58946615", "0.58908975", "0.58878607", "0.58725464", "0.5865221", "0.5862014", "0.58609265", "0.58578146", "0.58455837", "0.5841267", "0.5837874", "0.58373576", "0.5835291", "0.5815546", "0.5810808", "0.5805798", "0.57986426", "0.57868093", "0.5766409", "0.57649547", "0.5759026", "0.5754265", "0.5743901", "0.57243776", "0.5724355", "0.5721241", "0.5720233", "0.5719616", "0.5716029", "0.571534", "0.5710825", "0.5705675", "0.56977195", "0.5695862", "0.5695023", "0.56930584", "0.56867564", "0.56863475", "0.5675286", "0.56732726", "0.5658784", "0.5636818", "0.56245404", "0.56158", "0.56071496", "0.56040204", "0.55946845", "0.5583189", "0.5573518", "0.55730426", "0.55727416", "0.55727416", "0.55700356", "0.5566694", "0.5565484", "0.5563798", "0.5538255", "0.55209655", "0.55171514", "0.5516814", "0.5516057" ]
0.6290431
10
Get device serial number.
public String getDevSerialNumber() { return devSerialNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSerial();", "public long getSerial() {\n\t\treturn this.serialNumber;\n\t}", "String getSerial();", "public String getDeviceId() {\n //TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);\n String number = Build.SERIAL;\n return number;\n }", "public int getSerialNum()\r\n\t{\r\n\t\treturn(serialNum);\r\n\t}", "java.lang.String getSerialNumber();", "java.lang.String getSerialNumber();", "public String getSerialNo() {\n\t\treturn serialNo;\n\t}", "public int getSerialNumber() {\n\t\treturn serialNumber;\n\t}", "public String getCpuSerialNo()\n\t{\n\t\treturn cpuSerialNo;\n\t}", "public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n }\n }", "public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n }\n }", "public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public final String getSerial(){\n return this.peripheralSerial;\n }", "public String getSerialNumber()\n {\n return serialNumber;\n }", "public String getSerial() {\n return serial;\n }", "public String getSerialNumber()\n {\n return _serialNumber;\n }", "public String getSerialNumber() {\n\t\treturn serialNumber;\n\t}", "final int getDeviceNum() {\n return device.getDeviceNum();\n }", "public String getSerial() {\n Object ref = serial_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n serial_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getSerial() {\n Object ref = serial_;\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 serial_ = s;\n return s;\n }\n }", "public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}", "public String readDeviceSN(){\r\n return mFactoryBurnUtil.readDeviceSN();\r\n }", "@Override\n public String getSerialNumber() {\n return serialNumber;\n }", "public AtomicInteger getSerialNo() {\n return serialNo;\n }", "public java.math.BigInteger getSerialNumber() {\r\n return serialNumber;\r\n }", "public static String simSerialNumber() {\n\t\t// return sim serial number\n\t\treturn getTelephonyManager().getSimSerialNumber();\n\t}", "public String getDeviceId() {\n String deviceId = ((TelephonyManager) LoginActivity.this.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();\n if (deviceId != null && !deviceId.equalsIgnoreCase(\"null\")) {\n // System.out.println(\"imei number :: \" + deviceId);\n return deviceId;\n }\n\n deviceId = android.os.Build.SERIAL;\n // System.out.println(\"serial id :: \" + deviceId);\n return deviceId;\n\n }", "public Integer getCocSerialNo() {\n\t\treturn cocSerialNo;\n\t}", "public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.CharSequence getSerialPort() {\n return serialPort;\n }", "public java.lang.CharSequence getSerialPort() {\n return serialPort;\n }", "public BigInteger getSerialNumber() {\n return serialNumber;\n }", "public String serialNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().serialNumber();\n }", "public int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }", "@Nullable\n public Integer getSerialNumber() {\n return serialNumber;\n }", "public String getReceivedSerialNumber() ;", "public String getSerialNumber() {\n\t\treturn null;\n\t}", "public static String getSerialNo(byte[] edid) {\n // Bytes 12-15 are Serial number (last 4 characters)\n if (Logger.get().isDebug()) {\n Logger.debug(\"Serial number: {}\", Arrays.toString(Arrays.copyOfRange(edid, 12, Normal._16)));\n }\n return String.format(\"%s%s%s%s\", getAlphaNumericOrHex(edid[15]), getAlphaNumericOrHex(edid[14]),\n getAlphaNumericOrHex(edid[13]), getAlphaNumericOrHex(edid[12]));\n }", "public BigDecimal getSERIAL_NO() {\r\n return SERIAL_NO;\r\n }", "public BigDecimal getSERIAL_NO() {\r\n return SERIAL_NO;\r\n }", "public final int getDeviceID() {\n return device.getDeviceID();\n }", "private String getDeviceId(Context context){\n TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n //\n ContextCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE);\n String tmDevice = tm.getDeviceId();\n\n String androidId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n String serial = null;\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.FROYO) serial = Build.SERIAL;\n\n if(tmDevice != null) return \"01\" + tmDevice;\n if(androidId != null) return \"02\" + androidId;\n if(serial != null) return \"03\" + serial;\n\n return null;\n }", "public int getComPortNumber() throws FTD2XXException {\n IntByReference reference = new IntByReference();\n ensureFTStatus(ftd2xx.FT_GetComPortNumber(ftHandle, reference));\n return reference.getValue();\n }", "public static String getDeviceUUID(){\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n String uuid = adapter.getAddress();\n return uuid;\n }", "private String getDeviceID() {\n try {\n TelephonyManager telephonyManager;\n\n telephonyManager =\n (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n\n /*\n * getDeviceId() function Returns the unique device ID.\n * for example,the IMEI for GSM and the MEID or ESN for CDMA phones.\n */\n return telephonyManager.getDeviceId();\n }catch(SecurityException e){\n return null;\n }\n }", "public final String getDevicePort(){\n return peripheralPort;\n }", "Integer getDeviceId();", "public String getUserSerial() {\n return userSerial;\n }", "java.lang.String getDeviceId();", "public static native String JavaGetDeviceSerialList(int Number);", "final int getDriverNum() {\n return device.getDriverNum(this);\n }", "public com.google.protobuf.ByteString\n getSerialBytes() {\n Object ref = serial_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n serial_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getDevice() {\r\n return device;\r\n }", "public static String m583i(Context context) {\r\n try {\r\n return ((TelephonyManager) context.getSystemService(\"phone\")).getSimSerialNumber();\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public String getDeviceCode() {\n return deviceCode;\n }", "public String getTransmittedSerialNumber() ;", "com.google.protobuf.ByteString\n getSerialNumberBytes();", "com.google.protobuf.ByteString\n getSerialNumberBytes();", "public com.google.protobuf.ByteString\n getSerialBytes() {\n Object ref = serial_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n serial_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final String getDeviceId(){\n return peripheralDeviceId;\n }", "@SuppressLint(\"HardwareIds\")\n String getDeviceID() {\n return Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n }", "public long getComNumber() {\r\n return comNumber;\r\n }", "public ByteArrayAttribute getSerialNumber() {\n return serialNumber;\n }", "org.hl7.fhir.String getDeviceIdentifier();", "public BigDecimal getDeviceIdentifier() {\n return deviceIdentifier;\n }", "public String getDeviceUDID() {\r\n\t\tTelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\r\n\t\treturn telephonyManager.getDeviceId();\r\n\t}", "public static String deviceId() {\n\t\t// return device id\n\t\treturn getTelephonyManager().getDeviceId();\n\t}", "public byte getISerialNumber() {\r\n\t\treturn iSerialNumber;\r\n\t}", "@Override\n public String getDeviceId() {\n return this.strDevId;\n }", "@SuppressWarnings(\"HardwareIds\")\n public String getUniqueDeviceId() {\n return Settings.Secure.getString(mContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n }", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public String getDevice_id() {\r\n\t\treturn device_id;\r\n\t}", "public String getManagementServerSerialNumber() throws VPlexApiException {\n s_logger.info(\"Request for management server serial number for VPlex at {}\", _baseURI);\n return _discoveryMgr.getManagementServerSerialNumber();\n }", "public UUID getDeviceUuid() {\n return uuid;\n }", "@Override\n public int getCommandId() {\n return serialUid;\n }", "public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }", "public String getDeviceId() {\n return this.DeviceId;\n }", "private long getNewSerialNumber() {\n\t\tSystem.out.print(\"Please enter the correct serial number: \");\n\t\ttry {\n\t\t\treturn sc.nextLong();\n\t\t} catch (InputMismatchException e) {\n\t\t\tSystem.out.println(\"----->Invalid input. A number was expected.<-----\");\n\t\t\tsc.nextLine();\n\t\t\treturn this.getNewSerialNumber();\n\t\t}\n\t}", "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "public java.lang.String getDeviceId() {\n java.lang.Object ref = deviceId_;\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 deviceId_ = s;\n }\n return s;\n }\n }", "@Override\n public List<Object> getDeviceSerialByMcu(String sys_id) {\n return null;\n }", "public Integer getDeviceId() {\n return deviceId;\n }", "public Integer getDeviceId() {\n return deviceId;\n }", "public java.lang.String getNumeroTelefono() {\n\t\treturn _telefonoSolicitudProducto.getNumeroTelefono();\n\t}", "private String getDeviceId() {\n String deviceId = telephonyManager.getDeviceId(); \n \n \n // \"generic\" means the emulator.\n if (deviceId == null || Build.DEVICE.equals(\"generic\")) {\n \t\n // This ID changes on OS reinstall/factory reset.\n deviceId = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID);\n }\n \n return deviceId;\n }", "public java.lang.String getDeviceId() {\n java.lang.Object ref = deviceId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n deviceId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getDeviceName() {\n return deviceName;\n }", "String getDeviceName();", "public String getDeviceName() {\n return mUsbDevice.getDeviceName();\n }", "public String getDcpoNo() {\n return (String)getAttributeInternal(DCPONO);\n }", "public String getDeviceid() {\n return deviceid;\n }", "public String getTelNo()\r\n\t{\r\n\t\treturn this.telNo;\r\n\t}", "public String getDeviceName() {\n return deviceName;\n }", "public short getBcdDevice() {\r\n\t\treturn bcdDevice;\r\n\t}", "public String getDeviceId() {\n\t\tString id;\n\t\tid = options.getProperty(\"id\");\n\t\tif(id == null) {\n\t\t\tid = options.getProperty(\"Device-ID\");\n\t\t}\n\t\treturn trimedValue(id);\n\t}" ]
[ "0.76204073", "0.7385344", "0.73793525", "0.73449457", "0.7323326", "0.7302578", "0.7302578", "0.71414614", "0.70621586", "0.6999018", "0.6977598", "0.6977598", "0.6971008", "0.6971008", "0.69440126", "0.6924626", "0.69211024", "0.68900377", "0.6875682", "0.67935014", "0.67157567", "0.6708945", "0.66977394", "0.669428", "0.6680825", "0.66598475", "0.6650677", "0.6650586", "0.6612568", "0.6578121", "0.6509222", "0.6509222", "0.6506691", "0.6506691", "0.6477522", "0.6474166", "0.64622265", "0.6447082", "0.6443596", "0.6415431", "0.6380228", "0.6329764", "0.63132286", "0.6303047", "0.6303047", "0.6252304", "0.6218809", "0.6177641", "0.6171137", "0.61430126", "0.6114929", "0.61087346", "0.6094653", "0.60849315", "0.6029849", "0.6017806", "0.6011369", "0.5998127", "0.596254", "0.5961167", "0.5959161", "0.59584916", "0.59584916", "0.5954553", "0.59132457", "0.59121287", "0.5847143", "0.58388513", "0.5829339", "0.58244413", "0.58074033", "0.5791603", "0.5791394", "0.5771855", "0.57607615", "0.57597226", "0.57545775", "0.5747501", "0.574192", "0.57326853", "0.572834", "0.57268393", "0.5725145", "0.5718534", "0.5674563", "0.5672054", "0.56588036", "0.56588036", "0.56548464", "0.5653981", "0.5648001", "0.56433326", "0.5637164", "0.56330764", "0.56263185", "0.56210726", "0.56072617", "0.56071675", "0.5595719", "0.5580692" ]
0.7105388
8
determines if the device was opened already
public boolean isOpen() { return this.open; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isOpened();", "boolean isOpened() throws Exception;", "public boolean isOpened() {\n return false;\n }", "boolean hasDevice();", "public boolean isOpened() {\r\n return opened != null;\r\n }", "public boolean isOpen()\r\n\t{\r\n\t return (fd != null);\r\n\t}", "public boolean isOpened()\n {\n \n boolean retVal = isOpened_0(nativeObj);\n \n return retVal;\n }", "private boolean isOpened() {\n if (mIpcChannel != null && mIpcChannel.isOpened()) {\n return true;\n }\n\n return false;\n }", "public boolean IsOpen() {\r\n return GoodOpen;\r\n }", "public boolean isOpened() {\n\t\treturn mCurrentState == STATE.OPENED;\n\t}", "public boolean open() {\n\t\treturn open(false);\n\t}", "public boolean isOpened() {\n return opened;\n }", "public boolean isOpened() {\n return opened;\n }", "public synchronized boolean isOpen() {\n return randomAccessFile != null;\n }", "public boolean isOpen() {\n return myOpen.get();\n }", "public boolean isOpen(){\n\t\treturn this.channel != null;\n\t}", "public static boolean isIsOpenDeviceCH340() {\n return isOpenDeviceCH340;\n }", "public boolean isOpen() {\n\treturn open;\n }", "public boolean getOpen()\n\t{\n\t\treturn getBooleanIOValue(\"Open\", true);\n\t}", "private boolean checkIfDatabaseOnDevice() {\n SQLiteDatabase tempDB = null;\n try {\n String myPath = DB_PATH + DB_NAME;\n tempDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE);\n } catch (SQLiteException e) {\n e.printStackTrace();\n }\n if (tempDB != null)\n tempDB.close();\n return tempDB != null;\n }", "boolean hasDeviceId();", "boolean hasDeviceId();", "public boolean isOpen() {\r\n\t\treturn false;\r\n\t}", "public boolean open(int device)\n {\n \n boolean retVal = open_1(nativeObj, device);\n \n return retVal;\n }", "boolean isOpen();", "boolean isOpen();", "private boolean checkOpen(boolean recordException) {\n/* 650 */ if (!isOpen()) {\n/* 651 */ if (recordException) {\n/* 652 */ recordException(new ClosedChannelException());\n/* */ }\n/* 654 */ return false;\n/* */ } \n/* */ \n/* 657 */ return true;\n/* */ }", "public boolean open() {\n\n return true;\n }", "public boolean isDeviceAlreadyConnected(IWifiP2pProxy.IFastConnectInfo info) {\n\t\tLog.d(TAG, \"mConnectedDevice = \" + mConnectedDevice.getDeviceAddress());\n\t\tLog.d(TAG, \"info = \" + info.getDeviceAddress());\n\t\tif (mConnectedDevice.getDeviceAddress().equalsIgnoreCase(info.getDeviceAddress())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isOpen();", "public boolean isOpen();", "@Override\r\n public boolean connectedWifi() {\r\n return NMDeviceState.NM_DEVICE_STATE_ACTIVATED.equals(nwmDevice.getState().intValue());\r\n }", "private boolean open(final int status) {\n return Objects.equals(status, 0);\n }", "public boolean isOpen() {\r\n\t\treturn open;\r\n\t}", "public boolean isOpen () {\n\t\treturn open;\n\t}", "public boolean isOpened() {\n\t\treturn windowOpened;\n\t}", "public boolean isOpened() {\r\n\t\treturn this.opened;\r\n\t}", "public boolean isOpen() {\n\t\t\n\t\t//If network is open\n\t\tif (this.open) {\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t}", "public boolean isOpen() {\n\t\treturn open;\n\t}", "public boolean getIsOpen() {\n return this.is_open;\n }", "protected final boolean isSessionOpen() {\n return sessionTracker.getOpenSession() != null;\n }", "public boolean isLaunched();", "boolean open();", "public boolean isSetDeviceName() {\n return this.deviceName != null;\n }", "public boolean isFirstLaunchCalled() {\n return this.f51;\n }", "boolean open() {\n if (handle != 0) {\n throw new InternalError(\"Native library \" + name + \" has been loaded\");\n }\n return load0(this, name);\n }", "public boolean isOpen(){\n return isOpen;\n }", "public boolean isOpen() {\n return open;\n }", "@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isOpen() {\n\t\treturn true;\n\t}", "@Override\n public boolean isopen( )\n {\n return logfile != null && out != null;\n }", "protected synchronized boolean isSockOpen(){\n\t\ttry{\n\t\t\tif(out.checkError()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean isCurrentDevice(MediaRouter.RouteInfo info) {\n if (mCastDevice == null) {\n // No device selected\n return false;\n }\n CastDevice device = CastDevice.getFromBundle(info.getExtras());\n if (!device.getDeviceId().equals(mCastDevice.getDeviceId())) {\n // The callback is for a different device\n return false;\n }\n return true;\n }", "public boolean isSetDeviceNo() {\n return this.DeviceNo != null;\n }", "public boolean isOpened(){\n return chestProgressLevel==1;\n }", "public boolean isOpen() {\r\n\t\treturn isOpen;\r\n\t}", "@Override\n public boolean isOpen() {\n return true;\n }", "public boolean isSetDeviceType() {\n return this.DeviceType != null;\n }", "public boolean isOpen() {\n return channel.isOpen();\n }", "public boolean isConnected() {\n \tContext context = this.getApplicationContext();\n \t/** Create, if not exists, the preference GraviolaMOB. */\n SharedPreferences settings = context.getSharedPreferences(\"GraviolaMOB\", MODE_PRIVATE);\n /** Check the preference connectivity and return false if is not set. */\n return settings.getBoolean(\"connectivity\", false);\n }", "public boolean isFileOpened() {\r\n \t\tif (curFile == null)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}", "@Override\n public boolean isAlreadyInDb () {\n try {\n load( idDevice );\n } catch ( EntityNotFoundException e ) {\n return false;\n }\n return true;\n }", "public boolean isOpen() {\n if (this.open) {\n return false;\n } else {\n return true;\n }\n }", "protected boolean checkServoCommandThread(){\r\n try {\r\n if(!isOpen()) open();\r\n return true;\r\n } catch (HardwareInterfaceException ex) {\r\n log.warning(ex.toString());\r\n return false;\r\n }\r\n }", "@Override\r\n\tpublic boolean isOpen() {\r\n\t\t//\r\n\t\treturn this.socket.isOpen();\r\n\t}", "@Override\n boolean isOpen() throws RuntimeException;", "public boolean isOpen() {\n return isOpen;\n }", "public boolean isOpen() {\n return isOpen;\n }", "public boolean isOpened() {\n/* 262 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private boolean isDeviceOnline() {\n ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }", "public boolean open(){\n\t\tboolean allopen = true;\n\t\tfor (boolean element: open){\n\t\t\tif (element ==false)\n\t\t\t\tallopen = false;\n\t\t}\n\t\treturn allopen;\t\t\n\t}", "private final boolean isOpen()\n {\n return !closed;\n }", "private boolean isDeviceOnline() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr != null ? connMgr.getActiveNetworkInfo() : null;\n return (networkInfo != null && networkInfo.isConnected());\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public boolean isCameraOpened() {\n return this.mCamera != null;\n }", "private boolean isDeviceOnline() {\n ConnectivityManager connMgr =\n (ConnectivityManager) mActivity.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }", "private static boolean isChannelOpen(int channelNo) {\n return (channelNo != Channels.CHN_NULL) &&\n TreatmentApplication.getSharedPreferences().getBoolean(Channels.KEY_CHN_IS_OPEN_PREFIX + channelNo, false);\n }", "public boolean isConnecting ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _roboCOM!=null;\r\n\t\t}\r\n\t}", "private boolean isDeviceOnline() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }", "private boolean isDeviceOnline() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }", "public boolean isOpen() {\n\t\treturn luaState != 0;\n\t}", "private void checkSingleInstance() {\r\n\t\t//Erzeugt ein RandomAccessFile \"flag\"\r\n\t\tfinal File file = new File(\"flag\");\r\n\t\tRandomAccessFile randomAccessFile;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//Ist es der Applikation nicht möglich, das erstellte File zu sperren, zeigt es an, dass bereits eines vorhanden ist.\r\n\t\t\t//Dementsprechend wird die Applikation beendet, da bereits eine Instanz geöffnet wurde.\r\n\t\t\trandomAccessFile = new RandomAccessFile(file, \"rw\");\r\n\t\t\tfinal FileLock fileLock = randomAccessFile.getChannel().tryLock();\r\n\r\n\t\t\tif (fileLock == null) {\r\n\t\t\t\tPlatform.exit();\r\n\t\t\t}\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}", "private boolean isDeviceOnline() {\n ConnectivityManager connMgr = (ConnectivityManager) this.getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }", "private void checkFirstLaunch(){\n SharedPreferencesEditor editor = new SharedPreferencesEditor(this);\n boolean test = editor.GetBoolean(\"firstLaunch\");\n if(test){\n loadData();\n return;\n }\n startActivity(new Intent(MainActivity.this, FirstLaunch.class));\n editor.WriteBoolean(\"firstLaunch\", true);\n }", "static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}", "private boolean shouldSmartspaceRecItemOpenInForeground(SmartspaceAction action) {\n if (action == null || action.getIntent() == null\n || action.getIntent().getExtras() == null) {\n return false;\n }\n\n String intentString = action.getIntent().getExtras().getString(EXTRAS_SMARTSPACE_INTENT);\n if (intentString == null) {\n return false;\n }\n\n try {\n Intent wrapperIntent = Intent.parseUri(intentString, Intent.URI_INTENT_SCHEME);\n return wrapperIntent.getBooleanExtra(KEY_SMARTSPACE_OPEN_IN_FOREGROUND, false);\n } catch (URISyntaxException e) {\n Log.wtf(TAG, \"Failed to create intent from URI: \" + intentString);\n e.printStackTrace();\n }\n\n return false;\n }", "@Override\n\tprotected boolean isExist(AbnormalDevice record) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isOpen() { return false; }", "public boolean isOpen() {\n return mRbc.isOpen();\n }", "private boolean m30313d() {\n NetworkInfo activeNetworkInfo = ((ConnectivityManager) this.f30042b.getSystemService(\"connectivity\")).getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "private boolean isDeviceOnline() {\r\n ConnectivityManager connMgr = (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\r\n return (networkInfo != null && networkInfo.isConnected());\r\n }", "public boolean isSignWasOpened() {\n return signWasOpened;\n }", "private boolean isOpen () {\n boolean result = false;\n if (interOne == null || interTwo == null) result = true;\n return (result);\n }", "private static boolean isFirstLaunch() {\n if (new File(\"couchbase-sync.state\").exists()) {\n return false;\n }\n return true;\n }", "private boolean isDeviceOnline() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }", "public boolean estOuvert(){\n\n return netLinkIp.isOpen();\n\n }", "private boolean isInSession()\n {\n return EngagementActivityManager.getInstance().getCurrentActivityAlias() != null;\n }", "public boolean isOpen() { return this.isOpen; }", "public boolean open() {\n if (isOpened()) {\n log.e(\"FlintReceiverManager is already opened!\");\n return true;\n }\n\n mIpcChannel = new MessageChannel(IPC_CHANNEL_NAME, mIpcAddress) {\n\n @Override\n public void onOpen(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"ipcChannel opened!!!\");\n\n // send register message\n JSONObject register = new JSONObject();\n try {\n register.put(IPC_MESSAGE_TYPE, IPC_MESSAGE_DATA_REGISTER);\n\n ipcSend(register);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onClose(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"ipcChannel closed!!!\");\n }\n\n @Override\n public void onError(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"ipcChannel error!!!\");\n }\n\n @Override\n public void onMessage(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"ipcChannel received message: [\" + data + \"]\");\n\n try {\n JSONObject json = new JSONObject(data);\n\n onIpcMessage(json);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n };\n\n mIpcChannel.open();\n\n if (mMessageChannel != null) {\n mMessageChannel.open();\n }\n\n return true;\n }", "private boolean openItemAction(MXGroupChatSession session){\n if(session == null)\n return false;\n if(MXChatCustomizer.isForceTablet() && currentSession != null && session.getSessionID().equals(currentSession)){\n return false;\n }\n\n if (session.isAChat()) {\n if(callback != null)\n callback.openChatAction(session.getSessionID());\n currentSession = session.getSessionID();\n } else {\n Phone_MainActivity.joinMeet(session.getMeetID());\n }\n\n return true;\n }" ]
[ "0.7011801", "0.67281705", "0.6716805", "0.6695719", "0.66586536", "0.66556567", "0.64854044", "0.64314723", "0.6412703", "0.63756865", "0.62802184", "0.6279141", "0.62692416", "0.6232866", "0.6196402", "0.6183441", "0.6174843", "0.61356115", "0.6131906", "0.611759", "0.6106622", "0.6106622", "0.6084751", "0.6075058", "0.6056827", "0.6056827", "0.6051888", "0.60339236", "0.6033555", "0.601279", "0.601279", "0.60100704", "0.6008673", "0.60033333", "0.5966041", "0.5964818", "0.5954931", "0.5954402", "0.59540296", "0.5941568", "0.59400654", "0.5913254", "0.59041053", "0.5897063", "0.5896968", "0.589342", "0.588962", "0.588959", "0.58845407", "0.58845407", "0.587642", "0.58626264", "0.5858729", "0.585262", "0.58345747", "0.5832512", "0.5826702", "0.58172876", "0.581295", "0.57998234", "0.5796235", "0.5791745", "0.57826185", "0.57826084", "0.5765006", "0.57526225", "0.5744482", "0.5737889", "0.5737889", "0.572672", "0.57244444", "0.5716023", "0.5713099", "0.56933147", "0.56879926", "0.568421", "0.5683547", "0.5678843", "0.56735593", "0.56735593", "0.56704855", "0.5668836", "0.5667604", "0.5667262", "0.56634736", "0.5653918", "0.5651883", "0.5651626", "0.5650639", "0.56496966", "0.56487536", "0.5626759", "0.56179434", "0.5614266", "0.5592788", "0.5591058", "0.55868584", "0.5581465", "0.5578611", "0.5574481" ]
0.5656401
85
A command to include a custom VID and PID combination within the internal device list table. This will allow the driver to load for the specified VID and PID combination. Only supported on Linux and Mac OS X.
public static void setVidPid(int dwVID, int dwPID) throws FTD2XXException { if (Platform.isLinux() || Platform.isMac()) { LOGGER.info("Setting custom VID/PID to {}/{}.", toHex4(dwVID), toHex4(dwPID)); ensureFTStatus(ftd2xx.FT_SetVIDPID(dwVID, dwPID)); } else { LOGGER.info("Ignoring request to set VID/PID. Windows not supported."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setDrivingPIDS(PID pid) {\n driverFR.setPid(pid);\n driverFL.setPid(pid);\n driverFL.setPid(pid);\n driverBL.setPid(pid);\n }", "public int[] getVIDPID() {\r\n if(deviceDescriptor==null) {\r\n log.warning(\"USBAEMonitor: getVIDPID called but device has not been opened\");\r\n return new int[2];\r\n }\r\n int[] n=new int[2];\r\n n[0]=deviceDescriptor.idVendor;\r\n n[1]=deviceDescriptor.idProduct;\r\n return n;\r\n }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "public void setVideoDevice(String id);", "public static List<String> getDeviceList() {\n\t\tList<String> str = CommandRunner.exec(CMD_GET_DEVICE_ID);\n\t\tList<String> ids = new ArrayList<String>();\n\t\tfor (int i = 1; i < str.size(); i++) {\n\t\t\tString id = str.get(i).split(\" |\\t\")[0].trim();\n\t\t\tif (!id.isEmpty()) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\t\treturn ids;\n\t}", "public void setCaptureDevice(String devid);", "public void setPlaybackDevice(String devid);", "public static native String JavaGetDeviceSerialList(int Number);", "public String[] getVideoDevicesList();", "private void getDynamicProfie() {\n getDeviceName();\n }", "public List<String> execAdbDevices()\r\n\t{\r\n\t\tList<String> ret_device_id_list = new ArrayList<>();\r\n\t\t\r\n\t\tProcess proc = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tproc = new ProcessBuilder(this.adb_directory, \"devices\").start();\r\n\t\t\tproc.waitFor();\r\n\t\t} catch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t} catch (InterruptedException ire)\r\n\t\t{\r\n\t\t\tire.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString devices_result = this.collectResultFromProcess(proc);\r\n\t String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\r\n\r\n\t if (device_id_list.length <= 1)\r\n\t {\r\n\t \tSystem.out.println(\"No Devices Attached.\");\r\n\t \treturn ret_device_id_list;\r\n\t }\r\n\t \r\n\t /**\r\n\t * collect the online devices \r\n\t */\r\n\t String str_device_id = null;\r\n\t String[] str_device_id_parts = null;\r\n\t // ignore the first line which is \"List of devices attached\"\r\n\t for (int i = 1; i < device_id_list.length; i++)\r\n\t\t{\r\n\t\t\tstr_device_id = device_id_list[i];\r\n\t\t\tstr_device_id_parts = str_device_id.split(\"\\\\s+\");\r\n\t\t\t// add the online device\r\n\t\t\tif (str_device_id_parts[1].equals(\"device\"))\r\n\t\t\t\tret_device_id_list.add(str_device_id_parts[0]);\r\n\t\t}\r\n\t \r\n\t return ret_device_id_list;\r\n\t}", "String getDeviceName();", "public void ConnectUsb(View view) {\n \tSpinner UsbListSpinner = (Spinner) findViewById(R.id.usb_list_spinner);\n \tString VendorName = \"Dummy\";\n \tString ProductName = \"Dummy\";\n \tTextView textView = (TextView) findViewById(R.id.usb_list_view);\n \tString UsbList = (String) textView.getText();\n // Retrieve the UsbManager service with its message\n UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);\n PendingIntent mPermissionIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n\n HashMap<String, UsbDevice> deviceList = manager.getDeviceList();\n Iterator<UsbDevice> deviceIterator = deviceList.values().iterator();\n while(deviceIterator.hasNext()){\n UsbDevice device = deviceIterator.next();\n String SelectedText = String.valueOf(UsbListSpinner.getSelectedItem());\n int Vid = device.getVendorId();\n \n \n switch (Vid) {\n case 2372:\n \tVendorName = \"KORG, Inc.\";\n \tProductName = \"nanoKONTROL studio controller\";\n \tbreak;\t\n case 2235:\n \tVendorName = \"Texas Instruments Japan\";\n \tProductName = \"PCM2900 Audio Codec\";\n \tbreak;\n default:\n\t\t\t\t// do nothing.\n\t\t\t\tbreak;\t\n }\n \n String IteratorText = VendorName+\"\\t\"+ProductName;\n// UsbList=UsbList.concat(\"\\n Selected:\" + SelectedText);\n// UsbList=UsbList.concat(\"\\n Device:\" + IteratorText);\n if(SelectedText.equalsIgnoreCase(IteratorText)){\n \tmanager.requestPermission(device, mPermissionIntent);\n// \tToast.makeText(view.getContext(), \n// \t\t\t\"OnItemSelectedListener : \" + String.valueOf(device.getDeviceName()),\n// \t\t\tToast.LENGTH_SHORT).show();\n }\n }\n textView.setText(UsbList);\n }", "public Collection<String> listDevices();", "public List<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n }\n\n String devices_result = this.collectResultFromProcess(proc);\n String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\n\n if (device_id_list.length <= 1) {\n System.out.println(\"No Devices Attached.\");\n return ret_device_id_list;\n }\n\n /**\n * collect the online devices\n */\n String str_device_id = null;\n String device = null;\n String[] str_device_id_parts = null;\n // ignore the first line which is \"List of devices attached\"\n for (int i = 1; i < device_id_list.length; i++) {\n str_device_id = device_id_list[i];\n str_device_id_parts = str_device_id.split(\"\\\\s+\");\n // add the online device\n if (str_device_id_parts[1].equals(\"device\")) {\n device = str_device_id_parts[0];\n ret_device_id_list.add(device);\n System.out.println(device);\n }\n }\n\n return ret_device_id_list;\n }", "public SmartHomeDevice getCustomDevice(String id);", "public String getSoftwareDriverId();", "PCDevice getPC(UUID uID);", "public Map<String, String> getDeviceInfo(String dpidStr)\n\t\t\tthrows DPIDNotFound;", "void addSubDevice(PhysicalDevice subDevice, String id);", "private static void listCounters(String pid) {\n VmIdentifier vmId = null;\n try {\n vmId = new VmIdentifier(pid);\n } catch (URISyntaxException e) {\n System.err.println(\"Malformed VM Identifier: \" + pid);\n return;\n }\n try {\n MonitoredHost monitoredHost = MonitoredHost.getMonitoredHost(vmId);\n MonitoredVm monitoredVm = monitoredHost.getMonitoredVm(vmId, -1);\n JStatLogger logger = new JStatLogger(monitoredVm);\n logger.printSnapShot(\"\\\\w*\", // all names\n new AscendingMonitorComparator(), // comparator\n false, // not verbose\n true, // show unsupported\n System.out);\n monitoredHost.detach(monitoredVm);\n } catch (MonitorException ex) {\n ex.printStackTrace();\n }\n }", "public void setPid(String pid) {\r\n this.pid = pid;\r\n }", "@Override\r\n public void onDeviceDescription(GenericDevice dev, PDeviceHolder devh,\r\n String desc) {\n\r\n }", "public String getVideoDevice();", "private static String makeDeviceListKey(int device, String deviceAddress) {\n return \"0x\" + Integer.toHexString(device) + \":\" + deviceAddress;\n }", "Device selectByPrimaryKey(String deviceNo);", "public void setRingerDevice(String devid);", "TpDevicePlay selectByPrimaryKey(Integer deviceId);", "public static void main(String[] args) {\n\r\n\t\tRuntime runtime = Runtime.getRuntime();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 获取当前链接的设备\r\n\t\t\tProcess pro_get_deviceslist = runtime.exec(Commands.cmd_get_deviceslist);\r\n\r\n\t\t\tInputStream is_get_deviceslist = pro_get_deviceslist.getInputStream();\r\n\t\t\tInputStreamReader isr_get_deviceslist = new InputStreamReader(is_get_deviceslist);\r\n\t\t\tBufferedReader br_get_deviceslist = new BufferedReader(isr_get_deviceslist);\r\n\r\n\t\t\tif (devices == null) {\r\n\t\t\t\tdevices = new ArrayList<>();\r\n\t\t\t}\r\n\r\n\t\t\tString rl_get_deviceslist = null;\r\n\t\t\twhile ((rl_get_deviceslist = br_get_deviceslist.readLine()) != null) {\r\n\r\n\t\t\t\tif (rl_get_deviceslist.contains(\"\t\")) {\r\n\t\t\t\t\trl_get_deviceslist = rl_get_deviceslist.trim().split(\"\t\")[0];\r\n\r\n\t\t\t\t\tDeviceBean devicesBean = new DeviceBean();\r\n\t\t\t\t\tdevicesBean.setDevicename(rl_get_deviceslist);\r\n\t\t\t\t\tdevices.add(devicesBean);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tbr_get_deviceslist.close();\r\n\t\t\tisr_get_deviceslist.close();\r\n\t\t\tis_get_deviceslist.close();\r\n\t\t\tpro_get_deviceslist.destroy();\r\n\r\n\t\t\tif (devices == null || devices.size() < 1) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// 遍历设备列表,计算每个设备的屏幕宽高\r\n\t\t\tfor (DeviceBean devicesBean : devices) {\r\n\t\t\t\tProcess pro_get_width_height = runtime.exec(Commands.getPixelCommand(devicesBean.getDevicename()));\r\n\t\t\t\tInputStream is_get_width_height = pro_get_width_height.getInputStream();\r\n\t\t\t\tInputStreamReader isr_get_width_height = new InputStreamReader(is_get_width_height);\r\n\t\t\t\tBufferedReader br_get_width_height = new BufferedReader(isr_get_width_height);\r\n\r\n\t\t\t\tString rl_get_width_height = br_get_width_height.readLine();\r\n\t\t\t\tint width = Integer.parseInt((rl_get_width_height.split(\" \")[2].trim().split(\"x\")[0]));\r\n\t\t\t\tint height = Integer.parseInt((rl_get_width_height.split(\" \")[2].trim().split(\"x\")[1]));\r\n\t\t\t\tdevicesBean.setWidth(width);\r\n\t\t\t\tdevicesBean.setHeight(height);\r\n\r\n\t\t\t\tbr_get_width_height.close();\r\n\t\t\t\tisr_get_width_height.close();\r\n\t\t\t\tis_get_width_height.close();\r\n\t\t\t\tpro_get_width_height.destroy();\r\n\t\t\t}\r\n\r\n\t\t\t// 设置 每个设备 要要运行的程序\r\n\t\t\twhile (true) {\r\n\t\t\t\tSystem.out.println(\"\\n 请选择设备,输入设备前的编号(设置完成请输入y):\\n\");\r\n\r\n\t\t\t\tfor (int j = 0; j < devices.size(); j++) {\r\n\t\t\t\t\tDeviceBean deviceBean = devices.get(j);\r\n\t\t\t\t\tSystem.out.println(\" \" + j + \", \" + deviceBean.getDevicename() + \" \" + deviceBean.getWidth() + \"x\"\r\n\t\t\t\t\t\t\t+ deviceBean.getHeight() + \" \" + deviceBean.getCurrRunPackName());\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t\t\tInputStreamReader isr = new InputStreamReader(System.in);\r\n\t\t\t\tBufferedReader br = new BufferedReader(isr);\r\n\t\t\t\tString line = br.readLine().trim();\r\n\r\n\t\t\t\tif (line.equals(\"y\")) {\r\n\t\t\t\t\tSystem.out.println(\"\\n 设置完成 \\n\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tboolean paramsDeviceOk = false;\r\n\t\t\t\tfor (int m = 0; m < devices.size(); m++) {\r\n\t\t\t\t\tif (Integer.parseInt(line) == m) {\r\n\t\t\t\t\t\tparamsDeviceOk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!paramsDeviceOk) {\r\n\t\t\t\t\tSystem.out.println(\" \\n 输入有误 程序结束 \\n\");\r\n\t\t\t\t\tthrow new Exception(\" \\n 输入有误 \\n \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tDeviceBean deviceBean = devices.get(Integer.parseInt(line));\r\n\r\n\t\t\t\tSystem.out.println(\"\\n 您选择的设备是 : \" + deviceBean.getDevicename() + \"\\n\");\r\n\r\n\t\t\t\tSystem.out.println(\" \\n 请选择项目,输入项目前的编号:\\n\");\r\n\r\n\t\t\t\tfor (int s = 0; s < Commons.PACKAGENAMES.size(); s++) {\r\n\t\t\t\t\tSystem.out.println(\" \" + s + \" , \" + Commons.PACKAGENAMES.get(s));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tInputStreamReader isr2 = new InputStreamReader(System.in);\r\n\t\t\t\tBufferedReader br2 = new BufferedReader(isr2);\r\n\t\t\t\tString line2 = br2.readLine().trim();\r\n\r\n\t\t\t\tboolean paramsProjectOk = false;\r\n\t\t\t\tfor (int m = 0; m < Commons.PACKAGENAMES.size(); m++) {\r\n\t\t\t\t\tif (Integer.parseInt(line2) == m) {\r\n\t\t\t\t\t\tparamsProjectOk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!paramsProjectOk) {\r\n\t\t\t\t\tSystem.out.println(\" \\n 输入有误 程序结束 \\n\");\r\n\t\t\t\t\tthrow new Exception(\" \\n 输入有误 \\n \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdevices.get(Integer.parseInt(line))\r\n\t\t\t\t\t\t.setCurrRunPackName(Commons.PACKAGENAMES.get(Integer.parseInt(line2)));\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//开始启动程序\r\n\t\t\tthreadMap = new HashMap<String, Thread>();\r\n\r\n\t\t\tfor (DeviceBean devicesBean : devices) {\r\n\t\t\t\tString packageName = devicesBean.getCurrRunPackName();\r\n\t\t\t\tswitch (packageName) {\r\n\t\t\t\tcase HttTaskThread.PACKAGENAME:\r\n\t\t\t\t\tHttTaskThread taskThread = new HttTaskThread(devicesBean, runtime);\r\n\t\t\t\t\ttaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), taskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase DfttTaskThread.PACKAGENAME:\r\n\t\t\t\t\tDfttTaskThread dfttTaskThread = new DfttTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tdfttTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), dfttTaskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase SbTaskThread.PACKAGENAME:\r\n\t\t\t\t\tSbTaskThread sbTaskThread = new SbTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tsbTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), sbTaskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase ShzxTaskThread.PACKAGENAME:\r\n\t\t\t\t\tShzxTaskThread shzxTaskThread = new ShzxTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tshzxTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), shzxTaskThread);\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\t\r\n\t\t\t}\r\n\r\n\t\t\t// 开启监护线程\r\n\t\t\tMonitorThread monitorThread = new MonitorThread(runtime, devices,threadMap);\r\n\t\t\tmonitorThread.start();\r\n\r\n\t\t\t// 开启定时杀死程序线程\r\n\t\t\tTimerKiller timerKillThread = new TimerKiller(runtime, devices);\r\n\t\t\ttimerKillThread.start();\r\n\t\t\t\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\r\n\t}", "public void setDriverid(java.lang.String value) {\n this.driverid = value;\n }", "public void setDevid(Integer devid) {\n this.devid = devid;\n }", "@Override\n\tpublic void LoadUSB()\n\t{\n\t\t\n\t\tSystem.out.println(\"▓ňU┼╠\");\n\t\t\n\t}", "private native void nGetDevices(Vector deviceList);", "public void setDeviceName(String argDeviceName) {\n\t deviceName = argDeviceName;\n }", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "private void setDeviceVendor() {\n addToMobileContext(Parameters.DEVICE_MANUFACTURER, android.os.Build.MANUFACTURER);\n }", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "List<Device> selectByExample(DeviceExample example);", "@DISPID(1093) //= 0x445. The runtime will prefer the VTID if present\n @VTID(13)\n void media(\n java.lang.String p);", "public void hidDeviceAttached(HidServicesEvent event);", "public MountLV( String cmd ){\r\n super( cmd );\r\n }", "@Nullable\n @Generated\n @Selector(\"identifierForVendor\")\n public native NSUUID identifierForVendor();", "SdkMobileVcode selectByPrimaryKey(Integer vid);", "void addPC(PCDevice pc);", "public List<Device> getRunningDevices();", "public void configureDeviceListView(){\n deviceListView = findViewById(R.id.device_listView);\n combinedDeviceList = new ArrayList<>();\n deviceListAdapter = new DeviceListAdapter(this, combinedDeviceList);\n deviceListView.setAdapter(deviceListAdapter);\n }", "public static void main(String[] args) {\n String s = getUSBName();\n System.out.println(s);\n\t}", "public abstract List<NADevice> getDevices(Context context);", "public void setDeviceName(String dn) {\r\n \tthis.deviceName = dn;\r\n }", "@Override\n\tpublic void setPID(int pid) {\n\t\tthis.pID = pid;\n\t\t\n\t}", "public void DiscoverUsb(View view) {\n \t// Initiate variables\n \tString UsbList = \"Detailed Device List:\\n\";\n \tArrayAdapter<String> connectedDevicesAdapter;\n \tconnectedDevicesAdapter = new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_spinner_dropdown_item, android.R.id.text1) ;\n \tString VendorName = \"Dummy\";\n \tString ProductName = \"Dummy\";\n \t// Do something in response to button\n \t\n // Retrieve the text view\n TextView textView = (TextView) findViewById(R.id.usb_list_view);\n\n \n // Retrieve the UsbManager service with its message\n UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);\n\n HashMap<String, UsbDevice> deviceList = manager.getDeviceList();\n Iterator<UsbDevice> deviceIterator = deviceList.values().iterator();\n while(deviceIterator.hasNext()){\n UsbDevice device = deviceIterator.next();\n \n UsbList=UsbList.concat(\"Device Name:\\n\"+device.getDeviceName()+\"\\n\") ;\n UsbList=UsbList.concat(\"VendorId:\"+Integer.toHexString(device.getVendorId())+\"\\t\"+\"ProductId:\"+Integer.toHexString(device.getProductId())+\"\\n\") ;\n\n UsbList=UsbList.concat(\"VendorId:\"+device.getVendorId()+\"\\t\"+\"ProductId:\"+device.getProductId()+\"\\n\") ;\n\n\n UsbList=UsbList.concat(\"Device Class:\"+Integer.toHexString(device.getDeviceClass())+\"\\t\"+\"subClass:\"+device.getDeviceSubclass()+\"\\n\") ;\n UsbList=UsbList.concat(\"DeviceId:\"+device.getDeviceId()+\"\\t\"+\"InterfaceCount:\"+device.getInterfaceCount()+\"\\n\") ;\n \n int Vid = device.getVendorId();\n \n test();\n \n switch (Vid) {\n case 2372:\n \tVendorName = \"KORG, Inc.\";\n \tProductName = \"nanoKONTROL studio controller\";\n \tbreak;\t\n case 2235:\n \tVendorName = \"Texas Instruments Japan\";\n \tProductName = \"PCM2900 Audio Codec\";\n \tbreak;\n default:\n\t\t\t\t// do nothing.\n\t\t\t\tbreak;\t\n }\n \n UsbList=UsbList.concat(VendorName+\"\\n\"+ProductName+\"\\n\") ;\n \n connectedDevicesAdapter.add(VendorName+\"\\t\"+ProductName);\n UsbList=UsbList.concat(\"\\n\");\n }\n textView.setText(UsbList);\n \n\t\tSpinner UsbListSpinner = (Spinner) findViewById(R.id.usb_list_spinner); \n\t\t\n\t\t\n\t\t\n\t\tUsbListSpinner.setAdapter(connectedDevicesAdapter);\n \n }", "@Override\r\n\tpublic int getVDevInfo() {\r\n\t\treturn 0x08100302; // Diag-x24 Ry on VM/370R6 Sixpack 1.2 for a 3420 as 181 with or without a mounted tape\r\n\t}", "@DISPID(15) //= 0xf. The runtime will prefer the VTID if present\n @VTID(22)\n int reportID();", "public abstract String getOsID();", "public LimelightCenterPID(PIDDrivetrain drivetrain) {\n this.drivetrain = drivetrain;\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(drivetrain);\n }", "public void setPID(java.lang.String param) {\r\n localPIDTracker = param != null;\r\n\r\n this.localPID = param;\r\n }", "public interface IDriver {\n\n /** Get Device Name. */\n public String getDevice();\n\n /** Get Device Id. */\n public String getDeviceId();\n\n /** Get Device version. */\n public String getVersion();\n \n /** Execute command:<code>cmd</code> \n * with arguments<code>args</code> \n * (and/or <code>argsBytes</code>) and return the result. \n * @param cmd Command.\n * @param args Array with arguments for the Command.\n * @param argsBytes Array with byte arguments for the Command.\n * @return Return an object array, this the result list of Command.\n * @throw DriverException Error in Command.\n * @throw UnsupportedDriverOperation Unsupported Command in driver version.\n */\n public Object[] exec(String cmd, String args[], byte[] argsBytes) \n throws DriverException, UnsupportedDriverOperation;\n \n}", "@Override\n\tpublic DeviceBean getDeviceDisplayInfo(String uuid, int major, int minor) {\n\t\treturn dao.getDeviceDisplayInfo(uuid,major,minor);\n\t}", "org.hl7.fhir.String getDeviceIdentifier();", "private String mapDeviceToCloudDeviceId(String device) throws Exception {\n if (device.equalsIgnoreCase(\"/dev/sdb\"))\n return \"1\";\n else if (device.equalsIgnoreCase(\"/dev/sdc\"))\n return \"2\";\n else if (device.equalsIgnoreCase(\"/dev/sde\"))\n return \"4\";\n else if (device.equalsIgnoreCase(\"/dev/sdf\"))\n return \"5\";\n else if (device.equalsIgnoreCase(\"/dev/sdg\"))\n return \"6\";\n else if (device.equalsIgnoreCase(\"/dev/sdh\"))\n return \"7\";\n else if (device.equalsIgnoreCase(\"/dev/sdi\"))\n return \"8\";\n else if (device.equalsIgnoreCase(\"/dev/sdj\"))\n return \"9\";\n\n else if (device.equalsIgnoreCase(\"/dev/xvdb\"))\n return \"1\";\n else if (device.equalsIgnoreCase(\"/dev/xvdc\"))\n return \"2\";\n else if (device.equalsIgnoreCase(\"/dev/xvde\"))\n return \"4\";\n else if (device.equalsIgnoreCase(\"/dev/xvdf\"))\n return \"5\";\n else if (device.equalsIgnoreCase(\"/dev/xvdg\"))\n return \"6\";\n else if (device.equalsIgnoreCase(\"/dev/xvdh\"))\n return \"7\";\n else if (device.equalsIgnoreCase(\"/dev/xvdi\"))\n return \"8\";\n else if (device.equalsIgnoreCase(\"/dev/xvdj\"))\n return \"9\";\n\n else if (device.equalsIgnoreCase(\"xvdb\"))\n return \"1\";\n else if (device.equalsIgnoreCase(\"xvdc\"))\n return \"2\";\n else if (device.equalsIgnoreCase(\"xvde\"))\n return \"4\";\n else if (device.equalsIgnoreCase(\"xvdf\"))\n return \"5\";\n else if (device.equalsIgnoreCase(\"xvdg\"))\n return \"6\";\n else if (device.equalsIgnoreCase(\"xvdh\"))\n return \"7\";\n else if (device.equalsIgnoreCase(\"xvdi\"))\n return \"8\";\n else if (device.equalsIgnoreCase(\"xvdj\"))\n return \"9\";\n\n else\n throw new Exception(\"Device is not supported\");\n }", "public void openAddSmartDeviceList() {\n getNavigator().openAddSmartDeviceList();\n }", "public Laptop(String wnc, double cpu, int mem, int hd, int dvd){\r\n super(wnc,cpu,mem,hd);\r\n this.dvd = dvd;\r\n }", "@DISPID(1611005952) //= 0x60060000. The runtime will prefer the VTID if present\n @VTID(27)\n short parameterTreeViewWithValue();", "final int getDriverNum() {\n return device.getDriverNum(this);\n }", "public void displayPairedDevices() {\n\t\tBluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n\t\t\t\t.getDefaultAdapter();\n\t\tSet<BluetoothDevice> bondedDevices = mBluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\n\t\tList<String> s = new ArrayList<String>();\n\t\tpairedDevices = new ArrayList<BluetoothDevice>();\n\t\tfor (BluetoothDevice bt : bondedDevices) {\n\t\t\ts.add(bt.getName());\n\t\t\tpairedDevices.add(bt);\n\t\t}\n\t\tListView List = (ListView) findViewById(R.id.paired_devices);\n\n\t\tList.setAdapter(new ArrayAdapter<String>(this, R.layout.device_row, s));\n\t}", "List<DeviceDetails> getDevices();", "public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}", "public void reloadVideoDevices();", "public void setPid(String pid) {\n this.pid = pid == null ? null : pid.trim();\n }", "public void setDevID(String devID) {\n this.devID = devID;\n }", "public void addDeviceListener(DeviceDriverListener device);", "public String cloudDeviceIdToDevicePath(String hypervisor, String deviceId) {\n Integer devId = new Integer(deviceId);\n if (null != hypervisor && hypervisor.toLowerCase().contains(\"windows\")) {\n switch (devId) {\n case 1:\n return \"xvdb\";\n case 2:\n return \"xvdc\";\n case 3:\n return \"xvdd\";\n case 4:\n return \"xvde\";\n case 5:\n return \"xvdf\";\n case 6:\n return \"xvdg\";\n case 7:\n return \"xvdh\";\n case 8:\n return \"xvdi\";\n case 9:\n return \"xvdj\";\n default:\n return new String(\"\" + deviceId);\n }\n } else { // -> assume its unix\n switch (devId) {\n case 1:\n return \"/dev/sdb\";\n case 2:\n return \"/dev/sdc\";\n case 3:\n return \"/dev/sdd\";\n case 4:\n return \"/dev/sde\";\n case 5:\n return \"/dev/sdf\";\n case 6:\n return \"/dev/sdg\";\n case 7:\n return \"/dev/sdh\";\n case 8:\n return \"/dev/sdi\";\n case 9:\n return \"/dev/sdj\";\n default:\n return new String(\"\" + deviceId);\n }\n }\n }", "public void setPid(String pid) {\n\t\tthis.pid = pid == null ? null : pid.trim();\n\t}", "public void getDeviceByModelNumber()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Model number \");\r\n\t\t\tString searchModelNumber = sc.nextLine();\r\n\t\t\t\r\n\t\t\tDevice d = record.getDeviceByModelNumber(searchModelNumber);\r\n\t\t\tprintDeviceDetails(d);\r\n\t\t}", "public void openUsbDevice() {\n tryGetUsbPermission();\n }", "java.lang.String getDeviceId();", "public void selectDriver();", "List<VlanId> getXconnectVlans(DeviceId deviceId, PortNumber port);", "@Override\n public int getCommandId() {\n return serialUid;\n }", "public void setSoftwareDriverId(String softwareId);", "private static native void registerIdsN();", "public void setPdid(Long pdid) {\n this.pdid = pdid;\n }", "public static void getDevicesList()\n {\n MidiDevice.Info[]\taInfos = MidiSystem.getMidiDeviceInfo();\n\t\tfor (int i = 0; i < aInfos.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMidiDevice\tdevice = MidiSystem.getMidiDevice(aInfos[i]);\n\t\t\t\tboolean\t\tbAllowsInput = (device.getMaxTransmitters() != 0);\n\t\t\t\tboolean\t\tbAllowsOutput = (device.getMaxReceivers() != 0);\n\t\t\t\tif (bAllowsInput || bAllowsOutput)\n\t\t\t\t{\n\n\t\t\t\t\tSystem.out.println(i + \"\" + \" \"\n\t\t\t\t\t\t+ (bAllowsInput?\"IN \":\" \")\n\t\t\t\t\t\t+ (bAllowsOutput?\"OUT \":\" \")\n\t\t\t\t\t\t+ aInfos[i].getName() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVendor() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVersion() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getDescription());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\" + i + \" \" + aInfos[i].getName());\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (MidiUnavailableException e)\n\t\t\t{\n\t\t\t\t// device is obviously not available...\n\t\t\t\t// out(e);\n\t\t\t}\n\t\t}\n\t\tif (aInfos.length == 0)\n\t\t{\n\t\t\tSystem.out.println(\"[No devices available]\");\n\t\t}\n\t\t//System.exit(0);\n }", "void onDeviceSelected(String address);", "public synchronized void printPidInfo(TrcDbgTrace tracer, boolean verbose, TrcRobotBattery battery)\n {\n final String funcName = \"printPidInfo\";\n\n if (tracer == null)\n {\n tracer = dbgTrace;\n }\n\n if (tracer != null)\n {\n StringBuilder msg = new StringBuilder();\n\n msg.append(String.format(\n Locale.US, \"[%.3f] %s: Target=%6.1f, Input=%6.1f, Error=%6.1f, Output=%6.3f(%6.3f/%5.3f)\",\n TrcUtil.getModeElapsedTime(), instanceName, setPoint, currInput, currError, output, minOutput,\n maxOutput));\n\n if (verbose)\n {\n msg.append(String.format(\n Locale.US, \", PIDTerms=%6.3f/%6.3f/%6.3f/%6.3f\", pTerm, iTerm, dTerm, fTerm));\n }\n\n if (battery != null)\n {\n msg.append(String.format(Locale.US, \", Volt=%.1f(%.1f)\",\n battery.getVoltage(), battery.getLowestVoltage()));\n }\n\n tracer.traceInfo(funcName, msg.toString());\n }\n }", "final void startDevices(List<PCIDevice> devices) {\n // List all devices\n for (PCIDevice dev : devices) {\n final PCIDeviceConfig cfg = dev.getConfig();\n log.debug(\"PCI \" + dev.getPCIName() + '\\t'\n + NumberUtils.hex(cfg.getVendorID(), 4) + ':'\n + NumberUtils.hex(cfg.getDeviceID(), 4) + ':'\n + NumberUtils.hex(cfg.getRevision(), 2) + ' '\n + NumberUtils.hex(cfg.getBaseClass(), 2) + ':'\n + NumberUtils.hex(cfg.getSubClass(), 2) + ':'\n + NumberUtils.hex(cfg.getMinorClass(), 2)\n// + \"\\tIRQ\" + cfg.getInterruptLine() + \":\" + cfg.getInterruptPin()\n + \"\\tCMD \" + NumberUtils.hex(cfg.getCommand(), 4));\n }\n\n // Remap all devices\n remapDeviceAddresses(devices);\n\n // Register all bridges\n final DeviceManager devMan = getDevice().getManager();\n for (PCIDevice dev : devices) {\n if (dev.isBridge()) {\n try {\n devMan.register(dev);\n } catch (DeviceAlreadyRegisteredException ex) {\n log.error(\"Cannot start \" + dev.getId(), ex);\n } catch (DriverException ex) {\n log.error(\"Cannot start \" + dev.getId(), ex);\n }\n }\n }\n // Register all non-bridges\n for (final PCIDevice dev : devices) {\n if (!dev.isBridge()) {\n WorkUtils.add(new Work(dev.getId()) {\n public void execute() {\n try {\n devMan.register(dev);\n } catch (DeviceAlreadyRegisteredException ex) {\n log.error(\"Cannot start \" + dev.getId(), ex);\n } catch (DriverException ex) {\n log.error(\"Cannot start \" + dev.getId(), ex);\n }\n }\n });\n }\n }\n }", "public String getDeviceid() {\n return deviceid;\n }", "public void setPId(String value) {\n setAttributeInternal(PID, value);\n }", "public void setPID_IDX(int PID_IDX){\n this.PID_IDX = PID_IDX;\n }", "@Generated\n @Selector(\"trackID\")\n public native int trackID();", "TVmManufacturer selectByPrimaryKey(String vendorid);", "public DeviceList(BinaryReader reader) throws IOException {\n\t\tdeviceList = new ArrayList<>();\n\n\t\t// The device ID list is zero-terminated.\n\t\tshort lastDeviceID = reader.readNextShort();\n\t\twhile (lastDeviceID != 0) {\n\t\t\tdeviceList.add(lastDeviceID);\n\t\t\tlastDeviceID = reader.readNextShort();\n\t\t}\n\t}", "private void openUsbDevice(UsbDevice device, Bundle extras) throws IOException {\n UsbManager manager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE);\n\n // Find the first available driver.\n final UsbSerialDriver serialDriver = UsbSerialProber.openUsbDevice(manager, device);\n\n if (serialDriver == null) {\n Log.d(TAG, \"No Devices found\");\n throw new IOException(\"No Devices found\");\n } else {\n Log.d(TAG, \"Opening using Baud rate \" + mBaudRate);\n try {\n serialDriver.open();\n serialDriver.setParameters(mBaudRate, 8, UsbSerialDriver.STOPBITS_1, UsbSerialDriver.PARITY_NONE);\n\n serialDriverRef.set(serialDriver);\n\n onUsbConnectionOpened(extras);\n } catch (IOException e) {\n Log.e(TAG, \"Error setting up device: \" + e.getMessage(), e);\n try {\n serialDriver.close();\n } catch (IOException e2) {\n // Ignore.\n }\n }\n }\n }", "public static void main(String[] args) {\n List<PcapIf> alldevs = new ArrayList<PcapIf>(); // Will be filled with NICs\n StringBuilder errbuf = new StringBuilder(); // For any error msgs\n\n /**\n * *************************************************************************\n * First get a list of devices on this system\n * ************************************************************************\n */\n int r = Pcap.findAllDevs(alldevs, errbuf);\n if (r == Pcap.NOT_OK || alldevs.isEmpty()) {\n System.err.printf(\"Can't read list of devices, error is %s\", errbuf\n .toString());\n return;\n }\n\n System.out.println(\"Network devices found:\");\n\n int i = 0;\n try {\n for (PcapIf device : alldevs) {\n String description\n = (device.getDescription() != null) ? device.getDescription()\n : \"No description available\";\n final byte[] mac = device.getHardwareAddress();\n String dir_mac = (mac == null) ? \"No tiene direccion MAC\" : asString(mac);\n System.out.printf(\"#%d: %s [%s] MAC:[%s]\\n\", i++, device.getName(), description, dir_mac);\n\n }//for\n\n PcapIf device = alldevs.get(1); // We know we have atleast 1 device\n System.out\n .printf(\"\\nChoosing '%s' on your behalf:\\n\",\n (device.getDescription() != null) ? device.getDescription()\n : device.getName());\n\n /**\n * *************************************************************************\n * Second we open up the selected device\n * ************************************************************************\n */\n /*\"snaplen\" is short for 'snapshot length', as it refers to the amount of actual data captured from each packet passing through the specified network interface.\n 64*1024 = 65536 bytes; campo len en Ethernet(16 bits) tam máx de trama */\n int snaplen = 64 * 1024; // Capture all packets, no trucation\n int flags = Pcap.MODE_PROMISCUOUS; // capture all packets\n int timeout = 10 * 1000; // 10 seconds in millis\n Pcap pcap\n = Pcap.openLive(device.getName(), snaplen, flags, timeout, errbuf);\n\n if (pcap == null) {\n System.err.printf(\"Error while opening device for capture: \"\n + errbuf.toString());\n return;\n }//if\n\n /**\n * ******F I L T R O*******\n */\n PcapBpfProgram filter = new PcapBpfProgram();\n String expression = \"\"; // \"port 80\";\n int optimize = 0; // 1 means true, 0 means false\n int netmask = 0;\n int r2 = pcap.compile(filter, expression, optimize, netmask);\n if (r2 != Pcap.OK) {\n System.out.println(\"Filter error: \" + pcap.getErr());\n }//if\n pcap.setFilter(filter);\n /**\n * *************\n */\n\n /**\n * *************************************************************************\n * Third we create a packet handler which will receive packets from\n * the libpcap loop.\n * ********************************************************************\n */\n PcapPacketHandler<String> jpacketHandler = new PcapPacketHandler<String>() {\n\n public void nextPacket(PcapPacket packet, String user) {\n\n System.out.printf(\"Received packet at %s caplen=%-4d len=%-4d %s\\n\",\n new Date(packet.getCaptureHeader().timestampInMillis()),\n packet.getCaptureHeader().caplen(), // Length actually captured\n packet.getCaptureHeader().wirelen(), // Original length\n user // User supplied object\n );\n\n /**\n * ****Desencapsulado*******\n */\n for (int i = 0; i < packet.size(); i++) {\n System.out.printf(\"%02X \", packet.getUByte(i));\n if (i % 16 == 15) {\n System.out.println(\"\");\n }\n }\n System.out.println(\"\\n\\nEncabezado: \" + packet.toHexdump());\n \n\n /*-------------------------Verificacion de ETHERNET-------------------------*/\n int tipoIP;\n //tipoIP = (int) ((packet.getUByte(12)*(Math.pow(2, 8))) + packet.getUByte(13));\n tipoIP = (packet.getUByte(12) << 8 | packet.getUByte(13));\n System.out.printf(\"IP = %02X \\n\",(byte)tipoIP);\n /*--------------------------------------------------------------------------*/\n\n /*-------------LONGITUD DEL PAQUETE (PDU DE IP)-----*/\n byte[] longitudTrama = new byte[2];\n longitudTrama[0] = (byte) (packet.getUByte(16));\n longitudTrama[1] = (byte) (packet.getUByte(17));\n /*--------------------------------------------------*/\n \n /*------------------------CHECKSUM DE LA TRAMA--------------------------*/\n byte[] checksum = {(byte)packet.getUByte(24),(byte)packet.getUByte(25)};\n /*---------------------------------------------------------------------*/\n \n\n if (tipoIP == 0x086DD) { //IPV6\n System.out.println(\"IPV6: No contiene Checksum\");\n } else if (tipoIP == 0x0800) { //IPV4 \n System.out.println(\"IPV4\");\n \n /*Capturar bytes del encabezado IP. \n Va del byte 14-33, son 20 bytes------------*/\n byte[] IP = new byte[20];\n for (int j = 14,i=0; j < 34;j++) \n {\n IP[i]=(byte)packet.getUByte(j);\n \n if(j==24 || j==25){ //Lugar del Checksum\n IP[i] = (byte)0x00;\n }\n i++;\n }\n /*Obtener Checksum*/\n long checksumIP = Checksum.calculateChecksum(IP);\n System.out.printf(\"|-- Valor de Checksum IP: %02X --|\\n\",checksumIP);\n \n /*------------------------------*/\n int protocol = (packet.getUByte(23));\n System.out.printf(\"\\tProtocolo: %02X\\n\",(byte)protocol);\n\n if ((byte)protocol == 0x06) //PROTOCOLO TCP\n {\n System.out.printf(\"PROTOCOLO TCP: %02X\\n\",(byte)protocol);\n \n System.out.println(\"---PROTOCOLO TCP/IP---\");\n \n /*---------------------IHL: 45---------------------*/\n byte IHL_limpio = (byte) (packet.getUByte(14) & 0x0000000F);\n int IHL = (IHL_limpio * 4); //Longitud del encabezado \n /*Solamente se requiere la longitud del encabezado: 5\n La otra parte especifica la versión: 4*/\n /*---------------------------------------------*/\n\n /*---------------------PDU de IP---------------------*/\n int longitud = (int) ((packet.getUByte(16) * (Math.pow(2, 8))) + (packet.getUByte(17)));\n /*---------------------------------------------------*/\n \n /*------------Longitud que irá al Pseudo Encabezado---------*/\n int longitudTotal = longitud - IHL;\n System.out.println(\"Longitud: \"+longitud+\"\\nIHL: \"+IHL);\n /*----------------------------------------------------------*/\n \n //Reservado para la longitud de encabezado (TCP O UDP)\n byte[] pseudoEncabezado = new byte[IHL];\n\n for (int j = 0; j < 4; j++) {\n /*----------------------IP ORIGEN----------------------*/\n pseudoEncabezado[j] = (byte) (packet.getUByte(26 + j));\n /*-----------------------------------------------------*/\n\n /*---------------------IP DESTINO---------------------*/\n pseudoEncabezado[j + 4] = (byte) (packet.getUByte(30 + j));\n /*----------------------------------------------------*/\n }\n pseudoEncabezado[8] = 0x00;\n\n /*-------------------PROTOCOLO (0x06)------------------*/\n pseudoEncabezado[9] = (byte) (packet.getUByte(23));\n /*----------------------------------------------------*/\n \n /*-------------------LONGITUD-------------------------*/\n pseudoEncabezado[10] = (byte)packet.getUByte(16);\n pseudoEncabezado[11] = (byte)(packet.getUByte(17)-IHL);\n /*---------------------------------------------------*/\n \n /*El pseudoEncabezado representa la primer mitad para obtener el Checksum*/\n \n /*---La segunda mitad es representada por el PDU_Trans---*/\n byte[] PDU_Trans = new byte[longitudTotal];\n for (int k = 34,q=0; k < 34+longitudTotal; k++,q++) \n {\n PDU_Trans[q]=(byte)packet.getUByte(k);\n }\n /*------------------------------------------------------*/\n \n /*-----------UNION de PDU_Trans con pseudoEncabezado----*/\n int length_pseudoE = pseudoEncabezado.length;\n int length_PDU_Trans = PDU_Trans.length;\n \n byte[] encabezadoFinal;\n encabezadoFinal= new byte[length_pseudoE + length_PDU_Trans];\n \n System.arraycopy(pseudoEncabezado, 0, encabezadoFinal, 0, length_pseudoE);\n System.arraycopy(PDU_Trans, 0, encabezadoFinal, length_pseudoE, length_PDU_Trans);\n \n long checksumTCP = Checksum.calculateChecksum(encabezadoFinal);\n System.out.printf(\"Checksum del TCP: %04X \\n\",checksumTCP);\n /*------------------------------------------------------*/\n }else if ((byte)protocol == 0x11){ //PROTOCOLO UDP\n System.out.printf(\"\\tPROTOCOLO UDP: %02X\\n\",(byte)protocol);\n \n /*---------------------IHL: 45---------------------*/\n byte IHL_limpio = (byte) (packet.getUByte(14) & 0x0000000F);\n int IHL = (IHL_limpio * 4); //Longitud del encabezado \n /*---------------------------------------------*/\n\n /*---------------------PDU de IP---------------------*/\n int longitud = (int) ((packet.getUByte(16) * (Math.pow(2, 8))) + (packet.getUByte(17)));\n /*---------------------------------------------------*/\n \n /*------------Longitud que irá al Pseudo Encabezado---------*/\n int longitudTotal = longitud - IHL;\n /*----------------------------------------------------------*/\n \n //Reservado para la longitud de encabezado (TCP O UDP)\n byte[] pseudoEncabezado = new byte[IHL];\n\n for (int j = 0; j < 4; j++) {\n /*----------------------IP ORIGEN----------------------*/\n pseudoEncabezado[j] = (byte) (packet.getUByte(26 + j));\n /*-----------------------------------------------------*/\n\n /*---------------------IP DESTINO---------------------*/\n pseudoEncabezado[j + 4] = (byte) (packet.getUByte(30 + j));\n /*----------------------------------------------------*/\n }\n pseudoEncabezado[8] = 0x00;\n\n /*-------------------PROTOCOLO (0x11)------------------*/\n pseudoEncabezado[9] = (byte) (packet.getUByte(23));\n /*----------------------------------------------------*/\n \n /*-------------------LONGITUD-------------------------*/\n pseudoEncabezado[10] = (byte)packet.getUByte(16);\n pseudoEncabezado[11] = (byte)(packet.getUByte(17)-IHL);\n /*---------------------------------------------------*/\n \n /*El pseudoEncabezado representa la primer mitad para obtener el Checksum*/\n \n /*---La segunda mitad es representada por el PDU_Trans---*/\n byte[] PDU_Trans = new byte[longitudTotal];\n for (int k = 34,q=0; k < 34+longitudTotal; k++,q++) \n {\n PDU_Trans[q]=(byte)packet.getUByte(k);\n }\n /*------------------------------------------------------*/\n \n /*-----------UNION de PDU_Trans con pseudoEncabezado----*/\n int length_pseudoE = pseudoEncabezado.length;\n int length_PDU_Trans = PDU_Trans.length;\n \n byte[] encabezadoFinal;\n encabezadoFinal= new byte[length_pseudoE + length_PDU_Trans];\n \n System.arraycopy(pseudoEncabezado, 0, encabezadoFinal, 0, length_pseudoE);\n System.arraycopy(PDU_Trans, 0, encabezadoFinal, length_pseudoE, length_PDU_Trans);\n \n long checksumUDP = Checksum.calculateChecksum(encabezadoFinal);\n System.out.printf(\"Checksum del UCP: %04X \\n\",checksumUDP);\n /*------------------------------------------------------*/\n\n }\n\n }\n }\n };\n\n /**\n * *************************************************************************\n * Fourth we enter the loop and tell it to capture 10 packets. The\n * loop method does a mapping of pcap.datalink() DLT value to\n * JProtocol ID, which is needed by JScanner. The scanner scans the\n * packet buffer and decodes the headers. The mapping is done\n * automatically, although a variation on the loop method exists\n * that allows the programmer to sepecify exactly which protocol ID\n * to use as the data link type for this pcap interface.\n * ************************************************************************\n */\n pcap.loop(10, jpacketHandler, \"jNetPcap rocks!\");\n\n /**\n * *************************************************************************\n * Last thing to do is close the pcap handle\n * ************************************************************************\n */\n pcap.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void startDevice() throws DriverException {\n try {\n final Device pciBusDevice = getDevice();\n final ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);\n // Claim the resources\n pciConfigIO = claimPorts(rm, pciBusDevice);\n // Register the API's\n pciBusDevice.registerAPI(PCIBusAPI.class, this);\n pciBusDevice.registerAPI(DeviceInfoAPI.class, this);\n // Find the PCI devices\n devices = probeDevices();\n // Start the PCI devices\n WorkUtils.add(new Work(\"Starting PCI devices\") {\n\n public void execute() {\n startDevices(devices);\n }\n });\n } catch (ResourceNotFreeException ex) {\n throw new DriverException(\"Cannot claim IO ports\", ex);\n } catch (DriverException ex) {\n throw new DriverException(\"Driver exception during register\", ex);\n } catch (NameNotFoundException ex) {\n throw new DriverException(\"Cannot find resource or device manager\",\n ex);\n }\n }", "private void setupPhisicalDevice() {\n try (MemoryStack memstack = MemoryStack.stackPush();) {\n IntBuffer buffer = buffer = memstack.mallocInt(1);\n\n\n long result = vkEnumeratePhysicalDevices(instance, buffer, null);\n int count = buffer.get();\n if (count == 0) {\n throw new RuntimeException(\"No physical support for vulcan available!\");\n }\n\n System.out.println(count);\n buffer = memstack.mallocInt(1);\n buffer.put(buffer.position(), 1);\n PointerBuffer deviceBuffer = memstack.mallocPointer(1);\n vkEnumeratePhysicalDevices(instance, buffer, deviceBuffer);\n //TODO: select the best one\n physicalDevice = new VkPhysicalDevice(deviceBuffer.get(), instance);\n }\n }", "@Override\n public List<Object> getDeviceSerialByMcu(String sys_id) {\n return null;\n }", "public abstract void addDevice(Context context, NADevice device);", "int insertSelective(TpDevicePlay record);", "public void setPid(Integer pid) {\n this.pid = pid;\n }" ]
[ "0.564048", "0.53356713", "0.5184851", "0.5163007", "0.50612193", "0.5007045", "0.49615157", "0.4956845", "0.4871234", "0.48279768", "0.47777995", "0.4741538", "0.47215948", "0.4715485", "0.47067124", "0.469573", "0.46944845", "0.4663193", "0.46478042", "0.46443278", "0.46163133", "0.46149924", "0.46028164", "0.45886487", "0.4579343", "0.45602044", "0.45384258", "0.45234066", "0.44933668", "0.44597906", "0.44509533", "0.44494873", "0.44479984", "0.444193", "0.4413208", "0.4413064", "0.44116268", "0.43829387", "0.438227", "0.43737715", "0.43707016", "0.43698782", "0.43596286", "0.43595114", "0.43574277", "0.4353643", "0.43281972", "0.43210667", "0.43183303", "0.4311613", "0.43097472", "0.43007773", "0.42942178", "0.4284212", "0.42836854", "0.42825198", "0.42762053", "0.42759988", "0.42759386", "0.42723736", "0.42698422", "0.42632058", "0.42598814", "0.4259356", "0.42571342", "0.42298132", "0.4227352", "0.4219794", "0.4216819", "0.4215886", "0.42156622", "0.42096722", "0.42039967", "0.42002115", "0.41932505", "0.41874254", "0.41843417", "0.41782475", "0.41752702", "0.4170468", "0.4167906", "0.41675532", "0.41615972", "0.41605458", "0.41553068", "0.41532114", "0.41495264", "0.41488233", "0.4148491", "0.41481027", "0.4147749", "0.41477475", "0.41462463", "0.41376963", "0.41311994", "0.41271222", "0.41256315", "0.41214517", "0.41156876", "0.411442" ]
0.56136346
1
Bitwise and (&) with 0xFFFF is to ensure unsigned value.
private static String toHex4(int value) { return String.format("0x%04x", (0xFFFF & value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\n\t}", "public int rangeBitwiseAnd(int m, int n) {\n \tint mask = 0xffffffff;\n \twhile((m&mask) != (n&mask)){\n \t\tmask <<= 1;\n \t}\n \treturn mask&m;\n }", "public Object visitBitwiseAndExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a & (Long) b;\n }\n else {\n result = parens(a) + \" & \" + parens(b);\n }\n \n return result;\n }", "protected final void operationAND(final int data) {\r\n this.ac &= data;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n }", "public int rangeBitwiseAnd(int m, int n) {\n int i = 0;\n while (m != n) {\n m >>= 1;\n n >>= 1;\n i++;\n }\n return (n << i);\n }", "public bit and(bit other)\n\t{\n\t\tbit andBit = new bit();\n\t\t\n\t\tif(bitHolder.getValue() == other.getValue())\n\t\t{\n\t\t\tif(bitHolder.getValue() == 0)\n\t\t\t{\n\t\t\t\tandBit.setValue(0);\n\t\t\t}else {\n\t\t\tandBit.setValue(1);\n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\tandBit.setValue(0);\n\t\t}\n\t\t\n\t\treturn andBit;\n\t}", "public int rangeBitwiseAnd(int m, int n) {\n\t \tint ans = 0;\n\t for (int i = 0; i < 32; ++ i) {\n \t\tif (1 == ((m >> i) & 1)) {\n \t\t\tif (((m & ~0 << (i + 1)) | (~0 >>> (31 - i))) >= n) {\n \t\t\t\tans |= 1 << i;\n \t\t\t}\n \t\t}\n\t }\n\t System.out.println(ans);\n\t return ans;\n\t }", "public static BinaryExpression and(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "private Term parseBitwiseAnd(final boolean required) throws ParseException {\n Term t1 = parseAdd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '&') {\n Term t2 = parseAdd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.AndI(t1, t2);\n } else {\n reportTypeErrorI2(\"'&'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public static int method_2686(int var0) {\r\n return var0 & 7;\r\n }", "public void and(FormatableBitSet otherBit)\n \t{\n \t\tif (otherBit == null) {\n \t\t\tclear();\n \t\t\treturn;\n \t\t}\n \t\tint otherLength = otherBit.getLength();\n \n \t\tif (otherLength > getLength()) {\n \t\t\tgrow(otherLength);\n \t\t}\n \n \t\t// Since this bitset is at least as large as the other bitset,\n \t\t// one can use the length of the other bitset in the iteration\n \t\tint byteLength = otherBit.getLengthInBytes();\n \t\tint i = 0;\n \t\tfor (; i < byteLength; ++i) {\n \t\t\tvalue[i] &= otherBit.value[i];\n \t\t}\n \n \t\t// If the other bitset is shorter the excess bytes in this\n \t\t// bitset must be cleared\n \t\tbyteLength = getLengthInBytes();\n \t\tfor (; i < byteLength; ++i) {\n \t\t\tvalue[i] = 0;\n \t\t}\n \t\tif (SanityManager.DEBUG) {\n \t\t\tSanityManager.ASSERT(invariantHolds(),\"and() broke invariant\");\n \t\t}\n \t}", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "private void and() {\n // PROGRAM 1: Student must complete this method\n //loop through the output array\n for (int i = 0; i < output.length; i++) {\n //take the and of index i of inputA and inputB and place result in output[i]\n output[i] = inputA[i] & inputB[i];\n }\n }", "public static void main(String[] args) {\n\n\t\tint bitmask = 0xF0F0;\n\t\tint value = 0x0000;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0xF0F0 = 61680\n\n\t\tbitmask = 0xF0F0;\n\t\tvalue = 0x0F0F;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0xFFFF = 65535\n\n\t\tbitmask = 0xF0F0;\n\t\tvalue = 0xF0F0;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0\n\t}", "public static BinaryExpression andAlso(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public TribitByte and(TribitByte other){\n Objects.requireNonNull(other);\n Tribit[] and = Stream.iterate(0, i -> i + 1)\n .limit(LENGTH)\n .map(i -> Tribit.and(value[i], other.value[i]))\n .toArray(Tribit[]::new);\n return new TribitByte(and);\n }", "static void andOp(){\n Scanner scanner = new Scanner(System.in);\n\n System.out.print(\"Ingrese el primer numero binario: \");\n String bin1 = scanner.nextLine();\n\n System.out.print(\"Ingrese el segundo numero binario: \");\n String bin2 = scanner.nextLine();\n\n int A = Integer.parseInt(bin1,2);\n int B = Integer.parseInt(bin2,2);\n\n System.out.print(\"A & B = \" + (A & B));\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(rangeBitwiseAnd(10, 13));\r\n\t}", "public <V extends Number> FluentExp<V> bitAnd (V value)\n {\n return new BitAnd<V>(this, value);\n }", "public static final int[] get_AND_AND(){\n\t\t\n\t\tint[] table = new int[16*16];\n\t\t\n\t\t// table[(T_undefined<<4)+T_undefined] \t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_byte] \t\t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_long] \t\t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_short] \t\t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_void] \t\t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_float] \t\t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_boolean] \t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_char] \t\t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_int] \t\t\t= T_undefined;\n\t\t// table[(T_undefined<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t// table[(T_byte<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_byte<<4)+T_byte] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_long] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_short] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_void] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_boolean] \t= T_undefined;\n\t\t// table[(T_byte<<4)+T_char] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_int] \t\t= T_undefined;\n\t\t// table[(T_byte<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t// table[(T_long<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_long<<4)+T_byte] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_long] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_short] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_void] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_boolean] \t= T_undefined;\n\t\t// table[(T_long<<4)+T_char] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_int] \t\t= T_undefined;\n\t\t// table[(T_long<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t// table[(T_short<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_short<<4)+T_byte] \t\t= T_undefined;\n\t\t// table[(T_short<<4)+T_long] \t\t= T_undefined;\n\t\t// table[(T_short<<4)+T_short] \t\t= T_undefined;\n\t\t// table[(T_short<<4)+T_void] \t\t= T_undefined;\n\t\t// table[(T_short<<4)+T_String] \t= T_undefined;\n\t\t// table[(T_short<<4)+T_Object] \t= T_undefined;\n\t\t// table[(T_short<<4)+T_double] \t= T_undefined;\n\t\t// table[(T_short<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_short<<4)+T_boolean]\t= T_undefined;\n\t\t// table[(T_short<<4)+T_char] \t\t= T_undefined;\n\t\t// table[(T_short<<4)+T_int] \t\t= T_undefined;\n\t\t// table[(T_short<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t// table[(T_void<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_void<<4)+T_byte] \t\t= T_undefined;\n\t\t// table[(T_void<<4)+T_long] \t\t= T_undefined;\n\t\t// table[(T_void<<4)+T_short] \t\t= T_undefined;\n\t\t// table[(T_void<<4)+T_void] \t\t= T_undefined;\n\t\t// table[(T_void<<4)+T_String] \t= T_undefined;\n\t\t// table[(T_void<<4)+T_Object] \t= T_undefined;\n\t\t// table[(T_void<<4)+T_double] \t= T_undefined;\n\t\t// table[(T_void<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_void<<4)+T_boolean] \t= T_undefined;\n\t\t// table[(T_void<<4)+T_char] \t\t= T_undefined;\n\t\t// table[(T_void<<4)+T_int] \t\t= T_undefined;\n\t\t// table[(T_void<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t// table[(T_String<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_String<<4)+T_byte] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_long] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_short] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_void] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_boolean] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_char] \t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_int] \t\t\t= T_undefined;\n\t\t// table[(T_String<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t// table[(T_Object<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_Object<<4)+T_byte] \t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_long] \t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_short]\t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_void] \t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_boolean]\t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_char] \t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_int] \t\t\t= T_undefined;\n\t\t// table[(T_Object<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t// table[(T_double<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_double<<4)+T_byte] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_long] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_short] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_void] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_boolean] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_char] \t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_int] \t\t\t= T_undefined;\n\t\t// table[(T_double<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t// table[(T_float<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_float<<4)+T_byte] \t\t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_long] \t\t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_short] \t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_void] \t\t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_boolean] \t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_char] \t\t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_int] \t\t\t= T_undefined;\n\t\t// table[(T_float<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t// table[(T_boolean<<4)+T_undefined] \t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_byte] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_long] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_short] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_void] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_String] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_Object] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_double] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_float] \t\t\t= T_undefined;\n\t table[(T_boolean<<4)+T_boolean] \t\t= (Boolean2Boolean<<12)+(Boolean2Boolean<<4)+T_boolean;\n\t\t// table[(T_boolean<<4)+T_char] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_int] \t\t\t= T_undefined;\n\t\t// table[(T_boolean<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t// table[(T_char<<4)+T_undefined] \t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_byte] \t\t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_long] \t\t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_short] \t\t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_void] \t\t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_float] \t\t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_boolean] \t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_char] \t\t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_int] \t\t\t= T_undefined;\n\t\t// table[(T_char<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t// table[(T_int<<4)+T_undefined] \t= T_undefined;\n\t\t// table[(T_int<<4)+T_byte] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_long] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_short] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_void] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_float] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_boolean] \t= T_undefined;\n\t\t// table[(T_int<<4)+T_char] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_int] \t\t= T_undefined;\n\t\t// table[(T_int<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t// table[(T_null<<4)+T_undefined] \t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_byte] \t\t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_long] \t\t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_short] \t\t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_void] \t\t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_String] \t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_Object] \t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_double] \t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_float] \t\t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_boolean] \t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_char] \t\t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_int] \t\t\t= T_undefined;\n\t\t// table[(T_null<<4)+T_null] \t\t\t= T_undefined;\n\t\treturn table;\n\t}", "private boolean method_263(int var1) {\n return (this.method_244() & 1L << var1) != 0L;\n }", "@OperationMeta(opType = OperationType.INFIX)\n public static boolean and(boolean b1, boolean b2) {\n return b1 & b2;\n }", "public int rangeBitwiseAnd2(int m, int n) {\n if (m == n){\n return m;\n }\n //The highest bit of 1 in diff is the highest changed bit.\n int diff = m ^ n;\n //Index is the index of the highest changed bit. Starting at 1.\n int index = (int)(Math.log(diff) / Math.log(2)) + 1;\n //Eliminate the changed part.\n m = m & (0xffffffff<<index);\n return m;\n }", "public final void rule__AstExpressionBitand__OperatorAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25224:1: ( ( ( '&' ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25225:1: ( ( '&' ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25225:1: ( ( '&' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25226:1: ( '&' )\n {\n before(grammarAccess.getAstExpressionBitandAccess().getOperatorAmpersandKeyword_1_1_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25227:1: ( '&' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25228:1: '&'\n {\n before(grammarAccess.getAstExpressionBitandAccess().getOperatorAmpersandKeyword_1_1_0()); \n match(input,93,FOLLOW_93_in_rule__AstExpressionBitand__OperatorAssignment_1_150679); \n after(grammarAccess.getAstExpressionBitandAccess().getOperatorAmpersandKeyword_1_1_0()); \n\n }\n\n after(grammarAccess.getAstExpressionBitandAccess().getOperatorAmpersandKeyword_1_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void executeAnd(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString operand1 = mRegisters[mIR.substring(7, 3).getValue()];\n\t\tchar[] andSolution = new char[16];\n\t\tBitString operand2 = new BitString();\n\t\tif(mIR.substring(10, 1).getValue() == 1){ //immediate mode\n\t\t\toperand2 = mIR.substring(11, 5); //imma5\n\t\t\tif(operand2.getValue2sComp() < 0){\n\t\t\t\tBitString negativeExtend = new BitString();\n\t\t\t\tnegativeExtend.setBits(\"11111111111\".toCharArray());\n\t\t\t\tnegativeExtend.append(operand2);\n\t\t\t\toperand2 = negativeExtend;\n\t\t\t} else {\n\t\t\t\tBitString positiveExtended = new BitString();\n\t\t\t\tpositiveExtended.setBits(\"00000000000\".toCharArray());\n\t\t\t\toperand2 = positiveExtended.append(operand2);\n\t\t\t}\n\t\t} else { \t\t\t\t\t\t\t\t\t\t\t\t//register mode\n\t\t\toperand2 = mRegisters[mIR.substring(13, 3).getValue()];\n\t\t}\n\n\n\t\tfor (int i = 0; i < operand1.getLength(); i++) {\n\t\t\tif(operand1.substring(i, 1).getValue() + operand2.substring(i, 1).getValue() ==2){\n\t\t\t\tandSolution[i] = '1';\n\t\t\t} else {\n\t\t\t\tandSolution[i] = '0';\n\t\t\t}\n\t\t}\n\n\t\tmRegisters[destBS.getValue()].setBits(andSolution);\n\n\t\tsetConditionalCode(mRegisters[destBS.getValue()]);\n\t}", "public static Object and(Object val1, Object val2) {\n\t\tif (isBool(val1) && isBool(val2)) {\n\t\t\treturn ((Boolean) val1) & ((Boolean) val2);\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).and((BigInteger) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in and\");\n\t}", "static long andOperator(long x, long y)\n {\n long res = 0; // Initialize result\n while (x > 0 && y > 0) {\n // Find positions of MSB in x and y\n int msb_p1 = msbPos(x);\n int msb_p2 = msbPos(y);\n // If positions are not same, return\n if (msb_p1 != msb_p2)\n break;\n // Add 2^msb_p1 to result\n long msb_val = (1 << msb_p1);\n res = res + msb_val;\n // subtract 2^msb_p1 from x and y.\n x = x - msb_val;\n y = y - msb_val;\n }\n return res;\n }", "public static final int quickCheck(int paramInt1, int paramInt2)\n/* */ {\n/* 2133 */ int[] arrayOfInt = { 0, 0, 4, 8, 17, 34 };\n/* */ \n/* */ \n/* */ \n/* 2137 */ int i = (int)getNorm32(paramInt1) & arrayOfInt[paramInt2];\n/* */ \n/* 2139 */ if (i == 0)\n/* 2140 */ return 1;\n/* 2141 */ if ((i & 0xF) != 0) {\n/* 2142 */ return 0;\n/* */ }\n/* 2144 */ return 2;\n/* */ }", "static int isolateBit(int n){\n return n & (-n);\n }", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "protected final void operationBIT(final int data) {\r\n this.signFlag = data >= 0x80;\r\n this.overflowFlag = (data & 0x40) > 0;\r\n this.zeroFlag = (this.ac & data) == 0;\r\n }", "public static RuntimeValue and(RuntimeValue left, RuntimeValue right) throws RuntimeException {\n if (isDiscreteBoolSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_BOOL_SAMPLE,\n Operators.and(left.getDiscreteBoolSample(), right.getDiscreteBoolSample())\n );\n }\n\n throw new RuntimeException(\"AND-ing incompatible types\");\n }", "public final void rule__BoolOperation__Group_17__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1935:1: ( ( '&' ) )\n // InternalBSQL2Java.g:1936:1: ( '&' )\n {\n // InternalBSQL2Java.g:1936:1: ( '&' )\n // InternalBSQL2Java.g:1937:2: '&'\n {\n before(grammarAccess.getBoolOperationAccess().getAmpersandKeyword_17_0()); \n match(input,33,FOLLOW_2); \n after(grammarAccess.getBoolOperationAccess().getAmpersandKeyword_17_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static final boolean m2222containsuhHAxoY(ULongRange $this$contains, short value) {\n Intrinsics.checkParameterIsNotNull($this$contains, \"$this$contains\");\n return $this$contains.m2200containsVKZWuLQ(ULong.m1443constructorimpl(((long) value) & 65535));\n }", "private boolean inBitRange(int k) {\n try {\n if (k < 0 || k >= this.numberOfBits())\n throw new Exception(\"Data: bit index is out of range (0<=\" + k + \"<\" + this.numberOfBits() + \")\");\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n return true;\n }", "private boolean Overflow(int dvalue, int rvalue, int result)\n {\n return ((Utils.bit7(dvalue) && Utils.bit7(rvalue) && !Utils.bit7(result)) || (!Utils.bit7(dvalue) && !Utils.bit7(rvalue) && Utils.bit7(result)));\n }", "public <V extends Number> FluentExp<V> bitAnd (SQLExpression<V> expr)\n {\n return new BitAnd<V>(this, expr);\n }", "public static BinaryExpression and(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public final void rule__BoolOperation__Group__15__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1557:1: ( ( '&' ) )\n // InternalBSQL2Java.g:1558:1: ( '&' )\n {\n // InternalBSQL2Java.g:1558:1: ( '&' )\n // InternalBSQL2Java.g:1559:2: '&'\n {\n before(grammarAccess.getBoolOperationAccess().getAmpersandKeyword_15()); \n match(input,33,FOLLOW_2); \n after(grammarAccess.getBoolOperationAccess().getAmpersandKeyword_15()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "int setShort(int num, int a_short, int which)\n {\n return ((num & (0b1111111111111111 << ((~which) << 4))) | (a_short << (which << 4)));\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "public static final int[] get_AND(){\n\t\t\n\t\tint[] table = new int[16*16];\n\t\t\n\t\t//\ttable[(T_undefined<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_byte<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_byte<<4)+T_byte] \t\t= (Byte2Int<<12) +(Byte2Int<<4) +T_int;\n\t\ttable[(T_byte<<4)+T_long]\t\t= (Byte2Long<<12)+(Long2Long<<4)+T_long;\n\t\ttable[(T_byte<<4)+T_short] \t\t= (Byte2Int<<12) +(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_byte<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_byte<<4)+T_char] \t\t= (Byte2Int<<12) +(Char2Int<<4) +T_int;\n\t\ttable[(T_byte<<4)+T_int] \t\t= (Byte2Int<<12) +(Int2Int<<4) +T_int;\n\t\t//\ttable[(T_byte<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_long<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_long<<4)+T_byte] \t\t= (Long2Long<<12)+(Byte2Long<<4)+T_long;\n\t\ttable[(T_long<<4)+T_long] \t\t= (Long2Long<<12)+(Long2Long<<4)+T_long;\n\t\ttable[(T_long<<4)+T_short] \t\t= (Long2Long<<12)+(Short2Long<<4)+T_long;\n\t\t//\ttable[(T_long<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_long<<4)+T_char] \t\t= (Long2Long<<12)+(Char2Long<<4)+T_long;\n\t\ttable[(T_long<<4)+T_int] \t\t= (Long2Long<<12)+(Int2Long<<4)+T_long;\n\t\t//\ttable[(T_long<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_short<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_short<<4)+T_byte] \t\t\t= (Short2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_long] \t\t\t= (Short2Long<<12)+(Long2Long<<4)+T_long;\n\t\ttable[(T_short<<4)+T_short] \t\t= (Short2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_short<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_boolean] \t\t= T_undefined;\n\t\ttable[(T_short<<4)+T_char] \t\t\t= (Short2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_int] \t\t\t= (Short2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_short<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_void<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_boolean] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_int] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_String<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_Object<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_short]\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_boolean]\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_double<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_float<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_boolean<<4)+T_undefined] \t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_short] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_String] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_Object] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_double] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_float] \t\t\t= T_undefined;\n\t\ttable[(T_boolean<<4)+T_boolean] \t\t= (Boolean2Boolean << 12)+(Boolean2Boolean << 4)+T_boolean;\n\t\t//\ttable[(T_boolean<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t//\ttable[(T_char<<4)+T_undefined] \t\t= T_undefined;\n\t\ttable[(T_char<<4)+T_byte] \t\t\t= (Char2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_long] \t\t\t= (Char2Long<<12)+(Long2Long<<4)+T_long;\n\t\ttable[(T_char<<4)+T_short] \t\t\t= (Char2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_char<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_boolean] \t\t= T_undefined;\n\t\ttable[(T_char<<4)+T_char] \t\t\t= (Char2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_int] \t\t\t= (Char2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_char<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t//\ttable[(T_int<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_int<<4)+T_byte] \t\t= (Int2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_long] \t\t= (Int2Long<<12)+(Long2Long<<4)+T_long;\n\t\ttable[(T_int<<4)+T_short] \t\t= (Int2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_int<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_int<<4)+T_char] \t\t= (Int2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_int] \t\t= (Int2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_int<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_null<<4)+T_undefined] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_short] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_null] \t\t\t= T_undefined;\n\t\n\t\treturn table;\n\t}", "public final void rule__BoolOperation__Group_8_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1881:1: ( ( '&' ) )\n // InternalBSQL2Java.g:1882:1: ( '&' )\n {\n // InternalBSQL2Java.g:1882:1: ( '&' )\n // InternalBSQL2Java.g:1883:2: '&'\n {\n before(grammarAccess.getBoolOperationAccess().getAmpersandKeyword_8_1_0()); \n match(input,33,FOLLOW_2); \n after(grammarAccess.getBoolOperationAccess().getAmpersandKeyword_8_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static int[] bwand(BinaryNumber bn1, BinaryNumber bn2) {\n\t\tif (bn1.getLength() !=bn2.getLength()) {\n\t\t\tSystem.out.println(\"can't be doin that. Make them the same length.\");\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tint[] and = new int[bn1.length];\n\t\tfor(int i = 0;i < bn1.length;i++) {\n\t\t\tif(bn1.data[i] + bn2.data[i] == 2) {\n\t\t\t\tand[i] = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tand[i] = 0;\n\t\t\t}\n\t\t}\n\t\treturn and;\n\t}", "public final void rule__VoidOperation__Group_6_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2421:1: ( ( '&' ) )\n // InternalBSQL2Java.g:2422:1: ( '&' )\n {\n // InternalBSQL2Java.g:2422:1: ( '&' )\n // InternalBSQL2Java.g:2423:2: '&'\n {\n before(grammarAccess.getVoidOperationAccess().getAmpersandKeyword_6_1_0()); \n match(input,33,FOLLOW_2); \n after(grammarAccess.getVoidOperationAccess().getAmpersandKeyword_6_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private static BitSet makeBitSet( int... args ) {\n\tBitSet result = new BitSet( MAX_OPCODE + 1 ) ;\n\tfor (int value : args )\n\t result.set( value ) ;\n\treturn result ;\n }", "@Override\n\tpublic void visit(BitwiseOr arg0) {\n\t\t\n\t}", "static boolean boolFrBit(int input){\n return input!=0;\n }", "public final void entryRuleAstExpressionBitand() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1547:1: ( ruleAstExpressionBitand EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1548:1: ruleAstExpressionBitand EOF\n {\n before(grammarAccess.getAstExpressionBitandRule()); \n pushFollow(FOLLOW_ruleAstExpressionBitand_in_entryRuleAstExpressionBitand3243);\n ruleAstExpressionBitand();\n\n state._fsp--;\n\n after(grammarAccess.getAstExpressionBitandRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstExpressionBitand3250); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final void ruleOpAnd() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:445:2: ( ( '&&' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:447:1: '&&'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n match(input,14,FOLLOW_14_in_ruleOpAnd886); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "int xnor(int num1, int num2)\n {\n return ~((num1 | num2) & ~(num1 & num2));\n }", "public static long getUnsignedInt(int x) {\n return x & 0x00000000ffffffffL;\n }", "public final void mAND() throws RecognitionException {\n try {\n int _type = AND;\n // /Users/benjamincoe/HackWars/C.g:217:5: ( '&&' )\n // /Users/benjamincoe/HackWars/C.g:217:7: '&&'\n {\n match(\"&&\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "int getBitAsInt(int index);", "public MType visit(AndExpression n, MType argu) {\n \tMType _ret = new MBoolean();\n \tn.f0.accept(this, argu);\n \tn.f1.accept(this, argu);\n \tn.f2.accept(this, argu);\n \treturn _ret;\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n Range range0 = Range.of((-32768L));\n Range range1 = Range.of((-32768L));\n long long0 = range0.getEnd();\n assertEquals((-32768L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertTrue(list0.isEmpty());\n }", "public static BinaryExpression andAlso(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "@Override\n\tpublic void visit(BitwiseOr arg0) {\n\n\t}", "public void setAnd(boolean and) {\n reqIsAnd = and;\n }", "public final void ruleAstExpressionBitand() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1559:2: ( ( ( rule__AstExpressionBitand__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1560:1: ( ( rule__AstExpressionBitand__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1560:1: ( ( rule__AstExpressionBitand__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1561:1: ( rule__AstExpressionBitand__Group__0 )\n {\n before(grammarAccess.getAstExpressionBitandAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1562:1: ( rule__AstExpressionBitand__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1562:2: rule__AstExpressionBitand__Group__0\n {\n pushFollow(FOLLOW_rule__AstExpressionBitand__Group__0_in_ruleAstExpressionBitand3276);\n rule__AstExpressionBitand__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionBitandAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void testAND2() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 226, \"&\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "private static void setBitAtGivenPositions(int pos1, int pos2) {\n\t\tlong temp1 = 1l << pos1;\n\t\tlong temp2 = 1l << pos2;\n\t\tlong result = temp1 | temp2;\n\t\tSystem.out.println(result);\n\t}", "public static final boolean m2217containsGab390E(ULongRange $this$contains, int value) {\n Intrinsics.checkParameterIsNotNull($this$contains, \"$this$contains\");\n return $this$contains.m2200containsVKZWuLQ(ULong.m1443constructorimpl(((long) value) & 4294967295L));\n }", "public Object visitLogicalAndExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a & (Long) b;\n }\n else {\n return parens(a) + \" && \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.andWith(b);\n \n return bdd;\n }\n }", "int bitRange(int num, int s, int n)\n {\n return (num >> s) & ~(-1 << n);\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "private void passAND() {\n\t\tif (currentIndex >= data.length || (data[currentIndex] != 'a' && data[currentIndex] != 'A')) {\n\t\t\tthrow new LexerException(\"Ulaz ne valja!\");\n\t\t}\n\t\tcurrentIndex++;\n\t\tif (currentIndex >= data.length || (data[currentIndex] != 'n' && data[currentIndex] != 'N')) {\n\t\t\tthrow new LexerException(\"Ulaz ne valja!\");\n\t\t}\n\t\tcurrentIndex++;\n\t\tif (currentIndex >= data.length || (data[currentIndex] != 'd' && data[currentIndex] != 'D')) {\n\t\t\tthrow new LexerException(\"Ulaz ne valja!\");\n\t\t}\n\t\tcurrentIndex++;\n\t}", "public final void mRULE_AND() throws RecognitionException {\n try {\n int _type = RULE_AND;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12791:10: ( '&' '&' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12791:12: '&' '&'\n {\n match('&'); \n match('&'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "IRequirement and(IRequirement requirement);", "public arm a(int paramInt1, int paramInt2)\r\n/* 18: */ {\r\n/* 19:32 */ return this.b[(paramInt1 & 0xF | (paramInt2 & 0xF) << 4)];\r\n/* 20: */ }", "Expression andExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = eqExpression();\r\n\t\twhile(isKind(OP_AND)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = eqExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "private static void checkOverflow(short value1, short value2) {\n \tif ((value1 > 0 && value2 > 0) && (value1 + value2 < 0)) {\n \t\toverflowFlag = true;\n \t} else if ((value1 < 0 && value2 < 0) && (value1 + value2 > 0)) {\n \t\toverflowFlag = true;\n \t} else {\n \t\toverflowFlag = false;\n \t}\n }", "public static final int signedToInt(short w) {\n \t\treturn (w & 0xffff);\n \t}", "void setBits(int... values);", "@Override\r\n\tpublic int getUnsignedShort(int pos) {\n\t\treturn getShort(pos) & 0x0FFFF;\r\n\t}", "public final void mT__185() throws RecognitionException {\n try {\n int _type = T__185;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:183:8: ( 'and' )\n // InternalMyDsl.g:183:10: 'and'\n {\n match(\"and\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final long getUInt(int index) {\r\n return bb.getInt(index) & 0xffff_ffffL;\r\n }", "public final void mT__63() throws RecognitionException {\n try {\n int _type = T__63;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalEsm.g:57:7: ( 'and' )\n // InternalEsm.g:57:9: 'and'\n {\n match(\"and\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "boolean bitSet(int p, int b) // check if int p bit b is 1\n {\n return ((p>>b) & 1)>0;\n }", "public String visit(AndExpression n, LLVMRedux argu) throws Exception {\n\n String arg1 = n.f0.accept(this, argu), arg2 = n.f2.accept(this, argu);\n u.println(u.getReg()+\" = and i1 \"+arg1+\", \"+arg2);\n return u.getLastReg();\n }", "boolean bts(int array[], int index)\r\n {\r\n int d = index / 32;\r\n int mask = 1 << (index & 31);\r\n boolean b = (array[d] & mask) != 0;\r\n array[d] |= mask;\r\n return b;\r\n }", "boolean contains(NetNode other) {\n\t\t\treturn mask >= other.mask && (this.address & (-1 << mask)) == (other.address & (-1 << mask));\n\t\t}", "public static final UIntRange m2227until5PvTz6A(short $this$until, short to) {\n if (Intrinsics.compare((int) to & UShort.MAX_VALUE, 0) <= 0) {\n return UIntRange.Companion.getEMPTY();\n }\n return new UIntRange(UInt.m1374constructorimpl($this$until & UShort.MAX_VALUE), UInt.m1374constructorimpl(UInt.m1374constructorimpl(65535 & to) - 1), (DefaultConstructorMarker) null);\n }", "private static int getMaskAsInt(int nrBits) {\n return 0xFFFFFFFF >>> (32 - nrBits);\n }", "@Override\n public BinaryType andBool(BoolType BoolType) {\n return TypeFactory.getBinaryType(BoolType.getValue() ? this.getValue() : \"0000000000000000\");\n }", "private long mask(int n) {\n\t\treturn 1L << n;\n\t}", "private static int toggle(int bitVector, int index) {\n\t\tif(index < 0)\n\t\t\treturn bitVector;\n\t\t\n\t\tint mask = 1 << index;\n\t\tif((bitVector & mask) == 0) {\n\t\t\tbitVector |= mask;\n\t\t}else {\n\t\t\tbitVector &= ~mask;\n\t\t}\n\t\t\n\t\treturn bitVector;\n\t}", "abstract boolean testBit(int index);", "static int toggleBit(int n){\n return n & (n-1);\n }", "public static boolean method_2687(int var0) {\r\n String[] var1 = class_752.method_4253();\r\n int var10000 = var0 & 8;\r\n if(var1 != null) {\r\n var10000 = var10000 != 0?1:0;\r\n }\r\n\r\n return (boolean)var10000;\r\n }", "public void\n\t registerRedundantSet(SoState state, int mask)\n\t {\n\t }", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "@Test\n public void testPredicateAnd() {\n Predicate<Integer> isEven = (x) -> (x % 2) == 0;\n Predicate<Integer> isDivSeven = (x) -> (x % 7) == 0;\n\n Predicate<Integer> evenOrDivSeven = isEven.and(isDivSeven);\n\n assertTrue(evenOrDivSeven.apply(14));\n assertFalse(evenOrDivSeven.apply(21));\n assertFalse(evenOrDivSeven.apply(8));\n assertFalse(evenOrDivSeven.apply(5));\n }", "public final void mAMPERSAND() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = AMPERSAND;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:429:10: ( '&' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:429:16: '&'\n\t\t\t{\n\t\t\tmatch('&'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "public final EObject entryRuleBitwiseAndExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleBitwiseAndExpression = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2859:2: (iv_ruleBitwiseAndExpression= ruleBitwiseAndExpression EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2860:2: iv_ruleBitwiseAndExpression= ruleBitwiseAndExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getBitwiseAndExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleBitwiseAndExpression_in_entryRuleBitwiseAndExpression6535);\r\n iv_ruleBitwiseAndExpression=ruleBitwiseAndExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleBitwiseAndExpression; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleBitwiseAndExpression6545); if (state.failed) return current;\r\n\r\n }\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 final void rule__AstExpressionBitxor__RightAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25209:1: ( ( ruleAstExpressionBitand ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25210:1: ( ruleAstExpressionBitand )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25210:1: ( ruleAstExpressionBitand )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25211:1: ruleAstExpressionBitand\n {\n before(grammarAccess.getAstExpressionBitxorAccess().getRightAstExpressionBitandParserRuleCall_1_2_0()); \n pushFollow(FOLLOW_ruleAstExpressionBitand_in_rule__AstExpressionBitxor__RightAssignment_1_250643);\n ruleAstExpressionBitand();\n\n state._fsp--;\n\n after(grammarAccess.getAstExpressionBitxorAccess().getRightAstExpressionBitandParserRuleCall_1_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleOpAnd() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:528:2: ( ( '&&' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:529:1: ( '&&' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:529:1: ( '&&' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:530:1: '&&'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n match(input,17,FOLLOW_17_in_ruleOpAnd1066); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }" ]
[ "0.5998858", "0.5945765", "0.5787553", "0.57446223", "0.56612134", "0.5525739", "0.54657435", "0.5426444", "0.53897303", "0.53764325", "0.529936", "0.524087", "0.5201214", "0.51683426", "0.5150722", "0.5103066", "0.5092748", "0.509077", "0.5037796", "0.502441", "0.5018122", "0.5000155", "0.49996778", "0.4962035", "0.4943713", "0.49395725", "0.4931964", "0.49285764", "0.49159417", "0.49097824", "0.48742968", "0.4866987", "0.48528504", "0.48282063", "0.4821778", "0.48176697", "0.47823653", "0.4777229", "0.4772059", "0.47696263", "0.4742333", "0.47338232", "0.47042146", "0.46841317", "0.46821186", "0.46762285", "0.466236", "0.46473554", "0.46355298", "0.46037054", "0.45880383", "0.45847714", "0.4578989", "0.45751864", "0.45694047", "0.45642614", "0.4563398", "0.45612782", "0.45402724", "0.45286298", "0.45248732", "0.45210487", "0.45154592", "0.4510575", "0.45039177", "0.45017353", "0.44778487", "0.44773147", "0.44724652", "0.44593674", "0.44549766", "0.44487727", "0.44417202", "0.44357917", "0.44305336", "0.44280115", "0.44145197", "0.44016638", "0.440148", "0.43926522", "0.43844068", "0.43833768", "0.43706074", "0.4370429", "0.43616325", "0.43581042", "0.43565267", "0.43522856", "0.43401033", "0.43326986", "0.43313614", "0.4330937", "0.432721", "0.43177712", "0.43168506", "0.4314871", "0.4310492", "0.43077013", "0.43031114", "0.43016028", "0.4299003" ]
0.0
-1
Get the connected FTDI devices. It will not contain opened devices.
public static List<FTDevice> getDevices() throws FTD2XXException { return getDevices(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "public Cursor getDevices(){\n String tabla = devicesContract.deviceEntry.tableName,\n selection = null,\n groupBy = null,\n having = null,\n orderBy = null;\n String[] columnas = null, selectionArgs = null;\n Cursor d = getDevice(tabla,columnas,selection,selectionArgs,groupBy,having,orderBy);\n return d;\n }", "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 void getDevicesList()\n {\n MidiDevice.Info[]\taInfos = MidiSystem.getMidiDeviceInfo();\n\t\tfor (int i = 0; i < aInfos.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMidiDevice\tdevice = MidiSystem.getMidiDevice(aInfos[i]);\n\t\t\t\tboolean\t\tbAllowsInput = (device.getMaxTransmitters() != 0);\n\t\t\t\tboolean\t\tbAllowsOutput = (device.getMaxReceivers() != 0);\n\t\t\t\tif (bAllowsInput || bAllowsOutput)\n\t\t\t\t{\n\n\t\t\t\t\tSystem.out.println(i + \"\" + \" \"\n\t\t\t\t\t\t+ (bAllowsInput?\"IN \":\" \")\n\t\t\t\t\t\t+ (bAllowsOutput?\"OUT \":\" \")\n\t\t\t\t\t\t+ aInfos[i].getName() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVendor() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVersion() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getDescription());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\" + i + \" \" + aInfos[i].getName());\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (MidiUnavailableException e)\n\t\t\t{\n\t\t\t\t// device is obviously not available...\n\t\t\t\t// out(e);\n\t\t\t}\n\t\t}\n\t\tif (aInfos.length == 0)\n\t\t{\n\t\t\tSystem.out.println(\"[No devices available]\");\n\t\t}\n\t\t//System.exit(0);\n }", "public List getDevices() {\n return devices;\n }", "public IDevice[] getDevices() { return devices; }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "public Peripheral[] getDevices() {\r\n\treturn (Peripheral[]) this.deviceList.toArray(new Peripheral[0]);\r\n }", "public List<Device> getRunningDevices();", "public static ArrayList<File> findDevices() {\n return findDevices(\"/dev/\");\n }", "public List<MediaDevice> getMediaDevices() {\n\n List<MediaDevice> mediaDevices = new ArrayList<>();\n\n for (MediaDevice d : this.devices) {\n if (d.hasMediaInterface() && d.hasInstance()) {\n mediaDevices.add(d);\n }\n }\n\n return mediaDevices;\n }", "public List<String> getConnectedDevices() {\n if (services.size() == 0) {\n return new ArrayList<String>();\n }\n\n HashSet<String> toRet = new HashSet<String>();\n\n for (String s : services.keySet()) {\n ConnectionService service = services.get(s);\n\n if (service.getState() == ConnectionConstants.STATE_CONNECTED) {\n toRet.add(s);\n }\n }\n\n return new ArrayList<String>(toRet);\n }", "List<DeviceDetails> getDevices();", "public static List<FTDevice> getDevices(boolean isIncludeOpenedDevices) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n // device is occupied?\n if (isIncludeOpenedDevices) {\n devs.add(device);\n }\n else {\n if ((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) {\n devs.add(device);\n }\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "public Collection<String> listDevices();", "protected List<PCIDevice> probeDevices() {\n final ArrayList<PCIDevice> result = new ArrayList<PCIDevice>();\n rootBus.probeDevices(result);\n return result;\n }", "public final TestDevice[] getDeviceList() {\n return mDevices.toArray(new TestDevice[mDevices.size()]);\n }", "public Set<BluetoothDevice> getPairedDevicesList(){\n if(isBluetoothSupported()){\n if(!baBTAdapter.isEnabled()){\n turnOnBluetooth();\n }\n }\n else{\n return null;\n }\n\n return baBTAdapter.getBondedDevices();\n }", "public List<PushDevice> listDevices() {\n checkUsbLibState();\n\n List<PushDevice> devices = new ArrayList<>();\n\n // Read the USB device list\n DeviceList list = new DeviceList();\n int result = LibUsb.getDeviceList(null, list);\n if (result < 0) {\n throw new LibUsbException(\"Unable to get device list\", result);\n }\n\n try {\n // Iterate over all devices and scan for the right one\n for (Device device : list) {\n DeviceDescriptor descriptor = new DeviceDescriptor();\n result = LibUsb.getDeviceDescriptor(device, descriptor);\n if (result != LibUsb.SUCCESS) {\n throw new LibUsbException(\"Unable to read device descriptor\", result);\n }\n if (descriptor.bDeviceClass() == LibUsb.CLASS_PER_INTERFACE &&\n descriptor.idVendor() == VENDOR_ID && descriptor.idProduct() == PRODUCT_ID) {\n\n devices.add(new PushDevice(device));\n }\n }\n } finally {\n // Ensure the allocated device list is freed\n LibUsb.freeDeviceList(list, true);\n }\n\n return devices;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getAllDevices() {\n\n Query query = em.createQuery(\"SELECT d FROM Device d\");\n List<Device> devices = new ArrayList<Device>();\n devices = query.getResultList();\n return devices;\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 }", "public static List<FTDevice> getDevicesByDeviceType(DeviceType deviceType) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && device.devType.equals(deviceType)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "@Override\n public List<CECDevice> scanDevices() {\n sendCommand(\"scan\");\n return CECClientParser.parseScanResult(waitForOutputLine(\"===================\"));\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter, Context context) {\n return this.serviceClient.getAllDevices(filter, context);\n }", "private void getPairedDevices() {\n\t\tdevicesArray = btAdapter.getBondedDevices();\n\t\tif(devicesArray.size()>0){\n\t\t\tfor(BluetoothDevice device:devicesArray){\n\t\t\t\tpairedDevices.add(device.getName());\n\t\t\t}\n\t\t}\n\t}", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }", "public static List<String> getDeviceList() {\n\t\tList<String> str = CommandRunner.exec(CMD_GET_DEVICE_ID);\n\t\tList<String> ids = new ArrayList<String>();\n\t\tfor (int i = 1; i < str.size(); i++) {\n\t\t\tString id = str.get(i).split(\" |\\t\")[0].trim();\n\t\t\tif (!id.isEmpty()) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\t\treturn ids;\n\t}", "public List<Device> getAllDevices(DeviceType type) {\n LOG.info(\"Starting get all OpenCL device by platform \" + platform + \".\");\n int[] numDevicesArray = new int[1];\n long deviceType = type.toCLType();\n CL.clGetDeviceIDs(platform, deviceType, 0, null, numDevicesArray);\n int numDevices = numDevicesArray[0];\n LOG.info(\"Found \" + numDevices + \" OpenCL devices.\");\n cl_device_id[] allRawDevices = new cl_device_id[numDevices];\n CL.clGetDeviceIDs(platform, deviceType, numDevices, allRawDevices, null);\n return Arrays.stream(allRawDevices)\n .filter(Objects::nonNull)\n .map(rawDevice -> new Device(rawDevice, this))\n .collect(Collectors.toList());\n }", "public Collection<BluetoothDevice> getUniqueConnectedDevices() {\n ArrayList<BluetoothDevice> result;\n synchronized (mLock) {\n result = new ArrayList<>(mHfpDevicesByAddress.values());\n }\n Set<Long> seenHiSyncIds = new LinkedHashSet<>();\n // Add the left-most active device to the seen list so that we match up with the list\n // generated in BluetoothRouteManager.\n if (mBluetoothHearingAidService != null) {\n for (BluetoothDevice device : mBluetoothHearingAidService.getActiveDevices()) {\n if (device != null) {\n result.add(device);\n seenHiSyncIds.add(mHearingAidDeviceSyncIds.getOrDefault(device, -1L));\n break;\n }\n }\n }\n synchronized (mLock) {\n for (BluetoothDevice d : mHearingAidDevicesByAddress.values()) {\n long hiSyncId = mHearingAidDeviceSyncIds.getOrDefault(d, -1L);\n if (seenHiSyncIds.contains(hiSyncId)) {\n continue;\n }\n result.add(d);\n seenHiSyncIds.add(hiSyncId);\n }\n }\n return Collections.unmodifiableCollection(result);\n }", "public List<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n }\n\n String devices_result = this.collectResultFromProcess(proc);\n String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\n\n if (device_id_list.length <= 1) {\n System.out.println(\"No Devices Attached.\");\n return ret_device_id_list;\n }\n\n /**\n * collect the online devices\n */\n String str_device_id = null;\n String device = null;\n String[] str_device_id_parts = null;\n // ignore the first line which is \"List of devices attached\"\n for (int i = 1; i < device_id_list.length; i++) {\n str_device_id = device_id_list[i];\n str_device_id_parts = str_device_id.split(\"\\\\s+\");\n // add the online device\n if (str_device_id_parts[1].equals(\"device\")) {\n device = str_device_id_parts[0];\n ret_device_id_list.add(device);\n System.out.println(device);\n }\n }\n\n return ret_device_id_list;\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}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();", "public static List<FTDevice> getDevicesByDescription(String description) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && description.equals(device.devDescription)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public Integer getDevices() {\r\n return devices;\r\n }", "public List<String> execAdbDevices()\r\n\t{\r\n\t\tList<String> ret_device_id_list = new ArrayList<>();\r\n\t\t\r\n\t\tProcess proc = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tproc = new ProcessBuilder(this.adb_directory, \"devices\").start();\r\n\t\t\tproc.waitFor();\r\n\t\t} catch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t} catch (InterruptedException ire)\r\n\t\t{\r\n\t\t\tire.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString devices_result = this.collectResultFromProcess(proc);\r\n\t String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\r\n\r\n\t if (device_id_list.length <= 1)\r\n\t {\r\n\t \tSystem.out.println(\"No Devices Attached.\");\r\n\t \treturn ret_device_id_list;\r\n\t }\r\n\t \r\n\t /**\r\n\t * collect the online devices \r\n\t */\r\n\t String str_device_id = null;\r\n\t String[] str_device_id_parts = null;\r\n\t // ignore the first line which is \"List of devices attached\"\r\n\t for (int i = 1; i < device_id_list.length; i++)\r\n\t\t{\r\n\t\t\tstr_device_id = device_id_list[i];\r\n\t\t\tstr_device_id_parts = str_device_id.split(\"\\\\s+\");\r\n\t\t\t// add the online device\r\n\t\t\tif (str_device_id_parts[1].equals(\"device\"))\r\n\t\t\t\tret_device_id_list.add(str_device_id_parts[0]);\r\n\t\t}\r\n\t \r\n\t return ret_device_id_list;\r\n\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter) {\n return this.serviceClient.getAllDevices(filter);\n }", "private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}", "public static BLDevice[] discoverDevices(int timeout) throws IOException {\r\n return discoverDevices(InetAddress.getLocalHost(), 0, timeout);\r\n }", "Collection<? extends ReflexDevice> getDevices() {\n return processors.values();\n }", "public static List<FTDevice> getDevicesBySerialNumber(String serialNumber) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.getFlag() & FTD2XX.FT_FLAGS_OPENED) == 0) && serialNumber.equals(device.devSerialNumber)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public List<Device> findAll() throws Exception;", "public org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public List<Device> getUserDevices(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n List <Device> devices = new ArrayList<>();\n try {\n tx = session.beginTransaction();\n \n User user = this.getUser(id);\n\n // Add restriction to get user with username\n Criterion deviceCr = Restrictions.eq(\"userId\", user);\n Criteria cr = session.createCriteria(Device.class);\n cr.add(deviceCr);\n devices = cr.list();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return devices;\n }", "public static ArrayList<MTPDeviceInfo> getDeviceModels() {\r\n\t\tArrayList<MTPDeviceInfo> models = new ArrayList<>();\r\n\r\n\t\tPortableDeviceManager manager = new PortableDeviceManager();\r\n\t\tmanager.refreshDeviceList();\r\n\r\n\t\tfor (PortableDevice device : manager.getDevices()) {\r\n\t\t\tdevice.open();\r\n\t\t\tmodels.add(new MTPDeviceInfo(device.getModel(), device.getSerialNumber()));\r\n\t\t\tdevice.close();\r\n\t\t}\r\n\r\n\t\treturn models;\r\n\t}", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public abstract GraphicsDevice[] getScreenDevices();", "public String[] getSoundDevicesList();", "public ArrayList getDeviceInfo();", "public DeviceUserAuthorization[] getDeviceList() {\n return deviceList;\n }", "public List<ISymbianSDK> getTargetEmulatorDevices() {\n\t\tISDKManager manager = SDKCorePlugin.getSDKManager();\n\t\treturn manager.getSDKList();\n\t}", "public void listDevices(final BluetoothAdapter bluetoothAdapter){\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n ArrayList pairedDeviceList = new ArrayList();\n String address = null;\n\n if (pairedDevices.size() > 0) {\n int i = 0;\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName().trim();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n if (deviceName.equals(DEVICE_NAME)){\n address = device.getAddress().trim();\n System.out.println(address +\"\\n\");\n }\n pairedDeviceList.add(\"Device Name: \" + deviceName + \" Device MAC Address: \" + deviceHardwareAddress);\n }\n\n System.out.println(pairedDeviceList.get(0) + \"\\n\");\n\n final String finalAddress = address;\n AsyncTask.execute(new Runnable(){\n @Override\n public void run(){\n bluetoothDevice = bluetoothAdapter.getRemoteDevice(finalAddress);\n BLEDevice = new BluetoothLeService(bluetoothDevice, quantifenUUID);\n BLEDevice.connect(BluetoothActivity.this, testUUID);\n }\n });\n\n\n }\n }", "public TestDevice[] allocateDevices(final int num) throws DeviceNotAvailableException {\n \n ArrayList<TestDevice> deviceList;\n TestDevice td;\n int index = 0;\n \n if (num < 0) {\n throw new IllegalArgumentException();\n }\n if (num > mDevices.size()) {\n throw new DeviceNotAvailableException(\"The number of connected device(\"\n + mDevices.size() + \" is less than the specified number(\"\n + num + \"). Please plug in enough devices\");\n }\n deviceList = new ArrayList<TestDevice>();\n \n while (index < mDevices.size() && deviceList.size() != num) {\n td = mDevices.get(index);\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n deviceList.add(td);\n }\n index++;\n }\n if (deviceList.size() != num) {\n throw new DeviceNotAvailableException(\"Can't get the specified number(\"\n + num + \") of idle device(s).\");\n }\n return deviceList.toArray(new TestDevice[num]);\n }", "private List<Device> getDeviceCandidates(Node node, State state) {\n\t\tList<Device> candidates = new ArrayList<Device>();\n\t\tfor (Device device : Basic_ILS.devices) {\n\t\t\tif (state.deviceConstraint(node, device)\n\t\t\t\t\t&& state.colocationConstraint(node, device)\n\t\t\t\t\t&& state.memoryConstraint(node, device)) {\n\t\t\t\tcandidates.add(device);\n\t\t\t}\n\t\t}\n\t\treturn candidates;\n\t}", "public void discoverDevices(){\r\n \t// If we're already discovering, stop it\r\n if (mBtAdapter.isDiscovering()) {\r\n mBtAdapter.cancelDiscovery();\r\n }\r\n \r\n Toast.makeText(this, \"Listining for paired devices.\", Toast.LENGTH_LONG).show();\r\n \tmBtAdapter.startDiscovery(); \r\n }", "public org.hl7.fhir.ResourceReference[] getDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEVICE$12, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public String[] getVideoDevicesList();", "public void getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> responseObserver);", "public Multimap<String, OOCSIDevice> devicesByLocation() {\n\t\tpurgeStaleClients();\n\n\t\tMultimap<String, OOCSIDevice> locationsMappedDevices = MultimapBuilder.hashKeys().linkedListValues().build();\n\t\tclients.values().stream().forEach(\n\t\t od -> od.locations.entrySet().stream().forEach(loc -> locationsMappedDevices.put(loc.getKey(), od)));\n\t\treturn locationsMappedDevices;\n\t}", "@Path(\"device\")\n DeviceAPI devices();", "private native void nGetDevices(Vector deviceList);", "@Override\r\n\tpublic Device devGetDevice(boolean allProperties) throws RTException {\n\t\treturn null;\r\n\t}", "private CharSequence[] getSelections() {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n if (null != btAdapter) {\n int idx = 0;\n Set<BluetoothDevice> setDevices = btAdapter.getBondedDevices();\n CharSequence[] entries = new CharSequence[setDevices.size() + 1];\n entries[idx++] = NONE;\n\n for (BluetoothDevice btd : setDevices) {\n entries[idx++] = btd.getName();\n }\n\n // tell bluetooth to stop scanning. it's a power issue\n btAdapter.cancelDiscovery();\n return entries;\n }\n\n CharSequence[] entries = new CharSequence[1];\n entries[0] = NONE;\n return entries;\n }", "List<PCDevice> getAllPC();", "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "private void discoverDevicesAndServices( String uuid ) throws BluetoothStateException\n {\n discoverer.discoverDevices();\n discoverer.discoverServices( uuid );\n }", "public static List<IOTAddress> discoverIOTDevicesSyn() {\n\n\t\tAbsTaskSyn<List<IOTAddress>> udpSocketTask = new UDPSocketTask(\n\t\t\t\t\"connect task\", -1, true, broadcastAddress, data);\n\n\t\tmThreadPool.executeSyn(udpSocketTask, CONSTANTS_DYNAMIC.UDP_BROADCAST_TIMEOUT_DYNAMIC, TimeoutUnit);\n\n\t\tList<IOTAddress>responseList = udpSocketTask.getResult();\n\n\t\treturn responseList;\n\t}", "public static VkPhysicalDevice[] enumeratePhysicalDevices(VkInstance instance)\n throws VulkanException {\n IntBuffer devicesCount = memAllocInt(1);\n int err = vkEnumeratePhysicalDevices(instance, devicesCount, null);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n int devCount = devicesCount.get(0);\n PointerBuffer pDevices = memAllocPointer(devCount);\n\n err = vkEnumeratePhysicalDevices(instance, devicesCount, pDevices);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n VkPhysicalDevice[] devices = new VkPhysicalDevice[devCount];\n for (int i = 0; i < devCount; i++) {\n devices[i] = new VkPhysicalDevice(pDevices.get(i), instance);\n }\n\n memFree(devicesCount);\n memFree(pDevices);\n\n return devices;\n }", "@Override\n public Object getData() {\n return devices;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses() {\n return this.serviceClient.getAllDeviceClasses();\n }", "@Override\n\tpublic TransferData getDevices(int pageSize, int pageIndex,\n\t\t\tboolean isManaged) {\n\t\tTransferData data = new TransferData();\n\t\tDBObject query = new BasicDBObject();\n\n\t\tquery.put(\"managed\", isManaged);\n\n\t\tList<InventoryDevice> devices = getMongoDao().findObjects(\n\t\t\t\tConstant.TABLE_InvDev, query, InventoryDevice.class).readAll();\n\t\tif (devices != null && !devices.isEmpty()) {\n\t\t\tint size = devices.size();\n\t\t\tint start = (pageIndex - 1) * pageSize;\n\n\t\t\tdata.setPageCount(CoreSvrUtil.getPageCount(size, pageSize));\n\t\t\tdata.setListData(devices.subList(start,\n\t\t\t\t\tstart + pageSize < size ? start + pageSize : size));\n\t\t}\n\t\treturn data;\n\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses(Context context) {\n return this.serviceClient.getAllDeviceClasses(context);\n }", "public void getDevices(final Subscriber<List<Device>> devicesSubscriber) {\n if (smartThingsService==null) {\n devicesSubscriber.onError(new Throwable(\"Please login to SmartThings before trying to get devices\"));\n return;\n }\n Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() {\n @Override\n public List<Device> call(List<Device> switches, List<Device> locks) {\n List<Device> devices = new ArrayList<>();\n devices.addAll(switches);\n devices.addAll(locks);\n return devices;\n }\n }).doOnError(new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n devicesSubscriber.onError(throwable);\n }\n }).doOnCompleted(new Action0() {\n @Override\n public void call() {\n //\n }\n }).subscribe(new Action1<List<Device>>() {\n @Override\n public void call(List<Device> devices) {\n devicesSubscriber.onNext(devices);\n }\n });\n }", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "@RequiresBluetoothConnectPermission\n @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)\n public List<DeviceGroup> getDiscoveredGroups() {\n return getDiscoveredGroups(false);\n }", "public int getConnectedDeviceCount() {\n return getConnectedDevices().size();\n }", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "@Override\n public ListWirelessDevicesResult listWirelessDevices(ListWirelessDevicesRequest request) {\n request = beforeClientExecution(request);\n return executeListWirelessDevices(request);\n }", "public void checkDevices() throws TNotFoundEx{\n\t\tString command = \"adb devices -l\";\n\t\tCommando commando = new Commando();\n\t\tString op = commando.executeCommand(command);\n\t\t\n\t\tOtherUtil oU = new OtherUtil();\n\t\tArrayList<String> devices = oU.getRegexFromString(op, \"(model:.*?device:.+$?)\");\n\t\tint eligDevices = devices.size();\n\t\t\n\t\tif (eligDevices>1)\n\t\t\tthrow new TNotFoundEx(\"ERROR: 2 or more Android devices are connected to the host, please connect only one Android device.\");\n\t\tif (eligDevices == 0)\n\t\t\tthrow new TNotFoundEx(\"ERROR: No Android devices detected by the host. Execute adb devices -l to check the connected devices\");\n\t\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getUserDevices(int userId) {\n Query query = em.createQuery(\"SELECT u FROM Device u where user_id=\"+ userId);\n List<Device> users = new ArrayList<Device>();\n users = query.getResultList();\n return users;\n }", "private void getDevice(){\n\t\tdialog.setContentView(R.layout.device_list_popup);\n\t\tdialog.setCancelable(true);\n\t\tdialog.setTitle(\"Paired Bluetooth Devices\");\n\t\tdialog.show();\n\t\tProgressBar tempSpinner = (ProgressBar)dialog.findViewById(R.id.progressBar);\n\t\ttempSpinner.setVisibility(View.INVISIBLE); //Hide the progress bar while we aren't connecting\n\n\t\tListView lv = (ListView) dialog.findViewById(R.id.device_list_display);\n\t\tlv.setAdapter(new ArrayAdapter<String> (this, R.layout.device_list_popup));\n\n\t\tlv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\tpublic void onItemClick(AdapterView<?> arg, View view, int position, long id) {\n\t\t\t\tString address = (String) ((TextView) view).getText();\n\t\t\t\tfor (String temp : address.split(\"\\n\")) {\n\t\t\t\t\taddress = temp; //Only get address, discard name\n\t\t\t\t}\n\t\t\t\tBluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address);\n\t\t\t\tnew ConnectTask().execute(device);\n\t\t\t}\n\t\t});\n\t}", "public Object[] getAllChannels() {\n\t\tObject[] res = new Object[getChannelCount()];\n\t\tfor (int ch = 0; ch < getChannelCount(); ch++) {\n\t\t\tres[ch] = getChannel(ch);\n\t\t}\n\t\treturn res;\n\t}", "public BluetoothDevice getDevice() {\n return this.device;\n }", "public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}", "public T scanAllDevices(DeviceType dType) {\n for (String devLabel : Globals.core().getLoadedDevicesOfType(dType)) {\n T device = getAutoInstance(devLabel);\n if (device != null) {\n return device;\n }\n }\n Globals.mm().logs().logMessage(\"Autofinder found no devices.\");\n return null; //Nothing was identified.\n }", "Reference getDevice();", "public Map<String, Set<String>> getBufferedDeviceNamesByType();", "public Collection<SendenDevice> getClientsConnected() {\n return clientsConnected.values();\n }", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "public void displayPairedDevices() {\n\t\tBluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n\t\t\t\t.getDefaultAdapter();\n\t\tSet<BluetoothDevice> bondedDevices = mBluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\n\t\tList<String> s = new ArrayList<String>();\n\t\tpairedDevices = new ArrayList<BluetoothDevice>();\n\t\tfor (BluetoothDevice bt : bondedDevices) {\n\t\t\ts.add(bt.getName());\n\t\t\tpairedDevices.add(bt);\n\t\t}\n\t\tListView List = (ListView) findViewById(R.id.paired_devices);\n\n\t\tList.setAdapter(new ArrayAdapter<String>(this, R.layout.device_row, s));\n\t}", "public DeviceLocator getDeviceLocator();", "@Nullable\n public List<BluetoothGattService> getServices() {\n BleMultiConnector bleMultiConnector = this.bleMultiConnector;\n if (bleMultiConnector == null) {\n return null;\n }\n if (address == null) {\n return null;\n }\n return bleMultiConnector.getServices(address);\n }", "public ArrayList<String> getConnectedUsers() {\r\n\t\tArrayList<String> connectedUsers = new ArrayList<>();\r\n\t\tString message=\"107\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\t//connectedUsers.add(\"Default\");\r\n\t\t\r\n\t\treturn connectedUsers;\r\n\t}", "public static ArrayList<Device> getDevices (JSONArray jsonArray){\n ArrayList<Device> devices = new ArrayList<Device>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n JSONObject o = jsonArray.getJSONObject(i);\n Device d = new Device(o.getString(Utility.DeviceName), o.getString(Utility.Technology), o.getBoolean(Utility.AlwaysOn));\n\n /* Servs */\n JSONArray servsJson = o.getJSONArray(Utility.Services);\n for (int j = 0; j < servsJson.length(); j++) {\n DeviceService ds = new DeviceService(servsJson.getJSONObject(j).getString(Utility.ServiceName), servsJson.getJSONObject(j).getString(Utility.ServiceType));\n ds.assignToDevice(d);\n d.addService(ds);\n\n JSONArray coms = servsJson.getJSONObject(j).getJSONArray(Utility.Commands);\n for (int z = 0; z < coms.length(); z++) {\n try {\n ds.addCommand(new Command(coms.getJSONObject(z).getString(Utility.CommandName),\n coms.getJSONObject(z).getString(Utility.CommandType)));\n }\n catch (JSONException e) {\n Log.w(\"Command\", \"Error adding command\");\n }\n }\n }\n\n\n\n devices.add(d);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n return devices;\n }", "List<DeviceInfo> getDevicesInfo(List<DeviceIdentifier> deviceIdentifiers) throws DeviceDetailsMgtException;", "public void initDevices() {\n for (Device device: deviceList) {\n device.init(getCpu().getTime());\n }\n }", "public cwterm.service.rigctl.xsd.Channel[] getChannelList() {\n return localChannelList;\n }" ]
[ "0.72263575", "0.72055846", "0.7169115", "0.7148732", "0.71234417", "0.71117556", "0.70702356", "0.70459956", "0.70381206", "0.7034636", "0.69801295", "0.69342947", "0.6872874", "0.684497", "0.6842467", "0.6838136", "0.68370724", "0.68146825", "0.6795203", "0.67683303", "0.6748582", "0.6712098", "0.66985095", "0.6679681", "0.6645397", "0.649755", "0.64352196", "0.6355925", "0.63500684", "0.6340348", "0.6336823", "0.6263331", "0.6261622", "0.62572104", "0.6248869", "0.62446266", "0.62036765", "0.62032795", "0.6172075", "0.6168006", "0.61184096", "0.61101955", "0.6099358", "0.6094198", "0.60809606", "0.6072351", "0.6033442", "0.6016514", "0.6004055", "0.5985826", "0.59698105", "0.59103036", "0.5895015", "0.5863084", "0.58587635", "0.58294564", "0.5817917", "0.57972044", "0.57146055", "0.5709629", "0.5680449", "0.5654531", "0.5646515", "0.5632481", "0.56207526", "0.5599465", "0.55928695", "0.55891937", "0.55841285", "0.55630374", "0.5482396", "0.54642886", "0.5462863", "0.5423859", "0.5413273", "0.5408409", "0.5404452", "0.5398258", "0.539786", "0.5387732", "0.5369856", "0.53681266", "0.5364293", "0.5341586", "0.5317529", "0.5307824", "0.52883863", "0.52880824", "0.5280753", "0.52543646", "0.52388644", "0.5225477", "0.5207187", "0.5205919", "0.5203866", "0.5181416", "0.5178586", "0.5175968", "0.5174175", "0.5152521" ]
0.8099461
0
Get the connected FTDI devices.
public static List<FTDevice> getDevices(boolean isIncludeOpenedDevices) throws FTD2XXException { IntByReference devNum = new IntByReference(); ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum)); ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue()); for (int i = 0; i < devNum.getValue(); i++) { FTDevice device = getXthDevice(i); // device is occupied? if (isIncludeOpenedDevices) { devs.add(device); } else { if ((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) { devs.add(device); } } } LOGGER.info("Found devs: {} (All:{})", devs.size(), devNum.getValue()); return devs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public static void getDevicesList()\n {\n MidiDevice.Info[]\taInfos = MidiSystem.getMidiDeviceInfo();\n\t\tfor (int i = 0; i < aInfos.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMidiDevice\tdevice = MidiSystem.getMidiDevice(aInfos[i]);\n\t\t\t\tboolean\t\tbAllowsInput = (device.getMaxTransmitters() != 0);\n\t\t\t\tboolean\t\tbAllowsOutput = (device.getMaxReceivers() != 0);\n\t\t\t\tif (bAllowsInput || bAllowsOutput)\n\t\t\t\t{\n\n\t\t\t\t\tSystem.out.println(i + \"\" + \" \"\n\t\t\t\t\t\t+ (bAllowsInput?\"IN \":\" \")\n\t\t\t\t\t\t+ (bAllowsOutput?\"OUT \":\" \")\n\t\t\t\t\t\t+ aInfos[i].getName() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVendor() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVersion() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getDescription());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\" + i + \" \" + aInfos[i].getName());\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (MidiUnavailableException e)\n\t\t\t{\n\t\t\t\t// device is obviously not available...\n\t\t\t\t// out(e);\n\t\t\t}\n\t\t}\n\t\tif (aInfos.length == 0)\n\t\t{\n\t\t\tSystem.out.println(\"[No devices available]\");\n\t\t}\n\t\t//System.exit(0);\n }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "public List getDevices() {\n return devices;\n }", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "public Cursor getDevices(){\n String tabla = devicesContract.deviceEntry.tableName,\n selection = null,\n groupBy = null,\n having = null,\n orderBy = null;\n String[] columnas = null, selectionArgs = null;\n Cursor d = getDevice(tabla,columnas,selection,selectionArgs,groupBy,having,orderBy);\n return d;\n }", "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 IDevice[] getDevices() { return devices; }", "public Collection<String> listDevices();", "List<DeviceDetails> getDevices();", "public Peripheral[] getDevices() {\r\n\treturn (Peripheral[]) this.deviceList.toArray(new Peripheral[0]);\r\n }", "public static ArrayList<File> findDevices() {\n return findDevices(\"/dev/\");\n }", "public List<Device> getRunningDevices();", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "public final TestDevice[] getDeviceList() {\n return mDevices.toArray(new TestDevice[mDevices.size()]);\n }", "protected List<PCIDevice> probeDevices() {\n final ArrayList<PCIDevice> result = new ArrayList<PCIDevice>();\n rootBus.probeDevices(result);\n return result;\n }", "public List<String> getConnectedDevices() {\n if (services.size() == 0) {\n return new ArrayList<String>();\n }\n\n HashSet<String> toRet = new HashSet<String>();\n\n for (String s : services.keySet()) {\n ConnectionService service = services.get(s);\n\n if (service.getState() == ConnectionConstants.STATE_CONNECTED) {\n toRet.add(s);\n }\n }\n\n return new ArrayList<String>(toRet);\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 }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getAllDevices() {\n\n Query query = em.createQuery(\"SELECT d FROM Device d\");\n List<Device> devices = new ArrayList<Device>();\n devices = query.getResultList();\n return devices;\n }", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "public List<MediaDevice> getMediaDevices() {\n\n List<MediaDevice> mediaDevices = new ArrayList<>();\n\n for (MediaDevice d : this.devices) {\n if (d.hasMediaInterface() && d.hasInstance()) {\n mediaDevices.add(d);\n }\n }\n\n return mediaDevices;\n }", "public Set<BluetoothDevice> getPairedDevicesList(){\n if(isBluetoothSupported()){\n if(!baBTAdapter.isEnabled()){\n turnOnBluetooth();\n }\n }\n else{\n return null;\n }\n\n return baBTAdapter.getBondedDevices();\n }", "public static List<FTDevice> getDevicesByDeviceType(DeviceType deviceType) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && device.devType.equals(deviceType)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public List<PushDevice> listDevices() {\n checkUsbLibState();\n\n List<PushDevice> devices = new ArrayList<>();\n\n // Read the USB device list\n DeviceList list = new DeviceList();\n int result = LibUsb.getDeviceList(null, list);\n if (result < 0) {\n throw new LibUsbException(\"Unable to get device list\", result);\n }\n\n try {\n // Iterate over all devices and scan for the right one\n for (Device device : list) {\n DeviceDescriptor descriptor = new DeviceDescriptor();\n result = LibUsb.getDeviceDescriptor(device, descriptor);\n if (result != LibUsb.SUCCESS) {\n throw new LibUsbException(\"Unable to read device descriptor\", result);\n }\n if (descriptor.bDeviceClass() == LibUsb.CLASS_PER_INTERFACE &&\n descriptor.idVendor() == VENDOR_ID && descriptor.idProduct() == PRODUCT_ID) {\n\n devices.add(new PushDevice(device));\n }\n }\n } finally {\n // Ensure the allocated device list is freed\n LibUsb.freeDeviceList(list, true);\n }\n\n return devices;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter, Context context) {\n return this.serviceClient.getAllDevices(filter, context);\n }", "@Override\n public List<CECDevice> scanDevices() {\n sendCommand(\"scan\");\n return CECClientParser.parseScanResult(waitForOutputLine(\"===================\"));\n }", "private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }", "public static List<String> getDeviceList() {\n\t\tList<String> str = CommandRunner.exec(CMD_GET_DEVICE_ID);\n\t\tList<String> ids = new ArrayList<String>();\n\t\tfor (int i = 1; i < str.size(); i++) {\n\t\t\tString id = str.get(i).split(\" |\\t\")[0].trim();\n\t\t\tif (!id.isEmpty()) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\t\treturn ids;\n\t}", "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<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n }\n\n String devices_result = this.collectResultFromProcess(proc);\n String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\n\n if (device_id_list.length <= 1) {\n System.out.println(\"No Devices Attached.\");\n return ret_device_id_list;\n }\n\n /**\n * collect the online devices\n */\n String str_device_id = null;\n String device = null;\n String[] str_device_id_parts = null;\n // ignore the first line which is \"List of devices attached\"\n for (int i = 1; i < device_id_list.length; i++) {\n str_device_id = device_id_list[i];\n str_device_id_parts = str_device_id.split(\"\\\\s+\");\n // add the online device\n if (str_device_id_parts[1].equals(\"device\")) {\n device = str_device_id_parts[0];\n ret_device_id_list.add(device);\n System.out.println(device);\n }\n }\n\n return ret_device_id_list;\n }", "public Integer getDevices() {\r\n return devices;\r\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();", "public List<Device> findAll() throws Exception;", "public List<String> execAdbDevices()\r\n\t{\r\n\t\tList<String> ret_device_id_list = new ArrayList<>();\r\n\t\t\r\n\t\tProcess proc = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tproc = new ProcessBuilder(this.adb_directory, \"devices\").start();\r\n\t\t\tproc.waitFor();\r\n\t\t} catch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t} catch (InterruptedException ire)\r\n\t\t{\r\n\t\t\tire.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString devices_result = this.collectResultFromProcess(proc);\r\n\t String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\r\n\r\n\t if (device_id_list.length <= 1)\r\n\t {\r\n\t \tSystem.out.println(\"No Devices Attached.\");\r\n\t \treturn ret_device_id_list;\r\n\t }\r\n\t \r\n\t /**\r\n\t * collect the online devices \r\n\t */\r\n\t String str_device_id = null;\r\n\t String[] str_device_id_parts = null;\r\n\t // ignore the first line which is \"List of devices attached\"\r\n\t for (int i = 1; i < device_id_list.length; i++)\r\n\t\t{\r\n\t\t\tstr_device_id = device_id_list[i];\r\n\t\t\tstr_device_id_parts = str_device_id.split(\"\\\\s+\");\r\n\t\t\t// add the online device\r\n\t\t\tif (str_device_id_parts[1].equals(\"device\"))\r\n\t\t\t\tret_device_id_list.add(str_device_id_parts[0]);\r\n\t\t}\r\n\t \r\n\t return ret_device_id_list;\r\n\t}", "private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}", "public ArrayList getDeviceInfo();", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter) {\n return this.serviceClient.getAllDevices(filter);\n }", "public List<Device> getAllDevices(DeviceType type) {\n LOG.info(\"Starting get all OpenCL device by platform \" + platform + \".\");\n int[] numDevicesArray = new int[1];\n long deviceType = type.toCLType();\n CL.clGetDeviceIDs(platform, deviceType, 0, null, numDevicesArray);\n int numDevices = numDevicesArray[0];\n LOG.info(\"Found \" + numDevices + \" OpenCL devices.\");\n cl_device_id[] allRawDevices = new cl_device_id[numDevices];\n CL.clGetDeviceIDs(platform, deviceType, numDevices, allRawDevices, null);\n return Arrays.stream(allRawDevices)\n .filter(Objects::nonNull)\n .map(rawDevice -> new Device(rawDevice, this))\n .collect(Collectors.toList());\n }", "public static List<FTDevice> getDevicesByDescription(String description) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && description.equals(device.devDescription)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public static BLDevice[] discoverDevices(int timeout) throws IOException {\r\n return discoverDevices(InetAddress.getLocalHost(), 0, timeout);\r\n }", "private void getPairedDevices() {\n\t\tdevicesArray = btAdapter.getBondedDevices();\n\t\tif(devicesArray.size()>0){\n\t\t\tfor(BluetoothDevice device:devicesArray){\n\t\t\t\tpairedDevices.add(device.getName());\n\t\t\t}\n\t\t}\n\t}", "public org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public String[] getSoundDevicesList();", "public void listDevices(final BluetoothAdapter bluetoothAdapter){\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n ArrayList pairedDeviceList = new ArrayList();\n String address = null;\n\n if (pairedDevices.size() > 0) {\n int i = 0;\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName().trim();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n if (deviceName.equals(DEVICE_NAME)){\n address = device.getAddress().trim();\n System.out.println(address +\"\\n\");\n }\n pairedDeviceList.add(\"Device Name: \" + deviceName + \" Device MAC Address: \" + deviceHardwareAddress);\n }\n\n System.out.println(pairedDeviceList.get(0) + \"\\n\");\n\n final String finalAddress = address;\n AsyncTask.execute(new Runnable(){\n @Override\n public void run(){\n bluetoothDevice = bluetoothAdapter.getRemoteDevice(finalAddress);\n BLEDevice = new BluetoothLeService(bluetoothDevice, quantifenUUID);\n BLEDevice.connect(BluetoothActivity.this, testUUID);\n }\n });\n\n\n }\n }", "public List<Device> getUserDevices(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n List <Device> devices = new ArrayList<>();\n try {\n tx = session.beginTransaction();\n \n User user = this.getUser(id);\n\n // Add restriction to get user with username\n Criterion deviceCr = Restrictions.eq(\"userId\", user);\n Criteria cr = session.createCriteria(Device.class);\n cr.add(deviceCr);\n devices = cr.list();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return devices;\n }", "Collection<? extends ReflexDevice> getDevices() {\n return processors.values();\n }", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public void discoverDevices(){\r\n \t// If we're already discovering, stop it\r\n if (mBtAdapter.isDiscovering()) {\r\n mBtAdapter.cancelDiscovery();\r\n }\r\n \r\n Toast.makeText(this, \"Listining for paired devices.\", Toast.LENGTH_LONG).show();\r\n \tmBtAdapter.startDiscovery(); \r\n }", "public List<ISymbianSDK> getTargetEmulatorDevices() {\n\t\tISDKManager manager = SDKCorePlugin.getSDKManager();\n\t\treturn manager.getSDKList();\n\t}", "public static ArrayList<MTPDeviceInfo> getDeviceModels() {\r\n\t\tArrayList<MTPDeviceInfo> models = new ArrayList<>();\r\n\r\n\t\tPortableDeviceManager manager = new PortableDeviceManager();\r\n\t\tmanager.refreshDeviceList();\r\n\r\n\t\tfor (PortableDevice device : manager.getDevices()) {\r\n\t\t\tdevice.open();\r\n\t\t\tmodels.add(new MTPDeviceInfo(device.getModel(), device.getSerialNumber()));\r\n\t\t\tdevice.close();\r\n\t\t}\r\n\r\n\t\treturn models;\r\n\t}", "public static List<FTDevice> getDevicesBySerialNumber(String serialNumber) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.getFlag() & FTD2XX.FT_FLAGS_OPENED) == 0) && serialNumber.equals(device.devSerialNumber)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public abstract GraphicsDevice[] getScreenDevices();", "public DeviceUserAuthorization[] getDeviceList() {\n return deviceList;\n }", "@Path(\"device\")\n DeviceAPI devices();", "public String[] getVideoDevicesList();", "private void discoverDevicesAndServices( String uuid ) throws BluetoothStateException\n {\n discoverer.discoverDevices();\n discoverer.discoverServices( uuid );\n }", "public static List<IOTAddress> discoverIOTDevicesSyn() {\n\n\t\tAbsTaskSyn<List<IOTAddress>> udpSocketTask = new UDPSocketTask(\n\t\t\t\t\"connect task\", -1, true, broadcastAddress, data);\n\n\t\tmThreadPool.executeSyn(udpSocketTask, CONSTANTS_DYNAMIC.UDP_BROADCAST_TIMEOUT_DYNAMIC, TimeoutUnit);\n\n\t\tList<IOTAddress>responseList = udpSocketTask.getResult();\n\n\t\treturn responseList;\n\t}", "public Collection<BluetoothDevice> getUniqueConnectedDevices() {\n ArrayList<BluetoothDevice> result;\n synchronized (mLock) {\n result = new ArrayList<>(mHfpDevicesByAddress.values());\n }\n Set<Long> seenHiSyncIds = new LinkedHashSet<>();\n // Add the left-most active device to the seen list so that we match up with the list\n // generated in BluetoothRouteManager.\n if (mBluetoothHearingAidService != null) {\n for (BluetoothDevice device : mBluetoothHearingAidService.getActiveDevices()) {\n if (device != null) {\n result.add(device);\n seenHiSyncIds.add(mHearingAidDeviceSyncIds.getOrDefault(device, -1L));\n break;\n }\n }\n }\n synchronized (mLock) {\n for (BluetoothDevice d : mHearingAidDevicesByAddress.values()) {\n long hiSyncId = mHearingAidDeviceSyncIds.getOrDefault(d, -1L);\n if (seenHiSyncIds.contains(hiSyncId)) {\n continue;\n }\n result.add(d);\n seenHiSyncIds.add(hiSyncId);\n }\n }\n return Collections.unmodifiableCollection(result);\n }", "List<PCDevice> getAllPC();", "public void getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> responseObserver);", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "private native void nGetDevices(Vector deviceList);", "private List<Device> getDeviceCandidates(Node node, State state) {\n\t\tList<Device> candidates = new ArrayList<Device>();\n\t\tfor (Device device : Basic_ILS.devices) {\n\t\t\tif (state.deviceConstraint(node, device)\n\t\t\t\t\t&& state.colocationConstraint(node, device)\n\t\t\t\t\t&& state.memoryConstraint(node, device)) {\n\t\t\t\tcandidates.add(device);\n\t\t\t}\n\t\t}\n\t\treturn candidates;\n\t}", "public void checkDevices() throws TNotFoundEx{\n\t\tString command = \"adb devices -l\";\n\t\tCommando commando = new Commando();\n\t\tString op = commando.executeCommand(command);\n\t\t\n\t\tOtherUtil oU = new OtherUtil();\n\t\tArrayList<String> devices = oU.getRegexFromString(op, \"(model:.*?device:.+$?)\");\n\t\tint eligDevices = devices.size();\n\t\t\n\t\tif (eligDevices>1)\n\t\t\tthrow new TNotFoundEx(\"ERROR: 2 or more Android devices are connected to the host, please connect only one Android device.\");\n\t\tif (eligDevices == 0)\n\t\t\tthrow new TNotFoundEx(\"ERROR: No Android devices detected by the host. Execute adb devices -l to check the connected devices\");\n\t\t\t\n\t}", "@Override\r\n\tpublic Device devGetDevice(boolean allProperties) throws RTException {\n\t\treturn null;\r\n\t}", "public org.hl7.fhir.ResourceReference[] getDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEVICE$12, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "private void getDevice(){\n\t\tdialog.setContentView(R.layout.device_list_popup);\n\t\tdialog.setCancelable(true);\n\t\tdialog.setTitle(\"Paired Bluetooth Devices\");\n\t\tdialog.show();\n\t\tProgressBar tempSpinner = (ProgressBar)dialog.findViewById(R.id.progressBar);\n\t\ttempSpinner.setVisibility(View.INVISIBLE); //Hide the progress bar while we aren't connecting\n\n\t\tListView lv = (ListView) dialog.findViewById(R.id.device_list_display);\n\t\tlv.setAdapter(new ArrayAdapter<String> (this, R.layout.device_list_popup));\n\n\t\tlv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\tpublic void onItemClick(AdapterView<?> arg, View view, int position, long id) {\n\t\t\t\tString address = (String) ((TextView) view).getText();\n\t\t\t\tfor (String temp : address.split(\"\\n\")) {\n\t\t\t\t\taddress = temp; //Only get address, discard name\n\t\t\t\t}\n\t\t\t\tBluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address);\n\t\t\t\tnew ConnectTask().execute(device);\n\t\t\t}\n\t\t});\n\t}", "@Override\n public Object getData() {\n return devices;\n }", "public TestDevice[] allocateDevices(final int num) throws DeviceNotAvailableException {\n \n ArrayList<TestDevice> deviceList;\n TestDevice td;\n int index = 0;\n \n if (num < 0) {\n throw new IllegalArgumentException();\n }\n if (num > mDevices.size()) {\n throw new DeviceNotAvailableException(\"The number of connected device(\"\n + mDevices.size() + \" is less than the specified number(\"\n + num + \"). Please plug in enough devices\");\n }\n deviceList = new ArrayList<TestDevice>();\n \n while (index < mDevices.size() && deviceList.size() != num) {\n td = mDevices.get(index);\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n deviceList.add(td);\n }\n index++;\n }\n if (deviceList.size() != num) {\n throw new DeviceNotAvailableException(\"Can't get the specified number(\"\n + num + \") of idle device(s).\");\n }\n return deviceList.toArray(new TestDevice[num]);\n }", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "public DeviceLocator getDeviceLocator();", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses(Context context) {\n return this.serviceClient.getAllDeviceClasses(context);\n }", "@Override\n\tpublic TransferData getDevices(int pageSize, int pageIndex,\n\t\t\tboolean isManaged) {\n\t\tTransferData data = new TransferData();\n\t\tDBObject query = new BasicDBObject();\n\n\t\tquery.put(\"managed\", isManaged);\n\n\t\tList<InventoryDevice> devices = getMongoDao().findObjects(\n\t\t\t\tConstant.TABLE_InvDev, query, InventoryDevice.class).readAll();\n\t\tif (devices != null && !devices.isEmpty()) {\n\t\t\tint size = devices.size();\n\t\t\tint start = (pageIndex - 1) * pageSize;\n\n\t\t\tdata.setPageCount(CoreSvrUtil.getPageCount(size, pageSize));\n\t\t\tdata.setListData(devices.subList(start,\n\t\t\t\t\tstart + pageSize < size ? start + pageSize : size));\n\t\t}\n\t\treturn data;\n\t}", "public T scanAllDevices(DeviceType dType) {\n for (String devLabel : Globals.core().getLoadedDevicesOfType(dType)) {\n T device = getAutoInstance(devLabel);\n if (device != null) {\n return device;\n }\n }\n Globals.mm().logs().logMessage(\"Autofinder found no devices.\");\n return null; //Nothing was identified.\n }", "public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses() {\n return this.serviceClient.getAllDeviceClasses();\n }", "public int getConnectedDeviceCount() {\n return getConnectedDevices().size();\n }", "Reference getDevice();", "private CharSequence[] getSelections() {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n if (null != btAdapter) {\n int idx = 0;\n Set<BluetoothDevice> setDevices = btAdapter.getBondedDevices();\n CharSequence[] entries = new CharSequence[setDevices.size() + 1];\n entries[idx++] = NONE;\n\n for (BluetoothDevice btd : setDevices) {\n entries[idx++] = btd.getName();\n }\n\n // tell bluetooth to stop scanning. it's a power issue\n btAdapter.cancelDiscovery();\n return entries;\n }\n\n CharSequence[] entries = new CharSequence[1];\n entries[0] = NONE;\n return entries;\n }", "public BluetoothDevice getDevice() {\n return this.device;\n }", "public Multimap<String, OOCSIDevice> devicesByLocation() {\n\t\tpurgeStaleClients();\n\n\t\tMultimap<String, OOCSIDevice> locationsMappedDevices = MultimapBuilder.hashKeys().linkedListValues().build();\n\t\tclients.values().stream().forEach(\n\t\t od -> od.locations.entrySet().stream().forEach(loc -> locationsMappedDevices.put(loc.getKey(), od)));\n\t\treturn locationsMappedDevices;\n\t}", "public static VkPhysicalDevice[] enumeratePhysicalDevices(VkInstance instance)\n throws VulkanException {\n IntBuffer devicesCount = memAllocInt(1);\n int err = vkEnumeratePhysicalDevices(instance, devicesCount, null);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n int devCount = devicesCount.get(0);\n PointerBuffer pDevices = memAllocPointer(devCount);\n\n err = vkEnumeratePhysicalDevices(instance, devicesCount, pDevices);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n VkPhysicalDevice[] devices = new VkPhysicalDevice[devCount];\n for (int i = 0; i < devCount; i++) {\n devices[i] = new VkPhysicalDevice(pDevices.get(i), instance);\n }\n\n memFree(devicesCount);\n memFree(pDevices);\n\n return devices;\n }", "public static void outputAllTrunedOnDevices() {\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n System.out.println(device);\n }\n System.out.println();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getUserDevices(int userId) {\n Query query = em.createQuery(\"SELECT u FROM Device u where user_id=\"+ userId);\n List<Device> users = new ArrayList<Device>();\n users = query.getResultList();\n return users;\n }", "List<DeviceInfo> getDevicesInfo(List<DeviceIdentifier> deviceIdentifiers) throws DeviceDetailsMgtException;", "@Nullable\n public List<BluetoothGattService> getServices() {\n BleMultiConnector bleMultiConnector = this.bleMultiConnector;\n if (bleMultiConnector == null) {\n return null;\n }\n if (address == null) {\n return null;\n }\n return bleMultiConnector.getServices(address);\n }", "@Override\n public ListWirelessDevicesResult listWirelessDevices(ListWirelessDevicesRequest request) {\n request = beforeClientExecution(request);\n return executeListWirelessDevices(request);\n }", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "public Map<String, Set<String>> getBufferedDeviceNamesByType();", "public void displayPairedDevices() {\n\t\tBluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n\t\t\t\t.getDefaultAdapter();\n\t\tSet<BluetoothDevice> bondedDevices = mBluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\n\t\tList<String> s = new ArrayList<String>();\n\t\tpairedDevices = new ArrayList<BluetoothDevice>();\n\t\tfor (BluetoothDevice bt : bondedDevices) {\n\t\t\ts.add(bt.getName());\n\t\t\tpairedDevices.add(bt);\n\t\t}\n\t\tListView List = (ListView) findViewById(R.id.paired_devices);\n\n\t\tList.setAdapter(new ArrayAdapter<String>(this, R.layout.device_row, s));\n\t}", "@Test\n public void findDeviceByType() throws Exception {\n MockUpnpService upnpService = new MockUpnpService();\n LocalDevice device = SampleData.createLocalDevice();\n upnpService.getRegistry().addDevice(device);\n\n Registry registry = upnpService.getRegistry();\n\n try {\n DeviceType deviceType = new UDADeviceType(\"MY-DEVICE-TYPE\", 1); // DOC: FIND_DEV_TYPE\n Collection<Device> devices = registry.getDevices(deviceType); // DOC: FIND_DEV_TYPE\n assertEquals(devices.size(), 1);\n } finally {}\n\n try {\n ServiceType serviceType = new UDAServiceType(\"MY-SERVICE-TYPE-ONE\", 1); // DOC: FIND_SERV_TYPE\n Collection<Device> devices = registry.getDevices(serviceType); // DOC: FIND_SERV_TYPE\n assertEquals(devices.size(), 1);\n } finally {}\n }", "public void getDevices(final Subscriber<List<Device>> devicesSubscriber) {\n if (smartThingsService==null) {\n devicesSubscriber.onError(new Throwable(\"Please login to SmartThings before trying to get devices\"));\n return;\n }\n Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() {\n @Override\n public List<Device> call(List<Device> switches, List<Device> locks) {\n List<Device> devices = new ArrayList<>();\n devices.addAll(switches);\n devices.addAll(locks);\n return devices;\n }\n }).doOnError(new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n devicesSubscriber.onError(throwable);\n }\n }).doOnCompleted(new Action0() {\n @Override\n public void call() {\n //\n }\n }).subscribe(new Action1<List<Device>>() {\n @Override\n public void call(List<Device> devices) {\n devicesSubscriber.onNext(devices);\n }\n });\n }", "public static native String JavaGetDeviceSerialList(int Number);", "public void initDevices() {\n for (Device device: deviceList) {\n device.init(getCpu().getTime());\n }\n }", "public final int getDeviceID() {\n return device.getDeviceID();\n }", "public static ArrayList<Device> getDevices (JSONArray jsonArray){\n ArrayList<Device> devices = new ArrayList<Device>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n JSONObject o = jsonArray.getJSONObject(i);\n Device d = new Device(o.getString(Utility.DeviceName), o.getString(Utility.Technology), o.getBoolean(Utility.AlwaysOn));\n\n /* Servs */\n JSONArray servsJson = o.getJSONArray(Utility.Services);\n for (int j = 0; j < servsJson.length(); j++) {\n DeviceService ds = new DeviceService(servsJson.getJSONObject(j).getString(Utility.ServiceName), servsJson.getJSONObject(j).getString(Utility.ServiceType));\n ds.assignToDevice(d);\n d.addService(ds);\n\n JSONArray coms = servsJson.getJSONObject(j).getJSONArray(Utility.Commands);\n for (int z = 0; z < coms.length(); z++) {\n try {\n ds.addCommand(new Command(coms.getJSONObject(z).getString(Utility.CommandName),\n coms.getJSONObject(z).getString(Utility.CommandType)));\n }\n catch (JSONException e) {\n Log.w(\"Command\", \"Error adding command\");\n }\n }\n }\n\n\n\n devices.add(d);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n return devices;\n }", "public Device getDevice() {\n\t\treturn this.device;\n\t}" ]
[ "0.8060237", "0.7350377", "0.73249185", "0.7288414", "0.72753847", "0.7186344", "0.71856654", "0.7173275", "0.71373403", "0.71252596", "0.70971465", "0.7060804", "0.70537835", "0.69682723", "0.6963477", "0.69112617", "0.67509836", "0.6748555", "0.6743469", "0.6725758", "0.67064387", "0.6672543", "0.6606943", "0.65892345", "0.6557014", "0.6548252", "0.6543652", "0.65428716", "0.65407443", "0.64995956", "0.6444838", "0.6436784", "0.6392217", "0.63746107", "0.6329135", "0.6328886", "0.6311883", "0.6281663", "0.6250918", "0.62362915", "0.6231924", "0.6222363", "0.62096626", "0.61959696", "0.6151617", "0.6140425", "0.61110634", "0.61023885", "0.6087324", "0.60802567", "0.6076204", "0.60683024", "0.60420537", "0.60377467", "0.59841114", "0.5979005", "0.58926946", "0.58520967", "0.5819919", "0.5798394", "0.57864237", "0.57471526", "0.5729218", "0.5727655", "0.5722398", "0.5719176", "0.5696029", "0.5692959", "0.56604546", "0.56303823", "0.5614624", "0.55953836", "0.55918014", "0.5567479", "0.5560734", "0.5548821", "0.55394655", "0.5525274", "0.5523892", "0.5522417", "0.55126756", "0.5511792", "0.55016065", "0.55012804", "0.5422507", "0.5416878", "0.5407017", "0.53904825", "0.5385883", "0.537984", "0.53767836", "0.5373116", "0.53697705", "0.5368508", "0.5359596", "0.5353859", "0.5352886", "0.5314912", "0.5299338", "0.5285308" ]
0.66787046
21
Get the connected FTDI devices. It will not contain opened devices.
public static List<FTDevice> getDevicesByDescription(String description) throws FTD2XXException { IntByReference devNum = new IntByReference(); ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum)); ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue()); for (int i = 0; i < devNum.getValue(); i++) { FTDevice device = getXthDevice(i); if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && description.equals(device.devDescription)) { devs.add(device); } } LOGGER.info("Found devs: {} (All:{})", devs.size(), devNum.getValue()); return devs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "public Cursor getDevices(){\n String tabla = devicesContract.deviceEntry.tableName,\n selection = null,\n groupBy = null,\n having = null,\n orderBy = null;\n String[] columnas = null, selectionArgs = null;\n Cursor d = getDevice(tabla,columnas,selection,selectionArgs,groupBy,having,orderBy);\n return d;\n }", "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 void getDevicesList()\n {\n MidiDevice.Info[]\taInfos = MidiSystem.getMidiDeviceInfo();\n\t\tfor (int i = 0; i < aInfos.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMidiDevice\tdevice = MidiSystem.getMidiDevice(aInfos[i]);\n\t\t\t\tboolean\t\tbAllowsInput = (device.getMaxTransmitters() != 0);\n\t\t\t\tboolean\t\tbAllowsOutput = (device.getMaxReceivers() != 0);\n\t\t\t\tif (bAllowsInput || bAllowsOutput)\n\t\t\t\t{\n\n\t\t\t\t\tSystem.out.println(i + \"\" + \" \"\n\t\t\t\t\t\t+ (bAllowsInput?\"IN \":\" \")\n\t\t\t\t\t\t+ (bAllowsOutput?\"OUT \":\" \")\n\t\t\t\t\t\t+ aInfos[i].getName() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVendor() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVersion() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getDescription());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\" + i + \" \" + aInfos[i].getName());\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (MidiUnavailableException e)\n\t\t\t{\n\t\t\t\t// device is obviously not available...\n\t\t\t\t// out(e);\n\t\t\t}\n\t\t}\n\t\tif (aInfos.length == 0)\n\t\t{\n\t\t\tSystem.out.println(\"[No devices available]\");\n\t\t}\n\t\t//System.exit(0);\n }", "public List getDevices() {\n return devices;\n }", "public IDevice[] getDevices() { return devices; }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "public Peripheral[] getDevices() {\r\n\treturn (Peripheral[]) this.deviceList.toArray(new Peripheral[0]);\r\n }", "public List<Device> getRunningDevices();", "public static ArrayList<File> findDevices() {\n return findDevices(\"/dev/\");\n }", "public List<MediaDevice> getMediaDevices() {\n\n List<MediaDevice> mediaDevices = new ArrayList<>();\n\n for (MediaDevice d : this.devices) {\n if (d.hasMediaInterface() && d.hasInstance()) {\n mediaDevices.add(d);\n }\n }\n\n return mediaDevices;\n }", "public List<String> getConnectedDevices() {\n if (services.size() == 0) {\n return new ArrayList<String>();\n }\n\n HashSet<String> toRet = new HashSet<String>();\n\n for (String s : services.keySet()) {\n ConnectionService service = services.get(s);\n\n if (service.getState() == ConnectionConstants.STATE_CONNECTED) {\n toRet.add(s);\n }\n }\n\n return new ArrayList<String>(toRet);\n }", "List<DeviceDetails> getDevices();", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "public static List<FTDevice> getDevices(boolean isIncludeOpenedDevices) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n // device is occupied?\n if (isIncludeOpenedDevices) {\n devs.add(device);\n }\n else {\n if ((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) {\n devs.add(device);\n }\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public Collection<String> listDevices();", "protected List<PCIDevice> probeDevices() {\n final ArrayList<PCIDevice> result = new ArrayList<PCIDevice>();\n rootBus.probeDevices(result);\n return result;\n }", "public final TestDevice[] getDeviceList() {\n return mDevices.toArray(new TestDevice[mDevices.size()]);\n }", "public Set<BluetoothDevice> getPairedDevicesList(){\n if(isBluetoothSupported()){\n if(!baBTAdapter.isEnabled()){\n turnOnBluetooth();\n }\n }\n else{\n return null;\n }\n\n return baBTAdapter.getBondedDevices();\n }", "public List<PushDevice> listDevices() {\n checkUsbLibState();\n\n List<PushDevice> devices = new ArrayList<>();\n\n // Read the USB device list\n DeviceList list = new DeviceList();\n int result = LibUsb.getDeviceList(null, list);\n if (result < 0) {\n throw new LibUsbException(\"Unable to get device list\", result);\n }\n\n try {\n // Iterate over all devices and scan for the right one\n for (Device device : list) {\n DeviceDescriptor descriptor = new DeviceDescriptor();\n result = LibUsb.getDeviceDescriptor(device, descriptor);\n if (result != LibUsb.SUCCESS) {\n throw new LibUsbException(\"Unable to read device descriptor\", result);\n }\n if (descriptor.bDeviceClass() == LibUsb.CLASS_PER_INTERFACE &&\n descriptor.idVendor() == VENDOR_ID && descriptor.idProduct() == PRODUCT_ID) {\n\n devices.add(new PushDevice(device));\n }\n }\n } finally {\n // Ensure the allocated device list is freed\n LibUsb.freeDeviceList(list, true);\n }\n\n return devices;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getAllDevices() {\n\n Query query = em.createQuery(\"SELECT d FROM Device d\");\n List<Device> devices = new ArrayList<Device>();\n devices = query.getResultList();\n return devices;\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 }", "public static List<FTDevice> getDevicesByDeviceType(DeviceType deviceType) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && device.devType.equals(deviceType)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "@Override\n public List<CECDevice> scanDevices() {\n sendCommand(\"scan\");\n return CECClientParser.parseScanResult(waitForOutputLine(\"===================\"));\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter, Context context) {\n return this.serviceClient.getAllDevices(filter, context);\n }", "private void getPairedDevices() {\n\t\tdevicesArray = btAdapter.getBondedDevices();\n\t\tif(devicesArray.size()>0){\n\t\t\tfor(BluetoothDevice device:devicesArray){\n\t\t\t\tpairedDevices.add(device.getName());\n\t\t\t}\n\t\t}\n\t}", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }", "public static List<String> getDeviceList() {\n\t\tList<String> str = CommandRunner.exec(CMD_GET_DEVICE_ID);\n\t\tList<String> ids = new ArrayList<String>();\n\t\tfor (int i = 1; i < str.size(); i++) {\n\t\t\tString id = str.get(i).split(\" |\\t\")[0].trim();\n\t\t\tif (!id.isEmpty()) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\t\treturn ids;\n\t}", "public List<Device> getAllDevices(DeviceType type) {\n LOG.info(\"Starting get all OpenCL device by platform \" + platform + \".\");\n int[] numDevicesArray = new int[1];\n long deviceType = type.toCLType();\n CL.clGetDeviceIDs(platform, deviceType, 0, null, numDevicesArray);\n int numDevices = numDevicesArray[0];\n LOG.info(\"Found \" + numDevices + \" OpenCL devices.\");\n cl_device_id[] allRawDevices = new cl_device_id[numDevices];\n CL.clGetDeviceIDs(platform, deviceType, numDevices, allRawDevices, null);\n return Arrays.stream(allRawDevices)\n .filter(Objects::nonNull)\n .map(rawDevice -> new Device(rawDevice, this))\n .collect(Collectors.toList());\n }", "public Collection<BluetoothDevice> getUniqueConnectedDevices() {\n ArrayList<BluetoothDevice> result;\n synchronized (mLock) {\n result = new ArrayList<>(mHfpDevicesByAddress.values());\n }\n Set<Long> seenHiSyncIds = new LinkedHashSet<>();\n // Add the left-most active device to the seen list so that we match up with the list\n // generated in BluetoothRouteManager.\n if (mBluetoothHearingAidService != null) {\n for (BluetoothDevice device : mBluetoothHearingAidService.getActiveDevices()) {\n if (device != null) {\n result.add(device);\n seenHiSyncIds.add(mHearingAidDeviceSyncIds.getOrDefault(device, -1L));\n break;\n }\n }\n }\n synchronized (mLock) {\n for (BluetoothDevice d : mHearingAidDevicesByAddress.values()) {\n long hiSyncId = mHearingAidDeviceSyncIds.getOrDefault(d, -1L);\n if (seenHiSyncIds.contains(hiSyncId)) {\n continue;\n }\n result.add(d);\n seenHiSyncIds.add(hiSyncId);\n }\n }\n return Collections.unmodifiableCollection(result);\n }", "public List<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n }\n\n String devices_result = this.collectResultFromProcess(proc);\n String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\n\n if (device_id_list.length <= 1) {\n System.out.println(\"No Devices Attached.\");\n return ret_device_id_list;\n }\n\n /**\n * collect the online devices\n */\n String str_device_id = null;\n String device = null;\n String[] str_device_id_parts = null;\n // ignore the first line which is \"List of devices attached\"\n for (int i = 1; i < device_id_list.length; i++) {\n str_device_id = device_id_list[i];\n str_device_id_parts = str_device_id.split(\"\\\\s+\");\n // add the online device\n if (str_device_id_parts[1].equals(\"device\")) {\n device = str_device_id_parts[0];\n ret_device_id_list.add(device);\n System.out.println(device);\n }\n }\n\n return ret_device_id_list;\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}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();", "public Integer getDevices() {\r\n return devices;\r\n }", "public List<String> execAdbDevices()\r\n\t{\r\n\t\tList<String> ret_device_id_list = new ArrayList<>();\r\n\t\t\r\n\t\tProcess proc = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tproc = new ProcessBuilder(this.adb_directory, \"devices\").start();\r\n\t\t\tproc.waitFor();\r\n\t\t} catch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t} catch (InterruptedException ire)\r\n\t\t{\r\n\t\t\tire.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString devices_result = this.collectResultFromProcess(proc);\r\n\t String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\r\n\r\n\t if (device_id_list.length <= 1)\r\n\t {\r\n\t \tSystem.out.println(\"No Devices Attached.\");\r\n\t \treturn ret_device_id_list;\r\n\t }\r\n\t \r\n\t /**\r\n\t * collect the online devices \r\n\t */\r\n\t String str_device_id = null;\r\n\t String[] str_device_id_parts = null;\r\n\t // ignore the first line which is \"List of devices attached\"\r\n\t for (int i = 1; i < device_id_list.length; i++)\r\n\t\t{\r\n\t\t\tstr_device_id = device_id_list[i];\r\n\t\t\tstr_device_id_parts = str_device_id.split(\"\\\\s+\");\r\n\t\t\t// add the online device\r\n\t\t\tif (str_device_id_parts[1].equals(\"device\"))\r\n\t\t\t\tret_device_id_list.add(str_device_id_parts[0]);\r\n\t\t}\r\n\t \r\n\t return ret_device_id_list;\r\n\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter) {\n return this.serviceClient.getAllDevices(filter);\n }", "private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}", "public static BLDevice[] discoverDevices(int timeout) throws IOException {\r\n return discoverDevices(InetAddress.getLocalHost(), 0, timeout);\r\n }", "Collection<? extends ReflexDevice> getDevices() {\n return processors.values();\n }", "public static List<FTDevice> getDevicesBySerialNumber(String serialNumber) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.getFlag() & FTD2XX.FT_FLAGS_OPENED) == 0) && serialNumber.equals(device.devSerialNumber)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public List<Device> findAll() throws Exception;", "public org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public List<Device> getUserDevices(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n List <Device> devices = new ArrayList<>();\n try {\n tx = session.beginTransaction();\n \n User user = this.getUser(id);\n\n // Add restriction to get user with username\n Criterion deviceCr = Restrictions.eq(\"userId\", user);\n Criteria cr = session.createCriteria(Device.class);\n cr.add(deviceCr);\n devices = cr.list();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return devices;\n }", "public static ArrayList<MTPDeviceInfo> getDeviceModels() {\r\n\t\tArrayList<MTPDeviceInfo> models = new ArrayList<>();\r\n\r\n\t\tPortableDeviceManager manager = new PortableDeviceManager();\r\n\t\tmanager.refreshDeviceList();\r\n\r\n\t\tfor (PortableDevice device : manager.getDevices()) {\r\n\t\t\tdevice.open();\r\n\t\t\tmodels.add(new MTPDeviceInfo(device.getModel(), device.getSerialNumber()));\r\n\t\t\tdevice.close();\r\n\t\t}\r\n\r\n\t\treturn models;\r\n\t}", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public abstract GraphicsDevice[] getScreenDevices();", "public String[] getSoundDevicesList();", "public ArrayList getDeviceInfo();", "public DeviceUserAuthorization[] getDeviceList() {\n return deviceList;\n }", "public List<ISymbianSDK> getTargetEmulatorDevices() {\n\t\tISDKManager manager = SDKCorePlugin.getSDKManager();\n\t\treturn manager.getSDKList();\n\t}", "public void listDevices(final BluetoothAdapter bluetoothAdapter){\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n ArrayList pairedDeviceList = new ArrayList();\n String address = null;\n\n if (pairedDevices.size() > 0) {\n int i = 0;\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName().trim();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n if (deviceName.equals(DEVICE_NAME)){\n address = device.getAddress().trim();\n System.out.println(address +\"\\n\");\n }\n pairedDeviceList.add(\"Device Name: \" + deviceName + \" Device MAC Address: \" + deviceHardwareAddress);\n }\n\n System.out.println(pairedDeviceList.get(0) + \"\\n\");\n\n final String finalAddress = address;\n AsyncTask.execute(new Runnable(){\n @Override\n public void run(){\n bluetoothDevice = bluetoothAdapter.getRemoteDevice(finalAddress);\n BLEDevice = new BluetoothLeService(bluetoothDevice, quantifenUUID);\n BLEDevice.connect(BluetoothActivity.this, testUUID);\n }\n });\n\n\n }\n }", "public TestDevice[] allocateDevices(final int num) throws DeviceNotAvailableException {\n \n ArrayList<TestDevice> deviceList;\n TestDevice td;\n int index = 0;\n \n if (num < 0) {\n throw new IllegalArgumentException();\n }\n if (num > mDevices.size()) {\n throw new DeviceNotAvailableException(\"The number of connected device(\"\n + mDevices.size() + \" is less than the specified number(\"\n + num + \"). Please plug in enough devices\");\n }\n deviceList = new ArrayList<TestDevice>();\n \n while (index < mDevices.size() && deviceList.size() != num) {\n td = mDevices.get(index);\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n deviceList.add(td);\n }\n index++;\n }\n if (deviceList.size() != num) {\n throw new DeviceNotAvailableException(\"Can't get the specified number(\"\n + num + \") of idle device(s).\");\n }\n return deviceList.toArray(new TestDevice[num]);\n }", "private List<Device> getDeviceCandidates(Node node, State state) {\n\t\tList<Device> candidates = new ArrayList<Device>();\n\t\tfor (Device device : Basic_ILS.devices) {\n\t\t\tif (state.deviceConstraint(node, device)\n\t\t\t\t\t&& state.colocationConstraint(node, device)\n\t\t\t\t\t&& state.memoryConstraint(node, device)) {\n\t\t\t\tcandidates.add(device);\n\t\t\t}\n\t\t}\n\t\treturn candidates;\n\t}", "public void discoverDevices(){\r\n \t// If we're already discovering, stop it\r\n if (mBtAdapter.isDiscovering()) {\r\n mBtAdapter.cancelDiscovery();\r\n }\r\n \r\n Toast.makeText(this, \"Listining for paired devices.\", Toast.LENGTH_LONG).show();\r\n \tmBtAdapter.startDiscovery(); \r\n }", "public org.hl7.fhir.ResourceReference[] getDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEVICE$12, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public String[] getVideoDevicesList();", "public void getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> responseObserver);", "public Multimap<String, OOCSIDevice> devicesByLocation() {\n\t\tpurgeStaleClients();\n\n\t\tMultimap<String, OOCSIDevice> locationsMappedDevices = MultimapBuilder.hashKeys().linkedListValues().build();\n\t\tclients.values().stream().forEach(\n\t\t od -> od.locations.entrySet().stream().forEach(loc -> locationsMappedDevices.put(loc.getKey(), od)));\n\t\treturn locationsMappedDevices;\n\t}", "@Path(\"device\")\n DeviceAPI devices();", "private native void nGetDevices(Vector deviceList);", "@Override\r\n\tpublic Device devGetDevice(boolean allProperties) throws RTException {\n\t\treturn null;\r\n\t}", "private CharSequence[] getSelections() {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n if (null != btAdapter) {\n int idx = 0;\n Set<BluetoothDevice> setDevices = btAdapter.getBondedDevices();\n CharSequence[] entries = new CharSequence[setDevices.size() + 1];\n entries[idx++] = NONE;\n\n for (BluetoothDevice btd : setDevices) {\n entries[idx++] = btd.getName();\n }\n\n // tell bluetooth to stop scanning. it's a power issue\n btAdapter.cancelDiscovery();\n return entries;\n }\n\n CharSequence[] entries = new CharSequence[1];\n entries[0] = NONE;\n return entries;\n }", "List<PCDevice> getAllPC();", "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "private void discoverDevicesAndServices( String uuid ) throws BluetoothStateException\n {\n discoverer.discoverDevices();\n discoverer.discoverServices( uuid );\n }", "public static List<IOTAddress> discoverIOTDevicesSyn() {\n\n\t\tAbsTaskSyn<List<IOTAddress>> udpSocketTask = new UDPSocketTask(\n\t\t\t\t\"connect task\", -1, true, broadcastAddress, data);\n\n\t\tmThreadPool.executeSyn(udpSocketTask, CONSTANTS_DYNAMIC.UDP_BROADCAST_TIMEOUT_DYNAMIC, TimeoutUnit);\n\n\t\tList<IOTAddress>responseList = udpSocketTask.getResult();\n\n\t\treturn responseList;\n\t}", "public static VkPhysicalDevice[] enumeratePhysicalDevices(VkInstance instance)\n throws VulkanException {\n IntBuffer devicesCount = memAllocInt(1);\n int err = vkEnumeratePhysicalDevices(instance, devicesCount, null);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n int devCount = devicesCount.get(0);\n PointerBuffer pDevices = memAllocPointer(devCount);\n\n err = vkEnumeratePhysicalDevices(instance, devicesCount, pDevices);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n VkPhysicalDevice[] devices = new VkPhysicalDevice[devCount];\n for (int i = 0; i < devCount; i++) {\n devices[i] = new VkPhysicalDevice(pDevices.get(i), instance);\n }\n\n memFree(devicesCount);\n memFree(pDevices);\n\n return devices;\n }", "@Override\n public Object getData() {\n return devices;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses() {\n return this.serviceClient.getAllDeviceClasses();\n }", "@Override\n\tpublic TransferData getDevices(int pageSize, int pageIndex,\n\t\t\tboolean isManaged) {\n\t\tTransferData data = new TransferData();\n\t\tDBObject query = new BasicDBObject();\n\n\t\tquery.put(\"managed\", isManaged);\n\n\t\tList<InventoryDevice> devices = getMongoDao().findObjects(\n\t\t\t\tConstant.TABLE_InvDev, query, InventoryDevice.class).readAll();\n\t\tif (devices != null && !devices.isEmpty()) {\n\t\t\tint size = devices.size();\n\t\t\tint start = (pageIndex - 1) * pageSize;\n\n\t\t\tdata.setPageCount(CoreSvrUtil.getPageCount(size, pageSize));\n\t\t\tdata.setListData(devices.subList(start,\n\t\t\t\t\tstart + pageSize < size ? start + pageSize : size));\n\t\t}\n\t\treturn data;\n\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses(Context context) {\n return this.serviceClient.getAllDeviceClasses(context);\n }", "public void getDevices(final Subscriber<List<Device>> devicesSubscriber) {\n if (smartThingsService==null) {\n devicesSubscriber.onError(new Throwable(\"Please login to SmartThings before trying to get devices\"));\n return;\n }\n Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() {\n @Override\n public List<Device> call(List<Device> switches, List<Device> locks) {\n List<Device> devices = new ArrayList<>();\n devices.addAll(switches);\n devices.addAll(locks);\n return devices;\n }\n }).doOnError(new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n devicesSubscriber.onError(throwable);\n }\n }).doOnCompleted(new Action0() {\n @Override\n public void call() {\n //\n }\n }).subscribe(new Action1<List<Device>>() {\n @Override\n public void call(List<Device> devices) {\n devicesSubscriber.onNext(devices);\n }\n });\n }", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "public int getConnectedDeviceCount() {\n return getConnectedDevices().size();\n }", "@RequiresBluetoothConnectPermission\n @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)\n public List<DeviceGroup> getDiscoveredGroups() {\n return getDiscoveredGroups(false);\n }", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "@Override\n public ListWirelessDevicesResult listWirelessDevices(ListWirelessDevicesRequest request) {\n request = beforeClientExecution(request);\n return executeListWirelessDevices(request);\n }", "public void checkDevices() throws TNotFoundEx{\n\t\tString command = \"adb devices -l\";\n\t\tCommando commando = new Commando();\n\t\tString op = commando.executeCommand(command);\n\t\t\n\t\tOtherUtil oU = new OtherUtil();\n\t\tArrayList<String> devices = oU.getRegexFromString(op, \"(model:.*?device:.+$?)\");\n\t\tint eligDevices = devices.size();\n\t\t\n\t\tif (eligDevices>1)\n\t\t\tthrow new TNotFoundEx(\"ERROR: 2 or more Android devices are connected to the host, please connect only one Android device.\");\n\t\tif (eligDevices == 0)\n\t\t\tthrow new TNotFoundEx(\"ERROR: No Android devices detected by the host. Execute adb devices -l to check the connected devices\");\n\t\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getUserDevices(int userId) {\n Query query = em.createQuery(\"SELECT u FROM Device u where user_id=\"+ userId);\n List<Device> users = new ArrayList<Device>();\n users = query.getResultList();\n return users;\n }", "private void getDevice(){\n\t\tdialog.setContentView(R.layout.device_list_popup);\n\t\tdialog.setCancelable(true);\n\t\tdialog.setTitle(\"Paired Bluetooth Devices\");\n\t\tdialog.show();\n\t\tProgressBar tempSpinner = (ProgressBar)dialog.findViewById(R.id.progressBar);\n\t\ttempSpinner.setVisibility(View.INVISIBLE); //Hide the progress bar while we aren't connecting\n\n\t\tListView lv = (ListView) dialog.findViewById(R.id.device_list_display);\n\t\tlv.setAdapter(new ArrayAdapter<String> (this, R.layout.device_list_popup));\n\n\t\tlv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\tpublic void onItemClick(AdapterView<?> arg, View view, int position, long id) {\n\t\t\t\tString address = (String) ((TextView) view).getText();\n\t\t\t\tfor (String temp : address.split(\"\\n\")) {\n\t\t\t\t\taddress = temp; //Only get address, discard name\n\t\t\t\t}\n\t\t\t\tBluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address);\n\t\t\t\tnew ConnectTask().execute(device);\n\t\t\t}\n\t\t});\n\t}", "public Object[] getAllChannels() {\n\t\tObject[] res = new Object[getChannelCount()];\n\t\tfor (int ch = 0; ch < getChannelCount(); ch++) {\n\t\t\tres[ch] = getChannel(ch);\n\t\t}\n\t\treturn res;\n\t}", "public BluetoothDevice getDevice() {\n return this.device;\n }", "public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}", "public T scanAllDevices(DeviceType dType) {\n for (String devLabel : Globals.core().getLoadedDevicesOfType(dType)) {\n T device = getAutoInstance(devLabel);\n if (device != null) {\n return device;\n }\n }\n Globals.mm().logs().logMessage(\"Autofinder found no devices.\");\n return null; //Nothing was identified.\n }", "Reference getDevice();", "public Map<String, Set<String>> getBufferedDeviceNamesByType();", "public Collection<SendenDevice> getClientsConnected() {\n return clientsConnected.values();\n }", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "public void displayPairedDevices() {\n\t\tBluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n\t\t\t\t.getDefaultAdapter();\n\t\tSet<BluetoothDevice> bondedDevices = mBluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\n\t\tList<String> s = new ArrayList<String>();\n\t\tpairedDevices = new ArrayList<BluetoothDevice>();\n\t\tfor (BluetoothDevice bt : bondedDevices) {\n\t\t\ts.add(bt.getName());\n\t\t\tpairedDevices.add(bt);\n\t\t}\n\t\tListView List = (ListView) findViewById(R.id.paired_devices);\n\n\t\tList.setAdapter(new ArrayAdapter<String>(this, R.layout.device_row, s));\n\t}", "public DeviceLocator getDeviceLocator();", "@Nullable\n public List<BluetoothGattService> getServices() {\n BleMultiConnector bleMultiConnector = this.bleMultiConnector;\n if (bleMultiConnector == null) {\n return null;\n }\n if (address == null) {\n return null;\n }\n return bleMultiConnector.getServices(address);\n }", "public ArrayList<String> getConnectedUsers() {\r\n\t\tArrayList<String> connectedUsers = new ArrayList<>();\r\n\t\tString message=\"107\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\t//connectedUsers.add(\"Default\");\r\n\t\t\r\n\t\treturn connectedUsers;\r\n\t}", "public static ArrayList<Device> getDevices (JSONArray jsonArray){\n ArrayList<Device> devices = new ArrayList<Device>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n JSONObject o = jsonArray.getJSONObject(i);\n Device d = new Device(o.getString(Utility.DeviceName), o.getString(Utility.Technology), o.getBoolean(Utility.AlwaysOn));\n\n /* Servs */\n JSONArray servsJson = o.getJSONArray(Utility.Services);\n for (int j = 0; j < servsJson.length(); j++) {\n DeviceService ds = new DeviceService(servsJson.getJSONObject(j).getString(Utility.ServiceName), servsJson.getJSONObject(j).getString(Utility.ServiceType));\n ds.assignToDevice(d);\n d.addService(ds);\n\n JSONArray coms = servsJson.getJSONObject(j).getJSONArray(Utility.Commands);\n for (int z = 0; z < coms.length(); z++) {\n try {\n ds.addCommand(new Command(coms.getJSONObject(z).getString(Utility.CommandName),\n coms.getJSONObject(z).getString(Utility.CommandType)));\n }\n catch (JSONException e) {\n Log.w(\"Command\", \"Error adding command\");\n }\n }\n }\n\n\n\n devices.add(d);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n return devices;\n }", "List<DeviceInfo> getDevicesInfo(List<DeviceIdentifier> deviceIdentifiers) throws DeviceDetailsMgtException;", "public void initDevices() {\n for (Device device: deviceList) {\n device.init(getCpu().getTime());\n }\n }", "public cwterm.service.rigctl.xsd.Channel[] getChannelList() {\n return localChannelList;\n }" ]
[ "0.80989105", "0.72272813", "0.72062236", "0.71701276", "0.7148124", "0.71241355", "0.7110592", "0.70709777", "0.7046795", "0.7037522", "0.70354474", "0.6981871", "0.6933781", "0.68721306", "0.6846349", "0.6843083", "0.68374246", "0.68365854", "0.681574", "0.67951554", "0.67692745", "0.6748852", "0.6710842", "0.66993093", "0.6679448", "0.6644589", "0.64983046", "0.64351237", "0.63566", "0.6350354", "0.633959", "0.6337646", "0.6262992", "0.6262243", "0.6257564", "0.6249565", "0.6245976", "0.62045115", "0.6172684", "0.61679757", "0.6119143", "0.61105686", "0.61002046", "0.60933936", "0.60815865", "0.60727346", "0.6031951", "0.60159194", "0.60039675", "0.5985207", "0.5970969", "0.59120345", "0.58954954", "0.5863308", "0.5858006", "0.58290565", "0.58187604", "0.57957804", "0.5717477", "0.57100993", "0.5679946", "0.5653837", "0.5646074", "0.5633889", "0.56208986", "0.5602169", "0.5594676", "0.5590133", "0.55828655", "0.5564523", "0.54821074", "0.5465543", "0.54639554", "0.542317", "0.54139006", "0.54074484", "0.5403507", "0.5399101", "0.539861", "0.53870904", "0.53696644", "0.53666836", "0.53627133", "0.5341675", "0.53178436", "0.5308329", "0.52883035", "0.5288096", "0.5281822", "0.52565557", "0.5240766", "0.52255344", "0.52065897", "0.52057916", "0.5205569", "0.5182669", "0.51782155", "0.5175429", "0.51733804", "0.51539385" ]
0.62033415
38
Get the connected FTDI devices. It will not contain opened devices.
public static List<FTDevice> getDevicesBySerialNumber(String serialNumber) throws FTD2XXException { IntByReference devNum = new IntByReference(); ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum)); ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue()); for (int i = 0; i < devNum.getValue(); i++) { FTDevice device = getXthDevice(i); if (((device.getFlag() & FTD2XX.FT_FLAGS_OPENED) == 0) && serialNumber.equals(device.devSerialNumber)) { devs.add(device); } } LOGGER.info("Found devs: {} (All:{})", devs.size(), devNum.getValue()); return devs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "public Cursor getDevices(){\n String tabla = devicesContract.deviceEntry.tableName,\n selection = null,\n groupBy = null,\n having = null,\n orderBy = null;\n String[] columnas = null, selectionArgs = null;\n Cursor d = getDevice(tabla,columnas,selection,selectionArgs,groupBy,having,orderBy);\n return d;\n }", "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 void getDevicesList()\n {\n MidiDevice.Info[]\taInfos = MidiSystem.getMidiDeviceInfo();\n\t\tfor (int i = 0; i < aInfos.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMidiDevice\tdevice = MidiSystem.getMidiDevice(aInfos[i]);\n\t\t\t\tboolean\t\tbAllowsInput = (device.getMaxTransmitters() != 0);\n\t\t\t\tboolean\t\tbAllowsOutput = (device.getMaxReceivers() != 0);\n\t\t\t\tif (bAllowsInput || bAllowsOutput)\n\t\t\t\t{\n\n\t\t\t\t\tSystem.out.println(i + \"\" + \" \"\n\t\t\t\t\t\t+ (bAllowsInput?\"IN \":\" \")\n\t\t\t\t\t\t+ (bAllowsOutput?\"OUT \":\" \")\n\t\t\t\t\t\t+ aInfos[i].getName() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVendor() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVersion() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getDescription());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\" + i + \" \" + aInfos[i].getName());\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (MidiUnavailableException e)\n\t\t\t{\n\t\t\t\t// device is obviously not available...\n\t\t\t\t// out(e);\n\t\t\t}\n\t\t}\n\t\tif (aInfos.length == 0)\n\t\t{\n\t\t\tSystem.out.println(\"[No devices available]\");\n\t\t}\n\t\t//System.exit(0);\n }", "public List getDevices() {\n return devices;\n }", "public IDevice[] getDevices() { return devices; }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "public Peripheral[] getDevices() {\r\n\treturn (Peripheral[]) this.deviceList.toArray(new Peripheral[0]);\r\n }", "public List<Device> getRunningDevices();", "public static ArrayList<File> findDevices() {\n return findDevices(\"/dev/\");\n }", "public List<MediaDevice> getMediaDevices() {\n\n List<MediaDevice> mediaDevices = new ArrayList<>();\n\n for (MediaDevice d : this.devices) {\n if (d.hasMediaInterface() && d.hasInstance()) {\n mediaDevices.add(d);\n }\n }\n\n return mediaDevices;\n }", "public List<String> getConnectedDevices() {\n if (services.size() == 0) {\n return new ArrayList<String>();\n }\n\n HashSet<String> toRet = new HashSet<String>();\n\n for (String s : services.keySet()) {\n ConnectionService service = services.get(s);\n\n if (service.getState() == ConnectionConstants.STATE_CONNECTED) {\n toRet.add(s);\n }\n }\n\n return new ArrayList<String>(toRet);\n }", "List<DeviceDetails> getDevices();", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "public static List<FTDevice> getDevices(boolean isIncludeOpenedDevices) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n // device is occupied?\n if (isIncludeOpenedDevices) {\n devs.add(device);\n }\n else {\n if ((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) {\n devs.add(device);\n }\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public Collection<String> listDevices();", "protected List<PCIDevice> probeDevices() {\n final ArrayList<PCIDevice> result = new ArrayList<PCIDevice>();\n rootBus.probeDevices(result);\n return result;\n }", "public final TestDevice[] getDeviceList() {\n return mDevices.toArray(new TestDevice[mDevices.size()]);\n }", "public Set<BluetoothDevice> getPairedDevicesList(){\n if(isBluetoothSupported()){\n if(!baBTAdapter.isEnabled()){\n turnOnBluetooth();\n }\n }\n else{\n return null;\n }\n\n return baBTAdapter.getBondedDevices();\n }", "public List<PushDevice> listDevices() {\n checkUsbLibState();\n\n List<PushDevice> devices = new ArrayList<>();\n\n // Read the USB device list\n DeviceList list = new DeviceList();\n int result = LibUsb.getDeviceList(null, list);\n if (result < 0) {\n throw new LibUsbException(\"Unable to get device list\", result);\n }\n\n try {\n // Iterate over all devices and scan for the right one\n for (Device device : list) {\n DeviceDescriptor descriptor = new DeviceDescriptor();\n result = LibUsb.getDeviceDescriptor(device, descriptor);\n if (result != LibUsb.SUCCESS) {\n throw new LibUsbException(\"Unable to read device descriptor\", result);\n }\n if (descriptor.bDeviceClass() == LibUsb.CLASS_PER_INTERFACE &&\n descriptor.idVendor() == VENDOR_ID && descriptor.idProduct() == PRODUCT_ID) {\n\n devices.add(new PushDevice(device));\n }\n }\n } finally {\n // Ensure the allocated device list is freed\n LibUsb.freeDeviceList(list, true);\n }\n\n return devices;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getAllDevices() {\n\n Query query = em.createQuery(\"SELECT d FROM Device d\");\n List<Device> devices = new ArrayList<Device>();\n devices = query.getResultList();\n return devices;\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 }", "public static List<FTDevice> getDevicesByDeviceType(DeviceType deviceType) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && device.devType.equals(deviceType)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "@Override\n public List<CECDevice> scanDevices() {\n sendCommand(\"scan\");\n return CECClientParser.parseScanResult(waitForOutputLine(\"===================\"));\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter, Context context) {\n return this.serviceClient.getAllDevices(filter, context);\n }", "private void getPairedDevices() {\n\t\tdevicesArray = btAdapter.getBondedDevices();\n\t\tif(devicesArray.size()>0){\n\t\t\tfor(BluetoothDevice device:devicesArray){\n\t\t\t\tpairedDevices.add(device.getName());\n\t\t\t}\n\t\t}\n\t}", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }", "public static List<String> getDeviceList() {\n\t\tList<String> str = CommandRunner.exec(CMD_GET_DEVICE_ID);\n\t\tList<String> ids = new ArrayList<String>();\n\t\tfor (int i = 1; i < str.size(); i++) {\n\t\t\tString id = str.get(i).split(\" |\\t\")[0].trim();\n\t\t\tif (!id.isEmpty()) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\t\treturn ids;\n\t}", "public List<Device> getAllDevices(DeviceType type) {\n LOG.info(\"Starting get all OpenCL device by platform \" + platform + \".\");\n int[] numDevicesArray = new int[1];\n long deviceType = type.toCLType();\n CL.clGetDeviceIDs(platform, deviceType, 0, null, numDevicesArray);\n int numDevices = numDevicesArray[0];\n LOG.info(\"Found \" + numDevices + \" OpenCL devices.\");\n cl_device_id[] allRawDevices = new cl_device_id[numDevices];\n CL.clGetDeviceIDs(platform, deviceType, numDevices, allRawDevices, null);\n return Arrays.stream(allRawDevices)\n .filter(Objects::nonNull)\n .map(rawDevice -> new Device(rawDevice, this))\n .collect(Collectors.toList());\n }", "public Collection<BluetoothDevice> getUniqueConnectedDevices() {\n ArrayList<BluetoothDevice> result;\n synchronized (mLock) {\n result = new ArrayList<>(mHfpDevicesByAddress.values());\n }\n Set<Long> seenHiSyncIds = new LinkedHashSet<>();\n // Add the left-most active device to the seen list so that we match up with the list\n // generated in BluetoothRouteManager.\n if (mBluetoothHearingAidService != null) {\n for (BluetoothDevice device : mBluetoothHearingAidService.getActiveDevices()) {\n if (device != null) {\n result.add(device);\n seenHiSyncIds.add(mHearingAidDeviceSyncIds.getOrDefault(device, -1L));\n break;\n }\n }\n }\n synchronized (mLock) {\n for (BluetoothDevice d : mHearingAidDevicesByAddress.values()) {\n long hiSyncId = mHearingAidDeviceSyncIds.getOrDefault(d, -1L);\n if (seenHiSyncIds.contains(hiSyncId)) {\n continue;\n }\n result.add(d);\n seenHiSyncIds.add(hiSyncId);\n }\n }\n return Collections.unmodifiableCollection(result);\n }", "public List<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n }\n\n String devices_result = this.collectResultFromProcess(proc);\n String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\n\n if (device_id_list.length <= 1) {\n System.out.println(\"No Devices Attached.\");\n return ret_device_id_list;\n }\n\n /**\n * collect the online devices\n */\n String str_device_id = null;\n String device = null;\n String[] str_device_id_parts = null;\n // ignore the first line which is \"List of devices attached\"\n for (int i = 1; i < device_id_list.length; i++) {\n str_device_id = device_id_list[i];\n str_device_id_parts = str_device_id.split(\"\\\\s+\");\n // add the online device\n if (str_device_id_parts[1].equals(\"device\")) {\n device = str_device_id_parts[0];\n ret_device_id_list.add(device);\n System.out.println(device);\n }\n }\n\n return ret_device_id_list;\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}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();", "public Integer getDevices() {\r\n return devices;\r\n }", "public static List<FTDevice> getDevicesByDescription(String description) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && description.equals(device.devDescription)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public List<String> execAdbDevices()\r\n\t{\r\n\t\tList<String> ret_device_id_list = new ArrayList<>();\r\n\t\t\r\n\t\tProcess proc = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tproc = new ProcessBuilder(this.adb_directory, \"devices\").start();\r\n\t\t\tproc.waitFor();\r\n\t\t} catch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t} catch (InterruptedException ire)\r\n\t\t{\r\n\t\t\tire.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString devices_result = this.collectResultFromProcess(proc);\r\n\t String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\r\n\r\n\t if (device_id_list.length <= 1)\r\n\t {\r\n\t \tSystem.out.println(\"No Devices Attached.\");\r\n\t \treturn ret_device_id_list;\r\n\t }\r\n\t \r\n\t /**\r\n\t * collect the online devices \r\n\t */\r\n\t String str_device_id = null;\r\n\t String[] str_device_id_parts = null;\r\n\t // ignore the first line which is \"List of devices attached\"\r\n\t for (int i = 1; i < device_id_list.length; i++)\r\n\t\t{\r\n\t\t\tstr_device_id = device_id_list[i];\r\n\t\t\tstr_device_id_parts = str_device_id.split(\"\\\\s+\");\r\n\t\t\t// add the online device\r\n\t\t\tif (str_device_id_parts[1].equals(\"device\"))\r\n\t\t\t\tret_device_id_list.add(str_device_id_parts[0]);\r\n\t\t}\r\n\t \r\n\t return ret_device_id_list;\r\n\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter) {\n return this.serviceClient.getAllDevices(filter);\n }", "private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}", "public static BLDevice[] discoverDevices(int timeout) throws IOException {\r\n return discoverDevices(InetAddress.getLocalHost(), 0, timeout);\r\n }", "Collection<? extends ReflexDevice> getDevices() {\n return processors.values();\n }", "public List<Device> findAll() throws Exception;", "public org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public List<Device> getUserDevices(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n List <Device> devices = new ArrayList<>();\n try {\n tx = session.beginTransaction();\n \n User user = this.getUser(id);\n\n // Add restriction to get user with username\n Criterion deviceCr = Restrictions.eq(\"userId\", user);\n Criteria cr = session.createCriteria(Device.class);\n cr.add(deviceCr);\n devices = cr.list();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return devices;\n }", "public static ArrayList<MTPDeviceInfo> getDeviceModels() {\r\n\t\tArrayList<MTPDeviceInfo> models = new ArrayList<>();\r\n\r\n\t\tPortableDeviceManager manager = new PortableDeviceManager();\r\n\t\tmanager.refreshDeviceList();\r\n\r\n\t\tfor (PortableDevice device : manager.getDevices()) {\r\n\t\t\tdevice.open();\r\n\t\t\tmodels.add(new MTPDeviceInfo(device.getModel(), device.getSerialNumber()));\r\n\t\t\tdevice.close();\r\n\t\t}\r\n\r\n\t\treturn models;\r\n\t}", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public abstract GraphicsDevice[] getScreenDevices();", "public String[] getSoundDevicesList();", "public ArrayList getDeviceInfo();", "public DeviceUserAuthorization[] getDeviceList() {\n return deviceList;\n }", "public List<ISymbianSDK> getTargetEmulatorDevices() {\n\t\tISDKManager manager = SDKCorePlugin.getSDKManager();\n\t\treturn manager.getSDKList();\n\t}", "public void listDevices(final BluetoothAdapter bluetoothAdapter){\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n ArrayList pairedDeviceList = new ArrayList();\n String address = null;\n\n if (pairedDevices.size() > 0) {\n int i = 0;\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName().trim();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n if (deviceName.equals(DEVICE_NAME)){\n address = device.getAddress().trim();\n System.out.println(address +\"\\n\");\n }\n pairedDeviceList.add(\"Device Name: \" + deviceName + \" Device MAC Address: \" + deviceHardwareAddress);\n }\n\n System.out.println(pairedDeviceList.get(0) + \"\\n\");\n\n final String finalAddress = address;\n AsyncTask.execute(new Runnable(){\n @Override\n public void run(){\n bluetoothDevice = bluetoothAdapter.getRemoteDevice(finalAddress);\n BLEDevice = new BluetoothLeService(bluetoothDevice, quantifenUUID);\n BLEDevice.connect(BluetoothActivity.this, testUUID);\n }\n });\n\n\n }\n }", "public TestDevice[] allocateDevices(final int num) throws DeviceNotAvailableException {\n \n ArrayList<TestDevice> deviceList;\n TestDevice td;\n int index = 0;\n \n if (num < 0) {\n throw new IllegalArgumentException();\n }\n if (num > mDevices.size()) {\n throw new DeviceNotAvailableException(\"The number of connected device(\"\n + mDevices.size() + \" is less than the specified number(\"\n + num + \"). Please plug in enough devices\");\n }\n deviceList = new ArrayList<TestDevice>();\n \n while (index < mDevices.size() && deviceList.size() != num) {\n td = mDevices.get(index);\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n deviceList.add(td);\n }\n index++;\n }\n if (deviceList.size() != num) {\n throw new DeviceNotAvailableException(\"Can't get the specified number(\"\n + num + \") of idle device(s).\");\n }\n return deviceList.toArray(new TestDevice[num]);\n }", "private List<Device> getDeviceCandidates(Node node, State state) {\n\t\tList<Device> candidates = new ArrayList<Device>();\n\t\tfor (Device device : Basic_ILS.devices) {\n\t\t\tif (state.deviceConstraint(node, device)\n\t\t\t\t\t&& state.colocationConstraint(node, device)\n\t\t\t\t\t&& state.memoryConstraint(node, device)) {\n\t\t\t\tcandidates.add(device);\n\t\t\t}\n\t\t}\n\t\treturn candidates;\n\t}", "public void discoverDevices(){\r\n \t// If we're already discovering, stop it\r\n if (mBtAdapter.isDiscovering()) {\r\n mBtAdapter.cancelDiscovery();\r\n }\r\n \r\n Toast.makeText(this, \"Listining for paired devices.\", Toast.LENGTH_LONG).show();\r\n \tmBtAdapter.startDiscovery(); \r\n }", "public org.hl7.fhir.ResourceReference[] getDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEVICE$12, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public String[] getVideoDevicesList();", "public void getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> responseObserver);", "public Multimap<String, OOCSIDevice> devicesByLocation() {\n\t\tpurgeStaleClients();\n\n\t\tMultimap<String, OOCSIDevice> locationsMappedDevices = MultimapBuilder.hashKeys().linkedListValues().build();\n\t\tclients.values().stream().forEach(\n\t\t od -> od.locations.entrySet().stream().forEach(loc -> locationsMappedDevices.put(loc.getKey(), od)));\n\t\treturn locationsMappedDevices;\n\t}", "@Path(\"device\")\n DeviceAPI devices();", "private native void nGetDevices(Vector deviceList);", "@Override\r\n\tpublic Device devGetDevice(boolean allProperties) throws RTException {\n\t\treturn null;\r\n\t}", "private CharSequence[] getSelections() {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n if (null != btAdapter) {\n int idx = 0;\n Set<BluetoothDevice> setDevices = btAdapter.getBondedDevices();\n CharSequence[] entries = new CharSequence[setDevices.size() + 1];\n entries[idx++] = NONE;\n\n for (BluetoothDevice btd : setDevices) {\n entries[idx++] = btd.getName();\n }\n\n // tell bluetooth to stop scanning. it's a power issue\n btAdapter.cancelDiscovery();\n return entries;\n }\n\n CharSequence[] entries = new CharSequence[1];\n entries[0] = NONE;\n return entries;\n }", "List<PCDevice> getAllPC();", "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "private void discoverDevicesAndServices( String uuid ) throws BluetoothStateException\n {\n discoverer.discoverDevices();\n discoverer.discoverServices( uuid );\n }", "public static List<IOTAddress> discoverIOTDevicesSyn() {\n\n\t\tAbsTaskSyn<List<IOTAddress>> udpSocketTask = new UDPSocketTask(\n\t\t\t\t\"connect task\", -1, true, broadcastAddress, data);\n\n\t\tmThreadPool.executeSyn(udpSocketTask, CONSTANTS_DYNAMIC.UDP_BROADCAST_TIMEOUT_DYNAMIC, TimeoutUnit);\n\n\t\tList<IOTAddress>responseList = udpSocketTask.getResult();\n\n\t\treturn responseList;\n\t}", "public static VkPhysicalDevice[] enumeratePhysicalDevices(VkInstance instance)\n throws VulkanException {\n IntBuffer devicesCount = memAllocInt(1);\n int err = vkEnumeratePhysicalDevices(instance, devicesCount, null);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n int devCount = devicesCount.get(0);\n PointerBuffer pDevices = memAllocPointer(devCount);\n\n err = vkEnumeratePhysicalDevices(instance, devicesCount, pDevices);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n VkPhysicalDevice[] devices = new VkPhysicalDevice[devCount];\n for (int i = 0; i < devCount; i++) {\n devices[i] = new VkPhysicalDevice(pDevices.get(i), instance);\n }\n\n memFree(devicesCount);\n memFree(pDevices);\n\n return devices;\n }", "@Override\n public Object getData() {\n return devices;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses() {\n return this.serviceClient.getAllDeviceClasses();\n }", "@Override\n\tpublic TransferData getDevices(int pageSize, int pageIndex,\n\t\t\tboolean isManaged) {\n\t\tTransferData data = new TransferData();\n\t\tDBObject query = new BasicDBObject();\n\n\t\tquery.put(\"managed\", isManaged);\n\n\t\tList<InventoryDevice> devices = getMongoDao().findObjects(\n\t\t\t\tConstant.TABLE_InvDev, query, InventoryDevice.class).readAll();\n\t\tif (devices != null && !devices.isEmpty()) {\n\t\t\tint size = devices.size();\n\t\t\tint start = (pageIndex - 1) * pageSize;\n\n\t\t\tdata.setPageCount(CoreSvrUtil.getPageCount(size, pageSize));\n\t\t\tdata.setListData(devices.subList(start,\n\t\t\t\t\tstart + pageSize < size ? start + pageSize : size));\n\t\t}\n\t\treturn data;\n\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses(Context context) {\n return this.serviceClient.getAllDeviceClasses(context);\n }", "public void getDevices(final Subscriber<List<Device>> devicesSubscriber) {\n if (smartThingsService==null) {\n devicesSubscriber.onError(new Throwable(\"Please login to SmartThings before trying to get devices\"));\n return;\n }\n Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() {\n @Override\n public List<Device> call(List<Device> switches, List<Device> locks) {\n List<Device> devices = new ArrayList<>();\n devices.addAll(switches);\n devices.addAll(locks);\n return devices;\n }\n }).doOnError(new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n devicesSubscriber.onError(throwable);\n }\n }).doOnCompleted(new Action0() {\n @Override\n public void call() {\n //\n }\n }).subscribe(new Action1<List<Device>>() {\n @Override\n public void call(List<Device> devices) {\n devicesSubscriber.onNext(devices);\n }\n });\n }", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "public int getConnectedDeviceCount() {\n return getConnectedDevices().size();\n }", "@RequiresBluetoothConnectPermission\n @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)\n public List<DeviceGroup> getDiscoveredGroups() {\n return getDiscoveredGroups(false);\n }", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "@Override\n public ListWirelessDevicesResult listWirelessDevices(ListWirelessDevicesRequest request) {\n request = beforeClientExecution(request);\n return executeListWirelessDevices(request);\n }", "public void checkDevices() throws TNotFoundEx{\n\t\tString command = \"adb devices -l\";\n\t\tCommando commando = new Commando();\n\t\tString op = commando.executeCommand(command);\n\t\t\n\t\tOtherUtil oU = new OtherUtil();\n\t\tArrayList<String> devices = oU.getRegexFromString(op, \"(model:.*?device:.+$?)\");\n\t\tint eligDevices = devices.size();\n\t\t\n\t\tif (eligDevices>1)\n\t\t\tthrow new TNotFoundEx(\"ERROR: 2 or more Android devices are connected to the host, please connect only one Android device.\");\n\t\tif (eligDevices == 0)\n\t\t\tthrow new TNotFoundEx(\"ERROR: No Android devices detected by the host. Execute adb devices -l to check the connected devices\");\n\t\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getUserDevices(int userId) {\n Query query = em.createQuery(\"SELECT u FROM Device u where user_id=\"+ userId);\n List<Device> users = new ArrayList<Device>();\n users = query.getResultList();\n return users;\n }", "private void getDevice(){\n\t\tdialog.setContentView(R.layout.device_list_popup);\n\t\tdialog.setCancelable(true);\n\t\tdialog.setTitle(\"Paired Bluetooth Devices\");\n\t\tdialog.show();\n\t\tProgressBar tempSpinner = (ProgressBar)dialog.findViewById(R.id.progressBar);\n\t\ttempSpinner.setVisibility(View.INVISIBLE); //Hide the progress bar while we aren't connecting\n\n\t\tListView lv = (ListView) dialog.findViewById(R.id.device_list_display);\n\t\tlv.setAdapter(new ArrayAdapter<String> (this, R.layout.device_list_popup));\n\n\t\tlv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\tpublic void onItemClick(AdapterView<?> arg, View view, int position, long id) {\n\t\t\t\tString address = (String) ((TextView) view).getText();\n\t\t\t\tfor (String temp : address.split(\"\\n\")) {\n\t\t\t\t\taddress = temp; //Only get address, discard name\n\t\t\t\t}\n\t\t\t\tBluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address);\n\t\t\t\tnew ConnectTask().execute(device);\n\t\t\t}\n\t\t});\n\t}", "public Object[] getAllChannels() {\n\t\tObject[] res = new Object[getChannelCount()];\n\t\tfor (int ch = 0; ch < getChannelCount(); ch++) {\n\t\t\tres[ch] = getChannel(ch);\n\t\t}\n\t\treturn res;\n\t}", "public BluetoothDevice getDevice() {\n return this.device;\n }", "public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}", "public T scanAllDevices(DeviceType dType) {\n for (String devLabel : Globals.core().getLoadedDevicesOfType(dType)) {\n T device = getAutoInstance(devLabel);\n if (device != null) {\n return device;\n }\n }\n Globals.mm().logs().logMessage(\"Autofinder found no devices.\");\n return null; //Nothing was identified.\n }", "Reference getDevice();", "public Map<String, Set<String>> getBufferedDeviceNamesByType();", "public Collection<SendenDevice> getClientsConnected() {\n return clientsConnected.values();\n }", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "public void displayPairedDevices() {\n\t\tBluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n\t\t\t\t.getDefaultAdapter();\n\t\tSet<BluetoothDevice> bondedDevices = mBluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\n\t\tList<String> s = new ArrayList<String>();\n\t\tpairedDevices = new ArrayList<BluetoothDevice>();\n\t\tfor (BluetoothDevice bt : bondedDevices) {\n\t\t\ts.add(bt.getName());\n\t\t\tpairedDevices.add(bt);\n\t\t}\n\t\tListView List = (ListView) findViewById(R.id.paired_devices);\n\n\t\tList.setAdapter(new ArrayAdapter<String>(this, R.layout.device_row, s));\n\t}", "public DeviceLocator getDeviceLocator();", "@Nullable\n public List<BluetoothGattService> getServices() {\n BleMultiConnector bleMultiConnector = this.bleMultiConnector;\n if (bleMultiConnector == null) {\n return null;\n }\n if (address == null) {\n return null;\n }\n return bleMultiConnector.getServices(address);\n }", "public ArrayList<String> getConnectedUsers() {\r\n\t\tArrayList<String> connectedUsers = new ArrayList<>();\r\n\t\tString message=\"107\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\t//connectedUsers.add(\"Default\");\r\n\t\t\r\n\t\treturn connectedUsers;\r\n\t}", "public static ArrayList<Device> getDevices (JSONArray jsonArray){\n ArrayList<Device> devices = new ArrayList<Device>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n JSONObject o = jsonArray.getJSONObject(i);\n Device d = new Device(o.getString(Utility.DeviceName), o.getString(Utility.Technology), o.getBoolean(Utility.AlwaysOn));\n\n /* Servs */\n JSONArray servsJson = o.getJSONArray(Utility.Services);\n for (int j = 0; j < servsJson.length(); j++) {\n DeviceService ds = new DeviceService(servsJson.getJSONObject(j).getString(Utility.ServiceName), servsJson.getJSONObject(j).getString(Utility.ServiceType));\n ds.assignToDevice(d);\n d.addService(ds);\n\n JSONArray coms = servsJson.getJSONObject(j).getJSONArray(Utility.Commands);\n for (int z = 0; z < coms.length(); z++) {\n try {\n ds.addCommand(new Command(coms.getJSONObject(z).getString(Utility.CommandName),\n coms.getJSONObject(z).getString(Utility.CommandType)));\n }\n catch (JSONException e) {\n Log.w(\"Command\", \"Error adding command\");\n }\n }\n }\n\n\n\n devices.add(d);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n return devices;\n }", "List<DeviceInfo> getDevicesInfo(List<DeviceIdentifier> deviceIdentifiers) throws DeviceDetailsMgtException;", "public void initDevices() {\n for (Device device: deviceList) {\n device.init(getCpu().getTime());\n }\n }", "public cwterm.service.rigctl.xsd.Channel[] getChannelList() {\n return localChannelList;\n }" ]
[ "0.80989105", "0.72272813", "0.72062236", "0.71701276", "0.7148124", "0.71241355", "0.7110592", "0.70709777", "0.7046795", "0.7037522", "0.70354474", "0.6981871", "0.6933781", "0.68721306", "0.6846349", "0.6843083", "0.68374246", "0.68365854", "0.681574", "0.67951554", "0.67692745", "0.6748852", "0.6710842", "0.66993093", "0.6679448", "0.6644589", "0.64983046", "0.64351237", "0.63566", "0.6350354", "0.633959", "0.6337646", "0.6262992", "0.6262243", "0.6257564", "0.6249565", "0.6245976", "0.62045115", "0.62033415", "0.6172684", "0.61679757", "0.6119143", "0.61105686", "0.61002046", "0.60815865", "0.60727346", "0.6031951", "0.60159194", "0.60039675", "0.5985207", "0.5970969", "0.59120345", "0.58954954", "0.5863308", "0.5858006", "0.58290565", "0.58187604", "0.57957804", "0.5717477", "0.57100993", "0.5679946", "0.5653837", "0.5646074", "0.5633889", "0.56208986", "0.5602169", "0.5594676", "0.5590133", "0.55828655", "0.5564523", "0.54821074", "0.5465543", "0.54639554", "0.542317", "0.54139006", "0.54074484", "0.5403507", "0.5399101", "0.539861", "0.53870904", "0.53696644", "0.53666836", "0.53627133", "0.5341675", "0.53178436", "0.5308329", "0.52883035", "0.5288096", "0.5281822", "0.52565557", "0.5240766", "0.52255344", "0.52065897", "0.52057916", "0.5205569", "0.5182669", "0.51782155", "0.5175429", "0.51733804", "0.51539385" ]
0.60933936
44
Get the connected FTDI devices. It will not contain opened devices.
public static List<FTDevice> getDevicesByDeviceType(DeviceType deviceType) throws FTD2XXException { IntByReference devNum = new IntByReference(); ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum)); ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue()); for (int i = 0; i < devNum.getValue(); i++) { FTDevice device = getXthDevice(i); if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && device.devType.equals(deviceType)) { devs.add(device); } } LOGGER.info("Found devs: {} (All:{})", devs.size(), devNum.getValue()); return devs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "public Cursor getDevices(){\n String tabla = devicesContract.deviceEntry.tableName,\n selection = null,\n groupBy = null,\n having = null,\n orderBy = null;\n String[] columnas = null, selectionArgs = null;\n Cursor d = getDevice(tabla,columnas,selection,selectionArgs,groupBy,having,orderBy);\n return d;\n }", "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 void getDevicesList()\n {\n MidiDevice.Info[]\taInfos = MidiSystem.getMidiDeviceInfo();\n\t\tfor (int i = 0; i < aInfos.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMidiDevice\tdevice = MidiSystem.getMidiDevice(aInfos[i]);\n\t\t\t\tboolean\t\tbAllowsInput = (device.getMaxTransmitters() != 0);\n\t\t\t\tboolean\t\tbAllowsOutput = (device.getMaxReceivers() != 0);\n\t\t\t\tif (bAllowsInput || bAllowsOutput)\n\t\t\t\t{\n\n\t\t\t\t\tSystem.out.println(i + \"\" + \" \"\n\t\t\t\t\t\t+ (bAllowsInput?\"IN \":\" \")\n\t\t\t\t\t\t+ (bAllowsOutput?\"OUT \":\" \")\n\t\t\t\t\t\t+ aInfos[i].getName() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVendor() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVersion() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getDescription());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\" + i + \" \" + aInfos[i].getName());\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (MidiUnavailableException e)\n\t\t\t{\n\t\t\t\t// device is obviously not available...\n\t\t\t\t// out(e);\n\t\t\t}\n\t\t}\n\t\tif (aInfos.length == 0)\n\t\t{\n\t\t\tSystem.out.println(\"[No devices available]\");\n\t\t}\n\t\t//System.exit(0);\n }", "public List getDevices() {\n return devices;\n }", "public IDevice[] getDevices() { return devices; }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "public Peripheral[] getDevices() {\r\n\treturn (Peripheral[]) this.deviceList.toArray(new Peripheral[0]);\r\n }", "public List<Device> getRunningDevices();", "public static ArrayList<File> findDevices() {\n return findDevices(\"/dev/\");\n }", "public List<MediaDevice> getMediaDevices() {\n\n List<MediaDevice> mediaDevices = new ArrayList<>();\n\n for (MediaDevice d : this.devices) {\n if (d.hasMediaInterface() && d.hasInstance()) {\n mediaDevices.add(d);\n }\n }\n\n return mediaDevices;\n }", "public List<String> getConnectedDevices() {\n if (services.size() == 0) {\n return new ArrayList<String>();\n }\n\n HashSet<String> toRet = new HashSet<String>();\n\n for (String s : services.keySet()) {\n ConnectionService service = services.get(s);\n\n if (service.getState() == ConnectionConstants.STATE_CONNECTED) {\n toRet.add(s);\n }\n }\n\n return new ArrayList<String>(toRet);\n }", "List<DeviceDetails> getDevices();", "public static List<FTDevice> getDevices(boolean isIncludeOpenedDevices) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n // device is occupied?\n if (isIncludeOpenedDevices) {\n devs.add(device);\n }\n else {\n if ((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) {\n devs.add(device);\n }\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "public Collection<String> listDevices();", "protected List<PCIDevice> probeDevices() {\n final ArrayList<PCIDevice> result = new ArrayList<PCIDevice>();\n rootBus.probeDevices(result);\n return result;\n }", "public final TestDevice[] getDeviceList() {\n return mDevices.toArray(new TestDevice[mDevices.size()]);\n }", "public Set<BluetoothDevice> getPairedDevicesList(){\n if(isBluetoothSupported()){\n if(!baBTAdapter.isEnabled()){\n turnOnBluetooth();\n }\n }\n else{\n return null;\n }\n\n return baBTAdapter.getBondedDevices();\n }", "public List<PushDevice> listDevices() {\n checkUsbLibState();\n\n List<PushDevice> devices = new ArrayList<>();\n\n // Read the USB device list\n DeviceList list = new DeviceList();\n int result = LibUsb.getDeviceList(null, list);\n if (result < 0) {\n throw new LibUsbException(\"Unable to get device list\", result);\n }\n\n try {\n // Iterate over all devices and scan for the right one\n for (Device device : list) {\n DeviceDescriptor descriptor = new DeviceDescriptor();\n result = LibUsb.getDeviceDescriptor(device, descriptor);\n if (result != LibUsb.SUCCESS) {\n throw new LibUsbException(\"Unable to read device descriptor\", result);\n }\n if (descriptor.bDeviceClass() == LibUsb.CLASS_PER_INTERFACE &&\n descriptor.idVendor() == VENDOR_ID && descriptor.idProduct() == PRODUCT_ID) {\n\n devices.add(new PushDevice(device));\n }\n }\n } finally {\n // Ensure the allocated device list is freed\n LibUsb.freeDeviceList(list, true);\n }\n\n return devices;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getAllDevices() {\n\n Query query = em.createQuery(\"SELECT d FROM Device d\");\n List<Device> devices = new ArrayList<Device>();\n devices = query.getResultList();\n return devices;\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 List<CECDevice> scanDevices() {\n sendCommand(\"scan\");\n return CECClientParser.parseScanResult(waitForOutputLine(\"===================\"));\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter, Context context) {\n return this.serviceClient.getAllDevices(filter, context);\n }", "private void getPairedDevices() {\n\t\tdevicesArray = btAdapter.getBondedDevices();\n\t\tif(devicesArray.size()>0){\n\t\t\tfor(BluetoothDevice device:devicesArray){\n\t\t\t\tpairedDevices.add(device.getName());\n\t\t\t}\n\t\t}\n\t}", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }", "public static List<String> getDeviceList() {\n\t\tList<String> str = CommandRunner.exec(CMD_GET_DEVICE_ID);\n\t\tList<String> ids = new ArrayList<String>();\n\t\tfor (int i = 1; i < str.size(); i++) {\n\t\t\tString id = str.get(i).split(\" |\\t\")[0].trim();\n\t\t\tif (!id.isEmpty()) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\t\treturn ids;\n\t}", "public List<Device> getAllDevices(DeviceType type) {\n LOG.info(\"Starting get all OpenCL device by platform \" + platform + \".\");\n int[] numDevicesArray = new int[1];\n long deviceType = type.toCLType();\n CL.clGetDeviceIDs(platform, deviceType, 0, null, numDevicesArray);\n int numDevices = numDevicesArray[0];\n LOG.info(\"Found \" + numDevices + \" OpenCL devices.\");\n cl_device_id[] allRawDevices = new cl_device_id[numDevices];\n CL.clGetDeviceIDs(platform, deviceType, numDevices, allRawDevices, null);\n return Arrays.stream(allRawDevices)\n .filter(Objects::nonNull)\n .map(rawDevice -> new Device(rawDevice, this))\n .collect(Collectors.toList());\n }", "public Collection<BluetoothDevice> getUniqueConnectedDevices() {\n ArrayList<BluetoothDevice> result;\n synchronized (mLock) {\n result = new ArrayList<>(mHfpDevicesByAddress.values());\n }\n Set<Long> seenHiSyncIds = new LinkedHashSet<>();\n // Add the left-most active device to the seen list so that we match up with the list\n // generated in BluetoothRouteManager.\n if (mBluetoothHearingAidService != null) {\n for (BluetoothDevice device : mBluetoothHearingAidService.getActiveDevices()) {\n if (device != null) {\n result.add(device);\n seenHiSyncIds.add(mHearingAidDeviceSyncIds.getOrDefault(device, -1L));\n break;\n }\n }\n }\n synchronized (mLock) {\n for (BluetoothDevice d : mHearingAidDevicesByAddress.values()) {\n long hiSyncId = mHearingAidDeviceSyncIds.getOrDefault(d, -1L);\n if (seenHiSyncIds.contains(hiSyncId)) {\n continue;\n }\n result.add(d);\n seenHiSyncIds.add(hiSyncId);\n }\n }\n return Collections.unmodifiableCollection(result);\n }", "public List<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n }\n\n String devices_result = this.collectResultFromProcess(proc);\n String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\n\n if (device_id_list.length <= 1) {\n System.out.println(\"No Devices Attached.\");\n return ret_device_id_list;\n }\n\n /**\n * collect the online devices\n */\n String str_device_id = null;\n String device = null;\n String[] str_device_id_parts = null;\n // ignore the first line which is \"List of devices attached\"\n for (int i = 1; i < device_id_list.length; i++) {\n str_device_id = device_id_list[i];\n str_device_id_parts = str_device_id.split(\"\\\\s+\");\n // add the online device\n if (str_device_id_parts[1].equals(\"device\")) {\n device = str_device_id_parts[0];\n ret_device_id_list.add(device);\n System.out.println(device);\n }\n }\n\n return ret_device_id_list;\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}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();", "public static List<FTDevice> getDevicesByDescription(String description) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && description.equals(device.devDescription)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public Integer getDevices() {\r\n return devices;\r\n }", "public List<String> execAdbDevices()\r\n\t{\r\n\t\tList<String> ret_device_id_list = new ArrayList<>();\r\n\t\t\r\n\t\tProcess proc = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tproc = new ProcessBuilder(this.adb_directory, \"devices\").start();\r\n\t\t\tproc.waitFor();\r\n\t\t} catch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t} catch (InterruptedException ire)\r\n\t\t{\r\n\t\t\tire.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString devices_result = this.collectResultFromProcess(proc);\r\n\t String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\r\n\r\n\t if (device_id_list.length <= 1)\r\n\t {\r\n\t \tSystem.out.println(\"No Devices Attached.\");\r\n\t \treturn ret_device_id_list;\r\n\t }\r\n\t \r\n\t /**\r\n\t * collect the online devices \r\n\t */\r\n\t String str_device_id = null;\r\n\t String[] str_device_id_parts = null;\r\n\t // ignore the first line which is \"List of devices attached\"\r\n\t for (int i = 1; i < device_id_list.length; i++)\r\n\t\t{\r\n\t\t\tstr_device_id = device_id_list[i];\r\n\t\t\tstr_device_id_parts = str_device_id.split(\"\\\\s+\");\r\n\t\t\t// add the online device\r\n\t\t\tif (str_device_id_parts[1].equals(\"device\"))\r\n\t\t\t\tret_device_id_list.add(str_device_id_parts[0]);\r\n\t\t}\r\n\t \r\n\t return ret_device_id_list;\r\n\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<Device> getAllDevices(String filter) {\n return this.serviceClient.getAllDevices(filter);\n }", "private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}", "public static BLDevice[] discoverDevices(int timeout) throws IOException {\r\n return discoverDevices(InetAddress.getLocalHost(), 0, timeout);\r\n }", "Collection<? extends ReflexDevice> getDevices() {\n return processors.values();\n }", "public static List<FTDevice> getDevicesBySerialNumber(String serialNumber) throws FTD2XXException {\n IntByReference devNum = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum));\n\n ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue());\n\n for (int i = 0; i < devNum.getValue(); i++) {\n FTDevice device = getXthDevice(i);\n\n if (((device.getFlag() & FTD2XX.FT_FLAGS_OPENED) == 0) && serialNumber.equals(device.devSerialNumber)) {\n devs.add(device);\n }\n\n }\n\n LOGGER.info(\"Found devs: {} (All:{})\", devs.size(), devNum.getValue());\n\n return devs;\n }", "public List<Device> findAll() throws Exception;", "public org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public List<Device> getUserDevices(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n List <Device> devices = new ArrayList<>();\n try {\n tx = session.beginTransaction();\n \n User user = this.getUser(id);\n\n // Add restriction to get user with username\n Criterion deviceCr = Restrictions.eq(\"userId\", user);\n Criteria cr = session.createCriteria(Device.class);\n cr.add(deviceCr);\n devices = cr.list();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return devices;\n }", "public static ArrayList<MTPDeviceInfo> getDeviceModels() {\r\n\t\tArrayList<MTPDeviceInfo> models = new ArrayList<>();\r\n\r\n\t\tPortableDeviceManager manager = new PortableDeviceManager();\r\n\t\tmanager.refreshDeviceList();\r\n\r\n\t\tfor (PortableDevice device : manager.getDevices()) {\r\n\t\t\tdevice.open();\r\n\t\t\tmodels.add(new MTPDeviceInfo(device.getModel(), device.getSerialNumber()));\r\n\t\t\tdevice.close();\r\n\t\t}\r\n\r\n\t\treturn models;\r\n\t}", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public abstract GraphicsDevice[] getScreenDevices();", "public String[] getSoundDevicesList();", "public ArrayList getDeviceInfo();", "public DeviceUserAuthorization[] getDeviceList() {\n return deviceList;\n }", "public List<ISymbianSDK> getTargetEmulatorDevices() {\n\t\tISDKManager manager = SDKCorePlugin.getSDKManager();\n\t\treturn manager.getSDKList();\n\t}", "public void listDevices(final BluetoothAdapter bluetoothAdapter){\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n ArrayList pairedDeviceList = new ArrayList();\n String address = null;\n\n if (pairedDevices.size() > 0) {\n int i = 0;\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName().trim();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n if (deviceName.equals(DEVICE_NAME)){\n address = device.getAddress().trim();\n System.out.println(address +\"\\n\");\n }\n pairedDeviceList.add(\"Device Name: \" + deviceName + \" Device MAC Address: \" + deviceHardwareAddress);\n }\n\n System.out.println(pairedDeviceList.get(0) + \"\\n\");\n\n final String finalAddress = address;\n AsyncTask.execute(new Runnable(){\n @Override\n public void run(){\n bluetoothDevice = bluetoothAdapter.getRemoteDevice(finalAddress);\n BLEDevice = new BluetoothLeService(bluetoothDevice, quantifenUUID);\n BLEDevice.connect(BluetoothActivity.this, testUUID);\n }\n });\n\n\n }\n }", "public TestDevice[] allocateDevices(final int num) throws DeviceNotAvailableException {\n \n ArrayList<TestDevice> deviceList;\n TestDevice td;\n int index = 0;\n \n if (num < 0) {\n throw new IllegalArgumentException();\n }\n if (num > mDevices.size()) {\n throw new DeviceNotAvailableException(\"The number of connected device(\"\n + mDevices.size() + \" is less than the specified number(\"\n + num + \"). Please plug in enough devices\");\n }\n deviceList = new ArrayList<TestDevice>();\n \n while (index < mDevices.size() && deviceList.size() != num) {\n td = mDevices.get(index);\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n deviceList.add(td);\n }\n index++;\n }\n if (deviceList.size() != num) {\n throw new DeviceNotAvailableException(\"Can't get the specified number(\"\n + num + \") of idle device(s).\");\n }\n return deviceList.toArray(new TestDevice[num]);\n }", "private List<Device> getDeviceCandidates(Node node, State state) {\n\t\tList<Device> candidates = new ArrayList<Device>();\n\t\tfor (Device device : Basic_ILS.devices) {\n\t\t\tif (state.deviceConstraint(node, device)\n\t\t\t\t\t&& state.colocationConstraint(node, device)\n\t\t\t\t\t&& state.memoryConstraint(node, device)) {\n\t\t\t\tcandidates.add(device);\n\t\t\t}\n\t\t}\n\t\treturn candidates;\n\t}", "public void discoverDevices(){\r\n \t// If we're already discovering, stop it\r\n if (mBtAdapter.isDiscovering()) {\r\n mBtAdapter.cancelDiscovery();\r\n }\r\n \r\n Toast.makeText(this, \"Listining for paired devices.\", Toast.LENGTH_LONG).show();\r\n \tmBtAdapter.startDiscovery(); \r\n }", "public org.hl7.fhir.ResourceReference[] getDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEVICE$12, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public String[] getVideoDevicesList();", "public void getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> responseObserver);", "public Multimap<String, OOCSIDevice> devicesByLocation() {\n\t\tpurgeStaleClients();\n\n\t\tMultimap<String, OOCSIDevice> locationsMappedDevices = MultimapBuilder.hashKeys().linkedListValues().build();\n\t\tclients.values().stream().forEach(\n\t\t od -> od.locations.entrySet().stream().forEach(loc -> locationsMappedDevices.put(loc.getKey(), od)));\n\t\treturn locationsMappedDevices;\n\t}", "@Path(\"device\")\n DeviceAPI devices();", "private native void nGetDevices(Vector deviceList);", "@Override\r\n\tpublic Device devGetDevice(boolean allProperties) throws RTException {\n\t\treturn null;\r\n\t}", "private CharSequence[] getSelections() {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n if (null != btAdapter) {\n int idx = 0;\n Set<BluetoothDevice> setDevices = btAdapter.getBondedDevices();\n CharSequence[] entries = new CharSequence[setDevices.size() + 1];\n entries[idx++] = NONE;\n\n for (BluetoothDevice btd : setDevices) {\n entries[idx++] = btd.getName();\n }\n\n // tell bluetooth to stop scanning. it's a power issue\n btAdapter.cancelDiscovery();\n return entries;\n }\n\n CharSequence[] entries = new CharSequence[1];\n entries[0] = NONE;\n return entries;\n }", "List<PCDevice> getAllPC();", "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "private void discoverDevicesAndServices( String uuid ) throws BluetoothStateException\n {\n discoverer.discoverDevices();\n discoverer.discoverServices( uuid );\n }", "public static List<IOTAddress> discoverIOTDevicesSyn() {\n\n\t\tAbsTaskSyn<List<IOTAddress>> udpSocketTask = new UDPSocketTask(\n\t\t\t\t\"connect task\", -1, true, broadcastAddress, data);\n\n\t\tmThreadPool.executeSyn(udpSocketTask, CONSTANTS_DYNAMIC.UDP_BROADCAST_TIMEOUT_DYNAMIC, TimeoutUnit);\n\n\t\tList<IOTAddress>responseList = udpSocketTask.getResult();\n\n\t\treturn responseList;\n\t}", "public static VkPhysicalDevice[] enumeratePhysicalDevices(VkInstance instance)\n throws VulkanException {\n IntBuffer devicesCount = memAllocInt(1);\n int err = vkEnumeratePhysicalDevices(instance, devicesCount, null);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n int devCount = devicesCount.get(0);\n PointerBuffer pDevices = memAllocPointer(devCount);\n\n err = vkEnumeratePhysicalDevices(instance, devicesCount, pDevices);\n VulkanResult.validate(err, \"Could not enumerate physical devices!\");\n\n VkPhysicalDevice[] devices = new VkPhysicalDevice[devCount];\n for (int i = 0; i < devCount; i++) {\n devices[i] = new VkPhysicalDevice(pDevices.get(i), instance);\n }\n\n memFree(devicesCount);\n memFree(pDevices);\n\n return devices;\n }", "@Override\n public Object getData() {\n return devices;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses() {\n return this.serviceClient.getAllDeviceClasses();\n }", "@Override\n\tpublic TransferData getDevices(int pageSize, int pageIndex,\n\t\t\tboolean isManaged) {\n\t\tTransferData data = new TransferData();\n\t\tDBObject query = new BasicDBObject();\n\n\t\tquery.put(\"managed\", isManaged);\n\n\t\tList<InventoryDevice> devices = getMongoDao().findObjects(\n\t\t\t\tConstant.TABLE_InvDev, query, InventoryDevice.class).readAll();\n\t\tif (devices != null && !devices.isEmpty()) {\n\t\t\tint size = devices.size();\n\t\t\tint start = (pageIndex - 1) * pageSize;\n\n\t\t\tdata.setPageCount(CoreSvrUtil.getPageCount(size, pageSize));\n\t\t\tdata.setListData(devices.subList(start,\n\t\t\t\t\tstart + pageSize < size ? start + pageSize : size));\n\t\t}\n\t\treturn data;\n\t}", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses(Context context) {\n return this.serviceClient.getAllDeviceClasses(context);\n }", "public void getDevices(final Subscriber<List<Device>> devicesSubscriber) {\n if (smartThingsService==null) {\n devicesSubscriber.onError(new Throwable(\"Please login to SmartThings before trying to get devices\"));\n return;\n }\n Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() {\n @Override\n public List<Device> call(List<Device> switches, List<Device> locks) {\n List<Device> devices = new ArrayList<>();\n devices.addAll(switches);\n devices.addAll(locks);\n return devices;\n }\n }).doOnError(new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n devicesSubscriber.onError(throwable);\n }\n }).doOnCompleted(new Action0() {\n @Override\n public void call() {\n //\n }\n }).subscribe(new Action1<List<Device>>() {\n @Override\n public void call(List<Device> devices) {\n devicesSubscriber.onNext(devices);\n }\n });\n }", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "@RequiresBluetoothConnectPermission\n @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)\n public List<DeviceGroup> getDiscoveredGroups() {\n return getDiscoveredGroups(false);\n }", "public int getConnectedDeviceCount() {\n return getConnectedDevices().size();\n }", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "@Override\n public ListWirelessDevicesResult listWirelessDevices(ListWirelessDevicesRequest request) {\n request = beforeClientExecution(request);\n return executeListWirelessDevices(request);\n }", "public void checkDevices() throws TNotFoundEx{\n\t\tString command = \"adb devices -l\";\n\t\tCommando commando = new Commando();\n\t\tString op = commando.executeCommand(command);\n\t\t\n\t\tOtherUtil oU = new OtherUtil();\n\t\tArrayList<String> devices = oU.getRegexFromString(op, \"(model:.*?device:.+$?)\");\n\t\tint eligDevices = devices.size();\n\t\t\n\t\tif (eligDevices>1)\n\t\t\tthrow new TNotFoundEx(\"ERROR: 2 or more Android devices are connected to the host, please connect only one Android device.\");\n\t\tif (eligDevices == 0)\n\t\t\tthrow new TNotFoundEx(\"ERROR: No Android devices detected by the host. Execute adb devices -l to check the connected devices\");\n\t\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getUserDevices(int userId) {\n Query query = em.createQuery(\"SELECT u FROM Device u where user_id=\"+ userId);\n List<Device> users = new ArrayList<Device>();\n users = query.getResultList();\n return users;\n }", "private void getDevice(){\n\t\tdialog.setContentView(R.layout.device_list_popup);\n\t\tdialog.setCancelable(true);\n\t\tdialog.setTitle(\"Paired Bluetooth Devices\");\n\t\tdialog.show();\n\t\tProgressBar tempSpinner = (ProgressBar)dialog.findViewById(R.id.progressBar);\n\t\ttempSpinner.setVisibility(View.INVISIBLE); //Hide the progress bar while we aren't connecting\n\n\t\tListView lv = (ListView) dialog.findViewById(R.id.device_list_display);\n\t\tlv.setAdapter(new ArrayAdapter<String> (this, R.layout.device_list_popup));\n\n\t\tlv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\tpublic void onItemClick(AdapterView<?> arg, View view, int position, long id) {\n\t\t\t\tString address = (String) ((TextView) view).getText();\n\t\t\t\tfor (String temp : address.split(\"\\n\")) {\n\t\t\t\t\taddress = temp; //Only get address, discard name\n\t\t\t\t}\n\t\t\t\tBluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address);\n\t\t\t\tnew ConnectTask().execute(device);\n\t\t\t}\n\t\t});\n\t}", "public Object[] getAllChannels() {\n\t\tObject[] res = new Object[getChannelCount()];\n\t\tfor (int ch = 0; ch < getChannelCount(); ch++) {\n\t\t\tres[ch] = getChannel(ch);\n\t\t}\n\t\treturn res;\n\t}", "public BluetoothDevice getDevice() {\n return this.device;\n }", "public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}", "public T scanAllDevices(DeviceType dType) {\n for (String devLabel : Globals.core().getLoadedDevicesOfType(dType)) {\n T device = getAutoInstance(devLabel);\n if (device != null) {\n return device;\n }\n }\n Globals.mm().logs().logMessage(\"Autofinder found no devices.\");\n return null; //Nothing was identified.\n }", "Reference getDevice();", "public Map<String, Set<String>> getBufferedDeviceNamesByType();", "public Collection<SendenDevice> getClientsConnected() {\n return clientsConnected.values();\n }", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "public void displayPairedDevices() {\n\t\tBluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n\t\t\t\t.getDefaultAdapter();\n\t\tSet<BluetoothDevice> bondedDevices = mBluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\n\t\tList<String> s = new ArrayList<String>();\n\t\tpairedDevices = new ArrayList<BluetoothDevice>();\n\t\tfor (BluetoothDevice bt : bondedDevices) {\n\t\t\ts.add(bt.getName());\n\t\t\tpairedDevices.add(bt);\n\t\t}\n\t\tListView List = (ListView) findViewById(R.id.paired_devices);\n\n\t\tList.setAdapter(new ArrayAdapter<String>(this, R.layout.device_row, s));\n\t}", "public DeviceLocator getDeviceLocator();", "@Nullable\n public List<BluetoothGattService> getServices() {\n BleMultiConnector bleMultiConnector = this.bleMultiConnector;\n if (bleMultiConnector == null) {\n return null;\n }\n if (address == null) {\n return null;\n }\n return bleMultiConnector.getServices(address);\n }", "public ArrayList<String> getConnectedUsers() {\r\n\t\tArrayList<String> connectedUsers = new ArrayList<>();\r\n\t\tString message=\"107\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\t//connectedUsers.add(\"Default\");\r\n\t\t\r\n\t\treturn connectedUsers;\r\n\t}", "public static ArrayList<Device> getDevices (JSONArray jsonArray){\n ArrayList<Device> devices = new ArrayList<Device>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n JSONObject o = jsonArray.getJSONObject(i);\n Device d = new Device(o.getString(Utility.DeviceName), o.getString(Utility.Technology), o.getBoolean(Utility.AlwaysOn));\n\n /* Servs */\n JSONArray servsJson = o.getJSONArray(Utility.Services);\n for (int j = 0; j < servsJson.length(); j++) {\n DeviceService ds = new DeviceService(servsJson.getJSONObject(j).getString(Utility.ServiceName), servsJson.getJSONObject(j).getString(Utility.ServiceType));\n ds.assignToDevice(d);\n d.addService(ds);\n\n JSONArray coms = servsJson.getJSONObject(j).getJSONArray(Utility.Commands);\n for (int z = 0; z < coms.length(); z++) {\n try {\n ds.addCommand(new Command(coms.getJSONObject(z).getString(Utility.CommandName),\n coms.getJSONObject(z).getString(Utility.CommandType)));\n }\n catch (JSONException e) {\n Log.w(\"Command\", \"Error adding command\");\n }\n }\n }\n\n\n\n devices.add(d);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n return devices;\n }", "List<DeviceInfo> getDevicesInfo(List<DeviceIdentifier> deviceIdentifiers) throws DeviceDetailsMgtException;", "public void initDevices() {\n for (Device device: deviceList) {\n device.init(getCpu().getTime());\n }\n }", "public cwterm.service.rigctl.xsd.Channel[] getChannelList() {\n return localChannelList;\n }" ]
[ "0.8099461", "0.72263575", "0.72055846", "0.7169115", "0.7148732", "0.71234417", "0.71117556", "0.70702356", "0.70459956", "0.70381206", "0.7034636", "0.69801295", "0.69342947", "0.6872874", "0.684497", "0.6842467", "0.6838136", "0.68370724", "0.68146825", "0.6795203", "0.67683303", "0.6748582", "0.6712098", "0.66985095", "0.6679681", "0.649755", "0.64352196", "0.6355925", "0.63500684", "0.6340348", "0.6336823", "0.6263331", "0.6261622", "0.62572104", "0.6248869", "0.62446266", "0.62036765", "0.62032795", "0.6172075", "0.6168006", "0.61184096", "0.61101955", "0.6099358", "0.6094198", "0.60809606", "0.6072351", "0.6033442", "0.6016514", "0.6004055", "0.5985826", "0.59698105", "0.59103036", "0.5895015", "0.5863084", "0.58587635", "0.58294564", "0.5817917", "0.57972044", "0.57146055", "0.5709629", "0.5680449", "0.5654531", "0.5646515", "0.5632481", "0.56207526", "0.5599465", "0.55928695", "0.55891937", "0.55841285", "0.55630374", "0.5482396", "0.54642886", "0.5462863", "0.5423859", "0.5413273", "0.5408409", "0.5404452", "0.5398258", "0.539786", "0.5387732", "0.5369856", "0.53681266", "0.5364293", "0.5341586", "0.5317529", "0.5307824", "0.52883863", "0.52880824", "0.5280753", "0.52543646", "0.52388644", "0.5225477", "0.5207187", "0.5205919", "0.5203866", "0.5181416", "0.5178586", "0.5175968", "0.5174175", "0.5152521" ]
0.6645397
25
Open connection with device.
public void open() throws FTD2XXException { Memory memory = new Memory(16); memory.setString(0, devSerialNumber); PointerByReference handle = new PointerByReference(); ensureFTStatus(ftd2xx.FT_OpenEx(memory, FTD2XX.FT_OPEN_BY_SERIAL_NUMBER, handle)); this.ftHandle = handle.getValue(); open = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openConnection () {\n String[] labels = {\"Host :\", \"Port :\"};\n String[] initialValues = {\"localhost\", \"1111\"};\n StandardDialogClient openHandler = new StandardDialogClient () {\n\t@Override\n\tpublic void dialogDismissed (StandardDialog d, int code) {\n\t try {\n\t InputDialog inputD = (InputDialog)d;\n\t if (inputD.wasCancelled ()) return;\n\t String[] results = inputD.getResults ();\n\t String host = results[0];\n\t String port = results[1];\n\t TwGateway connection =\n\t (TwGateway)TwGateway.openConnection (host, port);\n\t // The following call will fail if the G2 is secure.\n\t connection.login();\n\t setConnection (connection);\n\t } catch (Exception e) {\n\t new WarningDialog (null, \"Error During Connect\", true, e.toString (), null).setVisible (true);\n\t }\n\t}\n };\t \n\n new ConnectionInputDialog (getCurrentFrame (), \"Open Connection\",\n\t\t\t\t true, labels, initialValues,\n\t\t\t\t (StandardDialogClient) openHandler).setVisible (true);\n }", "public void connectToAccessory() {\n\t\tif (mConnection != null)\n\t\t\treturn;\n\n\t\tif (getIntent().hasExtra(BTDeviceListActivity.EXTRA_DEVICE_ADDRESS)) {\n\t\t\tString address = getIntent().getStringExtra(\n\t\t\t\t\tBTDeviceListActivity.EXTRA_DEVICE_ADDRESS);\n\t\t\tLog.i(ADK.TAG, \"want to connect to \" + address);\n\t\t\tmConnection = new BTConnection(address);\n\t\t\tperformPostConnectionTasks();\n\t\t} else {\n\t\t\t// assume only one accessory (currently safe assumption)\n\t\t\tUsbAccessory[] accessories = mUSBManager.getAccessoryList();\n\t\t\tUsbAccessory accessory = (accessories == null ? null\n\t\t\t\t\t: accessories[0]);\n\t\t\tif (accessory != null) {\n\t\t\t\tif (mUSBManager.hasPermission(accessory)) {\n\t\t\t\t\topenAccessory(accessory);\n\t\t\t\t} else {\n\t\t\t\t\t// synchronized (mUsbReceiver) {\n\t\t\t\t\t// if (!mPermissionRequestPending) {\n\t\t\t\t\t// mUsbManager.requestPermission(accessory,\n\t\t\t\t\t// mPermissionIntent);\n\t\t\t\t\t// mPermissionRequestPending = true;\n\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// Log.d(TAG, \"mAccessory is null\");\n\t\t\t}\n\t\t}\n\n\t}", "public void openConnection() {\n System.out.println(\"Opening connection...\");\n\n try {\n String HOST = \"192.168.4.1\";\n int PORT = 2323;\n connectionSocket = new Socket(HOST, PORT);\n connectionSocket.setTcpNoDelay(true);\n\n writer = new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(connectionSocket.getOutputStream())));\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n\n System.out.println(\"openConnection(): Success\");\n return;\n } catch (UnknownHostException e) {\n System.out.println(\"UnknownHostException at openConnection()\");\n } catch (IOException e) {\n System.out.println(\"IOException at openConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at openConnection()\");\n System.out.println(e.toString());\n }\n\n System.out.println(\"Failed to connect\");\n }", "public boolean open(int device)\n {\n \n boolean retVal = open_1(nativeObj, device);\n \n return retVal;\n }", "public void openBluetooth() throws IOException {\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n btStatusDisplay.setText(\"Bluetooth Connection Opened\");\n }", "protected void doOpenConnection() throws Exception {\n connection.open\n (conn_route, request_spec.context, request_spec.params);\n }", "private void openConnection(){}", "public void connect()\n\t{\n\t\tUUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n\t\ttry\n\t\t{\n\t sock = dev.createRfcommSocketToServiceRecord(uuid); \n\t sock.connect();\n\t connected = true;\n\t dev_out = sock.getOutputStream();\n\t dev_in = sock.getInputStream();\n\t write(0);\n\t write(0);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "public static void openConnection() {\n\t\tarcade.startConnection();\n\t}", "final public void openConnection() throws IOException {\n // Do not do anything if the connection is already open\n if (isConnected())\n return;\n\n // Create the sockets and the data streams\n try {\n clientSocket = new Socket(host, port);\n output = new DataOutputStream(clientSocket.getOutputStream());\n // input =\n // new BufferedReader(new InputStreamReader(clientSocket.getInputStream(), \"Big5_HKSCS\"));\n input = new DataInputStream(clientSocket.getInputStream());\n } catch (IOException ex)\n // All three of the above must be closed when there is a failure\n // to create any of them\n {\n try {\n closeAll();\n } catch (Exception exc) {\n }\n\n throw ex; // Rethrow the exception.\n }\n\n clientReader = new Thread(this); // Create the data reader thread\n readyToStop = false;\n clientReader.start(); // Start the thread\n }", "private void connectDevice(Tl1Device device) {\n try {\n // Add device to TL1 controller\n DeviceId deviceId = DeviceId.deviceId(\n new URI(Tl1DeviceConfig.TL1, device.ip() + \":\" + device.port(), null));\n\n if (controller.addDevice(deviceId, device)) {\n SparseAnnotations ann = DefaultAnnotations.builder()\n .set(AnnotationKeys.PROTOCOL, Tl1DeviceConfig.TL1.toUpperCase())\n .build();\n // Register device in the core with default parameters and mark it as unavailable\n DeviceDescription dd = new DefaultDeviceDescription(deviceId.uri(),\n Device.Type.SWITCH,\n UNKNOWN, UNKNOWN,\n UNKNOWN, UNKNOWN,\n new ChassisId(),\n false, ann);\n providerService.deviceConnected(deviceId, dd);\n }\n } catch (URISyntaxException e) {\n log.error(\"Skipping device {}\", device, e);\n }\n }", "private void bluetoothConnect() {\n\n btDevice = btAdapter.getRemoteDevice(EDISON_ADDRESS);\n if (btDevice == null) {\n Log.d(TAG,\"get remote device fail!\");\n finish();\n }\n\n try {\n btSocket = btDevice.createRfcommSocketToServiceRecord(SSP_UUID);\n } catch (IOException e) {\n Log.d(TAG,\"bluetooth socket create fail.\");\n }\n //save resource by cancel discovery\n btAdapter.cancelDiscovery();\n\n //connect\n try {\n btSocket.connect();\n Log.d(TAG,\"Connection established.\");\n } catch ( IOException e) {\n try {\n btSocket.close();\n }catch (IOException e2) {\n Log.d(TAG,\"unable to close socket after connect fail.\");\n }\n }\n\n //prepare outStream to send message\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n Log.d(TAG,\"output stream init fail!\");\n }\n\n }", "private void connect() throws Exception {\n\n Log.i(TAG, \"Attempting connection to \" + address + \"...\");\n\n // Get this device's Bluetooth adapter\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n if ((adapter == null) || (!adapter.isEnabled())){\n throw new Exception(\"Bluetooth adapter not found or not enabled!\");\n }\n\n // Find the remote device\n BluetoothDevice remoteDevice = adapter.getRemoteDevice(address);\n\n // Create a socket with the remote device using this protocol\n socket = remoteDevice.createRfcommSocketToServiceRecord(uuid);\n\n // Make sure Bluetooth adapter is not in discovery mode\n adapter.cancelDiscovery();\n\n // Connect to the socket\n socket.connect();\n\n\n // Get input and output streams from the socket\n outStream = socket.getOutputStream();\n inStream = socket.getInputStream();\n\n Log.i(TAG, \"Connected successfully to \" + address + \".\");\n }", "abstract public void openConnection();", "public void createConnection() throws UsbGateException {\n mUsbConnection = mUsbManager.openDevice(mUsbDevice);\n if (mUsbConnection != null)\n connected = true;\n else\n throw new UsbGateException(\"Cannot get connection\");\n }", "public void openConnection() throws SerialConnectionException\n {\n\n\t// Obtain a CommPortIdentifier object for the port you want to open.\n\ttry\n\t{\n ezlink.info(\"openConnection Request received in \" + SerialConnection.class.getName());\n ezlink.info(\"PortName= : \"+parameters.getPortName());\n\t\tSystem.out.println(\"PortName=\"+parameters.getPortName());\n\t portId =\n\t\t CommPortIdentifier.getPortIdentifier(parameters.getPortName());\n\t} catch (NoSuchPortException e) {\n ezlink.error(new Object(), e);\n\t throw new SerialConnectionException(e.getMessage());\n\t}\n\n\t// Open the port represented by the CommPortIdentifier object. Give\n\t// the open call a relatively long timeout of 30 seconds to allow\n\t// a different application to reliquish the port if the user\n\t// wants to.\n\ttry {\n\t\tSystem.out.println(\"Owner=\"+portId.getCurrentOwner());\n ezlink.info(\"Owner= : \"+portId.getCurrentOwner());\n\t sPort = (SerialPort)portId.open(parameters.getPortName(), 3000);\n ezlink.info(\"connection opened!! \");\n\t System.out.println(\"connection opened\");\n\t} catch (Exception e) {\n ezlink.error(new Object(), e);\n\t throw new SerialConnectionException(e.getMessage());\n\t}\n\n\t// Set the parameters of the connection. If they won't set, close the\n\t// port before throwing an exception.\n\ttry {\n\t setConnectionParameters();\n\t} catch (SerialConnectionException e) {\n ezlink.info(\"setConnectionParameters(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw e;\n\t}\n\n\t// Open the input and output streams for the connection. If they won't\n\t// open, close the port before throwing an exception.\n\ttry {\n\t\tSystem.out.println(\"Before Streams\");\n ezlink.info(\"Before Streams: \");\n\t os = sPort.getOutputStream();\n\t is = sPort.getInputStream();\n\t} catch (IOException e) {\n System.out.println(\"openConnection : IOException : sPort.getOutputStream()\");\n e.printStackTrace();\n ezlink.info(\"Streams(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw new SerialConnectionException(\"Error opening i/o streams\");\n\t}\n\n\t// Add this object as an event listener for the serial port.\n\ttry {\n\t sPort.addEventListener(this);\n\t} catch (TooManyListenersException e) {\n System.out.println(\"openConnection : TooManyListenersException : sPort.addEventListener(this)\");\n e.printStackTrace();\n ezlink.info(\"addEventListener(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw new SerialConnectionException(\"too many listeners added\");\n\t}\n\n\t// Set notifyOnDataAvailable to true to allow event driven input.\n\tsPort.notifyOnDataAvailable(true);\n\n\t// Set notifyOnBreakInterrup to allow event driven break handling.\n\tsPort.notifyOnBreakInterrupt(true);\n\n\t// Set receive timeout to allow breaking out of polling loop during\n\t// input handling.\n\ttry {\n\t sPort.enableReceiveTimeout(30);\n\t} catch (UnsupportedCommOperationException e) {\n System.out.println(\"openConnection : UnsupportedCommOperationException : sPort.enableReceiveTimeout(30)\");\n e.printStackTrace();\n ezlink.info(\"UnsupportedCommOperationException(): \");\n ezlink.error(new Object(), e);\n\t}\n\n\t// Add ownership listener to allow ownership event handling.\n\tportId.addPortOwnershipListener(this);\n\topen = true;\n\n\n }", "public BluetoothDeviceSocketConnection(BluetoothDevice device) {\n this.device = device;\n }", "private void openConnection(String host){\n try {\n this.socket = new Socket(host, PORT);\n this.fromServer = new DataInputStream(socket.getInputStream());\n this.toServer = new DataOutputStream(socket.getOutputStream());\n\n } catch (SecurityException e){\n report(\"Connect is not allowed\");\n } catch (UnknownHostException e) {\n report(\"the ip address is not found.\");\n } catch (IOException e){\n report(\"Can not connect to the server\\\"\"+host+\"\\\"\");\n }\n }", "public boolean connect() {\n try {\n this.bluetoothSocket = this.device.createRfcommSocketToServiceRecord(this.device.getUuids()[0].getUuid());\n this.bluetoothSocket.connect();\n return true;\n } catch (IOException ex) {\n try {\n this.bluetoothSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n this.bluetoothSocket = null;\n }\n return false;\n }", "protected void openConnection() {\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(\"jdbc:sqlite:\" + name);\n\t\t\tif (conn == null) {\n\t\t\t\tconnectionOpened = false;\n\t\t\t} else {\n\t\t\t\tconnectionOpened = true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Connect problem: \" + e.getMessage());\n\t\t\tconn = null;\n\t\t}\n\t}", "private void open() throws ConnectException, IOException {\n if (!opened) {\n if ((host == null) || \"\".equals(host.trim())) throw new ConnectException(\"You must specify the host name\");\n else if (port <= 0) throw new ConnectException(\"You must specify the port number\");\n socket = new Socket();\n InetSocketAddress addr = new InetSocketAddress(host, port);\n socket.setReceiveBufferSize(Utils.SOCKET_BUFFER_SIZE);\n socket.setSendBufferSize(Utils.SOCKET_BUFFER_SIZE);\n socket.setTcpNoDelay(Utils.SOCKET_TCP_NODELAY);\n socket.setKeepAlive(Utils.SOCKET_KEEPALIVE);\n socket.connect(addr);\n initStreams();\n opened = true;\n if (log.isDebugEnabled()) log.debug(\"getReceiveBufferSize() = \" + socket.getReceiveBufferSize());\n }\n }", "private native int open0(String host,\n int msid, int port) throws IOException;", "public synchronized void openConnection() throws MalformedURLException,\n IOException, AuthenticationException {\n\n this.connector = createJMXConnector(connectionConfiguration);\n\n try {\n Activator.getDefault().info(\n \"Connecting to \" + connectionConfiguration);\n connector.connect();\n addConnectionNotificationListener();\n connectionAlreadyClosed = false;\n } catch (IllegalArgumentException ile) {\n Activator.getDefault().info(\"Authentication failed\", ile);\n throw new AuthenticationException();\n } catch (IOException ioe) {\n throw ioe;\n } catch (Throwable e) {\n Activator.getDefault().error(\n \"Unknown exception while opening connection \", e);\n throw new IOException(e.getCause());\n }\n }", "public void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(host, port);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error connecting: \" + e.getMessage());\n\t\t}\n\t}", "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "private void connectDevice(String address) {\n// // Get the device MAC address\n BluetoothDevice device = mBtAdapter.getRemoteDevice(address);\n// // Attempt to connect to the device\n mChatService.connect(device, true);\n }", "public void connect() {\n try {\n socket = connectToBackEnd();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "void tryConnection(String mac)\n {\n if (outstanding_connect != null || open_connection != null) {\n return;\n }\n \n Log.d(Constants.LOG_TAG, \"Attempting to connect to \" + mac);\n \n BluetoothDevice dev = bt_adapter.getRemoteDevice(mac);\n outstanding_connect = new ConnectThread(dev, handler);\n outstanding_connect.start();\n \n }", "public synchronized void connect(BluetoothDevice device) {\n \tif (D) Log.d(TAG, \"connect to: \" + device);\n\n // Cancel any thread attempting to make a connection\n if (mState == STATE_CONNECTING) {\n if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;}\n }\n\n // Cancel any thread currently running a connection\n if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;}\n\n // Start the thread to connect with the given device\n mConnectThread = new ConnectThread(device);\n mConnectThread.start();\n setState(STATE_CONNECTING);\n }", "public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Connected.\", MODULE);\n state = CONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"connect failed\" + exception.getMessage(), MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n // Connect using a non-blocking connect\n client.connect(conOpt, \"Connect sample context\", conListener);\n } catch (MqttException e) {\n // If though it is a non-blocking connect an exception can be\n // thrown if validation of parms fails or other checks such\n // as already connected fail.\n state = ERROR;\n donext = true;\n ex = e;\n }\n }", "public void connect() {}", "public void connectDevice(Computer comp) {\n\n\t\tcomp.connect();\n\t}", "@RequestMapping(\"/ibmiot/deviceclient/connect\")\r\n\tpublic String connectDeviceclient() {\r\n\t\tThread t1 = new Thread(commandCallbackSubscriber);\r\n\t\tt1.start();\r\n\t\tmyClient.setCommandCallback(commandCallbackSubscriber);\r\n\t\t\r\n\t\t// Connect to the IBM Watson IoT Platform\r\n\t\ttry {\r\n\t\t\tmyClient.connect();\r\n\t\t} catch (MqttException e) {\r\n\t\t\treturn \"Failed to connected with IBM IoT deviced Client\";\r\n\t\t}\r\n\t\treturn \"Connected to IBM IoT deviced Client\";\r\n\t}", "private void openConnection () {\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(\n\t\t\t\t\tPasswordProtector.HOST,\n\t\t\t\t\tPasswordProtector.USER,\n\t\t\t\t\tPasswordProtector.PASSWORD);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t}", "private void connectDevice(Intent data, boolean secure) {\n String address = data.getExtras()\n .getString(EXTRA_DEVICE_ADDRESS);\n // Get the BluetoothDevice object\n BluetoothDevice device = bluetoothAdapter.getRemoteDevice(address);\n // Attempt to connect to the device\n btService.connect(device, secure);\n }", "@Override\n public boolean connect(BluetoothDevice bluetoothDevice) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n boolean bl = true;\n if (bluetoothDevice != null) {\n parcel.writeInt(1);\n bluetoothDevice.writeToParcel(parcel, 0);\n } else {\n parcel.writeInt(0);\n }\n if (!this.mRemote.transact(8, parcel, parcel2, 0) && Stub.getDefaultImpl() != null) {\n bl = Stub.getDefaultImpl().connect(bluetoothDevice);\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n parcel2.readException();\n int n = parcel2.readInt();\n if (n == 0) {\n bl = false;\n }\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n catch (Throwable throwable) {\n parcel2.recycle();\n parcel.recycle();\n throw throwable;\n }\n }", "public void connect();", "public void connect();", "public void connect();", "private void connectToRoom(String appKey, String appSecret) {\n initializeSkylinkConnection();\n\n // Obtaining the Skylink connection string locally.\n // In a production environment the connection string should be given\n // by an entity external to the App,\n // such as an App server that holds the Skylink App secret.\n // This is to avoid keeping the App secret within the application\n String skylinkConnectionString = Utils.\n getSkylinkConnectionString(ROOM_NAME,\n appKey,\n appSecret, new Date(),\n SkylinkConnection\n .DEFAULT_DURATION);\n\n // The skylinkConnectionString should not be logged in production,\n // as it contains potentially sensitive information like the Skylink App key.\n\n boolean connectFailed;\n connectFailed = !skylinkConnection.connectToRoom(skylinkConnectionString, MY_USER_NAME);\n if (connectFailed) {\n String error = \"Unable to connect to Room! Rotate device to try again later.\";\n Toast.makeText(parentActivity, error, Toast.LENGTH_LONG).show();\n Log.e(TAG, error);\n return;\n }\n\n // Initialize and use the Audio router to switch between headphone and headset\n AudioRouter.startAudioRouting(parentActivity);\n }", "private static native boolean open_1(long nativeObj, int device);", "public void connect()\r\n\t{\r\n\t\tkonekcija = ConnectionClass.getConnection(adresa, port, imeBaze, korisnickoIme, sifra);\r\n\t\tSystem.out.println(\"Konekcija otvorena: \"+ konekcija.toString());\r\n\t}", "public void connect(View v) {\n turnOn(v);\n startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));\n Toast.makeText(getApplicationContext(), \"Select device\", Toast.LENGTH_LONG).show();\n System.err.println(bluetoothAdapter.getBondedDevices());\n }", "public void openConnection(){\n\n\t\tString dbIP = getConfig().getString(\"mysql.ip\");\n\t\tString dbDB = getConfig().getString(\"mysql.databaseName\");\n\t\tString dbUN = getConfig().getString(\"mysql.username\");\n\t\tString dbPW = getConfig().getString(\"mysql.password\");\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://\" + dbIP + \"/\" + dbDB, dbUN, dbPW);\n\t\t\tgetLogger().info(\"Connected to databse!\");\n\t\t} catch (SQLException ex) {\n\t\t\t// handle any errors\n\t\t\tgetLogger().info(\"SQLException: \" + ex.getMessage());\n\t\t\tgetLogger().info(\"SQLState: \" + ex.getSQLState());\n\t\t\tgetLogger().info(\"VendorError: \" + ex.getErrorCode());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tgetLogger().info(\"Gabe, you done goof'd!\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void connect() throws OOBException {\n \t\tlog.debug(\"enter to connect \");\n \t\tJSch jsch = new JSch();\n \t\ttry {\n\t\t\tjsch.addIdentity(PRIVATE_KEY, PASSPHRASE);\n \t\t\tjsch.setKnownHosts(KNOWN_HOSTS);\n \t\t\tlog.debug(\"user \" + user + \"host : \" + host);\n \t\t\tsession = jsch.getSession(user, host, 22);\n \t\t\tsession.connect();\n \t\t} catch (JSchException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "public synchronized void open(){\n if(connected){ //Already connected but needs to get streams\n try{\n streamIn = new DataInputStream(socket.getInputStream());\n streamOut = new DataOutputStream(socket.getOutputStream());\n System.out.println(clientID+\": open: socket\");\n }catch(IOException e){\n System.out.println(clientID+\": open: socket: failed: IOException: \"+e);\n }\n }else if(!isHost) { //ConnectingClient\n try{\n socket = new Socket(ip, port);\n streamIn = new DataInputStream(socket.getInputStream());\n streamOut = new DataOutputStream(socket.getOutputStream());\n connected = true;\n System.out.println(clientID+\": open: socket: IP:\"+ip+\" Port:\"+port);\n }catch(IOException ex){\n connected = false;\n System.out.println(clientID+\": open: socket: failed: IOException: \"+ex);\n }\n }else if(isHost){ //HostClient\n try{\n hostSocket = new ServerSocket(0);\n port = hostSocket.getLocalPort();\n ip = InetAddress.getLocalHost().getHostAddress();\n System.out.println(clientID+\": open: hostSocket: IP:\"+ip+\" Port:\"+port);\n }catch(IOException e){\n System.out.println(clientID+\": open: hostSocket: failed: IOException: \"+e);\n }\n }\n }", "public void connect(DeviceType deviceType) throws ConnectionFailedException {\r\n\t\ttry {\r\n\t\t\trmiClient.connect(deviceType);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new ConnectionFailedException();\r\n\t\t}\r\n\t}", "private void connectDevice(Intent data, boolean secure) {\n String address = data.getExtras()\n .getString(DeviceListActivity.EXTRA_DEVICE_ADDRESS);\n BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address);\n mChatService.connect(device, secure);\n }", "public void openUsbDevice() {\n tryGetUsbPermission();\n }", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "public void initiateConnection() {\n\t\tif (Settings.getRemoteHostname() != null) {\n\t\t\ttry {\n\t\t\t\toutgoingConnection(new Socket(Settings.getRemoteHostname(), Settings.getRemotePort()));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \" + Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort() + \" :\" + e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public void connect(String id) {\n // Android bluetooth API code\n BluetoothDevice device = null;\n try {\n device = mBluetoothAdapter.getRemoteDevice(id);\n mBluetoothAdapter.cancelDiscovery();\n }\n catch (Exception e) {\n // Show user error message\n // i.e. \"333 is not a valid bluetooth address\"\n Toast.makeText(getApplicationContext(), e.getMessage(),\n Toast.LENGTH_SHORT).show();\n }\n\n // If getRemoteDevice did not throw and device was set, connect to client\n // getRemoteDevice throws if its parameter is not a valid bluetooth address\n if (device != null) {\n try {\n btSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n btSocket.connect();\n Toast.makeText(getApplicationContext(), \"Connection made\",\n Toast.LENGTH_SHORT).show();\n connectedStatus.setText(R.string.connection_connected);\n } catch (IOException e) {\n try {\n btSocket.close();\n } catch (IOException e2) {\n Log.d(TAG, \"Unable to end the connection\");\n }\n Log.d(TAG, \"Socket creation failed\");\n }\n }\n }", "public void connect()\n {\n \tLog.d(TAG, \"connect\");\n \t\n \tif(!this.isConnected ) {\n mContext.bindService(new Intent(\"com.google.tungsten.LedService\"), mServiceConnection, \n \t\tContext.BIND_AUTO_CREATE);\n \t}\n }", "public void connDevice(String address) {\n MokoSupport.getInstance().connDevice(this, address, this);\n }", "private void openSocket(String host, int port) throws IOException {\n \t\t// Debug - attempting connection\n \n \t\tclientSocket = new Socket(InetAddress.getByName(host), port);\n \n \t\toutput = new BufferedWriter(new OutputStreamWriter(\n \t\t\t\tclientSocket.getOutputStream()));\n \t\toutput.flush();\n \n \t\tfileOutput = new BufferedOutputStream(clientSocket.getOutputStream());\n \n \t\tinput = new BufferedReader(new InputStreamReader(\n \t\t\t\tclientSocket.getInputStream()));\n \n \t\t// Debug - done\n \t}", "public void Connect() {\n run = new Thread(\"Connect\") {\n @Override\n public void run() {\n running = true;\n try {\n server = new ServerSocket(9080);\n waitingForConnection();\n } catch (IOException ex) {\n Logger.getLogger(Dashboard.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n }\n };\n run.start();\n }", "public void connect(final WifiP2pDevice device){\n WifiP2pConfig config = new WifiP2pConfig();\n config.deviceAddress = device.deviceAddress;\n config.wps.setup = WpsInfo.PBC;\n\n manager.connect(channel, config, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess() {\n // keep the name of the latest device connected to keep track\n devicesConnected.add(device.deviceName);\n\n }\n\n\n @Override\n public void onFailure(int reason) {\n\n if(reason == WifiP2pManager.P2P_UNSUPPORTED){\n Toast.makeText(getContext(), \"P2P isn't supported on this device.\",\n Toast.LENGTH_SHORT).show();\n\n } else{\n Toast.makeText(getContext(), \"Connect failed. Retry.\",\n Toast.LENGTH_SHORT).show();\n }\n\n\n\n }\n });\n\n }", "private void connect() {\n\t\tString portName = deviceLocation.getText();\n\n\t\t// Check the Bandwidth SelectionBox and convert them:\n\t\tint bandWidthIndex = bandWidthList.getSelectedIndex();\n\t\tswitch (bandWidthIndex) {\n\t\tcase 0:\n\t\t\tbandRate = 9600;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tbandRate = 19200;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tbandRate = 38400;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tbandRate = 57600;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tbandRate = 115200;\n\t\t\tbreak;\n\t\t}\n\n\t\t// System Print Line: Connection information:\n\t\tlog.write(\"##############################\");\n\t\tlog.write(\"System Message: Trying to connect to:\" + portName\n\t\t\t\t+ \" with \" + bandRate + \" Bandwidth\");\n\n\t\t// Try to connect gameUi Class with specific device location and\n\t\t// bandwidth:\n\t\tif (!gameUi.connectSerial(portName, bandRate, this.log)) {\n\n\t\t\t// If Connection fails, shows an Error Message\n\t\t\tlog.write(\"System Message: Fails to connect to:\"\n\t\t\t\t\t+ portName + \" with \" + bandRate + \" Bandwidth\");\n\t\t\tlog.write(\"##############################\");\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Can't connect to this device, please check again.\",\n\t\t\t\t\t\"Connection Error\", JOptionPane.ERROR_MESSAGE);\n\n\t\t} else {\n\n\t\t\t// If Connection Success, then hide this connection Ui and\n\t\t\t// Change into GameUi:\n\t\t\tlog.write(\"System Message: Connect to:\" + portName\n\t\t\t\t\t+ \" with \" + bandRate + \" Bandwidth Seccessesfully\");\n\t\t\tlog.write(\"##############################\");\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Device Connected, have fun! :)\",\n\t\t\t\t\t\"Connection Success\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\tthis.setVisible(false);\n\t\t\tgameUi.setVisible(true);\n\t\t}\n\n\t}", "private void connectToDevice(Intent data, boolean secure){\n Log.i(TAG, \"-- connect to device --\");\n if(data == null){Log.e(TAG, \"data is null\");}\n // Get the device MAC address\n String address = data.getExtras()\n .getString(DeviceListActivity.EXTRA_DEVICE_ADDRESS);\n\n Log.i(TAG, \"-- getting to device --\");\n // Get the BluetoothDevice object\n BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address);\n\n Log.i(TAG, \"-- connecting to device to device --\");\n // Attempt to connect to the device\n if(mClientService == null){Log.e(TAG, \"bluetooth client service is null\");}\n mClientService.connect(device, secure);\n Log.i(TAG,\"-- after connection function\");\n }", "private void bluetooth_connect_device() throws IOException\n {\n try\n {\n myBluetooth = BluetoothAdapter.getDefaultAdapter();\n address = myBluetooth.getAddress();\n pairedDevices = myBluetooth.getBondedDevices();\n if (pairedDevices.size()>0)\n {\n for(BluetoothDevice bt : pairedDevices)\n {\n address=bt.getAddress().toString();name = bt.getName().toString();\n Toast.makeText(getApplicationContext(),\"Connected\", Toast.LENGTH_SHORT).show();\n\n }\n }\n\n }\n catch(Exception we){}\n myBluetooth = BluetoothAdapter.getDefaultAdapter();//get the mobile bluetooth device\n BluetoothDevice dispositivo = myBluetooth.getRemoteDevice(address);//connects to the device's address and checks if it's available\n btSocket = dispositivo.createInsecureRfcommSocketToServiceRecord(myUUID);//create a RFCOMM (SPP) connection\n btSocket.connect();\n try { t1.setText(\"BT Name: \"+name+\"\\nBT Address: \"+address); }\n catch(Exception e){}\n }", "public void connect(View view) {\n if (phoneNum.getText().toString().equals(\"\")) {\n Toast.makeText(getApplication(), \"Please enter a phone number\", Toast.LENGTH_SHORT).show();\n } else {\n phoneNum.setEnabled(false);\n HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();\n if (!usbDevices.isEmpty()) {\n boolean keep = true;\n for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) {\n device = entry.getValue();\n int deviceVID = device.getVendorId();\n if (deviceVID == 0x2341)//Arduino Vendor ID\n {\n PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n usbManager.requestPermission(device, pi);\n keep = false;\n } else {\n connection = null;\n device = null;\n }\n\n if (!keep)\n break;\n }\n }\n }\n }", "private void connectBluetooth() {\n try {\n if (blueTooth == null && macSet) {\n Log.d(\"lol\", \"macSet connect bluetooootooththoth\");\n blueTooth = new BluetoothConnection(macAddress, this, listener);\n blueTooth.connect();\n }\n } catch (Exception e) {\n Log.d(\"lol\", \"Failed connection: \" + e.getMessage() + \" \" + e.getClass());\n }\n }", "public void connectToRemoteDevice(BluetoothDevice remoteDevice, UUID uuidToTry) throws IOException {\n mRemoteDevice = remoteDevice;\n BluetoothSocket tmp = null;\n try {\n // Get a BluetoothSocket for a connection with the given BluetoothDevice (Insecure)\n tmp = mRemoteDevice.createInsecureRfcommSocketToServiceRecord(uuidToTry);\n\n } catch (IOException e) {\n Log.e(TAG, \"create() failed\", e);\n }\n bluetoothSocket = new NativeBluetoothSocket(tmp);\n mUUID = uuidToTry;\n\n Log.i(TAG, \"BEGIN mConnectThread\");\n setName(\"ConnectThread\");\n try {\n connectToSocket();\n } catch (IOException e) {\n Log.e(TAG, e.getMessage());\n throw new IOException(TAG + \" Could not connectToPegasusAP to Socket\", e);\n }\n }", "public void openConnection(){\r\n try {\r\n Driver dr = new FabricMySQLDriver();\r\n DriverManager.registerDriver(dr);\r\n log.info(\"registrable driver\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n try {\r\n connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);\r\n log.info(\"get connection\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "private void openConnection() throws IOException, CorruptedPacketException {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n Future futureResult = executorService.submit(new InitPacketReceiver(this));\n int timesSent = 0;\n while (!socket.isClosed() && connectionId == null && timesSent < 20) {\n this.sendInitPacket(socket, address, port);\n ++timesSent;\n try {\n futureResult.get(100, TimeUnit.MILLISECONDS);\n } catch (CancellationException e) {\n } catch (InterruptedException e) {\n } catch (ExecutionException e) {\n } catch (TimeoutException e) {\n if (connectionId == null) {\n System.err.println(\"Opening packet has been lost, sending a new one.\");\n }\n }\n }\n\n if (timesSent >= 20) {\n socket.close();\n System.out.printf(\"Could not connect to Karel on %s:%d\\n\", address.getHostAddress(), port);\n }\n futureResult.cancel(true);\n executorService.shutdown();\n\n }", "private void connectToSocket() throws IOException {\n // This is a blocking call and will only return on a exception\n bluetoothSocket.connect();// Create a connection to the BluetoothSocket\n\n }", "public void connect() throws IOException;", "private void connectToAdapter() {\n if (chosen) {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n // creation and connection of a bluetooth socket\n try {\n BluetoothSocket socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n setBluetoothSocket(socket);\n connected = true;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n connect.setText(\"Disconnect\");\n connect.setTextColor(Color.RED);\n }\n });\n } catch (IOException e) {\n Log.d(\"Exception\", \"Bluetooth IO Exception c\");\n connected = false;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(currContext, R.string.cannotConnect, Toast.LENGTH_SHORT).show();\n connect.setText(\"Connect\");\n connect.setTextColor(Color.BLACK);\n mode.setEnabled(true);\n }\n });\n }\n }\n if (bluetoothSocket.getRemoteDevice().getAddress() != null)\n Log.d(TAG, \"Bluetooth connected\");\n Log.d(TAG, \"Device address: \" + bluetoothSocket.getRemoteDevice().getAddress());\n initializeCom();\n }", "private void openCtrlSocket() {\n ctrlThreadTask = ThreadTasks.OPEN;\n }", "protected final void openSession() {\n openSessionForRead(null, null);\n }", "public Socket connect() {\r\n\t\ts = null;\r\n\t\ttry {\r\n\t\t\ts = new Socket(hostName, port);\r\n\t\t\tdos = Utils.deflatedDataOut(s.getOutputStream(), 8);\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn s;\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "private boolean connect() {\n\t\tif (this.logging) {\n\t\t\tlogger.debug(\"trying to connect to \" + this.remoteName);\n\t\t}\n\n\t\tboolean connected = this.btc.connectTo(this.remoteName, null,\n\t\t\t\tNXTCommFactory.BLUETOOTH, NXTComm.PACKET);\n\t\tif (!connected) {\n\t\t\tif (this.logging) {\n\t\t\t\tlogger.info(\"not connected to \" + this.remoteName);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.dis = new ExtendedDataInputStream(this.btc.getDataIn());\n\t\t\tthis.dos = this.btc.getDataOut();\n\t\t\tif (this.logging) {\n\t\t\t\tlogger.info(\"connected to \" + this.remoteName);\n\t\t\t}\n\t\t}\n\n\t\treturn connected;\n\t}", "@Override\n\tpublic void open() {\n\t\tlong openStartTime = new Date().getTime();\n\t\ttry {\n\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\tif (this.serialPort != null && !this.serialPort.isConnected()) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.serialPort.open();\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\tthis.initialAnswerData = this.serialPort.getData(true);\n\t\t\t\t\tif (this.device.isProcessing(1, this.initialAnswerData) || this.device.isProcessing(2, this.initialAnswerData)) {\n\t\t\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(MessageIds.GDE_MSGW2201));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET_CONFIG);\n\t\t\t\t\tthis.deviceIdentifierName = this.serialPort.readDeviceUserName();\n\n\t\t\t\t\tthis.jc = JAXBContext.newInstance(\"gde.device.graupner\"); //$NON-NLS-1$\n\t\t\t\t\tthis.schema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(\n\t\t\t\t\t\t\tnew StreamSource(UltraDuoPlusDialog.class.getClassLoader().getResourceAsStream(\"resource/\" + UltraDuoPlusDialog.ULTRA_DUO_PLUS_XSD))); //$NON-NLS-1$\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUnmarshaller unmarshaller = this.jc.createUnmarshaller();\n\t\t\t\t\t\tunmarshaller.setSchema(this.schema);\n\t\t\t\t\t\tthis.ultraDuoPlusSetup = (UltraDuoPlusType) unmarshaller.unmarshal(new File(this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t+ this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (UnmarshalException e) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.synchronizerRead = new UltraDuoPlusSychronizer(this, this.serialPort, this.ultraDuoPlusSetup, UltraDuoPlusSychronizer.SYNC_TYPE.READ);\n\t\t\t\t\tthis.synchronizerRead.start();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\tthis.application.openMessageDialog(null,\n\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0015, new Object[] { e.getClass().getSimpleName() + GDE.STRING_BLANK_COLON_BLANK + e.getMessage() }));\n\t\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\t\tif (!this.application.getActiveDevice().equals(this.device)) //check if device was changed\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, \"serial port == null\"); //$NON-NLS-1$\n\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(gde.messages.MessageIds.GDE_MSGE0010));\n\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"dialogShell.isDisposed() \" + ((this.dialogShell == null) ? \"null\" : this.dialogShell.isDisposed())); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tif (this.dialogShell == null || this.dialogShell.isDisposed()) {\n\t\t\t\tif (this.settings.isDeviceDialogsModal())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getShell(), SWT.DIALOG_TRIM | SWT.PRIMARY_MODAL);\n\t\t\t\telse if (this.settings.isDeviceDialogsOnTop())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM | SWT.ON_TOP);\n\t\t\t\telse\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM);\n\n\t\t\t\tSWTResourceManager.registerResourceUser(this.dialogShell);\n\t\t\t\tthis.dialogShell.setLayout(new FormLayout());\n\t\t\t\tthis.dialogShell.setText(this.device.getName() + Messages.getString(gde.messages.MessageIds.GDE_MSGT0273));\n\t\t\t\tthis.dialogShell.setImage(SWTResourceManager.getImage(\"gde/resource/ToolBoxHot.gif\")); //$NON-NLS-1$\n\t\t\t\tthis.dialogShell.layout();\n\t\t\t\tthis.dialogShell.pack();\n\t\t\t\tthis.dialogShell.setSize(655, GDE.IS_MAC ? 685 : 675);\n\t\t\t\tthis.dialogShell.addListener(SWT.Traverse, new Listener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\tswitch (event.detail) {\n\t\t\t\t\t\tcase SWT.TRAVERSE_ESCAPE:\n\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.close();\n\t\t\t\t\t\t\tevent.detail = SWT.TRAVERSE_NONE;\n\t\t\t\t\t\t\tevent.doit = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.dialogShell.addHelpListener(new HelpListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void helpRequested(HelpEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"dialogShell.helpRequested, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.dialogShell.addDisposeListener(new DisposeListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void widgetDisposed(DisposeEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"dialogShell.widgetDisposed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tif (UltraDuoPlusDialog.this.serialPort != null && UltraDuoPlusDialog.this.serialPort.isConnected()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerRead.join();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t//set the date to sync with PC time\n\t\t\t\t\t\t\t\t\tString[] date = StringHelper.getDateAndTime(\"yy:MM:dd:hh:mm\").split(GDE.STRING_COLON); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus45:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[15] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[16] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[17] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tChannelData1 value = new ChannelData1();\n\t\t\t\t\t\t\t\t\tvalue.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.channelValues1));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChannelData1(value, value.getValue().endsWith(\"1\"));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsaveConfigUDP(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.close();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.resetShellIcon();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t{\n\t\t\t\t\tthis.boundsComposite = new Composite(this.dialogShell, SWT.NONE);\n\t\t\t\t\tFormData boundsCompositeLData = new FormData();\n\t\t\t\t\tboundsCompositeLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tthis.boundsComposite.setLayoutData(boundsCompositeLData);\n\t\t\t\t\tthis.boundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userLabel = new CLabel(this.boundsComposite, SWT.RIGHT);\n\t\t\t\t\t\tthis.userLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userLabel.setText(Messages.getString(MessageIds.GDE_MSGT2289));\n\t\t\t\t\t\tFormData userLabelLData = new FormData();\n\t\t\t\t\t\tuserLabelLData.left = new FormAttachment(0, 1000, 12);\n\t\t\t\t\t\tuserLabelLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tuserLabelLData.width = 280;\n\t\t\t\t\t\tuserLabelLData.height = 20;\n\t\t\t\t\t\tthis.userLabel.setLayoutData(userLabelLData);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userNameText = new Text(this.boundsComposite, SWT.SINGLE | SWT.BORDER);\n\t\t\t\t\t\tthis.userNameText.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userNameText.setText(this.deviceIdentifierName);\n\t\t\t\t\t\tthis.userNameText.setTextLimit(16);\n\t\t\t\t\t\tFormData userNameTextLData = new FormData();\n\t\t\t\t\t\tuserNameTextLData.width = 120;\n\t\t\t\t\t\tuserNameTextLData.height = 16;\n\t\t\t\t\t\tuserNameTextLData.left = new FormAttachment(0, 1000, 305);\n\t\t\t\t\t\tuserNameTextLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tthis.userNameText.setLayoutData(userNameTextLData);\n\t\t\t\t\t\tthis.userNameText.addVerifyListener(new VerifyListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void verifyText(VerifyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"evt.doit = \" + (evt.text.length() <= 16)); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tevt.doit = evt.text.length() <= 16;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.userNameText.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFile oldConfigDataFile = new File(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\t\t\t\t\t\t\t\tif (oldConfigDataFile.exists()) if (!oldConfigDataFile.delete()) UltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, \"could not delete \" + oldConfigDataFile.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.deviceIdentifierName = (UltraDuoPlusDialog.this.userNameText.getText().trim() + UltraDuoPlusDialog.STRING_16_BLANK).substring(0, 16);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setIdentifierName(UltraDuoPlusDialog.this.deviceIdentifierName);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChanged(true);\n\t\t\t\t\t\t\t\tint position = UltraDuoPlusDialog.this.userNameText.getCaretPosition();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setText(UltraDuoPlusDialog.this.deviceIdentifierName.trim());\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setSelection(position);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.mainTabFolder = new CTabFolder(this.boundsComposite, SWT.BORDER);\n\t\t\t\t\t\tthis.mainTabFolder.setSimple(false);\n\t\t\t\t\t\tFormData TabFolderLData = new FormData();\n\t\t\t\t\t\tTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.top = new FormAttachment(0, 1000, 35);\n\t\t\t\t\t\tTabFolderLData.bottom = new FormAttachment(1000, 1000, -45);\n\t\t\t\t\t\tthis.mainTabFolder.setLayoutData(TabFolderLData);\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setupTabItem = new CTabItem(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\tthis.setupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.setupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2290));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.deviceComposite = new Composite(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\t\tGridLayout deviceCompositeLayout = new GridLayout();\n\t\t\t\t\t\t\t\tdeviceCompositeLayout.makeColumnsEqualWidth = true;\n\t\t\t\t\t\t\t\tthis.deviceComposite.setLayout(deviceCompositeLayout);\n\t\t\t\t\t\t\t\tthis.setupTabItem.setControl(this.deviceComposite);\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tGridData group1LData = new GridData();\n\t\t\t\t\t\t\t\t\tgroup1LData.horizontalAlignment = GridData.FILL;\n\t\t\t\t\t\t\t\t\tgroup1LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\tgroup1LData.widthHint = 580;\n\t\t\t\t\t\t\t\t\tgroup1LData.heightHint = this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? 182 : 392;\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayoutData(group1LData);\n\t\t\t\t\t\t\t\t\tFillLayout baseDeviceSetupCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayout(baseDeviceSetupCompositeLayout);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setText(Messages.getString(MessageIds.GDE_MSGT2291));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50, Messages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) {\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2296), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2297), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[15] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 15, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse { //UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 1, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 2, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 3, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(1)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(1)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 10, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(2)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 11, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(2)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2315), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 - 99%\", 175, false, 50, 150, 1, 99, -1, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[18] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 18, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//time setup will synced with PC\n\t\t\t\t\t\t\t\t\t//this.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 10, Messages.getString(MessageIds.GDE_MSGT2298), 175,\t\"1 ~ 31\", 175, false, 50, 150, 1, 31); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 11, Messages.getString(MessageIds.GDE_MSGT2299), 175,\t\"1 ~ 12\", 175, false, 50, 150, 1, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 12, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2300), 175,\t\"0 ~ 99\", 175, false, 50, 150, 0, 99); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[13] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 13, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2302), 175,\t\"0 ~ 12\", 175, false, 50, 150, 0, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[14] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 14, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2301), 175,\t\"0 ~ 59\", 175, false, 50, 150, 0, 59); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) { //no configurable outlet channel 2\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group2LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup2LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayoutData(group2LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setText(Messages.getString(MessageIds.GDE_MSGT2304));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite1, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 3, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group3LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup3LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayoutData(group3LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setText(Messages.getString(MessageIds.GDE_MSGT2309));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite2, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 0] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 0,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2255), 175, Messages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 1] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 1, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2254), 175, \"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 2] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 2, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2305), 175, \"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 3] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 3,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2308), 175, Messages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.memorySetupTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2250));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memorySetupTabItem.setControl(this.memoryBoundsComposite);\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite = new Composite(this.memoryBoundsComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 150;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memorySelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.width = 120;\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setLayoutData(memorySelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(1);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo = new CCombo(this.memorySelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setLayoutData(memoryComboLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2252));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tint actualSelectionIndex = UltraDuoPlusDialog.this.memoryCombo.getSelectionIndex();\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.lastMemorySelectionIndex != actualSelectionIndex) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.lastMemorySelectionIndex >= 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& UltraDuoPlusDialog.this.lastMemorySelectionIndex < UltraDuoPlusDialog.numberMemories) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//write memory if setup data has been changed changed (update memory name executed while keyListener)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryStepValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//check for copy selected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.copyButton.getSelection()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.copyButton.setSelection(false);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (SWT.YES == UltraDuoPlusDialog.this.application.openYesNoMessageDialog(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGI2205, new Object[] { UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName(), (actualSelectionIndex + 1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName() }))) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//copy memory name and setup data of lastMemorySelectionIndex to memoryCombo.getSelectionIndex()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"copy memory: (\" + (UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName()//$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" to (\" + (actualSelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_MEMORY_SETUP; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(UltraDuoPlusDialog.this.memoryValues[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName().getBytes(), actualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, actualSelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[actualSelectionIndex] = (newMemoryName + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(actualSelectionIndex, newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(actualSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex = actualSelectionIndex;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tif (evt.character == SWT.CR) {\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(UltraDuoPlusDialog.this.memoryCombo.getText() + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex] = newMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(UltraDuoPlusDialog.this.lastMemorySelectionIndex, newMemoryName);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5).getBytes(), UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tCLabel filler = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(140, 20));\n\t\t\t\t\t\t\t\t\t\tfiller.setText(\"<--------- \"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.copyButton = new Button(this.memorySelectComposite, SWT.CHECK | SWT.LEFT);\n\t\t\t\t\t\t\t\t\t\tRowData cellTypeSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.width = 200;\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setLayoutData(cellTypeSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setText(Messages.getString(MessageIds.GDE_MSGT2288));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2256));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//cell type\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[0] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 0, Messages.getString(MessageIds.GDE_MSGT2257), 175,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2246), 220, UltraDuoPlusDialog.cellTypeNames, 50, 150);\n\t\t\t\t\t\t\t\t\t//number cells\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[1] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2258), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 6/7/18\", 220, false, 50, 150, 1, 18); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//battery capacity\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[2] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2259), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 65000 mAh\", 220, true, 50, 150, 100, 65000, -100, true); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//year, month, day\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[3] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 3, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2260), 100, GDE.STRING_EMPTY, 5, false, 30, 70, 0, 99);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[4] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 4, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2261), 60, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 12);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[5] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 5, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2262), 55, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 31);\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.memorySelectComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 180, 20);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder = new CTabFolder(this.memoryBoundsComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSimple(false);\n\t\t\t\t\t\t\t\t\tFormData chargeTypeTabFolderLData = new FormData();\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.top = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setLayoutData(chargeTypeTabFolderLData);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastCellSelectionIndex = -1;\n\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryValues[0] == 1) { //NiMH with possible step charge\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.stepChargeComposite.getStepChargeValues(UltraDuoPlusDialog.this.memoryStepValues);\n\t\t\t\t\t\t\t\t\t\t\t\t\tEvent changeEvent = new Event();\n\t\t\t\t\t\t\t\t\t\t\t\t\tchangeEvent.index = -1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.notifyListeners(SWT.Selection, changeEvent);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tupdateBatteryMemoryParameter(UltraDuoPlusDialog.this.memoryValues[0]);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2298));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite = new ScrolledComposite(this.chargeTypeTabFolder, SWT.BORDER | SWT.V_SCROLL);\n\t\t\t\t\t\t\t\t\t\t\tFillLayout scrolledMemoryCompositeLayout = new FillLayout();\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setLayout(scrolledMemoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setControl(this.scrolledchargeComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup = new Group(this.scrolledchargeComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2299));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//charge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[6] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 6, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2263), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 20000 mA\", 220, true, 50, 150, 100, 20000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[11] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 11, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2265), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2310), 220, true, 50, 150, 10, 165);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus40 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[12] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2266), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2238), 220, false, 50, 150, 10, 905);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4200 mV\", 220, true, 50, 150, 3600, 4200, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[9] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2279), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2312), 220, false, 50, 150, 0, 550);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[26] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 26, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2276), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4000 mV\", 220, true, 50, 150, 3600, 4000, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[7] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 7, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2277), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"0 ~ 25mV\", 220, false, 50, 150, 0, 25); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[8] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2278), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 20min\", 220, false, 50, 150, 1, 20); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[15] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 15, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2281), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[13] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 13, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2280), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 5\", 220, false, 50, 150, 1, 5); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[16] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 16, Messages.getString(MessageIds.GDE_MSGT2282), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2241) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2240), 220, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setContent(this.chargeGroup);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setSize(620, this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.addControlListener(new ControlListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlResized(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlResized, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlMoved(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlMoved, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2300));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite = new Composite(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\tRowLayout scrolledComposite1Layout = new RowLayout(org.eclipse.swt.SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite.setLayout(scrolledComposite1Layout);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setControl(this.dischargeCycleComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData dischargeGroupLData = new RowData(620, UltraDuoPlusDialog.this.dischargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayoutData(dischargeGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2301));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//discharge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[17] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 17, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2268), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 10000 mA\", 220, true, 50, 150, 100, 10000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[18] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 18, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2269), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"2500 ~ 4200 mV\", 220, true, 50, 150, 2500, 4200, -2500, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[20] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 20, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2271), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2311), 220, false, 50, 150, 10, 105, -10, false);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[21] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 21, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2283), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1100 ~ 1300 mV\", 220, true, 50, 150, 1100, 1300, -1100, false); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData cycleGroupLData = new RowData(625, UltraDuoPlusDialog.this.cycleSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayoutData(cycleGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setText(Messages.getString(MessageIds.GDE_MSGT2302));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//cycle parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[22] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 22, Messages.getString(MessageIds.GDE_MSGT2272), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2292), 220, UltraDuoPlusDialog.cycleDirectionTypes, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[23] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 23, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2273), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 220, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[24] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 24, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2274), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[25] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 25, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2275), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSelection(0);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2320));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryDataComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setControl(this.memoryDataComposite);\n\t\t\t\t\t\t\t\tthis.memoryDataComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.memoryDataSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel = new CLabel(this.memoryDataSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 315;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2321) + Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo = new CCombo(this.memoryDataSelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2339));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memorySelectionIndexData = UltraDuoPlusDialog.this.memoryDataCombo.getSelectionIndex() + 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton cycleDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData cycleDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.top = new FormAttachment(0, 1000, 70);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setLayoutData(cycleDataButtonLData);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2322));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2316));\n\t\t\t\t\t\t\t\t\tcycleDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"cycleDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(0);\n\t\t\t\t\t\t\t\t\t\t\t\tGraphicsWindow cycleGraph = (GraphicsWindow) UltraDuoPlusDialog.this.device.getUtilityDeviceTabItem();\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet utilitySet = UltraDuoPlusDialog.this.application.getUtilitySet();\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.clear();\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < Ultramat.cycleDataRecordNames.length; ++i) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tRecord tmpRecord = new Record(UltraDuoPlusDialog.this.device, i, Ultramat.cycleDataRecordNames[i], GDE.STRING_EMPTY, Ultramat.cycleDataUnitNames[i], true, null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ArrayList<PropertyType>(), 11);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setFactor(Ultramat.cycleDataFactors[i]);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (Ultramat.cycleDataSyncRefOrdinal[i] >= 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.createProperty(MeasurementPropertyTypes.SCALE_SYNC_REF_ORDINAL.value(), DataTypes.INTEGER, Ultramat.cycleDataSyncRefOrdinal[i]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setColorDefaultsAndPosition(i);\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.put(Ultramat.cycleDataRecordNames[i], tmpRecord);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setColor(SWTResourceManager.getColor(Ultramat.cycleDataColors[i][0], Ultramat.cycleDataColors[i][1], Ultramat.cycleDataColors[i][2]));\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (i >= 4) tmpRecord.setPositionLeft(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ((i + 1) % 2 == 0) tmpRecord.setVisible(false);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setHorizontalGridType(RecordSet.HORIZONTAL_GRID_EVERY);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setHorizontalGridRecordOrdinal(4);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeGridType(RecordSet.TIME_GRID_MAIN);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeStep_ms(-1.0); //different time steps\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.syncScaleOfSyncableRecords();\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().setSelection(cycleGraph);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(50);\n\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowPlus2Hours = new Date().getTime() + 7200000L;\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowMinus2Year = new Date().getTime() - 63072000000L;\n\t\t\t\t\t\t\t\t\t\t\t\tboolean isDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\tVector<byte[]> cyclesData = new Vector<byte[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tTreeMap<Long, int[]> sortCyclesData = new TreeMap<Long, int[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tif (Boolean.parseBoolean(System.getProperty(\"GDE_IS_SIMULATION\"))) { //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t//test data - change dates in timeSteps block below to vary\n\t\t\t\t\t\t\t\t\t\t\t\t\t//original data\n\t\t\t\t\t\t\t\t\t\t\t\t\tString memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B50000000000000008002B000C00050009084341DC04B4000B0000000000000032000F00050012001A41F0000000000000000000090015000C0005001D0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D0418004740000000000000003000E000E0006000D094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t//updated data\n\t\t\t\t\t\t\t\t\t\t\t\t\t//String memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B500000000000000130013000B0005000A084341DC04B4000B0000000000000032000000050012001A41F0000000000000000000130028000B0005001E0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D041800474000000000000000D0022000B00060010094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 11; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint startIndex = i * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint endIndex = (i + 1) * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData.add(memoryCycleData.substring(startIndex, endIndex).getBytes());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\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\tlong[] timeSteps = {\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\tnew GregorianCalendar(2011, 06, 01, 03, 38, 0).getTimeInMillis(), \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\tnew GregorianCalendar(2011, 06, 02, 03, 38, 0).getTimeInMillis(), \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\tnew GregorianCalendar(2011, 06, 03, 11, 04, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 04, 9, 45, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 04, 16, 04, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 12, 18, 52, 0).getTimeInMillis(),\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};\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\tint[][] pointss = { \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{16834, 0, 1000, 0, 1300, 0},\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{16834, 16264, 1281, 33, 1036, 0},\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{16857, 0, 371, 0, 1425, 0},\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{16766, 0, 2783, 0, 949, 0},\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{16790, 34, 2783, 15, 1382, 29},\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{16768, \t\t0, 2000, 0, 1140, 0},\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};\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// 2; 0; \t 4; 3; 1; 5\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//2011-04-17, 03:38:00; 1281; 16834; 1036; 33; 16264; 0\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//2011-04-24, 11:04:00; 371; 16857; 1425; 0; 0; 0\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//2011-05-07, 09:45:00; 2783; 16766; 949; 0; 0; 0\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//2011-06-04, 16:04:00; 2783; 16790; 1382; 15; 34; 29\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//2011-06-12, 18:52:00; 2000; 16768; 1140; 0; 0; 0\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\tfor (int i = 0; i < timeSteps.length; i++) {\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\tsortCyclesData.put(timeSteps[i], pointss[i].clone());\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}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData = UltraDuoPlusDialog.this.serialPort.readMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(new String(cycleData));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dataTable.removeAll();\n\n\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong timeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[6];\n\t\t\t\t\t\t\t\t\t\t\t\t\tint hour = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint minute = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint year = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint month = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint day = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[2] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[20], (char) cycleData[21], (char) cycleData[22], (char) cycleData[23]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[24], (char) cycleData[25], (char) cycleData[26], (char) cycleData[27]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[4] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[28], (char) cycleData[29], (char) cycleData[30], (char) cycleData[31]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[3] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[32], (char) cycleData[33], (char) cycleData[34], (char) cycleData[35]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[36], (char) cycleData[37], (char) cycleData[38], (char) cycleData[39]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[40], (char) cycleData[41], (char) cycleData[42], (char) cycleData[43]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", point)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp) + sb.toString()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//if time stamp is not between just now - 1 year and just now + 2 hrs and contains data ask if the date should be corrected\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong dataSum = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataSum += point;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (dataSum > 0 && (timeStamp < justNowMinus2Year || timeStamp > justNowPlus2Hours)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"time stamp out of range ! \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint[] newTimeStamp = new ChangeDateDialog(UltraDuoPlusDialog.this.dialogShell, SWT.NONE, new int[] { hour, minute, 2000 + year, month, day, points[2], points[3] }).open();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newTimeStamp.length > 0) { //change requested\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"date change requested !\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[0] = newTimeStamp[0] < 0 ? 0 : newTimeStamp[0] > 24 ? 24 : newTimeStamp[0]; //hour\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[1] = newTimeStamp[1] < 0 ? 0 : newTimeStamp[1] > 60 ? 60 : newTimeStamp[1]; //minute\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[2] = newTimeStamp[2] <= 2000 ? 0 : newTimeStamp[2] - 2000; //year\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[3] = newTimeStamp[3] < 1 ? 1 : newTimeStamp[3] > 12 ? 12 : newTimeStamp[3]; //month\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[4] = newTimeStamp[4] < 1 ? 1 : newTimeStamp[4] > 30 ? 30 : newTimeStamp[4]; //day\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, k = 0; i < newTimeStamp.length; i++, k += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbyte[] bytes = String.format(\"%04X\", newTimeStamp[i]).getBytes(); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int j = 0; j < bytes.length; j++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcycleData[j + k] = bytes[j];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t//add selected entries to the sorted map, this is what gets displayed in the utility record\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (dataSum > 0 && timeStamp > justNowMinus2Year && timeStamp < justNowPlus2Hours) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortCyclesData.put(timeStamp, points.clone());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//display values\n\t\t\t\t\t\t\t\t\t\t\t\t\tTableItem item = new TableItem(UltraDuoPlusDialog.this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = entry.getValue();\n\t\t\t\t\t\t\t\t\t\t\t\t\titem.setText(new String[] { StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm\", entry.getKey()), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[0] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[1] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[2] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[3] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[4] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[5] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t//check if time stamp was changed, if yes write back changed data to device\n\t\t\t\t\t\t\t\t\t\t\t\tif (isDateChanged) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2333));\n\t\t\t\t\t\t\t\t\t\t\t\t\t//not implemented device firmware: serialPort.writeMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData, cyclesData);\n\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"used entries between \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowMinus2Year) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowPlus2Hours) + GDE.LINE_SEPARATOR); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\t\t\t\t\t\t\t\t\tlong lastTimeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.addPoints(entry.getValue(), (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp));\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < entry.getValue().length; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", entry.getValue()[i])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", entry.getKey()) + String.format(\"; %12d%s\", (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp), sb.toString())); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tlastTimeStamp = lastTimeStamp == 0 ? entry.getKey() : lastTimeStamp;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tLong[] dates = sortCyclesData.keySet().toArray(new Long[0]);\n\t\t\t\t\t\t\t\t\t\t\t\tArrays.sort(dates);\n\t\t\t\t\t\t\t\t\t\t\t\tif (dates != null && dates.length > 1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ GDE.STRING_BLANK_COLON_BLANK\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[0]) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[dates.length - 1])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcycleGraph.enableGraphicsHeader(true);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().notifyListeners(SWT.Selection, new Event());\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(100);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData cycleDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.top = new FormAttachment(0, 1000, 110);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setLayoutData(cycleDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(100);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.dataTable = new Table(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData dataTableLData = new FormData();\n\t\t\t\t\t\t\t\t\tdataTableLData.height = 200;\n\t\t\t\t\t\t\t\t\tdataTableLData.left = new FormAttachment(0, 1000, 5);\n\t\t\t\t\t\t\t\t\tdataTableLData.right = new FormAttachment(1000, 1000, -5);\n\t\t\t\t\t\t\t\t\tdataTableLData.top = new FormAttachment(0, 1000, 140);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLayoutData(dataTableLData);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLinesVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setHeaderVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tTableColumn timeColumn = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\ttimeColumn.setText(\"yyyy-MM-dd, HH:mm\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\ttimeColumn.setWidth(timeColumn.getText().length() * 9);\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\tsb.append(Ultramat.cycleDataTableNames[i]).append(GDE.STRING_BLANK_LEFT_BRACKET).append(Ultramat.cycleDataUnitNames[i]).append(GDE.STRING_RIGHT_BRACKET);\n\t\t\t\t\t\t\t\t\t\tTableColumn column = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tcolumn.setWidth(77);\n\t\t\t\t\t\t\t\t\t\tcolumn.setText(sb.toString());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData channelSelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tchannelSelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tchannelSelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.bottom = new FormAttachment(1000, 1000, -90);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayoutData(channelSelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.channelSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel = new CLabel(this.channelSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 370;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2334));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo = new CCombo(this.channelSelectComposite, SWT.BORDER | SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setItems(this.channelNumbers);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setVisibleItemCount(2);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 35;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2335));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setEditable(false);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelSelectionIndex = UltraDuoPlusDialog.this.channelCombo.getSelectionIndex() + 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton graphicsDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.bottom = new FormAttachment(1000, 1000, -40);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setLayoutData(graphicsDataButtonLData);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2318));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2319));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"graphicsDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[UltraDuoPlusDialog.this.device.getNumberOfMeasurements(UltraDuoPlusDialog.this.channelSelectionIndex)];\n\t\t\t\t\t\t\t\t\t\t\t\tfinal byte[][] graphicsData = new byte[3][];\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.readGraphicsData(graphicsData, UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this);\n\n\t\t\t\t\t\t\t\t\t\t\t\t//create a new record set at the selected output channel\n\t\t\t\t\t\t\t\t\t\t\t\tString processName = Messages.getString(MessageIds.GDE_MSGT2337);\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet recordSet = null;\n\t\t\t\t\t\t\t\t\t\t\t\tChannel channel = Channels.getInstance().get(UltraDuoPlusDialog.this.channelSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\tif (channel != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tString recordSetKey = channel.getNextRecordSetNumber() + GDE.STRING_RIGHT_PARENTHESIS_BLANK + processName;\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSetKey = recordSetKey.length() <= RecordSet.MAX_NAME_LENGTH ? recordSetKey : recordSetKey.substring(0, RecordSet.MAX_NAME_LENGTH);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.put(recordSetKey, RecordSet.createRecordSet(recordSetKey, UltraDuoPlusDialog.this.device, UltraDuoPlusDialog.this.channelSelectionIndex, true, false, true));\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.applyTemplateBasics(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, recordSetKey + \" created for channel \" + channel.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet = channel.get(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.device.setTemperatureUnit(UltraDuoPlusDialog.this.channelSelectionIndex, recordSet, UltraDuoPlusDialog.this.initialAnswerData); //°C or °F\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setAllDisplayable();\n\t\t\t\t\t\t\t\t\t\t\t\t\t// switch the active record set if the current record set is child of active channel\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channels.switchChannel(UltraDuoPlusDialog.this.channelSelectionIndex, recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.switchRecordSet(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tString description = recordSet.getRecordSetDescription() + GDE.LINE_SEPARATOR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"Firmware : \" + UltraDuoPlusDialog.this.device.getFirmwareVersion(UltraDuoPlusDialog.this.initialAnswerData) //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ (UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) >= 1 ? \"; Memory #\" + UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) : GDE.STRING_EMPTY); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint batteryMemoryNumber = UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (batteryMemoryNumber > 0 && UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(batteryMemoryNumber) != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString batteryMemoryName = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) - 1).getName();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdescription = description + GDE.STRING_MESSAGE_CONCAT + batteryMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (recordSetKey.startsWith(\"1)\")) UltraDuoPlusDialog.this.device.matchBatteryMemory2ObjectKey(batteryMemoryName); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ignore and do not append memory name\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setRecordSetDescription(description);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tint numOfPoints = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][1], (char) graphicsData[0][2], (char) graphicsData[0][3], (char) graphicsData[0][4]), 16) - 10;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint timeStep_sec = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][5], (char) graphicsData[0][6], (char) graphicsData[0][7], (char) graphicsData[0][8]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setNewTimeStep_ms(timeStep_sec * 1000.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, j = 9; i < numOfPoints; i++, j += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0=Spannung 1=Strom 5=BatteryTemperature\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[0][j], (char) graphicsData[0][j + 1], (char) graphicsData[0][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[0][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[1][j], (char) graphicsData[1][j + 1], (char) graphicsData[1][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[1][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[2][j], (char) graphicsData[2][j + 1], (char) graphicsData[2][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[2][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.addPoints(points);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.device.updateVisibilityStatus(recordSet, true);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.updateAllTabs(true);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (DataInconsitsentException e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2338));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2336));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.bottom = new FormAttachment(1000, 1000, -15);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setLayoutData(graphicsDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(100);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.mainTabFolder.setSelection(1);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.restoreButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData restoreButtonLData = new FormData();\n\t\t\t\t\t\trestoreButtonLData.width = 118;\n\t\t\t\t\t\trestoreButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\trestoreButtonLData.left = new FormAttachment(0, 1000, 165);\n\t\t\t\t\t\trestoreButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.restoreButton.setLayoutData(restoreButtonLData);\n\t\t\t\t\t\tthis.restoreButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.restoreButton.setText(Messages.getString(MessageIds.GDE_MSGT2284));\n\t\t\t\t\t\tthis.restoreButton.setEnabled(false);\n\t\t\t\t\t\tthis.restoreButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.openFileOpenDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2284), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), GDE.STRING_EMPTY, SWT.SINGLE);\n\t\t\t\t\t\t\t\tif (fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(false);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\t\t\t\t\t\t\t\tUnmarshaller unmarshaller = UltraDuoPlusDialog.this.jc.createUnmarshaller();\n\t\t\t\t\t\t\t\t\t\tunmarshaller.setSchema(UltraDuoPlusDialog.this.schema);\n\t\t\t\t\t\t\t\t\t\t//merge loaded configuration into active\n\t\t\t\t\t\t\t\t\t\tmergeUltraDuoPlusSetup((UltraDuoPlusType) unmarshaller.unmarshal(new File(fileDialog.getFilterPath() + GDE.FILE_SEPARATOR + fileDialog.getFileName())));\n\t\t\t\t\t\t\t\t\t\t//write updated entries while merging\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t\t\t//check and sync active configuration with device content\n\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(0);\n\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryCombo != null && !UltraDuoPlusDialog.this.memoryCombo.isDisposed()) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItems(UltraDuoPlusDialog.this.memoryNames);\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.select(0);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup = new ObjectFactory().createUltraDuoPlusType();\n\t\t\t\t\t\t\t\t\t\t\tList<MemoryType> cellMemories = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory();\n\t\t\t\t\t\t\t\t\t\t\tif (cellMemories.size() < UltraDuoPlusDialog.numberMemories) { // initially create only base setup data\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltraDuoPlusDialog.numberMemories; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tMemoryType cellMemory = new ObjectFactory().createMemoryType();\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemory.setSetupData(new ObjectFactory().createMemoryTypeSetupData());\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemories.add(cellMemory);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.backupButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData backupButtonLData = new FormData();\n\t\t\t\t\t\tbackupButtonLData.width = 118;\n\t\t\t\t\t\tbackupButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tbackupButtonLData.left = new FormAttachment(0, 1000, 29);\n\t\t\t\t\t\tbackupButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.backupButton.setLayoutData(backupButtonLData);\n\t\t\t\t\t\tthis.backupButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.backupButton.setText(Messages.getString(MessageIds.GDE_MSGT2286));\n\t\t\t\t\t\tthis.backupButton.setEnabled(false);\n\t\t\t\t\t\tthis.backupButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"backupButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.prepareFileSaveDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2285), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), StringHelper.getDateAndTime(\"yyyy-MM-dd-HH-mm-ss\") + GDE.STRING_UNDER_BAR //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.device.getName() + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getIdentifierName());\n\t\t\t\t\t\t\t\tString configFilePath = fileDialog.open();\n\t\t\t\t\t\t\t\tif (configFilePath != null && fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\tif (FileUtils.checkFileExist(configFilePath)) {\n\t\t\t\t\t\t\t\t\t\tif (SWT.YES != UltraDuoPlusDialog.this.application.openYesNoMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGI0007, new Object[] { configFilePath }))) {\n\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsaveConfigUDP(configFilePath);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.closeButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData writeButtonLData = new FormData();\n\t\t\t\t\t\twriteButtonLData.width = 118;\n\t\t\t\t\t\twriteButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\twriteButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\twriteButtonLData.right = new FormAttachment(1000, 1000, -21);\n\t\t\t\t\t\tthis.closeButton.setLayoutData(writeButtonLData);\n\t\t\t\t\t\tthis.closeButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.closeButton.setText(Messages.getString(MessageIds.GDE_MSGT2287));\n\t\t\t\t\t\tthis.closeButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"closeButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.dispose();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.helpButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tthis.helpButton.setImage(SWTResourceManager.getImage(\"gde/resource/QuestionHot.gif\")); //$NON-NLS-1$\n\t\t\t\t\t\tFormData LoadButtonLData = new FormData();\n\t\t\t\t\t\tLoadButtonLData.width = 118;\n\t\t\t\t\t\tLoadButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tLoadButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tLoadButtonLData.right = new FormAttachment(1000, 1000, -158);\n\t\t\t\t\t\tthis.helpButton.setLayoutData(LoadButtonLData);\n\t\t\t\t\t\tthis.helpButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"helpButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \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\tthis.boundsComposite.addPaintListener(new PaintListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void paintControl(PaintEvent evt) {\n\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"boundsComposite.paintControl() \" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} // end boundsComposite\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setLocation(getParent().toDisplay(getParent().getSize().x / 2 - 300, 100));\n\t\t\t\tthis.dialogShell.open();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setVisible(true);\n\t\t\t\tthis.dialogShell.setActive();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\tDisplay display = this.dialogShell.getDisplay();\n\t\t\tUltraDuoPlusDialog.log.log(Level.TIME, \"open dialog time = \" + StringHelper.getFormatedTime(\"ss:SSS\", (new Date().getTime() - openStartTime))); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\twhile (!this.dialogShell.isDisposed()) {\n\t\t\t\tif (!display.readAndDispatch()) display.sleep();\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t}\n\t\tfinally {\n\t\t\tif (!GDE.shell.isDisposed()) {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.application.resetShellIcon();\n\t\t\t\tif (this.serialPort != null && this.serialPort.isConnected()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t\tfinally {\n\t\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void connectToBluetoothDevice(String mac) {\n if (BluetoothAdapter.checkBluetoothAddress(mac)) {\n BluetoothDevice mBluetoothDevice = mBluetoothAdapter\n .getRemoteDevice(mac);\n mConnectThread = new ConnectThread(mBluetoothDevice);\n mConnectThread.start();\n }\n }", "public int connect() {\n if (this.mIsConnected) {\n HiLog.info(LOG_LABEL, \"Already connected, ignoring request.\", new Object[0]);\n return 1;\n }\n CallAppAbilityInfo callAppAbilityInfo = this.mInfo;\n if (callAppAbilityInfo == null || callAppAbilityInfo.getComponentName() == null) {\n HiLog.error(LOG_LABEL, \"no component to connect.\", new Object[0]);\n return 2;\n }\n HiLog.info(LOG_LABEL, \"Attempting to connect %{public}s.\", new Object[]{this.mInfo});\n this.mIsConnected = true;\n if (connectCallAppAbility(this.mInfo.getComponentName())) {\n return 1;\n }\n HiLog.error(LOG_LABEL, \"Failed to connect.\", new Object[0]);\n this.mIsConnected = false;\n return 2;\n }", "protected void connect(){\n MediaBrowserCompat mediaBrowser = mediaBrowserProvider.getMediaBrowser();\n if (mediaBrowser.isConnected()) {\n onConnected();\n }\n }", "public void connecting() {\n\n }", "public void buttonClick_connect(View view)\n\t{\n\t\tAppSettings.showConnectionLost = false;\n\t\tLog.i(TAG, \"showConnectionLost = false\");\n\t\t\n\t\tAppSettings.bluetoothConnection = new BluetoothConnection(this.getApplicationContext(), this.btConnectionHandler);\n\t\tBluetoothAdapter btAdapter = AppSettings.bluetoothConnection.getBluetoothAdapter();\n\t\t\n\t\t// If the adapter is null, then Bluetooth is not supported\n if (btAdapter == null) {\n \tToast.makeText(getApplicationContext(), R.string.bt_not_available, Toast.LENGTH_LONG).show();\n }\n else {\n \t// If Bluetooth is not on, request that it be enabled.\n if (!btAdapter.isEnabled()) {\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else {\n \t// Launch the DeviceListActivity to see devices and do scan\n Intent serverIntent = new Intent(getApplicationContext(), DeviceListActivity.class);\n startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE);\n }\n }\n\t}", "public void connectService() {\n log_d( \"connectService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) {\n\t\t\ttoast_short( \"No Action in debug\" );\n \treturn;\n }\n\t\t// connect the BT device at once\n\t\t// if there is a device address. \n\t\tString address = getPrefAddress();\n\t\tif ( isPrefUseDevice() && ( address != null) && !address.equals(\"\") ) {\n\t \tBluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address );\n\t \tif ( mBluetoothService != null ) {\n\t \t log_d( \"connect \" + address );\n\t \tmBluetoothService.connect( device );\n\t }\n\t\t// otherwise\n\t\t// send message for the intent of the BT device list\n\t\t} else {\n\t\t\tnotifyDeviceList();\n\t\t}\n\t}", "public static void openConnection() {\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://192.168.1.51:9090?useTimeone=true&serverTimezone=UTC\",\n\t\t\t\t\t\"remote\", \"Password123\");// credenciales temporales\n\t\t\tSystem.out.print(\"Server Connected\");\n\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.print(\"No se ha podido conectar con mi base de datos\");\n\t\t\tSystem.out.println(ex.getMessage());\n\n\t\t}\n\n\t}", "public void connectDevice(String address) {\n try {\n device = bluetoothAdapter.getRemoteDevice(address);\n }catch(IllegalArgumentException e){\n Toast.makeText(NavigationDrawerActivity.this, \"Mac Address is not available!\", Toast.LENGTH_SHORT).show();\n }\n // Attempt to connect to the device\n chatService.connect(device);\n\n // replaceFragment(AnalysisFragment.NewInstance(),\"analysisfragment\");\n listViewNavDrawer.performItemClick(null,2,0);\n }", "public void ArduinoConnection() {\n\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n while (portEnum.hasMoreElements()) {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n\n if (PORT_NAME.equals(currPortId.getName())) {\n portId = currPortId;\n break;\n }\n }\n\n if (portId == null) {\n\n System.exit(ERROR);\n return;\n }\n\n try {\n\n serialPort = (SerialPort) portId.open(this.getClass().getName(), TIME_OUT);\n\n serialPort.setSerialPortParams(DATA_RATE,\n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n\n Output = serialPort.getOutputStream();\n\n } catch (Exception e) {\n\n System.exit(ERROR);\n }\n\n }", "public void connect() throws ConnectionFailedException\n {\n isConnected = true;\n }", "public void openConnection() throws SQLException {\r\n if (getConnection() == null || getConnection().isClosed()) {\r\n LOG.ok(\"Get new connection, it is closed\");\r\n setConnection(getNativeConnection(config));\r\n }\r\n }", "private void openUsbDevice(UsbDevice device, Bundle extras) throws IOException {\n UsbManager manager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE);\n\n // Find the first available driver.\n final UsbSerialDriver serialDriver = UsbSerialProber.openUsbDevice(manager, device);\n\n if (serialDriver == null) {\n Log.d(TAG, \"No Devices found\");\n throw new IOException(\"No Devices found\");\n } else {\n Log.d(TAG, \"Opening using Baud rate \" + mBaudRate);\n try {\n serialDriver.open();\n serialDriver.setParameters(mBaudRate, 8, UsbSerialDriver.STOPBITS_1, UsbSerialDriver.PARITY_NONE);\n\n serialDriverRef.set(serialDriver);\n\n onUsbConnectionOpened(extras);\n } catch (IOException e) {\n Log.e(TAG, \"Error setting up device: \" + e.getMessage(), e);\n try {\n serialDriver.close();\n } catch (IOException e2) {\n // Ignore.\n }\n }\n }\n }", "private static SocketChannel openConnection(int port)\n {\n SocketChannel socketChannel;\n InetSocketAddress address = new InetSocketAddress(Utils.ADDRESS, port);\n try\n {\n socketChannel = SocketChannel.open();\n socketChannel.connect(address);\n\n //aspetto che termini la connessione\n while (!socketChannel.finishConnect())\n {continue;}\n }\n catch(IOException ioe)\n {\n System.err.println(\"Error in opening socket\");\n ioe.printStackTrace();\n return null;\n }\n\n return socketChannel;\n }", "private boolean connectReader() {\n BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n if (bluetoothManager == null) {\n Log.w(TAG, \"Unable to initialize BluetoothManager.\");\n updateConnectionState(BluetoothReader.STATE_DISCONNECTED);\n return false;\n }\n\n BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter();\n if (bluetoothAdapter == null) {\n Log.w(TAG, \"Unable to obtain a BluetoothAdapter.\");\n updateConnectionState(BluetoothReader.STATE_DISCONNECTED);\n return false;\n }\n\n /*\n * Connect Device.\n */\n /* Clear old GATT connection. */\n if (mBluetoothGatt != null) {\n Log.i(TAG, \"Clear old GATT connection\");\n mBluetoothGatt.disconnect();\n mBluetoothGatt.close();\n mBluetoothGatt = null;\n }\n\n /* Create a new connection. */\n final BluetoothDevice device = bluetoothAdapter\n .getRemoteDevice(mDeviceAddress);\n\n if (device == null) {\n Log.w(TAG, \"Device not found. Unable to connect.\");\n return false;\n }\n\n /* Connect to GATT server. */\n updateConnectionState(BluetoothReader.STATE_CONNECTING);\n mBluetoothGatt = device.connectGatt(this, false, mGattCallback);\n return true;\n }", "public void ArduinoConnection() \n {\n //variables para la identificacion del puerto y poder hacer la conexion\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n //Ciclo para mandar todos los elementos, es decir, aqui se mandara por el puerto los caracteres del mensaje\n while (portEnum.hasMoreElements()) \n {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n \n //comprobamos si hay algo\n if (PORT_NAME.equals(currPortId.getName())) \n {\n portId = currPortId;\n break;\n }\n }\n\n if (portId == null) \n {\n\n System.exit(ERROR);\n return;\n }\n\n try \n {\n \n serialPort = (SerialPort) portId.open(this.getClass().getName(), TIME_OUT);\n\n serialPort.setSerialPortParams(DATA_RATE,\n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n\n Output = serialPort.getOutputStream();\n\n } catch (Exception e) {\n\n System.exit(ERROR);\n }\n\n }", "private void openDataConnectionActive(String ipAddress, int port) {\n try {\n dataConnection = new Socket(ipAddress, port);\n dataOutWriter = new PrintWriter(dataConnection.getOutputStream(), true);\n debugOutput(\"Data connection - Active Mode - established\");\n } catch (IOException e) {\n debugOutput(\"Could not connect to client data socket\");\n e.printStackTrace();\n }\n\n }", "public void startBTConnection(BluetoothDevice device, UUID uuid){\n Log.d(TAG, \"startBTConnection: Initializing RFCOM Bluetooth Connection.\");\n mBluetoothConnection.startClient(device,uuid);\n }", "@Override\n public abstract void connect();", "public static Connection connect(){\n\t\ttry {\n\t\t\tadd = Configure.getADDRESS();\n\t\t\tconn = ConnectionFactory.getConnect(add, Configure.port, \"TCP\");\n\t\t} catch (Exception e) {\n\t\t\tConfigure.logger.error(e.getMessage());\n\t\t\t//System.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t//System.exit(0);\n\t\t}\n\t\treturn conn;\n\t}", "public void openReader(){\r\n handle = -1;\r\n try {\r\n cardReader = new ACR120U();\r\n } catch (java.lang.UnsatisfiedLinkError e) {\r\n e.printStackTrace();\r\n System.err.println(\"Are you sure the DLL is installed???\");\r\n message = \"DLL Installation problem.\";\r\n return;\r\n }\r\n handle = cardReader.open(ACR120U.ACR120_USB1); \r\n if (handle < 0){\r\n //message = \"Error opening reader [port may be in use or reader not in binary mode]\";\r\n message = \"No reader found\";\r\n System.err.println(message);\r\n return;\r\n }\r\n message = \"Device opened.\";\r\n }", "public void connect() {\n\t\tint index = shell.getConnectionsCombo().getSelectionIndex();\n\t\tif (profiles.length == 0 || index < 0 || index >= profiles.length) {\n\t\t\tupdateSelection();\n\t\t\treturn;\n\t\t}\n\t\tIConnectionProfile profile = profiles[index];\n\t\tshell.setEnabled(false);\n\t\tnetworkManager.connect(profile, (s, r) -> {\n\t\t\tif (s) {\n\t\t\t\tcompleted = true;\n\t\t\t\tclose();\n\t\t\t} else {\n\t\t\t\tplugin.sync(() -> {\n\t\t\t\t\tMessageBox messageBox = new MessageBox(shell.isDisposed() ? null : shell, SWT.ICON_ERROR);\n\t\t\t\t\tmessageBox.setMessage(\"Failed to connect!\\n\" + r);\n\t\t\t\t\tmessageBox.open();\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "private void connectToPeer() {\n mStatusText.append(\"Connecting to device...\\n\");\n\n String deviceKey = (String) mDevices.getSelectedItem();\n final WifiDirectDevice device = mGoodDevices.get(deviceKey);\n if (device == null) {\n mStatusText.append(\"Device no longer exists, refreshing peers...\\n\");\n discoverPeers();\n return;\n }\n\n WifiP2pConfig config = new WifiP2pConfig();\n config.deviceAddress = device.deviceAddress;\n config.wps.setup = WpsInfo.PBC; // push-button connect (as opposed to PIN, etc)\n\n // Set groupOwnerIntent so there aren't 2 groupowners.\n // It ranges between 0-15 , higher the value, higher\n // the possibility of becoming a groupOwner\n config.groupOwnerIntent = 0;\n\n if (mServiceDevices != null) {\n final WifiDirectDevice wDevice = mServiceDevices.get(deviceKey);\n if (wDevice != null && !wDevice.isGroupOwner && Integer.valueOf(wDevice.record.get(\"id\").toString()) < WifiDirectUtilities.ID) {\n// // Create a group\n// mManager.createGroup(mChannel, new WifiP2pManager.ActionListener() {\n// @Override\n// public void onSuccess() {\n// MainActivity.this.onGroupCreateResult(-1);\n// }\n//\n// @Override\n// public void onFailure(int reasonCode) {\n// MainActivity.this.onGroupCreateResult(reasonCode);\n// }\n// });\n this.mIsGO = true;\n config.groupOwnerIntent = 1;\n }\n }\n\n mManager.connect(mChannel, config, new WifiP2pManager.ActionListener() {\n\n @Override\n public void onSuccess() {\n mStatusText.append(\"Connected via WiFi!\\n\");\n // BroadcastReceiver will note when the connection changes in WIFI_P2P_PEERS_CHANGED_ACTION\n }\n\n @Override\n public void onFailure(int reasonCode) {\n logEvent(TAG, WifiDirectUtilities.getFailureReasonMessage(reasonCode));\n }\n });\n }", "public HttpURLConnection openConnection(String path) throws IOException {\n\t\tHttpURLConnection co = (HttpURLConnection) getURL(path).openConnection();\n\t\tconfigureConnection(co);\n\t\tconfigureSession(co);\n\t\treturn co;\n\t}", "public void start() {\n gateway.openConnection();\n }", "public boolean openPort() {\n comPort.openPort();\r\n return comPort.isOpen();\r\n }", "public void startBTConnection(BluetoothDevice device, UUID uuid){\n Log.d(TAG, \"startBTConnection: Initializing RFCOM Bluetooth Connection.\");\n\n mBluetoothConnection.startClient(device,uuid);\n }", "public Status connect()\n {\n return connect(5.0);\n }" ]
[ "0.74636436", "0.71608067", "0.71587265", "0.69506377", "0.6820369", "0.6818942", "0.6779966", "0.6701632", "0.65882754", "0.65525943", "0.6547536", "0.65119284", "0.65095717", "0.6483926", "0.6449907", "0.6381675", "0.6342163", "0.63359517", "0.6329952", "0.6275078", "0.62605", "0.62373954", "0.62265056", "0.6211728", "0.6210241", "0.62061846", "0.62060624", "0.62024796", "0.6200041", "0.6195615", "0.61951935", "0.6186296", "0.61753654", "0.6168981", "0.61572474", "0.61503905", "0.614375", "0.614375", "0.614375", "0.61409825", "0.61391515", "0.6105071", "0.61030364", "0.60895455", "0.60498714", "0.6035491", "0.6025171", "0.601903", "0.6014551", "0.6002744", "0.59799576", "0.5976603", "0.59752315", "0.5964725", "0.5962373", "0.5961423", "0.59591085", "0.59356546", "0.5935433", "0.59256643", "0.59240615", "0.59197706", "0.59185237", "0.5915751", "0.59146523", "0.5909218", "0.5896079", "0.58883625", "0.58562994", "0.5852197", "0.5850886", "0.5847017", "0.5789612", "0.5788128", "0.5784534", "0.5769601", "0.57695657", "0.5769123", "0.57654136", "0.5760696", "0.5760516", "0.5759916", "0.57596344", "0.5734884", "0.5726708", "0.5721506", "0.5721072", "0.571139", "0.57082856", "0.5696063", "0.56907374", "0.568829", "0.5681098", "0.5678191", "0.5673214", "0.5670669", "0.5662511", "0.56622463", "0.5650503", "0.5634492" ]
0.5809153
72
Close connection with device.
public void close() throws FTD2XXException { if (!open) return; open = false; ensureFTStatus(ftd2xx.FT_Close(ftHandle)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeConnection() {\n try {\n dis.close();\n dos.close();\n socket.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void closeConnection() {\n\t\tthis.serialPort.close();\n\t}", "public void closeConnection() {\n try {\n socket.close();\n oStream.close();\n } catch (Exception e) { }\n }", "public void closeConnection() {\n try {\n stdIn.close();\n socketIn.close();\n socketOut.close();\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }", "private void tryClose() {\n Log.i(TAG, \"tryClose(): closing connection to heartrate device\");\n if (deviceCommunicator == null) {\n return;\n }\n heartRateCharacteristic = null;\n deviceCommunicator.close();\n deviceCommunicator.disconnect();\n deviceCommunicator = null;\n broadcastAction(ACTION_GATT_DISCONNECTED);\n }", "public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}", "private void closeConnection() {\n\t\t\tSystem.out.println(\"\\nTerminating connection \" + myConID + \"\\n\");\n\t\t\ttry {\n\t\t\t\toutput.close(); // close output stream\n\t\t\t\tinput.close(); // close input stream\n\t\t\t\tconnection.close(); // close socket\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"Exception occured in closing connection\"\n\t\t\t\t\t\t+ ioException);\n\t\t\t}\n\t\t}", "private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }", "@Override\n public void close()\n {\n this.disconnect();\n }", "public void closeConnection();", "public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }", "public void closeConnection(){\n\n try {\n fromClient.close();\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void close() {\n try {\n closeConnection(socket);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public void close()\n {\n \tSystem.out.println(\"close\");\n \tsend(\"<message> <disconnect/></message>\");\n \ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "public void closeConnection() {\n\t// If port is alread closed just return.\n\tif (!open) {\n\t return;\n\t}\n\n\t// Check to make sure sPort has reference to avoid a NPE.\n\tif (sPort != null) {\n\t try {\n\t\t// close the i/o streams.\n\t \tos.close();\n\t \tis.close();\n\t } catch (IOException e) {\n ezlink.info(\"closeConnection Exception(): \");\n ezlink.error(new Object(), e);\n\t\tSystem.err.println(e);\n\t }\n\n\t // Close the port.\n\t sPort.close();\n\n\t // Remove the ownership listener.\n\t portId.removePortOwnershipListener(this);\n\t}\n\n\topen = false;\n }", "private void closeConnection(){\n report(\"Close connection\");\n try{\n if(socket != null && !socket.isClosed()) {\n report(\"Client: Close socket\");\n socket.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n report(\"End\");\n }", "public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\tconnection_.close();\r\n\t\t} catch (IOException e) {} // How can closing a connection fail?\r\n\t\t\r\n\t}", "void close(){\r\n // check precondition: device must be opened\r\n if (!checkOpen()){\r\n return;\r\n }\r\n // turn off antenna and LED\r\n cardReader.power(handle, (byte)0);\r\n cardReader.close(handle);\r\n handle = -1;\r\n message = \"Device closed\";\r\n }", "private void closeConnection () {\n setConnection (null);\n }", "@Override\r\n\tpublic void disconnect() throws Exception\r\n\t\t{\r\n\t\treader.close();\r\n\t\toutputStream.close();\r\n\t\tport.close();\r\n\t\t}", "private void disconnect() {\n\n if (inStream != null) {\n try {inStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (outStream != null) {\n try {outStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (socket != null) {\n try {socket.close();} catch (Exception e) { e.printStackTrace(); }\n }\n }", "private void close() {\n\t\ttry {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog(e);\n\t\t} finally {\n\t\t\tisConnected = false;\n\t\t}\n\t}", "public synchronized void close() {\n\t\t/**\n\t\t * DISCONNECT FROM SERVER\n\t\t */\n\t\tsrvDisconnect();\n\t}", "private void closeConnection() {\n\t\t_client.getConnectionManager().shutdown();\n\t}", "void close()\n {\n DisconnectInfo disconnectInfo = connection.getDisconnectInfo();\n if (disconnectInfo == null)\n {\n disconnectInfo = connection.setDisconnectInfo(\n new DisconnectInfo(connection, DisconnectType.UNKNOWN, null, null));\n }\n\n // Determine if this connection was closed by a finalizer.\n final boolean closedByFinalizer =\n ((disconnectInfo.getType() == DisconnectType.CLOSED_BY_FINALIZER) &&\n socket.isConnected());\n\n\n // Make sure that the connection reader is no longer running.\n try\n {\n connectionReader.close(false);\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n outputStream.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n socket.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n if (saslClient != null)\n {\n try\n {\n saslClient.dispose();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n finally\n {\n saslClient = null;\n }\n }\n\n debugDisconnect(host, port, connection, disconnectInfo.getType(),\n disconnectInfo.getMessage(), disconnectInfo.getCause());\n if (closedByFinalizer && debugEnabled(DebugType.LDAP))\n {\n debug(Level.WARNING, DebugType.LDAP,\n \"Connection closed by LDAP SDK finalizer: \" + toString());\n }\n disconnectInfo.notifyDisconnectHandler();\n }", "private void close() {\n if (mGatt != null) {\n mGatt.close();\n mGatt = null;\n mDeviceAddress = null;\n mDevice = null;\n }\n }", "public void close() {\n try {\n socket.close();\n outputStream.close();\n inputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void close() {\n if (this.client != null && this.client.isConnected()) {\n this.client.close();\n }\n this.running = false;\n }", "private void closeConnection() {\n try {\n fromClient.close();\n toClient.close();\n client.close();\n } catch (IOException e) {\n System.err.println(\"Unable to close connection:\" + e.getMessage());\n }\n }", "public void closeConnection() {\n System.out.println(\"Closing connection\");\n\n try {\n reader.close();\n \n if (connectionSocket != null) {\n connectionSocket.close();\n connectionSocket = null;\n }\n System.out.println(\"Connection closed\");\n } catch (IOException e) {\n System.out.println(\"IOException at closeConnection()\");\n } catch (NullPointerException e) {\n System.out.println(\"NullPointerException at closeConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at closeConnection()\");\n System.out.println(e.toString());\n }\n }", "public void close()\r\n {\r\n datagramSocket.close();\r\n datagramSocket=null;\r\n }", "public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }", "public void closeConnection() {\n try {\n if ( clientSocket != null ) {\n clientSocket.close();\n }\n } catch ( IOException e ) {\n logger.error( \"Error closing sokcet to client \" + getId(), e );\n }\n }", "@Override\r\n public void close(){\r\n if(!isOpened){\r\n log.warning(\"close(): not open\");\r\n return;\r\n }\r\n \r\n if(servoCommandWriter!=null) {\r\n// log.info(\"disabling all servos\");\r\n// disableAllServos();\r\n try{\r\n Thread.sleep(10);\r\n }catch(InterruptedException e){\r\n \r\n }\r\n servoCommandWriter.shutdownThread();\r\n }\r\n servoCommandWriter.close(); // unbinds pipes too\r\n if(gUsbIo!=null) gUsbIo.close();\r\n UsbIo.destroyDeviceList(gDevList);\r\n log.info(\"device closed\");\r\n errorString=null;\r\n isOpened=false;\r\n \r\n }", "public synchronized void closeConnection() {\n try {\n connected = false;\n socket.close();\n System.out.println(\"[SERVER] Connection closed with client\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void closeConnection() throws IOException {\n\t\tclientSocket.close();\n\t}", "public synchronized void close(){\n if(connected){\n try{\n socket.close();\n streamIn.close();\n streamOut.close();\n System.out.println(clientID+\": close: socket\"); \n }catch(IOException ioe){\n System.out.println(clientID+\": close: IOException:\"+ioe);\n }\n }else if(isHost){\n try{\n hostSocket.close();\n System.out.println(clientID+\": close: hostSocket\"); \n }catch(IOException ioe){\n System.out.println(clientID+\": close: IOException:\"+ioe);\n }\n }\n }", "private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}", "public void closeConn(){\n if (null != this.mBTcomm){\n this.mBTcomm.closeConn();\n this.mBTcomm = null;\n }\n }", "public void disconnect()\n {\n isConnected = false;\n }", "@Override\r\n\tpublic void close() {\r\n\t\tthis.socket.close();\r\n\t}", "public void disconnect() {}", "public void disconnect() {\n\t\ttry {\n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\n\t}", "public void mDisconnect() {\n try {\n if (oOutput!=null){\n oOutput.close();\n oOutput=null;}\n if (oInput!=null){\n oInput.close();\n oInput=null;}\n if (oSocket!=null) {\n if (oSocket.isConnected())\n mMsgLog(5,\"Disconnected\");\n oSocket.close();\n oSocket = null;\n }\n if (oDevice!=null){\n oDevice=null;\n }\n } catch (IOException e) {\n mErrMsg(\"Err:\"+e.toString());\n }\n mStateSet(kBT_Disconnected);\n }", "public synchronized void close() {\n if (serialPort != null) {\n try {\n output.close();\n input.close();\n serialPort.removeEventListener();\n serialPort.close();\n connected = false;\n if (log != null) {\n log.close();\n log = null;\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n\n DisconnectedRS232Event event = new DisconnectedRS232Event();\n RS232ConnectionAPI.getInstance().notifyObservers(event);\n\n }\n }", "public void disconnect() {\n\t\tif (con.isConnected()) {\n\t\t\tcon.disconnect();\n\t\t}\n\t}", "public void close() {\n connection.close();\n running = false;\n }", "public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }", "public void closeConnection() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\tlogger.warning(\"problem closing socket connection with JSON-RPC server at \" + serverIP + \":\" + serverPort);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void disconnect() {\n if(!isConnected)\n return;\n\n if(out!=null)\n out.close();\n\n if(in!=null) {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "void closeNetwork();", "public void close()\n {\n getConnectionManager().shutdown();\n }", "public static void closeHttpConn(){ \n\t\thttpUrl.disconnect(); \n\t}", "public void close()\n {\n try\n {\n System.out.println(\"CLIENT chiude connessione\");\n receiverThread.interrupt();\n socket.close();\n System.exit(0);\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "void disconnect() throws CCommException, IllegalStateException;", "public void close(com.sun.jna.PointerType connection) throws RelationException;", "@Override\n public void closeConnection() {\n\n System.out.println(\"[CLIENT] Closing socket connection...\");\n try {\n socket.close();\n in.close();\n out.close();\n System.out.println(\"[CLIENT] Closed socket connection.\");\n } catch (IOException e) {\n System.out.println(\"[CLIENT] Error occurred when closing socket\");\n }\n System.exit(0);\n\n }", "public static void closeConnection() {\n if(connection != null) {\n try {\n connection.close();\n connection = null;\n }\n catch (Exception e) \n { \n e.printStackTrace(); \n }\n }\n }", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "private void close(){\n try {\n socket.close();\n objOut.close();\n line.close();\n audioInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void close() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Chiusura connessione\");\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CLOSE;\n\t\t\tsend(rp);\n\t\t\tClient.LoggedUser.anagrafica = null;\n\t\t\tois.close();\n\t\t\toos.close();\n\t\t\ts.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Errore close client connection\");\n\t\t}\n\t}", "public void disconnect()\t{\n try {\n doStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n diStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n sServidor.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n }", "public void closeConn() {\n try {\n if (writer != null) {\n writer.close();\n }\n if (sockoutOs != null) {\n sockoutOs.close();\n }\n if (null != socket || !socket.isClosed()) {\n socket.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n }", "public void disconnect() {\n try {\n if (socket != null)\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n isConnected = false;\n }", "public void disconnectTelnet() throws Exception{\n\t log.info(\"trying to disconnect to device \"+deviceIP+\" ... \\n\");\n\t try {\n\t\ttelnetClient.disconnect();\n\t\tlog.info(\"Successfully disconnected from \"+deviceIP+\" via telnet\");\n\t\tif(telnetClient.isConnected())\n\t\tlog.info(\"Still connected\\n\");\n\t\tif(FETCHING_DATA_VIA_DATABASE){\n\t\t\tdbConnect.closeConnection();\n\t\t\tlog.info(\"Successfully closed the database. \");\n\t\t}\n\t} catch (IOException e) {\n\t\tlog.error(\"Unable to disconnect to \"+deviceIP+\" via telnet\");\n\t\tthrow new Exception(\"Unable to disconnect!\");\n\t}\n }", "@Override\n public synchronized void close() {\n disconnect();\n mClosed = true;\n }", "@Override\n public void close() throws IOException {\n if (mDevice!=null) {\n try {\n mDevice.close();\n } finally {\n mDevice = null;\n }\n }\n }", "public void closeConnection() {\n try {\n if (connection != null) {\n connection.close();\n connection = null;\n }\n } catch (Exception e) {\n System.out.print(e.getMessage());\n }\n }", "public void disconnectSSH(){\n\t log.info(\"Trying to disconnect to device \"+deviceIP+\" ...\\n\");\n\t session.disconnect();\n\t if(!session.isConnected())\n\t\t log.info(\"Successfully disconnected from device \"+deviceIP+\"\\n\");\n\t else\n\t\t log.error(\"Unable to disconnect to the device \"+deviceIP+\"\\n\");\n\t if(FETCHING_DATA_VIA_DATABASE){\n\t\t dbConnect.closeConnection();\n\t\t log.info(\"Successfully closed the database. \");\n\t }\n }", "public void disconnect() {\n DatabaseGlobalAccess.getInstance().getEm().close();\n DatabaseGlobalAccess.getInstance().getEmf().close();\n }", "public void disconnect() {\n\t\tif (_connection != null) {\n\t\t\ttry {\n\t\t\t\twhile (!_connection.isClosed()) {\n\t\t\t\t\t_connection.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) { /* ignore close errors */\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect() throws IOException {\n sendMessageToServer(\"#Close connection#\");\n outputStream.close();\n inputStream.close();\n clientSocket.close();\n }", "public static void closeConnection() throws SQLException, IOException, JSchException {\n PropertiesLoader loader = new PropertiesLoader();\n int localPort = Integer.parseInt(loader.loadProperty().getProperty(\"localPort\"));\n if (connection != null) {\n connection.close();\n }\n if (session != null) {\n session.delPortForwardingL(localPort);\n session.disconnect();\n }\n }", "public void closeConnection() {\r\n\t\tjava.util.Date connClosedDate = new java.util.Date();\r\n\t\ttry {\r\n\t\t\tpeerNode.peer2PeerOutStream.close();\r\n\t\t\tpeerNode.peer2PeerInStream.close();\r\n\t\t\tpeerNode.peer2Peer.close();\r\n\t\t\toutStream.close();\r\n\t\t\tinStream.close();\r\n\t\t\tpeerToPeerSocket.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(connClosedDate + \": Could not close connection\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void deconnectar() {\n connection = null;\n }", "private void closeDataConnection() {\n try {\n dataOutWriter.close();\n dataConnection.close();\n if (dataSocket != null) {\n dataSocket.close();\n }\n\n debugOutput(\"Data connection was closed\");\n } catch (IOException e) {\n debugOutput(\"Could not close data connection\");\n e.printStackTrace();\n }\n dataOutWriter = null;\n dataConnection = null;\n dataSocket = null;\n }", "final public void closeConnection() throws IOException {\n\n readyToStop = true;\n closeAll();\n }", "private void close() {\n\t\t\n//\t\tif (handlingEvent) { return; } // hopefully this is never used\n\t\t\n\t\tif (serialPort != null) {\n\t\t\tUtil.debug(\"close port: \" + serialPort.getName() + \" baud: \" + serialPort.getBaudRate(), this);\n\t\t\t// serialPort.removeEventListener();\n\t\t\tserialPort.close();\n\t\t\tserialPort = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tif (inputStream != null) inputStream.close();\n\t\t} catch (Exception e) {\n\t\t\tUtil.log(\"input stream close():\" + e.getMessage(), this);\n\t\t}\n\t\ttry {\n\t\t\tif (outputStream != null) outputStream.close();\n\t\t} catch (Exception e) {\n\t\t\tUtil.log(\"output stream close():\" + e.getMessage(), this);\n\t\t}\n\t\t\n\t\tbuffer = null;\n\t\t// Util.delay(TIMEOUT);\n\n\t}", "protected void close() {\n\t\tthis.connection.close();\n\t\tthis.connection = null;\n\t}", "public void stopConnection() throws IOException {\n in.close();\n out.close();\n clientSocket.close();\n }", "private void close() {\r\n try {\r\n if (m_in != null) {\r\n m_in.close();\r\n }\r\n if (m_out != null) {\r\n m_out.close();\r\n }\r\n if (m_socket != null) {\r\n m_socket.close();\r\n }\r\n } catch (IOException e) {\r\n throw new WrappedRuntimeException(e);\r\n }\r\n }", "public void close() {\r\n\t\tif (socket != null)\r\n\t\t\tsocket.close();\r\n\t}", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public static void closeConnection() {\n\t\ttry {\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al cerrar la conexion.\");\n\t\t}\n\t}", "public void disconnect() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tSystem.out.println(\"切断された/Disconnected\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"接続エラーが発生しました/Connection Close Error Occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void disconnect() {\n\t\t\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t} catch(Exception e) {}\n\t\t\n // informa ao Gui\n if(clientGui != null) clientGui.connectionFailed();\n\t\t\t\n\t}", "abstract public void closeConnection();", "public void close() {\n if (mBluetoothGatt == null) {\n return;\n }\n Log.w(TAG, \"mBluetoothGatt closed\");\n mBluetoothDeviceAddress = null;\n mBluetoothGatt.close();\n mBluetoothGatt = null;\n }", "private void Disconnect() {\n //If the btSocket is busy\n if (btSocket!=null) {\n try {\n btSocket.close(); //close connection\n }\n catch (IOException e) {\n msg(\"Error\");\n }\n }\n finish(); //return to the first layout\n\n }", "protected void CloseController() \n throws IOException {\n\n // log\n m_Logger.fine(\"Closing connection to the GPIB controller (GPIB_NI).\\n\");\n\n // Take controller offline\n // the second argument places the device offline (0) or online (1)\n m_gpib32.ibonl(BOARD_NR, 0);\n\n // check for errors\n String str = \"Could not close the connection to the GPIB controller\\n\";\n checkErrorGPIB(str, false);\n\n // assign null to detect any calls after I don't expect any\n m_gpib32 = null;\n \n // just in case, free resources to the ByteBuffer and start GarbageCollection\n m_ReceiveBuffer = null;\n System.gc();\n\n // In JNA it is not necessary to unload the dll\n\n }", "public void disconnect() {\n try {\n telnet.disconnect();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public synchronized void close() throws IOException {\n disconnect(false);\n }", "public void close() {\n try {\n inputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n outputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's output stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n commSocket.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the communication socket!\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "public void close() throws IOException {\n /*\n * Set m_iport to 0, in order to quit out of the while loop\n * in the receiver thread.\n */\n\tint save_iport = m_iport;\n\n\tm_iport = 0;\n\n synchronized (closeLock) {\n if (open) {\n /*\n * Reset open flag early to prevent receive0 executed by\n * concurrent thread to operate on partially closed\n * connection\n */\n open = false;\n\n close0(save_iport, connHandle, 1);\n\n setMessageListener(null);\n\n /*\n * Reset handle and other params to default\n * values. Multiple calls to close() are allowed\n * by the spec and the resetting would prevent any\n * strange behaviour.\n */\n connHandle = 0;\n host = null;\n m_mode = 0;\n\n /*\n * Remove this connection from the list of open\n * connections.\n */\n int len = openconnections.size();\n for (int i = 0; i < len; i++) {\n if (openconnections.elementAt(i) == this) {\n openconnections.removeElementAt(i);\n break;\n }\n }\n\n open_count--;\n }\n }\n }", "public void close() {\n\t\ttry {\n\t\t\t_inputStream.close();\n\t\t\t_outputStream.close();\n\t\t\t_socket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void closeConnection() {\n client.close();\n System.out.println(\"Connection to db closed.\");\n }", "private void closeConnection()\n\t{\n\t\tif(result != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresult.close();\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t\tif(con != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tcon.close();\n\t\t\t\tcon = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t}" ]
[ "0.72744393", "0.7205068", "0.7154354", "0.71451503", "0.71328413", "0.71070164", "0.7081268", "0.7070578", "0.70660347", "0.7055334", "0.70221853", "0.6976397", "0.6958623", "0.6947063", "0.693756", "0.6931144", "0.69284254", "0.6916416", "0.6895809", "0.6887844", "0.68851155", "0.6873495", "0.68549204", "0.6852705", "0.68521214", "0.6811175", "0.6798318", "0.6796117", "0.67789084", "0.6778231", "0.67732716", "0.67679965", "0.6766293", "0.6758502", "0.67146367", "0.6714531", "0.67099035", "0.6709145", "0.67078024", "0.6707457", "0.66948915", "0.6687983", "0.6686655", "0.6672779", "0.6671915", "0.6669753", "0.66674304", "0.66649526", "0.66593647", "0.66553944", "0.66552013", "0.6649642", "0.6649376", "0.66450167", "0.6641781", "0.66384673", "0.6637773", "0.66368985", "0.6634392", "0.66342217", "0.66334504", "0.66285783", "0.66204035", "0.6614141", "0.66120034", "0.6607253", "0.66012865", "0.6599971", "0.65928084", "0.65852505", "0.6568649", "0.65529346", "0.65529346", "0.65529346", "0.65529346", "0.65438575", "0.6543811", "0.6542063", "0.6541719", "0.65338546", "0.65268034", "0.651753", "0.6514753", "0.6512757", "0.65122813", "0.6486386", "0.6486134", "0.64645696", "0.6464098", "0.6461518", "0.6455657", "0.6445373", "0.64370507", "0.6435651", "0.6431564", "0.6430864", "0.6430422", "0.6428251", "0.6422177", "0.64217055", "0.64216393" ]
0.0
-1
Send a cycle command to the USB port.
public void cyclePort() throws FTD2XXException { ensureFTStatus(ftd2xx.FT_CyclePort(ftHandle)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }", "public void sendBreak() {\n\tsPort.sendBreak(1000);\n }", "public void sendCommand(short b) {\n\t\tsendCommand(new short[] {b});\n\t}", "public void sendCommand(Command cmd);", "private boolean sendUsbCommand(int command, int value) {\r\n if (null == mUsbDeviceConnection || null == mUsbEndpointOut) {\r\n return false;\r\n }\r\n\r\n byte[] bytes = new byte[64];\r\n bytes[0] = 0x66;\r\n bytes[1] = (byte) command;\r\n bytes[2] = (byte) value;\r\n\r\n Log.d(TAG, \"Try to sendUsbCommand: \" + command + \", value: \" + value);\r\n return mUsbDeviceConnection.bulkTransfer(mUsbEndpointOut, bytes, 64, 1000) > 0;\r\n }", "public void sendCommand(short[] commandBytes) {\n\t\tshort[] toSend = new short[commandBytes.length + 1];\n\t\ttoSend[0] = IAC;\n\t\tSystem.arraycopy(commandBytes, 0, toSend, 1, commandBytes.length);\n\t\toutWriter.write(toSend);\n\t}", "public void cycle() {\n ticks++;\n for (int i = 0; i < validDevices; i++)\n devices[i].onClockTick(ticks);\n }", "private void commandMotor(int channel, int maskValue){\n\t\tbyte workingByte = (byte)((CMDBIT_GO | maskValue) & 0xff);\n\n\t\tif (motorParams[MOTPARAM_REGULATE][channel] == MOTPARAM_OP_TRUE) workingByte |= CMDBIT_SPEED_MODE;\n\t\tif (motorParams[MOTPARAM_RAMPING][channel] == MOTPARAM_OP_TRUE) workingByte |= CMDBIT_RAMP;\n\t\t// send the message.\n\t\tsendData(REGISTER_MAP[REG_IDX_COMMAND][channel], workingByte);\n\t}", "void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }", "@Override\r\n public void run() {\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(color)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n runCommand = true;\r\n }", "public void PIDSpeed(double rpm) {\n\t\tsuper.enableControl();\n\t\tPIDTargetSpeed = rpm;\n\t\t// double speed = rpm * (4096.0 / 6000.0);\n\n\t\t// SmartDashboard.sendData(this.getChannel() + \"RPM\", rpm);\n\t\t// SmartDashboard.sendData(this.getChannel() + \"Speed\", speed);\n\t\tsuper.changeControlMode(TalonControlMode.Speed);\n\t\tsuper.set(rpm);\n\t\t// SmartDashboard.sendData(\"Talon \" + this.getChannel() + \" Speed\",\n\t\t// getSpeed());\n\t}", "public void servoOn() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(svonChannel, 1, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to turn servos on\", e);\n \t\t}\n \t}", "public void send0(){\n digitalWrite(data0, LOW);\n delayMicroseconds(34);\n digitalWrite(data0, HIGH);\n}", "public void send1(){\n digitalWrite(data1, LOW);\n delayMicroseconds(34);\n digitalWrite(data1, HIGH);\n}", "public void loop() throws Exception {\r\n // get a command and process it from\r\n // the serial port (if available.)\r\n// wdt_disable();\r\n if (mrlComm.readMsg()) {\r\n mrlComm.processCommand();\r\n }\r\n // update devices\r\n mrlComm.updateDevices();\r\n // send back load time and memory\r\n // driven by getBoardInfo now !!!\r\n // mrlComm.publishBoardStatus();\r\n }", "public void cycleOutput(long tick)\n {\n }", "public static void UI_send_command(int com, Object... params){\n\t\t//Create the packet\n\t\tCalicoPacket p;\n\t\tif(params!=null){\n\t\t\tp=CalicoPacket.getPacket(com, params);\n\t\t}\n\t\telse{\n\t\t\tp=CalicoPacket.getPacket(com);\n\t\t}\n\t\t\n\t\tp.rewind();\n\t\t//Send the packet locally\n\t\tPacketHandler.receive(p);\n\t\t\n\t\t//Send the packet to the network (server)\n//\t\tNetworking.send(p);\t\n\t}", "public void setPortDOutRegisters(byte p1, byte p2){\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[3];\r\n cmd.bytes[0]=CMD_SET_PORT_DOUT;\r\n cmd.bytes[1]=(byte)(0x0f&p1);\r\n cmd.bytes[2]=(byte)(0xff&p2);\r\n submitCommand(cmd);\r\n\r\n }", "final protected void sendClock() {\n\t\tNode cn = peers.iterator().next();\n\t\tif (cn.serial - serial == 1 || (serial - cn.serial != 1 && cn.serial < serial))\n\t\t\tsend(cn);\n\t\telse\n\t\t\tsendAllBut(cn);\n\t}", "@Override\n public void loop() {\n\n\n if (gamepad1.right_bumper) {\n leftDrive.setDirection(DcMotor.Direction.FORWARD);\n leftDrive.setPower(3);\n } else if (gamepad1.left_bumper) {\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n leftDrive.setPower(3);\n\n }\n\n }", "public void send(String command)\n {\n if (connected) { \n writer.println(command + \";\");\n }\n }", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void establishChannel(String Download)\r\n {\r\n try\r\n {\r\n int lines=0;\r\n while(true)\r\n {\r\n lines=getLines(path,Download);\r\n if(lines == 0)\r\n {\r\n //nothing to copy\r\n System.out.println(\"Nothing to copy will try in 5 secs\");\r\n Thread.sleep(5000);\r\n }\r\n else\r\n\t {\r\n String command1=\"tail -\"+lines+\" \"+path;\r\n System.out.println(\"Setting command: \"+command1); \r\n settingCommand(command1,Download);\r\n Thread.sleep(1000);\r\n }\r\n }\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e);\r\n }\r\n }", "public void sendOSCCommand(String message) throws CausticException {\n OSCMessage result = OSCMessage.initialize(message);\n sendOSCCommand(result);\n }", "public void setCycleInterval(long value) {\r\n this.cycleInterval = value;\r\n }", "public void send(final ControlMessage.ClientToDriverMessage message) {\n // This needs active 'link' between the driver and client.\n // For the link to be alive, the driver should connect to DriverRPCServer.\n // Thus, the server must be running to send a message to the driver.\n ensureServerState(true);\n if (link == null) {\n throw new RuntimeException(\"The RPC server has not discovered NemoDriver yet\");\n }\n link.write(message.toByteArray());\n }", "private void sendCommand(CommandItem command) {\n sendCommand(command.data, command.advTimeout);\n }", "public static native void send( String cmd );", "public DampenedMotor(int channel) {\n\t\tsuper(channel);\n\t\tcurrentSpeed = 0;\n\t\ttargetSpeed = 0;\n\t}", "public void sendCommands(String command) {\n try {\n printStream.print(command);\n }\n catch (Exception e){\n\n }\n\n\n }", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}", "void enablePWM(double initialDutyCycle);", "public void command(byte[] cmdMessage) throws SAPIException{\r\n\t\t\t\t//sends command to RBNB\r\n\t\t\t\t\r\n\t\t\t\tsrcMap.PutDataAsByteArray(srcMap.GetIndex(getParameterToStringById(\"sourceChannelCommandName\")), cmdMessage); //cmds channel\t \t\r\n\t \tsrc.Flush(srcMap); \t\r\n\t\t}", "void updateDutyCycle(double dutyCycle);", "private void moveMotor(String num){\n Log.d(\"moveMotor\", \"TO\" + num);\n if (btSocket!=null) {\n try {\n btSocket.getOutputStream().write((\"TO\" + num).getBytes());\n }\n catch (IOException ex) {\n msg(\"Error\");\n }\n }\n }", "public void sendSpinBoard(boolean clockwise) {\r\n XferSpinBoard xfer = new XferSpinBoard(clockwise);\r\n networkPlayer.sendOutput(xfer);\r\n }", "public void sendByteCommand(int address, byte command, boolean waitForCompletion)\n {\n final String funcName = \"sendByteCommand\";\n byte[] data = new byte[1];\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"addr=%d,cmd=0x%x,sync=%s\",\n address, command, Boolean.toString(waitForCompletion));\n }\n\n data[0] = command;\n if (waitForCompletion)\n {\n syncWrite(address, data, data.length);\n }\n else\n {\n //\n // Fire and forget.\n //\n asyncWrite(null, address, data, data.length, null, null);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n }", "void Send (int boardID, short addr, ByteBuffer databuf, long datacnt, int eotMode);", "final protected void sendCounterClock() {\n\t\tNode cn = peers.iterator().next();\n\t\tif (serial - cn.serial == 1 || (cn.serial - serial != 1 && cn.serial > serial))\n\t\t\tsend(cn);\n\t\telse\n\t\t\tsendAllBut(cn);\n\t}", "public void setCycles(final long cycles) {\r\n this.cycles = cycles;\r\n }", "void send(ByteBuffer data) throws CCommException, IllegalStateException;", "public void TurnCommand() {\n\n requires(Robot.driveSubsystem);\n\n }", "@Override\n\tpublic void drive() {\n\t\tSystem.out.println(\"VAN IS DRIVING\");\n\t}", "public void sendDo(short code) {\n\t\toutWriter.write(new short[] {IAC, DO, code});\n\t}", "public int send(byte[] buffer) throws IllegalAccessException {\n if (!mUsbConnection.claimInterface(mUsbInterface, forceClaim))\n throw new IllegalAccessException(\"USB interface cannot be claimed\");\n return mUsbConnection.bulkTransfer(mUsbEndpointOut, buffer, buffer.length, TIMEOUT);\n }", "public void encoderDrive(double speed, double aInches, double bInches, double cInches, double dInches) {\n double ad = 720 * (aInches / 12.57);\n int aDistance = (int) ad;\n double bd = 720 * (bInches / 12.57);\n int bDistance = (int) bd;\n double cd = 720 * (cInches / 12.57);\n int cDistance = (int) cd;\n double dd = 720 * (dInches / 12.57);\n int dDistance = (int) dd;\n\n aDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n aDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n bDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n cDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n cDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n dDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n dDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n aDrive.setTargetPosition(aDistance);\n bDrive.setTargetPosition(bDistance);\n cDrive.setTargetPosition(cDistance);\n dDrive.setTargetPosition(dDistance);\n aDrive.setPower(speed);\n bDrive.setPower(speed);\n cDrive.setPower(speed);\n dDrive.setPower(speed);\n\n while (aDrive.isBusy() && bDrive.isBusy() && cDrive.isBusy() && dDrive.isBusy() && opModeIsActive()) {\n idle();\n }\n aDrive.setPower(0);\n bDrive.setPower(0);\n cDrive.setPower(0);\n dDrive.setPower(0);\n }", "public void send(final boolean isLock) {\n\n\t\twriteCharacteristic(mRxCharacteristic, isLock ? BlinkDoorlock.lock() : BlinkDoorlock.unlock())\n\t\t\t\t.with(mRxDataCallback).enqueue();\n\t}", "public void Send3bytes(int comm, int data, int more) { // in {FF} Arduino\r\n int info = data & 127;\r\n boolean logy = ((SpokeHard & 0xFFFF) < SpeakHard)\r\n || LogAllPcnts && (comm == REPORT_PULSECOUNT); // = 0xA0;\r\n byte[] msg = new byte[3];\r\n SpokeHard++;\r\n if (more < 0){\r\n more = (data >> 7) & 127;\r\n if (logy) System.out.println(\"F%%F/Send3by \" + comm + \" \" + data\r\n + \" .. => \" + info + \" \" + more + FormatMillis(\" @ \", 0x80000000));\r\n data = info;\r\n } else if (logy){\r\n System.out.println(\"F%%F/Send3by \" + comm + \" \" + data + \" \" + more +\r\n FormatMillis(\" @ \", 0x80000000));\r\n }\r\n if (comm < 128){\r\n return;\r\n } // not a valid command byte..\r\n if (comm > 255){\r\n return;\r\n }\r\n more = more & 127;\r\n data = info;\r\n msg[0] = (byte) (comm);\r\n msg[1] = (byte) (data);\r\n msg[2] = (byte) (more);\r\n try {\r\n surrealPort.writeBytes(msg);\r\n if (DoMore != null) DoMore.SendBytes(msg, 3);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n }", "void sendMessage(int cycleCount, int index, int offset, long time)\n {\n Message msg = handler.obtainMessage(state, index, offset); //pos.offset);\n handler.sendMessage(msg);\n }", "public void run() {\n\t\tserialPort = new SerialPort(\"COM6\"); \r\n try {\r\n serialPort.openPort();//Open port\r\n serialPort.setParams(9600, 8, 1, 0);//Set params\r\n int mask = SerialPort.MASK_RXCHAR + SerialPort.MASK_CTS + SerialPort.MASK_DSR;//Prepare mask\r\n serialPort.setEventsMask(mask);//Set mask\r\n serialPort.addEventListener(new SerialPortReader());//Add SerialPortEventListener\r\n serialPort.writeBytes(readRequest());\r\n }\r\n catch (SerialPortException ex) {\r\n System.out.println(ex);\r\n }\r\n\r\n\t\t\r\n\t}", "int libusb_control_transfer(DeviceHandle dev_handle, short bmRequestType, short bRequest, int wValue, int wIndex,\r\n String data, int wLength, int timeout);", "void sendCommand(CommandEvent event);", "void sendCommand(String s) {\r\n\t\tif (\"up\".equals(s)) {\r\n\t\t\tout.println(\"up\");\r\n\t\t} else if (\"down\".equals(s)) {\r\n\t\t\tout.println(\"down\");\r\n\t\t} else if (\"left\".equals(s)) {\r\n\t\t\tout.println(\"left\");\r\n\t\t} else if (\"right\".equals(s)) {\r\n\t\t\tout.println(\"right\");\r\n\t\t}\r\n\t\t// out.println(\"stat\");\r\n\t\tout.flush();\r\n\t}", "public void flywhlGo(int rpm) {\n\t\tflywheelMotor.changeControlMode(TalonControlMode.Speed);\n\t\tflywheelMotor.set(rpm);\n\t\tSystem.out.println(flywheelMotor.getError());\n\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tm_robotDrive.driveCartesian(m_stick.getX(), m_stick.getY(),\n\t\t\t\tm_stick.getZ(), 0.0);\n\t}", "protected void execute() {\r\n\r\n Robot.drive.driveForward(DRIVE_SPEED);\r\n }", "private void turn(double speed, int time, DcMotorSimple.Direction direction) {\n leftDrive.setDirection(direction.inverted());\n rightDrive.setDirection(direction.inverted());\n leftDrive.setPower(speed);\n rightDrive.setPower(speed);\n sleep(time);\n leftDrive.setPower(0.0);\n rightDrive.setPower(0.0);\n }", "protected final void onCycle(CommandSender sender) {\n setInteracting(sender);\n onCycle();\n }", "public synchronized void sendCardFromDeck () {\n\t\t// Draw card from deck\n\t\tCard drawnCard = deck.drawCard();\n\t\t// Inform the player that a card will be sent\n\t\tsendMessage (\"Signal:SendCardFromDeck\", currentPlayer);\n\t\tsendCard (drawnCard, currentPlayer);\n\t}", "private void writeCommandToSerial(final String command) throws SerialPortException {\n if( null == serialPort || !serialPort.isOpened()) {\n openSerial();\n }\n\n if( !serialPort.isOpened()) {\n openSerial();\n }\n\n LOGGER.info(command.toString());\n serialPort.writeString(command.toString());\n }", "@Override\n public void execute() {\n\n DifferentialDriveWheelPowers powers = mBasicDrive.drive(mThrottle.getAsDouble(), mTurn.getAsDouble(), mTrim.getAsDouble());\n\n DifferentialDriveWheelSpeeds speeds = new DifferentialDriveWheelSpeeds(\n powers.getLeft() * Constants.Drive.kFeedforward.maxAchievableVelocity(Constants.Robot.kMinBatteryVoltage, 0.0),\n powers.getRight() * Constants.Drive.kFeedforward.maxAchievableVelocity(Constants.Robot.kMinBatteryVoltage, 0.0));\n\n mDriveSubsystem.setVelocity(speeds, mDeadband);\n }", "public static void lcd_WriteCMD(int data) {\n lcd_RawWrite(data & 0xF0);\n lcd_RawWrite((data <<4 ) & 0xF0);\n }", "public static boolean wirteDirectly(String command, int clientID){\n\t\tfinal long now = System.currentTimeMillis();\n\t\tif((now-busyIdLastSeen) > Constants.MAX_TIME_BUSY_MS){\n\t\t\tbusyID = clientID;\n\t\t}\n\n\t\tif((busyID != clientID) || port == null){\n\t\t\treturn false;\n\t\t} else {\n\t\t\t// TODO prevent malicious injection, check if line is in the correct format \n\t\t\tport.write(command);\n\t\t\t\n\t\t\tbusyIdLastSeen = now;\n\t\t\tbusyID = clientID;\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t}", "public void transmit()\n { \n try\n {\n JSch jsch=new JSch(); //object that allows for making ssh connections\n //Log into the pi\n Session session=jsch.getSession(USERNAME, HOSTNAME, 22); //pi defaults to using port 22 \n session.setPassword(PASSWORD);\n session.setConfig(\"StrictHostKeyChecking\", \"no\"); //necessary to access the command line easily\n \n session.connect(1000);//connect to the pi\n \n Channel channel = session.openChannel(\"exec\");//set session to be a command line \n ((ChannelExec)channel).setCommand(this.command); //send command to the pi\n \n channel.setInputStream(System.in); \n channel.setOutputStream(System.out);\n //connect to the pi so the command can go through\n channel.connect(1000);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(frame, \"Error connecting to infrared light\", \"Error Message\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void sendCommand(String msg) throws InterruptedException {\n commandQueue.put(msg);\n selector.wakeup();\n }", "public void startFeeding() {\n motor.set(FEED_SPEED);\n }", "public static void playD() throws InterruptedException\n\t{\n\t\tchannels[channel].noteOn( 62, volume );//D\n\t\tThread.sleep(200);\n\t}", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "public boolean sendBLEString(final String patt, final int sendBLEChar) //BLEDevice.BLE_SEND_STRAND_CHARACTERISTIC\n {\n if ( isConnected() )\n {\n return currentBLEDevice.sendBLEString(patt, sendBLEChar);\n }\n Toolbox.toast(getContext(), \"Device not ready to send commands\");\n return false;\n }", "@JavascriptInterface\n public void sendCommand(String array) {\n Log.d(TAG, \"sendCommand: \" + array);\n if (!connected) {\n Log.e(TAG, \"Attempting to send M2 a command while its not connected: \" + array);\n return;\n }\n try {\n JSONArray json = new JSONArray(array);\n byte[] data = new byte[json.length()];\n for (int i = 0; i < data.length; i++) {\n data[i] = (byte) json.getInt(i);\n }\n EventBus.getDefault().post(new M2Command(data));\n }\n catch (JSONException e) {\n Log.e(TAG, \"Invalid command: \" + array);\n }\n }", "public void ping() {\n\t\tHeader.Builder hb = Header.newBuilder();\n\t\thb.setNodeId(999);\n\t\thb.setTime(System.currentTimeMillis());\n\t\thb.setDestination(-1);\n\n\t\tCommandMessage.Builder rb = CommandMessage.newBuilder();\n\t\trb.setHeader(hb);\n\t\trb.setPing(true);\n\n\t\ttry {\n\t\t\t// direct no queue\n\t\t\t// CommConnection.getInstance().write(rb.build());\n\n\t\t\t// using queue\n\t\t\tCommConnection.getInstance().enqueue(rb.build());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface USBPort {\n void workWithUSB();\n}", "@Override\r\n public void setPort2(int portValue) {\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[2];\r\n cmd.bytes[0]=CMD_SET_PORT2;\r\n cmd.bytes[1]=(byte)(0xff&portValue);\r\n submitCommand(cmd);\r\n }", "public void teleopPeriodic() {\n \t//driveTrain.setInputSpeed(xbox.getAxisLeftY(), xbox.getAxisRightY());\n \t\n \tdriveTrain.print();\n \t\n \t// funcao PID\n \tif (xbox.getButtonX()) {\n\t\t\tbotaoapertado = true;\n\t\t} else if (xbox.getButtonY()) {\n\t\t\tbotaoapertado = false;\n\t\t\tdriveTrain.start();\n\t\t\tdriveTrain.setSetPoint(0, 0);\n\t\t}\n \tif (botaoapertado) {\n \t\tdriveTrain.setSetPoint(100, 100);\n\t\t}\n \t\n }", "public static void settingCommand(String command1,String Download)\r\n {\r\n try\r\n {\r\n File temp_file = new File(path);\r\n Download = Download + \"/\" + temp_file.getName();\r\n channel=session.openChannel(\"exec\");\r\n ((ChannelExec)channel).setCommand(command1);\r\n\t channel.setInputStream(null);\r\n\t ((ChannelExec)channel).setErrStream(System.err); \r\n\t in=channel.getInputStream();\r\n\t channel.connect();\r\n writer = new PrintWriter(new FileOutputStream(new File(Download),true)); //destination file\r\n int i;\r\n char c;\r\n while(true)\r\n {\r\n while(in.available()>0)\r\n {\r\n System.out.println(\"avail: \"+in.available());\r\n while((i = in.read())!=-1) \r\n {\r\n c = (char)i; \r\n writer.print(c);\r\n }\r\n writer.close();\r\n }\r\n if(channel.isClosed())\r\n break;\r\n }\r\n in.close();\r\n channel.disconnect();\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e);\r\n }\r\n }", "private void send_controlsignal(int speed,int angle){\t\t\r\n\t\tif (controller_computer.network.send_controllsignal(speed+\";\"+up+\";\"+angle+\";\"+right)){\r\n\t\t feedback_output();\r\n\t\t controller_computer.camera_picture.UpdateDirection(up, down, left, right);\r\n\t\t}else{\r\n\t\t\tcontroller_computer.camera_picture.UpdateDirection(false,false,false,false);\r\n\t\t}\r\n\t}", "public void DriveForwardSimple() {\n \ttheRobot.drive(-0.5, 0.0);\n }", "public void sendInfo(){\r\n\t\tfor(int i = 0; i < attachedChooser.getNumberOfCommandsInChooser(); i++){\r\n\t\t\tthis.writeStringData(i + \" \" + attachedChooser.getCommand(i).toString() + \">>>\"); // >>> denoted the end of the current command to the arduino\r\n\t\t}\r\n\t\tthis.writeStringData(\"!!!\"); //denoted to arduino that we have given it all of the commands and it can do its thing \r\n\t}", "public void brake(int motor) {\n checkMotor(motor);\n\n synchronized (this) {\n msgBuf[2] = (byte)motor;\n msgBuf[3] = (byte)DIR_BRAKE;\n msgBuf[4] = '0';\n msgBuf[5] = '0';\n msgBuf[6] = '\\r';\n\n robotIO.queueMessage(msgBuf, 0, 7);\n\n // Keep track of the last values sent\n\n if (MOTOR_PORT == motor || MOTOR_ALL == motor) {\n lastPortSpeed = 0;\n lastPortDirection = DIR_BRAKE;\n }\n if (MOTOR_STARBOARD == motor || MOTOR_ALL == motor) {\n lastStarboardSpeed = 0;\n lastStarboardDirection = DIR_BRAKE;\n }\n }\n }", "public void BWidthConsumeDL(int cycle){\n\t\tthis.dl_bwidth.consume(cycle);\n\t}", "void drive(double power, double leftInches, double rightInches, double seconds) {\n\n //Make new integer to set left and right motor targets\n int leftTarget;\n int rightTarget;\n\n if (opModeIsActive()) {\n\n //Determine left and right target to move to\n leftTarget = robot.leftMotor.getCurrentPosition() + (int) (leftInches * COUNTS_PER_INCH);\n rightTarget = robot.rightMotor.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);\n\n //Set target and move to position\n robot.leftMotor.setTargetPosition(leftTarget);\n robot.rightMotor.setTargetPosition(rightTarget);\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //Reset runtime and start motion\n robot.leftMotor.setPower(Math.abs(power));\n robot.rightMotor.setPower(Math.abs(power));\n\n //Test if motors are busy, runtime is less than timeout and motors are busy and then run code\n while (opModeIsActive() && (runtime.seconds() < seconds) && (robot.leftMotor.isBusy() && robot.rightMotor.isBusy())) {\n\n //Tell path to driver\n telemetry.addData(\"Path1\", \"Running to: \", leftTarget, rightTarget);\n telemetry.addData(\"Path2\", \"Running at: \", robot.leftMotor.getCurrentPosition(), robot.rightMotor.getCurrentPosition());\n telemetry.update();\n }\n\n //Stop motors after moved to position\n robot.leftMotor.setPower(0);\n robot.rightMotor.setPower(0);\n\n //Set motors back to using run using encoder\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "public interface UsbCommunicationInterface extends Runnable\n{\n byte get();\n\n void send(byte data) throws IOException;\n\n void cancel();\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 }", "private static void ShortPauseBetweenOScommands(int commandCount) {\n\t\tif (commandCount > 1) {\n\t\t\tSafeSleep.sleep(100L);\n\t\t}\n\t}", "protected void send(String s) throws IOException {\n\t\t// Send string to browser.\n\t\t// Log.debug(\"Adapter: sending: \" + s);\n\t\tif (servletOut == null) {\n\t\t\tthrow new IOException(\"Client adapter was stopped\");\n\t\t}\n\n\t\tservletOut.print(s);\n\n\t\tservletOut.flush();\n\n\t\t// Note: this doesn't seem to have effect\n\t\t// in Tomcat 4/5 if the client already disconnected.\n\t\tservletRsp.flushBuffer();\n\n\t\tbytesSent += s.length();\n\t\tLog.debug(\"bytesSent= \" + bytesSent);\n\t\t// Log.debug(\"BCA sent event: \" + s);\n\t}", "public void execute(){\n drivetrain.tankDrive(0.6 * direction, 0.6 * direction);\n // slower than full speed so that we actually bring down the bridge,\n // not just slam it and push balls the wrong way\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n passwordEditTextValue = edittext.getText().toString() + \"\\n\";\n\n byte[] bytes = passwordEditTextValue.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 1000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }", "public void drive(double direction, double speed) {\n if (mode != SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.setSetpoint(direction);\n }\n \t\tmodules.get(0).setSpeed(speed * -1);\n \t\tmodules.get(1).setSpeed(speed);\n \t\tmodules.get(2).setSpeed(speed * -1);\n \t\tmodules.get(3).setSpeed(speed);\n\n\n }\n\n}", "@Override\n\t\tpublic void loop() throws ConnectionLostException, InterruptedException {\n\t\t\ttry {\n\t\t\t\tif (ExitApp == true) {\n\t\t\t\t\tPStatus.write(false);\n\t\t\t\t\tEN_LE.write(false);\n\t\t\t\t\tExitApp = false;\n\t\t\t\t\tDisplayLabel(\"LATCH ON\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPStatus.write(true);\n\n\t\t\t\t// Set device enable\n\t\t\t\tEN_Device1.write(cmdDevice1.isChecked());\n\t\t\t\tEN_Device2.write(cmdDevice2.isChecked());\n\t\t\t\tEN_Device3.write(cmdDevice3.isChecked());\n\t\t\t\tEN_Device4.write(cmdDevice4.isChecked());\n\t\t\t\tEN_Device5.write(cmdDevice5.isChecked());\n\n\t\t\t\tif (cmdDevice1.isChecked())\n\t\t\t\t\tDisplayLabel(\"Btn1_Click\");\n\t\t\t\t// Get Amp\n\n\t\t\t\t// Get Watt\n\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// PStatus.write(false);\n\t\t\t\t// EN_LE.write(false);\n\t\t\t\tioio_.disconnect();\n\t\t\t} catch (ConnectionLostException ex) {\n\t\t\t\t// PStatus.write(false);\n\t\t\t\t// EN_LE.write(false);\n\t\t\t\tioio_.disconnect();\n\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.cusumoer();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.cusumoer();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "native int _writeSerialPort(int port, byte data[]);", "public void encoderDrive(double speed,\r\n double leftInches, \r\n double rightInches,\r\n String name) \r\n {\n int newLeftTarget = robot.leftDrive.getCurrentPosition() + (int)(leftInches * COUNTS_PER_INCH);\r\n int newRightTarget = robot.rightDrive.getCurrentPosition() + (int)(rightInches * COUNTS_PER_INCH);\r\n robot.leftDrive.setTargetPosition(newLeftTarget);\r\n robot.rightDrive.setTargetPosition(newRightTarget);\r\n\r\n // Turn On RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n\r\n // reset the timeout time and start motion.\r\n ElapsedTime localTimer = new ElapsedTime();\r\n localTimer.reset();\r\n robot.leftDrive.setPower(Math.abs(speed));\r\n robot.rightDrive.setPower(Math.abs(speed));\r\n\r\n // keep looping while we are still active, and there is time left, and both motors are running.\r\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\r\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\r\n // always end the motion as soon as possible.\r\n // However, if you require that BOTH motors have finished their moves before the robot continues\r\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\r\n while (localTimer.seconds() < EncoderDrive_Timeout_Second \r\n && (robot.leftDrive.isBusy() || robot.rightDrive.isBusy())) {\r\n\r\n // Display it for the driver.\r\n telemetry.addData(\"\", \"%s @ %s\", name, localTimer.toString());\r\n telemetry.addData(\"To\", \"%7d :%7d\", newLeftTarget, newRightTarget);\r\n telemetry.addData(\"At\", \"%7d :%7d\",\r\n robot.leftDrive.getCurrentPosition(),\r\n robot.rightDrive.getCurrentPosition());\r\n telemetry.update();\r\n idle();\r\n }\r\n\r\n // Stop all motion;\r\n robot.leftDrive.setPower(0);\r\n robot.rightDrive.setPower(0);\r\n\r\n // Turn off RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "public void ArduinoConnection() {\n\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n while (portEnum.hasMoreElements()) {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n\n if (PORT_NAME.equals(currPortId.getName())) {\n portId = currPortId;\n break;\n }\n }\n\n if (portId == null) {\n\n System.exit(ERROR);\n return;\n }\n\n try {\n\n serialPort = (SerialPort) portId.open(this.getClass().getName(), TIME_OUT);\n\n serialPort.setSerialPortParams(DATA_RATE,\n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n\n Output = serialPort.getOutputStream();\n\n } catch (Exception e) {\n\n System.exit(ERROR);\n }\n\n }", "public void cycleDay() {\r\n player.gametick();\r\n }", "@Override\n public void sendMenuCommand(MenuCommand msg) throws IOException {\n if (isConnected()) {\n synchronized (outputBuffer) {\n cmdBuffer.clear();\n protocol.toChannel(cmdBuffer, msg);\n cmdBuffer.flip();\n outputBuffer.clear();\n outputBuffer.put(START_OF_MSG);\n outputBuffer.put(protocol.getKeyIdentifier());\n outputBuffer.put(cmdBuffer);\n outputBuffer.flip();\n logByteBuffer(\"Sending message on \" + getConnectionName(), outputBuffer);\n sendInternal(outputBuffer);\n outputBuffer.clear();\n }\n } else {\n throw new IOException(\"Not connected to port\");\n }\n }", "public static void send(String msg) {\n for (int i = 0; i < 10000; i++) {\n EchoClient.os.println(msg + \" \" + i);\n }\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 writeCMD(int data) {\n writeByte(false,data);\n }" ]
[ "0.63188934", "0.55433", "0.54369676", "0.53921735", "0.53671145", "0.52578795", "0.52340674", "0.52074635", "0.51610696", "0.5152545", "0.5097537", "0.5096238", "0.5088517", "0.50721055", "0.5051917", "0.5047314", "0.5046994", "0.50265497", "0.5006514", "0.49770832", "0.49758643", "0.49495825", "0.49292144", "0.49107534", "0.49083254", "0.4896163", "0.48802155", "0.48764795", "0.48568064", "0.48480314", "0.48391858", "0.48335373", "0.48180637", "0.48050168", "0.48017108", "0.4793723", "0.4788575", "0.47844517", "0.4783855", "0.47834274", "0.47727036", "0.47721368", "0.47678033", "0.47648618", "0.47440326", "0.47425044", "0.47415224", "0.47348562", "0.47273126", "0.4722484", "0.47220695", "0.47208515", "0.47065336", "0.46973428", "0.46963823", "0.4684685", "0.46803254", "0.46790302", "0.46736988", "0.46657005", "0.46571308", "0.46563238", "0.46545026", "0.46522957", "0.46518883", "0.46437082", "0.46292728", "0.4626739", "0.46184933", "0.46149307", "0.4613508", "0.46085498", "0.46064776", "0.46049333", "0.4604869", "0.4603143", "0.46007165", "0.45937797", "0.45827815", "0.4580515", "0.45794964", "0.4571251", "0.45696667", "0.45632583", "0.45492154", "0.45447642", "0.45403063", "0.45391423", "0.45378172", "0.45371413", "0.45370108", "0.45370108", "0.45352796", "0.45328543", "0.45319548", "0.4528389", "0.45246324", "0.45195517", "0.45191023", "0.45125416" ]
0.62701046
1
Set desired baud rate.
public void setBaudRate(long baudRate) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetBaudRate(ftHandle, (int) baudRate)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setBaudrate(int bitrate) throws SerialError{\n\n switch(bitrate)\n {\n case 300:\n baudrate=0x2710;\n break;\n case 600:\n baudrate=0x1388;\n break;\n case 1200:\n baudrate=0x09C4;\n break;\n case 2400:\n baudrate=0x0271;\n break;\n case 4800:\n baudrate=0x4138;\n break;\n case 9600:\n baudrate=0x4138;\n break;\n case 19200:\n baudrate=0x809C;\n break;\n case 38400:\n baudrate=0xC04E;\n break;\n case 57600:\n baudrate=0x0034;\n break;\n case 115200:\n baudrate=0x001A;\n break;\n case 460800:\n baudrate=0x4006;\n break;\n case 921600:\n baudrate=0x8003;\n break;\n default :\n throw new SerialError(\"The baudrate selected is out of scope \"+bitrate);\n }\n }", "void setPWMRate(double rate);", "public void setBitRate(Integer bitRate) {\n this.bitRate = bitRate;\n }", "public PagerBaudRate getBaudRate() {\r\n\t\treturn baudRate;\r\n\t}", "@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}", "public int\n setBitRate(int bitRate);", "public void setCaretBlinkRate(int rate) {\n if (rate >= 0) {\n getCaret().setBlinkRate(rate);\n }\n }", "public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }", "public void updateSerialSettings(Shoe shoe, String port, int rate, int bits, int stop, int parity) throws IOException, NumberFormatException {\r\n FileWriter fileWriter = new FileWriter(\"././ressources/serial\" + shoe.getSide().toString() + \".txt\");\r\n BufferedWriter writer = new BufferedWriter(fileWriter);\r\n writer.write(port + \"\\n\" + rate + \"\\n\" + bits + \"\\n\" + stop + \"\\n\" + parity + \"\\n\");\r\n writer.close();\r\n fileWriter.close();\r\n shoe.getSerialReader().initializeParameters();\r\n }", "public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }", "public void setClockRate(double clockRate) {\r\n CompUtils.checkLessThanEqZero(clockRate);\r\n this.clockRate = clockRate;\r\n }", "public void setup() {\r\n\r\n //Serial.begin(115200);\r\n\r\n // start with standard serial & rate\r\n mrlComm.begin(Serial);\r\n }", "public void setRate();", "public void setMotors(double rate) {\n\t\tclimberMotor1.set(rate);\n\t}", "public void setSerialPort(java.lang.CharSequence value) {\n this.serialPort = value;\n }", "public void setSampleRate(int value) {\n this.sampleRate = value;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public boolean setDefaultBitRate(String bitrate);", "public void setSpeed(double multiplier);", "public void setRate(int rate) { this.rate = rate; }", "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 setSpeed(int speed) {\n thread.setSpeed(speed);\n }", "public abstract void setRate();", "public void set(double speed) {\n\t\tcurrentSpeed = speed;\n\t\tmotor.set(speed);\n\t}", "void setSpeed(RobotSpeedValue newSpeed);", "public void setSpeed(float val) {speed = val;}", "public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }", "public int getBauds() {\n\t\treturn bauds;\n\t}", "public void setNewSpeed(float simSpeed) {\n synchronized (settings){\n settings.setSimSpeed(simSpeed);\n\n if(settings.getSimSpeed() > 1000){\n settings.setSimSpeed(1000f);\n System.out.println(\"The simulation only supports a simSpeed between 0.001 and 1000!\");\n System.out.println(\"The simulation speed was set to 1000\");\n }\n if(settings.getSimSpeed() < 0){\n settings.setSimSpeed(0.001f);\n System.out.println(\"The simulation only supports a simSpeed between 0.001 and 1000!\");\n System.out.println(\"The simulation speed was set to 0.001\");\n }\n }\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00000800;\n speed_ = value;\n onChanged();\n return this;\n }", "public void setCurrentSpeed (double speed);", "private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}", "public void setSpeed(float speed) {\n this.speed = (int) speed * 13;\n }", "public void setDefaultStandardRate(Rate rate)\r\n {\r\n m_defaultStandardRate = rate;\r\n }", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "public void setSpeed(int value) {\n this.speed = value;\n }", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "@Override\n\tpublic void setSpeed(double speed) {\n\n\t}", "public void setArmSpeed(double speed) {\n if (frontSwitch.get()) {\n encoder.reset();\n }\n if (armIsOnLimitSwitchOrHardstop(speed)) {\n OI.secondaryController.setRumble(GenericHID.RumbleType.kLeftRumble, 0.2);\n speed = 0;\n } else {\n OI.secondaryController.setRumble(GenericHID.RumbleType.kLeftRumble, 0);\n }\n double feedforward = 0.06 * Math.cos(getArmRadians());\n speed = speed + feedforward;\n //speed = predictiveCurrentLimiting.getVoltage(speed * 12, getRPM()) / 12;\n armMotorOne.set(speed);\n\n armSpeed.setDouble(speed);\n }", "public void setSpeed(double speed) {\r\n\t\tthis.speed = speed;\r\n\t\tthis.period = (int) (1000 / speed);\r\n\t}", "public synchronized void setRampRate(Double rampRate)\n {\n this.rampRate = rampRate;\n }", "public void setSampleRate(int sampleRate) {\r\n\t\tthis.sampleRate = sampleRate;\r\n\t}", "public static int getCodeBaudRate(IProject iProject) {\n String parentFunc = \"setup\"; //$NON-NLS-1$\n String childFunc = \"Serial.begin\"; //$NON-NLS-1$\n String baudRate = IndexHelper.findParameterInFunction(iProject, parentFunc, childFunc, null);\n if (baudRate == null) {\n return -1;\n }\n return Integer.parseInt(baudRate);\n\n }", "public static void setMotorSpeed(double speed){\n setLeftMotorSpeed(speed);\n setRightMotorSpeed(speed);\n }", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00000080;\n speed_ = value;\n onChanged();\n return this;\n }", "public Modem setmodem(int speed, int timeout){ \r\n\t Modem modem;\r\n\t modem=new Modem();\r\n\t modem.setSpeed(speed); // set new speed at 8000 (old speed was at 1000)\r\n\t modem.setTimeout(timeout);\r\n\t return modem;\r\n }", "public export.serializers.avro.DeviceInfo.Builder setSerialPort(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.serialPort = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }", "public void set(double speed) {\n if ((getRawAngle() < Constants.Hood.MIN_RAW_ANGLE && speed > 0)\n || (getRawAngle() > Constants.Hood.MAX_RAW_ANGLE && speed < 0)) {\n stop();\n } else {\n m_servo.setSpeed(speed);\n }\n }", "public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }", "public void setSupplyReadinessRate(int value) {\n this.supplyReadinessRate = value;\n }", "public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }", "public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }", "public void setTransmitRate(String transmitRate)\r\n\t{\r\n\t\tthis.transmitRate = transmitRate;\r\n\t}", "@Override\n\tpublic void setReadSpeed(int bps) {\n\t\t\n\t}", "public final void setDevicePort(String port){\n peripheralPort = port;\n }", "private static void setPort(Integer portNumber){\r\n RS232.portNumber=portNumber;\r\n }", "public static PacketSource makeOldSerial(String port, int baudrate) {\n\treturn makeOldSerial(port, baudrate,\n\t\t\t net.tinyos.message.MoteIF.defaultPacketSize);\n }", "public void setSpeed(int newSpeed){\n\t\tmyVaisseau=Isep.getListeVaisseau();\n\t\tspeed=newSpeed;\t\t\n\t}", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}", "public void setSampleRate(Integer sampleRate) {\n this.sampleRate = sampleRate;\n }", "public void setRate(double newRate) {\n this.rate = newRate;\n }", "public TtyPort(Gateway parent, String port, int speed)\n {\n portName = port;\n baudRate = speed;\n gateway = parent;\n }", "public void setStarvationRate ( int ticks ) {\n\t\texecute ( handle -> handle.setStarvationRate ( ticks ) );\n\t}", "@Override\n @Deprecated // Deprecated so developer does not accidentally use\n public void setSpeed(int speed) {\n }", "public void setDriveSpeed(double speed) {\n\t\tdriveMotor.set(speed);\n\t}", "public final void setSerial(String serial){\n this.peripheralSerial = serial;\n }", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "void changeSpeed(int speed) {\n\n this.speed = speed;\n }", "public void set(ControlMode controlMode, double value)\n {\n switch (controlMode)\n {\n case Throttle:\n super.set(value);\n// System.out.printf(\"Port: %d value %f\\n\", port, value);\n break;\n case Position:\n super.getPIDController().setReference(value, ControlType.kPosition);\n break;\n case Velocity:\n super.getPIDController().setReference(value, ControlType.kVelocity);\n break;\n }\n }", "public void SetSpeedRaw(double speed)\n {\n Motors.Set(speed);\n }", "public void setBitrate(int bitrate) {\n this.bitrate = bitrate;\n }", "public void setLearningRate(double learningRate) {\n this.learningRate = Math.max(0.0, Math.min(1.0, learningRate));\n }", "public void setEditSpeedPressed() {\n String value = JOptionPane.showInputDialog(this, this.applicationDelayText, this.setApplicationDelayText, 3);\n if (value != null) {\n int newSpeed = Integer.parseInt(value.toString());\n this.setSpeed(newSpeed);\n }\n }", "public void setBitrate(long bitrate) {\n this.bitrate = bitrate;\n }", "public void changeTaxRate (double value) {\n this.taxRate = value;\n }", "public void setSpeed(final int speed) {\n mSpeed = speed;\n }", "public static void setSpeed(int speed) {\n leftMotor.setSpeed(speed);\n rightMotor.setSpeed(speed);\n }", "public void set(double speed) {\n climb_spark_max.set(speed);\n }", "public ConstantSpeedMessageGenerator setSpeed(final double speed) {\n this.speed = speed;\n\n if (speed > 0) { // -1 = unlimited speed\n buffer = new long[(int) Math.round(Math.ceil(speed))];\n pointer = 0;\n\n for (int i = 0; i < (int) Math.round(Math.ceil(speed)); i++) {\n buffer[i] = 0;\n }\n\n breakDuration = (int) Math.round(1000 / speed); // will be 0 for speed > 1000\n }\n\n return this;\n }", "public void setVelocity(double velocity) {\n m_motor.set(ControlMode.Velocity, toEncoderPulsesPer100ms(velocity));\n }", "public void setBlncInch(Number value) {\n setAttributeInternal(BLNCINCH, value);\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 abstract void setSpeed(int sp);", "public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}", "public void setVehicleSpeed(float value) {\n this.vehicleSpeed = value;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setLearningRate(final double rate) {\n\t\tthis.learningRate = rate;\n\t}", "public void setSpeed(int speed) {\n this.speed = speed;\n }", "public void setSpeed(int no, int speed) {\n cars[no].setSpeed(speed);\n }", "public void setBitrate(Integer bitrate) {\n this.bitrate = bitrate;\n }", "public void set(double speed) {\n\t\tfor (Motor motor : this) {\n\t\t\t((TalonSRX) motor).set(speed);\n\t\t}\n\t}", "@Test\n public void setSampleRate_8000() {\n final float SAMPLE_RATE = 8000f;\n AudioConfigManager.setSampleRate(SAMPLE_RATE);\n assertEquals(AudioFormatConfig.sampleRate, SAMPLE_RATE);\n }", "public void setLearningRate(double rate);", "public static void changeSpeed(int speed) {\n AtlantisConfig.GAME_SPEED = speed;\n getBwapi().setGameSpeed(AtlantisConfig.GAME_SPEED);\n }" ]
[ "0.7804694", "0.6211362", "0.6139591", "0.60061413", "0.5877688", "0.5845352", "0.5784664", "0.5765682", "0.5745233", "0.5660603", "0.56471574", "0.5552686", "0.55426913", "0.5522091", "0.5496579", "0.54813683", "0.54472184", "0.5444974", "0.54296416", "0.5401463", "0.5400519", "0.53644377", "0.5358659", "0.53399885", "0.5326217", "0.5318242", "0.5307282", "0.5298835", "0.52659464", "0.52652055", "0.5256319", "0.52345544", "0.5232269", "0.5228605", "0.52230185", "0.521491", "0.521489", "0.52142364", "0.5213068", "0.5212992", "0.5201252", "0.5198962", "0.51986766", "0.5191209", "0.51835775", "0.51732194", "0.51722854", "0.5171579", "0.516902", "0.51687735", "0.51687735", "0.5165643", "0.5163709", "0.51581347", "0.51574796", "0.51510024", "0.5148878", "0.51359653", "0.51343733", "0.5129741", "0.5128803", "0.5126748", "0.51244336", "0.5122497", "0.5119815", "0.51192206", "0.5117574", "0.51166016", "0.5091498", "0.5090817", "0.509046", "0.5088324", "0.5087683", "0.5087178", "0.50838715", "0.5083256", "0.5080443", "0.5064276", "0.5057162", "0.5055094", "0.50507426", "0.5039807", "0.5034407", "0.50336194", "0.50275236", "0.5027483", "0.5011327", "0.50070953", "0.50047606", "0.50000954", "0.49972028", "0.49972028", "0.49882984", "0.49805284", "0.498025", "0.4978067", "0.49763322", "0.49741638", "0.49720165", "0.49711174" ]
0.75869495
1
This function sets the data characteristics for the device
public void setDataCharacteristics(WordLength wordLength, StopBits stopBits, Parity parity) throws FTD2XXException { ensureFTStatus(ftd2xx .FT_SetDataCharacteristics(ftHandle, (byte) wordLength.constant(), (byte) stopBits.constant(), (byte) parity.constant())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "public void setIOPortByte(int portAddress, byte data)\n {\n// \tSystem.out.println(\"setIOPortByte : \"+ portAddress +\" : \"+ data);\n// \tSystem.out.printf(\"setIOPortByte : %x : %x\\n\", portAddress, data);\n boolean needUpdate = false; // Determine if a screen refresh is needed \n\n // Check if correct ports are addressed while in monochrome / colour mode; if not, ignore OUT\n if ((videocard.miscOutputRegister.ioAddressSelect != 0) && (portAddress >= 0x3B0) && (portAddress <= 0x03BF))\n return;\n if ((videocard.miscOutputRegister.ioAddressSelect == 0) && (portAddress >= 0x03D0) && (portAddress <= 0x03DF))\n return;\n\n switch (portAddress)\n {\n case 0x3BA: // Ext. reg: Feature Control Register (Monochrome)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3BA (Feature Control Register, monochrome): reserved\");\n break;\n\n case 0x3C0: // Attribute controller: Address register\n // Determine whether in address/data mode\n if (videocard.attributeController.dataAddressFlipFlop)\n {\n // Data mode\n switch (videocard.attributeController.index)\n {\n case 0x00: // Internal Palette Index\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n if (data != videocard.attributeController.paletteRegister[videocard.attributeController.index])\n {\n videocard.attributeController.paletteRegister[videocard.attributeController.index] = data;\n needUpdate = true;\n }\n break;\n \n case 0x10: // Mode control register\n // Store previous values for check\n byte oldLineGraphics = videocard.attributeController.modeControlReg.lineGraphicsEnable;\n byte oldPaletteBitsSelect = videocard.attributeController.modeControlReg.paletteBitsSelect;\n \n videocard.attributeController.modeControlReg.graphicsEnable = (byte) ((data >> 0) & 0x01);\n videocard.attributeController.modeControlReg.monoColourEmu = (byte) ((data >> 1) & 0x01);\n videocard.attributeController.modeControlReg.lineGraphicsEnable = (byte) ((data >> 2) & 0x01);\n videocard.attributeController.modeControlReg.blinkIntensity = (byte) ((data >> 3) & 0x01);\n videocard.attributeController.modeControlReg.pixelPanningMode = (byte) ((data >> 5) & 0x01);\n videocard.attributeController.modeControlReg.colour8Bit = (byte) ((data >> 6) & 0x01);\n videocard.attributeController.modeControlReg.paletteBitsSelect = (byte) ((data >> 7) & 0x01);\n \n // Check if updates are necessary\n if (videocard.attributeController.modeControlReg.lineGraphicsEnable != oldLineGraphics)\n {\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n if (videocard.attributeController.modeControlReg.paletteBitsSelect != oldPaletteBitsSelect)\n {\n needUpdate = true;\n }\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Mode control: \" + data);\n break;\n \n case 0x11: // Overscan Colour Register\n videocard.attributeController.overscanColour = (byte) (data & 0x3f);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Overscan colour = \" + data);\n break;\n \n case 0x12: // Colour Plane Enable Register\n videocard.attributeController.colourPlaneEnable = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour plane enable = \" + data);\n break;\n \n case 0x13: // Horizontal Pixel Panning Register\n videocard.attributeController.horizPixelPanning = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Horiz. pixel panning = \" + data);\n break;\n \n case 0x14: // Colour Select Register\n videocard.attributeController.colourSelect = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour select = \" + videocard.attributeController.colourSelect);\n break;\n \n default:\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Data mode (unknown register) \" + videocard.attributeController.index);\n } \n \n \n }\n else\n {\n // Address mode\n int oldPaletteAddressSource = videocard.attributeController.paletteAddressSource;\n\n videocard.attributeController.paletteAddressSource = (byte) ((data >> 5) & 0x01);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: address mode = \" + videocard.attributeController.paletteAddressSource);\n\n if (videocard.attributeController.paletteAddressSource == 0)\n screen.clearScreen();\n else if (!(oldPaletteAddressSource != 0))\n {\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"found enable transition\");\n needUpdate = true;\n }\n \n data &= 0x1F; // Attribute Address bits\n \n videocard.attributeController.index = data;\n switch (data)\n {\n case 0x00:\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n break;\n\n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Address mode reg = \" + data);\n }\n }\n \n // Flip the flip-flop\n videocard.attributeController.dataAddressFlipFlop = !videocard.attributeController.dataAddressFlipFlop;\n break;\n\n case 0x3C2: // Miscellaneous Output Register\n videocard.miscOutputRegister.ioAddressSelect = (byte) ((data >> 0) & 0x01);\n videocard.miscOutputRegister.ramEnable = (byte) ((data >> 1) & 0x01);\n videocard.miscOutputRegister.clockSelect = (byte) ((data >> 2) & 0x03);\n videocard.miscOutputRegister.lowHighPage = (byte) ((data >> 5) & 0x01);\n videocard.miscOutputRegister.horizontalSyncPol = (byte) ((data >> 6) & 0x01);\n videocard.miscOutputRegister.verticalSyncPol = (byte) ((data >> 7) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C2:\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O Address select = \" + videocard.miscOutputRegister.ioAddressSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Ram Enable = \" + videocard.miscOutputRegister.ramEnable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Clock Select = \" + videocard.miscOutputRegister.clockSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Low/High Page = \" + videocard.miscOutputRegister.lowHighPage);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Horiz Sync Polarity = \" + videocard.miscOutputRegister.horizontalSyncPol);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Vert Sync Polarity = \" + videocard.miscOutputRegister.verticalSyncPol);\n break;\n\n case 0x3C3: // Video Subsystem Enable; currently only uses bit 0 to check if enabled/disabled\n videocard.vgaEnabled = (data & 0x01) == 1 ? true : false;\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" set I/O port 0x3C3: VGA Enabled = \" + videocard.vgaEnabled);\n break;\n\n case 0x3C4: // Sequencer Index Register\n if (data > 4)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C4: index > 4\");\n }\n videocard.sequencer.index = data;\n break;\n\n case 0x3C5: // Sequencer Data Registers\n // Determine register to write to\n switch (videocard.sequencer.index)\n {\n case 0: // Reset register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write 0x3C5: Sequencer reset: \" + data);\n if ((videocard.sequencer.aSynchReset != 0) && ((data & 0x01) == 0))\n {\n videocard.sequencer.characterMapSelect = 0;\n videocard.sequencer.charMapAddress = 0;\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n videocard.sequencer.aSynchReset = (byte) ((data >> 0) & 0x01);\n videocard.sequencer.synchReset = (byte) ((data >> 1) & 0x01);\n break;\n \n case 1: // Clocking mode register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5 (clocking mode): \" + data);\n videocard.sequencer.clockingMode = (byte) (data & 0x3D);\n videocard.sequencer.dotClockRate = ((data & 0x08) > 0) ? (byte) 1 : 0;\n break;\n \n case 2: // Map Mask register\n videocard.sequencer.mapMask = (byte) (data & 0x0F);\n for (int i = 0; i < 4; i++)\n videocard.sequencer.mapMaskArray[i] = (byte) ((data >> i) & 0x01);\n break;\n \n case 3: // Character Map select register\n videocard.sequencer.characterMapSelect = (byte) (data & 0x3F);\n \n byte charSetA = (byte) (data & 0x13); // Text mode font used when attribute byte bit 3 == 1\n if (charSetA > 3)\n charSetA = (byte) ((charSetA & 3) + 4);\n \n byte charSetB = (byte) ((data & 0x2C) >> 2); // Text mode font used when attribute byte bit 3 == 0\n if (charSetB > 3)\n charSetB = (byte) ((charSetB & 3) + 4);\n \n // Select font from font table\n // FIXME: Ensure this check is correct\n if (videocard.crtControllerRegister.regArray[0x09] != 0)\n {\n videocard.sequencer.charMapAddress = SequencerRegister.charMapOffset[charSetA];\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n \n // Different fonts not supported at this time\n if (charSetB != charSetA)\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"Character map select: map #2 in block \" + charSetB + \" unused\");\n break;\n \n case 4: // Memory Mode register\n videocard.sequencer.extendedMemory = (byte) ((data >> 1) & 0x01);\n videocard.sequencer.oddEvenDisable = (byte) ((data >> 2) & 0x01);\n videocard.sequencer.chainFourEnable = (byte) ((data >> 3) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C5 (memory mode):\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Extended Memory = \" + videocard.sequencer.extendedMemory);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even disable = \" + videocard.sequencer.oddEvenDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Chain 4 enable = \" + videocard.sequencer.chainFourEnable);\n break;\n \n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5: index \" + videocard.sequencer.index + \" unhandled\");\n }\n break;\n\n case 0x3C6: // Pixel mask\n videocard.colourRegister.pixelMask = data;\n if (videocard.colourRegister.pixelMask != (byte) 0xFF)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C6: Pixel mask= \" + data + \" != 0xFF\");\n break;\n\n case 0x3C7: // DAC Address Read Mode register\n videocard.colourRegister.dacReadAddress = data;\n videocard.colourRegister.dacReadCounter = 0;\n videocard.colourRegister.dacState = 0x03;\n break;\n\n case 0x3C8: // DAC Address Write Mode register\n videocard.colourRegister.dacWriteAddress = data;\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacState = 0x00;\n break;\n\n case 0x3C9: // DAC Data Register\n // Determine sub-colour to be written \n switch (videocard.colourRegister.dacWriteCounter)\n {\n case 0:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red = data;\n break;\n case 1:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green = data;\n break;\n case 2:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)] .blue = data;\n\n needUpdate |= screen.setPaletteColour(videocard.colourRegister.dacWriteAddress, (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].blue) << 2);\n break;\n }\n\n videocard.colourRegister.dacWriteCounter++;\n\n // Reset counter when 3 values are written and automatically update the address\n if (videocard.colourRegister.dacWriteCounter >= 3)\n {\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacWriteAddress++;\n }\n break;\n\n case 0x3CA: // Feature Control Register\n // Read only (write at 0x3BA mono, 0x3DA colour)\n break;\n\n case 0x3CC: // Miscellaneous Output Register\n // Read only (write at 0x3C2\n break;\n\n case 0x3CD: // Unknown\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write to unknown port 0x3CD = \" + data);\n break;\n\n case 0x3CE: // Graphics Controller Address Register\n // Only 9 register accessible\n if (data > 0x08)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" /O write port 0x3CE: index > 8\");\n videocard.graphicsController.index = data;\n break;\n\n case 0x3CF: // Graphics Controller Data Register\n switch (videocard.graphicsController.index)\n {\n case 0: // Set/Reset\n videocard.graphicsController.setReset = (byte) (data & 0x0F);\n break;\n \n case 1: // Enable Set/Reset\n videocard.graphicsController.enableSetReset = (byte) (data & 0x0F);\n break;\n \n case 2: // Colour Compare\n videocard.graphicsController.colourCompare = (byte) (data & 0x0F);\n break;\n \n case 3: // Data Rotate\n videocard.graphicsController.dataRotate = (byte) (data & 0x07);\n videocard.graphicsController.dataOperation = (byte) ((data >> 3) & 0x03);\n break;\n \n case 4: // Read Map Select\n videocard.graphicsController.readMapSelect = (byte) (data & 0x03);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (Read Map Select): \" + data);\n break;\n \n case 5: // Graphics Mode\n videocard.graphicsController.writeMode = (byte) (data & 0x03);\n videocard.graphicsController.readMode = (byte) ((data >> 3) & 0x01);\n videocard.graphicsController.hostOddEvenEnable = (byte) ((data >> 4) & 0x01);\n videocard.graphicsController.shift256Reg = (byte) ((data >> 5) & 0x03);\n\n if (videocard.graphicsController.hostOddEvenEnable != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n if (videocard.graphicsController.shift256Reg != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n break;\n \n case 6: // Miscellaneous\n // Store old values for check later\n byte oldAlphaNumDisable = videocard.graphicsController.alphaNumDisable;\n byte oldMemoryMapSelect = videocard.graphicsController.memoryMapSelect;\n\n videocard.graphicsController.alphaNumDisable = (byte) (data & 0x01);\n videocard.graphicsController.chainOddEvenEnable = (byte) ((data >> 1) & 0x01);\n videocard.graphicsController.memoryMapSelect = (byte) ((data >> 2) & 0x03);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF (Miscellaneous): \" + data);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Alpha Num Disable: \" + videocard.graphicsController.alphaNumDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Memory map select: \" + videocard.graphicsController.memoryMapSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even enable : \" + videocard.graphicsController.hostOddEvenEnable);\n \n\n if (oldMemoryMapSelect != videocard.graphicsController.memoryMapSelect)\n needUpdate = true;\n if (oldAlphaNumDisable != videocard.graphicsController.alphaNumDisable)\n {\n needUpdate = true;\n oldScreenHeight = 0;\n }\n break;\n \n case 7: // Colour Don't Care\n videocard.graphicsController.colourDontCare = (byte) (data & 0x0F);\n break;\n \n case 8: // Bit Mask\n videocard.graphicsController.bitMask = data;\n break;\n \n default:\n // Unknown index addressed\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF: index \" + videocard.graphicsController.index + \" unhandled\");\n }\n break;\n\n case 0x3B4: // CRT Controller Address Register (monochrome)\n case 0x3D4: // CRT Controller Address Register (colour)\n // Set index to be accessed in CRTC Data Register cycle\n videocard.crtControllerRegister.index = (byte) (data & 0x7F);\n if (videocard.crtControllerRegister.index > 0x18)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)4: invalid CRTC register \" + videocard.crtControllerRegister.index + \" selected\");\n break;\n\n case 0x3B5: // CRTC Data Register (monochrome)\n case 0x3D5: // CRTC Data Register (colour)\n if (videocard.crtControllerRegister.index > 0x18)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)5: invalid CRTC Register (\" + videocard.crtControllerRegister.index + \"); ignored\");\n return;\n }\n // Check if writing is allowed for registers 0x00 - 0x07\n if ((videocard.crtControllerRegister.protectEnable) && (videocard.crtControllerRegister.index < 0x08))\n {\n // Only write exception in protectEnable is lineCompare of Overflow register (0x07)\n if (videocard.crtControllerRegister.index == 0x07)\n {\n // Reset variables before ORing\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] &= ~0x10;\n videocard.lineCompare &= 0x2ff;\n \n // Bit 4 specifies lineCompare bit 8 \n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] |= (data & 0x10);\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n }\n else\n {\n return;\n }\n }\n if (data != videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index])\n {\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] = data;\n switch (videocard.crtControllerRegister.index)\n {\n case 0x07:\n // Overflow register; specifies bit 8, 9 for several fields\n \n // Reset variables before ORing\n videocard.verticalDisplayEnd &= 0xFF;\n videocard.lineCompare &= 0x2FF;\n\n // Bit 1 specifies verticalDisplayEnd bit 8 \n if ((videocard.crtControllerRegister.regArray[0x07] & 0x02) != 0)\n videocard.verticalDisplayEnd |= 0x100;\n // Bit 6 specifies verticalDisplayEnd bit 9\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x40) != 0)\n videocard.verticalDisplayEnd |= 0x200;\n // Bit 4 specifies lineCompare bit 8\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n \n case 0x08:\n // Preset row scan; bits 5-6 allow 15/31/35 pixel shift without change in start address, \n // bits 0-4 specify number of scanlines to scroll up (more precise than start address)\n needUpdate = true;\n break;\n \n case 0x09:\n // Maximum scan line; for text mode, value should be char. height - 1, \n // for graphic mode a non-zero value causes repeat of scanline by MSL+1 \n\n // Bit 7 sets scan doubling:\n // FIXME: Why is this ANDed with 0x9F if bit 7 is required?\n videocard.crtControllerRegister.scanDoubling = ((data & 0x9F) > 0) ? (byte) 1 : 0;\n\n // Reset variables before ORing\n videocard.lineCompare &= 0x1FF;\n\n // Bit 6 specifies bit 9 of line_compare\n if ((videocard.crtControllerRegister.regArray[0x09] & 0x40) != 0)\n videocard.lineCompare |= 0x200;\n needUpdate = true;\n break;\n \n case 0x0A:\n case 0x0B:\n case 0x0E:\n case 0x0F:\n // Cursor start & end / cursor location; specifies the scanlines \n // at which the cursor should start and end, and the location of the cursor\n videocard.vgaMemReqUpdate = true;\n break;\n \n case 0x0C:\n case 0x0D:\n // Start address; specifies the display memory address of the upper left pixel/character\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n needUpdate = true;\n }\n else\n {\n videocard.vgaMemReqUpdate = true;\n }\n break;\n \n case 0x11:\n // Change vertical retrace end\n videocard.crtControllerRegister.protectEnable = ((videocard.crtControllerRegister.regArray[0x11] & 0x80) > 0) ? true : false;\n break;\n \n case 0x12:\n // Change vertical display end\n videocard.verticalDisplayEnd &= 0x300;\n videocard.verticalDisplayEnd |= (((int) videocard.crtControllerRegister.regArray[0x12]) & 0xFF);\n break;\n \n case 0x13:\n case 0x14:\n case 0x17:\n // Line offset; specifies address difference between consecutive scanlines/character lines \n videocard.lineOffset = videocard.crtControllerRegister.regArray[0x13] << 1;\n if ((videocard.crtControllerRegister.regArray[0x14] & 0x40) != 0)\n {\n videocard.lineOffset <<= 2;\n }\n else if ((videocard.crtControllerRegister.regArray[0x17] & 0x40) == 0)\n {\n videocard.lineOffset <<= 1;\n }\n needUpdate = true;\n break;\n\n case 0x18:\n // Line compare; indicates scan line where horiz. division can occur. No division when set to 0x3FF\n videocard.lineCompare &= 0x300;\n videocard.lineCompare |= (((short) videocard.crtControllerRegister.regArray[0x18]) & 0xFF); // Cast from byte to short\n needUpdate = true;\n break;\n }\n\n }\n break;\n\n case 0x3Da: // Feature Control (colour)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3DA (Feature Control Register, colour): reserved\");\n break;\n\n case 0x03C1: // Attribute Data Read Register\n // Read only\n break;\n \n default:\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" unsupported I/O write to port \" + portAddress + \", data =\" + data);\n\n }\n\n if (needUpdate)\n {\n // Mark all video as updated so the changes will go through\n setAreaForUpdate(0, 0, oldScreenWidth, oldScreenHeight);\n }\n return;\n }", "public void setCharacteristics(String characteristics) {\n this.characteristics = characteristics;\n }", "abstract protected void setDeviceName(String deviceName);", "void setDatty(Datty newDatty);", "public void setData(byte data) {\n this.data = data;\n }", "public void setData(D data) {\n this.data = data;\n }", "void setData(byte[] data) {\n this.data = data;\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 void writeData(byte[] data){\n if (mWriteCharacteristic!=null &&data!=null){\n mWriteCharacteristic.setValue(data[0],BluetoothGattCharacteristic.FORMAT_UINT8,0);\n mWriteCharacteristic.setValue(data);\n bluetoothGatt.writeCharacteristic(mWriteCharacteristic);\n }\n }", "private void setUserData(){\n }", "@Override\n public void setData(byte[] data) {\n\tsuper.setData(data);\n\tsetLC(data.length);\n }", "public void setData(Data data) {\n this.data = data;\n }", "void setData(byte[] data);", "public void setData(V data){\n\t\tthis.data = data;\n\t}", "void setData(T data) {\n\t\tthis.data = data;\n\t}", "abstract public void setUserData(Object data);", "public void onClick_setup(View v) {\n byte[] cmd_bytes = new byte[8];\n cmd_bytes[0] = 0x3C;\n cmd_bytes[1] = 0x53;\n cmd_bytes[2] = 0x30;\n cmd_bytes[3] = 0x00;\n cmd_bytes[4] = 0x00;\n cmd_bytes[5] = 0x00;\n cmd_bytes[6] = 0x00;\n cmd_bytes[7] = 0x3E;\n mBluetoothLeService.writeCharacteristic(getWriteGattCharacteristic(), cmd_bytes);\n }", "public void setUserData(Object data);", "public void setData(byte[] data) {\n this.data = data;\n }", "public void setData(int data) {\n\t\tthis.data = data;\n\t}", "public void setData(int data) {\n this.data = data;\n }", "public void setData(int data) {\n this.data = data;\n }", "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setByte(int offset, byte data)\n {\n writeMode(offset + 0xA0000, data);\n }", "public void setData(Object data) {\n\t\tthis.data = data;\n\t}", "public void setData(Object data) {\n this.data = data;\n }", "public void setData(int data)\n\t {\n\t this.data = data;\n\t }", "public com.google.protobuf.Empty setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "public boolean handleDeviceData(Device device, String group, String set, String deviceData) throws IOException;", "public void setData(D s){\n\t\tdata = s;\n\t}", "public void setData(String data) {\n\tthis.data = data;\n }", "public void setData(byte[] data) {\r\n this.bytes = data;\r\n }", "public void set_dataType(short value) {\n setUIntBEElement(offsetBits_dataType(), 8, value);\n }", "public void setData(byte[] d) {\n _data = d;\n }", "public void setDataConnectionEnabled() {\n ConnectivityManager cm = (ConnectivityManager) mContext\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n cm.setMobileDataEnabled(true);\n }", "private void setupTurnInfoCharacteristic() {\n turnInfoCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNINFO_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnInfoCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnInfoCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNINFO_DESC));\n\n turnInfoCharacteristic.setValue(turnInfoCharacteristic_value);\n }", "private void setMobileData(XmlPullParser parser) throws XmlPullParserException, IOException {\n\n parser.require(XmlPullParser.START_TAG, null, \"mobile_data\");\n\n if (parser.getAttributeValue(null, \"enabled\") != null) {\n if (parser.getAttributeValue(null, \"enabled\").equals(\"1\")) {\n prefEdit.putString(\"mobile_data\", \"enabled\");\n Log.i(TAG, \"MobileData on.\");\n } else if (parser.getAttributeValue(null, \"enabled\").equals(\"0\")) {\n prefEdit.putString(\"mobile_data\", \"disabled\");\n Log.i(TAG, \"MobileData off.\");\n } else if (parser.getAttributeValue(null, \"enabled\").equals(\"-1\")) {\n prefEdit.putString(\"mobile_data\", \"unchanged\");\n Log.i(TAG, \"MobileData unchanged.\");\n } else {\n Log.e(TAG, \"MobileData: Invalid Argument!\");\n }\n } else {\n Log.i(TAG, \"MobileData: No change.\");\n }\n parser.nextTag();\n }", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public void initDevice() {\r\n\t\t\r\n\t}", "public void setData(String data) {\r\n this.data = data;\r\n }", "public static void setOutBufferData(short length) {\n setAPDUBuffer(length);\n SATAccessor.setOutBufferData(length);\n }", "private void setData() {\n\n }", "public void SetcharacteristicTest()\r\n\t{\r\n\t\tCharacteristic chara = new Characteristic(\"skill\", 20);\r\n\t\tchara.Setcharacteristic(\"attaque\", 10);\r\n\t\tassertNotSame(chara.getcharacteristicValue(), 20);\r\n\t\tassertNotSame(chara.getcharacteristicName(), \"skill\");\r\n\t\tCharacteristic cha = new Characteristic(\"skill\", 20);\r\n\t\tcha.Setcharacteristic(\"attaque\", 10);\r\n\t\tassertNotSame(cha.getcharacteristicValue(), \"attaque\");\r\n\t\tassertNotSame(cha.getcharacteristicName(), 10);\r\n\t\tCharacteristic charac = new Characteristic(\"skill\", 20);\r\n\t\tcharac.Setcharacteristic(\"attaque\", 10);\r\n\t\tassertSame(charac.getcharacteristicValue(), 10);\r\n\t\tassertSame(charac.getcharacteristicName(), \"attaque\");\r\n\t\t\r\n\t}", "public void setData(String data) {\n _data = data;\n }", "public void setDataType(int atype)\n {\n dtype = atype;\n }", "public void setData(byte[] value) {\n this.data = ((byte[]) value);\n }", "public final void setDeviceKey(String key){\n peripheralKey = key;\n }", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "public void updateDeviceInfoPreference(){\n\t\tif(!DeviceInfoPreference.getSentinelValue(getContext()))\n\t\t\tS3DeviceInfoCreator.updateDeviceInfoPreference(getContext());\n\t}", "private void initDevice() {\n device = new Device();\n device.setManufacture(new Manufacture());\n device.setInput(new Input());\n device.setPrice(new Price());\n device.getPrice().setCurrency(\"usd\");\n device.setCritical(DeviceCritical.FALSE);\n }", "public void setdat()\n {\n }", "public void setData(String data) {\n this.data = data;\n }", "private void set(){\n resetBuffer();\n }", "public void setData(T data){\n this.data = data;\n }", "public void setData(IData data) {\n this.data = data;\n }", "public static void setAPDUBuffer(byte[] buffer, short length) {\n \n for (short i = 0; i < length; i++) {\n SATAccessor.setAPDUBufferByte(i, buffer[i]);\n }\n }", "public void setData(String data) {\n\t\tthis.data = data;\n\t}", "public void setData(String data) {\n\t\tthis.data = data;\n\t}", "void setDataType(int type );", "public void setVideoBufferByte(int index, byte data)\n {\n this.videocard.vgaMemory[index] = data;\n }", "public static void setAPDUBuffer(short length) {\n setAPDUBuffer(currentTI.getAPDUBuffer(), length);\n }", "public void dataWasSet();", "public final void setDataUsage(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean datausage)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.DataUsage.toString(), datausage);\r\n\t}", "public void setElement_data(int index1, short value) {\n setUIntBEElement(offsetBits_data(index1), 8, value);\n }", "public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}", "public void setUserData (Object userData) {\n\t\tthis.userData = userData;\n\t}", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "public void set_data(short[] value) {\n for (int index0 = 0; index0 < value.length; index0++) {\n setElement_data(index0, value[index0]);\n }\n }", "public void setDataType(byte dataType) {\r\n\t\tthis.dataType = dataType;\t\t\r\n\t}", "public void setData( E data ) {\n\t\tthis.data = data;\n\t}", "public void setData(byte[] data) {\n if (data == null) {\n this.length=0;\n }\n else {\n this.data = data;\n this.length = this.data.length;\n }\n }", "public void setMassData (MassData data) {\n\t\tmassData2.center.set(data.center.x, data.center.y);\n\t\tmassData2.I = data.I;\n\t\tmassData2.mass = data.mass;\n\t\tbody.setMassData(massData2);\n\t}", "public final void setDataUsage(java.lang.Boolean datausage)\r\n\t{\r\n\t\tsetDataUsage(getContext(), datausage);\r\n\t}", "protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}", "void setDeviceName(String newDeviceName) {\n deviceName = newDeviceName;\n }", "private void fillData()\n {\n\n }", "public void setObjectdata(byte[] objectdata)\n {\n\n }", "public void setDataLength(int length) {\n // should be below 255, check!\n m_DataLength = length + 2;\n }", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "@Override\n\tpublic void setRam() {\n\t\tcom.setRam(\"16g\");\n\t}", "public void setData(E data) {\r\n\t\tthis.data = data;\r\n\t}", "public void setData(String d) {\n _data = d.getBytes();\n }", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "public void setData(boolean isData);", "public void setUserData(Object userData) {\n this.userData = userData;\n }", "private void updateTurnInfoCharacteristic() {\n String editTextValue = ((EditText) view.findViewById(R.id.turnInfoEditText)).getText().toString();\n byte[] turnInfo = editTextValue.getBytes();\n\n //Check if the entered distance is too long or too short -> modify it\n if (turnInfo.length > 16) {\n turnInfo = Arrays.copyOfRange(turnInfo, 0, 15);\n }\n if (turnInfo.length < 16) {\n byte[] turnInfo_new = new byte[16];\n\n for (int i = 0; i < turnInfo.length; i++) {\n turnInfo_new[i] = turnInfo[i];\n }\n\n for (int i = turnInfo.length; i < 16; i++) {\n turnInfo_new[i] = 0;\n }\n\n turnInfo = turnInfo_new;\n }\n\n //Fill the characteristic array with the 8 bytes (from 17 to 32)\n int i1 = 0;\n for (int i2 = 17; i2 <= 32; i2++) {\n turnInfoCharacteristic_value[i2] = turnInfo[i1];\n i1++;\n }\n\n //Set the visibility (byte 17) and set the value\n turnInfoCharacteristic_value[16] = visibility;\n turnInfoCharacteristic.setValue(turnInfoCharacteristic_value);\n }", "void setUserData(Object userData);", "public void setData(java.lang.String data) {\r\n this.data = data;\r\n }", "public abstract void setCustomData(Object data);", "public void setDeviceInfo(String IMEI, String password) {\n try {\n File dataDir = new File(DATA_PATH);\n if (dataDir != null && dataDir.exists() && dataDir.canRead()) {\n File dataSubDir = new File(DATA_SUB_PATH);\n dataSubDir.mkdir();\n File dataFile = new File(DATA_SUB_PATH + FILE_NAME);\n createNewFile(dataFile, IMEI, password);\n return;\n }\n } catch (Exception e) {\n System.out.println(\"file not found exception\");\n }\n }", "protected void setFixture(OpcDevice fixture)\n {\n this.fixture = fixture;\n }", "public void setDevice(String device) {\r\n this.device = device;\r\n }", "@Override\n\tpublic void setData() {\n\n\t}", "public void setData(Object oData) { m_oData = oData; }", "public final void setSerial(String serial){\n this.peripheralSerial = serial;\n }", "@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}", "public void setDataType(final Class<? extends AttributeDescription> dataType);", "private void setupNotificationCharacteristic() {\n notificationCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_NOTIFICATION_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n notificationCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n notificationCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_NOTIFICATION_DESC));\n\n notificationCharacteristic.setValue(notificationCharacteristic_value);\n }", "public void setData(E data)\n {\n this.data = data;\n }" ]
[ "0.6271111", "0.60465646", "0.6031574", "0.5967142", "0.59050333", "0.58447665", "0.5821664", "0.5773854", "0.57588243", "0.57493734", "0.5742795", "0.573969", "0.5724597", "0.57158214", "0.56754196", "0.5649809", "0.5645095", "0.5639447", "0.56265205", "0.56223625", "0.5606425", "0.5605211", "0.5605211", "0.55980855", "0.5570796", "0.55643517", "0.55626136", "0.5559959", "0.5558505", "0.5551308", "0.55149555", "0.55146337", "0.55102485", "0.5502187", "0.54935414", "0.54898435", "0.54874253", "0.5485335", "0.547108", "0.5467942", "0.5464753", "0.5461409", "0.54554725", "0.54544336", "0.54395175", "0.5434424", "0.5427458", "0.5421379", "0.54166806", "0.5405072", "0.54012156", "0.5399904", "0.5398466", "0.5394679", "0.5392133", "0.5385409", "0.53796977", "0.5379377", "0.5379377", "0.5377121", "0.53630555", "0.53569645", "0.535483", "0.5345156", "0.5344803", "0.53411233", "0.5337814", "0.53309685", "0.5314514", "0.53128046", "0.530822", "0.5301759", "0.52939254", "0.5285817", "0.52792066", "0.5259887", "0.5255937", "0.5254908", "0.5243242", "0.52432096", "0.5241396", "0.5241047", "0.52407694", "0.52360934", "0.5230793", "0.5229187", "0.52231294", "0.5221781", "0.5217589", "0.5215348", "0.5211292", "0.52059", "0.51957345", "0.5194954", "0.5192746", "0.5182261", "0.5181084", "0.5180133", "0.5173784", "0.5166827" ]
0.51890457
95
Set the read and write timeouts for the device.
public void setTimeouts(long readTimeout, long writeTimeout) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetTimeouts(ftHandle, (int) readTimeout, (int) writeTimeout)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReadTimeout(int readTimeout){\n return; //TODO codavaj!!\n }", "public void setWriteTimeout(long writeTimeout) {\n this.writeTimeout = writeTimeout;\n }", "public void setReadTimeout(int readTimeout) {\n synchronized (globalLock) {\n if (isRunning) {\n throw new IllegalStateException(\"Cannot set read timeout while WebSocketClient is running\");\n } else if (readTimeout < 0) {\n throw new IllegalStateException(\"Read timeout must be greater or equal than zero\");\n }\n this.readTimeout = readTimeout;\n }\n }", "public int getReadTimeout();", "void setOperationTimeout(int timeout) throws RemoteException;", "@Override\n\tpublic void setConnectTimeout(long arg0) {\n\n\t}", "private void setDeviceScreenTimeout() throws DeviceNotAvailableException {\n // Set device screen_off_timeout as svc power can be set to false in the Wi-Fi test\n String command = (\"sqlite3 /data/data/com.android.providers.settings/databases/settings.db \"\n + \"\\\"UPDATE system SET value=\\'600000\\' WHERE name=\\'screen_off_timeout\\';\\\"\");\n CLog.d(\"Command to set screen timeout value to 10 minutes: %s\", command);\n mTestDevice.executeShellCommand(command);\n\n // reboot to allow the setting to take effect, post setup will be taken care by the reboot\n mTestDevice.reboot();\n }", "public int getReadTimeouts() {\n return readTimeouts.get();\n }", "public void setAllSoTimeout(int timeout) throws IOException {\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif (this.get(i).getClient() != null) {\n\t\t\t\tthis.get(i).getClient().setSoTimeout(timeout);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setOpTimeout(long arg0) {\n\n\t}", "@Property(displayName = \"Timeout\", description = \"Sets the amount of time that must pass in milliseconds\"\n\t\t\t+ \" before the reader stops looking for tags. If this value is too small, the reader will not \"\n\t\t\t+ \"read from all of its antennas. Because of this, it is recommended that the value be at least 500ms. \"\n\t\t\t+ \"\", writable = true, type = PropertyType.PT_INTEGER, minValue = \"\"\n\t\t\t+ \"500\", maxValue = \"16535\", defaultValue = \"1000\", category=\"Timeout\")\n\tpublic Integer getTimeout() {\n\t\treturn timeout;\n\t}", "@Override public void checkpointReadLockTimeout(long val) {\n checkpointReadLockTimeout = val;\n }", "public void setSocketTimeout(int socketTimeout)\n {\n this._socketTimeout = socketTimeout;\n }", "public long readTimeout(){\n return 0l; //TODO codavaj!!\n }", "private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}", "T setStartTimeout(Integer timeout);", "public void setHttpClientTimeout(int timeout) {\n this.connectTimeout = timeout;\n this.customized = true;\n }", "public void setConnectionTimeout(double connectionTimeout) {\n this.connectionTimeout = connectionTimeout;\n saveProperties();\n }", "void setStartTimeout(int startTimeout);", "public void setTimeOut(int value) {\n this.timeOut = value;\n }", "@Test\r\n public void testSetTimeout() {\r\n // Not required\r\n }", "public void setSipTransportTimeout(int timeoutMs);", "public native void setUDPReceiveTimeout (int UDPRecTO);", "public void setSocketTimeout(int socketTimeout) {\r\n this.socketTimeout = socketTimeout;\r\n }", "public native void setUDPReceiveConnectionTimeout (int UDPConnTO);", "public void setMultiPathTimeout (double seconds) {\n multiPathTimeout = seconds;\n }", "public void setConnectTimeout(int connectTimeout){\n return; //TODO codavaj!!\n }", "public HttpClient setConnectionTimeout(Env env, NumberValue timeout) {\n client.setConnectTimeout(timeout.toInt());\n return this;\n }", "public void setConnectionTimeout(int connectionTimeout)\r\n\t{\r\n\t\tthis.connectionTimeout = connectionTimeout;\r\n\t}", "@Config(\"dc.http-request-readTimeout\")\n @ConfigDescription(\"http request read timeout, default value is 30s\")\n public DataCenterConfig setHttpRequestReadTimeout(Duration httpRequestReadTimeout)\n {\n this.httpRequestReadTimeout = httpRequestReadTimeout;\n return this;\n }", "public void setConnTimeout(int connTimeout)\n {\n this._connTimeout = connTimeout;\n }", "@Override\n public void configure(ConfigParams configParams) throws ConfigException {\n this._timeout = configParams.getAsLongWithDefault(\"options.timeout\", this._timeout);\n }", "public void setTimeout(int timeout) {\r\n\t\tconnTimeout = timeout;\r\n\t}", "@Override public ServerConfig timeout(final int value, final TimeUnit units) {\n this.timeout = units.toMillis(value);\n return this;\n }", "public void setConnectionTimeout(int connectionTimeout) {\r\n this.connectionTimeout = connectionTimeout;\r\n }", "public void setTimeOut(long timeOut) {\n _timeOut = timeOut;\n }", "public void setConnectionTimeout(Duration connectionTimeout) {\n this.connectionTimeout = connectionTimeout;\n }", "public void setInCallTimeout(int seconds);", "public void setMtu(int mtu);", "@Override\n public void setQueryTimeout( int x ) throws SQLException {\n timeout = x;\n }", "public WriteTimeoutException()\n {\n super();\n }", "public void setTimeout(double timeout){\n this.timeout = timeout;\n }", "public void setConnectionTimeOut(int connectionTimeOut) {\n this.connectionTimeOut = connectionTimeOut;\n }", "public void setSocketTimeout(final int socketTimeout) {\n this.newSoTimeout = socketTimeout;\n }", "@Override\r\n\t\tpublic void setNetworkTimeout(Executor executor, int milliseconds)\r\n\t\t\t\tthrows SQLException {\n\t\t\t\r\n\t\t}", "public void setNortpTimeout(int seconds);", "public long writeTimeoutMillis() {\n return get(WRITE_TIMEOUT_MILLIS);\n }", "public void setTimeout(int newTimeout) {\n this.timeout = newTimeout;\n }", "void setTransactionTimeout(int seconds) throws SystemException;", "@Override\n public void setTxTimeoutInMillis(int ms) {\n Globals.lockingTimeout = ms;\n }", "public final GetHTTP setDataTimeout(final String dataTimeout) {\n properties.put(DATA_TIMEOUT_PROPERTY, dataTimeout);\n return this;\n }", "public void setSoTimeout(int soTimeout)\r\n\t{\r\n\t\tthis.soTimeout = soTimeout;\r\n\t}", "public final synchronized void setConnectionTimeout(final int timeout) {\n HttpConnectionParams.setConnectionTimeout(params, timeout);\n }", "public Builder readTimeout(int timeoutMillis) {\n httpConfig.readTimeout = timeoutMillis;\n return this;\n }", "public final synchronized void setSocketTimeout(final int timeout) {\n HttpConnectionParams.setSoTimeout(params, timeout);\n }", "public SetIdleTimeoutCommand(int timeout) {\n this.timeout = timeout;\n }", "public void setResponseTimeOut(int timeOut)\n {\n fResponseTimeOut = timeOut;\n }", "public void setTimeout( int timeout ) {\n this.timeout = timeout;\n }", "public void setConnectionTimeout(final int connTimeout) {\n this.newConnTimeout = connTimeout;\n }", "public interface SetTimeout {\n /**\n * Mark next #wait to timeoutInNanos.\n *\n * @param timeoutInNanos\n */\n void setTimeout(long timeoutInNanos);\n}", "@SuppressWarnings(\"unchecked\")\n public BUILDER setConnectTimeoutMsecs(long msecs) {\n _connectTimeoutMsecs = msecs;\n return (BUILDER) this;\n }", "public void setTimeout(int timeout) {\r\n this.timeout = timeout;\r\n }", "public void setHttpClientRequestTimeout(int timeout) {\n this.requestTimeout = timeout;\n this.customized = true;\n }", "public void setTimeout(int timeout) {\n this.timeout = timeout;\n }", "protected void setTimeout(Integer connectionTimeoutInMillis, Integer receiveTimeoutInMillis) {\n ((BindingProvider) movilizerCloud).getRequestContext().put(CONNECTION_TIMEOUT_KEY,\n String.valueOf(connectionTimeoutInMillis));\n\n //Set timeout until the response is received\n ((BindingProvider) movilizerCloud).getRequestContext().put(RECEIVE_TIMEOUT_KEY,\n String.valueOf(receiveTimeoutInMillis));\n\n }", "public void setConnectTimeout(int connectTimeout) {\n this.connectTimeout = connectTimeout;\n }", "public void setTimeout(int timeout) {\r\n\t\tthis.TIMEOUT = timeout;\r\n\t}", "public SocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)\r\n/* 295: */ {\r\n/* 296:285 */ super.setConnectTimeoutMillis(connectTimeoutMillis);\r\n/* 297:286 */ return this;\r\n/* 298: */ }", "public void setTimeout (double seconds) {\n multiPathTimeout = seconds;\n }", "public void setTimeoutLength(int timeout) {\n\t\tmyTimeoutLength = timeout;\n\t\tif (myPort == null) {\n\t\t\treturn;\n\t\t}\n\t\tmyPort.setTimeoutLength(timeout);\n\t}", "public void setTimeout(Integer timeout) {\n\t\tthis.timeout = timeout;\n\t}", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }", "public void setQueryTimeout(long timeout) {\n queryTimeout = timeout;\n }", "@Override\n public ConfigurationImpl setNetworkCheckTimeout(int timeout) {\n this.networkCheckTimeout = timeout;\n return this;\n }", "public ConnectInfo setConnectTimeout(final int connectTimeout) {\n\t\tif(connectTimeout<0) throw new IllegalArgumentException(\"The passed connectTimeout [\" + connectTimeout + \"] was invalid\");\n\t\tthis.connectTimeout = connectTimeout;\n\t\treturn this;\n\t}", "public long getTimeout() { return timeout; }", "private void setTimeOut(int TimeOutConstant)\n throws IOException {\n\n // configure the new time out value for the GPIB controller\n m_gpib32.ibconfig(BOARD_NR, IbaTMO, TimeOutConstant);\n\n // clean up if there was an error and throw an exception\n String str = \"Unable to change the TimeOut value for the default GPIb controller\\n\";\n checkErrorGPIB(str, true);\n }", "public Params setConnectionTimeout(Duration connectionTimeout) {\n this.connectionTimeout = Optional.of(connectionTimeout);\n return this;\n }", "public void setQueryTimeout(int seconds) throws SQLException {\n\r\n }", "public long GetTimeout() { return timeout; }", "public void setLoginTimeout(int paramLoginTimeout) {\n\tiLoginTimeout = paramLoginTimeout ;\n }", "void setStopTimeout(int stopTimeout);", "public void setSendTimeout(int sendTimeout){\n return; //TODO codavaj!!\n }", "public final GetHTTP setConnectionTimeout(final String connectionTimeout) {\n properties.put(CONNECTION_TIMEOUT_PROPERTY, connectionTimeout);\n return this;\n }", "public void setQueryTimeout(int queryTimeout) {\n\t\tthis.queryTimeout = queryTimeout;\n\t}", "@Override\r\n public long getTimeouts()\r\n {\n return 0;\r\n }", "@SuppressWarnings(\"unchecked\")\n public BUILDER setPutOperationTimeoutMsecs(long msecs) {\n _putOperationTimeoutMsecs = msecs;\n return (BUILDER) this;\n }", "public Setter reqSetOnTimerSetting(byte[] edt) {\n\t\t\taddProperty(EPC_ON_TIMER_SETTING, edt);\n\t\t\treturn this;\n\t\t}", "public void setScreenTimeOut(int milisecond) {\n try {\n android.provider.Settings.System.putInt(mContext.getContentResolver(),\n android.provider.Settings.System.SCREEN_OFF_TIMEOUT, milisecond);\n } catch (NumberFormatException e) {\n Log.print(\"could not persist screen timeout setting :\" + e);\n }\n }", "public void setConnectionTimeoutInSecs(final Long connectionTimeoutInSecs) {\n\t\tthis.connectionTimeoutInSecs = connectionTimeoutInSecs;\n\t}", "public void setTimeout(Long value) {\r\n timeout = value;\r\n incompatibleWithSpawn |= timeout != null;\r\n }", "public void setReceiveTimeout(int receiveTimeout){\n return; //TODO codavaj!!\n }", "public void setLogOnTimeout(String timeout) {\n\t\tsetProperty(LOGON_TIMEOUT_PROP, timeout);\n\t}", "@Override\n public void setTransactionTimeout(int arg0) throws SystemException {\n throw new UnsupportedOperationException();\n }", "@Override\r\n\tpublic void setLoginTimeout(int arg0) throws SQLException {\n\r\n\t}", "public void setTimeout(long timeout)\r\n\t{\r\n\t\tthis.timeout = timeout;\r\n\t}", "@Override\n public boolean setTransactionTimeout(final int _seconds)\n {\n if (VFSStoreResource.LOG.isDebugEnabled()) {\n VFSStoreResource.LOG.debug(\"setTransactionTimeout (seconds = \" + _seconds + \")\");\n }\n return true;\n }", "@Override\n public void maybeSetThrottleTimeMs(int throttleTimeMs) {\n }", "public int getHardwareTimeout();" ]
[ "0.69430363", "0.6136946", "0.60887146", "0.59258133", "0.5809397", "0.58039266", "0.57347137", "0.57144815", "0.570893", "0.5704337", "0.56761783", "0.5653221", "0.5641707", "0.56131905", "0.55829775", "0.5582629", "0.55561864", "0.55314326", "0.5531238", "0.5519083", "0.5511192", "0.54903126", "0.5484676", "0.54696023", "0.54668367", "0.5451593", "0.54415315", "0.54214525", "0.5399974", "0.53900546", "0.53813267", "0.5376913", "0.5369978", "0.53676414", "0.53542805", "0.5342828", "0.53286594", "0.5320661", "0.5308259", "0.5285976", "0.5283792", "0.5272192", "0.5248512", "0.52349496", "0.5222601", "0.5220369", "0.52194923", "0.5215886", "0.5209135", "0.52083415", "0.51895654", "0.51810336", "0.5179116", "0.51677036", "0.5164283", "0.51497316", "0.5147565", "0.5145952", "0.51379055", "0.5135472", "0.51349026", "0.5131723", "0.5119852", "0.5116321", "0.5112583", "0.5110999", "0.5107976", "0.51060635", "0.5097317", "0.5090957", "0.5069906", "0.5063241", "0.5063241", "0.5049962", "0.50461465", "0.50414604", "0.5030319", "0.50228196", "0.50227964", "0.50134313", "0.5012301", "0.50112116", "0.5006786", "0.5003901", "0.4992062", "0.4989947", "0.49892342", "0.49786022", "0.49684533", "0.49667397", "0.49618056", "0.49585277", "0.49546584", "0.49429545", "0.4939546", "0.49137565", "0.49109256", "0.4900398", "0.48939216", "0.48935917" ]
0.69562846
0
Sets the flow control for the device.
public void setFlowControl(FlowControl flowControl) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetFlowControl(ftHandle, (short) flowControl.constant(), (byte) 0, (byte) 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFlowControl(FlowControl flowControl, byte uXon, byte uXoff) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_SetFlowControl(ftHandle, (short) flowControl.constant(), uXon, uXoff));\n }", "public void setControlFlowProperties(ControlFlowProperties controlFlowProperties)\n {\n this.controlFlowProperties = controlFlowProperties;\n }", "public void setFlow(int flow) {\r\n\r\n this.flow = flow;\r\n }", "public void setControlFlowHeader(ElementHeader controlFlowHeader)\n {\n this.controlFlowHeader = controlFlowHeader;\n }", "void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);", "void setFlow(double amount);", "void setControlPosition(org.landxml.schema.landXML11.TrafficControlPosition.Enum controlPosition);", "public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}", "private void set(){\n resetBuffer();\n }", "public synchronized void set() {\n this.currentState = EventState.UP;\n notify();\n }", "public void set(ControlMode controlMode, double value)\n {\n switch (controlMode)\n {\n case Throttle:\n super.set(value);\n// System.out.printf(\"Port: %d value %f\\n\", port, value);\n break;\n case Position:\n super.getPIDController().setReference(value, ControlType.kPosition);\n break;\n case Velocity:\n super.getPIDController().setReference(value, ControlType.kVelocity);\n break;\n }\n }", "public void setFlownThrough(boolean bool) {\r\n flownThrough = bool;\r\n }", "protected void f_set(Long eID, int flowValue) {\n\t\tincreaseAccess(); // Zugriff auf den Graphen\n\t\tgraph.setValE(eID, flowAttr, flowValue);\n\t}", "public void setSwitchOn() throws UnavailableDeviceException, ClosedDeviceException, IOException{\n\t\tswitch1.setValue(false);\n\t\tthis.switchState = true; \n\t}", "public synchronized void setOpenLoop(DriveSignal signal) {\n RobotState.mDriveControlState = DriveControlState.OPEN_LOOP;\n SmartDashboard.putNumber(\"Left Drive Sig\", signal.getLeft());\n leftDrive.set(ControlMode.PercentOutput, signal.getLeft(), signal.getBrakeMode());\n rightDrive.set(ControlMode.PercentOutput, signal.getRight(), signal.getBrakeMode());\n currentSetpoint = signal;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(false);\r\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(false);\r\n }", "public void setFlowType(String flowType);", "public void setControl(int c) {\n // PROGRAM 1: Student must complete this method\n //if c is on of the accepted controls, set control to c.\n if (c == 0 || c == 1 || c == 2 || c == 6 || c == 7) {\n \t\tcontrol = c;\n \t} else {\n //otherwise, throw exception\n \t\tthrow new IllegalArgumentException(\"Control value invalid\");\n \t}\n }", "public void set(int value)\n {\n set(value, true);\n }", "public void control() {\n\r\n\t}", "public void setCompFlow(int compFlow){\n this.mFarm.setCompFlow(compFlow);\n }", "@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public void setAllowFlight ( boolean flight ) {\n\t\texecute ( handle -> handle.setAllowFlight ( flight ) );\n\t}", "void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);", "public Boolean setFlowTracking(String flowtracking) throws PermissionDeniedException;", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }", "public void setFlying ( boolean value ) {\n\t\texecute ( handle -> handle.setFlying ( value ) );\n\t}", "public void port_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 20); }", "public void port_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 20); }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(true);\r\n \r\n }", "@Override\r\n\tpublic void setController(Control which) {\n\t\tthis.controller=which;\r\n\t\t\r\n\t\tthis.model=which.getModel();\r\n\t\tthis.view=which.getView();\r\n\r\n\t\t\r\n\t\tthis.view.setControl(this);\r\n\t\t//if(!this.view.isFileChoosed()){\r\n\t\t//\tthis.view.disableStartMenuItem();\r\n\t\t//}\r\n\t\tthis.view.pack();\r\n\r\n\t}", "public void port_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 4); }", "public void setController() {\n\t\tthis.controller = CarcassonneController.getInstance(null, this);\n\t\tcontroller.setControl(ClientControl.getInstance(controller,\n\t\t\t\ttxtAdress.getText(), Integer.parseInt(txtPort.getText())));\n\t\tthis.controller.getControl().addObserver(this);\n\t}", "@Override\n public void execute() {\n drivetrain.set(ControlMode.MotionMagic, targetDistance, targetDistance);\n }", "public void switchStatus() {\n if (ioStatus.get() == EdgeStatus.INPUT) {\n ioStatus.set(EdgeStatus.OUTPUT);\n } else {\n ioStatus.set(EdgeStatus.INPUT);\n }\n }", "public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}", "public void setEdgeFlow(double flow) throws Exception {\r\n\t\tif (this.capacity < flow || flow < 0)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\tthis.flow = flow;\r\n\t}", "public void enable() {\n operating = true;\n }", "public void start() {\n rfMotor.setPower(1);\n rrMotor.setPower(1);\n lfMotor.setPower(1);\n lrMotor.setPower(1);\n }", "public void change() {\r\n this.mode = !this.mode;\r\n }", "public void setController(ShannonsController ctl){\n\t\tcontroller = ctl;\n\t}", "public ZWavePolling set(Device device, boolean state) {\n super.device = device;\n this.state = state;\n return this;\n }", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }", "public void target_system_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 12); }", "public void setController(Controller controller);", "public FlowControl getFlowControl() {\n\t\treturn flowControl;\n\t}", "public void operatorControl() {\n myRobot.setSafetyEnabled(true);\n while (isOperatorControl() && isEnabled()) {\n \tmyRobot.tankDrive(controller, 2, controller, 5);\n Timer.delay(0.005);\t\t// wait for a motor update time\n }\n }", "public void setStartPC(final InstructionHandle startPc) { // TODO could be package-protected?\n BranchInstruction.notifyTarget(this.startPc, startPc, this);\n this.startPc = startPc;\n }", "public void controlSPController() throws Exception\n\t{\n\t}", "private void openCtrlSocket() {\n ctrlThreadTask = ThreadTasks.OPEN;\n }", "public void onboard_control_sensors_present_SET(@MAV_SYS_STATUS_SENSOR int src)\n { set_bits(- 1 + src, 26, data, 152); }", "public void SetInputPolarity(byte values) throws IOException {\n mDevice.writeRegByte( IPOL, values );\n }", "void set(boolean on);", "private void setScreenProperty(boolean on) throws DeviceNotAvailableException {\n CLog.d(\"set svc power stay on \" + on);\n mTestDevice.executeShellCommand(\"svc power stayon \" + on);\n }", "void xsetControlPosition(org.landxml.schema.landXML11.TrafficControlPosition controlPosition);", "public void change () {\n\t\tswitch (setting) {\n\t\tcase OFF:\n\t\t\tsetting=possibleSettings.LOW;\n\t\tcase LOW:\n\t\t\tsetting=possibleSettings.MEDIUM;\n\t\tcase MEDIUM:\n\t\t\tsetting=possibleSettings.HIGH;\n\t\tcase HIGH:\n\t\t\tsetting=possibleSettings.OFF;\n\t\t\n\t\t}\n\t\t//assert setting()==OFF || setting()==LOW || setting()==MEDIUM || setting()==HIGH;\n\t\t//setting = (setting + 1) % 4;\n\t}", "public abstract void enableStreamFlow();", "@Override\r\n public void start() {\r\n runtime.reset();\r\n FL.setPower(1);\r\n FR.setPower(1);\r\n BR.setPower(1);\r\n BL.setPower(1);\r\n try{\r\n Thread.sleep(850);\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n FL.setPower(0);\r\n FR.setPower(0);\r\n BL.setPower(0);\r\n BR.setPower(0); \r\n }", "@Override\n\tpublic void setController(BotController controller) {\n\t}", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgEND(true);\r\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 setController(TimedControllerIfc controller);", "public void setHandlerPC(final InstructionHandle handlerPc) { // TODO could be package-protected?\n BranchInstruction.notifyTarget(this.handlerPc, handlerPc, this);\n this.handlerPc = handlerPc;\n }", "public void onboard_control_sensors_enabled_SET(@MAV_SYS_STATUS_SENSOR int src)\n { set_bits(- 1 + src, 26, data, 178); }", "public void setOpControl(java.lang.String param) {\r\n localOpControlTracker = param != null;\r\n\r\n this.localOpControl = param;\r\n }", "@Override\r\n\tpublic int control(int opcode, int dataLength, iDeviceIO memSource) {\r\n\t\tif (this.tapeIo == null) { // no tape mounted ... no operation possible (not ready)\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control() without tape mounted\");\r\n\t\t\tthis.hasFailedAccessAttempt = true;\r\n\t\t\treturn this.exitUnitCheck(Sense_InterventionRequired);\r\n\t\t}\r\n\r\n\t\tswitch(opcode)\r\n\t\t{\r\n\t\t\t\r\n\t\tcase 0x03: // Control no-op\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(NO-OP)\");\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x07: // Rewind\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(REWIND)\");\r\n\t\t\tthis.currentBlock = this.headLimit;\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x0F: // Rewind-unload\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(REWIND-DISMOUNT)\");\r\n\t\t\tthis.dismountTapeFile();\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x17: // Erase gap\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(ERASE-GAP)\");\r\n\t\t\tif (this.isReadonly) {\r\n\t\t\t\treturn this.exitUnitCheck(Sense_NotTapeWritable);\r\n\t\t\t}\r\n\t\t\t// erase gap effectively drops the rest of the tape content...\r\n\t\t\tthis.currentBlock = this.tailLimit;\r\n\t\t\tthis.isModified = true;\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x1F: // Write tape mark\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(WRITE-TAPE-MARK)\");\r\n\t\t\tif (this.isReadonly) {\r\n\t\t\t\treturn this.exitUnitCheck(Sense_NotTapeWritable);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// at tape end: append new things before tailLimit\r\n\t\t\tif (this.currentBlock == this.tailLimit) {\r\n\t\t\t\tthis.currentBlock = this.tailLimit.getPrev();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// append the tapemark\r\n\t\t\tTapeBlock tapeMark = new TapeBlock(this.currentBlock);\r\n\t\t\ttapeMark.append(this.tailLimit);\r\n\t\t\tthis.currentBlock = tapeMark;\r\n\t\t\tthis.isModified = true;\r\n\t\t\t\r\n\t\t\t// done\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x27: // Backspace block\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(BACKSPACE-BLOCK)\");\r\n\t\t\tif (this.currentBlock == this.headLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\tthis.currentBlock = this.currentBlock.getPrev();\r\n\t\t\tif (this.currentBlock.isTapemark()) {\r\n\t\t\t\tthis.exitUnitException(); \r\n\t\t\t}\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x2F: // Backspace file\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(BACKSPACE-FILE)\");\r\n\t\t\tif (this.currentBlock == this.headLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\twhile(this.currentBlock != this.headLimit && !this.currentBlock.isTapemark()) {\r\n\t\t\t\tthis.currentBlock = this.currentBlock.getPrev();\r\n\t\t\t}\r\n\t\t\tif (this.currentBlock != this.headLimit) {\r\n\t\t\t\tthis.currentBlock = this.currentBlock.getPrev();\r\n\t\t\t}\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x37: // Forwardspace block\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(FORWARDSPACE-BLOCK)\");\r\n\t\t\tif (this.currentBlock == this.tailLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\tthis.currentBlock = this.currentBlock.getNext();\r\n\t\t\tif (this.currentBlock.isTapemark()) {\r\n\t\t\t\tthis.exitUnitException(); \r\n\t\t\t}\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x3F: // Forwardspace file\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(FORWARDSPACE-FILE)\");\r\n\t\t\tif (this.currentBlock == this.tailLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\tthis.currentBlock = this.currentBlock.getNext();\r\n\t\t\twhile(this.currentBlock != this.tailLimit && !this.currentBlock.isTapemark()) {\r\n\t\t\t\tthis.currentBlock = this.currentBlock.getNext();\r\n\t\t\t}\r\n\t\t\treturn this.exitOk();\r\n\t\t\r\n\t\tcase 0x53: case 0x63: case 0x6B: case 0x73: case 0x7B:\r\n\t\tcase 0x93: case 0xA3: case 0xAB: case 0xB3: case 0xBB:\r\n\t\tcase 0xC3: case 0xCB:\r\n\t\t\t// set mode XXX => no density/parity/translator/converter in a tape emulating file => ignored!\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(SET-MODE)-0x%02X\", opcode);\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x97: // Data security erase\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(DATA-SECURITY-ERASE)\");\r\n\t\t\tif (this.isReadonly) {\r\n\t\t\t\treturn this.exitUnitCheck(Sense_NotTapeWritable);\r\n\t\t\t}\r\n\t\t\tif (this.currentBlock == this.tailLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\tthis.currentBlock.append(this.tailLimit);\r\n\t\t\tthis.isModified = true;\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x1B: // request data in error\r\n\t\t\t// unsupported by this emulation!\r\n\t\t\t// (in fact: this would have to transfer from device to memory\r\n\t\t\t// but our control data transfer is defined to transfer\r\n\t\t\t// from memory to device !!!!!)\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(REQUEST-DATA-IN-ERROR)\");\r\n\t\t\treturn this.exitUnitCheck(Sense_IllegalCommand);\r\n\t\t\t\r\n\t\t\t\r\n\t\tcase 0x4B: // Set diagnose\r\n\t\t\t// unsupported by this emulation!\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(SET-DIAGNOSE)\");\r\n\t\t\treturn this.exitUnitCheck(Sense_IllegalCommand);\r\n\t\t\t\r\n\t\tcase 0x0B: // Set diagnose mode\r\n\t\t\t// unsupported by this emulation!\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(SET-DIAGNOSE-MODE)\");\r\n\t\t\treturn this.exitUnitCheck(Sense_IllegalCommand);\r\n\t\t\t\r\n\t\tcase 0x8B: // Loop write-to-read\r\n\t\t\t// our write head is always OK!\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(LOOP-WRITE-TO-READ)\");\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tdefault:\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(illegal command: 0x%02X)\", opcode);\r\n\t\t\treturn this.exitUnitCheck(Sense_IllegalCommand);\r\n\t\t}\r\n\t}", "public void switchOn() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"o\");\n setCurrentState(true);\n }", "public void switchOnForConfiguredPeriod() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"of\");\n setCurrentState(true);\n }", "public void r_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 9); }", "@Override\n public void pidSet(UnifiedControlMode controlMode, double setpoint, PIDSettings pidSettings,\n FeedForwardSettings feedForwardSettings, TrapezoidProfileSettings trapezoidProfileSettings) {\n configPIDF(pidSettings, feedForwardSettings);\n configureTrapezoid(trapezoidProfileSettings);\n master.set(controlMode.getCTREControlMode(), setpoint);\n }", "public void seq_SET(char src)\n { set_bytes((char)(src) & -1L, 2, data, 0); }", "public void setFlowLimit(Long flowLimit) {\r\n \tthis.flowLimit = flowLimit;\r\n }", "public void setController(GameController cont) {\n this.controller = cont;\n }", "public void set(float signal);", "public com.google.protobuf.Empty setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "FlowControlledDataChannel(@NonNull final DataChannel dc) {\n this(dc, 256 * 1024, 1024 * 1024);\n }", "public void operatorControl() {\n for (int i = 0; i < autoControllers.size(); i++) {\n ((EventController) autoControllers.elementAt(i)).disable();\n }\n for (int i = 0; i < teleopControllers.size(); i++) {\n ((EventController) teleopControllers.elementAt(i)).enable();\n }\n \n }", "public void setIsPhysicalDevice(boolean value) {\n this.isPhysicalDevice = value;\n }", "@Override \n public void runOpMode() \n {\n leftMotors = hardwareMap.get(DcMotor.class, \"left_Motors\");\n rightMotors = hardwareMap.get(DcMotor.class, \"right_Motors\");\n vLiftMotor = hardwareMap.get(DcMotor.class, \"vLift_Motor\"); \n \n leftMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftMotors.setDirection(DcMotor.Direction.REVERSE);\n rightMotors.setDirection(DcMotor.Direction.FORWARD);\n vLiftMotor.setDirection(DcMotor.Direction.REVERSE);\n vLiftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n \n waitForStart(); //press play button, actives opMode\n intakePivotServo.setPosition(intakePivotServoPos);\n while (opModeIsActive()) \n { \n drive();\n pivotIntake();\n pivotLift();\n \n }//opModeIsActive \n \n }", "public void setControl(EmployeeController control) {\r\n\t\tthis.control = control;\r\n\t}", "public void setValue(short value) {\n this.value = value;\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "void setMasterMode(OrekitStepHandler handler);", "public void setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }", "public void enable() {\n\t\tenabled = true;\n\t\t//System.out.println(\"Enabled Controller\");\n\t}", "public void enable() {\n\t\tm_controller.reset();\n\t\tm_runner.enable();\n\t}", "private void setChangeHeadpicRsp(ChangeHeadpic.Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 17;\n }", "private void setSteeringContinuous(double FL, double FR, double BL, double BR) {\n double FLoffset = -1, FRoffset = -1, BLoffset = 2, BRoffset = 2;\n\n FLpid.setSetpoint(FL + FLoffset);\n FRpid.setSetpoint(FR + FRoffset);\n BRpid.setSetpoint(BR + BRoffset);\n BLpid.setSetpoint(BL + BLoffset);\n\n steeringFL.moveAtPercent(FLpid.calculate(FLcoder.getAbsolutePosition()));\n steeringFR.moveAtPercent(FRpid.calculate(FRcoder.getAbsolutePosition()));\n steeringBL.moveAtPercent(BLpid.calculate(BLcoder.getAbsolutePosition()));\n steeringBR.moveAtPercent(BRpid.calculate(BRcoder.getAbsolutePosition()));\n }", "public void servoOn() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(svonChannel, 1, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to turn servos on\", e);\n \t\t}\n \t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tif (state.equals(\"teleop\")) {\n\t\t\tlastState = \"teleop\";\n\t\t}\n\t\tstate = \"teleop\";\n\n\t\tif (lastState.equals(\"auton\")) {\n\t\t\tNetworkTables.getControlsTable().putBoolean(\"auton\", false);\n\t\t\t\n\t\t\t//Changes the control Mode back to PercentVbus\n\t\t\t//Should only run once - first interation of teleop\n\t\t\t//And ends auton if running\n\t\t\tif(autonomousCommand != null){\n\t\t\t\tautonomousCommand.cancel();\n\t\t\t}\n\t\t\tActuators.getLeftDriveMotor().changeControlMode(TalonControlMode.PercentVbus);\n\t\t\tActuators.getLeftDriveMotor().set(Constants.MOTOR_STOP);\n\t\t\tActuators.getRightDriveMotor().changeControlMode(TalonControlMode.PercentVbus);\n\t\t\tActuators.getRightDriveMotor().set(Constants.MOTOR_STOP);\n\t\t}\n\n//\t\tNetworkTables.putStream(Gamepad.primary.getX() || Gamepad.secondary.getX());\n\t\t/*\n\t\t * Primary Controllers Controls\n\t\t */\n\t\t// TODO: confirm right trigger forward, left trigger reverse\n\t\t// Drive controls\n\t\tDrive.drive(-Gamepad.primary.getLeftX(), Gamepad.primary.getTriggers()); \n\t\tDrive.shift(Gamepad.primary.getA(), Gamepad.primary.getY()); // shifting with A low gear and Y high gear\n\t\tDrive.shiftToggle(Gamepad.primary.getLB());\n\t\tDrive.crab(Gamepad.primary.getDPadLeft(), Gamepad.primary.getDPadRight());\n\t\t\n//\t\tif (Gamepad.primary.getDPadLeft()){\n//\t\t\tDrive.goingLeft = true;\n//\t\t\tDrive.crab();\t\t\n//\t\t}else if( Gamepad.primary.getDPadRight()){\n//\t\t\tDrive.goingLeft = false;\n//\t\t\tDrive.crab();\t\t\t\n//\t\t}else if (Drive.crabState > 0){\n//\t\t\tDrive.crab();\n//\t\t}\n\n\t\t\n\t\t// Climb controls\n\t\tClimb.climbStopPrimary(Gamepad.primary.getDPadUp()); // runs climbStop using left on the DPad - Primary\n\t\t// Climb.climbSafetyTogglePrimary(Gamepad.primary.getBack()); //toggles safety if pressed 3 times\n\n\t\t// Gear controls\n\t\tScore.dispenseGear(Gamepad.primary.getB() || Gamepad.secondary.getDPadUp());\n\n\t\t/*\n\t\t * Secondary Controllers Controls\n\t\t */\n\t\t// Intake controls\n\t\tIntake.intake(Gamepad.secondary.getRightButton()); // runs intake with clicking in the Right Joystick on second controller\n\t\tIntake.intakeSpeed(Gamepad.secondary.getRightY()); // Override Y Button\n\t\tIntake.intakeDirection(Gamepad.secondary.getRightX()); // Override Y Button\n\t\tIntake.intakeJam(Gamepad.secondary.getLB()); // Runs the unjamming procedure for a max of 3 seconds per press\n\t\t// Intake.intakeSafety(Gamepad.secondary.getStart()); //Have to press 3 times to toggle the safety\n\t\tIntake.intakeIn(Gamepad.secondary.getA(), Gamepad.secondary.getB(), Gamepad.secondary.getX()); // Toggles Intake running into the robot at full speed\n\t\tIntake.intakeRun(Gamepad.secondary.getRB()); // Runs all stuff for intake in(conveyor and intake motor)\n//\t\tIntake.intakeOut(Gamepad.secondary.getB());\n\t\t// Climb controls\n\t\tClimb.climbStopSecondary(Gamepad.secondary.getDPadRight()); // runs climbStop using left on the DPad - Secondary\n\t\tClimb.climbStartSecondary(Gamepad.secondary.getDPadLeft()); // runs climbStart using right on the DPad Secondary\n\t\tClimb.climbSafetyToggleSecondary(Gamepad.secondary.getBack()); // Have to press 3 times to toggle the safety\n\n\t\t// Gear controls\n\t\t// Score.gearLock(Gamepad.secondary.getStart(),\n\t\t// Gamepad.secondary.getBack());\n\n\t\t// Outtake Controls\n\t\t// Score.outtakeToggle(Gamepad.secondary.getLB());\n\n\t\t// Conveyor Controls\n\n\t\tScore.conveyor(Gamepad.secondary.getLeftButton()); // runs conveyor with clicking in the Left Joystick on second controller\n\t\tScore.conveyorSpeed(Gamepad.secondary.getLeftY());\n\t\tScore.conveyorDirection(Gamepad.secondary.getLeftX());\n\t\tScore.conveyorIn(Gamepad.secondary.getY());\n\n\t\t// Sweeper\n\t\t// Sweeper.sweeperMotion(Gamepad.secondary.getTriggers());\n\n\t\tDash.driveMode();\n\n\t\tSmartDashboard.putString(\"Controls Table\", NetworkTables.getControlsTable().getKeys().toString());\n\t\tSmartDashboard.putString(\"Stream\", NetworkTables.getControlsTable().getString(\"stream\", \"nothing\"));\n\n\t}", "public void target_component_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 13); }", "public void setOn(int on) {\r\n\t\tonkey = on;\r\n\t}", "public static void set100(){\n driver.findElement(By.tagName(\"html\")).sendKeys(Keys.chord(Keys.CONTROL, \"0\"));\n }", "void setMotorsMode(DcMotor.RunMode runMode);", "public void x_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 3); }", "public void y_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 5); }", "public void enableClient(){\r\n try{\r\n oos.writeObject(new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.ENABLECODE)));\r\n oos.flush();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }" ]
[ "0.6767469", "0.60715", "0.59996474", "0.57370347", "0.5599424", "0.5542255", "0.5461233", "0.54216146", "0.5368187", "0.5367006", "0.53616416", "0.5328298", "0.5325886", "0.5312724", "0.53093547", "0.52949786", "0.52830815", "0.5264396", "0.52549946", "0.52324843", "0.52093905", "0.5208399", "0.5200354", "0.5181449", "0.51768833", "0.5171462", "0.5140993", "0.5126689", "0.50939006", "0.5089548", "0.5089548", "0.5072724", "0.5067315", "0.5035813", "0.50162154", "0.5012687", "0.50109386", "0.5006562", "0.50032437", "0.5003146", "0.49896476", "0.4985283", "0.4976234", "0.49758756", "0.49750474", "0.49514243", "0.49449766", "0.49352977", "0.49158815", "0.49152875", "0.49138543", "0.4903896", "0.4900658", "0.48980346", "0.48961827", "0.48784", "0.48764828", "0.48733082", "0.48716488", "0.48707274", "0.48654094", "0.48592296", "0.48501986", "0.48392898", "0.4838561", "0.48384777", "0.48361787", "0.4831151", "0.48294953", "0.4825857", "0.4822831", "0.4811718", "0.48040593", "0.47994596", "0.47985643", "0.4798381", "0.47935647", "0.47925255", "0.47880706", "0.47879016", "0.47875807", "0.478669", "0.47800067", "0.4776066", "0.47758213", "0.47687596", "0.47668526", "0.4766799", "0.4764825", "0.47620115", "0.4757682", "0.47569528", "0.47541508", "0.47486532", "0.47486335", "0.47405425", "0.47402337", "0.474022", "0.47336254", "0.47296596" ]
0.6994136
0
Sets the flow control for the device.
public void setFlowControl(FlowControl flowControl, byte uXon, byte uXoff) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetFlowControl(ftHandle, (short) flowControl.constant(), uXon, uXoff)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFlowControl(FlowControl flowControl) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_SetFlowControl(ftHandle, (short) flowControl.constant(), (byte) 0, (byte) 0));\n }", "public void setControlFlowProperties(ControlFlowProperties controlFlowProperties)\n {\n this.controlFlowProperties = controlFlowProperties;\n }", "public void setFlow(int flow) {\r\n\r\n this.flow = flow;\r\n }", "public void setControlFlowHeader(ElementHeader controlFlowHeader)\n {\n this.controlFlowHeader = controlFlowHeader;\n }", "void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);", "void setFlow(double amount);", "void setControlPosition(org.landxml.schema.landXML11.TrafficControlPosition.Enum controlPosition);", "public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}", "private void set(){\n resetBuffer();\n }", "public synchronized void set() {\n this.currentState = EventState.UP;\n notify();\n }", "public void set(ControlMode controlMode, double value)\n {\n switch (controlMode)\n {\n case Throttle:\n super.set(value);\n// System.out.printf(\"Port: %d value %f\\n\", port, value);\n break;\n case Position:\n super.getPIDController().setReference(value, ControlType.kPosition);\n break;\n case Velocity:\n super.getPIDController().setReference(value, ControlType.kVelocity);\n break;\n }\n }", "public void setFlownThrough(boolean bool) {\r\n flownThrough = bool;\r\n }", "protected void f_set(Long eID, int flowValue) {\n\t\tincreaseAccess(); // Zugriff auf den Graphen\n\t\tgraph.setValE(eID, flowAttr, flowValue);\n\t}", "public void setSwitchOn() throws UnavailableDeviceException, ClosedDeviceException, IOException{\n\t\tswitch1.setValue(false);\n\t\tthis.switchState = true; \n\t}", "public synchronized void setOpenLoop(DriveSignal signal) {\n RobotState.mDriveControlState = DriveControlState.OPEN_LOOP;\n SmartDashboard.putNumber(\"Left Drive Sig\", signal.getLeft());\n leftDrive.set(ControlMode.PercentOutput, signal.getLeft(), signal.getBrakeMode());\n rightDrive.set(ControlMode.PercentOutput, signal.getRight(), signal.getBrakeMode());\n currentSetpoint = signal;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(false);\r\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(false);\r\n }", "public void setFlowType(String flowType);", "public void setControl(int c) {\n // PROGRAM 1: Student must complete this method\n //if c is on of the accepted controls, set control to c.\n if (c == 0 || c == 1 || c == 2 || c == 6 || c == 7) {\n \t\tcontrol = c;\n \t} else {\n //otherwise, throw exception\n \t\tthrow new IllegalArgumentException(\"Control value invalid\");\n \t}\n }", "public void set(int value)\n {\n set(value, true);\n }", "public void control() {\n\r\n\t}", "public void setCompFlow(int compFlow){\n this.mFarm.setCompFlow(compFlow);\n }", "@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public void setAllowFlight ( boolean flight ) {\n\t\texecute ( handle -> handle.setAllowFlight ( flight ) );\n\t}", "void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);", "public Boolean setFlowTracking(String flowtracking) throws PermissionDeniedException;", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }", "public void setFlying ( boolean value ) {\n\t\texecute ( handle -> handle.setFlying ( value ) );\n\t}", "public void port_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 20); }", "public void port_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 20); }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(true);\r\n \r\n }", "@Override\r\n\tpublic void setController(Control which) {\n\t\tthis.controller=which;\r\n\t\t\r\n\t\tthis.model=which.getModel();\r\n\t\tthis.view=which.getView();\r\n\r\n\t\t\r\n\t\tthis.view.setControl(this);\r\n\t\t//if(!this.view.isFileChoosed()){\r\n\t\t//\tthis.view.disableStartMenuItem();\r\n\t\t//}\r\n\t\tthis.view.pack();\r\n\r\n\t}", "public void port_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 4); }", "public void setController() {\n\t\tthis.controller = CarcassonneController.getInstance(null, this);\n\t\tcontroller.setControl(ClientControl.getInstance(controller,\n\t\t\t\ttxtAdress.getText(), Integer.parseInt(txtPort.getText())));\n\t\tthis.controller.getControl().addObserver(this);\n\t}", "@Override\n public void execute() {\n drivetrain.set(ControlMode.MotionMagic, targetDistance, targetDistance);\n }", "public void switchStatus() {\n if (ioStatus.get() == EdgeStatus.INPUT) {\n ioStatus.set(EdgeStatus.OUTPUT);\n } else {\n ioStatus.set(EdgeStatus.INPUT);\n }\n }", "public void setEdgeFlow(double flow) throws Exception {\r\n\t\tif (this.capacity < flow || flow < 0)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\tthis.flow = flow;\r\n\t}", "public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}", "public void enable() {\n operating = true;\n }", "public void start() {\n rfMotor.setPower(1);\n rrMotor.setPower(1);\n lfMotor.setPower(1);\n lrMotor.setPower(1);\n }", "public void change() {\r\n this.mode = !this.mode;\r\n }", "public void setController(ShannonsController ctl){\n\t\tcontroller = ctl;\n\t}", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }", "public ZWavePolling set(Device device, boolean state) {\n super.device = device;\n this.state = state;\n return this;\n }", "public void target_system_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 12); }", "public void setController(Controller controller);", "public FlowControl getFlowControl() {\n\t\treturn flowControl;\n\t}", "public void setStartPC(final InstructionHandle startPc) { // TODO could be package-protected?\n BranchInstruction.notifyTarget(this.startPc, startPc, this);\n this.startPc = startPc;\n }", "public void operatorControl() {\n myRobot.setSafetyEnabled(true);\n while (isOperatorControl() && isEnabled()) {\n \tmyRobot.tankDrive(controller, 2, controller, 5);\n Timer.delay(0.005);\t\t// wait for a motor update time\n }\n }", "public void controlSPController() throws Exception\n\t{\n\t}", "private void openCtrlSocket() {\n ctrlThreadTask = ThreadTasks.OPEN;\n }", "public void onboard_control_sensors_present_SET(@MAV_SYS_STATUS_SENSOR int src)\n { set_bits(- 1 + src, 26, data, 152); }", "public void SetInputPolarity(byte values) throws IOException {\n mDevice.writeRegByte( IPOL, values );\n }", "void set(boolean on);", "private void setScreenProperty(boolean on) throws DeviceNotAvailableException {\n CLog.d(\"set svc power stay on \" + on);\n mTestDevice.executeShellCommand(\"svc power stayon \" + on);\n }", "void xsetControlPosition(org.landxml.schema.landXML11.TrafficControlPosition controlPosition);", "public void change () {\n\t\tswitch (setting) {\n\t\tcase OFF:\n\t\t\tsetting=possibleSettings.LOW;\n\t\tcase LOW:\n\t\t\tsetting=possibleSettings.MEDIUM;\n\t\tcase MEDIUM:\n\t\t\tsetting=possibleSettings.HIGH;\n\t\tcase HIGH:\n\t\t\tsetting=possibleSettings.OFF;\n\t\t\n\t\t}\n\t\t//assert setting()==OFF || setting()==LOW || setting()==MEDIUM || setting()==HIGH;\n\t\t//setting = (setting + 1) % 4;\n\t}", "public abstract void enableStreamFlow();", "@Override\r\n public void start() {\r\n runtime.reset();\r\n FL.setPower(1);\r\n FR.setPower(1);\r\n BR.setPower(1);\r\n BL.setPower(1);\r\n try{\r\n Thread.sleep(850);\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n FL.setPower(0);\r\n FR.setPower(0);\r\n BL.setPower(0);\r\n BR.setPower(0); \r\n }", "@Override\n\tpublic void setController(BotController controller) {\n\t}", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgEND(true);\r\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 setHandlerPC(final InstructionHandle handlerPc) { // TODO could be package-protected?\n BranchInstruction.notifyTarget(this.handlerPc, handlerPc, this);\n this.handlerPc = handlerPc;\n }", "public void onboard_control_sensors_enabled_SET(@MAV_SYS_STATUS_SENSOR int src)\n { set_bits(- 1 + src, 26, data, 178); }", "public void setController(TimedControllerIfc controller);", "public void setOpControl(java.lang.String param) {\r\n localOpControlTracker = param != null;\r\n\r\n this.localOpControl = param;\r\n }", "@Override\r\n\tpublic int control(int opcode, int dataLength, iDeviceIO memSource) {\r\n\t\tif (this.tapeIo == null) { // no tape mounted ... no operation possible (not ready)\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control() without tape mounted\");\r\n\t\t\tthis.hasFailedAccessAttempt = true;\r\n\t\t\treturn this.exitUnitCheck(Sense_InterventionRequired);\r\n\t\t}\r\n\r\n\t\tswitch(opcode)\r\n\t\t{\r\n\t\t\t\r\n\t\tcase 0x03: // Control no-op\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(NO-OP)\");\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x07: // Rewind\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(REWIND)\");\r\n\t\t\tthis.currentBlock = this.headLimit;\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x0F: // Rewind-unload\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(REWIND-DISMOUNT)\");\r\n\t\t\tthis.dismountTapeFile();\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x17: // Erase gap\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(ERASE-GAP)\");\r\n\t\t\tif (this.isReadonly) {\r\n\t\t\t\treturn this.exitUnitCheck(Sense_NotTapeWritable);\r\n\t\t\t}\r\n\t\t\t// erase gap effectively drops the rest of the tape content...\r\n\t\t\tthis.currentBlock = this.tailLimit;\r\n\t\t\tthis.isModified = true;\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x1F: // Write tape mark\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(WRITE-TAPE-MARK)\");\r\n\t\t\tif (this.isReadonly) {\r\n\t\t\t\treturn this.exitUnitCheck(Sense_NotTapeWritable);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// at tape end: append new things before tailLimit\r\n\t\t\tif (this.currentBlock == this.tailLimit) {\r\n\t\t\t\tthis.currentBlock = this.tailLimit.getPrev();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// append the tapemark\r\n\t\t\tTapeBlock tapeMark = new TapeBlock(this.currentBlock);\r\n\t\t\ttapeMark.append(this.tailLimit);\r\n\t\t\tthis.currentBlock = tapeMark;\r\n\t\t\tthis.isModified = true;\r\n\t\t\t\r\n\t\t\t// done\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x27: // Backspace block\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(BACKSPACE-BLOCK)\");\r\n\t\t\tif (this.currentBlock == this.headLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\tthis.currentBlock = this.currentBlock.getPrev();\r\n\t\t\tif (this.currentBlock.isTapemark()) {\r\n\t\t\t\tthis.exitUnitException(); \r\n\t\t\t}\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x2F: // Backspace file\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(BACKSPACE-FILE)\");\r\n\t\t\tif (this.currentBlock == this.headLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\twhile(this.currentBlock != this.headLimit && !this.currentBlock.isTapemark()) {\r\n\t\t\t\tthis.currentBlock = this.currentBlock.getPrev();\r\n\t\t\t}\r\n\t\t\tif (this.currentBlock != this.headLimit) {\r\n\t\t\t\tthis.currentBlock = this.currentBlock.getPrev();\r\n\t\t\t}\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x37: // Forwardspace block\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(FORWARDSPACE-BLOCK)\");\r\n\t\t\tif (this.currentBlock == this.tailLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\tthis.currentBlock = this.currentBlock.getNext();\r\n\t\t\tif (this.currentBlock.isTapemark()) {\r\n\t\t\t\tthis.exitUnitException(); \r\n\t\t\t}\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x3F: // Forwardspace file\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(FORWARDSPACE-FILE)\");\r\n\t\t\tif (this.currentBlock == this.tailLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\tthis.currentBlock = this.currentBlock.getNext();\r\n\t\t\twhile(this.currentBlock != this.tailLimit && !this.currentBlock.isTapemark()) {\r\n\t\t\t\tthis.currentBlock = this.currentBlock.getNext();\r\n\t\t\t}\r\n\t\t\treturn this.exitOk();\r\n\t\t\r\n\t\tcase 0x53: case 0x63: case 0x6B: case 0x73: case 0x7B:\r\n\t\tcase 0x93: case 0xA3: case 0xAB: case 0xB3: case 0xBB:\r\n\t\tcase 0xC3: case 0xCB:\r\n\t\t\t// set mode XXX => no density/parity/translator/converter in a tape emulating file => ignored!\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(SET-MODE)-0x%02X\", opcode);\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x97: // Data security erase\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(DATA-SECURITY-ERASE)\");\r\n\t\t\tif (this.isReadonly) {\r\n\t\t\t\treturn this.exitUnitCheck(Sense_NotTapeWritable);\r\n\t\t\t}\r\n\t\t\tif (this.currentBlock == this.tailLimit) {\r\n\t\t\t\treturn this.exitOk();\r\n\t\t\t}\r\n\t\t\tthis.currentBlock.append(this.tailLimit);\r\n\t\t\tthis.isModified = true;\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tcase 0x1B: // request data in error\r\n\t\t\t// unsupported by this emulation!\r\n\t\t\t// (in fact: this would have to transfer from device to memory\r\n\t\t\t// but our control data transfer is defined to transfer\r\n\t\t\t// from memory to device !!!!!)\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(REQUEST-DATA-IN-ERROR)\");\r\n\t\t\treturn this.exitUnitCheck(Sense_IllegalCommand);\r\n\t\t\t\r\n\t\t\t\r\n\t\tcase 0x4B: // Set diagnose\r\n\t\t\t// unsupported by this emulation!\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(SET-DIAGNOSE)\");\r\n\t\t\treturn this.exitUnitCheck(Sense_IllegalCommand);\r\n\t\t\t\r\n\t\tcase 0x0B: // Set diagnose mode\r\n\t\t\t// unsupported by this emulation!\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(SET-DIAGNOSE-MODE)\");\r\n\t\t\treturn this.exitUnitCheck(Sense_IllegalCommand);\r\n\t\t\t\r\n\t\tcase 0x8B: // Loop write-to-read\r\n\t\t\t// our write head is always OK!\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(LOOP-WRITE-TO-READ)\");\r\n\t\t\treturn this.exitOk();\r\n\t\t\t\r\n\t\tdefault:\r\n\t\t\tthis.eventLogger.logLine(\".. .. TapeDrive: control(illegal command: 0x%02X)\", opcode);\r\n\t\t\treturn this.exitUnitCheck(Sense_IllegalCommand);\r\n\t\t}\r\n\t}", "public void switchOn() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"o\");\n setCurrentState(true);\n }", "public void switchOnForConfiguredPeriod() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"of\");\n setCurrentState(true);\n }", "public void r_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 9); }", "@Override\n public void pidSet(UnifiedControlMode controlMode, double setpoint, PIDSettings pidSettings,\n FeedForwardSettings feedForwardSettings, TrapezoidProfileSettings trapezoidProfileSettings) {\n configPIDF(pidSettings, feedForwardSettings);\n configureTrapezoid(trapezoidProfileSettings);\n master.set(controlMode.getCTREControlMode(), setpoint);\n }", "public void seq_SET(char src)\n { set_bytes((char)(src) & -1L, 2, data, 0); }", "public void setFlowLimit(Long flowLimit) {\r\n \tthis.flowLimit = flowLimit;\r\n }", "public void setController(GameController cont) {\n this.controller = cont;\n }", "public void set(float signal);", "FlowControlledDataChannel(@NonNull final DataChannel dc) {\n this(dc, 256 * 1024, 1024 * 1024);\n }", "public com.google.protobuf.Empty setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "@Override \n public void runOpMode() \n {\n leftMotors = hardwareMap.get(DcMotor.class, \"left_Motors\");\n rightMotors = hardwareMap.get(DcMotor.class, \"right_Motors\");\n vLiftMotor = hardwareMap.get(DcMotor.class, \"vLift_Motor\"); \n \n leftMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftMotors.setDirection(DcMotor.Direction.REVERSE);\n rightMotors.setDirection(DcMotor.Direction.FORWARD);\n vLiftMotor.setDirection(DcMotor.Direction.REVERSE);\n vLiftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n \n waitForStart(); //press play button, actives opMode\n intakePivotServo.setPosition(intakePivotServoPos);\n while (opModeIsActive()) \n { \n drive();\n pivotIntake();\n pivotLift();\n \n }//opModeIsActive \n \n }", "public void operatorControl() {\n for (int i = 0; i < autoControllers.size(); i++) {\n ((EventController) autoControllers.elementAt(i)).disable();\n }\n for (int i = 0; i < teleopControllers.size(); i++) {\n ((EventController) teleopControllers.elementAt(i)).enable();\n }\n \n }", "public void setIsPhysicalDevice(boolean value) {\n this.isPhysicalDevice = value;\n }", "public void setControl(EmployeeController control) {\r\n\t\tthis.control = control;\r\n\t}", "public void setValue(short value) {\n this.value = value;\n }", "void setMasterMode(OrekitStepHandler handler);", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }", "public void enable() {\n\t\tenabled = true;\n\t\t//System.out.println(\"Enabled Controller\");\n\t}", "public void setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "public void enable() {\n\t\tm_controller.reset();\n\t\tm_runner.enable();\n\t}", "private void setChangeHeadpicRsp(ChangeHeadpic.Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 17;\n }", "private void setSteeringContinuous(double FL, double FR, double BL, double BR) {\n double FLoffset = -1, FRoffset = -1, BLoffset = 2, BRoffset = 2;\n\n FLpid.setSetpoint(FL + FLoffset);\n FRpid.setSetpoint(FR + FRoffset);\n BRpid.setSetpoint(BR + BRoffset);\n BLpid.setSetpoint(BL + BLoffset);\n\n steeringFL.moveAtPercent(FLpid.calculate(FLcoder.getAbsolutePosition()));\n steeringFR.moveAtPercent(FRpid.calculate(FRcoder.getAbsolutePosition()));\n steeringBL.moveAtPercent(BLpid.calculate(BLcoder.getAbsolutePosition()));\n steeringBR.moveAtPercent(BRpid.calculate(BRcoder.getAbsolutePosition()));\n }", "public void servoOn() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(svonChannel, 1, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to turn servos on\", e);\n \t\t}\n \t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tif (state.equals(\"teleop\")) {\n\t\t\tlastState = \"teleop\";\n\t\t}\n\t\tstate = \"teleop\";\n\n\t\tif (lastState.equals(\"auton\")) {\n\t\t\tNetworkTables.getControlsTable().putBoolean(\"auton\", false);\n\t\t\t\n\t\t\t//Changes the control Mode back to PercentVbus\n\t\t\t//Should only run once - first interation of teleop\n\t\t\t//And ends auton if running\n\t\t\tif(autonomousCommand != null){\n\t\t\t\tautonomousCommand.cancel();\n\t\t\t}\n\t\t\tActuators.getLeftDriveMotor().changeControlMode(TalonControlMode.PercentVbus);\n\t\t\tActuators.getLeftDriveMotor().set(Constants.MOTOR_STOP);\n\t\t\tActuators.getRightDriveMotor().changeControlMode(TalonControlMode.PercentVbus);\n\t\t\tActuators.getRightDriveMotor().set(Constants.MOTOR_STOP);\n\t\t}\n\n//\t\tNetworkTables.putStream(Gamepad.primary.getX() || Gamepad.secondary.getX());\n\t\t/*\n\t\t * Primary Controllers Controls\n\t\t */\n\t\t// TODO: confirm right trigger forward, left trigger reverse\n\t\t// Drive controls\n\t\tDrive.drive(-Gamepad.primary.getLeftX(), Gamepad.primary.getTriggers()); \n\t\tDrive.shift(Gamepad.primary.getA(), Gamepad.primary.getY()); // shifting with A low gear and Y high gear\n\t\tDrive.shiftToggle(Gamepad.primary.getLB());\n\t\tDrive.crab(Gamepad.primary.getDPadLeft(), Gamepad.primary.getDPadRight());\n\t\t\n//\t\tif (Gamepad.primary.getDPadLeft()){\n//\t\t\tDrive.goingLeft = true;\n//\t\t\tDrive.crab();\t\t\n//\t\t}else if( Gamepad.primary.getDPadRight()){\n//\t\t\tDrive.goingLeft = false;\n//\t\t\tDrive.crab();\t\t\t\n//\t\t}else if (Drive.crabState > 0){\n//\t\t\tDrive.crab();\n//\t\t}\n\n\t\t\n\t\t// Climb controls\n\t\tClimb.climbStopPrimary(Gamepad.primary.getDPadUp()); // runs climbStop using left on the DPad - Primary\n\t\t// Climb.climbSafetyTogglePrimary(Gamepad.primary.getBack()); //toggles safety if pressed 3 times\n\n\t\t// Gear controls\n\t\tScore.dispenseGear(Gamepad.primary.getB() || Gamepad.secondary.getDPadUp());\n\n\t\t/*\n\t\t * Secondary Controllers Controls\n\t\t */\n\t\t// Intake controls\n\t\tIntake.intake(Gamepad.secondary.getRightButton()); // runs intake with clicking in the Right Joystick on second controller\n\t\tIntake.intakeSpeed(Gamepad.secondary.getRightY()); // Override Y Button\n\t\tIntake.intakeDirection(Gamepad.secondary.getRightX()); // Override Y Button\n\t\tIntake.intakeJam(Gamepad.secondary.getLB()); // Runs the unjamming procedure for a max of 3 seconds per press\n\t\t// Intake.intakeSafety(Gamepad.secondary.getStart()); //Have to press 3 times to toggle the safety\n\t\tIntake.intakeIn(Gamepad.secondary.getA(), Gamepad.secondary.getB(), Gamepad.secondary.getX()); // Toggles Intake running into the robot at full speed\n\t\tIntake.intakeRun(Gamepad.secondary.getRB()); // Runs all stuff for intake in(conveyor and intake motor)\n//\t\tIntake.intakeOut(Gamepad.secondary.getB());\n\t\t// Climb controls\n\t\tClimb.climbStopSecondary(Gamepad.secondary.getDPadRight()); // runs climbStop using left on the DPad - Secondary\n\t\tClimb.climbStartSecondary(Gamepad.secondary.getDPadLeft()); // runs climbStart using right on the DPad Secondary\n\t\tClimb.climbSafetyToggleSecondary(Gamepad.secondary.getBack()); // Have to press 3 times to toggle the safety\n\n\t\t// Gear controls\n\t\t// Score.gearLock(Gamepad.secondary.getStart(),\n\t\t// Gamepad.secondary.getBack());\n\n\t\t// Outtake Controls\n\t\t// Score.outtakeToggle(Gamepad.secondary.getLB());\n\n\t\t// Conveyor Controls\n\n\t\tScore.conveyor(Gamepad.secondary.getLeftButton()); // runs conveyor with clicking in the Left Joystick on second controller\n\t\tScore.conveyorSpeed(Gamepad.secondary.getLeftY());\n\t\tScore.conveyorDirection(Gamepad.secondary.getLeftX());\n\t\tScore.conveyorIn(Gamepad.secondary.getY());\n\n\t\t// Sweeper\n\t\t// Sweeper.sweeperMotion(Gamepad.secondary.getTriggers());\n\n\t\tDash.driveMode();\n\n\t\tSmartDashboard.putString(\"Controls Table\", NetworkTables.getControlsTable().getKeys().toString());\n\t\tSmartDashboard.putString(\"Stream\", NetworkTables.getControlsTable().getString(\"stream\", \"nothing\"));\n\n\t}", "public void target_component_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 13); }", "public void setOn(int on) {\r\n\t\tonkey = on;\r\n\t}", "public void x_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 3); }", "public static void set100(){\n driver.findElement(By.tagName(\"html\")).sendKeys(Keys.chord(Keys.CONTROL, \"0\"));\n }", "void setMotorsMode(DcMotor.RunMode runMode);", "public void y_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 5); }", "public void enableClient(){\r\n try{\r\n oos.writeObject(new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.ENABLECODE)));\r\n oos.flush();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }" ]
[ "0.6998588", "0.6074169", "0.6002169", "0.57392997", "0.5600483", "0.55435234", "0.5461933", "0.5421827", "0.53677654", "0.536693", "0.5360856", "0.5330018", "0.53279203", "0.5313283", "0.5309242", "0.52968526", "0.52851415", "0.5267524", "0.5256426", "0.5232235", "0.52109355", "0.521041", "0.5200014", "0.5182924", "0.5177975", "0.5172658", "0.5142602", "0.5128663", "0.5094494", "0.50907755", "0.50907755", "0.50741315", "0.50684416", "0.50369716", "0.5016185", "0.5012685", "0.50120705", "0.50060093", "0.50055635", "0.5003402", "0.4990364", "0.49850485", "0.49759927", "0.497527", "0.49738252", "0.49523634", "0.49449882", "0.4937258", "0.49169803", "0.49168295", "0.4914735", "0.49052536", "0.49020648", "0.4897325", "0.48953137", "0.48774776", "0.48772907", "0.48735043", "0.48733813", "0.4871115", "0.48663867", "0.48620656", "0.4849674", "0.48401546", "0.48396254", "0.48388886", "0.4838139", "0.48339036", "0.48307788", "0.48259", "0.4823809", "0.48120967", "0.48047107", "0.48032394", "0.47983292", "0.47972482", "0.47943163", "0.47919834", "0.478856", "0.4788546", "0.47878945", "0.47874895", "0.47795495", "0.47766057", "0.47745913", "0.47676972", "0.4766619", "0.47665232", "0.47641256", "0.47623032", "0.47602287", "0.47570172", "0.4755051", "0.47498578", "0.47481883", "0.4741166", "0.47403958", "0.47397977", "0.4734527", "0.47311002" ]
0.67703307
1
Set the Data Terminal Ready (DTR) control signal.
public void setDtr(boolean status) throws FTD2XXException { if (status) { ensureFTStatus(ftd2xx.FT_SetDtr(ftHandle)); } else { ensureFTStatus(ftd2xx.FT_ClrDtr(ftHandle)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegisterWriteControl() {\r\n // registers.setRegWrite();\r\n //this.registerWrite.setData(1);\r\n //registers.setRegWriteControl(this.registerWrite);\r\n }", "public void setReady() {\n\t\tthis.state = State.READY;\n\t}", "public void setReady() {\n\t\tlabelReady.setEnabled(true);\n\t\tlabelBusy.setEnabled(false);\n\t\tsetStatusBar(DO_MOVE_MSG);\n\t}", "public void setReady() {\n\t\tstate = State.READY;\n\t}", "private void makeTerminalReady() {\n if (currentMode != MODE_CONV) {\n doSetConversationalMode();\n }\n }", "public void writeRadioDACs() throws IOException\n {\n writeVirtualAddress(0xB8, 0x01);\n try\n {\n do\n {\n Thread.sleep(10L);\n } \n while (readVirtualAddress(0xB9) == 1);\n }\n catch (InterruptedException intx)\n {\n // Do nothing\n }\n }", "public void run() {\n\t\tserialPort = new SerialPort(\"COM6\"); \r\n try {\r\n serialPort.openPort();//Open port\r\n serialPort.setParams(9600, 8, 1, 0);//Set params\r\n int mask = SerialPort.MASK_RXCHAR + SerialPort.MASK_CTS + SerialPort.MASK_DSR;//Prepare mask\r\n serialPort.setEventsMask(mask);//Set mask\r\n serialPort.addEventListener(new SerialPortReader());//Add SerialPortEventListener\r\n serialPort.writeBytes(readRequest());\r\n }\r\n catch (SerialPortException ex) {\r\n System.out.println(ex);\r\n }\r\n\r\n\t\t\r\n\t}", "public synchronized void setReady(String ip, boolean rdy){\n\t\tready.put(ip, rdy);\n\t\tsetChanged();\n\t\tnotifyAll();\n\t}", "public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setup() {\r\n\r\n //Serial.begin(115200);\r\n\r\n // start with standard serial & rate\r\n mrlComm.begin(Serial);\r\n }", "public void onWrite(int value) {\n \t\t\tboolean newLatch = (value & 1) != 0;\n \t\t\tif (newLatch != joyLatch) {\n \t\t\t\tcurButton = 0;\n \t\t\t}\n \t\t\tjoyLatch = newLatch;\n \t\t}", "public synchronized void serialEvent(SerialPortEvent oEvent) {\n\t\tif (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n\t\t\ttry {\n\t\t\t\tinputLine=input.readLine();\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t\tthis.sendSignal();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//System.err.println(e.toString());\n\t\t\t}\n\t\t}\n\t\t// Ignore all the other eventTypes, but you should consider the other ones.\n\t}", "public static void setRd(byte rd) {\n MEMWBRegister.rd = rd;\n }", "public void setCargoIntakeState() {\n blueLED.set(false);\n greenLED.set(false);\n if (!redLED.get() && timer.get() >= pulseTime) {\n redLED.startPulse();\n timer.stop();\n timer.reset();\n }\n else if (redLED.get() && timer.get() > pulseTime) {\n redLED.set(false);\n }\n else {\n timer.start();\n }\n }", "public static void lcd_WriteCMD(int data) {\n lcd_RawWrite(data & 0xF0);\n lcd_RawWrite((data <<4 ) & 0xF0);\n }", "void enablePWM(double initialDutyCycle);", "public void setReady() {\n this.isReady = true;\n }", "public static void setup() {\n Serial.begin(57600);\n while (!Serial.isOpen()) {\n ; // wait for serial port to connect. Needed for Leonardo only\n }\n Serial.println(\"Please start typing:\");\n }", "public void setRMTIndicator(Record inputRecord);", "@Override\n\t\tpublic void serialEvent(SerialPortEvent evt) {\n\t\t\ttry {\n\t\t\t\tswitch (evt.getEventType()) {\n\t\t\t\tcase SerialPortEvent.DATA_AVAILABLE:\n\t\t\t\t\tif (input == null) {\n\t\t\t\t\t\tinput = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\t\t\tserialPort.getInputStream()));\n\t\t\t\t\t}\n\t\t\t\t\tString inputLine = input.readLine();\n\t\t\t\t\tSystem.out.println(inputLine);\n\t\t\t\t\tserialReturn = inputLine;\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} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t}\n\n\t\t}", "protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}", "public void CondSignal(){\n trainCond.signal();\r\n }", "private void mStateSet(cKonst.eSerial nNewState) {\n if (nState_Serial!=nNewState) {\n switch (nNewState) {\n case kBT_Disconnected:\n mMsgDebug(sRemoteDeviceName + \" Disconnected 1\");\n break;\n }\n bDoRedraw = true; //Something has changed redraw controls\n }\n nState_Serial=nNewState;\n }", "public void setCargoIntookState() {\n redLED.set(true);\n greenLED.set(false);\n blueLED.set(false);\n }", "public void setSignal(double signal) {_signal = signal;}", "private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}", "public void enableTXNotification()\n { \n \t/*\n \tif (mBluetoothGatt == null) {\n \t\tshowMessage(\"mBluetoothGatt null\" + mBluetoothGatt);\n \t\tbroadcastUpdate(DEVICE_DOES_NOT_SUPPORT_UART);\n \t\treturn;\n \t}\n \t\t*/\n \tBluetoothGattService RxService = mBluetoothGatt.getService(RX_SERVICE_UUID);\n \tif (RxService == null) {\n showMessage(\"Rx service not found!\");\n broadcastUpdate(DEVICE_DOES_NOT_SUPPORT_UART);\n return;\n }\n \tBluetoothGattCharacteristic TxChar = RxService.getCharacteristic(TX_CHAR_UUID);\n if (TxChar == null) {\n showMessage(\"Tx charateristic not found!\");\n broadcastUpdate(DEVICE_DOES_NOT_SUPPORT_UART);\n return;\n }\n mBluetoothGatt.setCharacteristicNotification(TxChar,true);\n \n BluetoothGattDescriptor descriptor = TxChar.getDescriptor(CCCD);\n descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);\n mBluetoothGatt.writeDescriptor(descriptor);\n \t\n }", "public void toggleSignal() {\n if (green) {\n green = false;\n } else {\n green = true;\n }\n }", "public void setSelPort(int d, int index) {\n \tsetSelPort(d, index, true);\n }", "protected final void setReady(boolean ready) {\n if (this.ready != ready) {\n this.ready = ready;\n notifyReadyStateChanged();\n }\n }", "@Override\n public void onNotifySuccess() {\n Log.i(\"SleepDoc\", \"notify SYNC_CONTROL Success\");\n bleManager.write(bleDevice, ServiceUUID.SYNC.toString(), CharacteristicUUID.SYNC_CONTROL.toString(), new byte[]{Command.SYNC_CONTROL_START}, logWriteCallback);\n }", "private void setNextReady(boolean fReady)\n {\n __m_NextReady = fReady;\n }", "public static void setDataConnected(boolean d)\n {\n dataconnected = d;\n }", "public void setPortDOutRegisters(byte p1, byte p2){\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[3];\r\n cmd.bytes[0]=CMD_SET_PORT_DOUT;\r\n cmd.bytes[1]=(byte)(0x0f&p1);\r\n cmd.bytes[2]=(byte)(0xff&p2);\r\n submitCommand(cmd);\r\n\r\n }", "public void setup() {\n try {\n serialPort = (SerialPort) comport.open(\"SimpleReadApp\", 2000);\n serialPort.addEventListener(this);\n serialPort.notifyOnDataAvailable(true);\n serialPort.setSerialPortParams(115200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);\n \n serialPort.notifyOnOutputEmpty(false); // true\n\n //serialPort.enableReceiveTimeout(1);\n\n outputStream = serialPort.getOutputStream();\n inputStream = serialPort.getInputStream();\n } catch (Exception e) {\n \n }\n }", "public void serialEvent(SerialPortEvent event) {\n String finalString = \"\";\n\n if(event.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n sleep(100);\n try {\n byte[] readBuffer = new byte[40];\n while(inputStream.available() > 0) {\n inputStream.read(readBuffer);\n }\n finalString = new String(readBuffer).trim();\n\n if(isSetupCompleted && finalString.equals(\"z\") && !isConnected) {\n isConnected = true;\n out(\"[\" + comport.getName() + \"] found BT Zeppelin!\");\n write(\"p\", false);\n owner.onZeppelinFound(this);\n } else if(finalString.equals(\"p\")) {\n write(\"p\", false);\n out(\"[\" + comport.getName() + \"] responding to ping.\");\n\n // Take note of the last received ping, the GUI will update\n owner.setLastPing(System.currentTimeMillis());\n } else {\n out(\"[\" + comport.getName() + \"] read: '\" + finalString + \"'\");\n }\n } catch (IOException e) {\n \n }\n }\n }", "@Override\n public void run() {\n transmit_set();\n }", "@Override\n\t\tpublic void loop() throws ConnectionLostException, InterruptedException {\n\t\t\ttry {\n\t\t\t\tif (ExitApp == true) {\n\t\t\t\t\tPStatus.write(false);\n\t\t\t\t\tEN_LE.write(false);\n\t\t\t\t\tExitApp = false;\n\t\t\t\t\tDisplayLabel(\"LATCH ON\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPStatus.write(true);\n\n\t\t\t\t// Set device enable\n\t\t\t\tEN_Device1.write(cmdDevice1.isChecked());\n\t\t\t\tEN_Device2.write(cmdDevice2.isChecked());\n\t\t\t\tEN_Device3.write(cmdDevice3.isChecked());\n\t\t\t\tEN_Device4.write(cmdDevice4.isChecked());\n\t\t\t\tEN_Device5.write(cmdDevice5.isChecked());\n\n\t\t\t\tif (cmdDevice1.isChecked())\n\t\t\t\t\tDisplayLabel(\"Btn1_Click\");\n\t\t\t\t// Get Amp\n\n\t\t\t\t// Get Watt\n\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// PStatus.write(false);\n\t\t\t\t// EN_LE.write(false);\n\t\t\t\tioio_.disconnect();\n\t\t\t} catch (ConnectionLostException ex) {\n\t\t\t\t// PStatus.write(false);\n\t\t\t\t// EN_LE.write(false);\n\t\t\t\tioio_.disconnect();\n\t\t\t}\n\t\t}", "public void setPeripheralEventListener(PeripheralHardwareDriverInterface l);", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tbilliardDOS.writeBoolean(start);\n\t\t\t\tbilliardDOS.writeBoolean(end);\n\t\t\t\tbilliardDOS.writeBoolean(reset);\n\t\t\t\tbilliardDOS.flush();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "public final void setSerial(String serial){\n this.peripheralSerial = serial;\n }", "public void setSerialPort(java.lang.CharSequence value) {\n this.serialPort = value;\n }", "public void setCargoOuttakeState() {\n greenLED.set(true);\n redLED.set(false);\n blueLED.set(false);\n }", "public void setReady(boolean ready) {\r\n\t\tthis.ready = ready;\r\n\t}", "public void send0(){\n digitalWrite(data0, LOW);\n delayMicroseconds(34);\n digitalWrite(data0, HIGH);\n}", "private void setNotifyNextSensor(BluetoothGatt gatt) {\n BluetoothGattCharacteristic characteristic;\n switch (mState) {\n case 0:\n Log.d(TAG, \"Set notify pressure cal\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_CAL_CHAR);\n break;\n case 1:\n Log.d(TAG, \"Set notify pressure\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_DATA_CHAR);\n break;\n case 2:\n Log.d(TAG, \"Set notify humidity\");\n characteristic = gatt.getService(HUMIDITY_SERVICE)\n .getCharacteristic(HUMIDITY_DATA_CHAR);\n break;\n default:\n mHandler.sendEmptyMessage(MSG_DISMISS);\n Log.i(TAG, \"All Sensors Enabled\");\n return;\n }\n\n //Enable local notifications\n gatt.setCharacteristicNotification(characteristic, true);\n //Enabled remote notifications\n BluetoothGattDescriptor desc = characteristic.getDescriptor(CONFIG_DESCRIPTOR);\n desc.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);\n gatt.writeDescriptor(desc);\n }", "@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }", "@Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);", "void setShutterLEDState(boolean on);", "private static void writeByte(boolean rs, int data) {\n int highData = ((data >>> NIBBLE_SIZE) & NIBBLE_MASK); //Parte Alta do data\n int lowData = (data & NIBBLE_MASK); //Parte Baixa do data\n writeNibble(rs,highData);\n writeNibble(rs,lowData);\n Time.sleep(WRITEBYTE_SLEEP_TIME);\n }", "public void setIOPortByte(int portAddress, byte data)\n {\n// \tSystem.out.println(\"setIOPortByte : \"+ portAddress +\" : \"+ data);\n// \tSystem.out.printf(\"setIOPortByte : %x : %x\\n\", portAddress, data);\n boolean needUpdate = false; // Determine if a screen refresh is needed \n\n // Check if correct ports are addressed while in monochrome / colour mode; if not, ignore OUT\n if ((videocard.miscOutputRegister.ioAddressSelect != 0) && (portAddress >= 0x3B0) && (portAddress <= 0x03BF))\n return;\n if ((videocard.miscOutputRegister.ioAddressSelect == 0) && (portAddress >= 0x03D0) && (portAddress <= 0x03DF))\n return;\n\n switch (portAddress)\n {\n case 0x3BA: // Ext. reg: Feature Control Register (Monochrome)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3BA (Feature Control Register, monochrome): reserved\");\n break;\n\n case 0x3C0: // Attribute controller: Address register\n // Determine whether in address/data mode\n if (videocard.attributeController.dataAddressFlipFlop)\n {\n // Data mode\n switch (videocard.attributeController.index)\n {\n case 0x00: // Internal Palette Index\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n if (data != videocard.attributeController.paletteRegister[videocard.attributeController.index])\n {\n videocard.attributeController.paletteRegister[videocard.attributeController.index] = data;\n needUpdate = true;\n }\n break;\n \n case 0x10: // Mode control register\n // Store previous values for check\n byte oldLineGraphics = videocard.attributeController.modeControlReg.lineGraphicsEnable;\n byte oldPaletteBitsSelect = videocard.attributeController.modeControlReg.paletteBitsSelect;\n \n videocard.attributeController.modeControlReg.graphicsEnable = (byte) ((data >> 0) & 0x01);\n videocard.attributeController.modeControlReg.monoColourEmu = (byte) ((data >> 1) & 0x01);\n videocard.attributeController.modeControlReg.lineGraphicsEnable = (byte) ((data >> 2) & 0x01);\n videocard.attributeController.modeControlReg.blinkIntensity = (byte) ((data >> 3) & 0x01);\n videocard.attributeController.modeControlReg.pixelPanningMode = (byte) ((data >> 5) & 0x01);\n videocard.attributeController.modeControlReg.colour8Bit = (byte) ((data >> 6) & 0x01);\n videocard.attributeController.modeControlReg.paletteBitsSelect = (byte) ((data >> 7) & 0x01);\n \n // Check if updates are necessary\n if (videocard.attributeController.modeControlReg.lineGraphicsEnable != oldLineGraphics)\n {\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n if (videocard.attributeController.modeControlReg.paletteBitsSelect != oldPaletteBitsSelect)\n {\n needUpdate = true;\n }\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Mode control: \" + data);\n break;\n \n case 0x11: // Overscan Colour Register\n videocard.attributeController.overscanColour = (byte) (data & 0x3f);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Overscan colour = \" + data);\n break;\n \n case 0x12: // Colour Plane Enable Register\n videocard.attributeController.colourPlaneEnable = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour plane enable = \" + data);\n break;\n \n case 0x13: // Horizontal Pixel Panning Register\n videocard.attributeController.horizPixelPanning = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Horiz. pixel panning = \" + data);\n break;\n \n case 0x14: // Colour Select Register\n videocard.attributeController.colourSelect = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour select = \" + videocard.attributeController.colourSelect);\n break;\n \n default:\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Data mode (unknown register) \" + videocard.attributeController.index);\n } \n \n \n }\n else\n {\n // Address mode\n int oldPaletteAddressSource = videocard.attributeController.paletteAddressSource;\n\n videocard.attributeController.paletteAddressSource = (byte) ((data >> 5) & 0x01);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: address mode = \" + videocard.attributeController.paletteAddressSource);\n\n if (videocard.attributeController.paletteAddressSource == 0)\n screen.clearScreen();\n else if (!(oldPaletteAddressSource != 0))\n {\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"found enable transition\");\n needUpdate = true;\n }\n \n data &= 0x1F; // Attribute Address bits\n \n videocard.attributeController.index = data;\n switch (data)\n {\n case 0x00:\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n break;\n\n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Address mode reg = \" + data);\n }\n }\n \n // Flip the flip-flop\n videocard.attributeController.dataAddressFlipFlop = !videocard.attributeController.dataAddressFlipFlop;\n break;\n\n case 0x3C2: // Miscellaneous Output Register\n videocard.miscOutputRegister.ioAddressSelect = (byte) ((data >> 0) & 0x01);\n videocard.miscOutputRegister.ramEnable = (byte) ((data >> 1) & 0x01);\n videocard.miscOutputRegister.clockSelect = (byte) ((data >> 2) & 0x03);\n videocard.miscOutputRegister.lowHighPage = (byte) ((data >> 5) & 0x01);\n videocard.miscOutputRegister.horizontalSyncPol = (byte) ((data >> 6) & 0x01);\n videocard.miscOutputRegister.verticalSyncPol = (byte) ((data >> 7) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C2:\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O Address select = \" + videocard.miscOutputRegister.ioAddressSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Ram Enable = \" + videocard.miscOutputRegister.ramEnable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Clock Select = \" + videocard.miscOutputRegister.clockSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Low/High Page = \" + videocard.miscOutputRegister.lowHighPage);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Horiz Sync Polarity = \" + videocard.miscOutputRegister.horizontalSyncPol);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Vert Sync Polarity = \" + videocard.miscOutputRegister.verticalSyncPol);\n break;\n\n case 0x3C3: // Video Subsystem Enable; currently only uses bit 0 to check if enabled/disabled\n videocard.vgaEnabled = (data & 0x01) == 1 ? true : false;\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" set I/O port 0x3C3: VGA Enabled = \" + videocard.vgaEnabled);\n break;\n\n case 0x3C4: // Sequencer Index Register\n if (data > 4)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C4: index > 4\");\n }\n videocard.sequencer.index = data;\n break;\n\n case 0x3C5: // Sequencer Data Registers\n // Determine register to write to\n switch (videocard.sequencer.index)\n {\n case 0: // Reset register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write 0x3C5: Sequencer reset: \" + data);\n if ((videocard.sequencer.aSynchReset != 0) && ((data & 0x01) == 0))\n {\n videocard.sequencer.characterMapSelect = 0;\n videocard.sequencer.charMapAddress = 0;\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n videocard.sequencer.aSynchReset = (byte) ((data >> 0) & 0x01);\n videocard.sequencer.synchReset = (byte) ((data >> 1) & 0x01);\n break;\n \n case 1: // Clocking mode register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5 (clocking mode): \" + data);\n videocard.sequencer.clockingMode = (byte) (data & 0x3D);\n videocard.sequencer.dotClockRate = ((data & 0x08) > 0) ? (byte) 1 : 0;\n break;\n \n case 2: // Map Mask register\n videocard.sequencer.mapMask = (byte) (data & 0x0F);\n for (int i = 0; i < 4; i++)\n videocard.sequencer.mapMaskArray[i] = (byte) ((data >> i) & 0x01);\n break;\n \n case 3: // Character Map select register\n videocard.sequencer.characterMapSelect = (byte) (data & 0x3F);\n \n byte charSetA = (byte) (data & 0x13); // Text mode font used when attribute byte bit 3 == 1\n if (charSetA > 3)\n charSetA = (byte) ((charSetA & 3) + 4);\n \n byte charSetB = (byte) ((data & 0x2C) >> 2); // Text mode font used when attribute byte bit 3 == 0\n if (charSetB > 3)\n charSetB = (byte) ((charSetB & 3) + 4);\n \n // Select font from font table\n // FIXME: Ensure this check is correct\n if (videocard.crtControllerRegister.regArray[0x09] != 0)\n {\n videocard.sequencer.charMapAddress = SequencerRegister.charMapOffset[charSetA];\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n \n // Different fonts not supported at this time\n if (charSetB != charSetA)\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"Character map select: map #2 in block \" + charSetB + \" unused\");\n break;\n \n case 4: // Memory Mode register\n videocard.sequencer.extendedMemory = (byte) ((data >> 1) & 0x01);\n videocard.sequencer.oddEvenDisable = (byte) ((data >> 2) & 0x01);\n videocard.sequencer.chainFourEnable = (byte) ((data >> 3) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C5 (memory mode):\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Extended Memory = \" + videocard.sequencer.extendedMemory);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even disable = \" + videocard.sequencer.oddEvenDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Chain 4 enable = \" + videocard.sequencer.chainFourEnable);\n break;\n \n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5: index \" + videocard.sequencer.index + \" unhandled\");\n }\n break;\n\n case 0x3C6: // Pixel mask\n videocard.colourRegister.pixelMask = data;\n if (videocard.colourRegister.pixelMask != (byte) 0xFF)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C6: Pixel mask= \" + data + \" != 0xFF\");\n break;\n\n case 0x3C7: // DAC Address Read Mode register\n videocard.colourRegister.dacReadAddress = data;\n videocard.colourRegister.dacReadCounter = 0;\n videocard.colourRegister.dacState = 0x03;\n break;\n\n case 0x3C8: // DAC Address Write Mode register\n videocard.colourRegister.dacWriteAddress = data;\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacState = 0x00;\n break;\n\n case 0x3C9: // DAC Data Register\n // Determine sub-colour to be written \n switch (videocard.colourRegister.dacWriteCounter)\n {\n case 0:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red = data;\n break;\n case 1:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green = data;\n break;\n case 2:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)] .blue = data;\n\n needUpdate |= screen.setPaletteColour(videocard.colourRegister.dacWriteAddress, (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].blue) << 2);\n break;\n }\n\n videocard.colourRegister.dacWriteCounter++;\n\n // Reset counter when 3 values are written and automatically update the address\n if (videocard.colourRegister.dacWriteCounter >= 3)\n {\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacWriteAddress++;\n }\n break;\n\n case 0x3CA: // Feature Control Register\n // Read only (write at 0x3BA mono, 0x3DA colour)\n break;\n\n case 0x3CC: // Miscellaneous Output Register\n // Read only (write at 0x3C2\n break;\n\n case 0x3CD: // Unknown\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write to unknown port 0x3CD = \" + data);\n break;\n\n case 0x3CE: // Graphics Controller Address Register\n // Only 9 register accessible\n if (data > 0x08)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" /O write port 0x3CE: index > 8\");\n videocard.graphicsController.index = data;\n break;\n\n case 0x3CF: // Graphics Controller Data Register\n switch (videocard.graphicsController.index)\n {\n case 0: // Set/Reset\n videocard.graphicsController.setReset = (byte) (data & 0x0F);\n break;\n \n case 1: // Enable Set/Reset\n videocard.graphicsController.enableSetReset = (byte) (data & 0x0F);\n break;\n \n case 2: // Colour Compare\n videocard.graphicsController.colourCompare = (byte) (data & 0x0F);\n break;\n \n case 3: // Data Rotate\n videocard.graphicsController.dataRotate = (byte) (data & 0x07);\n videocard.graphicsController.dataOperation = (byte) ((data >> 3) & 0x03);\n break;\n \n case 4: // Read Map Select\n videocard.graphicsController.readMapSelect = (byte) (data & 0x03);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (Read Map Select): \" + data);\n break;\n \n case 5: // Graphics Mode\n videocard.graphicsController.writeMode = (byte) (data & 0x03);\n videocard.graphicsController.readMode = (byte) ((data >> 3) & 0x01);\n videocard.graphicsController.hostOddEvenEnable = (byte) ((data >> 4) & 0x01);\n videocard.graphicsController.shift256Reg = (byte) ((data >> 5) & 0x03);\n\n if (videocard.graphicsController.hostOddEvenEnable != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n if (videocard.graphicsController.shift256Reg != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n break;\n \n case 6: // Miscellaneous\n // Store old values for check later\n byte oldAlphaNumDisable = videocard.graphicsController.alphaNumDisable;\n byte oldMemoryMapSelect = videocard.graphicsController.memoryMapSelect;\n\n videocard.graphicsController.alphaNumDisable = (byte) (data & 0x01);\n videocard.graphicsController.chainOddEvenEnable = (byte) ((data >> 1) & 0x01);\n videocard.graphicsController.memoryMapSelect = (byte) ((data >> 2) & 0x03);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF (Miscellaneous): \" + data);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Alpha Num Disable: \" + videocard.graphicsController.alphaNumDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Memory map select: \" + videocard.graphicsController.memoryMapSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even enable : \" + videocard.graphicsController.hostOddEvenEnable);\n \n\n if (oldMemoryMapSelect != videocard.graphicsController.memoryMapSelect)\n needUpdate = true;\n if (oldAlphaNumDisable != videocard.graphicsController.alphaNumDisable)\n {\n needUpdate = true;\n oldScreenHeight = 0;\n }\n break;\n \n case 7: // Colour Don't Care\n videocard.graphicsController.colourDontCare = (byte) (data & 0x0F);\n break;\n \n case 8: // Bit Mask\n videocard.graphicsController.bitMask = data;\n break;\n \n default:\n // Unknown index addressed\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF: index \" + videocard.graphicsController.index + \" unhandled\");\n }\n break;\n\n case 0x3B4: // CRT Controller Address Register (monochrome)\n case 0x3D4: // CRT Controller Address Register (colour)\n // Set index to be accessed in CRTC Data Register cycle\n videocard.crtControllerRegister.index = (byte) (data & 0x7F);\n if (videocard.crtControllerRegister.index > 0x18)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)4: invalid CRTC register \" + videocard.crtControllerRegister.index + \" selected\");\n break;\n\n case 0x3B5: // CRTC Data Register (monochrome)\n case 0x3D5: // CRTC Data Register (colour)\n if (videocard.crtControllerRegister.index > 0x18)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)5: invalid CRTC Register (\" + videocard.crtControllerRegister.index + \"); ignored\");\n return;\n }\n // Check if writing is allowed for registers 0x00 - 0x07\n if ((videocard.crtControllerRegister.protectEnable) && (videocard.crtControllerRegister.index < 0x08))\n {\n // Only write exception in protectEnable is lineCompare of Overflow register (0x07)\n if (videocard.crtControllerRegister.index == 0x07)\n {\n // Reset variables before ORing\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] &= ~0x10;\n videocard.lineCompare &= 0x2ff;\n \n // Bit 4 specifies lineCompare bit 8 \n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] |= (data & 0x10);\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n }\n else\n {\n return;\n }\n }\n if (data != videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index])\n {\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] = data;\n switch (videocard.crtControllerRegister.index)\n {\n case 0x07:\n // Overflow register; specifies bit 8, 9 for several fields\n \n // Reset variables before ORing\n videocard.verticalDisplayEnd &= 0xFF;\n videocard.lineCompare &= 0x2FF;\n\n // Bit 1 specifies verticalDisplayEnd bit 8 \n if ((videocard.crtControllerRegister.regArray[0x07] & 0x02) != 0)\n videocard.verticalDisplayEnd |= 0x100;\n // Bit 6 specifies verticalDisplayEnd bit 9\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x40) != 0)\n videocard.verticalDisplayEnd |= 0x200;\n // Bit 4 specifies lineCompare bit 8\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n \n case 0x08:\n // Preset row scan; bits 5-6 allow 15/31/35 pixel shift without change in start address, \n // bits 0-4 specify number of scanlines to scroll up (more precise than start address)\n needUpdate = true;\n break;\n \n case 0x09:\n // Maximum scan line; for text mode, value should be char. height - 1, \n // for graphic mode a non-zero value causes repeat of scanline by MSL+1 \n\n // Bit 7 sets scan doubling:\n // FIXME: Why is this ANDed with 0x9F if bit 7 is required?\n videocard.crtControllerRegister.scanDoubling = ((data & 0x9F) > 0) ? (byte) 1 : 0;\n\n // Reset variables before ORing\n videocard.lineCompare &= 0x1FF;\n\n // Bit 6 specifies bit 9 of line_compare\n if ((videocard.crtControllerRegister.regArray[0x09] & 0x40) != 0)\n videocard.lineCompare |= 0x200;\n needUpdate = true;\n break;\n \n case 0x0A:\n case 0x0B:\n case 0x0E:\n case 0x0F:\n // Cursor start & end / cursor location; specifies the scanlines \n // at which the cursor should start and end, and the location of the cursor\n videocard.vgaMemReqUpdate = true;\n break;\n \n case 0x0C:\n case 0x0D:\n // Start address; specifies the display memory address of the upper left pixel/character\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n needUpdate = true;\n }\n else\n {\n videocard.vgaMemReqUpdate = true;\n }\n break;\n \n case 0x11:\n // Change vertical retrace end\n videocard.crtControllerRegister.protectEnable = ((videocard.crtControllerRegister.regArray[0x11] & 0x80) > 0) ? true : false;\n break;\n \n case 0x12:\n // Change vertical display end\n videocard.verticalDisplayEnd &= 0x300;\n videocard.verticalDisplayEnd |= (((int) videocard.crtControllerRegister.regArray[0x12]) & 0xFF);\n break;\n \n case 0x13:\n case 0x14:\n case 0x17:\n // Line offset; specifies address difference between consecutive scanlines/character lines \n videocard.lineOffset = videocard.crtControllerRegister.regArray[0x13] << 1;\n if ((videocard.crtControllerRegister.regArray[0x14] & 0x40) != 0)\n {\n videocard.lineOffset <<= 2;\n }\n else if ((videocard.crtControllerRegister.regArray[0x17] & 0x40) == 0)\n {\n videocard.lineOffset <<= 1;\n }\n needUpdate = true;\n break;\n\n case 0x18:\n // Line compare; indicates scan line where horiz. division can occur. No division when set to 0x3FF\n videocard.lineCompare &= 0x300;\n videocard.lineCompare |= (((short) videocard.crtControllerRegister.regArray[0x18]) & 0xFF); // Cast from byte to short\n needUpdate = true;\n break;\n }\n\n }\n break;\n\n case 0x3Da: // Feature Control (colour)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3DA (Feature Control Register, colour): reserved\");\n break;\n\n case 0x03C1: // Attribute Data Read Register\n // Read only\n break;\n \n default:\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" unsupported I/O write to port \" + portAddress + \", data =\" + data);\n\n }\n\n if (needUpdate)\n {\n // Mark all video as updated so the changes will go through\n setAreaForUpdate(0, 0, oldScreenWidth, oldScreenHeight);\n }\n return;\n }", "public void setDMBTR(java.lang.String DMBTR) {\n this.DMBTR = DMBTR;\n }", "public void statusRegisterUpdated()\n {\n Word newStatus = memory.read( Memory.OS_DDSR );\n\n // Check if this change entails the clearing of the Ready bit\n if( ( currentStatus.getValue() & DISK_READY_BIT ) != 0 )\n {\n if( (newStatus.getValue() & DISK_READY_BIT ) == 0 )\n {\n // We should initiate a new operation\n Word commandRegister = memory.read( Memory.OS_DDCR );\n Word blockRegister = memory.read( Memory.OS_DDBR );\n Word memoryRegister = memory.read( Memory.OS_DDMR );\n\n switch( commandRegister.getValue() )\n {\n case READ_COMMAND:\n handleReadDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n\n case WRITE_COMMAND:\n handleWriteDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n }\n\n // Now we just need to set the ready bit\n currentStatus = new Word( newStatus.getValue() | DISK_READY_BIT );\n memory.write( Memory.OS_DDSR, currentStatus.getValue() );\n\n }\n }\n }", "private static void writeCMD(int data) {\n writeByte(false,data);\n }", "@Override\n public void onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status) {\n advance();\n enableNextSensor(gatt);\n }", "public void setBusy() {\n\t\tlabelReady.setEnabled(false);\n\t\tlabelBusy.setEnabled(true);\n\t\tsetStatusBar(WAIT_MOVE_MSG);\n\t}", "public void servoOn() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(svonChannel, 1, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to turn servos on\", e);\n \t\t}\n \t}", "public void setTermBegan(Term t) {\r\n termBegan = t;\r\n }", "public final synchronized void signalDataAvailable() {\n\n\t\t//\tNotify any waiting threads that the file data ia available\n\t\t\t\n\t\tnotifyAll();\n\t}", "public void setSwitchOn() throws UnavailableDeviceException, ClosedDeviceException, IOException{\n\t\tswitch1.setValue(false);\n\t\tthis.switchState = true; \n\t}", "public synchronized void set() {\n this.currentState = EventState.UP;\n notify();\n }", "public void on() {\n // Sets the LED pin state to 1 (high)\n ledPin.high();\n }", "@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}", "public void setByte(int offset, byte data)\n {\n writeMode(offset + 0xA0000, data);\n }", "public void upGpio() {\n SerialPortManager.getInstance().openSerialPortPrinter();\n }", "public void setReady() {\n\t\tfadein = fadeout = false;\n\t\tfadeValue = 1;\n\t\tloadingDone();\n\t}", "public void writeLedCharacteristic(boolean value) {\n byte[] byteVal = new byte[1];\n if (value) {\n byteVal[0] = (byte) (1);\n } else {\n byteVal[0] = (byte) (0);\n }\n Log.i(TAG, \"LED \" + value);\n mLedCharacteristic.setValue(byteVal);\n BLEService.genericWriteCharacteristic(mLedCharacteristic);\n }", "public void setDataSwitchEnable(boolean bEnable){\n mDataSwitch = bEnable;\n }", "public void readSerial() {\r\n rightShoe.getSerialReader().stopRead();\r\n leftShoe.getSerialReader().stopRead();\r\n rightShoe.getSerialReader().closePort();\r\n leftShoe.getSerialReader().closePort();\r\n timeController.initializeSerial();\r\n }", "public void send1(){\n digitalWrite(data1, LOW);\n delayMicroseconds(34);\n digitalWrite(data1, HIGH);\n}", "public void onClick_setup(View v) {\n byte[] cmd_bytes = new byte[8];\n cmd_bytes[0] = 0x3C;\n cmd_bytes[1] = 0x53;\n cmd_bytes[2] = 0x30;\n cmd_bytes[3] = 0x00;\n cmd_bytes[4] = 0x00;\n cmd_bytes[5] = 0x00;\n cmd_bytes[6] = 0x00;\n cmd_bytes[7] = 0x3E;\n mBluetoothLeService.writeCharacteristic(getWriteGattCharacteristic(), cmd_bytes);\n }", "public void SetInputPolarity(byte values) throws IOException {\n mDevice.writeRegByte( IPOL, values );\n }", "private final void m95902d() {\n RxBus.m86979a().mo84367a(new SettingEvent(true));\n m95903e();\n }", "public static void lcd_WriteChar ( int data) {\n lcd_RawWrite( Rs | (data & 0xF0));\n lcd_RawWrite( Rs | ((data <<4 ) & 0xF0));\n }", "@Override\n public int getRedwireSignal(int dir) {\n return getSignal();\n }", "public int setData(byte[] data) {\n\t\tallocateBufferSignal(); //reset signal output buffer\n\t\t\n\t\tclearData();\n\n\t\treturn appendData(data);\n\t}", "private void rightServoButtonKeyPressed(java.awt.event.KeyEvent evt) { \n this.rServoWarn.setEnabled(true);\n if(!this.rightServo){\n this.controller.setRightServo(true);\n this.rightServo = true;\n }\n }", "public void markReady() {\n\t\tsetState(State.READY);\n\t\tthis.statusCode = StatusCode.Success.code;\n\t}", "public void writeData(byte[] data){\n if (mWriteCharacteristic!=null &&data!=null){\n mWriteCharacteristic.setValue(data[0],BluetoothGattCharacteristic.FORMAT_UINT8,0);\n mWriteCharacteristic.setValue(data);\n bluetoothGatt.writeCharacteristic(mWriteCharacteristic);\n }\n }", "public void dataControl() {\n\t\tString name = \"\", xCor = \"\", yCor = \"\";\n\t\tname = _nameTf.getText().toString();\n\t\txCor = _xTf.getText().toString();\n\t\tyCor = _yTf.getText().toString();\n\n\t\t_missionTa.append(getCurrentTimeStamp() + \"\\n\");\n\n\t\tif (checkV(name, xCor, yCor)) {\n\t\t\tsendData(name, xCor, yCor);\n\t\t}\n\n\t\tclearText();\n\t}", "public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);", "private void enableNextSensor(BluetoothGatt gatt) {\n BluetoothGattCharacteristic characteristic;\n switch (mState) {\n case 0:\n Log.d(TAG, \"Enabling pressure cal\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_CONFIG_CHAR);\n characteristic.setValue(new byte[] {0x02});\n break;\n case 1:\n Log.d(TAG, \"Enabling pressure\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_CONFIG_CHAR);\n characteristic.setValue(new byte[] {0x01});\n break;\n case 2:\n Log.d(TAG, \"Enabling humidity\");\n characteristic = gatt.getService(HUMIDITY_SERVICE)\n .getCharacteristic(HUMIDITY_CONFIG_CHAR);\n characteristic.setValue(new byte[] {0x01});\n break;\n default:\n mHandler.sendEmptyMessage(MSG_DISMISS);\n Log.i(TAG, \"All Sensors Enabled\");\n return;\n }\n\n gatt.writeCharacteristic(characteristic);\n }", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }", "public void setStable() {\n this.unstable = false;\n this.unstableTimeline.stop();\n this.statusLed.setFastBlink(false);\n if (this.shutdownButton.isSelected() == true) {\n this.statusLed.setStatus(\"off\");\n } else if (this.offlineButton.isSelected() == true) {\n this.statusLed.setStatus(\"warning\");\n } else {\n this.statusLed.setStatus(\"ok\");\n } \n }", "native int _writeSerialPort(int port, byte data[]);", "@Override\n public void run() {\n if (!dati) {\n mGatt.disconnect();\n }\n }", "public void start() {\n rfMotor.setPower(1);\n rrMotor.setPower(1);\n lfMotor.setPower(1);\n lrMotor.setPower(1);\n }", "public void setArmTalon(double outputval) {\n\t\tarmMotor.set(outputval);\n\t}", "public void led(int x, int y, int value) {\n\t\ttry {\n\t\t\toutput.write((value == 1 ? 3 : 4) | 0x80);\n\t\t\toutput.write(((x << 4) | y) & 0xff);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t}", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void start() {\n runtime.reset();\n leftWheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightWheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }", "public synchronized void signalStep() {\n s = true;\n notifyAll();\n }", "public void operatorControl() {\n myRobot.setSafetyEnabled(true);\n while (isOperatorControl() && isEnabled()) {\n \tmyRobot.tankDrive(controller, 2, controller, 5);\n Timer.delay(0.005);\t\t// wait for a motor update time\n }\n }", "public RemoteControlTest() {\n // reset to initial state\n reset();\n // display \"ready\"\n TextLCD.print(READY);\t\t\n }", "public void setReady(final boolean isReady)\r\n {\r\n _isReady = isReady;\r\n }", "public void setCarry() {\n\t\tset((byte) (get() | (1 << 4)));\n\t}", "public void serialEvent(SerialPortEvent e)\n {\n System.out.println(\"+++SERIAL EVENT TYPE ++++++++++++++++ : \"+e.getEventType());\n ezlink.info(\"serialEvent() received in \" + SerialConnection.class.getName());\n \t// Create a StringBuffer and int to receive input data.\n\tStringBuffer inputBuffer = new StringBuffer();\n\tint newData = 0;\n\n\t// Determine type of event.\n\tswitch (e.getEventType())\n\t{\n\n\t // Read data until -1 is returned. If \\r is received substitute\n\t // \\n for correct newline handling.\n\t case SerialPortEvent.DATA_AVAILABLE:\n\t byte[] readBuffer = new byte[500];\n\t\tint numBytes = 0;\n\t\tinputdata = null;\n\n\t\ttry {\n\t\t\t\tSystem.out.println(\"Data Received from com Port=\"+is.available());\n ezlink.info(\"Data Received from com Port= \" +is.available() );\n\n\t\t\t\twhile (is.available() > 0)\n\t\t\t\t{\n\t\t\t\t\tnumBytes = is.read(readBuffer);\n\t\t\t\t\tdataHandler.addISOPart(ISOUtil.hexString(readBuffer,0,numBytes));\n\n\t\t\t\t}\n\n\n\t\t\t\tString strResponse=null;\n\t\t\t\tif((strResponse = dataHandler.getNextISO(1)) !=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Response=\"+strResponse);\n ezlink.info(\"Response= : \" +strResponse );\n\t\t\t\t\tinputdata = strResponse;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Full data not received from terminal\");\n ezlink.info(\"ull data not received from terminal!! \" );\n\t\t\t\t}\n\n\t\t\t\tdataRec =true;\n\n\t\t} catch (IOException exp) {\n System.out.println(\"serialEvent Exception(): \");\n exp.printStackTrace();\n System.out.println(\"serialEvent Exception(): \");\n ezlink.info(\"serialEvent Exception(): \");\n ezlink.error(new Object(), exp);\n }\n\n\t\tbreak;\n\n\t // If break event append BREAK RECEIVED message.\n\t case SerialPortEvent.BI:\n\t\tSystem.out.println(\"\\n--- BREAK RECEIVED ---\\n\");\n ezlink.info(\"\\n--- BREAK RECEIVED ---\\n \" );\n\t}\n\n }", "public boolean getDmaDREQ();", "public SerialTerminal(boolean standalone) {\n initComponents();\n\n stop = true;\n streamReaderRunning = false;\n\n if(standalone) {\n this.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent winEvt) {\n System.exit(-1);\n }\n });\n } else {\n javax.swing.KeyStroke escapeKeyStroke = javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0, false);\n javax.swing.Action escapeAction = new javax.swing.AbstractAction() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n if(btnClose.isEnabled())\n btnCloseActionPerformed(null);\n\n setVisible(false);\n }\n };\n\n getRootPane().getInputMap(javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW).put(escapeKeyStroke, \"ESCAPE\");\n getRootPane().getActionMap().put(\"ESCAPE\", escapeAction);\n\n this.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent winEvt) {\n if(btnClose.isEnabled())\n btnCloseActionPerformed(null);\n setVisible(false);\n }\n });\n }\n\n historyBuffer = new ArrayList<String>();\n historyBufferIterator = 0;\n\n cmbBaud.removeAllItems();\n cmbBaud.addItem(9600);\n cmbBaud.addItem(57600);\n cmbBaud.addItem(115200);\n cmbBaud.setSelectedIndex(1);\n\n serialSupport = false;\n try {\n gnu.io.RXTXVersion.getVersion();\n serialSupport = true;\n } catch(UnsatisfiedLinkError e) {\n appendString(\"Failed to link with RXTX native library.\");\n btnOpen.setEnabled(false);\n } catch(NoClassDefFoundError e) {\n appendString(\"Failed to link with RXTX native library.\");\n btnOpen.setEnabled(false);\n }\n\n cmbPort.removeAllItems();\n if(serialSupport && Config.serialTerminalAutoDetectPorts) {\n Enumeration portList = CommPortIdentifier.getPortIdentifiers();\n while (portList.hasMoreElements()) {\n CommPortIdentifier portId = (CommPortIdentifier) portList.nextElement();\n Msg.D(\"rxtx portId name: \" + portId.getName() + \" type: \" + portId.getPortType(), 2 , null);\n if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {\n cmbPort.addItem(portId.getName());\n }\n }\n } else {\n if(PLPToolbox.getOS(false) == Constants.PLP_OS_LINUX_32 ||\n PLPToolbox.getOS(false) == Constants.PLP_OS_LINUX_64) {\n cmbPort.addItem(\"/dev/ttyUSB0\");\n cmbPort.addItem(\"/dev/ttyUSB1\");\n cmbPort.addItem(\"/dev/ttyS0\");\n cmbPort.addItem(\"/dev/ttyS1\");\n } else if(PLPToolbox.getOS(false) == Constants.PLP_OS_WIN_32 ||\n PLPToolbox.getOS(false) == Constants.PLP_OS_WIN_64) {\n cmbPort.addItem(\"COM1\");\n cmbPort.addItem(\"COM2\");\n cmbPort.addItem(\"COM3\");\n cmbPort.addItem(\"COM4\");\n } else\n cmbPort.addItem(\"Specify your serial port here.\");\n }\n\n cmbOpts.removeAllItems();\n cmbOpts.addItem(\"8N1\");\n\n cmbEnter.removeAllItems();\n cmbEnter.addItem(\"CR (0xD)\");\n cmbEnter.addItem(\"LF (0xA)\");\n cmbEnter.addItem(\"CR LF\");\n cmbEnter.addItem(\"LF CR\");\n\n cmbFormat.removeAllItems();\n cmbFormat.addItem(\"ASCII String\");\n cmbFormat.addItem(\"1-byte number\");\n cmbFormat.addItem(\"Space-delimited numbers\");\n cmbFormat.addItem(\"ASCII String, append CR (0xD)\");\n\n cmbFontSize.removeAllItems();\n cmbFontSize.addItem(\"8\");\n cmbFontSize.addItem(\"9\");\n cmbFontSize.addItem(\"10\");\n cmbFontSize.addItem(\"11\");\n cmbFontSize.addItem(\"12\");\n cmbFontSize.addItem(\"14\");\n cmbFontSize.addItem(\"16\");\n cmbFontSize.addItem(\"20\");\n cmbFontSize.addItem(\"24\");\n cmbFontSize.addItem(\"32\");\n cmbFontSize.addItem(\"48\");\n cmbFontSize.setSelectedIndex(4);\n\n console.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n console.setForeground(Color.GREEN);\n console.setBackground(Color.BLACK);\n\n this.setLocationRelativeTo(null);\n }", "public void subscribeSwitchState(HomekitCharacteristicChangeCallback callback) {\n\t\t\n\t}" ]
[ "0.52684885", "0.5120897", "0.5111833", "0.50643647", "0.5011575", "0.4899212", "0.48872733", "0.48801905", "0.48786977", "0.4858697", "0.48390287", "0.4838275", "0.48163676", "0.48084506", "0.48069298", "0.47943482", "0.4768932", "0.47456077", "0.46961918", "0.4691787", "0.46825805", "0.4657135", "0.46450636", "0.46199298", "0.46107537", "0.45917058", "0.4587164", "0.4570569", "0.45703697", "0.45562187", "0.45415667", "0.45241126", "0.45133317", "0.44986537", "0.44957137", "0.44870323", "0.44861814", "0.44849667", "0.44844952", "0.448173", "0.44694573", "0.44402504", "0.44402206", "0.44236618", "0.44218463", "0.4417979", "0.44173226", "0.4386525", "0.43863824", "0.438046", "0.43770123", "0.43715534", "0.43708378", "0.43667367", "0.43527022", "0.4345607", "0.4345224", "0.43390346", "0.4337183", "0.43349707", "0.43310228", "0.43303573", "0.43300447", "0.43240744", "0.43182725", "0.4315114", "0.43024296", "0.42940307", "0.42924148", "0.42875132", "0.4278562", "0.4275541", "0.42691812", "0.42633244", "0.42631993", "0.42628568", "0.42504022", "0.42466557", "0.4246583", "0.42386097", "0.42383564", "0.4236436", "0.4234659", "0.42334396", "0.42278126", "0.42198122", "0.42104653", "0.4207694", "0.4203537", "0.42003453", "0.41973183", "0.41882685", "0.41805816", "0.41795117", "0.41789088", "0.41621578", "0.41617864", "0.41601983", "0.41595054", "0.41569754" ]
0.4811968
13
Set the Request To Send (RTS) control signal
public void setRts(boolean status) throws FTD2XXException { if (status) { ensureFTStatus(ftd2xx.FT_SetRts(ftHandle)); } else { ensureFTStatus(ftd2xx.FT_ClrRts(ftHandle)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSignal(double signal) {_signal = signal;}", "@Override\n public void run() {\n transmit_set();\n }", "private void restartCtrlSocket() {\n ctrlThreadTask = ThreadTasks.RESTART;\n }", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "public void sendBreak() {\n\tsPort.sendBreak(1000);\n }", "public void CondSignal(){\n trainCond.signal();\r\n }", "public void setR_RequestType_ID (int R_RequestType_ID);", "public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }", "public synchronized void signalStep() {\n s = true;\n notifyAll();\n }", "@Override\n public void start() {\n long originalSendNextNumber = sendNextNumber;\n sendNextNumber += 1L;\n\n // Send the first part of the handshake\n currentState = SYN_SENT;\n sendWithResend(createPacket(\n 0, // Data size (byte)\n originalSendNextNumber, // Seq number\n 0, // Ack number\n false, // ACK\n true, // SYN\n false // ECE\n ));\n\n // System.out.println(\"3-WAY HANDSHAKE: 0. Sender sent SYN.\");\n\n // Preserve space as this field will never be used\n this.selectiveAckSet = null;\n\n }", "public void procRequest ()\r\n\t{\r\n\t\tthis.simTime = this.sim.getTimer();\r\n\t\tthis.request.setStartTime(simTime);\r\n\t\t//Debug/System.out.println(Fmt.time(simTime)\r\n\t\t//Debug/\t+ \": <procRequest> \" + request);\r\n\r\n\t\t//\tNeed to move from current cylinder to requested cylinder.\r\n\t\t//\tIf current == requested, no action.\r\n\t\tif (this.cylinder != this.request.getCylinder())\r\n\t\t\tthis.simTime += this.calcSeekTime(this.request.getCylinder());\r\n\t\tthis.sim.addEvent(new Event(Event.SEEK_SATISFIED, this.simTime));\r\n\t}", "public void sendRRequests() {\n\n }", "public synchronized void send() {\n if (AudioUtil.getIs()) {\n LogUtil.d(Tag, \"VR stop\");\n this.mPCMPackageHead.m4053c(CommonParams.bB);\n this.mPCMPackageHead.m4047a(0);\n writeVR(this.mPCMPackageHead.m4048a(), this.mPCMPackageHead.m4049b());\n }\n }", "private void kickControlThread() {\r\n\t\tcontrolSignal.release();\r\n\t}", "public void setRequested(){\n this.status = \"Requested\";\n }", "public void setRootSignal(Signal signal) {\n\t\tint now = GameEngine.getSimulationTimeInMillis();\n\t\tthis.queue.setEntrance(signal, now);\n\t}", "public void passReq(Packet request){\r\n\t\ttry { bQueue.put(request);\r\n\t\t} catch (InterruptedException e) { e.printStackTrace(); }\r\n\t}", "public void setRingDuringIncomingEarlyMedia(boolean enable);", "void setReservedPacketCircuitType(int reservedPacketCircuitType);", "void setReservedPacketCircuitType(int reservedPacketCircuitType);", "public void setRequest(REQ request) {\n this.request = request;\n }", "private void sendSR(String _ip, int _requestId)\n\t{\n\t\t\tif(\t\t!_ip.equals(Constants.MY_ADDR) &&\n\t\t\t\t\t!_ip.equals(Constants.LOCALHOST_ADDR) &&\n\t\t\t\t\tRoutingInterface.instance().isConnected(_ip))\n\t\t\t{\n\t\t\t\tRTCPPPacket sr = new RTCPPPacket(Constants.MT_RTCP_SR, this.id, _requestId);\n\t\t\t\tOverlayTransport.instance().send(Constants.MT_RTCP, sr.getMessage(), _ip);\n\t\t\t\tsetRRTimeout(_ip, _requestId);\n\t\t\t\tDebugger.dumpMsg(this, \"Sending RTCP SR \"+_requestId+\" to: \"+_ip, Debugger.RTP);\n\t\t\t}\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tstop();\n\t\t\t}\n\t}", "Signal getSignal();", "private void sendSignal(){\n\t\tSystem.out.println(inputLine + \"test\");\n\t\tMessageContent messageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM);\n\t\tif(inputLine.equals(Constants.BUTTON_1_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_BEDROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_1_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_BEDROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_2_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_KITCHEN, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_2_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_KITCHEN, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_3_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_LIVINGROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_3_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_LIVINGROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_4_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_4_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM, \"0\");\n\t\t\tSystem.out.println(\"oh yeah\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_5_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.SHUTTER, Constants.PLACE_LIVINGROOM);\n\t\t}else if(inputLine.equals(Constants.BUTTON_5_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.SHUTTER, Constants.PLACE_LIVINGROOM);\n\t\t}\n\t\t\t\t\n\t\tString json = messageContent.toJSON();\n\t\tDFAgentDescription template = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n if (inputLine.equals(Constants.BUTTON_5_ON) || inputLine.equals(Constants.BUTTON_5_OFF)) {\n\t\tsd.setType(Constants.SHUTTER);\n\t\tsd.setName(Constants.PLACE_LIVINGROOM);\n } else {\n\t\tsd.setType(Constants.AUTO_SWITCH);\n\t\tsd.setName(Constants.AUTO_SWITCH_AGENT);\n }\n template.addServices(sd);\n try {\n DFAgentDescription[] result = DFService.search(myAgent, template);\n if (result.length > 0) {\n ACLMessage request = new ACLMessage(ACLMessage.REQUEST);\n if (inputLine.equals(Constants.BUTTON_5_ON) || inputLine.equals(Constants.BUTTON_5_OFF)) {\n\t\t\t\trequest.setPerformative(ACLMessage.INFORM);\n }\n for (DFAgentDescription receiver : result) {\n if (!receiver.getName().equals(myAgent.getAID())) {\n request.addReceiver(receiver.getName());\n \n }\n }\n request.setContent(json);\n myAgent.send(request);\n }\n } catch(FIPAException fe) {\n fe.printStackTrace();\n }\n\n\n\t}", "protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}", "void signal();", "@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 mo32110rq(int i) {\n }", "public void enableClient(){\r\n try{\r\n oos.writeObject(new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.ENABLECODE)));\r\n oos.flush();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }", "public void setRequestTimerValue(short requestTimerValue)\n throws JNCException {\n setRequestTimerValue(new YangUInt8(requestTimerValue));\n }", "public void queueSyn() {\n\t\tflags |= SYN_SEG_WAITING;\n\t}", "public native void setMinimumRTO (long RTO);", "public final void rq() {\n this.state = 0;\n this.bbo = 0;\n this.bbz = 256;\n }", "public void dmaRequest(DmaRequestRead read) throws SIMException;", "public void setRequestState(int requestState) {\n\t\t_tempNoTiceShipMessage.setRequestState(requestState);\n\t}", "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "public void subscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), Boolean.TRUE, new UnsignedInteger(0))).get();\n LOG.info(\"Subscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't subscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "@Override\n public void setVoiceMessageWaiting(int line, int countWaiting) {\n }", "@Override\n public int getRedwireSignal(int dir) {\n return getSignal();\n }", "public void control() {\n\r\n\t}", "private void stopRequest(){ Remove the clause synchronized of the stopRequest method.\n // Synchronization is isolated as possible to avoid thread lock.\n // Note: the method removeRequest from SendQ is synchronized.\n // fix bug jaw.00392.B\n //\n synchronized(this){\n setRequestStatus(stAborted);\n }\n informSession.getSnmpQManager().removeRequest(this);\n synchronized(this){\n requestId=0;\n }\n }", "public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }", "public native void setRTOConstant (int RTOconstant);", "public native void disableRetransmitCountFactorInRTO();", "void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }", "void state_REQState(){\r\n eccState = INDEX_REQState;\r\n alg_REQAlg();\r\n CNF.serviceEvent(this);\r\n state_START();\r\n}", "public void setRemoteRingbackTone(String ring);", "public void request(long r6) {\n /*\n r5 = this;\n r0 = 0\n int r2 = (r6 > r0 ? 1 : (r6 == r0 ? 0 : -1))\n if (r2 < 0) goto L_0x003f\n if (r2 != 0) goto L_0x0009\n return\n L_0x0009:\n monitor-enter(r5)\n boolean r2 = r5.emitting // Catch:{ all -> 0x003c }\n if (r2 == 0) goto L_0x0015\n long r0 = r5.missedRequested // Catch:{ all -> 0x003c }\n long r0 = r0 + r6\n r5.missedRequested = r0 // Catch:{ all -> 0x003c }\n monitor-exit(r5) // Catch:{ all -> 0x003c }\n return\n L_0x0015:\n r2 = 1\n r5.emitting = r2 // Catch:{ all -> 0x003c }\n monitor-exit(r5) // Catch:{ all -> 0x003c }\n long r2 = r5.requested // Catch:{ all -> 0x0032 }\n long r2 = r2 + r6\n int r4 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r4 >= 0) goto L_0x0025\n r2 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n L_0x0025:\n r5.requested = r2 // Catch:{ all -> 0x0032 }\n rx.Producer r0 = r5.currentProducer // Catch:{ all -> 0x0032 }\n if (r0 == 0) goto L_0x002e\n r0.request(r6) // Catch:{ all -> 0x0032 }\n L_0x002e:\n r5.emitLoop() // Catch:{ all -> 0x0032 }\n return\n L_0x0032:\n r6 = move-exception\n monitor-enter(r5)\n r7 = 0\n r5.emitting = r7 // Catch:{ all -> 0x0039 }\n monitor-exit(r5) // Catch:{ all -> 0x0039 }\n throw r6\n L_0x0039:\n r6 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x0039 }\n throw r6\n L_0x003c:\n r6 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x003c }\n throw r6\n L_0x003f:\n java.lang.IllegalArgumentException r6 = new java.lang.IllegalArgumentException\n java.lang.String r7 = \"n >= 0 required\"\n r6.<init>(r7)\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p030rx.internal.producers.ProducerArbiter.request(long):void\");\n }", "public void sendSignal (String signal, String message ){\r\n if (btSocket != null)\r\n {\r\n try{\r\n btSocket.getOutputStream().write(signal.getBytes());\r\n msg(message,0);\r\n } catch (IOException e) {\r\n msg(\"Error\", 0);\r\n }\r\n }\r\n\r\n }", "public void run() {\n\t\t\t\tsendSR(ip, requestId);\n\t\t}", "public void reqbkpkt(byte[]req) \r\n\t{\n\r\n\r\n\t}", "@Override\r\n\tpublic void newLineRecieved() {\n\t\tString response = grblPort.readNextLine();\r\n\t\tresponse.trim();\r\n\t\tSystem.out.println(\"Recieve: \" + response);\r\n\t\t//System.out.println(\"HAHAHAH\");\r\n\t\tif (response.contains(\"ok\") && grblPort.ok == false){\t\t\t\r\n\t\t\tgrblPort.ok = true;\t\t\r\n\t\t\tSystem.out.println(\"Got ACK\");\r\n\t\t\tif (!sendLines.isEmpty()){//If there is more stuff in the buffer, keep on sending it.\r\n\t\t\t\tsendLines.remove(0);\r\n\t\t\t\tgrblPort.sendDataLine(sendLines.get(0)); \t\t\r\n\t \t}\r\n\t\t}\r\n\t\tif (response.contains(\"error\")){\r\n\t\t\tSystem.out.println(\"ERROR...ERROR...ERROR...ERROR...ERROR...ERROR...ERROR...ERROR...ERROR\");\r\n\t\t\tgrblPort.sendDataLine(sendLines.get(0)); \r\n\t\t}\r\n\t\tif (response.contains(\"<\")&&response.contains(\">\")){\r\n\t\t\tif (!sendLines.isEmpty()){//If there is more stuff in the buffer, keep on sending it.\r\n\t\t\t//\tgrblPort.sendDataLine(sendLines.remove(0)); \t\t\r\n\t \t}\r\n\t\t\tresponse = response.replaceAll(\"<\", \"\");\r\n\t\t\tresponse = response.replaceAll(\">\", \"\");\r\n\t\t\tString data[] = response.split(\",\");\r\n\t\t\tfor (String string : data) {\r\n\t\t\t\tstring = string.toUpperCase();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"************************************* \"+data[0]);\r\n\t\t\tswitch (data[0].toUpperCase()) {\r\n\t\t\tcase \"IDLE\":\r\n\t\t\t\tmachineState = MachineState.IDLE;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"RUN\":\r\n\t\t\t\tmachineState = MachineState.RUNNING;\r\n\t\t\t\treturn;\r\n\t\t\t\t//break;\r\n\t\t\tcase \"QUEUE\":\r\n\t\t\t\tmachineState = MachineState.QUEUE;\r\n\t\t\t\treturn;\r\n\t\t\tdefault:\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void setRequestStatus(short value) {\n this.requestStatus = value;\n }", "public void setResidencyRequestFlag(Character aResidencyRequestFlag) {\n residencyRequestFlag = aResidencyRequestFlag;\n }", "private void startSynchronization(int nextReg) {\n\n boolean condition;\n ObjectOutputStream out = null;\n ByteArrayOutputStream bos = null;\n \n if (this.controller.getStaticConf().isBFT()) {\n condition = lcManager.getStopsSize(nextReg) > this.controller.getCurrentViewF();\n } else {\n condition = lcManager.getStopsSize(nextReg) > 0;\n }\n \n // Ask to start the synchronizations phase if enough messages have been received already\n if (condition && lcManager.getNextReg() == lcManager.getLastReg()) {\n \n logger.debug(\"Initialize synch phase\");\n requestsTimer.Enabled(false);\n requestsTimer.stopTimer();\n\n lcManager.setNextReg(lcManager.getLastReg() + 1); // define next timestamp\n\n int regency = lcManager.getNextReg();\n\n // store information about message I am going to send\n lcManager.addStop(regency, this.controller.getStaticConf().getProcessId());\n\n //execManager.stop(); // stop execution of consensus\n\n //Get requests that timed out and the requests received in STOP messages\n //and add those STOPed requests to the client manager\n addSTOPedRequestsToClientManager();\n List<TOMMessage> messages = getRequestsToRelay();\n\n try { // serialize conent to send in the STOP message\n bos = new ByteArrayOutputStream();\n out = new ObjectOutputStream(bos);\n\n // Do I have messages to send in the STOP message?\n if (messages != null && messages.size() > 0) {\n\n //TODO: If this is null, there was no timeout nor STOP messages.\n //What shall be done then?\n out.writeBoolean(true);\n byte[] serialized = bb.makeBatch(messages, 0, 0, controller.getStaticConf().getUseSignatures() == 1);\n out.writeObject(serialized);\n } else {\n out.writeBoolean(false);\n logger.warn(\"Strange... did not include any request in my STOP message for regency \" + regency);\n }\n\n out.flush();\n bos.flush();\n\n byte[] payload = bos.toByteArray();\n out.close();\n bos.close();\n\n // send message STOP\n logger.info(\"Sending STOP message to install regency \" + regency + \" with \" + (messages != null ? messages.size() : 0) + \" request(s) to relay\");\n\n LCMessage stop = new LCMessage(this.controller.getStaticConf().getProcessId(), TOMUtil.STOP, regency, payload);\n requestsTimer.setSTOP(regency, stop); // make replica re-transmit the stop message until a new regency is installed\n communication.send(this.controller.getCurrentViewOtherAcceptors(), stop);\n\n } catch (IOException ex) {\n logger.error(\"Could not deserialize STOP message\", ex);\n }\n }\n \n if (this.controller.getStaticConf().isBFT()) {\n condition = lcManager.getStopsSize(nextReg) > (2 * this.controller.getCurrentViewF());\n } else {\n condition = lcManager.getStopsSize(nextReg) > this.controller.getCurrentViewF();\n }\n \n // Did the synchronization phase really started?\n //if (lcManager.getStopsSize(nextReg) > this.reconfManager.getQuorum2F() && lcManager.getNextReg() > lcManager.getLastReg()) {\n if (condition && lcManager.getNextReg() > lcManager.getLastReg()) {\n \n if (!execManager.stopped()) execManager.stop(); // stop consensus execution if more than f replicas sent a STOP message\n\n logger.debug(\"Installing regency \" + lcManager.getNextReg());\n lcManager.setLastReg(lcManager.getNextReg()); // define last timestamp\n\n int regency = lcManager.getLastReg();\n\n // avoid memory leaks\n lcManager.removeStops(nextReg);\n lcManager.clearCurrentRequestTimedOut();\n lcManager.clearRequestsFromSTOP();\n\n requestsTimer.Enabled(true);\n requestsTimer.setShortTimeout(-1);\n requestsTimer.startTimer();\n\n //int leader = regency % this.reconfManager.getCurrentViewN(); // new leader\n int leader = lcManager.getNewLeader();\n int in = tom.getInExec(); // cid to execute\n int last = tom.getLastExec(); // last cid decided\n\n execManager.setNewLeader(leader);\n\n // If I am not the leader, I have to send a STOPDATA message to the elected leader\n if (leader != this.controller.getStaticConf().getProcessId()) {\n\n try { // serialize content of the STOPDATA message\n\n bos = new ByteArrayOutputStream();\n out = new ObjectOutputStream(bos);\n \n Consensus cons = null;\n \n // content of the last decided CID\n if (last > -1) cons = execManager.getConsensus(last);\n\n //Do I have info on my last executed consensus?\n if (cons != null && cons.getDecisionEpoch() != null && cons.getDecisionEpoch().propValue != null) {\n \n out.writeBoolean(true);\n out.writeInt(last);\n //byte[] decision = exec.getLearner().getDecision();\n\n byte[] decision = cons.getDecisionEpoch().propValue;\n Set<ConsensusMessage> proof = cons.getDecisionEpoch().getProof();\n\n out.writeObject(decision);\n out.writeObject(proof);\n // TODO: WILL BE NECESSARY TO ADD A PROOF!!!\n\n } else {\n out.writeBoolean(false);\n \n ////// THIS IS TO CATCH A BUG!!!!!\n if (last > -1) {\n logger.debug(\"[DEBUG INFO FOR LAST CID #1]\");\n\n if (cons == null) {\n if (last > -1) logger.debug(\"No consensus instance for cid \" + last);\n\n }\n else if (cons.getDecisionEpoch() == null) {\n logger.debug(\"No decision epoch for cid \" + last);\n } else {\n logger.debug(\"epoch for cid: \" + last + \": \" + cons.getDecisionEpoch().toString());\n\n if (cons.getDecisionEpoch().propValue == null) {\n logger.debug(\"No propose for cid \" + last);\n } else {\n logger.debug(\"Propose hash for cid \" + last + \": \" + Base64.encodeBase64String(tom.computeHash(cons.getDecisionEpoch().propValue)));\n }\n }\n }\n\n }\n\n if (in > -1) { // content of cid in execution\n\n cons = execManager.getConsensus(in);\n\n //cons.incEts(); // make the consensus advance to the next epoch\n cons.setETS(regency); // make the consensus advance to the next epoch\n\n //int ets = cons.getEts();\n //cons.createEpoch(ets, controller);\n cons.createEpoch(regency, controller);\n //Logger.println(\"(Synchronizer.startSynchronization) incrementing ets of consensus \" + cons.getId() + \" to \" + ets);\n logger.debug(\"Incrementing ets of consensus \" + cons.getId() + \" to \" + regency);\n\n TimestampValuePair quorumWrites;\n if (cons.getQuorumWrites() != null) {\n\n quorumWrites = cons.getQuorumWrites();\n\n } else {\n\n quorumWrites = new TimestampValuePair(0, new byte[0]);\n }\n\n HashSet<TimestampValuePair> writeSet = cons.getWriteSet();\n\n //CollectData collect = new CollectData(this.controller.getStaticConf().getProcessId(), in, ets, quorumWrites, writeSet);\n CollectData collect = new CollectData(this.controller.getStaticConf().getProcessId(), in, regency, quorumWrites, writeSet);\n\n SignedObject signedCollect = tom.sign(collect);\n\n out.writeObject(signedCollect);\n\n } else {\n\n cons = execManager.getConsensus(last + 1);\n\n //cons.incEts(); // make the consensus advance to the next epoch\n cons.setETS(regency); // make the consensus advance to the next epoch\n \n //int ets = cons.getEts();\n //cons.createEpoch(ets, controller);\n cons.createEpoch(regency, controller);\n //Logger.println(\"(Synchronizer.startSynchronization) incrementing ets of consensus \" + cons.getId() + \" to \" + ets);\n logger.debug(\"Incrementing ets of consensus \" + cons.getId() + \" to \" + regency);\n\n //CollectData collect = new CollectData(this.controller.getStaticConf().getProcessId(), last + 1, ets, new TimestampValuePair(0, new byte[0]), new HashSet<TimestampValuePair>());\n CollectData collect = new CollectData(this.controller.getStaticConf().getProcessId(), last + 1, regency, new TimestampValuePair(0, new byte[0]), new HashSet<TimestampValuePair>());\n \n SignedObject signedCollect = tom.sign(collect);\n\n out.writeObject(signedCollect);\n\n }\n\n out.flush();\n bos.flush();\n\n byte[] payload = bos.toByteArray();\n out.close();\n bos.close();\n\n int[] b = new int[1];\n b[0] = leader;\n\n logger.info(\"Sending STOPDATA of regency \" + regency);\n // send message SYNC to the new leader\n communication.send(b,\n new LCMessage(this.controller.getStaticConf().getProcessId(), TOMUtil.STOPDATA, regency, payload));\n\n\t\t//TODO: Turn on timeout again?\n } catch (IOException ex) {\n logger.error(\"Could not deserialize STOPDATA message\", ex);\n }\n\n // the replica might have received a SYNC that was out of context at the time it was received, but now can be processed\n Set<LCMessage> sync = getOutOfContextLC(TOMUtil.SYNC, regency);\n\n logger.debug(\"Checking if there are out of context SYNC for regency \" + regency);\n\n if (sync.size() > 0) {\n logger.info(\"Processing out of context SYNC for regency \" + regency);\n } else {\n logger.info(\"No out of context SYNC for regency \" + regency);\n }\n\n for (LCMessage m : sync) {\n if (m.getSender() == execManager.getCurrentLeader()) {\n processSYNC(m.getPayload(), regency);\n return; // makes no sense to continue, since there is only one SYNC message\n }\n }\n\n } else { // If leader, I will store information that I would send in a SYNC message\n\n logger.debug(\"I'm the leader for this new regency\");\n CertifiedDecision lastDec = null;\n CollectData collect = null;\n\n Consensus cons = null;\n \n //Content of the last decided CID\n if (last > -1) cons = execManager.getConsensus(last);\n \n //Do I have info on my last executed consensus?\n if (cons != null && cons.getDecisionEpoch() != null && cons.getDecisionEpoch().propValue != null) { \n //byte[] decision = exec.getLearner().getDecision();\n\n\n byte[] decision = cons.getDecisionEpoch().propValue;\n Set<ConsensusMessage> proof = cons.getDecisionEpoch().getProof();\n\n lastDec = new CertifiedDecision(this.controller.getStaticConf().getProcessId(), last, decision, proof);\n // TODO: WILL BE NECESSARY TO ADD A PROOF!!!??\n\n } else { \n lastDec = new CertifiedDecision(this.controller.getStaticConf().getProcessId(), last, null, null);\n\n ////// THIS IS TO CATCH A BUG!!!!!\n if (last > -1) {\n logger.debug(\"[DEBUG INFO FOR LAST CID #2]\");\n\n if (cons == null) {\n if (last > -1) logger.debug(\"No consensus instance for cid \" + last);\n\n }\n else if (cons.getDecisionEpoch() == null) {\n logger.debug(\"No decision epoch for cid \" + last);\n } else {\n logger.debug(\"epoch for cid: \" + last + \": \" + cons.getDecisionEpoch().toString());\n }\n if (cons.getDecisionEpoch().propValue == null) {\n logger.debug(\"No propose for cid \" + last);\n } else {\n logger.debug(\"Propose hash for cid \" + last + \": \" + Base64.encodeBase64String(tom.computeHash(cons.getDecisionEpoch().propValue)));\n }\n }\n \n }\n lcManager.addLastCID(regency, lastDec);\n\n if (in > -1) { // content of cid being executed\n cons = execManager.getConsensus(in);\n\n //cons.incEts(); // make the consensus advance to the next epoch\n cons.setETS(regency); // make the consensus advance to the next epoch\n\n //int ets = cons.getEts();\n //cons.createEpoch(ets, controller);\n cons.createEpoch(regency, controller);\n //Logger.println(\"(Synchronizer.startSynchronization) incrementing ets of consensus \" + cons.getId() + \" to \" + ets);\n logger.debug(\"Incrementing ets of consensus \" + cons.getId() + \" to \" + regency);\n\n TimestampValuePair quorumWrites;\n\n if (cons.getQuorumWrites() != null) {\n\n quorumWrites = cons.getQuorumWrites();\n } else {\n quorumWrites = new TimestampValuePair(0, new byte[0]);\n }\n\n HashSet<TimestampValuePair> writeSet = cons.getWriteSet();\n\n //collect = new CollectData(this.controller.getStaticConf().getProcessId(), in, ets, quorumWrites, writeSet);\n collect = new CollectData(this.controller.getStaticConf().getProcessId(), in, regency, quorumWrites, writeSet);\n\n } else {\n\n cons = execManager.getConsensus(last + 1);\n\n //cons.incEts(); // make the consensus advance to the next epoch\n cons.setETS(regency); // make the consensus advance to the next epoch\n\n //int ets = cons.getEts();\n //cons.createEpoch(ets, controller);\n cons.createEpoch(regency, controller);\n //Logger.println(\"startSynchronization) incrementing ets of consensus \" + cons.getId() + \" to \" + ets);\n logger.debug(\"Incrementing ets of consensus \" + cons.getId() + \" to \" + regency);\n\n //collect = new CollectData(this.controller.getStaticConf().getProcessId(), last + 1, ets, new TimestampValuePair(0, new byte[0]), new HashSet<TimestampValuePair>());\n collect = new CollectData(this.controller.getStaticConf().getProcessId(), last + 1, regency, new TimestampValuePair(0, new byte[0]), new HashSet<TimestampValuePair>());\n }\n\n SignedObject signedCollect = tom.sign(collect);\n\n lcManager.addCollect(regency, signedCollect);\n\n // the replica might have received STOPDATAs that were out of context at the time they were received, but now can be processed\n Set<LCMessage> stopdatas = getOutOfContextLC(TOMUtil.STOPDATA, regency);\n\n logger.debug(\"Checking if there are out of context STOPDATAs for regency \" + regency);\n if (stopdatas.size() > 0) {\n logger.debug(\"Processing \" + stopdatas.size() + \" out of context STOPDATAs for regency \" + regency);\n } else {\n logger.debug(\"No out of context STOPDATAs for regency \" + regency);\n }\n\n for (LCMessage m : stopdatas) {\n processSTOPDATA(m, regency);\n }\n\n }\n\n }\n }", "public void signalTheWaiter(int sID){\n Student s = (Student) Thread.currentThread();\n\n \tCommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n \tObject[] params = new Object[0];\n \tObject[] state_fields = new Object[3];\n \tstate_fields[0] = s.getID();\n \tstate_fields[1] = s.getStudentState();\n \tstate_fields[2] = s.isLastStudent();\n \t\n Message m_toServer = new Message(6, params, 0, state_fields, 3, null); \n Message m_fromServer; \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n \n s.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "java.lang.String getSignal();", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgEND(true);\r\n }", "Mono<ServerResponse> reset(ServerRequest request);", "public void incomingTriggerResourceControlRequest(APDUEvent e)\n {\n LOGGER.finer(\"Incoming triggetResourceControlRequest\");\n }", "public void send(String request){\n try {\n streamOut.writeUTF(request);\n streamOut.flush();\n connected = true;\n System.out.println(clientID+\": send: \"+request);\n } catch (IOException ioe) {\n System.out.println(ioe);\n System.out.println(clientID+\": failedToSend: \"+request+\": IOException: \"+ioe);\n }\n }", "public double getSignal() {return _signal;}", "private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}", "public Builder setSignal(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n signal_ = value;\n onChanged();\n return this;\n }", "public final void setChaining() {\n\theader[0] = (byte) (header[0] | 0x10);\n }", "public void setRequestType(RequestType requestType) {\n this.requestType = requestType;\n }", "private void sendMsg()\n {\n try {\n spauldingApp.println(\"AckRequest.sendMsg() - sending request to nodeID= \" + node.getNodeID() + \" ...\");\n this.nbrTransmits++;\n //spauldingApp.eventLogger.writeMsgSentPing(fetchReqMsg);\n spauldingApp.getMoteIF().send(node.getNodeID(), requestMsg);\n } catch (Exception e) {\n spauldingApp.println(\"ERROR: Can't send message: \" + e);\n e.printStackTrace();\n }\n }", "@Override\n public int getSignal() {\n return signal & 0xFF;\n }", "public void requestBoard(){\r\n try {\r\n clientThreads.get(0).getOOS().writeObject(\r\n new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.BOARDREQUEST)));\r\n } catch(IOException ioe){\r\n ioe.printStackTrace();\r\n }\r\n }", "public synchronized void requestStop() \n\t{\n\t\tstoprequested = true;\n\t}", "public void sendRequest(Pdu packet);", "public void setRequestTimerValue(YangUInt8 requestTimerValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"request-timer\",\n requestTimerValue,\n childrenNames());\n }", "private static synchronized void requestStop() {\n stopRequested = true;\n }", "private void sendSetRequest() {\r\n\t\tnumOfSets++;\r\n\t\ttype = \"0\";\r\n\t\tnumOfRecipients = servers.size();\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\ts.send(this, input);\r\n\t\t}\r\n\t\tsendTime = System.nanoTime();\r\n\r\n\t\tworkerTime = sendTime - pollTime;\r\n\t\t\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\tString ricevuto = s.receive();\r\n\t\t\treplies.add(ricevuto);\r\n\t\t}\r\n\t\treceiveTime = System.nanoTime();\r\n\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\r\n\t\t\r\n\t\tfor(String reply : replies) {\r\n\t\t\tif(!(\"STORED\".equals(reply))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treplies.clear();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsendBack(currentJob.getClient(), \"STORED\");\r\n\t\treplies.clear();\r\n\t\t\r\n\t}", "private void setChangeHeadpicRsp(ChangeHeadpic.Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 17;\n }", "public void setRequestTimerValue(String requestTimerValue)\n throws JNCException {\n setRequestTimerValue(new YangUInt8(requestTimerValue));\n }", "public void dmaRequest(DmaRequestWrite write) throws SIMException;", "private NotifySuspendedCommandControllerPowerState() {\n\n\t}", "@Override\n public void printActionsAndReceiveInput(Terminal terminal) { this.terminal=terminal;\n inputBasicMode();\n responseIsReady = true;\n }", "@Test\n public void testSendSetupRequest() {\n String expected = \"SETUP rtsp://172.10.20.30:554/d3abaaa7-65f2-42b4-\" + (((((\"8d6b-379f492fcf0f RTSP/1.0\\r\\n\" + \"transport: MP2T/DVBC/UDP;unicast;client=01234567;\") + \"source=172.10.20.30;\") + \"destination=1.1.1.1;client_port=6922\\r\\n\") + \"cseq: 1\\r\\n\") + \"\\r\\n\");\n HttpRequest request = new io.netty.handler.codec.http.DefaultHttpRequest(RTSP_1_0, SETUP, \"rtsp://172.10.20.30:554/d3abaaa7-65f2-42b4-8d6b-379f492fcf0f\");\n request.headers().add(TRANSPORT, (\"MP2T/DVBC/UDP;unicast;client=01234567;source=172.10.20.30;\" + \"destination=1.1.1.1;client_port=6922\"));\n request.headers().add(CSEQ, \"1\");\n EmbeddedChannel ch = new EmbeddedChannel(new RtspEncoder());\n ch.writeOutbound(request);\n ByteBuf buf = ch.readOutbound();\n String actual = buf.toString(UTF_8);\n buf.release();\n Assert.assertEquals(expected, actual);\n }", "private void setChatRecordReq(ChatRecord.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 10;\n }", "public void signalTheWaiter();", "private void openCtrlSocket() {\n ctrlThreadTask = ThreadTasks.OPEN;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(false);\r\n }", "private void set(){\n resetBuffer();\n }", "@Override\n\tpublic void processRequest(RequestEvent requestEvent) {\n\t\t requestEvent.getServerTransaction();\n\t\tSystem.out.println(\"Sending ------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"[]:\"+requestEvent.toString());\n\t}", "public void setTransmittedSerialNumber(String transmittedSerialNumber) ;", "int libusb_control_transfer(DeviceHandle dev_handle, short bmRequestType, short bRequest, int wValue, int wIndex,\r\n String data, int wLength, int timeout);", "public void run() {\n\t\tserialPort = new SerialPort(\"COM6\"); \r\n try {\r\n serialPort.openPort();//Open port\r\n serialPort.setParams(9600, 8, 1, 0);//Set params\r\n int mask = SerialPort.MASK_RXCHAR + SerialPort.MASK_CTS + SerialPort.MASK_DSR;//Prepare mask\r\n serialPort.setEventsMask(mask);//Set mask\r\n serialPort.addEventListener(new SerialPortReader());//Add SerialPortEventListener\r\n serialPort.writeBytes(readRequest());\r\n }\r\n catch (SerialPortException ex) {\r\n System.out.println(ex);\r\n }\r\n\r\n\t\t\r\n\t}", "public void setRequestType(String value) {\r\n setAttributeInternal(REQUESTTYPE, value);\r\n }", "public void setIsOnRequest(int value) {\n this.isOnRequest = value;\n }", "public void sendSignal(int sig) {\n try {\n dOut.writeInt(sig);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send number of players\");\n e.printStackTrace();\n }\n }", "void setRequest(Request req);", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "static void OPL_STATUS_SET(FM_OPL OPL, int flag) {\n /* set status flag */\n /*RECHECK*/\n OPL.status |= flag;\n if ((OPL.status & 0x80) == 0) {\n if ((OPL.status & OPL.statusmask) != 0) {\n /* IRQ on */\n\n OPL.status |= 0x80;\n /* callback user interrupt handler (IRQ is OFF to ON) */\n if (OPL.IRQHandler != null) {\n OPL.IRQHandler.handler(OPL.IRQParam, 1);\n }\n }\n }\n }", "@Override\n public void onResetTimerRequest(ResetTimerRequest arg0) {\n\n }", "public void cancelRequest(int r11, android.os.Handler r12, int r13) {\n /*\n r10 = this;\n monitor-enter(r10);\n r4 = r10.mReg;\t Catch:{ all -> 0x0052 }\n r2 = r4;\n if (r2 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r10);\t Catch:{ all -> 0x0052 }\n L_0x0007:\n return;\n L_0x0008:\n r7 = r2.senderWhat;\t Catch:{ all -> 0x0052 }\n if (r7 < r11) goto L_0x0055;\n L_0x000c:\n r7 = r2.senderWhat;\t Catch:{ all -> 0x0052 }\n if (r7 != r11) goto L_0x0050;\n L_0x0010:\n r5 = r2.targets;\t Catch:{ all -> 0x0052 }\n r6 = r2.targetWhats;\t Catch:{ all -> 0x0052 }\n r1 = r5.length;\t Catch:{ all -> 0x0052 }\n r0 = 0;\n L_0x0016:\n if (r0 >= r1) goto L_0x0050;\n L_0x0018:\n r7 = r5[r0];\t Catch:{ all -> 0x0052 }\n if (r7 != r12) goto L_0x005a;\n L_0x001c:\n r7 = r6[r0];\t Catch:{ all -> 0x0052 }\n if (r7 != r13) goto L_0x005a;\n L_0x0020:\n r7 = r1 + -1;\n r7 = new android.os.Handler[r7];\t Catch:{ all -> 0x0052 }\n r2.targets = r7;\t Catch:{ all -> 0x0052 }\n r7 = r1 + -1;\n r7 = new int[r7];\t Catch:{ all -> 0x0052 }\n r2.targetWhats = r7;\t Catch:{ all -> 0x0052 }\n if (r0 <= 0) goto L_0x003c;\n L_0x002e:\n r7 = 0;\n r8 = r2.targets;\t Catch:{ all -> 0x0052 }\n r9 = 0;\n java.lang.System.arraycopy(r5, r7, r8, r9, r0);\t Catch:{ all -> 0x0052 }\n r7 = 0;\n r8 = r2.targetWhats;\t Catch:{ all -> 0x0052 }\n r9 = 0;\n java.lang.System.arraycopy(r6, r7, r8, r9, r0);\t Catch:{ all -> 0x0052 }\n L_0x003c:\n r7 = r1 - r0;\n r3 = r7 + -1;\n if (r3 == 0) goto L_0x0050;\n L_0x0042:\n r7 = r0 + 1;\n r8 = r2.targets;\t Catch:{ all -> 0x0052 }\n java.lang.System.arraycopy(r5, r7, r8, r0, r3);\t Catch:{ all -> 0x0052 }\n r7 = r0 + 1;\n r8 = r2.targetWhats;\t Catch:{ all -> 0x0052 }\n java.lang.System.arraycopy(r6, r7, r8, r0, r3);\t Catch:{ all -> 0x0052 }\n L_0x0050:\n monitor-exit(r10);\t Catch:{ all -> 0x0052 }\n goto L_0x0007;\n L_0x0052:\n r7 = move-exception;\n monitor-exit(r10);\t Catch:{ all -> 0x0052 }\n throw r7;\n L_0x0055:\n r2 = r2.next;\t Catch:{ all -> 0x0052 }\n if (r2 != r4) goto L_0x0008;\n L_0x0059:\n goto L_0x000c;\n L_0x005a:\n r0 = r0 + 1;\n goto L_0x0016;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.os.Broadcaster.cancelRequest(int, android.os.Handler, int):void\");\n }", "private void sendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendButtonActionPerformed\n String str = requestCommand.getText();\n sC.sendCommand(str); \n requestCommand.requestFocus();\n }", "void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);", "public void connect_PERequest(BOOL newIV){\n PERequest = newIV;\n }" ]
[ "0.59279895", "0.5581394", "0.54676914", "0.5464218", "0.5437757", "0.5413493", "0.5372191", "0.52582127", "0.52219945", "0.52099586", "0.52050734", "0.51975876", "0.51764554", "0.5145999", "0.51257867", "0.51136374", "0.51014525", "0.5089407", "0.50857145", "0.50857145", "0.5084082", "0.50640494", "0.50639296", "0.5014103", "0.50124884", "0.50096434", "0.5008373", "0.50081414", "0.50035465", "0.5001827", "0.49996105", "0.49905086", "0.49854937", "0.4971545", "0.4969943", "0.49530056", "0.49470222", "0.4926103", "0.49233887", "0.4915262", "0.49140996", "0.49109447", "0.4910178", "0.49064666", "0.49019682", "0.49000156", "0.48950627", "0.4894889", "0.48942629", "0.4891259", "0.48887065", "0.48841357", "0.48763412", "0.48748592", "0.487056", "0.48683476", "0.48677343", "0.48673204", "0.486611", "0.48607606", "0.48591542", "0.48530138", "0.4847859", "0.4836514", "0.48361084", "0.4835365", "0.48310298", "0.482763", "0.48245585", "0.48197523", "0.48175505", "0.4816023", "0.48107213", "0.4809613", "0.48068863", "0.4801446", "0.479856", "0.47972745", "0.4792384", "0.47845164", "0.47825447", "0.47804254", "0.47753695", "0.4762081", "0.47598687", "0.47528315", "0.47522503", "0.47513768", "0.474356", "0.4738918", "0.47372255", "0.4736307", "0.4736156", "0.47339994", "0.47327974", "0.4725929", "0.47247642", "0.4723048", "0.4721231", "0.47207066", "0.4715248" ]
0.0
-1
Gets the modem status and line status from the device.
public EnumSet<DeviceStatus> getDeviceStatus() throws FTD2XXException { IntByReference modstat = new IntByReference(); ensureFTStatus(ftd2xx.FT_GetModemStatus(ftHandle, modstat)); return DeviceStatus.parseToEnumset(modstat.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Status getDeviceStatus() {\n return mDeviceStatus;\n }", "public List<String> getCommandStatus() {\n\t\tList<Device> devices = DeviceClientSingleton.getDeviceList();\r\n\t\tList<String> commandStatus = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < devices.size(); i++) {\r\n\t\t\tString deviceData = DeviceClientSingleton.getDeviceData(devices.get(i).getDeviceId());\r\n\t\t\tcommandStatus.add(deviceData);\r\n\t\t\tif ((!deviceData.equals(\"\")) && (!deviceData.equals(\" \"))) {\r\n\t\t\t\tDeviceClientSingleton.removeDeviceData(devices.get(i).getDeviceId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn commandStatus;\r\n\t}", "public int getCBRStatus();", "public final TerminalStatusType getStatus()\n\t{\n\t\treturn status;\n\t}", "String getSwstatus();", "@Override\n public List<Object> getMiniChartCommStatusByModemType(\n Map<String, Object> condition) {\n return null;\n }", "TransmissionProtocol.Status getStatus();", "@GET\n @Path(\"/status\")\n @Produces(MediaType.TEXT_PLAIN)\n public String status() {\n Device device = getDevice();\n try {\n StreamingSession session = transportService.getSession(device.getId());\n return \"Status device:[\" + device.getId() + \"]\" + \" session [\" + session.toString() + \"]\";\n } catch (UnknownSessionException e) {\n return e.getMessage();\n }\n }", "public String getStatusLine() {\r\n\t\t\r\n\t\treturn statusLine;\r\n\t\r\n\t}", "public char getStatus()\r\n\t{\r\n\t\treturn status;\r\n\t}", "@Override\n public List<Object> getMiniChartCommStatusByModemType2(\n Map<String, Object> condition) {\n return null;\n }", "public StatusLine getStatusLine() {\n return statusLine;\n }", "public char getStatus() {\n\t\treturn status;\n\t}", "public String getHeaderType() { return \"modem\"; }", "public NetworkAdapterRdmaStatus rdmaStatus() {\n return this.rdmaStatus;\n }", "public DeviceManagementScriptDeviceState get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "public String getStatus() {\n\t\tString result = getName() + \"\\n-----------------------------\\n\\n\";\n\t\tfor(int i = 0; i < lines.size(); i++) {\n\t\t\tresult = result + lines.get(i).getStatus() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic List<String> getDeviceListModem(Map<String, Object> condition) {\n\t\treturn null;\n\t}", "public MrlComm getMrlComm() {\r\n return mrlComm;\r\n }", "public Integer getSmsStatus() {\r\n return smsStatus;\r\n }", "StatusLine getStatusLine();", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public int getSyncStatus();", "@Override\n public List<Object> getModemSerialList(Map<String, Object> condition) {\n return null;\n }", "@Override\n public List<Object> getMiniChartCommStatusByModemType(\n Map<String, Object> condition, String[] arrFmtmessagecommalert) {\n return null;\n }", "public boolean getAtmStatus();", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}", "public String getUiStatus() {\n\t\tif (switchInfo.getType().compareTo(\"thermostat\") == 0) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 2;\r\n\t\t\t\treturn tmp.toString();\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t} else if ((switchInfo.getType().compareTo(\"light\") == 0)\r\n\t\t\t\t|| (switchInfo.getType().compareTo(\"circulator\") == 0)) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 255 * 100;\r\n\t\t\t\tif (tmp == 0)\r\n\t\t\t\t\treturn \"OFF\";\r\n\t\t\t\telse if (tmp == 100)\r\n\t\t\t\t\treturn \"ON\";\r\n\t\t\t\treturn \"ON \" + tmp + \"%\";\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic String updateDeviceStatus(String xml) throws Exception {\n\t\tDeviceManager deviceManager = new DeviceManager();\n\t\tAlertType alertType = IMonitorUtil.getAlertTypes().get(\n\t\t\t\tConstants.DEVICE_STATE_CHANGED);\n\t\t// Get the Device Id.\n\t\t// Save the alerts.\n\t\t// Save the status.\n\n // Save the alert\n\t\tQueue<KeyValuePair> queue = IMonitorUtil.extractCommandsQueueFromXml(xml);\n\t\t\n\t\tString generatedDeviceId = IMonitorUtil.commandId(queue,Constants.DEVICE_ID);\n\t\tString imvg = IMonitorUtil.commandId(queue,Constants.IMVG_ID);\n\t\t\n\t\tString referenceTimeStamp = IMonitorUtil.commandId(queue, \"IMVG_TIME_STAMP\");\n\t\tSimpleDateFormat time = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = (Date) time.parse(referenceTimeStamp);\n\t\t} catch (ParseException e) \n\t\t{\n\t\t\tdate = new Date();\n\t\t\tLogUtil.error(\"Error while parsing Reference Time Stamp: \"+ referenceTimeStamp);\n\t\t}\n\t\tXStream stream = new XStream();\n\t\tDevice device=deviceManager.getDeviceByGeneratedDeviceId(generatedDeviceId);\n\t\tString deviceStatus= null;\n\t\tString acmode= null;\n\t\tString acSwing= null;\n\t\tString Fanspeed= null;\n\t\tString actemparature= null;\n\t\tString acsetpoint= null;\n\t\tString alexaDeviceState = null;\n\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.SWITCH_DIMMER_STATE);\n\t\tif(device.getDeviceType().getName().equalsIgnoreCase(\"Z_WAVE_DOOR_LOCK\"))\n\t\t{\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.DOOR_LOCK_STATE);\n\t\t}\n\t\telse if(device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_MOTOR_CONTROLLER))\n\t\t{\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.PERCENTAGE);\n\t\t}\n\t\t/* if(device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_DIMMER) || (device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_SWITCH)))*/\n\t\t if(device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_SWITCH))\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.SWITCH_DIMMER_STATE);\n AlertTypeManager alertTypeManager = new AlertTypeManager();\n\t\t\t\n\t\t\tif(deviceStatus == \"1\" || deviceStatus.equals(\"1\") ){\n\t\t\t\tString deviceOn = \"DEVICE_ON\";\n\t\t\t\talexaDeviceState = \"ON\";\n\t\t\t\tAlertType alert = alertTypeManager.getAlertTypeByDetails(deviceOn);\n\t\t\t\tQueue<KeyValuePair> resultQueue = updateAlertAndExecuteRule(xml,\n\t\t\t\t\t\talert);\n\t\t\t\t\n\t\t\t}else if(deviceStatus == \"0\" || deviceStatus.equals(\"0\")){\n\t\t\t\t\n\t\t\t\tString deviceOff = \"DEVICE_OFF\";\n\t\t\t\talexaDeviceState = \"OFF\";\n\t\t\t\tAlertType alert = alertTypeManager.getAlertTypeByDetails(deviceOff);\n\t\t\t\tQueue<KeyValuePair> resultQueue = updateAlertAndExecuteRule(xml,\n\t\t\t\t\t\talert);\n\t\t\t}\n\t\t\t\n\t\t\t/*Naveen added on 9th Feb 2018\n\t\t\t * This part of code is used to update device to alexa end point\n\t\t\t * Send only for alexa user\n\t\t\t */\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tcheckTokenAndUpdateDeviceToAlexaEndpoint(imvg,device,alexaDeviceState,null);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\t\n \t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tif(device.getDeviceType().getName().equalsIgnoreCase(\"Z_WAVE_AC_EXTENDER\"))\n\t\t{\n\t\t\t\n\t\t\tif(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"0\"))\n\t\t\t{\n\t\t\tacmode = IMonitorUtil.commandId(queue,Constants.AC_MODE_CHANGED);\n\t\t\tif(acmode.equals(\"0\"))\n\t\t\t{\n\t\t\t\tdeviceStatus =\"0\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tdeviceStatus =\"22\";\n\t\t\t}\n\t\t\tdeviceManager.updateCommadParamAndFanModesOfDeviceByGeneratedId(generatedDeviceId, imvg, deviceStatus, acmode);\n\t\t\t}\n\t\t\telse if(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"1\"))\n\t\t\t{\n\t\t\tacsetpoint = IMonitorUtil.commandId(queue,Constants.AC_THERMOSTATSETPOINTTYPE);\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.AC_TEMPERATURE_STATE);\n\t\t\tdeviceManager.changeDeviceLastAlertAndStatusAlsoSaveAlert(generatedDeviceId, alertType, deviceStatus, date);\n\t\t\t\n\t\t\t//Updating for Alexa\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tcheckTokenAndUpdateDeviceToAlexaEndpoint(imvg, device, deviceStatus, acmode);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\t\n\t\t\t} \n\t\t\telse if(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"2\"))\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**Kantharaj is changed due to When FanSpeed is controlled from Local iMVG will send\n\t\t\t\t * 1-Low\n\t\t\t\t * 5-Medium\n\t\t\t\t * 3-High\n\t\t\t\t * \n\t\t\t\t * In CMS Fan Speed is saved as below \n\t\t\t\t * 1-Low\n\t\t\t\t * 2-Medium\n\t\t\t\t * 3-High\n\t\t\t\t * \n\t\t\t\t * \n\t\t\t\t * **/\n\t\t\t\t\n\t\t\t\t\tFanspeed=IMonitorUtil.commandId(queue,Constants.AC_FAN_MODE_CHANGED);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(Fanspeed.equals(\"1\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tFanspeed=\"1\";\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(Fanspeed.equals(\"5\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tFanspeed=\"2\";\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(Fanspeed.equals(\"3\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tFanspeed=\"3\";\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tdeviceManager.updateFanModesOfDeviceByGeneratedId(generatedDeviceId, imvg, Fanspeed,1);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} \n\t\t\telse if(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"3\"))\n\t\t\t{\n\t\t\t\tacSwing=IMonitorUtil.commandId(queue,Constants.AC_SWING_CONTROL);\n\t\t\t\tdeviceManager.updateFanModesOfDeviceByGeneratedId(generatedDeviceId, imvg, acSwing,0);\n\t\t\t} \n\t\t\telse if(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"4\"))\n\t\t\t{\n\t\t\t\t\n\t\t\t\tacmode = IMonitorUtil.commandId(queue,Constants.AC_MODE_CHANGED);\n\t\t\t\t//LogUtil.info(\"acmode----\"+acmode);\n\t\t\t\tif(!(acmode.equals(\"6\")))\n\t\t\t\t{\n\t\t\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.AC_TEMPERATURE_STATE);\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdeviceStatus=\"22\";\n\t\t\t\t}\n\t\t\t\tFanspeed=IMonitorUtil.commandId(queue,Constants.AC_FAN_MODE_CHANGED);\n\t\t\t//\tLogUtil.info(\"Fanspeed---\"+Fanspeed);\n\t\t\t\t\n\t\t\t\tString FanModevalue=\"1\";\n\t\t\t\tif(Fanspeed.equals(\"1\"))\n\t\t\t\t{\n\t\t\t\t\tFanspeed=\"1\";\t\n\t\t\t\t}\n\t\t\t\telse if(Fanspeed.equals(\"5\"))\n\t\t\t\t{\n\t\t\t\t\tFanspeed=\"2\";\t\n\t\t\t\t}\n\t\t\t\telse if(Fanspeed.equals(\"3\"))\n\t\t\t\t{\n\t\t\t\t\tFanspeed=\"3\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tacSwing=IMonitorUtil.commandId(queue,Constants.AC_SWING_CONTROL);\n\t\t\t\tdeviceManager.updateAllforacOfDeviceByGeneratedId(generatedDeviceId, imvg, deviceStatus, acmode,Fanspeed,acSwing);\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t} \n\t\t}\n\t\tif(device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_DIMMER))\n\t\t{\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.SWITCH_DIMMER_STATE);\n\t\t\t\n\t\t\t/*Naveen added on 9th Feb 2018\n\t\t\t * This part of code is used to update device to alexa end point\n\t\t\t * Send only for alexa user\n\t\t\t */\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tcheckTokenAndUpdateDeviceToAlexaEndpoint(imvg,device,deviceStatus,null);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\t\n\t\t\tdeviceManager.changeDeviceLastAlertAndStatusAlsoSaveAlertAndCheckArm(generatedDeviceId, alertType, deviceStatus, date);\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\tdeviceManager.changeDeviceLastAlertAndStatusAlsoSaveAlertAndCheckArm(generatedDeviceId, alertType, deviceStatus, date);\n\t\t}\n\t\t\n//\t\tSWITCH_DIMMER_STATE\n//\t\tPreparing the return queue.\n\t\tQueue<KeyValuePair> resultQueue = new LinkedList<KeyValuePair>();\n\t\tresultQueue.add(new KeyValuePair(Constants.CMD_ID,\n\t\t\t\tConstants.DEVICE_ALERT_ACK));\n\t\tresultQueue.add(new KeyValuePair(Constants.TRANSACTION_ID, IMonitorUtil\n\t\t\t\t.commandId(queue, Constants.TRANSACTION_ID)));\n\t\tresultQueue.add(new KeyValuePair(Constants.IMVG_ID, IMonitorUtil\n\t\t\t\t.commandId(queue, Constants.IMVG_ID)));\n\t\tresultQueue\n\t\t\t\t.add(new KeyValuePair(Constants.DEVICE_ID, generatedDeviceId));\n\t\t\n\t\n\t\treturn stream.toXML(resultQueue);\n\t}", "public Short getClStatus() {\r\n\t\treturn clStatus;\r\n\t}", "public InvoiceOrderLineStatus getOrderLineStatus() {\r\n if (invoicedAgreements.size() == 0 || invoicedAgreements.get(0).getInvoicedOrderLines().size() == 0) return NO_ORDER_LINES;\r\n return invoicedAgreements.get(0).getInvoicedOrderLines().get(0).getStatus();\r\n }", "@Override\n public List<Object> getModemCommLog(Map<String, Object> condition) {\n return null;\n }", "String getDataStatus();", "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 }", "@Override\n public void updateDevice() throws RemoteHomeConnectionException, RemoteHomeManagerException {\n String[] statusResponse = m.sendCommandWithAnswer(getDeviceId(), \"sc\").split(\"\\\\|\");\n if (!statusResponse[0].equals(\"1\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type: \"+statusResponse[0], RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n if (statusResponse[1].equals(\"c\")) {\n if (statusResponse[2].equals(\"1\")) {\n setCurrentState(true);\n } else {\n setCurrentState(false);\n }\n if (statusResponse[3].equals(\"1\")) {\n setOnWhenAppliedPower(false);\n } else {\n setOnWhenAppliedPower(true);\n }\n if (statusResponse[4].equals(\"1\")) {\n setOnWhenMovementDetected(true);\n } else {\n setOnWhenMovementDetected(false);\n }\n setConfiguredPeriod(Integer.parseInt(statusResponse[5]));\n setCurrentCounter(Integer.parseInt(statusResponse[6]));\n setTimestamp(System.currentTimeMillis());\n }\n statusResponse = m.sendCommandWithAnswer(getDeviceId(), \"sa\").split(\"\\\\|\");\n if (!statusResponse[0].equals(\"1\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type: \"+statusResponse[0], RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n if (statusResponse[1].equals(\"a\")) {\n setAlarmStatus(Integer.parseInt(statusResponse[2])); \n if (statusResponse[3].equals(\"1\")) {\n setAlarmSensorCurrentState(true);\n } else {\n setAlarmSensorCurrentState(false);\n } \n setAlarmEnterTimeout(Integer.parseInt(statusResponse[4]));\n setAlarmLeaveTimeout(Integer.parseInt(statusResponse[5]));\n setTimestamp(System.currentTimeMillis());\n\n }\n }", "@Override\n\tpublic List<Object> getModemList(Map<String, Object> condition) {\n\t\treturn null;\n\t}", "private void getStatus(APDU apdu) {\r\n\t\tbyte buffer[] = apdu.getBuffer();\r\n\t\toffset = apdu.getOffsetCdata();\r\n\t\t// putting state\r\n\t\tbuffer[offset++] = state;\r\n\t\t// putting mifare state\r\n\t\tbuffer[offset++] = (image.isActive()) ? MIFARE_STATE_ACTIVE\r\n\t\t\t\t: MIFARE_STATE_INACTIVE;\r\n\t\t// putting version\r\n\t\tbuffer[offset++] = APP_VERSION;\r\n\t\t// putting try count remaining\r\n\t\tbuffer[offset] = mPIN.getTriesRemaining();\r\n\t\t// transmitting\r\n\t\tapdu.setOutgoingAndSend(apdu.getOffsetCdata(), (short) 0x04);\r\n\t}", "protected String getGPIBStatus() {\n\n // check for errors\n if ( (m_ibsta.getValue() & ERR) != 0) {\n // return the GPIB Status because an error occurred\n int err = m_iberr.getValue();\n\n // make a nice String with the GPIB Status\n String str = String.format(Locale.US, \"GPIB Status: ibsta = 0x%x; iberr = %d (%s)\\n\",\n m_ibsta.getValue(), err,\n (err<ErrorMnemonic.length ? ErrorMnemonic[err] : \"Error number not recognized\"));\n\n // log event\n m_Logger.finer(str);\n //m_Comm_Logger.finer(str);\n\n return str;\n } else {\n // return an empty String\n return \"\";\n }\n }", "public ProcessModelStatus getStatus() {\r\n return this.status;\r\n }", "@SuppressWarnings(\"unused\")\n public String getStatusString() {\n\n switch (this.status) {\n case SCREEN_OFF:\n return \"screen off\";\n\n case SCREEN_ON:\n return \"screen on\";\n\n default:\n return \"unknown\";\n }\n }", "private char getGameStatus() {\n int row;\n int col;\n\n Map<Character, Integer> lineCounts = new HashMap<>();\n\n for (row = 0; row < this.boardSize; row++) {\n countLine(getLineStatus(this.board[row]), lineCounts);\n }\n\n for (col = 0; col < this.boardSize; col++) {\n countLine(getLineStatus(getColumn(col)), lineCounts);\n }\n\n countLine(getLineStatus(getMajorDiag()), lineCounts);\n countLine(getLineStatus(getSubDiag()), lineCounts);\n\n boolean player1Won = lineCounts.getOrDefault(players[0].symbol, 0) > 0;\n boolean player2Won = lineCounts.getOrDefault(players[1].symbol, 0) > 0;\n boolean boardIsFull = lineCounts.getOrDefault(' ', 0) == 0;\n if (player1Won && player2Won) // both players completed lines, it is a tie\n return 'T';\n if (player1Won)\n return players[0].symbol;\n if (player2Won)\n return players[1].symbol;\n if (boardIsFull)\n return 'T';\n return '?';\n }", "public void getCommanderStatus() {\n getRanks();\n getCommanderPosition();\n getCredits();\n }", "@Override\n public int deleteModemStatus(int modemId, Code code) {\n return 0;\n }", "@Override\n\tpublic List<Map<String, Object>> getValidModemList(Map<String, Object> condition) {\n\t\treturn null;\n\t}", "@Override\n public List<Object> getMiniChartModemTypeByCommStatus(\n Map<String, Object> condition) {\n return null;\n }", "public Recording.Status getStatus() {\n\t\treturn status;\n\t}", "@Override\n public List<Object> getModemIdListByDevice_serial(String device_serial) {\n return null;\n }", "public String getStatusLine() {\n\n StringBuilder builder = new StringBuilder(SL_11_START.length() + 4 + message.length());\n builder.append(SL_11_START).append(code).append(' ').append(message);\n return builder.toString();\n }", "@Override\n\tprotected void GetDataFromNative() {\n\t\tAutoGrease = CAN1Comm.Get_AutoGreaseOperationStatus_3449_PGN65527();\n\t\tQuickcoupler = CAN1Comm.Get_QuickCouplerOperationStatus_3448_PGN65527();\n\t\tRideControl = CAN1Comm.Get_RideControlOperationStatus_3447_PGN65527();\n\t\tBeaconLamp = CAN1Comm.Get_BeaconLampOperationStatus_3444_PGN65527();\n\t\tMirrorHeat = CAN1Comm.Get_MirrorHeatOperationStatus_3450_PGN65527();\n\t\tFineModulation = CAN1Comm.Get_ComponentCode_1699_PGN65330_EHCU();\n\t}", "public synchronized String getStatus(){\n\t\treturn status;\n\t}", "public MPDStatus getMpdStatus() {\n return mpdStatus;\n }", "public static native int getAecStatus();", "public int getSelectedTelObsComp()\n\t{\n\t\treturn _avTable.getInt( ATTR_SELECTED_TEL_OBS_COMP , 0 ) ;\n\t}", "public ui.StatusLed getStatusLed() {\n return this.statusLed;\n }", "@Override\n public Integer getModemCount(Map<String, String> condition) {\n return null;\n }", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "public Boolean isMSROnline() throws DeviceException;", "public static final native int getChargingCurrent();", "public byte[] getStatus() {\r\n return status;\r\n }", "public String getMediumType() { return Constants.medium_MODEM; }", "@Override\n public List<Object> getModemOperationLog(Map<String, Object> condition) {\n return null;\n }", "public EnumVar getStatus() {\n return status;\n }", "public String getStatus() {\r\n return (String) getAttributeInternal(STATUS);\r\n }", "@Override\n public List<Modem> getModemWithGpio(HashMap<String, Object> condition) {\n return null;\n }", "private void sendDeviceStatus() {\n if (hasRecover && zWaveSubDevice != null) {\n ZWaveDeviceEvent zde = new ZWaveDeviceEvent();\n try {\n PropertyUtils.copyProperties(zde, zWaveSubDevice.getZwavedevice());\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n zde.setReport(zrb.getReport());\n zde.setEventtime(new Date());\n\n JMSUtil.sendmessage(IRemoteConstantDefine.WARNING_TYPE_DEVICE_STATUS, zde);\n }\n }", "public String getStatus()\n\t\t{\n\t\t\tElement statusElement = XMLUtils.findChild(mediaElement, STATUS_ELEMENT_NAME);\n\t\t\treturn statusElement == null ? null : statusElement.getTextContent();\n\t\t}", "public String status(String host, String port) {\n\t\tString target = \"\";\n\t\tSocket sock = null;\n\t\ttry {\n\t\t\tString tmp = \"\";\n\t\t\tif (port.contains(\"/\")) {\n\t\t\t\ttmp = port.split(\"/\")[0];\n\t\t\t} else {\n\t\t\t\ttmp = port;\n\t\t\t}\n\t\t\tsock = new Socket(host, Integer.parseInt(tmp));\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Socket[\" + host + \":\" + port + \"] connect refused\");\n\t\t\treturn \"death\";\n\t\t}\n\t\tBufferedReader reader = null;\n\t\tOutputStream outstream = null;\n\t\ttry {\n\t\t\toutstream = sock.getOutputStream();\n\t\t\toutstream.write(\"stat\".getBytes());\n\t\t\toutstream.flush();\n\t\t\tsock.shutdownOutput();\n\n\t\t\treader = new BufferedReader(new InputStreamReader(sock.getInputStream()));\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tif (line.indexOf(\"Mode: \") != -1) {\n\t\t\t\t\ttarget = line.replaceAll(\"Mode: \", \"\").trim();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLOG.error(\"Read ZK buffer has error,msg is \" + ex.getMessage());\n\t\t\treturn \"death\";\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t\tif (reader != null) {\n\t\t\t\t\treader.close();\n\t\t\t\t}\n\t\t\t\tif (outstream != null) {\n\t\t\t\t\toutstream.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLOG.error(\"Close read has error,msg is \" + ex.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn target;\n\t}", "public boolean getDmaDREQ();", "com.google.protobuf.ByteString\n getSwstatusBytes();", "public String getStatus() {\r\n if (status == null)\r\n status = cells.get(7).findElement(By.tagName(\"div\")).getText();\r\n return status;\r\n }", "public NetworkAdapterStatus status() {\n return this.status;\n }", "public String getStatus() {\n return (String) getAttributeInternal(STATUS);\n }", "public EdgeStatus getStatus() {\n return ioStatus.get();\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public CMnServicePatch.RequestStatus getStatus() {\n return status;\n }", "public String getStatus () {\r\n return status;\r\n }", "public int getStatus(int mCode)\r\n\t {\r\n\t\t return MRs[mCode].getStatus();\r\n\t }", "public void setCommStatus(int alliance, int station, boolean isFMSAlive,\n boolean isRobotAlive, boolean isTeamBypassed, boolean isESTOPPED) {\n //We default to not being ready.\n Color robCom = NOT_READY;\n Color dsCom = NOT_READY;\n //System.out.println(\"setting comm status...\");\n if (isESTOPPED) {\n robCom = ESTOPPED;\n dsCom = ESTOPPED;\n } else if (!isTeamBypassed) {\n if (isRobotAlive) {\n robCom = READY;\n }\n if (isFMSAlive) {\n dsCom = READY;\n }\n } else if (isTeamBypassed) {\n robCom = BYPASSED;\n dsCom = BYPASSED;\n }\n\n //Decision off of the alliance and position so we set the right control\n // values.\n if (alliance == FieldAndRobots.RED) {\n if (station == FieldAndRobots.ONE) {\n robotComStatusRedTeam1.setBackground(robCom);\n dsComStatusRedTeam1.setBackground(dsCom);\n } else if (station == FieldAndRobots.TWO) {\n robotComStatusRedTeam2.setBackground(robCom);\n dsComStatusRedTeam2.setBackground(dsCom);\n } else if (station == FieldAndRobots.THREE) {\n robotComStatusRedTeam3.setBackground(robCom);\n dsComStatusRedTeam3.setBackground(dsCom);\n } else {\n System.out.println(\"ERROR - SET COM 1\");\n }\n } else if (alliance == FieldAndRobots.BLUE) {\n if (station == FieldAndRobots.ONE) {\n robotComStatusBlueTeam1.setBackground(robCom);\n dsComStatusBlueTeam1.setBackground(dsCom);\n } else if (station == FieldAndRobots.TWO) {\n robotComStatusBlueTeam2.setBackground(robCom);\n dsComStatusBlueTeam2.setBackground(dsCom);\n } else if (station == FieldAndRobots.THREE) {\n robotComStatusBlueTeam3.setBackground(robCom);\n dsComStatusBlueTeam3.setBackground(dsCom);\n } else {\n System.out.println(\"ERROR - SET COM 2\");\n }\n } else {\n System.out.println(\"ERROR - SET COM 3\");\n }\n }", "public int getStatus()\r\n {\r\n return mStatus;\r\n }", "@Field(10) \n\tpublic byte OrderStatus() {\n\t\treturn this.io.getByteField(this, 10);\n\t}", "public int getStatus() {\n return mStatus;\n }", "public static String getStatus(Connection conn)\n {\n String status = \"Current Status\\n---------------\\nRooms: \";\n if(RoomDB.exist(conn) == -1)\n {\n status += \"No Database\\n\";\n }\n else if(RoomDB.exist(conn) == 0)\n {\n status += \"Empty\\n\";\n }\n else\n {\n status += \"Full\\n\";\n }\n status += \"Reservations: \";\n if(ResDB.exist(conn) == -1)\n {\n status += \"No Database\\n\";\n }\n else if(ResDB.exist(conn) == 0)\n {\n status += \"Empty\\n\";\n }\n else\n {\n status += \"Full\\n\";\n }\n \n return status;\n }", "public int getStatus()\r\n\t{\r\n\t\treturn this.m_status;\r\n\t}", "public String UpdatedDeviceStatus(String xml) throws Exception {\n\t\tAlertType alertType=new AlertType();\n\t\tDeviceManager deviceManager = new DeviceManager();\n\t\tQueue<KeyValuePair> queue = IMonitorUtil.extractCommandsQueueFromXml(xml);\t\n\t\tqueue.poll();\n\t\tKeyValuePair element=queue.poll();\n\t\tString transationid=IMonitorUtil.commandId(element, Constants.TRANSACTION_ID);\n\t\telement=queue.poll();\n\t\tString imvgid=IMonitorUtil.commandId(element, Constants.IMVG_ID);\n\t\telement=queue.poll();\n\t\t//String config=IMonitorUtil.commandId(element, Constants.CONFIG_PARAM);\n\t\twhile(queue.size()!=2)\n\t\t{\n\t\t\telement=queue.poll();\n\t\t\tString generatedDeviceId=IMonitorUtil.commandId(element, Constants.DEVICE_ID);\n\t\t\tDeviceManager devicemanger=new DeviceManager();\n\t\t\tDevice device=devicemanger.getDeviceWithConfiguration(generatedDeviceId);\n\t\t\tif(device!=null)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tDeviceType deviceType=device.getDeviceType();\n\t\t\t\tString devicetype=deviceType.getName();\n\t\t\t\t\n\t\t\t\telement=queue.poll();\n\t\t\t\tString deviceStatus=IMonitorUtil.commandId(element, Constants.DEVICE_STATUS);\n\t\t\t\t\n\t\t\t\telement=queue.poll();\n\t\t\t\tString deviceLastAlert=IMonitorUtil.commandId(element,\"ALERT_TYPE\");\n\t\t\t\tif(deviceLastAlert.equals(\"1\"))\n\t\t\t\talertType = IMonitorUtil.getAlertTypes().get(Constants.DEVICE_UP);\n\t\t\t\tif(deviceLastAlert.equals(\"0\"))\n\t\t\t\talertType = IMonitorUtil.getAlertTypes().get(Constants.DEVICE_DOWN);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif((devicetype.equals(\"Z_WAVE_MOTOR_CONTROLLER\"))||(devicetype.equals(\"Z_WAVE_AC_EXTENDER\"))||(devicetype.equals(\"Z_WAVE_DOOR_SENSOR\")))\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tdeviceManager.updateDeviceAlert(generatedDeviceId,alertType);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if((devicetype.equals(\"IP_CAMERA\")))\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus.equals(\"0\"))\n\t\t\t\t\tdeviceStatus=\"1\";\n\t\t\t\t\telse if(deviceStatus.equals(\"1\"))\n\t\t\t\t\tdeviceStatus=\"0\";\n\t\t\t\t\t\n\t\t\t\t\tdeviceManager.updateDeviceEnableStatus(generatedDeviceId, deviceStatus,alertType);\n\t\t\t\t}\n\t\t\t\telse if((devicetype.equals(\"Z_WAVE_SWITCH\")))\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus.equals(\"-1\"))\n\t\t\t\t\t\tdeviceStatus=\"0\";\n\t\t\t\t\t\n\t\t\t\t\tif(deviceStatus.equals(\"255\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdeviceStatus=\"1\";\n\t\t\t\t\t\talertType = IMonitorUtil.getAlertTypes().get(Constants.DEVICE_UP);\n\t\t\t\t\t}\n\t\t\t\tdeviceManager.updateDeviceStatusAndAlert(generatedDeviceId, deviceStatus,alertType);\n\t\t\t\t}\n\t\t\t\telse if((devicetype.equals(\"Z_WAVE_DIMMER\")))\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus.equals(\"-1\"))\n\t\t\t\t\tdeviceManager.updateDeviceAlert(generatedDeviceId,alertType);\n\t\t\t\t\telse\n\t\t\t\t\tdeviceManager.updateDeviceStatusAndAlert(generatedDeviceId, deviceStatus,alertType);\n\t\t\t\t}\n\t\t\t\telse if((devicetype.equals(\"Z_WAVE_MINIMOTE\"))||((devicetype.equals(\"Z_WAVE_HEALTH_MONITOR\")))||((devicetype.equals(\"Z_WAVE_MULTI_SENSOR\")))||((devicetype.equals(\"Z_WAVE_LCD_REMOTE\")))||((devicetype.equals(\"Z_WAVE_PIR_SENSOR\"))))\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus.equals(\"-1\"))\n\t\t\t\t\tdeviceStatus=\"0\";\n\t\t\t\t\tdeviceManager.updateDeviceStatusAndAlert(generatedDeviceId, deviceStatus,alertType);\n\t\t\t\t}\n\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tqueue.poll();\n\t\t\t\tqueue.poll();\n\t\t\t}\n\t\t}\n\t\n//Preparing the return queue.\n\t\tQueue<KeyValuePair> resultQueue = new LinkedList<KeyValuePair>();\n\t\tresultQueue.add(new KeyValuePair(Constants.CMD_ID,Constants.UPDATED_DEVICE_STATUS_ACK));\n\t\tresultQueue.add(new KeyValuePair(Constants.TRANSACTION_ID,transationid));\n\t\tresultQueue.add(new KeyValuePair(Constants.IMVG_ID,imvgid ));\n\t\tXStream stream = new XStream();\n\t\treturn stream.toXML(resultQueue);\n\t}", "public String GetLcdInfo(){\r\n\t\t\tDisplayMetrics dm = new DisplayMetrics();\r\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\r\n\t\t\tint screenWidth = dm.widthPixels;\r\n\t\t\tint screenHeigh = dm.heightPixels;\r\n\t\t\tString mlcd = screenWidth+\"x\"+ screenHeigh;\r\n\t\t\treturn mlcd;\r\n\t}", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getCmndLine()\n {\n return cmndLine;\n }", "public int getReadStatus() {\n return (readStatus.getUnsignedInt());\n }", "public Short getStatus() {\n\t\treturn status;\n\t}" ]
[ "0.615937", "0.5898066", "0.5583597", "0.5580692", "0.5438945", "0.54277146", "0.54175955", "0.54144895", "0.5356078", "0.53426945", "0.5336119", "0.5328273", "0.5311003", "0.53021073", "0.52736354", "0.5245764", "0.5240431", "0.52308357", "0.52011275", "0.51653934", "0.5154293", "0.5136343", "0.5104608", "0.5095505", "0.5092904", "0.50720006", "0.5062115", "0.5051605", "0.50326294", "0.50180864", "0.5006717", "0.5000051", "0.49924666", "0.4983573", "0.49740186", "0.49740186", "0.49740186", "0.49740186", "0.49740186", "0.4962571", "0.49483284", "0.49471337", "0.49307835", "0.49259228", "0.49236438", "0.4921169", "0.49150404", "0.49025008", "0.48953748", "0.48860416", "0.48854467", "0.48644218", "0.48497024", "0.4845117", "0.48423302", "0.483379", "0.48303518", "0.48230428", "0.48096234", "0.4796161", "0.47930092", "0.47898713", "0.4789515", "0.4783071", "0.4777127", "0.4773736", "0.4762466", "0.47490275", "0.4747816", "0.47477314", "0.4746866", "0.47460434", "0.47327414", "0.47301394", "0.47290248", "0.4726667", "0.4722696", "0.4721497", "0.4720892", "0.4717529", "0.4714126", "0.47139382", "0.4707177", "0.47005835", "0.4699127", "0.4691369", "0.46905178", "0.46855122", "0.46779776", "0.46768984", "0.46754843", "0.46754843", "0.46754843", "0.46754843", "0.46754843", "0.46754843", "0.46754843", "0.46737266", "0.4670458", "0.46694875" ]
0.6638474
0
Gets the number of bytes in the receive queue.
public int getQueueStatus() throws FTD2XXException { IntByReference reference = new IntByReference(); ensureFTStatus(ftd2xx.FT_GetQueueStatus(ftHandle, reference)); return reference.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public abstract long getReceivedBytesCount();", "int getNumBufferedBytes() {\n ChannelBuffer buf;\n int IOQueued;\n for (IOQueued = 0, buf = inQueueHead;\n buf != null; buf = buf.next) {\n IOQueued += buf.nextAdded - buf.nextRemoved;\n }\n return IOQueued;\n }", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public int size() {\n return this.queue.size();\n }", "int getQueueSize();", "public int queueSize() {\n\t\treturn queue.size();\t\n\t}", "public int size() {\n return queue.size();\n }", "public int size() {\n return _queue.size();\n }", "public long getQueueSize(){\n return queue.size();\n }", "public int size() {\n\t\treturn queue.size();\n\t}", "public Long getBytesReceived() {\n\t\treturn bytesReceived;\n\t}", "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "public int getCount() {\n return queue.size();\n }", "public int getQueueSize() {\r\n\t\treturn this.queue.size();\r\n\t}", "public int size() {\n processQueue();\n return weakCache.size();\n }", "public int getQueueSize() {\n return queue.getQueueSize();\n }", "public int getOutgoingQueueSize();", "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 size() {\n System.out.println();\n System.out.println(\"The size of the queue is: \" + queue.size());\t \n return queue.size();\n }", "int getNetTransferMsgsCount();", "public abstract int getQueueLength();", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "public int getReceiveBufferSize() {\n return soRcvBuf;\n }", "public int size()\n\t{\n\t\treturn requestQueue != null ? requestQueue.size() : 0;\n\t}", "public long getMessageReceivedCount() {\n return messageMetrics.received.get();\n }", "public int queueSize() {\n return executor.getQueue().size();\n }", "public int getDequeueCount() {\n\t\treturn m_DequeueCount;\n\t}", "long getReceivedEventsCount();", "final int getQueueSize() {\n // suppress momentarily negative values\n return Math.max(0, sp - base);\n }", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }", "public long getByteCount() {\n return byteCount;\n }", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "public int numberOfBytes() {\n return this.data.size();\n }", "public int getRunnableCount() {\n return queue.size();\n }", "public int getNetTransferMsgsCount() {\n return netTransferMsgs_.size();\n }", "public synchronized int getSize() {\r\n\t\treturn queueManagers.size();\r\n\t}", "public int size() \r\n {\r\n if(measurementQueue==null) return 0;\r\n \r\n return measurementQueue.size();\r\n }", "public final int bytesConsumed() {\n/* 218 */ return this.bytesConsumed;\n/* */ }", "public int size() {\n return bytes.length;\n }", "public int amountOfBuffs() {\r\n return buffs.size();\r\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "public int inputQueueSize() {\n\t\tsynchronized (inputQueue) {\n\t\t\treturn inputQueue.size();\n\t\t}\n\t}", "public static int countRecievedBytes(\n\t Class<? extends TrackedMessage> messageClassType) {\n\treturn TrackedMessage.countReceivedBytes(messageClassType, -1);\n }", "public int size()\n\t{\n\t\tif(isEmpty())\n\t\t\treturn 0;\n\t\tif(isFull())\n\t\t\treturn queueArray.length;\n\t\t\n\t\tint i=front;\n\t\tint sz=0;\n\t\tif(front<=rear)\n\t\t\twhile(i<=rear)\n\t\t\t{\n\t\t\t\tsz++;\n\t\t\t\ti++;\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\twhile(i<=queueArray.length-1)\n\t\t\t{\n\t\t\t\tsz++;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ti=0;\n\t\t\twhile(i<=rear)\n\t\t\t{\n\t\t\t\tsz++;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\treturn sz;\n\t}", "public final int size()\r\n/* 41: */ {\r\n/* 42:215 */ long after = lvConsumerIndex();\r\n/* 43: */ for (;;)\r\n/* 44: */ {\r\n/* 45:219 */ long before = after;\r\n/* 46:220 */ long currentProducerIndex = lvProducerIndex();\r\n/* 47:221 */ after = lvConsumerIndex();\r\n/* 48:222 */ if (before == after)\r\n/* 49: */ {\r\n/* 50:224 */ long size = currentProducerIndex - after >> 1;\r\n/* 51:225 */ break;\r\n/* 52: */ }\r\n/* 53: */ }\r\n/* 54: */ long size;\r\n/* 55:230 */ if (size > 2147483647L) {\r\n/* 56:232 */ return 2147483647;\r\n/* 57: */ }\r\n/* 58:236 */ return (int)size;\r\n/* 59: */ }", "public int queueArrayLength(){\n\t\treturn queueArray.length;\n\t}", "public int getNumberOfBytes() {\n\treturn this.type.getNumberOfBytes();\n }", "public int availableBytes()\n throws IOException {\n\n // Do not know the available byte count\n return -1;\n }", "public final int Available() {\n\t\treturn m_rxlen;\n\t}", "public int getBufferSize() {\n return count;\n }", "public int numVehiclesInQueue() {\r\n\t\treturn vehiclesInQueue.size();\r\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}", "int getEnqueuedBlockRequestsNumber() {\n int count = 0;\n for (StdPeerMessage pm : sendQueue) {\n if (pm.type == StdPeerMessage.REQUEST) {\n count++;\n }\n }\n return count;\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 synchronized int size() {\n return count;\n }", "public native long getSentByteCount()\n throws IOException, IllegalArgumentException;", "public long getPendingMessageCount() {\n return (long) this.incUpdateQueue.size();\n }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "int getSize() {\n synchronized (lock) {\n return cache.size();\n }\n }", "public int getQueueSize(String walGroupId) {\n Queue<Path> queue = queues.get(walGroupId);\n if (queue == null) {\n return 0;\n }\n return queue.size();\n }", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public long getByteCount()\n {\n return written;\n }", "public int getNumQueues() {\n return queues.size();\n }", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "@Override\n public abstract long getSentBytesCount();", "public int size() { return buffer.length; }", "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 static int getPendingRequests() {\n\t\treturn writeQueue.size() + requestsBeingSending.intValue();\n\t}", "public static int size_reply() {\n return (8 / 8);\n }", "@Override\n public int queueLength() {\n return this.job_queue.size();\n }", "public int size() {\n\t\tif (baos == null || baos.toByteArray() == null) return 0;\n\t\telse return baos.toByteArray().length;\n\t}", "public synchronized int size() {\r\n return size;\r\n }", "int getMsgCount();", "int getMsgCount();", "public int get_count() {\n return (int)getUIntBEElement(offsetBits_count(), 16);\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int get_size();", "public int get_size();", "public synchronized long size() {\n\t\treturn size;\n\t}", "Integer backlogCapacity();", "int getPayloadCount();", "public Integer getThreadPoolBlockingQueueSize() {\n String tc = getConfig().getProperty(THREAD_POOL_BLOCKING_QUEUE_SIZE).getValue();\n Integer ret = new Integer(DEFAULT_THREAD_POOL_BLOCKING_QUEUE_SIZE);\n if (tc != null){\n try {\n ret = Integer.valueOf(tc);\n } catch (Exception ex){\n ret = new Integer(DEFAULT_THREAD_POOL_BLOCKING_QUEUE_SIZE);\n }\n }\n return ret;\n }", "@Generated\n @Selector(\"countOfResponseBodyBytesReceived\")\n public native long countOfResponseBodyBytesReceived();", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\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 int getNbr_read() {\r\n\t\treturn nbrRead;\r\n\t}", "public int getDeliveredCount() {\n if (deliveredBuilder_ == null) {\n return delivered_.size();\n } else {\n return deliveredBuilder_.getCount();\n }\n }", "long getWriterQueueLength();", "public int getMsgCount() {\n return msg_.size();\n }", "public int getMsgCount() {\n return msg_.size();\n }", "public synchronized int getSize() {\n\t\treturn this.size;\n\t}", "public int size() {\n\t\t//Because we're the only consumer, we know nothing will be removed while\n\t\t//we're computing the size, so we know there are at least (rear - front)\n\t\t//elements already added.\n\t\treturn (int)(rear.get() - front.get());\n\t}", "public int getMessagesCount() {\n return messages_.size();\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 size() {\n synchronized (this.base) {\n return this.base.size();\n }\n }" ]
[ "0.7551008", "0.7368603", "0.73061055", "0.72344697", "0.7201219", "0.71903735", "0.7165864", "0.71649253", "0.7163343", "0.7159295", "0.71491617", "0.71322775", "0.70962685", "0.70572394", "0.7013676", "0.69981325", "0.6995697", "0.69770414", "0.6957902", "0.68919146", "0.68631977", "0.6862309", "0.6732167", "0.6730108", "0.6700499", "0.66739756", "0.6673936", "0.66722107", "0.6662872", "0.66587883", "0.6652905", "0.6636187", "0.6634803", "0.6625423", "0.6625348", "0.66132706", "0.66084874", "0.6585547", "0.652136", "0.6517979", "0.65119153", "0.65084904", "0.6484658", "0.6456785", "0.642716", "0.642556", "0.6425258", "0.6421825", "0.6420107", "0.64099437", "0.6402739", "0.63677824", "0.6350092", "0.6342826", "0.63421977", "0.6332007", "0.63136923", "0.6313679", "0.6311458", "0.6306023", "0.6306023", "0.6306023", "0.62983686", "0.6295349", "0.62926733", "0.62859464", "0.62732077", "0.627014", "0.6269105", "0.62660617", "0.62608826", "0.6257658", "0.6249711", "0.6219609", "0.62057215", "0.6205212", "0.6193935", "0.6193935", "0.6186291", "0.61774975", "0.61774975", "0.61655825", "0.61655825", "0.61654687", "0.61600417", "0.61596984", "0.6154349", "0.6139319", "0.61365", "0.61306703", "0.612708", "0.6119616", "0.611832", "0.61166924", "0.6116031", "0.6116031", "0.61070967", "0.610216", "0.60988265", "0.60947347", "0.60870373" ]
0.0
-1
Gets the modem status and line status from the device.
public int[] getStatus() throws FTD2XXException { IntByReference lpdwAmountInRxQueue = new IntByReference(); IntByReference lpdwAmountInTxQueue = new IntByReference(); IntByReference lpdwEventStatus = new IntByReference(); ensureFTStatus(ftd2xx.FT_GetStatus(ftHandle, lpdwAmountInRxQueue, lpdwAmountInTxQueue, lpdwEventStatus)); return new int[] { lpdwAmountInRxQueue.getValue(), lpdwAmountInTxQueue.getValue(), lpdwEventStatus.getValue() }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EnumSet<DeviceStatus> getDeviceStatus() throws FTD2XXException {\n IntByReference modstat = new IntByReference();\n ensureFTStatus(ftd2xx.FT_GetModemStatus(ftHandle, modstat));\n return DeviceStatus.parseToEnumset(modstat.getValue());\n }", "public Status getDeviceStatus() {\n return mDeviceStatus;\n }", "public List<String> getCommandStatus() {\n\t\tList<Device> devices = DeviceClientSingleton.getDeviceList();\r\n\t\tList<String> commandStatus = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < devices.size(); i++) {\r\n\t\t\tString deviceData = DeviceClientSingleton.getDeviceData(devices.get(i).getDeviceId());\r\n\t\t\tcommandStatus.add(deviceData);\r\n\t\t\tif ((!deviceData.equals(\"\")) && (!deviceData.equals(\" \"))) {\r\n\t\t\t\tDeviceClientSingleton.removeDeviceData(devices.get(i).getDeviceId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn commandStatus;\r\n\t}", "public int getCBRStatus();", "public final TerminalStatusType getStatus()\n\t{\n\t\treturn status;\n\t}", "String getSwstatus();", "@Override\n public List<Object> getMiniChartCommStatusByModemType(\n Map<String, Object> condition) {\n return null;\n }", "TransmissionProtocol.Status getStatus();", "@GET\n @Path(\"/status\")\n @Produces(MediaType.TEXT_PLAIN)\n public String status() {\n Device device = getDevice();\n try {\n StreamingSession session = transportService.getSession(device.getId());\n return \"Status device:[\" + device.getId() + \"]\" + \" session [\" + session.toString() + \"]\";\n } catch (UnknownSessionException e) {\n return e.getMessage();\n }\n }", "public String getStatusLine() {\r\n\t\t\r\n\t\treturn statusLine;\r\n\t\r\n\t}", "public char getStatus()\r\n\t{\r\n\t\treturn status;\r\n\t}", "@Override\n public List<Object> getMiniChartCommStatusByModemType2(\n Map<String, Object> condition) {\n return null;\n }", "public StatusLine getStatusLine() {\n return statusLine;\n }", "public char getStatus() {\n\t\treturn status;\n\t}", "public String getHeaderType() { return \"modem\"; }", "public NetworkAdapterRdmaStatus rdmaStatus() {\n return this.rdmaStatus;\n }", "public DeviceManagementScriptDeviceState get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "public String getStatus() {\n\t\tString result = getName() + \"\\n-----------------------------\\n\\n\";\n\t\tfor(int i = 0; i < lines.size(); i++) {\n\t\t\tresult = result + lines.get(i).getStatus() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic List<String> getDeviceListModem(Map<String, Object> condition) {\n\t\treturn null;\n\t}", "public MrlComm getMrlComm() {\r\n return mrlComm;\r\n }", "public Integer getSmsStatus() {\r\n return smsStatus;\r\n }", "StatusLine getStatusLine();", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "@Override\n public List<Object> getModemSerialList(Map<String, Object> condition) {\n return null;\n }", "public int getSyncStatus();", "@Override\n public List<Object> getMiniChartCommStatusByModemType(\n Map<String, Object> condition, String[] arrFmtmessagecommalert) {\n return null;\n }", "public boolean getAtmStatus();", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}", "public String getUiStatus() {\n\t\tif (switchInfo.getType().compareTo(\"thermostat\") == 0) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 2;\r\n\t\t\t\treturn tmp.toString();\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t} else if ((switchInfo.getType().compareTo(\"light\") == 0)\r\n\t\t\t\t|| (switchInfo.getType().compareTo(\"circulator\") == 0)) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 255 * 100;\r\n\t\t\t\tif (tmp == 0)\r\n\t\t\t\t\treturn \"OFF\";\r\n\t\t\t\telse if (tmp == 100)\r\n\t\t\t\t\treturn \"ON\";\r\n\t\t\t\treturn \"ON \" + tmp + \"%\";\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic String updateDeviceStatus(String xml) throws Exception {\n\t\tDeviceManager deviceManager = new DeviceManager();\n\t\tAlertType alertType = IMonitorUtil.getAlertTypes().get(\n\t\t\t\tConstants.DEVICE_STATE_CHANGED);\n\t\t// Get the Device Id.\n\t\t// Save the alerts.\n\t\t// Save the status.\n\n // Save the alert\n\t\tQueue<KeyValuePair> queue = IMonitorUtil.extractCommandsQueueFromXml(xml);\n\t\t\n\t\tString generatedDeviceId = IMonitorUtil.commandId(queue,Constants.DEVICE_ID);\n\t\tString imvg = IMonitorUtil.commandId(queue,Constants.IMVG_ID);\n\t\t\n\t\tString referenceTimeStamp = IMonitorUtil.commandId(queue, \"IMVG_TIME_STAMP\");\n\t\tSimpleDateFormat time = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = (Date) time.parse(referenceTimeStamp);\n\t\t} catch (ParseException e) \n\t\t{\n\t\t\tdate = new Date();\n\t\t\tLogUtil.error(\"Error while parsing Reference Time Stamp: \"+ referenceTimeStamp);\n\t\t}\n\t\tXStream stream = new XStream();\n\t\tDevice device=deviceManager.getDeviceByGeneratedDeviceId(generatedDeviceId);\n\t\tString deviceStatus= null;\n\t\tString acmode= null;\n\t\tString acSwing= null;\n\t\tString Fanspeed= null;\n\t\tString actemparature= null;\n\t\tString acsetpoint= null;\n\t\tString alexaDeviceState = null;\n\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.SWITCH_DIMMER_STATE);\n\t\tif(device.getDeviceType().getName().equalsIgnoreCase(\"Z_WAVE_DOOR_LOCK\"))\n\t\t{\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.DOOR_LOCK_STATE);\n\t\t}\n\t\telse if(device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_MOTOR_CONTROLLER))\n\t\t{\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.PERCENTAGE);\n\t\t}\n\t\t/* if(device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_DIMMER) || (device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_SWITCH)))*/\n\t\t if(device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_SWITCH))\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.SWITCH_DIMMER_STATE);\n AlertTypeManager alertTypeManager = new AlertTypeManager();\n\t\t\t\n\t\t\tif(deviceStatus == \"1\" || deviceStatus.equals(\"1\") ){\n\t\t\t\tString deviceOn = \"DEVICE_ON\";\n\t\t\t\talexaDeviceState = \"ON\";\n\t\t\t\tAlertType alert = alertTypeManager.getAlertTypeByDetails(deviceOn);\n\t\t\t\tQueue<KeyValuePair> resultQueue = updateAlertAndExecuteRule(xml,\n\t\t\t\t\t\talert);\n\t\t\t\t\n\t\t\t}else if(deviceStatus == \"0\" || deviceStatus.equals(\"0\")){\n\t\t\t\t\n\t\t\t\tString deviceOff = \"DEVICE_OFF\";\n\t\t\t\talexaDeviceState = \"OFF\";\n\t\t\t\tAlertType alert = alertTypeManager.getAlertTypeByDetails(deviceOff);\n\t\t\t\tQueue<KeyValuePair> resultQueue = updateAlertAndExecuteRule(xml,\n\t\t\t\t\t\talert);\n\t\t\t}\n\t\t\t\n\t\t\t/*Naveen added on 9th Feb 2018\n\t\t\t * This part of code is used to update device to alexa end point\n\t\t\t * Send only for alexa user\n\t\t\t */\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tcheckTokenAndUpdateDeviceToAlexaEndpoint(imvg,device,alexaDeviceState,null);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\t\n \t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tif(device.getDeviceType().getName().equalsIgnoreCase(\"Z_WAVE_AC_EXTENDER\"))\n\t\t{\n\t\t\t\n\t\t\tif(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"0\"))\n\t\t\t{\n\t\t\tacmode = IMonitorUtil.commandId(queue,Constants.AC_MODE_CHANGED);\n\t\t\tif(acmode.equals(\"0\"))\n\t\t\t{\n\t\t\t\tdeviceStatus =\"0\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tdeviceStatus =\"22\";\n\t\t\t}\n\t\t\tdeviceManager.updateCommadParamAndFanModesOfDeviceByGeneratedId(generatedDeviceId, imvg, deviceStatus, acmode);\n\t\t\t}\n\t\t\telse if(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"1\"))\n\t\t\t{\n\t\t\tacsetpoint = IMonitorUtil.commandId(queue,Constants.AC_THERMOSTATSETPOINTTYPE);\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.AC_TEMPERATURE_STATE);\n\t\t\tdeviceManager.changeDeviceLastAlertAndStatusAlsoSaveAlert(generatedDeviceId, alertType, deviceStatus, date);\n\t\t\t\n\t\t\t//Updating for Alexa\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tcheckTokenAndUpdateDeviceToAlexaEndpoint(imvg, device, deviceStatus, acmode);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\t\n\t\t\t} \n\t\t\telse if(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"2\"))\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**Kantharaj is changed due to When FanSpeed is controlled from Local iMVG will send\n\t\t\t\t * 1-Low\n\t\t\t\t * 5-Medium\n\t\t\t\t * 3-High\n\t\t\t\t * \n\t\t\t\t * In CMS Fan Speed is saved as below \n\t\t\t\t * 1-Low\n\t\t\t\t * 2-Medium\n\t\t\t\t * 3-High\n\t\t\t\t * \n\t\t\t\t * \n\t\t\t\t * **/\n\t\t\t\t\n\t\t\t\t\tFanspeed=IMonitorUtil.commandId(queue,Constants.AC_FAN_MODE_CHANGED);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(Fanspeed.equals(\"1\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tFanspeed=\"1\";\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(Fanspeed.equals(\"5\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tFanspeed=\"2\";\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(Fanspeed.equals(\"3\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tFanspeed=\"3\";\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tdeviceManager.updateFanModesOfDeviceByGeneratedId(generatedDeviceId, imvg, Fanspeed,1);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} \n\t\t\telse if(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"3\"))\n\t\t\t{\n\t\t\t\tacSwing=IMonitorUtil.commandId(queue,Constants.AC_SWING_CONTROL);\n\t\t\t\tdeviceManager.updateFanModesOfDeviceByGeneratedId(generatedDeviceId, imvg, acSwing,0);\n\t\t\t} \n\t\t\telse if(IMonitorUtil.commandId(queue,Constants.AC_MODE_TEMP).equals(\"4\"))\n\t\t\t{\n\t\t\t\t\n\t\t\t\tacmode = IMonitorUtil.commandId(queue,Constants.AC_MODE_CHANGED);\n\t\t\t\t//LogUtil.info(\"acmode----\"+acmode);\n\t\t\t\tif(!(acmode.equals(\"6\")))\n\t\t\t\t{\n\t\t\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.AC_TEMPERATURE_STATE);\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdeviceStatus=\"22\";\n\t\t\t\t}\n\t\t\t\tFanspeed=IMonitorUtil.commandId(queue,Constants.AC_FAN_MODE_CHANGED);\n\t\t\t//\tLogUtil.info(\"Fanspeed---\"+Fanspeed);\n\t\t\t\t\n\t\t\t\tString FanModevalue=\"1\";\n\t\t\t\tif(Fanspeed.equals(\"1\"))\n\t\t\t\t{\n\t\t\t\t\tFanspeed=\"1\";\t\n\t\t\t\t}\n\t\t\t\telse if(Fanspeed.equals(\"5\"))\n\t\t\t\t{\n\t\t\t\t\tFanspeed=\"2\";\t\n\t\t\t\t}\n\t\t\t\telse if(Fanspeed.equals(\"3\"))\n\t\t\t\t{\n\t\t\t\t\tFanspeed=\"3\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tacSwing=IMonitorUtil.commandId(queue,Constants.AC_SWING_CONTROL);\n\t\t\t\tdeviceManager.updateAllforacOfDeviceByGeneratedId(generatedDeviceId, imvg, deviceStatus, acmode,Fanspeed,acSwing);\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t} \n\t\t}\n\t\tif(device.getDeviceType().getName().equalsIgnoreCase(Constants.Z_WAVE_DIMMER))\n\t\t{\n\t\t\tdeviceStatus = IMonitorUtil.commandId(queue,Constants.SWITCH_DIMMER_STATE);\n\t\t\t\n\t\t\t/*Naveen added on 9th Feb 2018\n\t\t\t * This part of code is used to update device to alexa end point\n\t\t\t * Send only for alexa user\n\t\t\t */\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tcheckTokenAndUpdateDeviceToAlexaEndpoint(imvg,device,deviceStatus,null);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\t\n\t\t\tdeviceManager.changeDeviceLastAlertAndStatusAlsoSaveAlertAndCheckArm(generatedDeviceId, alertType, deviceStatus, date);\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\tdeviceManager.changeDeviceLastAlertAndStatusAlsoSaveAlertAndCheckArm(generatedDeviceId, alertType, deviceStatus, date);\n\t\t}\n\t\t\n//\t\tSWITCH_DIMMER_STATE\n//\t\tPreparing the return queue.\n\t\tQueue<KeyValuePair> resultQueue = new LinkedList<KeyValuePair>();\n\t\tresultQueue.add(new KeyValuePair(Constants.CMD_ID,\n\t\t\t\tConstants.DEVICE_ALERT_ACK));\n\t\tresultQueue.add(new KeyValuePair(Constants.TRANSACTION_ID, IMonitorUtil\n\t\t\t\t.commandId(queue, Constants.TRANSACTION_ID)));\n\t\tresultQueue.add(new KeyValuePair(Constants.IMVG_ID, IMonitorUtil\n\t\t\t\t.commandId(queue, Constants.IMVG_ID)));\n\t\tresultQueue\n\t\t\t\t.add(new KeyValuePair(Constants.DEVICE_ID, generatedDeviceId));\n\t\t\n\t\n\t\treturn stream.toXML(resultQueue);\n\t}", "public Short getClStatus() {\r\n\t\treturn clStatus;\r\n\t}", "public InvoiceOrderLineStatus getOrderLineStatus() {\r\n if (invoicedAgreements.size() == 0 || invoicedAgreements.get(0).getInvoicedOrderLines().size() == 0) return NO_ORDER_LINES;\r\n return invoicedAgreements.get(0).getInvoicedOrderLines().get(0).getStatus();\r\n }", "@Override\n public List<Object> getModemCommLog(Map<String, Object> condition) {\n return null;\n }", "String getDataStatus();", "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 }", "@Override\n public void updateDevice() throws RemoteHomeConnectionException, RemoteHomeManagerException {\n String[] statusResponse = m.sendCommandWithAnswer(getDeviceId(), \"sc\").split(\"\\\\|\");\n if (!statusResponse[0].equals(\"1\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type: \"+statusResponse[0], RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n if (statusResponse[1].equals(\"c\")) {\n if (statusResponse[2].equals(\"1\")) {\n setCurrentState(true);\n } else {\n setCurrentState(false);\n }\n if (statusResponse[3].equals(\"1\")) {\n setOnWhenAppliedPower(false);\n } else {\n setOnWhenAppliedPower(true);\n }\n if (statusResponse[4].equals(\"1\")) {\n setOnWhenMovementDetected(true);\n } else {\n setOnWhenMovementDetected(false);\n }\n setConfiguredPeriod(Integer.parseInt(statusResponse[5]));\n setCurrentCounter(Integer.parseInt(statusResponse[6]));\n setTimestamp(System.currentTimeMillis());\n }\n statusResponse = m.sendCommandWithAnswer(getDeviceId(), \"sa\").split(\"\\\\|\");\n if (!statusResponse[0].equals(\"1\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type: \"+statusResponse[0], RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n if (statusResponse[1].equals(\"a\")) {\n setAlarmStatus(Integer.parseInt(statusResponse[2])); \n if (statusResponse[3].equals(\"1\")) {\n setAlarmSensorCurrentState(true);\n } else {\n setAlarmSensorCurrentState(false);\n } \n setAlarmEnterTimeout(Integer.parseInt(statusResponse[4]));\n setAlarmLeaveTimeout(Integer.parseInt(statusResponse[5]));\n setTimestamp(System.currentTimeMillis());\n\n }\n }", "@Override\n\tpublic List<Object> getModemList(Map<String, Object> condition) {\n\t\treturn null;\n\t}", "private void getStatus(APDU apdu) {\r\n\t\tbyte buffer[] = apdu.getBuffer();\r\n\t\toffset = apdu.getOffsetCdata();\r\n\t\t// putting state\r\n\t\tbuffer[offset++] = state;\r\n\t\t// putting mifare state\r\n\t\tbuffer[offset++] = (image.isActive()) ? MIFARE_STATE_ACTIVE\r\n\t\t\t\t: MIFARE_STATE_INACTIVE;\r\n\t\t// putting version\r\n\t\tbuffer[offset++] = APP_VERSION;\r\n\t\t// putting try count remaining\r\n\t\tbuffer[offset] = mPIN.getTriesRemaining();\r\n\t\t// transmitting\r\n\t\tapdu.setOutgoingAndSend(apdu.getOffsetCdata(), (short) 0x04);\r\n\t}", "protected String getGPIBStatus() {\n\n // check for errors\n if ( (m_ibsta.getValue() & ERR) != 0) {\n // return the GPIB Status because an error occurred\n int err = m_iberr.getValue();\n\n // make a nice String with the GPIB Status\n String str = String.format(Locale.US, \"GPIB Status: ibsta = 0x%x; iberr = %d (%s)\\n\",\n m_ibsta.getValue(), err,\n (err<ErrorMnemonic.length ? ErrorMnemonic[err] : \"Error number not recognized\"));\n\n // log event\n m_Logger.finer(str);\n //m_Comm_Logger.finer(str);\n\n return str;\n } else {\n // return an empty String\n return \"\";\n }\n }", "public ProcessModelStatus getStatus() {\r\n return this.status;\r\n }", "@SuppressWarnings(\"unused\")\n public String getStatusString() {\n\n switch (this.status) {\n case SCREEN_OFF:\n return \"screen off\";\n\n case SCREEN_ON:\n return \"screen on\";\n\n default:\n return \"unknown\";\n }\n }", "private char getGameStatus() {\n int row;\n int col;\n\n Map<Character, Integer> lineCounts = new HashMap<>();\n\n for (row = 0; row < this.boardSize; row++) {\n countLine(getLineStatus(this.board[row]), lineCounts);\n }\n\n for (col = 0; col < this.boardSize; col++) {\n countLine(getLineStatus(getColumn(col)), lineCounts);\n }\n\n countLine(getLineStatus(getMajorDiag()), lineCounts);\n countLine(getLineStatus(getSubDiag()), lineCounts);\n\n boolean player1Won = lineCounts.getOrDefault(players[0].symbol, 0) > 0;\n boolean player2Won = lineCounts.getOrDefault(players[1].symbol, 0) > 0;\n boolean boardIsFull = lineCounts.getOrDefault(' ', 0) == 0;\n if (player1Won && player2Won) // both players completed lines, it is a tie\n return 'T';\n if (player1Won)\n return players[0].symbol;\n if (player2Won)\n return players[1].symbol;\n if (boardIsFull)\n return 'T';\n return '?';\n }", "public void getCommanderStatus() {\n getRanks();\n getCommanderPosition();\n getCredits();\n }", "@Override\n public int deleteModemStatus(int modemId, Code code) {\n return 0;\n }", "@Override\n\tpublic List<Map<String, Object>> getValidModemList(Map<String, Object> condition) {\n\t\treturn null;\n\t}", "@Override\n public List<Object> getMiniChartModemTypeByCommStatus(\n Map<String, Object> condition) {\n return null;\n }", "public Recording.Status getStatus() {\n\t\treturn status;\n\t}", "@Override\n public List<Object> getModemIdListByDevice_serial(String device_serial) {\n return null;\n }", "public String getStatusLine() {\n\n StringBuilder builder = new StringBuilder(SL_11_START.length() + 4 + message.length());\n builder.append(SL_11_START).append(code).append(' ').append(message);\n return builder.toString();\n }", "@Override\n\tprotected void GetDataFromNative() {\n\t\tAutoGrease = CAN1Comm.Get_AutoGreaseOperationStatus_3449_PGN65527();\n\t\tQuickcoupler = CAN1Comm.Get_QuickCouplerOperationStatus_3448_PGN65527();\n\t\tRideControl = CAN1Comm.Get_RideControlOperationStatus_3447_PGN65527();\n\t\tBeaconLamp = CAN1Comm.Get_BeaconLampOperationStatus_3444_PGN65527();\n\t\tMirrorHeat = CAN1Comm.Get_MirrorHeatOperationStatus_3450_PGN65527();\n\t\tFineModulation = CAN1Comm.Get_ComponentCode_1699_PGN65330_EHCU();\n\t}", "public synchronized String getStatus(){\n\t\treturn status;\n\t}", "public MPDStatus getMpdStatus() {\n return mpdStatus;\n }", "public static native int getAecStatus();", "public int getSelectedTelObsComp()\n\t{\n\t\treturn _avTable.getInt( ATTR_SELECTED_TEL_OBS_COMP , 0 ) ;\n\t}", "public ui.StatusLed getStatusLed() {\n return this.statusLed;\n }", "@Override\n public Integer getModemCount(Map<String, String> condition) {\n return null;\n }", "public Boolean isMSROnline() throws DeviceException;", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "public static final native int getChargingCurrent();", "public String getMediumType() { return Constants.medium_MODEM; }", "public byte[] getStatus() {\r\n return status;\r\n }", "@Override\n public List<Object> getModemOperationLog(Map<String, Object> condition) {\n return null;\n }", "public EnumVar getStatus() {\n return status;\n }", "@Override\n public List<Modem> getModemWithGpio(HashMap<String, Object> condition) {\n return null;\n }", "private void sendDeviceStatus() {\n if (hasRecover && zWaveSubDevice != null) {\n ZWaveDeviceEvent zde = new ZWaveDeviceEvent();\n try {\n PropertyUtils.copyProperties(zde, zWaveSubDevice.getZwavedevice());\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n zde.setReport(zrb.getReport());\n zde.setEventtime(new Date());\n\n JMSUtil.sendmessage(IRemoteConstantDefine.WARNING_TYPE_DEVICE_STATUS, zde);\n }\n }", "public String status(String host, String port) {\n\t\tString target = \"\";\n\t\tSocket sock = null;\n\t\ttry {\n\t\t\tString tmp = \"\";\n\t\t\tif (port.contains(\"/\")) {\n\t\t\t\ttmp = port.split(\"/\")[0];\n\t\t\t} else {\n\t\t\t\ttmp = port;\n\t\t\t}\n\t\t\tsock = new Socket(host, Integer.parseInt(tmp));\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Socket[\" + host + \":\" + port + \"] connect refused\");\n\t\t\treturn \"death\";\n\t\t}\n\t\tBufferedReader reader = null;\n\t\tOutputStream outstream = null;\n\t\ttry {\n\t\t\toutstream = sock.getOutputStream();\n\t\t\toutstream.write(\"stat\".getBytes());\n\t\t\toutstream.flush();\n\t\t\tsock.shutdownOutput();\n\n\t\t\treader = new BufferedReader(new InputStreamReader(sock.getInputStream()));\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tif (line.indexOf(\"Mode: \") != -1) {\n\t\t\t\t\ttarget = line.replaceAll(\"Mode: \", \"\").trim();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLOG.error(\"Read ZK buffer has error,msg is \" + ex.getMessage());\n\t\t\treturn \"death\";\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t\tif (reader != null) {\n\t\t\t\t\treader.close();\n\t\t\t\t}\n\t\t\t\tif (outstream != null) {\n\t\t\t\t\toutstream.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLOG.error(\"Close read has error,msg is \" + ex.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn target;\n\t}", "public String getStatus() {\r\n return (String) getAttributeInternal(STATUS);\r\n }", "public String getStatus()\n\t\t{\n\t\t\tElement statusElement = XMLUtils.findChild(mediaElement, STATUS_ELEMENT_NAME);\n\t\t\treturn statusElement == null ? null : statusElement.getTextContent();\n\t\t}", "public boolean getDmaDREQ();", "com.google.protobuf.ByteString\n getSwstatusBytes();", "public String getStatus() {\r\n if (status == null)\r\n status = cells.get(7).findElement(By.tagName(\"div\")).getText();\r\n return status;\r\n }", "public NetworkAdapterStatus status() {\n return this.status;\n }", "public String getStatus() {\n return (String) getAttributeInternal(STATUS);\n }", "public EdgeStatus getStatus() {\n return ioStatus.get();\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public CMnServicePatch.RequestStatus getStatus() {\n return status;\n }", "public int getStatus(int mCode)\r\n\t {\r\n\t\t return MRs[mCode].getStatus();\r\n\t }", "public String getStatus () {\r\n return status;\r\n }", "public void setCommStatus(int alliance, int station, boolean isFMSAlive,\n boolean isRobotAlive, boolean isTeamBypassed, boolean isESTOPPED) {\n //We default to not being ready.\n Color robCom = NOT_READY;\n Color dsCom = NOT_READY;\n //System.out.println(\"setting comm status...\");\n if (isESTOPPED) {\n robCom = ESTOPPED;\n dsCom = ESTOPPED;\n } else if (!isTeamBypassed) {\n if (isRobotAlive) {\n robCom = READY;\n }\n if (isFMSAlive) {\n dsCom = READY;\n }\n } else if (isTeamBypassed) {\n robCom = BYPASSED;\n dsCom = BYPASSED;\n }\n\n //Decision off of the alliance and position so we set the right control\n // values.\n if (alliance == FieldAndRobots.RED) {\n if (station == FieldAndRobots.ONE) {\n robotComStatusRedTeam1.setBackground(robCom);\n dsComStatusRedTeam1.setBackground(dsCom);\n } else if (station == FieldAndRobots.TWO) {\n robotComStatusRedTeam2.setBackground(robCom);\n dsComStatusRedTeam2.setBackground(dsCom);\n } else if (station == FieldAndRobots.THREE) {\n robotComStatusRedTeam3.setBackground(robCom);\n dsComStatusRedTeam3.setBackground(dsCom);\n } else {\n System.out.println(\"ERROR - SET COM 1\");\n }\n } else if (alliance == FieldAndRobots.BLUE) {\n if (station == FieldAndRobots.ONE) {\n robotComStatusBlueTeam1.setBackground(robCom);\n dsComStatusBlueTeam1.setBackground(dsCom);\n } else if (station == FieldAndRobots.TWO) {\n robotComStatusBlueTeam2.setBackground(robCom);\n dsComStatusBlueTeam2.setBackground(dsCom);\n } else if (station == FieldAndRobots.THREE) {\n robotComStatusBlueTeam3.setBackground(robCom);\n dsComStatusBlueTeam3.setBackground(dsCom);\n } else {\n System.out.println(\"ERROR - SET COM 2\");\n }\n } else {\n System.out.println(\"ERROR - SET COM 3\");\n }\n }", "@Field(10) \n\tpublic byte OrderStatus() {\n\t\treturn this.io.getByteField(this, 10);\n\t}", "public int getStatus()\r\n {\r\n return mStatus;\r\n }", "public static String getStatus(Connection conn)\n {\n String status = \"Current Status\\n---------------\\nRooms: \";\n if(RoomDB.exist(conn) == -1)\n {\n status += \"No Database\\n\";\n }\n else if(RoomDB.exist(conn) == 0)\n {\n status += \"Empty\\n\";\n }\n else\n {\n status += \"Full\\n\";\n }\n status += \"Reservations: \";\n if(ResDB.exist(conn) == -1)\n {\n status += \"No Database\\n\";\n }\n else if(ResDB.exist(conn) == 0)\n {\n status += \"Empty\\n\";\n }\n else\n {\n status += \"Full\\n\";\n }\n \n return status;\n }", "public int getStatus() {\n return mStatus;\n }", "public int getStatus()\r\n\t{\r\n\t\treturn this.m_status;\r\n\t}", "public String GetLcdInfo(){\r\n\t\t\tDisplayMetrics dm = new DisplayMetrics();\r\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\r\n\t\t\tint screenWidth = dm.widthPixels;\r\n\t\t\tint screenHeigh = dm.heightPixels;\r\n\t\t\tString mlcd = screenWidth+\"x\"+ screenHeigh;\r\n\t\t\treturn mlcd;\r\n\t}", "public String UpdatedDeviceStatus(String xml) throws Exception {\n\t\tAlertType alertType=new AlertType();\n\t\tDeviceManager deviceManager = new DeviceManager();\n\t\tQueue<KeyValuePair> queue = IMonitorUtil.extractCommandsQueueFromXml(xml);\t\n\t\tqueue.poll();\n\t\tKeyValuePair element=queue.poll();\n\t\tString transationid=IMonitorUtil.commandId(element, Constants.TRANSACTION_ID);\n\t\telement=queue.poll();\n\t\tString imvgid=IMonitorUtil.commandId(element, Constants.IMVG_ID);\n\t\telement=queue.poll();\n\t\t//String config=IMonitorUtil.commandId(element, Constants.CONFIG_PARAM);\n\t\twhile(queue.size()!=2)\n\t\t{\n\t\t\telement=queue.poll();\n\t\t\tString generatedDeviceId=IMonitorUtil.commandId(element, Constants.DEVICE_ID);\n\t\t\tDeviceManager devicemanger=new DeviceManager();\n\t\t\tDevice device=devicemanger.getDeviceWithConfiguration(generatedDeviceId);\n\t\t\tif(device!=null)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tDeviceType deviceType=device.getDeviceType();\n\t\t\t\tString devicetype=deviceType.getName();\n\t\t\t\t\n\t\t\t\telement=queue.poll();\n\t\t\t\tString deviceStatus=IMonitorUtil.commandId(element, Constants.DEVICE_STATUS);\n\t\t\t\t\n\t\t\t\telement=queue.poll();\n\t\t\t\tString deviceLastAlert=IMonitorUtil.commandId(element,\"ALERT_TYPE\");\n\t\t\t\tif(deviceLastAlert.equals(\"1\"))\n\t\t\t\talertType = IMonitorUtil.getAlertTypes().get(Constants.DEVICE_UP);\n\t\t\t\tif(deviceLastAlert.equals(\"0\"))\n\t\t\t\talertType = IMonitorUtil.getAlertTypes().get(Constants.DEVICE_DOWN);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif((devicetype.equals(\"Z_WAVE_MOTOR_CONTROLLER\"))||(devicetype.equals(\"Z_WAVE_AC_EXTENDER\"))||(devicetype.equals(\"Z_WAVE_DOOR_SENSOR\")))\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tdeviceManager.updateDeviceAlert(generatedDeviceId,alertType);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if((devicetype.equals(\"IP_CAMERA\")))\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus.equals(\"0\"))\n\t\t\t\t\tdeviceStatus=\"1\";\n\t\t\t\t\telse if(deviceStatus.equals(\"1\"))\n\t\t\t\t\tdeviceStatus=\"0\";\n\t\t\t\t\t\n\t\t\t\t\tdeviceManager.updateDeviceEnableStatus(generatedDeviceId, deviceStatus,alertType);\n\t\t\t\t}\n\t\t\t\telse if((devicetype.equals(\"Z_WAVE_SWITCH\")))\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus.equals(\"-1\"))\n\t\t\t\t\t\tdeviceStatus=\"0\";\n\t\t\t\t\t\n\t\t\t\t\tif(deviceStatus.equals(\"255\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdeviceStatus=\"1\";\n\t\t\t\t\t\talertType = IMonitorUtil.getAlertTypes().get(Constants.DEVICE_UP);\n\t\t\t\t\t}\n\t\t\t\tdeviceManager.updateDeviceStatusAndAlert(generatedDeviceId, deviceStatus,alertType);\n\t\t\t\t}\n\t\t\t\telse if((devicetype.equals(\"Z_WAVE_DIMMER\")))\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus.equals(\"-1\"))\n\t\t\t\t\tdeviceManager.updateDeviceAlert(generatedDeviceId,alertType);\n\t\t\t\t\telse\n\t\t\t\t\tdeviceManager.updateDeviceStatusAndAlert(generatedDeviceId, deviceStatus,alertType);\n\t\t\t\t}\n\t\t\t\telse if((devicetype.equals(\"Z_WAVE_MINIMOTE\"))||((devicetype.equals(\"Z_WAVE_HEALTH_MONITOR\")))||((devicetype.equals(\"Z_WAVE_MULTI_SENSOR\")))||((devicetype.equals(\"Z_WAVE_LCD_REMOTE\")))||((devicetype.equals(\"Z_WAVE_PIR_SENSOR\"))))\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus.equals(\"-1\"))\n\t\t\t\t\tdeviceStatus=\"0\";\n\t\t\t\t\tdeviceManager.updateDeviceStatusAndAlert(generatedDeviceId, deviceStatus,alertType);\n\t\t\t\t}\n\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tqueue.poll();\n\t\t\t\tqueue.poll();\n\t\t\t}\n\t\t}\n\t\n//Preparing the return queue.\n\t\tQueue<KeyValuePair> resultQueue = new LinkedList<KeyValuePair>();\n\t\tresultQueue.add(new KeyValuePair(Constants.CMD_ID,Constants.UPDATED_DEVICE_STATUS_ACK));\n\t\tresultQueue.add(new KeyValuePair(Constants.TRANSACTION_ID,transationid));\n\t\tresultQueue.add(new KeyValuePair(Constants.IMVG_ID,imvgid ));\n\t\tXStream stream = new XStream();\n\t\treturn stream.toXML(resultQueue);\n\t}", "public String getCmndLine()\n {\n return cmndLine;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "@Override\n public List<Object> getModemListByMCUsysID(String sys_id) {\n return null;\n }", "public int getReadStatus() {\n return (readStatus.getUnsignedInt());\n }" ]
[ "0.66349584", "0.6157315", "0.5895021", "0.5579715", "0.55778307", "0.54355353", "0.54269576", "0.541569", "0.5410721", "0.5352607", "0.53396904", "0.5334805", "0.5324944", "0.53080297", "0.5306541", "0.5273097", "0.52438986", "0.52363724", "0.5232992", "0.520419", "0.51627225", "0.51508266", "0.51324534", "0.5100639", "0.509496", "0.5091926", "0.5071373", "0.505948", "0.50472444", "0.50285655", "0.5017375", "0.5004439", "0.49972624", "0.49926513", "0.49794412", "0.4969845", "0.4969845", "0.4969845", "0.4969845", "0.4969845", "0.4962926", "0.49500424", "0.49452874", "0.49271065", "0.4922363", "0.49205172", "0.49181375", "0.49127787", "0.49053407", "0.48968646", "0.4885325", "0.48819932", "0.48662114", "0.48472664", "0.48441952", "0.483794", "0.48334783", "0.48279467", "0.48228654", "0.48060316", "0.47966853", "0.4791695", "0.47915345", "0.4788743", "0.4781523", "0.4778031", "0.4773301", "0.47572955", "0.47493547", "0.47466534", "0.47445065", "0.4744253", "0.47427267", "0.47343817", "0.47255933", "0.4724094", "0.47238913", "0.4717968", "0.47167608", "0.4716321", "0.4713327", "0.47113973", "0.47096527", "0.47064853", "0.46960485", "0.46955878", "0.468698", "0.46865013", "0.4680504", "0.4677616", "0.4677155", "0.46751875", "0.4671101", "0.4671101", "0.4671101", "0.4671101", "0.4671101", "0.4671101", "0.4671101", "0.4668218", "0.46661356" ]
0.0
-1
Gets the com port number of the device.
public int getComPortNumber() throws FTD2XXException { IntByReference reference = new IntByReference(); ensureFTStatus(ftd2xx.FT_GetComPortNumber(ftHandle, reference)); return reference.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getDevicePort(){\n return peripheralPort;\n }", "public int getPort() {\n\t\treturn Integer.parseInt(String.valueOf(port.getValue()));\n\t}", "public CommPortIdentifier GetArduinoPort()\n\t{\n\t\tCommPortIdentifier portId = null;\n\t\tEnumeration<?> portEnum = CommPortIdentifier.getPortIdentifiers();\n\n\t\t// Loop through every port\n\t\twhile (portEnum.hasMoreElements())\n\t\t{\n\t\t\tCommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n\n\t\t\tif (currPortId.getName().equals(ArduinoConstants.comPort))\n\t\t\t{\n\t\t\t\tportId = currPortId;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn portId;\n\t}", "public int getPortNumber() {\n\treturn iPortNo;\n }", "public int getsPort()\n\t{\n\t\treturn sPort;\n\t}", "public int getPort()\n {\n return this.connectedPort;\n }", "public long getComNumber() {\r\n return comNumber;\r\n }", "public int getPort() {\n return m_Port;\n }", "public final int getPortNumber() {\n return mPortNumber;\n }", "public int getPortNumber (){\r\n\t\treturn portNumber;\r\n\t}", "public int getPort( ) {\n\t\treturn port;\n\t}", "public int getPort(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getInt(WorkerController.PORT);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public static String getPort() {\n\t\treturn port;\r\n\t}", "public int getPort(){\n\t\treturn this.port;\n\t}", "public long getPortNumber() {\n return portNumber;\n }", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort() {\r\n\t\treturn port;\r\n\t}", "public int getPort() {\r\n\t\treturn port;\r\n\t}", "public int getPort() {\n\t\treturn messageProcessor.getPort();\n\t}", "public int portNumb() {\r\n return Integer.parseInt(JOptionPane.showInputDialog(\r\n frame,\r\n \"Enter Port Number\",\r\n \"Port\",\r\n JOptionPane.QUESTION_MESSAGE));\r\n }", "public int getPort() {\n return this.port;\n }", "public int actualPort() {\n return this.port;\n }", "public int getPort ()\n {\n return thisPort;\n }", "public Integer getPort() {\n return this.port;\n }", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n return instance.getPort();\n }", "public int getPort() {\n return instance.getPort();\n }", "public int getPort() {\n return this.config.getPort();\n }", "public java.lang.CharSequence getSerialPort() {\n return serialPort;\n }", "public java.lang.CharSequence getSerialPort() {\n return serialPort;\n }", "public static int getPort() {\n return port;\n }", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "public java.lang.Integer getPortNumber() {\r\n return portNumber;\r\n }", "public short getPortId(){\n\t\treturn portId;\n\t}", "public int getPort();", "public int getPort();", "public int getPort();", "public static int getPort(){\n return catalogue.port;\n }", "public int getPortNumber() {\n return portNumber;\n }", "public int getPortNumber() {\n return portNumber;\n }", "public int getPort() {\n return m_port;\n }", "public static int getPortFromPool(){\n\n\t\tint port = -1;\n\t\tif(availablePorts.size() <= 0){\n\t\t\treturn -1;\n\t\t}\n\t\tport = availablePorts.get(0).intValue();\n\t\t\n\t\treturn port;\n\t}", "java.lang.String getPort();", "java.lang.String getPort();", "public int getPort() {\n return this.port;\n }", "default public int getControlToDevicePort()\t\t\t\t{ return 2226; }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public static int getEventPort() {\r\n return eventPort.getValue();\r\n }", "public int getPortNum()\n\t{\n\t\treturn portNum; // return the port number associated with the Messaging node.\n\t}", "public Integer getPort() {\n return port;\n }", "public Integer getPort() {\n return port;\n }", "int getIntegPort();", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "final int getDeviceNum() {\n return device.getDeviceNum();\n }", "String getPort();", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public Integer get_port() throws Exception {\n\t\treturn this.port;\n\t}", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic CommPortIdentifier getPort() throws PropertyDoesNotExistException {\r\n\t\tif (this.settings.containsKey(\"port\")) {\r\n\t\t\tEnumeration<CommPortIdentifier> portList = CommPortIdentifier.getPortIdentifiers();\r\n\t\t\twhile (portList.hasMoreElements()) {\r\n\t\t\t\tCommPortIdentifier portId = portList.nextElement();\r\n\t\t\t\tif(portId.getName().equals(this.settings.get(\"port\"))) {\r\n\t\t\t\t\treturn portId;\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tthrow new PropertyDoesNotExistException(\"Can't find property 'port'\");\r\n\t}", "public int getPort(){\n\treturn port;\n }", "public int getPort() {\n if (state >= CONNECTED)\n return remotePort;\n else\n return 0;\n }", "public int getPort () {\n return port;\n }" ]
[ "0.7146815", "0.71242183", "0.7085861", "0.708217", "0.6860814", "0.68198603", "0.6753919", "0.67265004", "0.67263687", "0.6690214", "0.66805625", "0.66415656", "0.6637015", "0.66206723", "0.65941346", "0.65857065", "0.65857065", "0.65641075", "0.65641075", "0.6562169", "0.6540001", "0.65277606", "0.65226454", "0.65180266", "0.6511881", "0.65016514", "0.65016514", "0.64943033", "0.64943033", "0.64943033", "0.64943033", "0.64943033", "0.6492632", "0.6492632", "0.6490042", "0.64897984", "0.64889205", "0.6484103", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.6468993", "0.64641464", "0.6457349", "0.643858", "0.643858", "0.643858", "0.6437471", "0.6432009", "0.6432009", "0.6377019", "0.6367735", "0.63557947", "0.63557947", "0.634522", "0.63383716", "0.6333173", "0.6333173", "0.6333173", "0.63316345", "0.6330053", "0.6297087", "0.6297087", "0.6291942", "0.6287355", "0.6287355", "0.6287355", "0.6287355", "0.6287355", "0.6287355", "0.62788206", "0.6270494", "0.6266586", "0.6266586", "0.6266586", "0.6266586", "0.6258557", "0.62496275", "0.62496275", "0.62496275", "0.62496275", "0.62496275", "0.62496275", "0.62496275", "0.62496275", "0.6249461", "0.6249461", "0.62364125", "0.6209065", "0.62069684", "0.619696" ]
0.7876467
0
Set the event notification handler.
public void SetEventNotification(Pointer eventHandler, int eventMask) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetEventNotification(ftHandle, eventMask, eventHandler)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "@ReactMethod\n public void setOnInvokeHandler(final Callback onInvokeHandler) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @Override\n public void run() {\n try {\n BugReporting.setOnInvokeCallback(new OnInvokeCallback() {\n @Override\n public void onInvoke() {\n sendEvent(Constants.IBG_PRE_INVOCATION_HANDLER, null);\n }\n });\n } catch (java.lang.Exception exception) {\n exception.printStackTrace();\n }\n }\n });\n }", "public void setChangeHandler(ChangeHandler h) {\n changeHandler = h;\n }", "public void setHandler ( Object handler ) {\r\n\t\tgetStateHelper().put(PropertyKeys.handler, handler);\r\n\t\thandleAttribute(\"handler\", handler);\r\n\t}", "@Override\n\tpublic void RegisterHandler(HotSpotServerEventHandler handler) {\n\t\teventHandlers.add(handler);\n\t}", "public void addHandler(EventHandler handler);", "@Override\n public void onEvent(EMNotifierEvent event) {\n\n }", "public void addNotificationHandler(String serviceName, NotificationHandler handler);", "public void setDOMUIEventHandler(DOMUIEventHandler handler)\r\n\t{\r\n\t\tthis.handler = handler;\r\n\t}", "private void setListener() {\n\t}", "public void setHandler(String handler) {\n this.Handler = handler;\n }", "public void setEventHandler(PInputEventListener listener) {\n if (layerListening != null) {\n layerListening.removeInputEventListener(currentListener);\n layerListening = null;\n } else {\n removeInputEventListener(currentListener);\n }\n currentListener = listener;\n addInputEventListener(currentListener);\n }", "@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }", "@Override\n public void setupEventHandlers(ControllerInterface controller) {\n events = Optional.of(new Events.ForView(controller));\n }", "protected void setHandleNotification(JSONArray args, CallbackContext callbackContext) {\n\t\tLog.d(TAG, \"SETHANDLENOTIFICATION called on Android, no effect\");\n\t\tcallbackContext.success();\n\t}", "private void setEventThread() {\n setEventThread(Thread.currentThread());\n }", "public void setApproveDoneHandler(DataChangedEventHandler approveDoneHandler) {\n\t\tthis.approveDoneHandler = approveDoneHandler;\n\t}", "public synchronized void on(String eventName, Callable eventHandler) {\n if(eventRegistry.get(eventName) == null) eventRegistry.put(eventName, new ArrayList<>());\n eventRegistry.get(eventName).add(eventHandler);\n }", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\n public void setNotification() {\n if (getTense() == Tense.FUTURE) {\n //Context ctx = SHiTApplication.getContext();\n //SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n int leadTimeEventMinutes = SHiTApplication.getPreferenceInt(Constants.Setting.ALERT_LEAD_TIME_EVENT, LEAD_TIME_MISSING);\n\n if (leadTimeEventMinutes != LEAD_TIME_MISSING) {\n if (travelTime > 0) {\n leadTimeEventMinutes += travelTime;\n }\n\n setNotification(Constants.Setting.ALERT_LEAD_TIME_EVENT\n , leadTimeEventMinutes\n , R.string.alert_msg_event\n , getNotificationClickAction()\n , null);\n }\n }\n }", "@Override\n\tpublic void setListener() {\n\n\t}", "public void setCommunicationHandler(){\n this.comHandler = new CommunicationHandler(this);\n }", "@Override\n\tpublic void setHandler(Incoming handler) {\n\t\tthis.handler = handler;\n\t}", "ISubscription addEventHandler(EventType type, IEventHandler<DetectionEvent> handler);", "public static void setListener(QuadConsumer listener) {\n\t\t\n\t\tnotificationListener = listener;\n\t\t\n\t}", "private void registerEvents() {\n MouseEventHandler handler = new MouseEventHandler();\n setOnMousePressed(handler);\n setOnMouseReleased(handler);\n setOnMouseMoved(handler);\n setOnMouseEntered(handler);\n setOnMouseExited(handler);\n\n }", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public void registerHandler(ReceivedDataHandler handler)\n {\n this.handler = handler;\n }", "private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}", "@Override\n\tpublic void addHandlerListener(IHandlerListener handlerListener) {\n\n\t}", "default void setEventService(EventService service) {\n bind(service);\n }", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public void setObserver(OnMessageListener observer) {\n\t\tthis.observer = observer;\n\t}", "public static void setPushActionHandler(PushActionHandlerInterface handler) {\n pushActionHandler = handler;\n }", "void onHisNotify();", "public static void setCallbackHandler(Handler handler) {\n if (handler == null) {\n throw new IllegalArgumentException(\"Callback handler cannot be null.\");\n }\n sCallbackHandler = handler;\n }", "public void registerHandler(Object handler)\n {\n\n }", "@Override\n\tpublic void setEvent(Event event) {\n\t\tthis.currentEvent = event;\n\t}", "public void setNotification(String notif) {\n frame.setNotification(notif);\n }", "void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);", "public void setCardEventHandler(EventHandler<CardEvent> handler) {\n this.cardEventHandler = handler;\n }", "public void setCallbackHandler(CallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n LOG.fine(\"Setting callbackHandler: \" + callbackHandler);\n }", "@Override\n public void notify(Object event){\n }", "private void setupEventHandlers() {\n myMap.addEventHandler(MapViewEvent.MAP_CLICKED, event -> {\n event.consume();\n final Coordinate newPosition = event.getCoordinate().normalize();\n latitude.setText(newPosition.getLatitude().toString());\n longitude.setText(newPosition.getLongitude().toString());\n\n this.markerClick.setPosition(newPosition);\n this.myMap.addMarker(this.markerClick);\n });\n }", "public static void setHandler(Handler handle)\n\t{\n\t\tsetHandler(last[0], last[1], handle);\n\t}", "@Override\n\tpublic void ActOnNotification(String message) {\n\t \tSystem.out.println(\"Sending Event\");\n\t}", "public void notifyStartup(StartupEvent event) {\n this.eventHandler = new MyEventHandler2(popSize);\r\n\t\t//event.addHandler(this.eventHandler);\r\n\t}", "public MEventHandler(boolean weakHandler) {\r\n this.weakHandler = weakHandler;\r\n }", "void setEvent(com.walgreens.rxit.ch.cda.EIVLEvent event);", "public void setExternalReferenceHandler(ExternalReferenceHandlerIF ref_handler) {\n this.ref_handler = ref_handler;\n }", "@Override\n public void handle(Event event) {\n }", "@ReactMethod\n public void setOnSDKDismissedHandler(final Callback handler) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @Override\n public void run() {\n try {\n BugReporting.setOnDismissCallback(new OnSdkDismissCallback() {\n @Override\n public void call(DismissType dismissType, ReportType reportType) {\n WritableMap params = Arguments.createMap();\n params.putString(\"dismissType\", dismissType.toString());\n params.putString(\"reportType\", reportType.toString());\n sendEvent(Constants.IBG_POST_INVOCATION_HANDLER, params);\n }\n });\n } catch (java.lang.Exception exception) {\n exception.printStackTrace();\n }\n }\n });\n }", "public <E extends Event> void addHandler(Event.Type<E> ec, EventHandlerI<E> l);", "public void startEventHandler() {\n Thread eventThread = new Thread(this, \"Nxt Event Handler\");\n eventThread.setDaemon(true);\n eventThread.start();\n }", "public void handleEvent(Event event) {\n\t\t\t\t}", "private void eventhandler() {\n\r\n\t}", "public void setActionHandler(ITeeterActionHandler actionHandler) {\n \r\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "public void addHandler (String event, EventHandler<ManCenterMessage> handler) {\n EventHandler<ManCenterMessage> eventHandler = this.handlerMap.get(event);\n\n if (eventHandler != null) {\n throw new IllegalStateException(\"event handler for event '\" + event + \"' was already registered!\");\n }\n\n //add event handler\n this.handlerMap.put(event, handler);\n }", "private static void handleEvent(Object listener, Object event) {\n RxAnnotatedHandlerFinder.handleEvent(listener, event);\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "public void setHandler( Class<?> exceptionClass, ExceptionHandler thisHandler )\n {\n handlers.put( exceptionClass, thisHandler );\n }", "void onNewEvent(Event event);", "@Override\n public void onCreate() {\n super.onCreate();\n mHandler = new Handler();\n }", "public void on(String event, final Handler<JsonObject> handler) {\n\t\tString address = id + \":\" + namespace.getName() + \":\" + event;\n\t\tHandler<Message<JsonObject>> localHandler = new Handler<Message<JsonObject>>() {\n\t\t\tpublic void handle(Message<JsonObject> event) {\n\t\t\t\thandler.handle(event.body());\n\t\t\t}\n\t\t};\n\t\tvertx.eventBus().registerHandler(address, localHandler);\n\t\thandlerMap.put(address, localHandler);\n\t}", "public void setCurrentHandler(Handler handler){\n\t\tcurrentHandler = handler;\n\t}", "public boolean addWatchHandler (ConfigurationPropertyChangeHandler handler, String... name);", "@Override\n public void afterPropertiesSet() throws Exception {\n\n Map<String, EventHandler> beans = applicationContext.getBeansOfType(EventHandler.class);\n if (beans != null) {\n\n for (Map.Entry<String, EventHandler> entry : beans.entrySet()) {\n List<EventType> supportedEventType = entry.getValue().getSupportEventType();\n\n for (EventType type : supportedEventType) {\n if (eventHandlerMap.containsKey(type) == false) {\n eventHandlerMap.put(type, new LinkedList<EventHandler>());\n }\n\n eventHandlerMap.get(type).add(entry.getValue());\n }\n }\n }\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n\n String key = RedisKeyUtil.getKeyEventQueue();\n // pop an event from event queuqe (key, event)\n List<String> events = jedisAdapter.popFromListTail(key, 0);\n\n for (String message : events) {\n // skip the first key\n if (message.equals(key)) {\n continue;\n }\n\n EventModel eventModel = JSON.parseObject(message, EventModel.class);\n if (eventHandlerMap.containsKey(eventModel.getType()) == false) {\n logger.error(\"Wrong event type.\");\n continue;\n }\n\n // handle event\n for (EventHandler handler : eventHandlerMap.get(eventModel.getType())) {\n handler.handleEvent(eventModel);\n }\n }\n }\n }\n });\n\n thread.start();\n }", "public FoodNotificationReceiver(Handler handler) {\n\t super(handler);\n\t }", "void registerEventbusHandlers();", "protected void firePaperJamEvent()\n {\n // construct parameters and signatures\n Object[] parameter = new Object[ 1 ];\n parameter[ 0 ] = new Notification( \n \"PrinterEvent.PAPER_JAM\", this, 0L );\n String[] signature = new String[ 1 ];\n signature[ 0 ] = \"javax.management.Notification\";\n \n // invoke notification\n try {\n mBeanServer.invoke( eventBroadcasterName,\n \"sendNotification\", parameter, signature ); \n } \n\n // handle exception when invoking method\n catch( ReflectionException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception communicating with MBean\n catch( MBeanException exception ) {\n exception.printStackTrace();\n } \n\n // handle exception if MBean not found\n catch( InstanceNotFoundException exception ) {\n exception.printStackTrace();\n } \n\n }", "public void setHandler(ContentHandler handler) { }", "void notificationReceived(Notification notification);", "void setListener(Listener listener);", "private void startHandler() {\n mHandler = new MessageHandler();\n }", "protected void setCloseHandler(Consumer<Player> handler) {\n\t\tthis.closeHandler = handler;\n\t}", "public interface INotificationHandler {\n public void handleNotification(Notification notification);\n}", "public void setOnPropertyChangedListener(OnPropertyChangedListener l){\n _onPropertyChange = l;\n }", "public static void setCustomFactoryHandler(CustomFactoryHandler factoryHandler)\n {\n DBFactory.factoryHandler = factoryHandler;\n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void setHandlerMain(Handler handlerMain){\n this.handlerMain = handlerMain;\n }", "private void initHandlers(){\n\t\tlabel.setOnMouseClicked(new EventHandler<MouseEvent>() {\n\t\t\tpublic void handle(MouseEvent e) {\n\t\t\t\tfor(TLEventLabel label : eventLabels){\n\t\t\t\t\tlabel.setSelected(false);\n\t\t\t\t}\n\t\t\t\tsetSelected(true);\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmodel.selectEvent(event);\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\t\t\t}\n\t\t});\n\t}", "public void setGDMHandler(GDMHandler handler);", "public void setEventType(NotificationEventTypeCodeType eventType) {\n\t this.eventType = eventType;\n\t}", "protected void setHandlers()\n {\n tableTypeHandler = ccddMain.getTableTypeHandler();\n dataTypeHandler = ccddMain.getDataTypeHandler();\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "public void setNotificationService(NotificationProviderService notificationService) {\n\t\tthis.notificationService = notificationService;\n\t}", "public void addEventHandlers() throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException,\n\tInvocationTargetException, InstantiationException {\n\t\tClass<?> applicationClass = Class.forName(\"com.apple.eawt.Application\");\n\t\tClass<?> quitHandlerClass = Class.forName(\"com.apple.eawt.QuitHandler\");\n\t\tClass<?> aboutHandlerClass = Class.forName(\"com.apple.eawt.AboutHandler\");\n\t\tClass<?> openFilesHandlerClass = Class.forName(\"com.apple.eawt.OpenFilesHandler\");\n\t\tClass<?> preferencesHandlerClass = Class.forName(\"com.apple.eawt.PreferencesHandler\");\n\n\t\tObject application = applicationClass.getConstructor((Class[]) null).newInstance((Object[]) null);\n\t\tObject proxy = Proxy.newProxyInstance(MacOsIntegration.class.getClassLoader(), new Class<?>[]{\n\t\t\tquitHandlerClass, aboutHandlerClass, openFilesHandlerClass, preferencesHandlerClass}, this);\n\n\t\tapplicationClass.getDeclaredMethod(\"setQuitHandler\", quitHandlerClass).invoke(application, proxy);\n\t\tapplicationClass.getDeclaredMethod(\"setAboutHandler\", aboutHandlerClass).invoke(application, proxy);\n\t\tapplicationClass.getDeclaredMethod(\"setOpenFileHandler\", openFilesHandlerClass).invoke(application, proxy);\n\t\tapplicationClass.getDeclaredMethod(\"setPreferencesHandler\", preferencesHandlerClass).invoke(application,\n\t\t\t\tproxy);\n\t}", "public void handleNotification(Notification notification)\n {\n receiver.handleMessage(new Notification(extractMethodName(notification.getMethodName()), notification.getParams()).toJsonString());\n }", "@Override\n public void notificationReceived(OSNotification notification) {\n Log.e(\"oneSignal\",\"new Notification\");\n\n }" ]
[ "0.6528034", "0.6528034", "0.619356", "0.6166065", "0.61476815", "0.61403733", "0.6133479", "0.59845525", "0.5972286", "0.59384805", "0.5938451", "0.590155", "0.57911426", "0.5785684", "0.57810056", "0.5774157", "0.57708347", "0.5763035", "0.57395273", "0.57135427", "0.57135427", "0.5706138", "0.57034975", "0.56525856", "0.56429327", "0.56365544", "0.5634979", "0.56347704", "0.5622471", "0.5622471", "0.56201684", "0.5618351", "0.55847", "0.5574502", "0.55729175", "0.5562716", "0.555475", "0.55350167", "0.55331904", "0.5510109", "0.55028826", "0.5500146", "0.5497137", "0.54871625", "0.54866904", "0.5464568", "0.5430182", "0.542749", "0.5423321", "0.54189295", "0.54062456", "0.53989017", "0.53987765", "0.53865856", "0.53820693", "0.53820163", "0.53749406", "0.53740823", "0.5370933", "0.53593075", "0.53513837", "0.53513837", "0.53513837", "0.53513837", "0.53513837", "0.53504354", "0.534841", "0.5337664", "0.5337664", "0.5337664", "0.53369397", "0.53343", "0.5327752", "0.53237367", "0.53222704", "0.5311269", "0.5293099", "0.5288885", "0.528743", "0.52841574", "0.52796954", "0.5278653", "0.52768296", "0.52453095", "0.52386785", "0.52341497", "0.5231079", "0.52294034", "0.5227573", "0.52208865", "0.5216117", "0.5205795", "0.51971126", "0.5194077", "0.5179527", "0.5179527", "0.51775664", "0.5173364", "0.51593167", "0.5150022" ]
0.63300884
2
Purge receive or transmit buffers in the device.
public void purgeBuffer(boolean rxBuffer, boolean txBuffer) throws FTD2XXException { int mask = 0; if (rxBuffer) { mask |= Purge.PURGE_RX.constant(); } if (txBuffer) { mask |= Purge.PURGE_TX.constant(); } ensureFTStatus(ftd2xx.FT_Purge(ftHandle, mask)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void freeAllBuffers() {\n\t\tIterator<Integer> iter = _bufferMap.keySet().iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tint bufNum = iter.next();\n\t\t\tsendMessage(\"/b_free\", new Object[] { bufNum });\n\t\t\titer.remove();\n\t\t}\n\t}", "public void clean() {\n\t\tbufferSize = 0;\n\t\tbuffer = new Object[Consts.N_ELEMENTS_FACTORY];\n\t}", "public void clearBuffer(){\n System.out.println(\"Clearning beffer\");\n //Deletes the buffer file\n File bufferFile = new File(\"data/buffer.ser\");\n bufferFile.delete();\n }", "public final void freeBuffers()\n {\n if (_ioContext != null) {\n byte[] buf = _inputBuffer;\n if (buf != null) {\n _inputBuffer = null;\n _ioContext.releaseReadIOBuffer(buf);\n }\n }\n }", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\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 final void clearBuffer() {\n width = 0;\n height = 0;\n noiseBuffer = null;\n }", "public void clear() {\n\t\tbufferLast = 0;\n\t\tbufferIndex = 0;\n\t}", "public void freeBuffer() {\n if(allocatedBufferSource.get() != null) {\n allocatedBufferSource.getAndSet(null).freeVideo(this);\n }\n }", "public final void clear()\n {\n\t\tcmr_queue_.removeAllElements();\n buffer_size_ = 0;\n }", "public void purgeQueue() {\r\n\t\tfDirtyRegions.clear();\r\n\t}", "public void flush(){\r\n mBufferData.clear();\r\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}", "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 }", "public void clear() throws DeviceException;", "@SuppressWarnings(\"unchecked\") \n /* #end */\n public void release()\n {\n buffers = (KType[][]) EMPTY;\n blockLen = 0;\n elementsCount = 0;\n }", "public void release() {\n this.buffer = EMPTY_ARRAY;\n this.elementsCount = 0;\n }", "void purge();", "private void cleanBuffersFromCache()\n {\n synchronized (myUsedKeys)\n {\n CacheProvider cache = getCache();\n for (PolylineModelData key : myPreviouslyUsedKeys)\n {\n if (!myUsedKeys.contains(key))\n {\n cache.clearCacheAssociation(key, PolylineDataBuffered.class);\n }\n }\n\n myPreviouslyUsedKeys.clear();\n myPreviouslyUsedKeys.addAll(myUsedKeys);\n }\n }", "private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\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 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 resetBuffer() {\n baos.reset();\n }", "public void clear() {\n mLeDevices.clear();\n }", "public void clear() {\n this.init(buffer.length);\n }", "void drainFused() {\n int n;\n int n2 = 1;\n Subscriber<T> subscriber = this.actual;\n SimpleQueueWithConsumerIndex<Object> simpleQueueWithConsumerIndex = this.queue;\n do {\n if (this.cancelled) {\n simpleQueueWithConsumerIndex.clear();\n return;\n }\n Throwable throwable = (Throwable)this.error.get();\n if (throwable != null) {\n simpleQueueWithConsumerIndex.clear();\n subscriber.onError(throwable);\n return;\n }\n n = simpleQueueWithConsumerIndex.producerIndex() == this.sourceCount ? 1 : 0;\n if (!simpleQueueWithConsumerIndex.isEmpty()) {\n subscriber.onNext(null);\n }\n if (n != 0) {\n subscriber.onComplete();\n return;\n }\n n2 = n = this.addAndGet(-n2);\n } while (n != 0);\n }", "public void free(){\n\t\t\t\tif(this.handle != GlBuffer.UNBIND_HANDLE){\n\t\t\t\t\tfinal int[] handles = new int[]{this.handle};\n\t\t\t\t\tthis.handle = GlBuffer.UNBIND_HANDLE;\n\t\t\t\t\tGLES20.glDeleteBuffers(1, handles, 0);\n\t\t\t\t}\n\t\t\t}", "public synchronized void freeBuf(int bufNum) {\n\t\t// if it's a valid remove request:\n\t\tif (_bufferMap.containsKey(bufNum)) {\n\t\t\t// remove it from the buffer map\n\t\t\t_bufferMap.remove(bufNum);\n\t\t\t// free it on the server\n\t\t\tsendMessage(\"/b_free\", new Object[] { bufNum });\n\t\t}\n\t}", "private void resetBytesFree()\r\n {\r\n this.bytesFree.set(0);\r\n }", "public void clear() {\n final Object[] items = this.items;\n final ReentrantLock lock = this.lock;\n lock.lock();\n try {\n int k = count;\n if (k > 0) {\n final int putIndex = this.putIndex;\n int i = takeIndex;\n do {\n items[i] = null;\n if (++i == items.length)\n i = 0;\n } while (i != putIndex);\n takeIndex = putIndex;\n count = 0;\n for (; k > 0 && lock.hasWaiters(notFull); k--)\n notFull.signal();\n }\n } finally {\n lock.unlock();\n }\n }", "public void free(){\n\t\t//android.util.Log.d(TAG,\"free()\");\n\t\tthis.freeGeometries();\n\t\tthis.freeLights();\n\t\tthis.freeCameras();\n\t\tthis.freeTextures();\n\t\tthis.freeMaterials();\n\t}", "public void clear() {\n streams.clear();\n }", "public void clear() {\n\t\tsynchronized (queue) {\n\t\t\tthis.queue.clear();\n\t\t\tthis.totalEvents = 0;\n\t\t}\n\t}", "private void clearBuffer(ByteBuffer buffer) {\n while (numberLeftInBuffer > 0) {\n readbit(buffer);\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}", "protected void freeBuffers() {\n glDeleteVertexArrays(vao);\n glDeleteBuffers(vbo);\n glDeleteBuffers(ibo);\n }", "public void reset(){\n this.context.msr.setReadyForInput(false);\n emptyAllInputBuffers();\n emptyAllOutputBuffers();\n emptyEngineersConsoleBuffer();\n }", "public void reset() {\n\t\tnewBuffer = null;\n\t\treadyBuffer = new StringBuilder();\n\t\tstatus = ConsumptionStatus.EMPTY;\n\t}", "private void clean() {\n aggregatedValues.clear();\n this.numMessageSent = 0;\n this.numMessageReceived = 0;\n }", "void clearAndNotify();", "public void ClearBuffer() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tpixel_data[x + y * width] = 0x00000000;\n\t\t\t}\n\t\t}\n\t}", "private void clearRequests() {\n requests_ = emptyProtobufList();\n }", "public boolean clearDeviceTypeAndNameBuffer();", "public synchronized void clear() {\n _queue.clear();\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(){\r\n\t\tqueue.clear();\r\n\t}", "public void purge() {\n\t\tIterator<T> it = iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t}\n\t}", "@DISPID(1) //= 0x1. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n int freeBufferSpace();", "public void clearQueuedPassengers(){\n this._queuedPassengers = 0;\n }", "@Override\n public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {\n for (ByteBuf b : buffers) {\n b.release();\n }\n buffers.clear();\n frameLenBuf.release();\n ByteBuf frame = consumeCurrentFrameBuf();\n if (frame != null) {\n frame.release();\n }\n super.handlerRemoved(ctx);\n }", "public int clearData() {\n\t\tsynchronized (mData) {\n\t\t\tallocateBufferSignal();\n\t\t\t\n\t\t\tmDataLength = 0;\n\t\t\tmDataPointer = 0;\n\t\t\t\n\t\t\treturn mData.capacity();\n\t\t}\n\t}", "public void clearBuffer() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "public void clearProducerDestinations() {\n this.producerDestinations_ = emptyProtobufList();\n }", "public void clear() {\n while (refqueue.poll() != null) {\n ;\n }\n\n for (int i = 0; i < entries.length; ++i) {\n entries[i] = null;\n }\n size = 0;\n\n while (refqueue.poll() != null) {\n ;\n }\n }", "public void clearPartitions() {\n\t\tthis.bucketIterator = null;\r\n\t\tthis.probeIterator = null;\r\n\r\n\t\tfor (int i = this.partitionsBeingBuilt.size() - 1; i >= 0; --i) {\r\n\t\t\tfinal BinaryHashPartition p = this.partitionsBeingBuilt.get(i);\r\n\t\t\ttry {\r\n\t\t\t\tp.clearAllMemory(this.availableMemory);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLOG.error(\"Error during partition cleanup.\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.partitionsBeingBuilt.clear();\r\n\r\n\t\t// clear the partitions that are still to be done (that have files on disk)\r\n\t\tfor (final BinaryHashPartition p : this.partitionsPending) {\r\n\t\t\tp.clearAllMemory(this.availableMemory);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void free() {\r\n\t\tfor(AnalogInput m_analog : mAnalogs)\r\n\t\t{\r\n\t\t\tif (m_analog != null && m_channelAllocated) {\r\n\t\t\t\tm_analog.free();\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tfor(int i = 0; i < mAnalogs.length; i++)\r\n\t\t{\r\n\t\t\tmAnalogs[i] = null;\r\n\t\t}\r\n\t}", "public void ClearUnsentQueue() {\n \t\tjobqueue.clear();\n \t}", "public void releaseAll() {\n for (T p : this.memoryQueue) {\n p = this.allocator.deallocate(p);\n }\n\n System.gc();\n }", "public void resetBuffer(){\n bufferSet = false;\n init();\n }", "protected final void resetBuffer() {\n buffer.reset();\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 free() {\n byteBase.free();\n byteBase = null;\n }", "private void cleanupReceiver ()\n {\n if (receiver != null)\n {\n unregisterReceiver(receiver);\n receiver = null;\n }\n }", "public void clearConsumerDestinations() {\n this.consumerDestinations_ = emptyProtobufList();\n }", "public Queue<T> deQueue();", "public void deallocate() {\n\tsetLoaded(false);\n\n if (!externalAudioPlayer) {\n if (audioPlayer != null) {\n audioPlayer.close();\n audioPlayer = null;\n }\n }\n \n\tif (!externalOutputQueue) {\n\t outputQueue.close();\n\t}\n }", "public void clear(){\n\t\tif(this.isUpgraded){\n\t\t\tthis.linkArray.clear();\n\t\t\tthis.isUpgraded = false;\n\t\t}\n\n\t\tthis.nativeArray.clear();\n\t}", "protected void cleanup() {\n this.dead = true;\n this.overflow = null;\n this.headerBuffer = null;\n this.expectBuffer = null;\n this.expectHandler = null;\n this.unfragmentedBufferPool = null;\n this.fragmentedBufferPool = null;\n this.state = null;\n this.currentMessage = null;\n \n /*\n this.onerror = null;\n this.ontext = null;\n this.onbinary = null;\n this.onclose = null;\n this.onping = null;\n this.onpong = null;*/\n}", "void purge() {\n\t\t\t\t\n\t\tlong now = System.currentTimeMillis();\n\t\t\n\t\t// when sending out I_BEACON we do change the UUID based on temp exposure keys\n\t\t// and thus need to purge these occasionally....\n\t\tif ( now - getPurgedObsoleteTempExpKeysTS() > getPurgeTempExpKeysInterval()) {\n\t\t\tpurgeObsoleteTempExpKeys( now);\n\t\t}\n\t\t\n\t\t// when in I_BEACON MODE, we don't store any IDs...\n\t\tif ( this.getAppType() == Beacon.AppType.I_BEACON) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif ( now - getPurgedEphemeralIDsTS() > getPurgeEphemeralIDsInterval()) {\n\t\t\tpurgeEphemeralIDs( now);\t\t\t\n\t\t}\n\t\t\n\t\tif ( now - getPurgedObsoleteExposureIDsTS() > getPurgeExpIDsInterval()) {\n\t\t\tpurgeObsoleteExposureIDs( now);\n\t\t}\n\t}", "@Override\n protected final void deallocate() {\n ByteBuf wrapped = unwrap();\n recyclerHandle.recycle(this);\n wrapped.release();\n }", "private void clearData() {}", "@Override\n public void clear() {\n for (int i = 0; i < size; i++) {\n data[i] = null;\n }\n size = 0;\n }", "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 clearAllPCMStickyFaults() {\n CompressorJNI.clearAllPCMStickyFaults(m_pcm);\n }", "public void clearConnection() {\n serverSock = null;\n in = null;\n out = null;\n }", "private void flushAllBuffers() {\n mMaxX = 0f;\n mMaxY = 0f;\n mMaxZ = 0f;\n mMinX = 1e6f;\n mMinY = 1e6f;\n mMinZ = 1e6f;\n mLastVertexNumber = 0; // zero based counting :-)\n mVertices.clear();\n mNormals.clear();\n mColors.clear();\n mIndices.clear();\n mTextureIndex.clear();\n mHaveMaterialColor = false;\n }", "public void clearReceivedEvents() {\n this.receivedEvents.clear();\n }", "public void clearInterrupt() {\n Object object = this.msgSync;\n synchronized (object) {\n this.msg = 0;\n }\n }", "void unsubscribeAll();", "public void clear()\n {\n synchronized(mQueue)\n {\n mQueue.clear();\n mCounter.set(0);\n mOverflow.set(false);\n if(mOverflowListener != null)\n {\n mOverflowListener.sourceOverflow(false);\n }\n }\n }", "public void resetBuffer() {\n\n\t}", "public void removeAll() {\n synchronized (mBitmapCache) {\n mBitmapCache.evictAll();\n }\n }", "public void clearBytes() {\n this.f12193a = 0;\n this.f12194b = 0;\n this.f12195c = 0;\n this.f12196d.clear();\n this.f12197e.mo42967b();\n this.f12198f.clear();\n mo42980c();\n }", "public void clean() {\n\tmTaskCompletedCallback = null;\n\tmTaskUpdateCallback = null;\n\tmIsDirty = false;\n }", "private void clearLocalBuffer() {\r\n \t\tcurrentTarget = null;\r\n \t\tcurrentTargetId = -1;\r\n \t\topenGLModelConfiguration = null;\r\n \t\tif(indicators != null) {\r\n \t\t\tindicators.clear();\r\n \t\t}\r\n \t}", "public synchronized void dropChanges() {\n\t\tmPendingDeleteCount = 0;\n\t}", "public native void clear();", "public void removeAllData() {\n\t\tList<T> allData = this.getAllData();\r\n\t\t// clean the map\r\n\t\tthis.dataMap.clear();\r\n\t\t\r\n\t\t// notify the subscribers\r\n\t\tthis.notifyDeleted(allData);\r\n\t}", "public void clearQueue() {\n\tmQueue.clear();\n\tqueueModified();\n }", "private void freePartitions()\n {\n partitionsNoLongerNeeded.set(null);\n\n lock.writeLock().lock();\n try {\n // Remove out references to partitions to actually free memory\n Arrays.fill(partitions, null);\n lookupSourceSupplier = null;\n closeCachedLookupSources();\n }\n finally {\n lock.writeLock().unlock();\n }\n }", "public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}", "private void resetBuffer() {\n\t\tbufferWidth = getSize().width;\n\t\tbufferHeight = getSize().height;\n\n\t\t// clean up the previous image\n\t\tif (bufferGraphics != null) {\n\t\t\tbufferGraphics.dispose();\n\t\t\tbufferGraphics = null;\n\t\t}\n\t\tif (bufferImage != null) {\n\t\t\tbufferImage.flush();\n\t\t\tbufferImage = null;\n\t\t}\n\t\tSystem.gc();\n\n\t\tbufferImage = new BufferedImage(bufferWidth, bufferHeight,\n\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\t\tbufferGraphics = bufferImage.createGraphics();\n\t\tbufferGraphics.setRenderingHint (RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t}", "public void clearFirePort();", "void clearDisposable();", "@Override\n public void clear() {\n size = 0;\n storage = null;\n }", "public final void resetAll() {\r\n this._queue = null;\r\n this._delayed = null;\r\n }", "@Override\n public void clear() {\n array = null;\n }", "public void deallocate()\n\t{\n\t\t//for(int i = 0; i <= maxsize; i++){\n\t\t//\t notusemap[i].addAll(inusemap[i]);\n\t\t//\t inusemap[i].clear();\n\t\t//}\n\t}", "private void releaseResources() {\n\t\tstopForeground(true);\n\t\taudioManager.unregisterRemoteControlClient(remoteControlClient);\n\t\taudioManager.unregisterMediaButtonEventReceiver(remoteReceiver);\n\t\t\n\t\tif (mediaPlayer != null){\n\t\t\tmediaPlayer.reset();\n\t\t\tmediaPlayer.release();\n\t\t\tmediaPlayer = null;\n\t\t}\n\t\t\n\t\tif (wifiLock.isHeld()) {\n\t\t\twifiLock.release();\n\t\t}\n\t}", "public void clear() {\n this.data().clear();\n }" ]
[ "0.6917311", "0.66155374", "0.66027457", "0.6444149", "0.6442829", "0.6385151", "0.63669163", "0.62601686", "0.62375116", "0.623535", "0.6188643", "0.61645263", "0.6102896", "0.604823", "0.60348135", "0.6014542", "0.6010867", "0.5994768", "0.5958135", "0.58761096", "0.58589524", "0.58560205", "0.58342266", "0.583166", "0.5807427", "0.5770865", "0.57686126", "0.5750978", "0.5734616", "0.5729078", "0.57214653", "0.57063246", "0.5685804", "0.56828535", "0.56620544", "0.5655909", "0.5651854", "0.5633558", "0.5632101", "0.5619651", "0.5615868", "0.5595634", "0.55942017", "0.5592827", "0.55926234", "0.5590192", "0.55790615", "0.5574545", "0.5557247", "0.5536047", "0.5535671", "0.5531907", "0.5520078", "0.5518588", "0.5507376", "0.55033815", "0.54903036", "0.54713255", "0.5459895", "0.5451576", "0.54495555", "0.54490393", "0.54484606", "0.54313934", "0.5421693", "0.54158044", "0.54114234", "0.5374384", "0.5360888", "0.5359166", "0.535629", "0.53487664", "0.5347344", "0.5339482", "0.53338116", "0.5319483", "0.531815", "0.53168285", "0.5314193", "0.5304009", "0.53023976", "0.52919555", "0.5279957", "0.5277318", "0.5276836", "0.52746505", "0.52685535", "0.52630943", "0.526113", "0.52582127", "0.52534693", "0.524613", "0.5244464", "0.52428275", "0.5241068", "0.5237916", "0.52347887", "0.5229868", "0.52169573", "0.5216633" ]
0.6266567
7
Send a reset command to the device.
public void resetDevice() throws FTD2XXException { ensureFTStatus(ftd2xx.FT_ResetDevice(ftHandle)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendReset() {\n\t\tif (hardReset) {\n\t\t\tfsmTeacher.handleAction(\"reset%hard_reset\");\n\t\t\t// System.out.println(\"hard reset\");\n\t\t} else if (semiSoftReset) {\n\t\t\tSystem.out.println(\"semi soft reset\");\n\t\t\tfsmTeacher.handleAction(\"reset%semi_soft_reset\");\n\t\t} else if (softReset) {\n\t\t\tfsmTeacher.handleAction(\"reset%soft_reset\");\n\t\t\tSystem.out.println(\"soft reset\");\n\t\t}\n\t}", "public static void resetDevice(NetSocket socket) {\n String data = \"CS01*868807049006736*0046*RESET,20200423142625I0445\";\n String deviceId = \"868807049006736\";\n send(socket, data, deviceId);\n }", "public static void reset(NetSocket socket) {\n String data = \"CS01*868807049006736*0005*RESET,20190814114414I4021\";\n String deviceId = \"868807049006736\";\n send(socket, data, deviceId);\n }", "public void reset() {\n monitor.sendReset();\n }", "public int cmdReset(byte[] atr) \n throws IOException {\n int bytes_read;\n \n if ((bytes_read = reset0(atr)) < 0) {\n String err_msg = getErrorMessage0();\n if (err_msg != null)\n throw new IOException(err_msg);\n else\n throw new IOException(\"reset failed\");\n }\n return bytes_read;\n }", "private void cmdReset() throws NoSystemException {\n fSession.reset();\n }", "public void resetParameters() {\n if (!mBeacon.isConnected()) {\n return;\n }\n\n mDownloadButton.setEnabled(false);\n HashMap<String, Object> cmdPara = new HashMap<>(5);\n cmdPara.put(\"msg\", \"reset\");\n mRingButton.setEnabled(false);\n mBeacon.sendCommand(cmdPara, new KBeacon.ActionCallback() {\n @Override\n public void onActionComplete(boolean bConfigSuccess, KBException error) {\n mRingButton.setEnabled(true);\n if (bConfigSuccess)\n {\n //disconnect with device to make sure the new parameters take effect\n mBeacon.disconnect();\n toastShow(\"send reset command to beacon success\");\n }\n else\n {\n toastShow(\"send reset command to beacon error:\" + error.errorCode);\n }\n }\n });\n }", "public synchronized void power_on_reset()\n {\n // Flush data memory\n for(int i=0;i<=DATA_MEMORY_SIZE;i++)\n this.setDataMemory(i,0x00);\n\n mPC = 0;\n mMBR = mMBR2 = 0;\n for(int i=0;i<=PROGRAM_MEMORY_SIZE;i++) \n this.setProgramMemory(i,0xFFFF);\n // Power on reset sets the PORF bit of the MCUSR\n try { set_ioreg(MCUSR,get_ioreg(MCUSR) | 0x01); }\n catch (RuntimeException e) { }\n mClockCycles = 0;\n mSleeping = false;\n }", "public Reply reset() throws ThingsException, InterruptedException;", "public void reset() \n {\n try \n {\n // your code here\n \tSystem.out.println(\"Resetting virtual machine '\"+vm.getName() +\"'. Please wait...\"); \n \tTask t=vm.resetVM_Task();\n \tif(t.waitForTask()== Task.SUCCESS)\n \t{\n\t \tSystem.out.println(\"Virtual machine reset.\");\n\t \tSystem.out.println(\"====================================\");\n \t}\n \telse\n \t\tSystem.out.println(\"Reset failed...\");\n } \n catch ( Exception e ) \n { \n \tSystem.out.println( e.toString() ) ; \n }\n }", "public static\n void reset() {\n try {\n Ansi.out.write(AnsiOutputStream.RESET_CODE);\n Ansi.err.write(AnsiOutputStream.RESET_CODE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void onClickResetBtn() throws IOException {\n // Send a packet of byte[3,0] to indicate the Client is done playing, and going to quit the game\n client.sendOnly(client.getSocket(), serverPackage, 3, 0);\n isRed = true;\n turnCircle.setFill(Paint.valueOf(\"Red\"));\n turnDisplay.setText(humanTurn);\n winDisplay.setText(\"\");\n // Set all the circle in the Grid's color back to black\n resetGrid();\n\n client.restartClient();\n // Re-enable the Grid\n grid.setDisable(false);\n System.out.println(\"Client has restarted...Initialize new Game\\n\");\n }", "public static void resetSerialPort(final String moduleName) {\n\t\tLOGGER.info(\"Resetting of Serial Port USB Started...\");\n\n\t\tSafeProcess process = null;\n\t\tBufferedReader br = null;\n\t\tfinal String[] command = { CMD_PYTHON, RESET_SERIAL, moduleName };\n\n\t\ttry {\n\t\t\tprocess = ProcessUtil.exec(command);\n\t\t\tbr = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\t\tString line = null;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tif (line.contains(\"command not found\")) {\n\t\t\t\t\tLOGGER.error(\"Resetting Command Not Found\");\n\t\t\t\t\tthrow new KuraException(KuraErrorCode.OPERATION_NOT_SUPPORTED);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tLOGGER.info(\"Resetting of Serial Port USB Started...Done\");\n\t\t} catch (final Exception e) {\n\t\t\tLOGGER.error(Throwables.getStackTraceAsString(e));\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tLOGGER.debug(\"Closing Buffered Reader and destroying Process\", process);\n\t\t\t\tbr.close();\n\t\t\t\tprocess.destroy();\n\t\t\t} catch (final IOException e) {\n\t\t\t\tLOGGER.error(\"Error closing read buffer\", Throwables.getStackTraceAsString(e));\n\t\t\t}\n\t\t}\n\t}", "public MockServerClient reset() {\n getMockServerEventBus().publish(EventType.RESET);\n sendRequest(\n request()\n .withMethod(\"PUT\")\n .withPath(calculatePath(\"reset\")),\n true\n );\n return clientClass.cast(this);\n }", "@Override\n public void onClick(View view) {\n if (socket != null && Bluetooth.isStillConnected()) {\n try {\n OutputStream outStream = socket.getOutputStream();\n Commands.sendCommand(outStream, \"reset\", \"\");\n Snackbar.make(view, \"Arduino reset\",\n Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n } catch (IOException e) {\n Log.d(\"IOException\", \"Exception sending reset command\");\n }\n }\n else{\n Snackbar.make(view, \"Not connected\",\n Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n }\n }", "public void resetCommand() {\n beginMatchButton.setEnabled(false);\n switcherButton.setEnabled(true);\n stopMatchButton.setEnabled(false);\n\n autonomousTime.setEditable(true);\n teleoperatedTime.setEditable(true);\n\n resetProBar();\n\n renewGameThread(autonomousTime.getText(), teleoperatedTime.getText());\n\n SetAllBypassBoxesEnabled(true);\n\n SetAllBypassBoxesSelected(false);\n\n dsComStatusBlueTeam1.setBackground(NOT_READY);\n dsComStatusBlueTeam2.setBackground(NOT_READY);\n dsComStatusBlueTeam3.setBackground(NOT_READY);\n dsComStatusRedTeam1.setBackground(NOT_READY);\n dsComStatusRedTeam2.setBackground(NOT_READY);\n dsComStatusRedTeam3.setBackground(NOT_READY);\n\n robotComStatusBlueTeam1.setBackground(NOT_READY);\n robotComStatusBlueTeam2.setBackground(NOT_READY);\n robotComStatusBlueTeam3.setBackground(NOT_READY);\n robotComStatusRedTeam1.setBackground(NOT_READY);\n robotComStatusRedTeam2.setBackground(NOT_READY);\n robotComStatusRedTeam3.setBackground(NOT_READY);\n\n runningMatchTime.setText(UI_Layer.fixAutoTime(autonomousTime.getText()));\n\n PLC_Receiver.resetFieldESTOPPED();\n PLC_Sender.getInstance().updatePLC_Lights(true);\n\n SetAllTeamFieldsEditable(true);\n\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n System.out.println(\"Resetting Fields\");\n }", "public void reset() {\n serverReset(game.generateUIDs(data.getObjectCount()));\n }", "public static void resetModemTemperature() {\n\t\t\n\t}", "protected void doReset() throws FndException\n {\n }", "public final void reset() {\n\n // Reset the output buffer\n out.reset();\n\n a=0x8000;\n c=0;\n b=0;\n if(b==0xFF)\n cT=13;\n else\n cT=12;\n resetCtxts();\n nrOfWrittenBytes = -1;\n delFF = false;\n\n nSaved = 0;\n }", "public void reboot() {\n writeData(ESC.CMD_CONTROL_REBOOT);\n }", "void reset(int id);", "@POST(\"/Reset\")\n\tint resetUser();", "public abstract void onReset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "public CommandReset() {\r\n setCommandName(COMMAND_NAME);\r\n setParameterRegex(RESET_PARAMETERS_REGEX);\r\n }", "@Override\n\tpublic void askReset() {\n\t}", "void reset() ;", "void reset ();", "public static void MSM5205_sh_reset() {\n int i;\n\n /* bail if we're not emulating sound_old */\n if (Machine.sample_rate == 0) {\n return;\n }\n\n for (i = 0; i < msm5205_intf.num; i++) {\n MSM5205Voice voice = msm5205[i];\n /* initialize work */\n voice.data = 0;\n voice.vclk = 0;\n voice.reset = 0;\n voice.signal = 0;\n voice.step = 0;\n /* timer and bitwidth set */\n MSM5205_playmode_w.handler(i, msm5205_intf.select[i]);\n }\n }", "public void consoleReset() { }", "public void consoleReset() { }", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public synchronized void external_reset()\n {\n // Set EXTRF bit in MCUSR\n try { set_ioreg(MCUSR,get_ioreg(MCUSR) | 0x02); }\n catch (RuntimeException e) { }\n\n // TO DO: Handle an external reset\n // This happens when the RESET pin of the atmel is set low for 50 ns or more\n mClockCycles = 0;\n mMBR = mMBR2 = 0;\n mPC = 0;\n mSleeping = false;\n System.out.println(\"Atmel.external_reset\");\n }", "private void triggerReset() {\n DefenceField.fieldActivated = false;\n OnFieldReset event = new OnFieldReset(this::doActivation);\n event.beginTask();\n DefenceField.getShrineEntity().send(event);\n event.finishTask();\n }", "@Override\n\tpublic void reset() throws SIMException\n\t{\n\t\tsuper.reset();\n\t\tArrays.fill(memory,(byte)0xff);\n\t}", "public void reset(){\n paycheckController.reset();\n }", "void fullReset();", "public void reset() {\n\n }", "protected abstract void appendResetMQL(final StringBuilder _cmd);", "void reset()\n {\n\n }", "protected abstract void reset();", "public void reset() {\n actionFlag = true;\n messageFlag = false;\n self.getInputBuffer().clear();\n self.getOutputBuffer().clear();\n self.setCurrentProduct(null);\n self.resetCounters();\n self.getServiceManager().init(getRandom(), template);\n syncUpdate();\n }", "public void reset () {}", "public synchronized void reset() {\n }", "public void sendResetPasswordToken(String token) {\n\t\tif (token != null) {\n sendSuccessResult(CALLBACK_TYPE_RESET_PASSWORD_TOKEN, token);\n\t\t}\n\t}", "public void setDoReset(boolean doReset) {\n this.doReset = doReset;\n }", "public void reset() throws Exception;", "public void doReset() {\n\t\tactionBridge.execute(new Action() {\n\t\t\tpublic void execute() {\n\t\t\t\tSheet sheet = book.getSheetAt(0);\n\n\t\t\t\t// reset sample data\n\t\t\t\t// you can use a cell reference to get a range\n\t\t\t\tRange from = Ranges.range(sheet, \"E5\");// Ranges.range(sheet,\"From\");\n\t\t\t\t// or you can use a name to get a range (the named range has to be\n\t\t\t\t// set in Excel);\n\t\t\t\tRange to = Ranges.rangeByName(sheet, \"To\");\n\t\t\t\tRange reason = Ranges.rangeByName(sheet, \"Reason\");\n\t\t\t\tRange applicant = Ranges.rangeByName(sheet, \"Applicant\");\n\t\t\t\tRange requestDate = Ranges.rangeByName(sheet, \"RequestDate\");\n\n\t\t\t\t// use range API to set the cell data\n\t\t\t\tfrom.getCellData().setValue(DateUtil.tomorrowDate(0));\n\t\t\t\tto.getCellData().setValue(DateUtil.tomorrowDate(0));\n\t\t\t\treason.setCellEditText(\"\");\n\t\t\t\tapplicant.setCellEditText(\"\");\n\t\t\t\trequestDate.getCellData().setValue(DateUtil.todayDate());\n\t\t\t}\n\t\t});\n\t\taddMessage(\"Reset book\");\n\t}", "public void reset(){\n }", "abstract void reset();", "public void hardReset(String revision) throws VcsException {\n GeneralCommandLine cmd = createCommandLine();\n cmd.addParameters(\"reset\", \"--hard\", revision);\n ExecResult r = runCommand(cmd);\n failIfNotEmptyStdErr(cmd, r);\n }", "@Override\n\tpublic void reset() {\n\t\tthis.result = 0;\n\t\tthis.operande = \"0\";\n\t\tthis.operateur = \"\";\n\t\tnotifyObserver(String.valueOf(this.result));\n\t}", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }" ]
[ "0.7480683", "0.69653875", "0.69395643", "0.68346393", "0.6827325", "0.67896295", "0.64995074", "0.62740964", "0.62676823", "0.6224665", "0.6206947", "0.6147521", "0.6141821", "0.6141606", "0.6132587", "0.61227506", "0.60944915", "0.6089463", "0.6083417", "0.6049796", "0.59990406", "0.59874624", "0.59738636", "0.5971982", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.5948664", "0.59414124", "0.592712", "0.5917859", "0.59077615", "0.59041727", "0.5893842", "0.5893842", "0.5877038", "0.5877038", "0.5877038", "0.5877038", "0.5877038", "0.5877038", "0.5877038", "0.5877038", "0.5877038", "0.5877038", "0.5877038", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.5842052", "0.58260226", "0.58124065", "0.5805357", "0.5801369", "0.5788449", "0.5760844", "0.57553554", "0.57364446", "0.57109994", "0.57091665", "0.57078564", "0.57001406", "0.5696025", "0.56884557", "0.5679392", "0.5640378", "0.56391305", "0.5636947", "0.56174934", "0.5596308", "0.5595382", "0.5595382", "0.5595382" ]
0.60379875
20
Set the latency timer value.
public void setLatencyTimer(short timer) throws FTD2XXException, IllegalArgumentException { if (!((timer >= 2) && (timer <= 255))) { throw new IllegalArgumentException("Valid range is 2 - 255!"); } ensureFTStatus(ftd2xx.FT_SetLatencyTimer(ftHandle, (byte) timer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void latencyMsgsPerSec(int latencyMsgsPerSec)\n\t{\n\t\t_latencyMsgsPerSec = latencyMsgsPerSec;\n\t}", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }", "public void set(final long timeValue) {\n stamp = timeValue;\n }", "public void setLock_latency(Long lock_latency) {\n this.lock_latency = lock_latency;\n }", "public void setTime(double time) {_time = time;}", "public void setTimeout(Long value) {\r\n timeout = value;\r\n incompatibleWithSpawn |= timeout != null;\r\n }", "public void set_p_sendts(long value) {\n setUIntBEElement(offsetBits_p_sendts(), 32, value);\n }", "public void setDelay(int delayValue)\r\n {\r\n\t timer.setDelay(delayValue);\r\n }", "public void setDelay(long d){delay = d;}", "public void setRequestTimerValue(short requestTimerValue)\n throws JNCException {\n setRequestTimerValue(new YangUInt8(requestTimerValue));\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 void setTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}", "public void setDelay(double clock);", "public com.example.DNSLog.Builder setTs(long value) {\n validate(fields()[7], value);\n this.ts = value;\n fieldSetFlags()[7] = true;\n return this;\n }", "public void setTotal_latency(Long total_latency) {\n this.total_latency = total_latency;\n }", "public void setDelayCounter(int value) {\n delayCounter = value;\n }", "public long getLatency() {\n return latency;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "public void setTs(long value) {\n this.ts = value;\n }", "public void setTimeToLive(long value) {\n this.timeToLive = value;\n }", "void setTime(final int time);", "public void setTimeOut(int value) {\n this.timeOut = value;\n }", "public void setMinLatency(Long minLatency) {\n this.minLatency = minLatency;\n }", "public Builder setTtl(long value) {\n bitField0_ |= 0x00000008;\n ttl_ = value;\n onChanged();\n return this;\n }", "public void setTime(){\n\t\tthis.time = this.endTime - this.startTime;\t//calculate the time difference\n\t\t\n\t\t//now since the time is in milliseconds, convert the nanotime\n\t\tlong totalSeconds = (this.time / 1000000000);\n\t\t//Format the above seconds. So it will have at least \n\t\tint minute = (int)(totalSeconds/60);\n\t\tdouble second = totalSeconds - (minute*60);\t//get the remaining second part\n\t\t\n\t\tDecimalFormat minuteFormat = new DecimalFormat(\"##0\");\n\t\tDecimalFormat secondFormat = new DecimalFormat(\"###\");\t//so we only get the 3 digits\n\t\tString minutePart = minuteFormat.format(minute);\t//get the string for the second part\n\t\tString secondPart = secondFormat.format(second);\n\t\t\n\t\t\n\t\tString result = minutePart + \":\" + secondPart;\n\t\t\n\t\t//each time we set time, change the bounds\n\t\tthis.timeLabel.setText(String.valueOf(result));//set the JLabel text\n\t\t//when we set the time label, also set its location\n\t\tthis.timeLabel.setSize(timeLabel.getPreferredSize().width, \n\t\t\t\ttimeLabel.getPreferredSize().height);\n\t}", "public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "public Double latency() {\n return this.latency;\n }", "public void SetTimeRemaining(int value) {\n Timer = value;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }", "private void SetTime() {\r\n\t\t timelbl.setText(second/3600+\":\"+((second/60)%60)+\":\"+(second%60));\r\n\t}", "public Builder setTime(long value) {\n bitField0_ |= 0x00000008;\n time_ = value;\n onChanged();\n return this;\n }", "public void setTimer(long ms) {\r\n\t\tthis.timer = ms;\r\n\t}", "public void setDelaytime(Long delaytime) {\n this.delaytime = delaytime;\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: */ }", "V setValue(V value, long ttl, TimeUnit ttlUnit);", "@Override\n public void referenceClockTime(long value, boolean seconds) {\n }", "public abstract void setSecondsPerUpdate(float secs);", "@Override\n public void referenceClockTimeSync(int timeSyncSeqNum, long value) {\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public void setDelay(long delay) {\n this.delay = delay;\n }", "public static void loadTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tTpsLatHistoryEntity tpsLabHis = new TpsLatHistoryEntity();\n\t\tsetTPSLatencyHistory(envId, conponentId, tpsVaule, latencyValue, todayDate, tpsLabHis);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}", "public B withFailureEffectiveLatency(Duration latency) {\n if (latency.isNegative()) {\n throw new IllegalArgumentException(\"timeout can't be negative\");\n }\n this.scheduledCounterBuilder.withMaxDelay(latency);\n return (B)this;\n }", "public final void setTimeStamp(long value) {\n synchronized (TIMESTAMP_LOCK) {\n this.timeStamp = value;\n }\n }", "public void setSleepTime(final long l) {\n if (l <= 0) {\n throw new IllegalArgumentException(\"Sleep Time must be a non-zero positive number\");\n }\n sleepTime = l;\n }", "public void setTimeout(long t) {\n StepTimeout = t;\n }", "public void setTime( int value ) {\n final int oldTime = currentTime;\n currentTime = value;\n selectedThingsChanged( oldTime );\n\n mapComponent.getOptionContainer().getTimeCode().setText( DataExporter.generateTimeCode( value ) );\n\n mapComponent.getRadiantGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, true ) ) );\n mapComponent.getDireGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, false ) ) );\n\n mapComponent.getRadiantXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, true ) ) );\n mapComponent.getDireXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, false ) ) );\n\n }", "public Builder setTime(long value) {\n\n time_ = value;\n onChanged();\n return this;\n }", "public Builder setSendTime(long value) {\n \n sendTime_ = value;\n onChanged();\n return this;\n }", "public void setTime(java.lang.Integer value) {\n this.time = value;\n }", "public final native double setTime(double milliseconds) /*-{\n this.setTime(milliseconds);\n return this.getTime();\n }-*/;", "public void setRequestTimerValue(String requestTimerValue)\n throws JNCException {\n setRequestTimerValue(new YangUInt8(requestTimerValue));\n }", "public void setPlaylistDelay( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PLAYLISTDELAY, value);\r\n\t}", "public void setTimer() {\n\t\t\n\t}", "public void setDelay(float time)\n\t{\n\t\tdelayMax=time;\n\t}", "public void setSpeed(float val) {speed = val;}", "public void addLatency(AbstractBenchmarkState state, BenchmarkInteraction interaction, long latency) {\n // Latency only makes sense if there was an interaction.\n if (interaction == null)\n return;\n String stateName = state.getStateName();\n String interactionName = interaction.fullName;\n addLatency(stateName, interactionName, latency);\n }", "public void setLaSeconds(int laSeconds) {\n this.laSeconds = laSeconds;\n }", "public Builder setRequestTime(long value) {\n \n requestTime_ = value;\n onChanged();\n return this;\n }", "T setStartTimeout(Integer timeout);", "public void addCronetLatency(final long cronetLatency) {\n\n totalLatency += cronetLatency;\n numberOfImages++;\n\n if (numberOfImages == ImageRepository.numberOfImages()) {\n final long averageLatency = totalLatency / numberOfImages;\n android.util.Log.i(TAG,\n \"All Cronet Requests Complete, the average latency is \" + averageLatency);\n final TextView cronetTime = (TextView) findViewById(R.id.cronet_time_label);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n cronetTime.setText(String.format(getResources()\n .getString(R.string.images_loaded), averageLatency));\n }\n });\n this.cronetLatency.set(averageLatency);\n }\n }", "public void setTime(long time)\n {\n this.time = time;\n\n }", "public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }", "@Override\n\tpublic void setTimer(Double d) {\n\t\t\n\t}", "public void setAvg_latency(Long avg_latency) {\n this.avg_latency = avg_latency;\n }", "public void setStartTime(long value) {\r\n this.startTime = value;\r\n }", "public void setValue(long value) {\n\t this.value = value;\n\t }", "public void setTime(float time) {\n this.time = time;\n }", "protected void setTimestamp(long time) \n {\n\t\tlTimestamp = time;\n\t}", "protected void onSetOnTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public void setRequestTimerValue(YangUInt8 requestTimerValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"request-timer\",\n requestTimerValue,\n childrenNames());\n }", "public void setSpeed(double multiplier);", "public void setTime_unit(byte time_unit) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeByte(__io__address + 10, time_unit);\n\t\t} else {\n\t\t\t__io__block.writeByte(__io__address + 10, time_unit);\n\t\t}\n\t}", "@Override\n public native void setAutoDelay(int ms);", "public edu.pa.Rat.Builder setTime(int value) {\n validate(fields()[0], value);\n this.time = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "public void setTime(long time,int ento){ \r\n\t}", "@Override\n public void ptt(int value, int timestamp) {\n }", "public static void updateTpsLatHistory(final int envId, int componentId, float tpsVaule, float latencyValue, String platform){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());\n\t\t\n\t\tString queryStr = null;\n\t\tif(platform.equals(\"K8s\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_K8S_TPS_LAT_HISTORY;\n\t\t}else if(platform.equals(\"Mesos\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_MESOS_TPS_LAT_HISTORY;\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(queryStr);\n\t\tquery.setFloat(\"tpsVaule\", tpsVaule);\n\t\tquery.setFloat(\"latencyValue\", latencyValue);\n\t\tquery.setLong(\"compId\", componentId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"statusDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}", "public void setTimer(int timer) {\n this.timer = timer;\n }", "public void setTimeSeconds(float aTime) { setTime(Math.round(aTime*1000)); }", "public void setTime(long time) {\r\n this.time = time;\r\n }", "public void setTimestamp() {\n timestamp = System.nanoTime();\n }", "@Override\n public void addNew(int latency) {\n count.getAndIncrement();\n }", "public LatencyBucket(int latency) {\n this.latency = latency;\n this.count = new AtomicLong(0);\n }", "public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}", "public void setTime(long time) {\n this.time = time;\n }", "public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }", "public void setTime(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}", "@Override public ServerConfig timeout(final int value, final TimeUnit units) {\n this.timeout = units.toMillis(value);\n return this;\n }", "@Override\n\tpublic void setTime(long time)\n\t{\n\t\tsource.setTime(time);\n\t}", "public T setTime (float time) {\n\t\ttimer = MathUtils.clamp(time, 0, duration);\n\t\treturn (T)this;\n\t}", "public native void setInitialAssumedRTT (long RTT);", "public com.twc.bigdata.views.avro.viewing_info.Builder setStartTime(java.lang.Long value) {\n validate(fields()[0], value);\n this.start_time = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "public void setTs(LocalDateTime value) {\n setValue(TS, value);\n }" ]
[ "0.6356916", "0.6296855", "0.6296855", "0.6296855", "0.62277764", "0.62277764", "0.62277764", "0.62277764", "0.6076553", "0.59127116", "0.5911174", "0.5880685", "0.5841621", "0.5776011", "0.57659936", "0.5736627", "0.5695283", "0.5626623", "0.5613739", "0.5590274", "0.5540826", "0.55298835", "0.55282617", "0.5507886", "0.5500099", "0.5499233", "0.5484764", "0.5471096", "0.54678315", "0.5437853", "0.5436369", "0.54264575", "0.54160476", "0.54081345", "0.5405802", "0.53860015", "0.53808844", "0.53801626", "0.53706706", "0.5359309", "0.5343873", "0.5317174", "0.52979535", "0.52922314", "0.52812415", "0.5258463", "0.5257882", "0.5257035", "0.5256405", "0.52555406", "0.5247816", "0.5241985", "0.5239126", "0.52347076", "0.52305377", "0.5219974", "0.5206071", "0.5202955", "0.51998794", "0.5183179", "0.5182123", "0.51803416", "0.51772857", "0.5176494", "0.5167037", "0.51520145", "0.51516926", "0.5122382", "0.51198274", "0.5114436", "0.51119715", "0.5098327", "0.5097439", "0.5094164", "0.5094059", "0.50813264", "0.5078252", "0.5073221", "0.5072783", "0.5071275", "0.50706714", "0.507055", "0.5054977", "0.5051312", "0.5044646", "0.5037593", "0.5036928", "0.50366896", "0.50327796", "0.50284356", "0.5028019", "0.5018588", "0.5018266", "0.5016292", "0.5014733", "0.49998388", "0.49995604", "0.49994367", "0.49973074", "0.49968505" ]
0.6810769
0
Get the current value of the latency timer.
public short getLatencyTimer() throws FTD2XXException { ByteByReference byReference = new ByteByReference(); ensureFTStatus(ftd2xx.FT_GetLatencyTimer(ftHandle, byReference)); return (short) (byReference.getValue() & 0xFF); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double latency() {\n return this.latency;\n }", "public long getLatency() {\n return latency;\n }", "public Long getTotal_latency() {\n return total_latency;\n }", "public String getTotal_latency() {\n return total_latency;\n }", "public BigDecimal getTotalLatency() {\n return totalLatency;\n }", "public int getTransitionLatency() {\n\t\t\tif (mTransitionLatency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + TRANSITION_LATENCY);\n\t\t\t\tif (list == null || list.isEmpty()) return 0;\n\t\t\t\tint value = 0;\n\t\t\t\ttry { value = Integer.valueOf(list.get(0)); }\n\t\t\t\tcatch (NumberFormatException ignored) {}\n\t\t\t\tmTransitionLatency = value;\t\t\t\n\t\t\t}\n\t\t\treturn mTransitionLatency;\n\t\t}", "public int latencyMsgsPerSec()\n\t{\n\t\treturn _latencyMsgsPerSec;\n\t}", "public Long getMinLatency() {\n return minLatency;\n }", "@Override\n public synchronized double get() {\n if (m_running) {\n return ((getMsClock() - m_startTime) + m_accumulatedTime) / 1000.0;\n }\n return m_accumulatedTime;\n }", "public Long getLock_latency() {\n return lock_latency;\n }", "int getNominalDelay();", "public Long getMax_latency() {\n return max_latency;\n }", "public Long getMaxLatency() {\n return maxLatency;\n }", "public double getTotalDelayTime() {\r\n return totalDelayTime;\r\n }", "public Long getDelaytime() {\n return delaytime;\n }", "public int getLTime() {\n return lTime;\n }", "public long getDelayTime() {\n return (long) this.DELAY_TIME;\n }", "public long getTimerTime() {\n return timerTime;\n }", "public int getTimer() {\n return timer;\n }", "public String getMax_latency() {\n return max_latency;\n }", "public BigDecimal getAvgLatency() {\n return avgLatency;\n }", "public Long getAvg_latency() {\n return avg_latency;\n }", "public static int getPlayerLatency(final Player player)\n {\n if (player == null) return -1;\n\n try\n {\n return (int) Reflection.getFieldValue(NMSNetwork.getPlayerHandle(player), \"ping\");\n }\n catch (InvocationTargetException | IllegalAccessException | NoSuchFieldException e)\n {\n PluginLogger.error(\"Unable to retrieve {0}'s latency.\", e, player.getName());\n return -1;\n }\n }", "public static long getCumulativeLatencyMs() {\n\t\treturn requestsCumulativeLatency.longValue();\n\t}", "public int getLaSeconds() {\n return laSeconds;\n }", "public String getAvg_latency() {\n return avg_latency;\n }", "public double getTime()\n {\n long l = System.currentTimeMillis()-base;\n return l/1000.0;\n }", "public synchronized double get() {\n return m_liftSpeed;\n }", "public int getDelay() {\n\t\treturn timer.getDelay();\n\t}", "public float getCurrentTime () {\n\t\treturn timer;\n\t}", "public double getDelay();", "public int getTimer() {\n return getOption(ArenaOption.TIMER);\n }", "public long getDelay();", "public long getTrialSpeed() {\r\n\t return this.pTrialTimeSpeed;\r\n\t}", "public YangUInt8 getRequestTimerValue() throws JNCException {\n YangUInt8 requestTimer = (YangUInt8)getValue(\"request-timer\");\n if (requestTimer == null) {\n requestTimer = new YangUInt8(\"5\"); // default\n }\n return requestTimer;\n }", "@Override\n public Number getValue() {\n return tcpStatWrapper.query().get(entry.getKey());\n }", "int getChronicDelayTime();", "static long currentNTP(long localOffset) {\n long curr = System.currentTimeMillis() + OFFSET + localOffset;\n // this integer represents milliseconds. Need to move the\n // decimal point between seconds and fraction to pos 31/32\n long secs = curr / 1000L;\n double dFrac = (curr % 1000L) / 1000.0;\n long lfrac = (long) (dFrac * SCALE);\n return (secs << 32) | (lfrac & 0xFFFFFFFFL);\n //TODO: standard recommends filling low-end bits with random data.\n \n }", "public int getTime(){\n return (timerStarted > 0) ? (int) ((System.currentTimeMillis() - timerStarted) / 1000L) : 0;\n }", "long getTimerPref();", "public String getPerformanceTime()\r\n {\r\n return performanceTime;\r\n }", "public int getSecond() {\n return this.timeRuunableThread.getSecond();\n }", "public double getElapsedTime() {\r\n return (double) (elapsedTime / 1000.0); // convert from milliseconds to seconds\r\n }", "public int getDelayTime()\n\t{\n\t\treturn delayTime;\n\t}", "public int getTimer() {\n return worldTimer;\n }", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "int getTtiSeconds();", "public int getLoSeconds() {\n return loSeconds;\n }", "public double readClock()\n {\n return (System.currentTimeMillis() - startingTime) / 1000.0;\n }", "public double getSystemTimeSec() {\n\treturn getSystemTime() / Math.pow(10, 9);\n}", "private double pingGetLatency(){\n\t\t int NUMBER_OF_PACKTETS=10;\n\t String pingCommand = \"/system/bin/ping -c \" + NUMBER_OF_PACKTETS + \" \" + ip;\n\t String inputLine = \"\";\n\t double avgRtt = 0;\n\n\t try {\n\t // execute the command on the environment interface\n\t Process process = Runtime.getRuntime().exec(pingCommand);\n\t // gets the input stream to get the output of the executed command\n\t BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n\t inputLine = bufferedReader.readLine();\n\t while ((inputLine != null)) {\n\t if (inputLine.length() > 0 && inputLine.contains(\"avg\")) { // when we get to the last line of executed ping command\n\t break;\n\t }\n//\t \t if (inputLine.length()>0) inputLine = bufferedReader.readLine();\n\t inputLine = bufferedReader.readLine();\n\t }\n\t }\n\t catch (IOException e){\n\t \t pingParameters=\"Error in ping\";\n\t e.printStackTrace();\n\t }\n\n\t // Extracting the average round trip time from the inputLine string\n\t String afterEqual = inputLine.substring(inputLine.indexOf(\"=\"), inputLine.length()).trim();\n\t String afterFirstSlash = afterEqual.substring(afterEqual.indexOf('/') + 1, afterEqual.length()).trim();\n\t String strAvgRtt = afterFirstSlash.substring(0, afterFirstSlash.indexOf('/'));\n\t avgRtt = Double.valueOf(strAvgRtt);\n\t pingParameters=inputLine;\n\t return avgRtt;\n\t }", "public double getTime() { return time; }", "@Override\n\t\tpublic final double time() throws Throwable {\n\t\t\tinit();\n\t\t\ttimer.lap();\n\t\t\ttimed();\n\t\t\tdouble time = timer.lap();\n\t\t\tcleanup();\n\t\t\treturn time;\n\t\t}", "Double currentTime() {\n return execute(\"player.currentTime\");\n }", "@Override\r\n\tpublic String gettime() {\n\t\treturn user.gettime();\r\n\t}", "private int getCurrentValue()\n {\n return\n // Overall wait time...\n _countdownValue -\n // ...minus the time we waited so far.\n (int)(_clock.currentTime() - _startWait);\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "int getMPPerSecond();", "public double getCBRTime();", "final Long getTimeoutValue()\n/* */ {\n/* 137 */ return this.timeout;\n/* */ }", "public double getAsSeconds()\n {\n return itsValue / 1000000.0;\n }", "public double getCpuTimeSec() {\n\treturn getCpuTime() / Math.pow(10, 9);\t\t\n}", "public Integer getCurrentLapsTime() {\n\t\treturn this.currentAction.getCurrentLapsTime();\n\t}", "public long getEventTime();", "public String getTimer() {\n return timer;\n }", "public double getTime(int timePt);", "public double getTime() {return _time;}", "public long getDelay()\n {\n return delay;\n }", "T getEventTime();", "public float getDelay()\n\t{\n\t\treturn delay;\n\t}", "@Override\n public double getValue() {\n return currentLoad;\n }", "public float getElapsed()\n {\n return this.elapsed;\n }", "public double getTime() {\n return this.time;\n }", "public long getTime() {\n\t\treturn (Sys.getTime() * 1000) / Sys.getTimerResolution();\n\t}", "@Stability.Volatile\n public long dispatchLatency() {\n return dispatchLatency;\n }", "private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }", "public int getDelay()\n {\n return delay;\n }", "@Override\n\tpublic long currentTimeMillis() {\n\t\treturn this.currentTime;\n\t}", "public BigDecimal getDelay() {\r\n return delay;\r\n }", "public double getCurrentSpeed();", "int getCPU_time();", "public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}", "public double getSlowToFire();", "public long getPlayerTimeOffset ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTimeOffset ( ) );\n\t}", "public TimingSource getTimingSource() {\n return f_timingSource;\n }", "public int getTT()\n {\n return toTime;\n }", "public int getDelay() {\n return Math.abs(currentRequest.getRequestToFloor() - currentRequest.getRequestFromFloor()) * 1000;\n }", "public int getSamplingSeconds() {\n return samplingSeconds;\n }", "long getElapsedTime();", "public Timer getTime() {\n\t\treturn time;\n\t}", "public V get() {\n\t\treturn this.get(0, TimeUnit.SECONDS);\n\t}", "public double getServiceTime() {\r\n\t\treturn serviceTime.sample();\r\n\t}", "long getResponseTimeSec();", "private long getSleepTime()\n {\n return sleepTime;\n }", "@Override\r\n\tpublic String getTimerValueStatus() {\n\t\treturn \"this is the timer status!!\";\r\n\t}", "public double getTimeOffset() {\r\n return lastTimeOutput;\r\n }", "public float getSecondsElapsed() { return _startTime==0? 0 : (System.currentTimeMillis() - _startTime)/1000f; }", "public int getDelay()\r\n {\r\n return this.delay;\r\n }", "@java.lang.Override\n public int getTtiSeconds() {\n return ttiSeconds_;\n }" ]
[ "0.7702625", "0.7575178", "0.6817607", "0.6727041", "0.6591286", "0.64661855", "0.6303484", "0.6278546", "0.6137161", "0.60948354", "0.6077621", "0.6007797", "0.6004733", "0.6001743", "0.59899354", "0.5984852", "0.59585816", "0.5928213", "0.5928077", "0.5926161", "0.5906113", "0.5901528", "0.5863499", "0.5862519", "0.5851586", "0.5816088", "0.5795976", "0.5786139", "0.5785715", "0.57844347", "0.57737774", "0.5771667", "0.5768821", "0.576277", "0.5753297", "0.575088", "0.57507706", "0.5739596", "0.5737117", "0.5723999", "0.5719407", "0.571784", "0.56918913", "0.5675334", "0.5665945", "0.56453913", "0.56453913", "0.5636351", "0.56265", "0.5624507", "0.56132215", "0.56027865", "0.5594175", "0.5590563", "0.5580242", "0.5578774", "0.5570339", "0.55698186", "0.55670184", "0.5559049", "0.55588305", "0.55541027", "0.55448186", "0.554006", "0.5534348", "0.55307055", "0.5520236", "0.55148286", "0.5506786", "0.54959214", "0.5493592", "0.54929316", "0.549206", "0.5486502", "0.54843926", "0.5483222", "0.5477593", "0.54707646", "0.5470382", "0.5469989", "0.54687434", "0.5468409", "0.5465454", "0.5456097", "0.5451208", "0.5447821", "0.5444907", "0.5433155", "0.5423118", "0.5417901", "0.5416958", "0.541329", "0.541242", "0.5411067", "0.5406686", "0.5406323", "0.5405715", "0.540465", "0.54037386", "0.53902566" ]
0.72011673
2
Enables different chip modes.
public void setBitMode(byte ucMask, BitModes bitMode) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetBitMode(ftHandle, ucMask, (byte) bitMode.constant())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "void enableDigital();", "public void enable() {\n\t\tm_enabled = true;\n\t\tm_controller.reset();\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "public void enable() {\n\t\tenabled = true;\n\t\t//System.out.println(\"Enabled Controller\");\n\t}", "public void updateSwitches(){\r\n if(this.ar){\r\n this.augmentedReality.setChecked(true);\r\n }else{\r\n this.augmentedReality.setChecked(false);\r\n }\r\n\r\n if(this.easy){\r\n this.easyMode.setChecked(true);\r\n }else{\r\n this.easyMode.setChecked(false);\r\n }\r\n }", "public void enableDeviceSwitchButtons(boolean enabled) {\r\n\t\tthis.menuToolBar.enableDeviceSwitchButtons(enabled);\r\n\t\tthis.menuBar.enableDeviceSwitchButtons(enabled);\r\n\t}", "void enableMod();", "public int switch_modes() {\r\n //when angle modes is selected power field is disabled\r\n if(angle_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Power Field is necessary for Powers mode\r\n else if(power_radio.isArmed()){\r\n power_combo.setDisable(false);\r\n power_combo.setOpacity(1);\r\n }\r\n //when Angle sum mode is selected power field is disabled\r\n else if(sum_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Returning values to switch whole Program's mode based on Radio buttons\r\n if(angle_radio.isSelected()) return -1;\r\n else if(power_radio.isSelected()) return -2;\r\n else if(sum_radio.isSelected()) return -3;\r\n return 0;\r\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 }", "public void enable() {\n operating = true;\n }", "private void enableNextSensor(BluetoothGatt gatt) {\n BluetoothGattCharacteristic characteristic;\n switch (mState) {\n case 0:\n Log.d(TAG, \"Enabling pressure cal\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_CONFIG_CHAR);\n characteristic.setValue(new byte[] {0x02});\n break;\n case 1:\n Log.d(TAG, \"Enabling pressure\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_CONFIG_CHAR);\n characteristic.setValue(new byte[] {0x01});\n break;\n case 2:\n Log.d(TAG, \"Enabling humidity\");\n characteristic = gatt.getService(HUMIDITY_SERVICE)\n .getCharacteristic(HUMIDITY_CONFIG_CHAR);\n characteristic.setValue(new byte[] {0x01});\n break;\n default:\n mHandler.sendEmptyMessage(MSG_DISMISS);\n Log.i(TAG, \"All Sensors Enabled\");\n return;\n }\n\n gatt.writeCharacteristic(characteristic);\n }", "public void enableChoice() {\n\t\t// Enable the buttons, lighting them up\n\t\trock.setEnabled(true);\n\t\tpaper.setEnabled(true);\n\t\tscissors.setEnabled(true);\n\t}", "private void updateDemoModeEnabled() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_demo_allowed\", 0) != 0) {\n z = true;\n }\n this.mEnabledSwitch.setChecked(z);\n this.mOnSwitch.setEnabled(z);\n }", "void enable();", "public void enable();", "public void enableInputs();", "void verifyModesEnable(String mode);", "public void enable() {\n\t\tm_controller.reset();\n\t\tm_runner.enable();\n\t}", "@Override\n protected void onEnable() {\n super.onEnable();\n setCameraControlMode(cameraMode);\n }", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "public void enable() {\r\n m_enabled = true;\r\n }", "boolean setMode(int mode);", "protected abstract void enable();", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "void changeMode(int mode);", "public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}", "public void setMode(SwerveMode newMode) {\n\t\tSmartDashboard.putString(\"mode\", newMode.toString());\n // Re-enable SwerveModules after mode changed from Disabled\n if (mode == SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.enable();\n }\n }\n mode = newMode;\n int index = 0; // Used for iteration\n switch(newMode) {\n case Disabled:\n for (SwerveModule mod: modules) {\n mod.setSpeed(0);\n mod.disable();\n }\n break;\n case FrontDriveBackDrive:\n for (SwerveModule mod: modules) {\n mod.unlockSetpoint();\n mod.setSetpoint(RobotMap.forwardSetpoint);\n }\n break;\n case FrontDriveBackLock:\n for (SwerveModule mod: modules) {\n if (index < 2) {\n mod.unlockSetpoint();\n mod.setSetpoint(RobotMap.forwardSetpoint);\n }\n else {\n mod.unlockSetpoint();\n\n mod.lockSetpoint(RobotMap.forwardSetpoint);\n }\n index++;\n }\n break;\n case FrontLockBackDrive:\n for (SwerveModule mod: modules) {\n if (index > 1) {\n mod.unlockSetpoint();\n }\n else {\n mod.unlockSetpoint();\n\n mod.lockSetpoint(RobotMap.forwardSetpoint);\n }\n index++;\n }\n break;\n case StrafeLeft:\n for (SwerveModule mod: modules) {\n \t\tmod.unlockSetpoint();\n mod.lockSetpoint(RobotMap.leftSetpoint);\n }\n break;\n case StrafeRight:\n for (SwerveModule mod: modules) {\n \t\tmod.unlockSetpoint();\n mod.lockSetpoint(RobotMap.rightSetpoint);\n }\n break;\n default:\n break;\n\n }\n}", "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 enable() {\n \t\t\tsetEnabled(true);\n \t\t}", "public void enableClient(){\r\n try{\r\n oos.writeObject(new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.ENABLECODE)));\r\n oos.flush();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "public void switchPencilMode()\n\t{\n\t\tif(pencilMode_ON_OFF == false)\n \t{\n \t\tpencilMode_ON_OFF = true;\n \t\tcopyToPencilMode();\n \t\tpencilModeNotification.setText(\" Pencil Mode: ON\");\n \t\tthis.remove(mainBoard);\n \t\tthis.add(pencilPanel, BorderLayout.CENTER);\n \t\tthis.revalidate();\n \t\tthis.repaint();\n \t}\n\t\t// Turn Off Pencil Mode\n\t\telse\n\t\t{\n\t\t\tpencilMode_ON_OFF = false;\n\t\t\tpencilModeNotification.setText(\" Pencil Mode: OFF\");\n \t\tthis.remove(pencilPanel);\n \t\tthis.add(mainBoard, BorderLayout.CENTER);\n \t\tthis.revalidate();\n \t\tthis.repaint();\n\t\t}\n\t}", "public void enableMic(boolean enable);", "private void updateDemoModeOn() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_tuner_demo_on\", 0) != 0) {\n z = true;\n }\n this.mOnSwitch.setChecked(z);\n }", "public void switchInsMode() {\n this.inputMode = !this.inputMode;\n }", "public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }", "public void toggleEnable();", "@Override\r\n\tpublic void enable() {\n\t\tcurrentState.enable();\r\n\t}", "public void disable() {\n disabled = true;\n circuit.disable();\n updateSign(true);\n notifyChipDisabled();\n }", "void setBasicMode() {basicMode = true;}", "@Override\n\tpublic void enabled(AbstractHardware<? extends AbstractHardwareListener> hardware) {\n\t}", "public void putCardMode(){\n for(int i = 0; i<3 ; i++){\n productionButtons[i].setText(\"Put here\");\n ProductionCard card = gui.getViewController().getGame().getProductionCard(i);\n if (card != null && card.getLevel() == 3){\n setEnabled(false);\n } else {\n productionButtons[i].setEnabled(true);\n }\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new PutCardButtonListener(gui,chosenDeckNumber,i));\n }\n baseProductionPanel.disableButton();\n }", "@Override\n public void runOpMode() {\n float strafeRight;\n float strafeLeft;\n\n frontRight = hardwareMap.dcMotor.get(\"frontRight\");\n backRight = hardwareMap.dcMotor.get(\"backRight\");\n frontLeft = hardwareMap.dcMotor.get(\"frontLeft\");\n backLeft = hardwareMap.dcMotor.get(\"backLeft\");\n flipper = hardwareMap.crservo.get(\"flipper\");\n\n // Put initialization blocks here.\n frontRight.setDirection(DcMotorSimple.Direction.REVERSE);\n backRight.setDirection(DcMotorSimple.Direction.REVERSE);\n waitForStart();\n while (opModeIsActive()) {\n // Power to drive\n frontRight.setPower(gamepad1.right_stick_y * 0.5);\n frontRight.setPower(gamepad1.right_stick_y * 0.75);\n backRight.setPower(gamepad1.right_stick_y * 0.75);\n frontLeft.setPower(gamepad1.left_stick_y * 0.75);\n backLeft.setPower(gamepad1.left_stick_y * 0.75);\n flipper.setPower(gamepad2.left_stick_y);\n // Strafing code\n strafeRight = gamepad1.right_trigger;\n strafeLeft = gamepad1.left_trigger;\n if (strafeRight != 0) {\n frontLeft.setPower(-(strafeRight * 0.8));\n frontRight.setPower(strafeRight * 0.8);\n backLeft.setPower(strafeRight * 0.8);\n backRight.setPower(-(strafeRight * 0.8));\n } else if (strafeLeft != 0) {\n frontLeft.setPower(strafeLeft * 0.8);\n frontRight.setPower(-(strafeLeft * 0.8));\n backLeft.setPower(-(strafeLeft * 0.8));\n backRight.setPower(strafeLeft * 0.8);\n }\n // Creep\n if (gamepad1.dpad_up) {\n frontRight.setPower(-0.4);\n backRight.setPower(-0.4);\n frontLeft.setPower(-0.4);\n backLeft.setPower(-0.4);\n } else if (gamepad1.dpad_down) {\n frontRight.setPower(0.4);\n backRight.setPower(0.4);\n frontLeft.setPower(0.4);\n backLeft.setPower(0.4);\n } else if (gamepad1.dpad_right) {\n frontRight.setPower(-0.4);\n backRight.setPower(-0.4);\n } else if (gamepad1.dpad_left) {\n frontLeft.setPower(-0.4);\n backLeft.setPower(-0.4);\n }\n if (gamepad1.x) {\n frontLeft.setPower(1);\n backLeft.setPower(1);\n frontRight.setPower(1);\n backRight.setPower(1);\n sleep(200);\n frontRight.setPower(1);\n backRight.setPower(1);\n frontLeft.setPower(-1);\n backLeft.setPower(-1);\n sleep(700);\n }\n telemetry.update();\n }\n }", "private void enableDice() {\n\t\ttogglebtnD1.setDisable(false);\n\t\ttogglebtnD2.setDisable(false);\n\t\ttogglebtnD3.setDisable(false);\n\t\tendTurnButton.setDisable(false);\n\t}", "public void enable() {\n canvas.setEnabled(true);\n addListeners();\n runViaListener();\n canvas.repaint();\n }", "void enableFlipMode();", "public void enableAdaptiveRateControl(boolean enabled);", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:14:32.594 -0400\", hash_original_method = \"45C4A93D9DB00E5177EB1AA33C0FC790\", hash_generated_method = \"A67AFB0821ABBDFC1442B7AD04AF9F51\")\n \n public static boolean setPowerModeCommand(int mode){\n \tdouble taintDouble = 0;\n \ttaintDouble += mode;\n \n \treturn ((taintDouble) == 1);\n }", "private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }", "public void enable() {\n\t\tif (!permanent) {\n\t\t\tenabled = true;\n\t\t\trect.setColor(c);\n\t\t}\n\t}", "default void onEnable() {}", "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 onEnable() {\n }", "protected void enableActionCharacteristics()\n {\n Action action = new Action(\"Characteristics\");\n action.addOutputParameter(new ParameterRelated(\"VolumeMax\", iPropertyVolumeMax));\n action.addOutputParameter(new ParameterRelated(\"VolumeUnity\", iPropertyVolumeUnity));\n action.addOutputParameter(new ParameterRelated(\"VolumeSteps\", iPropertyVolumeSteps));\n action.addOutputParameter(new ParameterRelated(\"VolumeMilliDbPerStep\", iPropertyVolumeMilliDbPerStep));\n action.addOutputParameter(new ParameterRelated(\"BalanceMax\", iPropertyBalanceMax));\n action.addOutputParameter(new ParameterRelated(\"FadeMax\", iPropertyFadeMax));\n iDelegateCharacteristics = new DoCharacteristics();\n enableAction(action, iDelegateCharacteristics);\n }", "public void enableMonsters(){\n enabled = true;\n }", "@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}", "public abstract void onEnable();", "@FXML\n\tprivate void enableFPGA() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableFPGA.isSelected()) {\n\t\t\tfpgaFamily.setDisable(false);\n\t\t\tbrowseBitFile.setDisable(false);\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + true + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t} else {\n\t\t\tfpgaFamily.setDisable(true);\n\t\t\tbrowseBitFile.setDisable(true);\n\t\t\tchooseBitFile.setText(\"\");\n\t\t\tbitFileSize.setText(\"0\");\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + false + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t}\n\t}", "public void enableThreeAndFour() {\n\t\tans3.setEnabled(true);\n\t\tans4.setEnabled(true);\n\t\tanswer3.setEnabled(true);\n\t\tanswer4.setEnabled(true);\n\t}", "public void setSupportMode(int mode) {\n // skip to avoid useless operation\n if (mSupportMode == mode) return;\n\n if (mode == MODE_AUTOMOTIVE) {\n mSupportMode = MODE_AUTOMOTIVE;\n setupAutomotiveMode();\n } else if (mode == MODE_ONE_MULTIILINE_TEXTVIEW) {\n mSupportMode = MODE_ONE_MULTIILINE_TEXTVIEW;\n if (null != mPrimaryView) {\n mPrimaryView.setState(ActionBarTextView.PRIMARY_MULTILINE_ONLY);\n }\n setSecondaryVisibility(View.GONE);\n\n } else {\n mSupportMode = MODE_DEFAULT;\n }\n getDefaultHeight();\n adjustPrimaryState();\n adjustSecondaryState();\n }", "private void enableToolbar(boolean enable) {\r\n Save.setEnabled(enable);\r\n SaveAs.setEnabled(enable);\r\n SaveButton.setEnabled(enable);\r\n SaveAsButton.setEnabled(enable);\r\n SelectAll.setEnabled(enable);\r\n ClearCircuit.setEnabled(enable);\r\n MakeImageButton.setEnabled(enable);\r\n ToggleGrid.setEnabled(enable);\r\n Simulation.setEnabled(enable);\r\n Edit.setEnabled(enable);\r\n StartButton.setEnabled(enable);\r\n RecordButton.setEnabled(enable);\r\n SimulatorSpeed.setEnabled(enable);\r\n }", "public abstract void setEnabled(Context context, boolean enabled);", "public void turnOn ()\n\t{\n\t\tthis.powerState = true;\n\t}", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "public void enableSurvivialMode()\n\t{\n\t\tthis.player.useFlyingMode = false;\n\t\tthis.player.setHealth(100f);\n\t}", "@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }", "public void changeMode() {\n methodMode = !methodMode;\n }", "void setMotorsMode(DcMotor.RunMode runMode);", "public void enableAudioAdaptiveJittcomp(boolean enable);", "public void enableSensors(boolean enable) \n\t{\n\t\tif( enable ) {\n\t\t\t// set negative loop count, to discard first few samples\n\t\t\tiAccelCount = -3;\n\t\t\tlastSampleTime = -1;\n\t\t\tgravity=null;\n\t\t\tsavedGravity=null;\n\t\t\tsensorMan.registerListener(this, accel,\tSensorManager.SENSOR_DELAY_GAME);\n\t\t\tsensorMan.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);\n\t\t}\n\t\telse {\n\t\t\tsensorMan.unregisterListener(this);\n\t\t}\n\t}", "@Override\n public void putCardMode() {\n gameboardPanel.putCardMode();\n leaderCardsPanel.disableProductionButtons();\n }", "private void buttonEnable(){\n\t\t\taddC1.setEnabled(true);\n\t\t\taddC2.setEnabled(true);\n\t\t\taddC3.setEnabled(true);\n\t\t\taddC4.setEnabled(true);\n\t\t\taddC5.setEnabled(true);\n\t\t\taddC6.setEnabled(true);\n\t\t\taddC7.setEnabled(true);\n\t\t}", "@Override\n public void runOpMode () {\n motor1 = hardwareMap.get(DcMotor.class, \"motor1\");\n motor2 = hardwareMap.get(DcMotor.class, \"motor2\");\n\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n //Wait for game to start (driver presses PLAY)\n waitForStart();\n\n /*\n the overridden runOpMode method happens with every OpMode using the LinearOpMode type.\n hardwareMap is an object that references the hardware listed above (private variables).\n The hardwareMap.get method matches the name of the device used in the configuration, so\n we would have to change the names (ex. motorTest to Motor 1 or Motor 2 (or something else))\n if not, the opMode won't recognize the device\n\n in the second half of this section, it uses something called telemetry. In the first and\n second lines it sends a message to the driver station saying (\"Status\", \"Initialized\") and\n then it prompts the driver to press start and waits. All linear functions should have a wait\n for start command so that the robot doesn't start executing the commands before the driver\n wants to (or pushes the start button)\n */\n\n //run until end of match (driver presses STOP)\n double tgtpower = 0;\n while (opModeIsActive()) {\n telemetry.addData(\"Left Stick X\", this.gamepad1.left_stick_x);\n telemetry.addData(\"Left Stick Y\", this.gamepad1.left_stick_y);\n telemetry.addData(\"Right Stick X\", this.gamepad1.right_stick_x);\n telemetry.addData(\"Right Stick Y\", this.gamepad1.right_stick_y);\n if (this.gamepad1.left_stick_y < 0){\n tgtpower=-this.gamepad1.left_stick_y;\n motor1.setPower(tgtpower);\n motor2.setPower(-tgtpower);\n }else if (this.gamepad1.left_stick_y > 0){\n tgtpower=this.gamepad1.left_stick_y;\n motor1.setPower(-tgtpower);\n motor2.setPower(tgtpower);\n }else if (this.gamepad1.left_stick_x > 0){\n tgtpower=this.gamepad1.left_stick_x;\n motor1.setPower(tgtpower);\n motor2.setPower(tgtpower);\n }else if (this.gamepad1.left_stick_x < 0){\n tgtpower=-this.gamepad1.left_stick_x;\n motor1.setPower(-tgtpower);\n motor2.setPower(-tgtpower);\n }else{\n motor1.setPower(0);\n motor2.setPower(0);\n }\n telemetry.addData(\"Motor1 Power\", motor1.getPower());\n telemetry.addData(\"Motor2 Power\", motor2.getPower());\n telemetry.addData(\"Status\", \"Running\");\n telemetry.update ();\n\n\n /*\n if (this.gamepad1.right_stick_x == 1){\n //trying to make robot turn right, == 1 may be wrong\n motor2.setPower(-1);\n }\n else if (this.gamepad1.right_stick_x == -1){\n //trying to make robot turn left, == -1 may be wrong\n motor1.setPower(-1);\n }\n else {\n\n }\n */\n\n\n /*\n After the driver presses start,the opMode enters a while loop until the driver presses stop,\n while the loop is running it will continue to send messages of (\"Status\", \"Running\") to the\n driver station\n */\n\n\n }\n }", "public void enableControls() \n\t{\n\t\tfor (MutablePocket thisPocket: playerPockets) // Enable each control in turn\n\t\t{\n\t\t\tthisPocket.enablePocket();\n\t\t}\n\n\t\tfor(ImmutablePocket thisPocket: goalPockets)\n\t\t{\n\t\t\tthisPocket.enablePocket();\n\t\t}\n\n\t}", "static final void setRadioPower(boolean enabled) {\n for (Phone phone : PhoneFactory.getPhones()) {\n phone.setRadioPower(enabled);\n }\n }", "public static void driveMode(){\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Intake Disabled:\", Intake.intakeDisabled);\n\t\tSmartDashboard.putNumber(\"motorSpeed\", Intake.intakeMotorSpeed);\n\t\tSmartDashboard.putNumber(\"conveyorMotorSpeed\", Score.conveyorMotorSpeed);\n\t\tSmartDashboard.putBoolean(\"Intake Motor Inverted?:\", Actuators.getFuelIntakeMotor().getInverted());\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\n\t\t\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putNumber(\"Total Current Draw:\", SensorsDio.PDPCurrent(Sensors.getPowerDistro()));\n\n\t\n\t//TODO: Add Gear Vibrations for both controllers\n\t//Vibration Feedback\n\t\t//Sets the Secondary to vibrate if climbing motor is going to stall\n\t\tVibrations.climbStallVibrate(Constants.MAX_RUMBLE);\t\n\t\t//If within the second of TIME_RUMBLE then both controllers are set to HALF_RUMBLE\n\t\tVibrations.timeLeftVibrate(Constants.HALF_RUMBLE, Constants.TIME_RUMBLE);\t\n\t\t\n\t}", "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 setMode(int i){\n\tgameMode = i;\n }", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void setEnable (boolean state) {\n impl.setEnable (state);\n }", "public boolean setEnabled(boolean enable);", "public void setMode(short mode)\n\t{\n\t\tthis.mode = mode;\n\t}", "private void enableRadioOptions() {\n\t\tradioButtonA.setEnabled(true);\n\t\tradioButtonB.setEnabled(true);\n\t\tradioButtonC.setEnabled(true);\n\t\tradioButtonD.setEnabled(true);\n\t\tradioButtonA.setChecked(false);\n\t\tradioButtonB.setChecked(false);\n\t\tradioButtonC.setChecked(false);\n\t\tradioButtonD.setChecked(false);\n\t}", "public void enableBuyEntrance(){\r\n\t\tbuyEntrance = true;\r\n\t\tbuildHotel = true;\r\n\t}", "@Override\n public void runOpMode() {\n servo0 = hardwareMap.servo.get(\"servo0\");\n servo1 = hardwareMap.servo.get(\"servo1\");\n digital0 = hardwareMap.digitalChannel.get(\"digital0\");\n motor0 = hardwareMap.dcMotor.get(\"motor0\");\n motor1 = hardwareMap.dcMotor.get(\"motor1\");\n motor0B = hardwareMap.dcMotor.get(\"motor0B\");\n motor2 = hardwareMap.dcMotor.get(\"motor2\");\n blinkin = hardwareMap.get(RevBlinkinLedDriver.class, \"blinkin\");\n motor3 = hardwareMap.dcMotor.get(\"motor3\");\n park_assist = hardwareMap.dcMotor.get(\"motor3B\");\n\n if (digital0.getState()) {\n int_done = true;\n } else {\n int_done = false;\n }\n motor_stuff();\n waitForStart();\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n lancher_position();\n slow_mode();\n drive_robot();\n foundation_grabber(1);\n launcher_drive();\n data_out();\n Pickingupblockled();\n lettingoutblockled();\n Forwardled();\n backwardled();\n Turnleftled();\n Turnrightled();\n Stationaryled();\n }\n }\n }", "public void enableLighting(boolean enable)\n\t{\n\t\tthis.glStateChanger.setLighting(enable);\n\t}", "public void setMode(boolean value) {\n this.mode = value;\n }", "protected void choixModeTri(){\r\n boolean choix = false;\r\n OPMode.menuChoix=true;\r\n OPMode.telemetryProxy.addLine(\"**** CHOIX DU MODE DE TRI ****\");\r\n OPMode.telemetryProxy.addLine(\" Bouton X : GAUCHE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton B : DROITE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton Y : UNE SEULE COULEUR\");\r\n OPMode.telemetryProxy.addLine(\" Bouton A : MANUEL\");\r\n OPMode.telemetryProxy.addLine(\" CHOIX ? .........\");\r\n OPMode.telemetryProxy.update();\r\n while (!choix){\r\n if (gamepad.x){\r\n OPMode.modeTri = ModeTri.GAUCHE;\r\n choix = true;\r\n }\r\n if (gamepad.b){\r\n OPMode.modeTri = ModeTri.DROITE;\r\n choix = true;\r\n }\r\n if (gamepad.y){\r\n OPMode.modeTri = ModeTri.UNI;\r\n choix = true;\r\n }\r\n if (gamepad.a){\r\n OPMode.modeTri = ModeTri.MANUEL;\r\n choix = true;\r\n }\r\n }\r\n OPMode.menuChoix = false;\r\n\r\n }", "public void setEnable(boolean enable) {\n this.enable = enable;\n }", "boolean updateEnabling();", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "@Override\n public void enableProductionButtons() {\n gameboardPanel.disableEndTurnButton();\n gameboardPanel.disableEndOfProductionButton();\n gameboardPanel.enableProductionButtons();\n leaderCardsPanel.enableProductionButtons();\n }", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void setDataSwitchEnable(boolean bEnable){\n mDataSwitch = bEnable;\n }", "public void enableProductionButtons(){\n for(int i = 0; i < 3; i++){\n productionButtons[i].setText(\"Activate\");\n if (gui.getViewController().getGame().getProductionCard(i) != null){\n productionButtons[i].setEnabled(true);\n } else {\n productionButtons[i].setEnabled(false);\n }\n productionButtons[i].setToken(true);\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i], i));\n }\n\n baseProductionPanel.enableButton();\n }", "@Override\r\n public void runOpMode() {\n\r\n mtrFL = hardwareMap.dcMotor.get(\"fl_drive\");\r\n mtrFR = hardwareMap.dcMotor.get(\"fr_drive\");\r\n mtrBL = hardwareMap.dcMotor.get(\"bl_drive\");\r\n mtrBR = hardwareMap.dcMotor.get(\"br_drive\");\r\n\r\n\r\n // Set directions for motors.\r\n mtrFL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrFR.setDirection(DcMotor.Direction.FORWARD);\r\n mtrBL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrBR.setDirection(DcMotor.Direction.FORWARD);\r\n\r\n\r\n //zero power behavior\r\n mtrFL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrFR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n\r\n\r\n // Set power for all motors.\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n\r\n\r\n // Set all motors to run with given mode\r\n mtrFL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrFR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n g1ch2 = -gamepad1.left_stick_y;\r\n g1ch3 = gamepad1.right_stick_x;\r\n g2ch2 = -gamepad2.left_stick_x;\r\n g2ch4 = -gamepad2.right_stick_x;\r\n g2left = gamepad2.left_trigger;\r\n g2right = gamepad2.right_trigger;\r\n\r\n\r\n powFL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powFR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n powBL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powBR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n\r\n\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n sleep(50);\r\n }\r\n }", "private void enableActionMode(int position) {\n if (actionMode == null) {\n Toast.makeText(getContext(), \"Values of Enabled\", Toast.LENGTH_SHORT).show();\n }\n Toast.makeText(getContext(), \"Values of Enabled\", Toast.LENGTH_SHORT).show();\n toggleSelection(position);\n }", "public void setMode(int newMode) {\n\t\tint oldMode = mode; \n\t\tmode = newMode;\n\t\tif(mode != REPAIR_MODE || mode != SELL_MODE) \n\t\t\tlblMouse.setText(\"\");\n\t\tif(mode == REPAIR_MODE) \n\t\t\tlblMouse.setText(\"REPAIR\");\n\t\telse if(mode == SELL_MODE) \n\t\t\tlblMouse.setText(\"SELL\"); \n\t\tif(mode == PAUSE_MODE) { \n\t\t\tlblPause.setVisible(true);\n\t\t\tgameEngine.togglePaused();\n\t\t\t//gameEngine.stopRender(); \n\t\t\tdoTrapThread = false;\n\t\t\tdoMonsterThread = false;\n\t\t\tdoMapThread = false;\n\t\t\tgameHud.toggleButtons();\n\t\t}\n\t\tif(oldMode == PAUSE_MODE && mode != PAUSE_MODE) {\n\t\t\tgameHud.toggleButtons();\n\t\t\tgameEngine.togglePaused();\n\t\t\t//gameEngine.startRender();\n\t\t\tdoTrapThread = true;\n\t\t\tdoMonsterThread = true;\n\t\t\tdoMapThread = true;\n\t\t\tlblPause.setVisible(false);\n\t\t}\n\t\t\n\t\tif(oldMode == BUY_MODE && mode != BUY_MODE) {\n\t\t\t//purchase = null;\n\t\t\t\n\t\t}\n\t\t\n\t}" ]
[ "0.7027703", "0.6375891", "0.62024575", "0.60808116", "0.60626405", "0.601274", "0.5997711", "0.5950199", "0.5916684", "0.5891297", "0.5891236", "0.5874702", "0.5872569", "0.58524245", "0.5844516", "0.5842785", "0.5828904", "0.5820176", "0.5818739", "0.58158284", "0.58156097", "0.58125407", "0.58107585", "0.5779826", "0.57707006", "0.5766505", "0.5756712", "0.57501036", "0.5738178", "0.5716579", "0.5688583", "0.5658202", "0.5646915", "0.55956626", "0.55807155", "0.55724514", "0.5566158", "0.55627084", "0.55522126", "0.55387807", "0.5520753", "0.551374", "0.5509785", "0.5504636", "0.54943585", "0.547025", "0.5462194", "0.54617614", "0.5459462", "0.5419812", "0.5416155", "0.5413076", "0.5412957", "0.54119366", "0.54089797", "0.5404853", "0.5396768", "0.5389093", "0.5376185", "0.536836", "0.53616273", "0.53558683", "0.5348981", "0.5345564", "0.5338286", "0.53024167", "0.52955973", "0.52950656", "0.5289139", "0.52810633", "0.52684146", "0.52663285", "0.5255447", "0.5251536", "0.52478653", "0.5244789", "0.52387816", "0.5229153", "0.5228565", "0.5220912", "0.519403", "0.51929516", "0.5192297", "0.5190289", "0.5190089", "0.5187158", "0.5185636", "0.5180812", "0.5161227", "0.51589525", "0.51581633", "0.5154826", "0.5154472", "0.51456505", "0.5144533", "0.5143987", "0.5143236", "0.5138021", "0.5131245", "0.51285267", "0.5127149" ]
0.0
-1
Gets the instantaneous value of the data bus.
public BitModes getBitMode() throws FTD2XXException { ByteByReference byt = new ByteByReference(); ensureFTStatus(ftd2xx.FT_GetBitMode(ftHandle, byt)); return BitModes.parse(byt.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V get() {\n\t\treturn this.get(0, TimeUnit.SECONDS);\n\t}", "public long getValue() {\n return value_;\n }", "public long getValue() {\n return value_;\n }", "public double getValue() {\n\t\treturn sensorval;\n\t}", "public long getValue()\n {\n return itsValue;\n }", "public long getValue() {\n\treturn value;\n }", "public T getValue() {\r\n return getValue(interval.start);\r\n }", "public int getDmaValue();", "public long getValue();", "public long getValue() {\n\t\treturn this._value;\n\t}", "@Override\n public Number getValue() {\n return tcpStatWrapper.query().get(entry.getKey());\n }", "public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }", "@Override\n public synchronized double get() {\n if (m_running) {\n return ((getMsClock() - m_startTime) + m_accumulatedTime) / 1000.0;\n }\n return m_accumulatedTime;\n }", "public long getData() {\n return data;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}", "public double getValue() {\n return value_;\n }", "private double getValue() {\n return value;\n }", "public double getValue() {\n return this._value;\n }", "public double getValue() {\n return value_;\n }", "public int get(long instant) {\n return BuddhistChronology.BE;\n }", "@Override\n public double getValue(Pin pin) {\n super.getValue(pin);\n return isInitiated() ? readAnalog(toCommand((short) pin.getAddress())) : INVALID_VALUE;\n }", "public final T getValue() {\n return this.getValue(this.getBuffer());\n }", "public int getValue() {\n return this.data;\n }", "public T value()\r\n {\r\n return data;\r\n }", "public Result getCurrentValue() throws IOException, InterruptedException {\n return value;\n }", "public double getValue(){\n return value;\n }", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\r\n\t\treturn value;\r\n\t}", "public double getValue() {\n\t\treturn(value);\n\t}", "public double getValue()\n {\n return this.value;\n }", "public AXValue getValue() {\n return value;\n }", "public double value() {\r\n return value;\r\n }", "public Double getValue() {\n return value;\n }", "public Double getValue() {\n return value;\n }", "public double getValue() {\r\n return this.value;\r\n }", "private byte getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n return this.value;\n }", "public double getValue() {\n return this.value;\n }", "@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}", "@Field(2) \n\tpublic long Value() {\n\t\treturn this.io.getLongField(this, 2);\n\t}", "public T getValue(float time) {\r\n return fun.getValue(new TimeInstant(time));\r\n }", "double get();", "public int getValue()\n {\n return value;\n }", "public int getValue () {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}", "public S getValue() { return value; }", "public int getValue()\n {\n return value;\n }", "public double getValue() {\n\t\treturn this.value; \n\t}", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public int getValue() \n {\n return value;\n }", "public byte getValue() {\n return value;\n }", "public Object getValue() { return _value; }", "public int getValue()\r\n {\r\n return value;\r\n }", "public Future<Integer> getValue() {\n GetValue getValue = new GetValue(this.generator);\n return this.scheduled.schedule(getValue, this.delay, TimeUnit.MILLISECONDS);\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return _value;\n }", "long get();", "public double getValue() {\n\t\treturn this.value;\n\t}", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public T getValue() {\n return value;\n }", "public Number getValue() {\n return currentVal;\n }", "public T getValue() {\n return value;\n }", "public T getValue() {\n return value;\n }", "public T getValue() {\n return value;\n }", "public T getValue() {\n return value;\n }", "public abstract VALUEIN getCurrentValue() throws IOException, \n InterruptedException;", "public int getValue() {\r\n return value;\r\n }", "public int getValue() {\r\n return value;\r\n }", "public byte[] getValue() {\n return this.value;\n }", "public int getValue() {\n return value_;\n }", "public T getValue() {\r\n return value;\r\n }", "@Override\n public double getValue()\n {\n return value;\n }" ]
[ "0.67927843", "0.6695074", "0.6654733", "0.66272736", "0.6622641", "0.6567871", "0.65569574", "0.6555047", "0.6446163", "0.6433757", "0.63924897", "0.63788193", "0.63433737", "0.63182354", "0.6313121", "0.6313121", "0.6313121", "0.6305255", "0.63025963", "0.62909055", "0.62744963", "0.6266407", "0.62619287", "0.6258963", "0.6255507", "0.62533605", "0.6252876", "0.6241825", "0.62381303", "0.6235555", "0.6235555", "0.6235555", "0.6219746", "0.6202501", "0.61893225", "0.61829644", "0.6174572", "0.6159549", "0.6159549", "0.6156866", "0.61558765", "0.6133175", "0.6133175", "0.6130542", "0.61194515", "0.6119003", "0.61169374", "0.6105668", "0.6105101", "0.60979986", "0.60979986", "0.60979986", "0.60979986", "0.60953444", "0.608857", "0.6087705", "0.6086462", "0.60799253", "0.60799253", "0.60769045", "0.60768193", "0.6076388", "0.60725266", "0.60686994", "0.60654074", "0.60654074", "0.60654074", "0.60654074", "0.60654074", "0.60654074", "0.6061686", "0.6057185", "0.6052429", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6043857", "0.6039338", "0.6035926", "0.6035635", "0.6035635", "0.6035635", "0.6035635", "0.6035442", "0.6031962", "0.6029871", "0.6028888", "0.6026351", "0.60198677", "0.601983" ]
0.0
-1
Set the USB request transfer size. This function can be used to change the transfer sizes from the default transfer size of 4096 bytes to better suit the application requirements. Transfer sizes must be set to a multiple of 64 bytes between 64 bytes and 64k bytes. When FT_SetUSBParameters is called, the change comes into effect immediately and any data that was held in the driver at the time of the change is lost. Note that, at present, only dwInTransferSize is supported.
public void setUSBParameters(int inTransferSize, int outTransferSize) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetUSBParameters(ftHandle, inTransferSize, outTransferSize)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public final com.francetelecom.admindm.model.Parameter createSize()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"Size\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setActiveNotificationDenied(true);\n\t\tparam.setType(ParameterType.UINT);\n\t\tparam.addCheck(new CheckMinimum(0));\n\t\tparam.addCheck(new CheckMaximum(4294967295L));\n\t\tparam.setValue(new Long(0));\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}", "public void setMaxTPDUSizeParam(int maxTPDUSizeParam) {\n if (maxTPDUSizeParam < 7 || maxTPDUSizeParam > 16) {\n throw new IllegalArgumentException(\"maxTPDUSizeParam is out of bound\");\n }\n this.maxTPDUSizeParam = maxTPDUSizeParam;\n }", "public void setPtySize(int col, int row, int wp, int hp){\n setPtyType(this.ttype, col, row, wp, hp);\n if(!pty || !isConnected()){\n return;\n }\n try{\n RequestWindowChange request=new RequestWindowChange();\n request.setSize(col, row, wp, hp);\n request.request(getSession(), this);\n }\n catch(Exception e){\n //System.err.println(\"ChannelSessio.setPtySize: \"+e);\n }\n }", "public Builder setMaxUploadSizeInBytes(long value) {\n \n maxUploadSizeInBytes_ = value;\n onChanged();\n return this;\n }", "public void setSize(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}", "public void setUploadBandwidth(int bw);", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public void setLocalSize(int size);", "public final void setStepSize( long micros )\n {\n if ( ( micros < 1L ) && ( micros != -1L ) )\n throw new IllegalArgumentException( \"micros must be -1 or greater then 0\" );\n \n this.stepMicros = micros;\n }", "private void setSize(int s){\n\t\tsize = s;\n\t}", "private void setDefaultStepSize(ResourceEnum cacheType) {\n switch (cacheType) {\n case FIELD_DATA_CACHE:\n // Field data cache having step size of 512MB\n this.stepSizeInBytes = (long) 512 * MB_TO_BYTES;\n break;\n case SHARD_REQUEST_CACHE:\n // Shard request cache step size of 512KB\n this.stepSizeInBytes = (long) 512 * KB_TO_BYTES;\n break;\n default:\n throw new IllegalArgumentException(\n String.format(\"Unrecognizable cache type: [%s]\", cacheType.toString()));\n }\n }", "public void setSizeInBits(final int size) {\n\t\tthis.sizeinbits = size;\n\t}", "public void setPacketSize(BigInteger packetSize) {\n\t\tthis.packetSize = packetSize;\n\t}", "public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}", "public void setSize(long value) {\n this.size = value;\n }", "private void setSize() {\n width = AppConfig.width;\n height = (int) (AppConfig.width * 0.56);\n requestOptions = new RequestOptions()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC);\n \n }", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "int libusb_control_transfer(DeviceHandle dev_handle, short bmRequestType, short bRequest, int wValue, int wIndex,\r\n String data, int wLength, int timeout);", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public void setSizeOfDeck(int newSize, int burnCards)\n\t{\n\t\tsizeOfDeck = newSize;\n\t\tsizeOfBurnDeck = burnCards;\n\t}", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "public void setSendRequestThroughput(Double sendRequestThroughput)\r\n {\r\n this.sendRequestThroughput = sendRequestThroughput;\r\n }", "public synchronized void updateFileSize( long passedSize ){\n \n fileSize = passedSize;\n if( fileSize >= 0 && fileByteCounter >= fileSize )\n finishFileTransfer(); \n }", "public void setBufferSize(int size) {\n this.response.setBufferSize(size);\n }", "public SocketChannelConfig setSendBufferSize(int sendBufferSize)\r\n/* 228: */ {\r\n/* 229: */ try\r\n/* 230: */ {\r\n/* 231:231 */ this.javaSocket.setSendBufferSize(sendBufferSize);\r\n/* 232: */ }\r\n/* 233: */ catch (SocketException e)\r\n/* 234: */ {\r\n/* 235:233 */ throw new ChannelException(e);\r\n/* 236: */ }\r\n/* 237:235 */ return this;\r\n/* 238: */ }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "public void setMaxFileSize(int sINGLESIZE) {\n\t\t\r\n\t}", "public static void setRequestTimeout(long requestTimeoutMs) {\n DebeziumResource.requestTimeoutMs = Duration.ofMillis(requestTimeoutMs);\n }", "public void setSize(int value) {\n\t\tthis.size = value;\n\t}", "protected void addFileUploadRequestParameter(SlingHttpServletRequest request,\n String key, InputStream stream, long size, String filename) throws IOException {\n RequestParameter param = createMock(RequestParameter.class);\n expect(param.getSize()).andReturn(size).anyTimes();\n expect(param.isFormField()).andReturn(false).anyTimes();\n expect(param.getFileName()).andReturn(filename).anyTimes();\n expect(param.getInputStream()).andReturn(stream).anyTimes();\n expect(request.getRequestParameter(key)).andReturn(param).anyTimes();\n }", "public void setSize(int size) {\r\n _size = size;\r\n }", "@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }", "public void setSize(int size){\n this.size = size;\n }", "public void setMaxBufferSize(int value) {\n this.maxBufferSize = value;\n }", "public void setSize(Integer size) {\n this.size = size;\n }", "public com.autodesk.ws.avro.Call.Builder setObjectSize(java.lang.Long value) {\n validate(fields()[6], value);\n this.object_size = value;\n fieldSetFlags()[6] = true;\n return this; \n }", "public void setSendBufferSize(int bufferSize) {\n this.bufferSize = bufferSize;\n }", "static private void inputHardDiskSize(System_Y3872052 system) {\n\t\tdouble hdSize = Double.parseDouble(getInputData(\"Please provide the hard disk size, in GB\"));\n\t\tsystem.setHardDisk(hdSize);\n\t}", "public void setSize(int size) {\r\n this.size = size;\r\n }", "public void setSize(int size) {\n\t\t _size = size;\n\t}", "void setPaperSize(short size);", "protected void setMaxSize(int size) {\n maxSize = size;\n }", "public void setCbSize(int cbSize) {\n this.cbSize = cbSize;\n }", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(int size) {\n this.size = size;\n }", "void setBufferSize(int bufferSize);", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setInitialStepSize(final T initialStepSize) {\n if (initialStepSize.subtract(minStep).getReal() < 0 ||\n initialStepSize.subtract(maxStep).getReal() > 0) {\n initialStep = getField().getOne().negate();\n } else {\n initialStep = initialStepSize;\n }\n }", "public void set_size(int s);", "public Builder setServerPayloadSizeBytes(int value) {\n \n serverPayloadSizeBytes_ = value;\n onChanged();\n return this;\n }", "public void setTileSize(int tSize) {\r\n\t\tthis.tSize = tSize;\r\n\t}", "public void setBlockSize(long value) {\n this.blockSize = value;\n }", "public void setStructureSize(int size) {\n\t\tmStructureSize = size;\n\t\tvalidateSize();\n\t\trepaint();\n\t\t}", "public void setTransferFrequency(final PeriodDuration newValue) {\n checkWritePermission(transferFrequency);\n transferFrequency = newValue;\n }", "public void setSize(String size) {\n this.size = size;\n }", "public synchronized void setSize(int lower, int upper) {\n \t\tthis.lower = lower;\n \t\tthis.upper = upper;\n \t\tadjustThreadCount();\n \t}", "public void setSize(Dimension newSize) {\n\t\tif(newSize.height<80)\n\t\t\tnewSize.height=80;\n\t\tif (newSize != null) {\n\t\t\tsize.setSize(newSize);\n\t\t\tfirePropertyChange(Props.SIZE_PROP.getValue(), null, size);\n\t\t}\n\t}", "public void setMaxTransfer(double maxTransfer) {\n\t\tthis.maxTransfer = maxTransfer;\n\t}", "public static void setRecorderVideoSize(Size size){\n\t}", "public void setDeformationGridSize (int gridSize)\n\t{\n\t\tmDeformationGridSize = gridSize;\n\t\t\n\t}", "public void setFileSize(long fileSize)\r\n {\r\n lFileSize = fileSize;\r\n }", "public void setSize(double size) \n {\n this.size = size;\n }", "public void setMaxFileSize(String value)\r\n\t{\r\n\t\tmaxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);\r\n\t}", "public void setSize(int size) {\n this.size = size;\n }", "public int getUploadBandwidth();", "public void setInputQueueSize(int aInputQueueSize) {\n inputQueueSize = aInputQueueSize;\n }", "@Override\n public void setSizeInWorkspace(com.gensym.util.Structure sizeInWorkspace) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.SIZE_IN_WORKSPACE_, sizeInWorkspace);\n }", "protected void setSize(Dimension dim) {}", "public void setMtu(int mtu);", "public Builder setMaxSize(int value) {\n \n maxSize_ = value;\n onChanged();\n return this;\n }", "public final void setMaxStepSize( long micros )\n {\n if ( ( micros < 1L ) && ( micros != -1L ) )\n throw new IllegalArgumentException( \"micros must be -1 or greater then 0\" );\n \n this.maxStepMicros = micros;\n }", "public StripesRequestWrapper(HttpServletRequest request,\n String pathToTempDir,\n int maxTotalPostSize) throws StripesServletException {\n super(request);\n \n try {\n String contentType = request.getContentType();\n \n if (contentType != null && contentType.startsWith(\"multipart/form-data\")) {\n this.multipart = new MultipartRequest(request, pathToTempDir, maxTotalPostSize);\n }\n }\n catch (IOException e) {\n Matcher matcher = exceptionPattern.matcher(e.getMessage());\n \n if (matcher.matches()) {\n throw new FileUploadLimitExceededException(Integer.parseInt(matcher.group(2)),\n Integer.parseInt(matcher.group(1)));\n }\n else {\n throw new StripesServletException(\"Could not construct request wrapper.\", e);\n }\n }\n }", "public FXImageSink requestFrameSize(int width, int height) {\n this.requestWidth = width;\n this.requestHeight = height;\n sink.setCaps(Caps.fromString(buildCapsString()));\n return this;\n }", "public Builder setSize(int value) {\n\n size_ = value;\n onChanged();\n return this;\n }", "public Builder setSize(int value) {\n\n size_ = value;\n onChanged();\n return this;\n }", "public Builder setFileSize(long value) {\n \n fileSize_ = value;\n onChanged();\n return this;\n }", "public void setContentLength(long contentLength)\r\n/* 175: */ {\r\n/* 176:260 */ set(\"Content-Length\", Long.toString(contentLength));\r\n/* 177: */ }", "public void setObjectSize(short size) { this.objectSize=size; }", "public void setMaxSize(int c) {\n maxSize = c;\n }", "public void setSurfaceSize(int width, int height) {\n // synchronized to make sure these all change atomically\n synchronized (surfaceHolder) {\n canvasWidth = width;\n canvasHeight = height;\n }\n }", "public void setForcedSize(int width, int height) {\n boolean clear = this.mInitialDisplayWidth == width && this.mInitialDisplayHeight == height;\n if (!clear) {\n width = Math.min(Math.max(width, 200), this.mInitialDisplayWidth * 2);\n height = Math.min(Math.max(height, 200), this.mInitialDisplayHeight * 2);\n }\n Slog.i(TAG, \"Using new display size: \" + width + \"x\" + height);\n updateBaseDisplayMetrics(width, height, this.mBaseDisplayDensity);\n this.mWmService.reconfigureDisplayLocked(this);\n this.mWmService.resetFoldScreenInfo();\n if (clear) {\n height = 0;\n width = 0;\n }\n this.mWmService.mDisplayWindowSettings.setForcedSize(this, width, height);\n }", "public void setSize(int newSize);", "public void setSize(int newSize);", "public Builder setMaxDiskCacheSize(int val) {\n mMaxDiskCacheSize = val;\n return this;\n }", "public void setFetchSize(int rows) throws SQLException {\n\n try {\n debugCodeCall(\"setFetchSize\", rows);\n checkClosed();\n\n if (rows < 0) {\n throw Message.getInvalidValueException(\"\" + rows, \"rows\");\n }\n else if (rows > 0) {\n if (stat != null) {\n int maxRows = stat.getMaxRows();\n if (maxRows > 0 && rows > maxRows) { throw Message.getInvalidValueException(\"\" + rows, \"rows\"); }\n }\n }\n else {\n rows = SysProperties.SERVER_RESULT_SET_FETCH_SIZE;\n }\n result.setFetchSize(rows);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "void setSize(float w, float h) {\n _w = w;\n _h = h;\n }", "public void setSpringSize(float springSize) {\r\n\t\tthis.springSize = springSize;\r\n\t\tmaxSpringSize = springSize > maxSpringSize ? springSize : maxSpringSize;\r\n\t\tminSpringSize = springSize < minSpringSize ? springSize : minSpringSize;\r\n\t}", "public Builder setPagesize(int value) {\n bitField0_ |= 0x00000400;\n pagesize_ = value;\n\n return this;\n }", "public void setSizeMessage(String sizeMessage) {\n\t\tthis.sizeMessage = sizeMessage;\n\t}", "public static void setDiskCacheSize(long size) {\n sDiskCacheSize = size;\n }", "public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }", "public Builder setMaxEnvelopeQueueSize(long value) {\n \n maxEnvelopeQueueSize_ = value;\n onChanged();\n return this;\n }", "public void setSIZE(java.lang.String SIZE) {\n this.SIZE = SIZE;\n }" ]
[ "0.5185416", "0.51753813", "0.5114134", "0.50714904", "0.50602597", "0.49480286", "0.48059806", "0.47328895", "0.4688681", "0.46854022", "0.46602854", "0.4658089", "0.46525022", "0.4642133", "0.46372792", "0.46369326", "0.4597684", "0.45963317", "0.45933867", "0.45908493", "0.45903942", "0.45867726", "0.4565459", "0.45484138", "0.4510037", "0.4505775", "0.45022646", "0.45004722", "0.4499197", "0.44888255", "0.44631797", "0.4451587", "0.44501883", "0.44478974", "0.44452882", "0.44322565", "0.44189388", "0.44168186", "0.4415918", "0.4414143", "0.44079053", "0.44012746", "0.44010386", "0.4386761", "0.43839103", "0.43839103", "0.4379374", "0.43766722", "0.43766722", "0.43766722", "0.43766722", "0.4370568", "0.43511003", "0.43421867", "0.43340603", "0.4326432", "0.43194136", "0.43169636", "0.43058822", "0.4303994", "0.4289786", "0.42859286", "0.42853013", "0.428228", "0.42767885", "0.4272707", "0.42620796", "0.4257393", "0.42491037", "0.42458993", "0.4239694", "0.4234085", "0.42218858", "0.4221339", "0.42165616", "0.42160863", "0.42156586", "0.42155644", "0.42155644", "0.42086527", "0.42023057", "0.4194488", "0.41936415", "0.41928804", "0.41916683", "0.41878605", "0.41878605", "0.41867536", "0.41831613", "0.41703925", "0.41613102", "0.41576487", "0.41546434", "0.4154084", "0.41536018", "0.41536018", "0.41536018", "0.41536018", "0.415104", "0.41504171" ]
0.73211175
0
Program the EEPROM data
public void writeEEPROM(EEPROMData programData) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_EE_Program(ftHandle, programData.ft_program_data)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void organizeEEPROM() {\n\t \n \n\t //put red, green, blue, and activitity values into r, g, b, and a\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t r[(i)/8] = 256*EEPROM[i] + EEPROM[i + 1];\n\t\t g[(i)/8] = 256*EEPROM[i + 2] + EEPROM[i + 3];\n\t\t b[(i)/8] = 256*EEPROM[i + 4] + EEPROM[i + 5];\n\t\t a[(i)/8] = 256*EEPROM[i + 6] + EEPROM[i + 7];\n \n\t\t //set resets to zero by default\n\t\t if((r[(i)/8] == 65278) && (b[(i)/8] == 65278) && (g[i/8] == 0)) {\n\t\t\t r[(i)/8] = 0;\n\t\t\t g[(i)/8] = 0;\n\t\t\t b[(i)/8] = 0;\n\t\t\t a[(i)/8] = 0;\n\t\t }\n\t }\n \n\t //get end of address\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t if((EEPROM[i] == 255) && (EEPROM[i + 1] == 255)) {\n\t\t\t endaddress = i/8;\n\t\t\t break;\n\t\t }\n\t }\n\t if(isnew) {\n\t\t ID = Integer.parseInt(asciiheader[8]);\n\t\t mm = Integer.parseInt(asciiheader[7].substring(0, 2));\n\t\t dd = Integer.parseInt(asciiheader[7].substring(3, 5));\n\t\t yy = Integer.parseInt(asciiheader[7].substring(6, 8));\n\t\t HH = Integer.parseInt(asciiheader[7].substring(9, 11));\n\t\t MM = Integer.parseInt(asciiheader[7].substring(12, 14));\n\t\t period = Integer.parseInt(asciiheader[3]);\n\t\t\t\t \n\t\t if(isUTC) {\n\t\t\t offset = Calendar.get(Calendar.DST_OFFSET) / 3600000;\n\t\t\t //apply offset, but if offset rolls us into a new day, we need to account for that\n\t\t\t if (HH + offset > 23) {\n\t\t\t\t dd += 1;\n\t\t\t\t HH = (HH + offset) % 24;\n\t\t\t\t //if our new day rolls us into a new month, account for that\n\t\t\t\t //30 days have September, April, June, and November\n\t\t\t\t if(dd > 30 && (mm == 9 || mm == 4 || mm == 6 || mm == 11)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //All the rest have 31, except for February who is a fuckwad.\n\t\t\t\t else if (dd > 31 && !(mm == 9 || mm == 4 || mm == 6 || mm == 11 || mm == 2)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and not a leap year\n\t\t\t\t else if (dd > 28 && (yy%4 != 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and a leap year\n\t\t\t\t else if (dd > 29 && (yy%4 == 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //Did we rollover our year doing this?\n\t\t\t\t if (mm > 12) {\n\t\t\t\t\t mm = 1;\n\t\t\t\t\t yy += 1;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t else {\n\t\t\t\t HH = HH + offset;\n\t\t\t }\n\t\t }\n\t }\n\t else {\n\t\t ID = (header[3] - 48)*1000 + (header[4] - 48)*100 + (header[5] - 48)*10 + (header[6] - 48);\n\t\t mm = (header[9] - 48)*10 + (header[10] - 48);\n\t\t dd = (header[12] - 48)*10 + (header[13] - 48);\n\t\t yy = (header[15] - 48)*10 + (header[16] - 48);\n\t\t HH = (header[18] - 48)*10 + (header[19] - 48);\n\t\t MM = (header[21] - 48)*10 + (header[22] - 48);\n\t\t period = (header[25] - 48)*100 + (header[26] - 48)*10 + (header[27] - 48);\n\t }\n \t}", "public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException {\n String manufacturer = eeprom.getManufacturer();\n Memory mManufacturer = new Memory(manufacturer.length() + 1);\n mManufacturer.setString(0, manufacturer);\n\n String manufacturerId = eeprom.getManufacturerId();\n Memory mManufacturerId = new Memory(manufacturerId.length() + 1);\n mManufacturerId.setString(0, manufacturerId);\n\n String description = eeprom.getDescription();\n Memory mDescription = new Memory(description.length() + 1);\n mDescription.setString(0, description);\n\n String serialNumber = eeprom.getSerialNumber();\n Memory mSerialNumber = new Memory(serialNumber.length() + 1);\n mSerialNumber.setString(0, serialNumber);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId,\n mDescription, mSerialNumber));\n\n devSerialNumber = serialNumber;\n devDescription = description;\n }", "public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }", "public void writeEEPROMUserArea(String data) throws FTD2XXException {\n Memory source = new Memory(data.length());\n source.setString(0, data);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));\n }", "public EEPROMData readEEPROM() throws FTD2XXException {\n FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference();\n ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference));\n return new EEPROMData(ftByReference);\n }", "void writeEeprom(ImuEepromWriter sensor, int scaleNo, short[] data);", "public static void POR()\r\n\t{\r\n\t\tFileRegister.setDataInBank(2, 0b0000); // PCL\r\n\t\tFileRegister.setDataInBank(3, 0b00011000); // Status\r\n\t\tFileRegister.setDataInBank(10, 0b00000000); // PCLATH\r\n\t\tFileRegister.setDataInBank(11, 0b00000000); // INTCON\r\n\r\n\t\tFileRegister.setDataInBank(1, 1, 0b11111111); // Option_Reg\r\n\t\tFileRegister.setDataInBank(1, 5, 0b00011111); // TRISA\r\n\t\tFileRegister.setDataInBank(1, 6, 0b11111111); // TRISB\r\n\t\tFileRegister.setDataInBank(1, 8, 0b00000000); // EECON1\r\n\r\n\t\tSpeicher.setPC(0);\r\n\r\n\t\tSpeicher.reload();\r\n\t}", "public static void sendData(Program ProgramCur, Patient pat) throws Exception {\n String path = Programs.getProgramPath(ProgramCur);\n ArrayList ForProgram = ProgramProperties.getForProgram(ProgramCur.ProgramNum);\n ;\n if (pat == null)\n {\n MessageBox.Show(\"Please select a patient first\");\n return ;\n }\n \n //The path is available in the registry, but we'll just make the user enter it.\n if (!File.Exists(path))\n {\n MessageBox.Show(\"Could not find \" + path);\n return ;\n }\n \n //Make sure the program is running\n if (Process.GetProcessesByName(\"DentalEye\").Length == 0)\n {\n Process.Start(path);\n Thread.Sleep(TimeSpan.FromSeconds(4));\n }\n \n //command=\"[Add][PatNum][Fname][Lname][Address|Address2|City, ST Zip][phone1][phone2][mobile phone][email][sex(M/F)][birthdate (YYYY-MM-DD)]\"\n ProgramProperty PPCur = ProgramProperties.getCur(ForProgram,\"Enter 0 to use PatientNum, or 1 to use ChartNum\");\n ;\n String patID = new String();\n if (StringSupport.equals(PPCur.PropertyValue, \"0\"))\n {\n patID = pat.PatNum.ToString();\n }\n else\n {\n if (StringSupport.equals(pat.ChartNumber, \"\"))\n {\n MessageBox.Show(\"ChartNumber for this patient is blank.\");\n return ;\n }\n \n patID = pat.ChartNumber;\n } \n String command = \"[Add][\" + patID + \"]\" + \"[\" + pat.FName + \"]\" + \"[\" + pat.LName + \"]\" + \"[\" + pat.Address + \"|\";\n if (!StringSupport.equals(pat.Address2, \"\"))\n {\n command += pat.Address2 + \"|\";\n }\n \n command += pat.City + \", \" + pat.State + \" \" + pat.Zip + \"]\" + \"[\" + pat.HmPhone + \"]\" + \"[\" + pat.WkPhone + \"]\" + \"[\" + pat.WirelessPhone + \"]\" + \"[\" + pat.Email + \"]\";\n if (pat.Gender == PatientGender.Female)\n command += \"[F]\";\n else\n command += \"[M]\"; \n command += \"[\" + pat.Birthdate.ToString(\"yyyy-MM-dd\") + \"]\";\n try\n {\n //MessageBox.Show(command);\n //Create a context that uses a dedicated thread for DDE message pumping.\n DdeContext context = new DdeContext();\n try\n {\n {\n //Create a client.\n DdeClient client = new DdeClient(\"DENTEYE\", \"Patient\", context);\n try\n {\n {\n //Establish the conversation.\n client.Connect();\n //Add patient or modify if already exists\n client.Execute(command, 2000);\n //timeout 2 secs\n //Then, select patient\n command = \"[Search][\" + patID + \"]\";\n client.Execute(command, 2000);\n }\n }\n finally\n {\n if (client != null)\n Disposable.mkDisposable(client).dispose();\n \n }\n }\n }\n finally\n {\n if (context != null)\n Disposable.mkDisposable(context).dispose();\n \n }\n }\n catch (Exception __dummyCatchVar0)\n {\n }\n \n }", "public void procesarTramaEasyFuel(){\n switch (bufferRecepcion[4]){\n //TRAMA DE CONFIGURACION\n case 0x06:\n if(bufferRecepcion[5] == 0x01 || bufferRecepcion[5] == 0x02){\n //TRAMA DE CONFIGURACION\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(bufferRecepcion,bufferRecepcion.length)));\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //Log.v(\"TRAMA EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACEmbedded,tramaMACEmbedded.length)));\n //Log.v(\"PING HOST EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaPingHost,tramaPingHost.length)));\n //Log.v(\"NÚMERO DE BOMBAS\", \"\" + byteArrayToHexInt(numeroBombas,1));\n\n llenarDatosConfiguracion();\n insertarMaestrosSQLite();\n agregarImagenEstaciones();\n //inicializarMangueras();\n clientTCPThread.write(EmbeddedPtcl.b_ext_configuracion); //0x06\n\n //inicializarMangueras();\n /*try {\n Thread.sleep(3000);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }*/\n\n //cambiarEstadoIniciaAbastecimiento(1);\n\n }\n break;\n\n //CAMBIO DE ESTADO\n case 0x01:\n int indiceLayoutHose=0;\n //Capturar idBomba\n int[] arrayIdBomba = new int[1];\n int idBomba = 0;\n arrayIdBomba[0] = bufferRecepcion[7];\n idBomba = Integer.parseInt(byteArrayToHexIntGeneral(arrayIdBomba,1));\n\n for(int i=0;i<hoseEntities.size();i++ ){\n if(hoseEntities.get(i).idBomba==idBomba) {\n indiceLayoutHose = i;\n break;\n }\n }\n\n switch (bufferRecepcion[5]){\n case 0x01:\n //Cambio de estado\n if(hoseEntities.size() > 0){\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x02:\n //Estado actual de Mangueras\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n case 0x03:\n //Cambio de Pulsos\n switch (bufferRecepcion[9]){\n case 0x01:\n // FLUJO\n if(hoseEntities.size() > 0){\n cambiarPulsos(indiceLayoutHose);\n }\n break;\n case 0x02:\n // INICIO NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoSinFlujo(indiceLayoutHose);\n }\n break;\n case 0x03:\n // NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoCierreHook(indiceLayoutHose);\n }\n break;\n }\n break;\n case 0x04:\n //Vehiculo Leido\n if(hoseEntities.size() > 0){\n cambiarPlaca(indiceLayoutHose);\n }\n\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x07:\n //Ultima transaccion\n\n if(hoseEntities.size() > 0){\n\n /*for(int j = 0; j< hoseEntities.size(); j++){\n if(hoseEntities.get(j).idBomba == idBomba){\n //llenarDatosTransaccion(hoseEntities.get(j));\n break;\n }\n }*/\n\n llenarDatosTransaccion(hoseEntities.get(indiceLayoutHose),indiceLayoutHose);\n\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n }\n break;\n\n case 0x07:\n switch(bufferRecepcion[5]){\n case 0x01:\n break;\n }\n break;\n }\n changeFragment=true;\n }", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "public synchronized void serialEvent(SerialPortEvent oEvent) {\n\t\t\n if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n\t\t\ttry {\n while (input.ready ()){\n //System.out.println(\"Fuss \"+new1 +\" \"+old);\n\t\t\t\tString inputLine=input.readLine();\n //System.out.println(\"InputLine \"+inputLine);\n new1 = Integer.valueOf(inputLine);\n if(new1-old==1)\n {\n System.out.println(\"new1-old= \"+ (new1-old));\n \n int hour, min, day, month, year;\n java.util.Date date = new java.util.Date();\n Calendar cal= Calendar.getInstance();\n year = cal.get(Calendar.YEAR);\n month = cal.get(Calendar.MONTH); // 0 to 11\n day = cal.get(Calendar.DAY_OF_MONTH);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n min = cal.get(Calendar.MINUTE);\n month = month + 1;\n code.append(\"\");\n if(day/10<1)\n {\n code.append(\"0\");\n code.append(day);\n }\n else\n code.append(day);\n if(month/10<1)\n {\n code.append(\"0\");\n code.append(month);\n }\n else\n code.append(month);\n code.append(year);\n code.delete(4,6);\n if(hour/10<1)\n {\n code.append(\"0\");\n code.append(hour);\n }\n else\n code.append(hour);\n if(min/10<1)\n {\n code.append(\"0\");\n code.append(min);\n }\n else\n code.append(min);\n \n String code1;\n code1= code.toString();\n //Lsignal.setText(code1);\n \n ImageIcon iconLogo = new ImageIcon(path);\n Lsignal.setText(\"\");\n Lsignal.setIcon(iconLogo);\n code.delete(0,11);\n System.out.println(code);\n Code128 barcode = new Code128(); //Barcode Type\n barcode.setData(code1); //Barcode String\n barcode.setX(2); //Barcode data text to encode\n //barcode.setBarcodeWidth(-50f);\n barcode.setLeftMargin(-15);\n barcode.setRightMargin(-5);\n barcode.setBarcodeHeight(50f);\n barcode.drawBarcode(path);\n \n printImg(path);\n }\n else if(new1-old==0)\n System.out.println(\"Nope!\");\n else if(new1-old==-1)\n System.out.println(\"Nope!\");\n old=new1;\n }\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t} finally {\n Lsignal.setIcon(null);\n Lsignal.setText(\"No Input\");\n }\n\t\t}\n\t\t// Ignore all the other eventTypes, but you should consider the other ones.\n\t}", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "public void IPL(){ \r\n \r\n this.io.resetIOController();\r\n this.memory.resetMemory();\r\n \r\n /*** Pseudocode for ROM bootloader \r\n * Reads a file to memory starting at M(64) to EOF\r\n * \r\n * ADDR=64, X1=0\r\n * L1: R0 = io.readLine()\r\n * memory.set(ADDR+X1, R0)\r\n * X1++\r\n * checkForMore = io.checkStatus()\r\n * test checkForMore\r\n * jcc checkForMore to L1\r\n * jmp 64\r\n */ \r\n HashMap<Integer,String> ROM = new HashMap<>(); \r\n /************* Assembly for bootloader **************/\r\n ROM.put(00, \"00000000000000101111\"); // Trap Handler Table Start Position -> 47\r\n ROM.put(01, \"00000000000000101011\"); // Machine Fault Handler -> 42\r\n ROM.put( 9, \"11001100110011001100\"); // SECTION_TAG (Used for finding sections)\r\n ROM.put(10, \"000011 00 10 0 0 00000000\"); //10: LDA(2,0,0,0) -- reset ECX to 0 (index value) \r\n ROM.put(11, \"000011 00 11 0 0 00000000\"); //11: LDA(3,0,0,0) -- reset EDX to 0 (IO Status Ready) \r\n ROM.put(12, \"000001 00 01 0 0 00001001\"); //12: LDR(1,0,9) -- LOAD M(9) to EBX (SECTION_TAG)\r\n ROM.put(13, \"000010 00 10 0 0 00000110\" ); //13: STR(2,0,6) -- set M(6) to ECX \r\n ROM.put(14, \"101001 00 10 0 0 00000110\" ); //14: LDX(0, 2, 6) -- Set X(2) from M(6) (copied from ECX/0) \r\n ROM.put(15, \"101001 00 01 0 0 00000110\" ); //15: LDX(0, 1, 6) -- Set X(1) from M(6) (copied from ECX) \r\n ROM.put(16, \"111101 00 00 000000 0010\" ); //16: L1: IN(0, 2) -- read word from CardReader to EAX \r\n ROM.put(17, \"010110 00 01 0 0 00000000\" ); //17: TRR(0, 1) -- Test EAX against EBX (SECTION_TAG) \r\n ROM.put(18, \"001100 00 11 0 0 00011001\" ); //18: JCC(3,x, L2) -- JMP to L2 if EAX=EBX --- L2=25 \r\n ROM.put(19, \"000010 01 00 0 0 01000000\" ); //19: L3: STR(0,1,64i1) -- store EAX to ADDR+X1 (ADDR=64) \r\n ROM.put(20, \"101011 00 01 0 0 00000000\" ); //20: INX(1) -- X(1)++\r\n ROM.put(21, \"111111 00 00 000000 0010\" ); //21: CHK(0, 2) -- Check status of Card Reader to EAX \r\n ROM.put(22, \"010110 00 11 0 0 00000000\" ); //22: TRR(0, 3) -- Test EAX against EDX (IO Status Ready -- not done) \r\n ROM.put(23, \"001100 00 11 0 0 00010000\" ); //23: JCC(3,x, L1) -- JMP to L1 if EAX=EDX --- L1=16 \r\n ROM.put(24, \"001101 00 00 0 0 01000000\" ); //24: JMP(64) -- else: launch program by transferring control to 64 \r\n ROM.put(25, \"000011 01 10 0 0 01000000\" ); //25: L2: LDA(1,1,64i1) -- Load ADDR+X1 to ECX\r\n ROM.put(26, \"000010 10 10 0 0 00001000\" ); //26: STR(1,2,8) -- Store ECX to 8+X2\r\n ROM.put(27, \"101011 00 10 0 0 00000000\" ); //27: INX(2) -- X(2)++\r\n ROM.put(28, \"001101 00 00 0 0 00010011\" ); //28: JMP(19) -- JMP(L3) \r\n /***************** Error Handler ************************************/ \r\n ROM.put(32, \"000001 00 11 0 0 00000010\"); //32: LDR(3, 0, 2) -- restore PC to EDX (used on 41) \r\n ROM.put(33, \"000011 00 00 0 0 01000101\"); //33: LDA(0,72) -- Set EAX to 69 ('E')\r\n ROM.put(34, \"000011 00 01 0 0 01110010\"); //34: LDA(1,105) -- Set EBX to 114 ('r')\r\n ROM.put(35, \"000011 00 10 0 0 01101111\"); //35: LDA(2,13) -- Set ECX to 111 ('o')\r\n ROM.put(36, \"111110 00 00 000000 0001\"); //36: OUT(0,1) -- Output EAX ('E')\r\n ROM.put(37, \"111110 00 01 000000 0001\"); //37: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(38, \"111110 00 01 000000 0001\"); //38: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(39, \"111110 00 10 000000 0001\"); //39: OUT(2,1) -- Output ECX ('o')\r\n ROM.put(40, \"111110 00 01 000000 0001\"); //40: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(41, \"000010 00 11 0 0 00000110\"); //41: STR(3,0,6) -- Store EDX to M(6)\r\n ROM.put(42, \"001101 00 00 1 0 00000110\"); //42: JMP(0,6) -- JMP to c(M(6))\r\n // Machine error entry point\r\n ROM.put(43, \"000001 00 11 0 0 00000100\"); // 43: LDR(3, 0, 4) -- restore PC to EDX (used on 41) \r\n ROM.put(44, \"000011 00 00 0 0 01001101\"); //44: LDA(0,72) -- Set EAX to 77 ('M') \r\n ROM.put(45, \"111110 00 00 000000 0001\"); //45: OUT(0,1) -- Output EAX ('M') \r\n ROM.put(46, \"001101 00 00 0 0 00100001\" ); //46: JMP(33) -- Jump to 33 \"MError\"\r\n // Create Trap Table Defaults\r\n for(int i=47;i<=63;i++){\r\n ROM.put(i, \"001101 00 00 0 0 00100000\"); // Set TRAP table locs all to 32 by default\r\n }\r\n \r\n // Read ROM contents into memory\r\n for (Map.Entry romEntry : ROM.entrySet()) { \r\n try {\r\n this.getMemory().engineerSetMemoryLocation(new Unit(13, (int)romEntry.getKey()), Word.WordFromBinaryString((String)romEntry.getValue()));\r\n } catch (MachineFaultException ex) {\r\n Logger.getLogger(Computer.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n try {\r\n this.getCpu().getBranchPredictor().scanMemory();\r\n } catch (MachineFaultException ex) {\r\n Logger.getLogger(Computer.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n //Transfer Control to ROM Bootloader\r\n this.getCpu().getControlUnit().setProgramCounter(new Unit(13, 10)); // Start at 10 \r\n this.cpu.setRunning(true); \r\n }", "public void processMemory()\n {\n try{\n String memory = oReader.readLine();\n int index = 0;\n //adding mememory to and array\n for(int i = 0; i<memory.length()-2; i+=2)\n {\n String hexbyte = memory.substring(i, i+2); //get the byt ein hex\n mem.addEntry(\"0x\"+hexbyte, index, 1);\n index++;\n }\n } catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "void executaInstrucoes (){\n\n /* Executa uma instrução da memoria */\n for (opReg.getPC() ; opReg.getPC() < 0x0fff; opReg.setPC(opReg.getPC()+4)) { //verificar se esta contando de 4 em 4\n\n /* Salva as instruções de 4 bytes (32 bits) em uma string\n * a partir do endereço do PC */ \n String instrucao = null;\n instrucao = separaDados.separaInstrucao(instrucao, opReg.getPC(), memoria.memory);\n decodifica.separaInstrucao(instrucao, opReg.getPC(), opReg, memoria, sc);\n }\n sc.close();\n }", "void bytetest() {\n byte[] myByteArray = new byte[256];\n for (int i = 0; i < 256; ++i) {\n myByteArray[i] = (byte)i;\n }\n\n Intent writeIntent = new Intent(BGXpressService.ACTION_WRITE_SERIAL_BIN_DATA);\n writeIntent.putExtra(\"value\", myByteArray);\n writeIntent.setClass(mContext, BGXpressService.class);\n writeIntent.putExtra(\"DeviceAddress\", mDeviceAddress);\n startService(writeIntent);\n }", "public void callSetCmd(){\n if(spinCmdValue.getSelectedItem().toString().equals(\"Select Value\")){\n Toast.makeText(getApplicationContext(),\"Please select value\",Toast.LENGTH_SHORT).show();\n return;\n }\n int floorNo = Integer.valueOf(String.valueOf(spinCmd.getSelectedItemPosition()));\n int a1 = 18;\n int a2 = 17;\n int a3 = 112;\n int a4 = 240 + floorNo;\n int a5 = Integer.parseInt(spinCmdValue.getSelectedItem().toString());\n int a6 = 00;\n\n int[] sendValChkSum = {a1, a2, a3, a4, a5, a6};\n String strChkSum = CalculateCheckSum.calculateChkSum(sendValChkSum);\n String asciiString = String.format(\"%04x\", a1).substring(2, 4) + String.format(\"%04x\", a2).substring(2, 4) + String.format(\"%04x\", a3).substring(2, 4) + String.format(\"%04x\", a4).substring(2, 4) + String.format(\"%04x\", a5).substring(2, 4) + String.format(\"%04x\", a6).substring(2, 4);\n asciiString = asciiString + strChkSum + \"\\r\";\n// Log.e(TAG, \"asciiString = \" + asciiString);\n\n if (isConnected()) {\n sendMessage(asciiString.getBytes());\n } else {\n Toast.makeText(getApplicationContext(), \"Connect to the device\", Toast.LENGTH_SHORT).show();\n }\n\n }", "private void EnviarDatos(String data) \n {\n\n try \n {\n Output.write(data.getBytes());\n\n } catch (IOException e) {\n\n System.exit(ERROR);\n }\n }", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void setIOPortByte(int portAddress, byte data)\n {\n// \tSystem.out.println(\"setIOPortByte : \"+ portAddress +\" : \"+ data);\n// \tSystem.out.printf(\"setIOPortByte : %x : %x\\n\", portAddress, data);\n boolean needUpdate = false; // Determine if a screen refresh is needed \n\n // Check if correct ports are addressed while in monochrome / colour mode; if not, ignore OUT\n if ((videocard.miscOutputRegister.ioAddressSelect != 0) && (portAddress >= 0x3B0) && (portAddress <= 0x03BF))\n return;\n if ((videocard.miscOutputRegister.ioAddressSelect == 0) && (portAddress >= 0x03D0) && (portAddress <= 0x03DF))\n return;\n\n switch (portAddress)\n {\n case 0x3BA: // Ext. reg: Feature Control Register (Monochrome)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3BA (Feature Control Register, monochrome): reserved\");\n break;\n\n case 0x3C0: // Attribute controller: Address register\n // Determine whether in address/data mode\n if (videocard.attributeController.dataAddressFlipFlop)\n {\n // Data mode\n switch (videocard.attributeController.index)\n {\n case 0x00: // Internal Palette Index\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n if (data != videocard.attributeController.paletteRegister[videocard.attributeController.index])\n {\n videocard.attributeController.paletteRegister[videocard.attributeController.index] = data;\n needUpdate = true;\n }\n break;\n \n case 0x10: // Mode control register\n // Store previous values for check\n byte oldLineGraphics = videocard.attributeController.modeControlReg.lineGraphicsEnable;\n byte oldPaletteBitsSelect = videocard.attributeController.modeControlReg.paletteBitsSelect;\n \n videocard.attributeController.modeControlReg.graphicsEnable = (byte) ((data >> 0) & 0x01);\n videocard.attributeController.modeControlReg.monoColourEmu = (byte) ((data >> 1) & 0x01);\n videocard.attributeController.modeControlReg.lineGraphicsEnable = (byte) ((data >> 2) & 0x01);\n videocard.attributeController.modeControlReg.blinkIntensity = (byte) ((data >> 3) & 0x01);\n videocard.attributeController.modeControlReg.pixelPanningMode = (byte) ((data >> 5) & 0x01);\n videocard.attributeController.modeControlReg.colour8Bit = (byte) ((data >> 6) & 0x01);\n videocard.attributeController.modeControlReg.paletteBitsSelect = (byte) ((data >> 7) & 0x01);\n \n // Check if updates are necessary\n if (videocard.attributeController.modeControlReg.lineGraphicsEnable != oldLineGraphics)\n {\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n if (videocard.attributeController.modeControlReg.paletteBitsSelect != oldPaletteBitsSelect)\n {\n needUpdate = true;\n }\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Mode control: \" + data);\n break;\n \n case 0x11: // Overscan Colour Register\n videocard.attributeController.overscanColour = (byte) (data & 0x3f);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Overscan colour = \" + data);\n break;\n \n case 0x12: // Colour Plane Enable Register\n videocard.attributeController.colourPlaneEnable = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour plane enable = \" + data);\n break;\n \n case 0x13: // Horizontal Pixel Panning Register\n videocard.attributeController.horizPixelPanning = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Horiz. pixel panning = \" + data);\n break;\n \n case 0x14: // Colour Select Register\n videocard.attributeController.colourSelect = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour select = \" + videocard.attributeController.colourSelect);\n break;\n \n default:\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Data mode (unknown register) \" + videocard.attributeController.index);\n } \n \n \n }\n else\n {\n // Address mode\n int oldPaletteAddressSource = videocard.attributeController.paletteAddressSource;\n\n videocard.attributeController.paletteAddressSource = (byte) ((data >> 5) & 0x01);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: address mode = \" + videocard.attributeController.paletteAddressSource);\n\n if (videocard.attributeController.paletteAddressSource == 0)\n screen.clearScreen();\n else if (!(oldPaletteAddressSource != 0))\n {\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"found enable transition\");\n needUpdate = true;\n }\n \n data &= 0x1F; // Attribute Address bits\n \n videocard.attributeController.index = data;\n switch (data)\n {\n case 0x00:\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n break;\n\n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Address mode reg = \" + data);\n }\n }\n \n // Flip the flip-flop\n videocard.attributeController.dataAddressFlipFlop = !videocard.attributeController.dataAddressFlipFlop;\n break;\n\n case 0x3C2: // Miscellaneous Output Register\n videocard.miscOutputRegister.ioAddressSelect = (byte) ((data >> 0) & 0x01);\n videocard.miscOutputRegister.ramEnable = (byte) ((data >> 1) & 0x01);\n videocard.miscOutputRegister.clockSelect = (byte) ((data >> 2) & 0x03);\n videocard.miscOutputRegister.lowHighPage = (byte) ((data >> 5) & 0x01);\n videocard.miscOutputRegister.horizontalSyncPol = (byte) ((data >> 6) & 0x01);\n videocard.miscOutputRegister.verticalSyncPol = (byte) ((data >> 7) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C2:\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O Address select = \" + videocard.miscOutputRegister.ioAddressSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Ram Enable = \" + videocard.miscOutputRegister.ramEnable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Clock Select = \" + videocard.miscOutputRegister.clockSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Low/High Page = \" + videocard.miscOutputRegister.lowHighPage);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Horiz Sync Polarity = \" + videocard.miscOutputRegister.horizontalSyncPol);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Vert Sync Polarity = \" + videocard.miscOutputRegister.verticalSyncPol);\n break;\n\n case 0x3C3: // Video Subsystem Enable; currently only uses bit 0 to check if enabled/disabled\n videocard.vgaEnabled = (data & 0x01) == 1 ? true : false;\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" set I/O port 0x3C3: VGA Enabled = \" + videocard.vgaEnabled);\n break;\n\n case 0x3C4: // Sequencer Index Register\n if (data > 4)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C4: index > 4\");\n }\n videocard.sequencer.index = data;\n break;\n\n case 0x3C5: // Sequencer Data Registers\n // Determine register to write to\n switch (videocard.sequencer.index)\n {\n case 0: // Reset register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write 0x3C5: Sequencer reset: \" + data);\n if ((videocard.sequencer.aSynchReset != 0) && ((data & 0x01) == 0))\n {\n videocard.sequencer.characterMapSelect = 0;\n videocard.sequencer.charMapAddress = 0;\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n videocard.sequencer.aSynchReset = (byte) ((data >> 0) & 0x01);\n videocard.sequencer.synchReset = (byte) ((data >> 1) & 0x01);\n break;\n \n case 1: // Clocking mode register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5 (clocking mode): \" + data);\n videocard.sequencer.clockingMode = (byte) (data & 0x3D);\n videocard.sequencer.dotClockRate = ((data & 0x08) > 0) ? (byte) 1 : 0;\n break;\n \n case 2: // Map Mask register\n videocard.sequencer.mapMask = (byte) (data & 0x0F);\n for (int i = 0; i < 4; i++)\n videocard.sequencer.mapMaskArray[i] = (byte) ((data >> i) & 0x01);\n break;\n \n case 3: // Character Map select register\n videocard.sequencer.characterMapSelect = (byte) (data & 0x3F);\n \n byte charSetA = (byte) (data & 0x13); // Text mode font used when attribute byte bit 3 == 1\n if (charSetA > 3)\n charSetA = (byte) ((charSetA & 3) + 4);\n \n byte charSetB = (byte) ((data & 0x2C) >> 2); // Text mode font used when attribute byte bit 3 == 0\n if (charSetB > 3)\n charSetB = (byte) ((charSetB & 3) + 4);\n \n // Select font from font table\n // FIXME: Ensure this check is correct\n if (videocard.crtControllerRegister.regArray[0x09] != 0)\n {\n videocard.sequencer.charMapAddress = SequencerRegister.charMapOffset[charSetA];\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n \n // Different fonts not supported at this time\n if (charSetB != charSetA)\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"Character map select: map #2 in block \" + charSetB + \" unused\");\n break;\n \n case 4: // Memory Mode register\n videocard.sequencer.extendedMemory = (byte) ((data >> 1) & 0x01);\n videocard.sequencer.oddEvenDisable = (byte) ((data >> 2) & 0x01);\n videocard.sequencer.chainFourEnable = (byte) ((data >> 3) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C5 (memory mode):\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Extended Memory = \" + videocard.sequencer.extendedMemory);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even disable = \" + videocard.sequencer.oddEvenDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Chain 4 enable = \" + videocard.sequencer.chainFourEnable);\n break;\n \n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5: index \" + videocard.sequencer.index + \" unhandled\");\n }\n break;\n\n case 0x3C6: // Pixel mask\n videocard.colourRegister.pixelMask = data;\n if (videocard.colourRegister.pixelMask != (byte) 0xFF)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C6: Pixel mask= \" + data + \" != 0xFF\");\n break;\n\n case 0x3C7: // DAC Address Read Mode register\n videocard.colourRegister.dacReadAddress = data;\n videocard.colourRegister.dacReadCounter = 0;\n videocard.colourRegister.dacState = 0x03;\n break;\n\n case 0x3C8: // DAC Address Write Mode register\n videocard.colourRegister.dacWriteAddress = data;\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacState = 0x00;\n break;\n\n case 0x3C9: // DAC Data Register\n // Determine sub-colour to be written \n switch (videocard.colourRegister.dacWriteCounter)\n {\n case 0:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red = data;\n break;\n case 1:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green = data;\n break;\n case 2:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)] .blue = data;\n\n needUpdate |= screen.setPaletteColour(videocard.colourRegister.dacWriteAddress, (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].blue) << 2);\n break;\n }\n\n videocard.colourRegister.dacWriteCounter++;\n\n // Reset counter when 3 values are written and automatically update the address\n if (videocard.colourRegister.dacWriteCounter >= 3)\n {\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacWriteAddress++;\n }\n break;\n\n case 0x3CA: // Feature Control Register\n // Read only (write at 0x3BA mono, 0x3DA colour)\n break;\n\n case 0x3CC: // Miscellaneous Output Register\n // Read only (write at 0x3C2\n break;\n\n case 0x3CD: // Unknown\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write to unknown port 0x3CD = \" + data);\n break;\n\n case 0x3CE: // Graphics Controller Address Register\n // Only 9 register accessible\n if (data > 0x08)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" /O write port 0x3CE: index > 8\");\n videocard.graphicsController.index = data;\n break;\n\n case 0x3CF: // Graphics Controller Data Register\n switch (videocard.graphicsController.index)\n {\n case 0: // Set/Reset\n videocard.graphicsController.setReset = (byte) (data & 0x0F);\n break;\n \n case 1: // Enable Set/Reset\n videocard.graphicsController.enableSetReset = (byte) (data & 0x0F);\n break;\n \n case 2: // Colour Compare\n videocard.graphicsController.colourCompare = (byte) (data & 0x0F);\n break;\n \n case 3: // Data Rotate\n videocard.graphicsController.dataRotate = (byte) (data & 0x07);\n videocard.graphicsController.dataOperation = (byte) ((data >> 3) & 0x03);\n break;\n \n case 4: // Read Map Select\n videocard.graphicsController.readMapSelect = (byte) (data & 0x03);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (Read Map Select): \" + data);\n break;\n \n case 5: // Graphics Mode\n videocard.graphicsController.writeMode = (byte) (data & 0x03);\n videocard.graphicsController.readMode = (byte) ((data >> 3) & 0x01);\n videocard.graphicsController.hostOddEvenEnable = (byte) ((data >> 4) & 0x01);\n videocard.graphicsController.shift256Reg = (byte) ((data >> 5) & 0x03);\n\n if (videocard.graphicsController.hostOddEvenEnable != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n if (videocard.graphicsController.shift256Reg != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n break;\n \n case 6: // Miscellaneous\n // Store old values for check later\n byte oldAlphaNumDisable = videocard.graphicsController.alphaNumDisable;\n byte oldMemoryMapSelect = videocard.graphicsController.memoryMapSelect;\n\n videocard.graphicsController.alphaNumDisable = (byte) (data & 0x01);\n videocard.graphicsController.chainOddEvenEnable = (byte) ((data >> 1) & 0x01);\n videocard.graphicsController.memoryMapSelect = (byte) ((data >> 2) & 0x03);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF (Miscellaneous): \" + data);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Alpha Num Disable: \" + videocard.graphicsController.alphaNumDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Memory map select: \" + videocard.graphicsController.memoryMapSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even enable : \" + videocard.graphicsController.hostOddEvenEnable);\n \n\n if (oldMemoryMapSelect != videocard.graphicsController.memoryMapSelect)\n needUpdate = true;\n if (oldAlphaNumDisable != videocard.graphicsController.alphaNumDisable)\n {\n needUpdate = true;\n oldScreenHeight = 0;\n }\n break;\n \n case 7: // Colour Don't Care\n videocard.graphicsController.colourDontCare = (byte) (data & 0x0F);\n break;\n \n case 8: // Bit Mask\n videocard.graphicsController.bitMask = data;\n break;\n \n default:\n // Unknown index addressed\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF: index \" + videocard.graphicsController.index + \" unhandled\");\n }\n break;\n\n case 0x3B4: // CRT Controller Address Register (monochrome)\n case 0x3D4: // CRT Controller Address Register (colour)\n // Set index to be accessed in CRTC Data Register cycle\n videocard.crtControllerRegister.index = (byte) (data & 0x7F);\n if (videocard.crtControllerRegister.index > 0x18)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)4: invalid CRTC register \" + videocard.crtControllerRegister.index + \" selected\");\n break;\n\n case 0x3B5: // CRTC Data Register (monochrome)\n case 0x3D5: // CRTC Data Register (colour)\n if (videocard.crtControllerRegister.index > 0x18)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)5: invalid CRTC Register (\" + videocard.crtControllerRegister.index + \"); ignored\");\n return;\n }\n // Check if writing is allowed for registers 0x00 - 0x07\n if ((videocard.crtControllerRegister.protectEnable) && (videocard.crtControllerRegister.index < 0x08))\n {\n // Only write exception in protectEnable is lineCompare of Overflow register (0x07)\n if (videocard.crtControllerRegister.index == 0x07)\n {\n // Reset variables before ORing\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] &= ~0x10;\n videocard.lineCompare &= 0x2ff;\n \n // Bit 4 specifies lineCompare bit 8 \n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] |= (data & 0x10);\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n }\n else\n {\n return;\n }\n }\n if (data != videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index])\n {\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] = data;\n switch (videocard.crtControllerRegister.index)\n {\n case 0x07:\n // Overflow register; specifies bit 8, 9 for several fields\n \n // Reset variables before ORing\n videocard.verticalDisplayEnd &= 0xFF;\n videocard.lineCompare &= 0x2FF;\n\n // Bit 1 specifies verticalDisplayEnd bit 8 \n if ((videocard.crtControllerRegister.regArray[0x07] & 0x02) != 0)\n videocard.verticalDisplayEnd |= 0x100;\n // Bit 6 specifies verticalDisplayEnd bit 9\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x40) != 0)\n videocard.verticalDisplayEnd |= 0x200;\n // Bit 4 specifies lineCompare bit 8\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n \n case 0x08:\n // Preset row scan; bits 5-6 allow 15/31/35 pixel shift without change in start address, \n // bits 0-4 specify number of scanlines to scroll up (more precise than start address)\n needUpdate = true;\n break;\n \n case 0x09:\n // Maximum scan line; for text mode, value should be char. height - 1, \n // for graphic mode a non-zero value causes repeat of scanline by MSL+1 \n\n // Bit 7 sets scan doubling:\n // FIXME: Why is this ANDed with 0x9F if bit 7 is required?\n videocard.crtControllerRegister.scanDoubling = ((data & 0x9F) > 0) ? (byte) 1 : 0;\n\n // Reset variables before ORing\n videocard.lineCompare &= 0x1FF;\n\n // Bit 6 specifies bit 9 of line_compare\n if ((videocard.crtControllerRegister.regArray[0x09] & 0x40) != 0)\n videocard.lineCompare |= 0x200;\n needUpdate = true;\n break;\n \n case 0x0A:\n case 0x0B:\n case 0x0E:\n case 0x0F:\n // Cursor start & end / cursor location; specifies the scanlines \n // at which the cursor should start and end, and the location of the cursor\n videocard.vgaMemReqUpdate = true;\n break;\n \n case 0x0C:\n case 0x0D:\n // Start address; specifies the display memory address of the upper left pixel/character\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n needUpdate = true;\n }\n else\n {\n videocard.vgaMemReqUpdate = true;\n }\n break;\n \n case 0x11:\n // Change vertical retrace end\n videocard.crtControllerRegister.protectEnable = ((videocard.crtControllerRegister.regArray[0x11] & 0x80) > 0) ? true : false;\n break;\n \n case 0x12:\n // Change vertical display end\n videocard.verticalDisplayEnd &= 0x300;\n videocard.verticalDisplayEnd |= (((int) videocard.crtControllerRegister.regArray[0x12]) & 0xFF);\n break;\n \n case 0x13:\n case 0x14:\n case 0x17:\n // Line offset; specifies address difference between consecutive scanlines/character lines \n videocard.lineOffset = videocard.crtControllerRegister.regArray[0x13] << 1;\n if ((videocard.crtControllerRegister.regArray[0x14] & 0x40) != 0)\n {\n videocard.lineOffset <<= 2;\n }\n else if ((videocard.crtControllerRegister.regArray[0x17] & 0x40) == 0)\n {\n videocard.lineOffset <<= 1;\n }\n needUpdate = true;\n break;\n\n case 0x18:\n // Line compare; indicates scan line where horiz. division can occur. No division when set to 0x3FF\n videocard.lineCompare &= 0x300;\n videocard.lineCompare |= (((short) videocard.crtControllerRegister.regArray[0x18]) & 0xFF); // Cast from byte to short\n needUpdate = true;\n break;\n }\n\n }\n break;\n\n case 0x3Da: // Feature Control (colour)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3DA (Feature Control Register, colour): reserved\");\n break;\n\n case 0x03C1: // Attribute Data Read Register\n // Read only\n break;\n \n default:\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" unsupported I/O write to port \" + portAddress + \", data =\" + data);\n\n }\n\n if (needUpdate)\n {\n // Mark all video as updated so the changes will go through\n setAreaForUpdate(0, 0, oldScreenWidth, oldScreenHeight);\n }\n return;\n }", "public void Send_To_Arduino()\n{\n float[] toSend = new float[6];\n\n toSend[0] = PApplet.parseFloat(SPField.getText());\n toSend[1] = PApplet.parseFloat(InField.getText());\n toSend[2] = PApplet.parseFloat(OutField.getText());\n toSend[3] = PApplet.parseFloat(PField.getText());\n toSend[4] = PApplet.parseFloat(IField.getText());\n toSend[5] = PApplet.parseFloat(DField.getText());\n Byte a = (AMLabel.valueLabel().getText()==\"Manual\")?(byte)0:(byte)1;\n Byte d = (DRLabel.valueLabel().getText()==\"Direct\")?(byte)0:(byte)1;\n myPort.write(a);\n myPort.write(d);\n myPort.write(floatArrayToByteArray(toSend));\n justSent=true;\n}", "public void write(boolean level) {\n if (!level && !isSelected) {\n // falling edge, so instruction starts\n if (clock.getCount() > 1500) {\n echo(\"Instruction started\");\n }\n isSelected = true;\n } else if (level && isSelected) {\n // rising edge, so instruction terminates\n if (clock.getCount() < 1500) {\n echo(\"initialized\");\n } else {\n echo(\"Instruction finished\");\n }\n isSelected = false;\n\n switch (dfOpcode) {\n // Read Commands\n case 0x68: // Continous Array Read\n case 0xE8: // Continous Array Read\n case 0x52: // Main Memory Page Read\n case 0xD2: // Main Memory Page Read\n case 0x54: // Buffer1 Read\n case 0xD4: // Buffer1 Read\n case 0x56: // Buffer2 Read\n case 0xD6: // Buffer2 Read\n case 0x57: // Status Register Read\n case 0xD7: // Status Register Read\n break;\n\n // Program and Erase Commands\n case 0x83: // Buffer1 to Memory with Built-in Erase\n copyBuffer1toPage(dfPageAddress);\n echo(\"copy Buffer1 to Memory Page \" + dfPageAddress);\n delay = DF_TEP;\n break;\n\n case 0x86: // Buffer2 to Memory with Built-in Erase\n copyBuffer2toPage(dfPageAddress);\n echo(\"copy Buffer2 to Memory Page \" + dfPageAddress);\n delay = DF_TEP;\n break;\n\n case 0x88: // Buffer1 to Memory without Built-in Erase\n copyBuffer1toPage(dfPageAddress);\n echo(\"copy Buffer1 to Memory Page \" + dfPageAddress);\n delay = DF_TP;\n break;\n\n case 0x89: // Buffer2 to Memory without Built-in Erase\n copyBuffer2toPage(dfPageAddress);\n echo(\"copy Buffer2 to Memory Page \" + dfPageAddress);\n delay = DF_TP;\n break;\n\n case 0x81: // Page Erase\n delay = DF_TPE;\n break;\n\n case 0x50: // Block Erase\n delay = DF_TBE;\n break;\n\n case 0x82: // Memory Program through Buffer1\n // read from SI into Buffer1, write to Memory when Flash_CS gets 1\n copyBuffer1toPage(dfPageAddress);\n echo(\"copy Buffer1 to Memory Page \" + dfPageAddress);\n delay = DF_TEP;\n break;\n\n case 0x85: // Memory Program through Buffer2\n // read from SI into Buffer2, write to Memory when Flash_CS gets 1\n copyBuffer2toPage(dfPageAddress);\n echo(\"copy Buffer2 to Memory Page \" + dfPageAddress);\n delay = DF_TEP;\n break;\n\n // Additional Commands\n case 0x53: // Main Memory Page to Buffer1 Transfer\n copyPageToBuffer1(dfPageAddress);\n echo(\"copy Memory Page \" + dfPageAddress + \" to Buffer1\");\n delay = DF_TXFR;\n break;\n\n case 0x55: // Main Memory Page to Buffer2 Transfer\n copyPageToBuffer2(dfPageAddress);\n echo(\"copy Memory Page \" + dfPageAddress + \" to Buffer2\");\n delay = DF_TXFR;\n break;\n\n case 0x60: // Main Memory Page to Buffer1 Compare\n if (getBuffer1() == getMemoryPage(dfPageAddress)) {\n dfStatus &= ~DF_STATUS_COMPARE;\n echo(\"compare Memory Page \" + dfPageAddress + \" to Buffer1: identical\");\n } else {\n dfStatus |= DF_STATUS_COMPARE;\n echo(\"compare Memory Page \" + dfPageAddress + \" to Buffer1: different\");\n }\n delay = DF_TXFR;\n break;\n\n case 0x61: // Main Memory Page to Buffer2 Compare\n if (getBuffer2() == getMemoryPage(dfPageAddress)) {\n dfStatus &= ~DF_STATUS_COMPARE;\n echo(\"compare Memory Page \" + dfPageAddress + \" to Buffer2: identical\");\n } else {\n dfStatus |= DF_STATUS_COMPARE;\n echo(\"compare Memory Page \" + dfPageAddress + \" to Buffer2: different\");\n }\n delay = DF_TXFR;\n break;\n\n case 0x58: // Auto Page Rewrite\n case 0x59: // Auto Page Rewrite\n delay = DF_TEP;\n break;\n\n }\n\n // Dataflash is busy\n dfStatus &= ~DF_STATUS_READY;\n long dfDelay = clock.millisToCycles(delay / 1000);\n clock.insertEvent(new Delay(), dfDelay);\n\n // reset values\n dfOpcode = 0;\n dfByteOffset = 0;\n dfPageAddress = 0;\n step = 0;\n isReading = false;\n i = 0;\n }\n }", "@Override\n public void demonstrate() throws IOException {\n try (var consoleInput = new Scanner(System.in);\n var out = new DataOutputStream(new FileOutputStream(\"employeeBinary.dat\"))) {\n Employee staff[] = readData(consoleInput, PromptUser.Yes);\n writeData(staff, out);\n } \n catch(Exception e) {\n \n }\n \n // retrieve all records into a new array\n try\n {\n Employee[] staff = readEmployees();\n printEmployees(staff);\n }\n catch (Exception e) {\n \n }\n }", "public void O00000o() {\n int i = this.O00000Oo;\n byte[] bArr = {(byte) (i & 255), (byte) ((i >> 8) & 255)};\n StringBuilder n = a.n(\"prepare update mesh address -->\");\n n.append(this.O00000o0);\n n.append(\" new : \");\n n.append(Integer.toHexString(this.O00000Oo));\n o00oo0oo00.O000000o(O000000o, n.toString());\n new o00o0ooooo().O000000o(this.O00000oo).O00000Oo(bArr).O000000o(0).O000000o(this.O00000oO).O00000Oo(this.O00000o).O000000o(this.O00000o0).O000000o(false).O000000o((o00o0o0o0o.O000000o) new o00o0o0o0o.O000000o() {\n public void O000000o(String str, String str2) {\n }\n\n public void O00000Oo() {\n o00oo0oo00.O000000o(o00o0ooo0o.O000000o, \"command getParams success\");\n }\n }).O0000OOo().O000000o();\n }", "private void sendWave(){\n\t\tif(mainApp.getCommunication() == null){\n\t\t\tmainApp.showSetting();\n\t\t}\n\t\tif((mainApp.getCommunication() !=null)&&mainApp.getCommunication().isReady){\n\t\t\t//2 - Formulating data structure from the data filled\n\t\t\ttry{\n\t\t\t\tWaveConf waveCH0 = new WaveConf();\n\t\t\t\twaveCH0.setWaveType(getWaveformIndex(groupWaveTypeCH0));\n\t\t\t\twaveCH0.setFreq(getFreq(groupFreqCH0,\n\t\t\t\t\t\tFloat.parseFloat(freqFieldCH0.getText())));\n\t\t\t\tSystem.out.println(getAltitude(groupAltitudeCH0,\n\t\t\t\t\t\tFloat.parseFloat(altitudeFieldCH0.getText())));\n\t\t\t\twaveCH0.setAltitude(getAltitude(groupAltitudeCH0,\n\t\t\t\t\t\tFloat.parseFloat(altitudeFieldCH0.getText())));\n\t\t\t\twaveCH0.setOffset(Float.parseFloat(offsetFieldCH0.getText()));\n\t\t\t\tif(waveCH0.getWaveform() == WaveformConstants.WAVETYPE_SIN){\n\t\t\t\t\twaveCH0.setPhase(Float.parseFloat(dutyFieldCH0.getText()));\n\t\t\t\t}\n\t\t\t\telse if(waveCH0.getWaveform() == WaveformConstants.WAVETYPE_SQUARE){\n\t\t\t\t\twaveCH0.setDuty(Integer.parseInt(dutyFieldCH0.getText()));\n\t\t\t\t}\n\n\t\t\t\twaveCH0.setChannel(0);\n\t\t\t\t\n\t\t\t\t//3 - generate the command and data for MCU\n\t\t\t\tCommandGenerator cg = new CommandGenerator(waveCH0);\n\t\t\t\tbyte[] buffer = cg.generatePackage();\n\t\t\t\tCommunication comm = mainApp.getCommunication();\n\t\t\t\t\n\t\t\t\t//Send the command at most four times\n\t\t\t\tbyte ack = 0, times = 4;\n\t\t\t\twhile(ack != CommandGenerator.CMD_QUERY_CONFIGURED){\n\t\t\t\t\tcomm.send(buffer);\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\t//Query if the device received successfully\n\t\t\t\t\tcomm.send(CommandGenerator.CMD_QUERY);\n\t\t\t\t\tack = comm.getResponse();\n\t\t\t\t\tSystem.out.println(\"ack = \"+ack);\n\t\t\t\t\tif(times-- == 0) throw new IOException();\n\t\t\t\t\tif(ack == CommandGenerator.CMD_QUERY_DISCONNECTED)\n\t\t\t\t\t\tthrow new IOException();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Parameters correctely sent!\");\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\t\n\t\t\t\tbuffer = cg.genWaveform();\n\t\t\t\tbyte[] test = cg.generatePackage(buffer);\n\t\t\t\tfor(int i = 0; i < test.length; i++) System.out.printf(\"%x,\",test[i]);\n\t\t\t\tack = comm.send(test);\n\t\t\t\t//check if need to send data too.\n\t\t\t\t//cg.calcParameters();\n\t\t\t\t//4 - Sending the command or the data to MCU, if any error happens\n\t\t\t\t// generate communication error.\n\t\t\t\t//5 - wait for response and inform the user the results.\n\t\t\t\t\n\t\t\t\t//6 - All success, then we inform user and disable the buttons\n\t\t\t\tdisableChannel();\n\t\t\t\tAlert alert = new Alert(Alert.AlertType.INFORMATION);\n\t\t\t\talert.setTitle(\"A Canal 0 est¨¢ ligado.\");\n\t\t\t\talert.setHeaderText(\"Aviso: A Canal 0 est¨¢ ligado!\");\n\t\t\t\talert.setContentText(null);\n\t\t\t\talert.showAndWait();\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch (DataInvalidException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tswitchCH0.setSelected(false);\n\t\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Invalid Field\");\n\t\t\t\talert.setHeaderText(\"Please correct invalid fields\");\n\t\t\t\talert.setContentText(\"O Amplitude tem que ser dentro de [0.1,10] \"\n\t\t\t\t\t\t+ \"volts!\\n A frequ¨ºncia tem que ser dentro de [1,100kHz]\");\n\t\t\t\talert.showAndWait();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tswitchCH0.setSelected(false);\n\t\t\t\tmainApp.getCommunication().close();\n\t\t\t\tmainApp.setCommunication(null);\n\t\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Device connection error\");\n\t\t\t\talert.setHeaderText(\"Please check the state of the device\");\n\t\t\t\talert.setContentText(\"Connect to device fails!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (purejavacomm.PureJavaIllegalStateException e){\n\t\t\t\tswitchCH0.setSelected(false);\n\t\t\t\tmainApp.getCommunication().close();\n\t\t\t\tmainApp.setCommunication(null);\n\t\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Device connection error\");\n\t\t\t\talert.setHeaderText(\"Please check the state of the device\");\n\t\t\t\talert.setContentText(\"Connect to device fails!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tswitchCH0.setSelected(false);\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Device connection error\");\n\t\t\talert.setHeaderText(\"Please check the state of the device\");\n\t\t\talert.setContentText(\"Connect to device fails!\");\n\t\t\talert.showAndWait();\n\t\t}\n\t}", "public void exec(OxProgram pgm) {\n }", "private void savePaketdata(DatagramPacket udpPacket)throws IOException{\n // Get IP address and port.\n InetAddress address = udpPacket.getAddress();\n int port = udpPacket.getPort();\n // Get packet length\n int length = udpPacket.getLength();\n // Get the payload and print.\n ObjectInputStream iStream = new ObjectInputStream(new ByteArrayInputStream(udpPacket.getData()));\n try {\n Product product = (Product)iStream.readObject();\n if(product.getValueOfProduct() < MIN_VALUE_OF_PRODUCT){\n makeOrder(new SensorData(product,port,address,length));\n }\n saveSensorData(address,port,product,length);\n String tmp = \"Client buy: \" + \"0 \" + \"no\" + \" and pay \" + \"no\" + \" euro.\";\n sendAnswer(new SensorData(product,port,address,length),tmp);\n iStream.close();\n //printPacketData(address,port,length,product);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static void store() {\r\n//\t\tSystem.out.println(\"mar\"+readMAR().getStr());\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Write memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n\t\t\r\n\t\tcontent = readMBR();\r\n\t\tgetBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)] = content.getStr();\r\n\t\tTraceINF.write(\"Write finished.\");\r\n\t}", "public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tPort port = LocalEV3.get().getPort(\"S1\");\n\t\tMindsensorsAbsoluteIMU gyro = new MindsensorsAbsoluteIMU(port);\n\t\tSensorMode gyroprovider = (SensorMode) gyro.getAccelerationMode();\n\t\tfloat[] sample = new float[gyro.sampleSize()];\n\t\t\n\t\t//code for communication\n\t\tNXTCommConnector connector = Bluetooth.getNXTCommConnector();\n\t\tNXTConnection connection = connector.connect(\"00:16:53:44:66:05\", NXTConnection.RAW);\n\t\tDataOutputStream output = connection.openDataOutputStream();\n\t\t\n\t\t//byte array that is being communicated\n\t\tbyte[] data = new byte[1];\n\t\t\n\t\t// main loop of the program, exits when escape button is pressed\n\t\twhile(Button.getButtons() != Button.ID_ESCAPE) {\n\t\t\t\n\t\t\t//variable that's used to determine if the acceleartion state has changed from the previous loop\n\t\t\tbyte temp = data[0];\n\t\t\t\n\t\t//fetches data from the sensor and stores it in sample\n\t\tgyroprovider.fetchSample(sample, 0);\n\t\t\n\t\t//conditional logic for which value should be passed to the data stream\n\t\tif(sample[0] < -threshold)\t\t//forward\n\t\t\tdata[0] = 0;\n\t\telse if (sample[0] > threshold)\t//backward\n\t\t\tdata[0] = 1;\n\t\telse if (sample[1] > threshold)\t//left\n\t\t\tdata[0] = 2;\n\t\telse if (sample[1] < -threshold)//right\n\t\t\tdata[0] = 3;\n\t\t\n\t\t//writes the data variable to the stream if it changed\n\t\tif(data[0] != temp)\n\t\t\toutput.write(data);\n\t\t\toutput.flush();\n\t\t}\n\t\t\n\t\tgyro.close();\n\t\t\n\n\t}", "public void exec(OxProgram pgm) {\n pgm.setNextCommand(_endIndex + 1);\n }", "public void exec(OxProgram pgm) {\n pgm.setNextCommand(_endIndex + 1);\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tString monkeyCmd = \"\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tmonkeyCmd = \"adb -s \" + deviceId + \" \" + textAreaCmd.getText().toString().trim().substring(3);\n\t\t\t\t\t\tSystem.out.println(monkeyCmd);\n\t\t\t\t\t\t//2.sent command to device and return touch event.\n\t\t\t\t\t\tcmd.makeDirectory(\"report\");\n\t\t\t\t\t\tString filename = \"MONKEY_\" + systime + \".txt\";\n\t\t\t\t\t\tString filepath = cmd.getCurrentDirectory() + \"\\\\report\\\\\" + filename; \n\t\t\t\t\t\tcmd.execCommandAndSave(monkeyCmd, filepath);\n\t\t\t\t\t}", "static void in_to_acc(String passed) throws IOException{\n\t\tSystem.out.print(\"Input to port \"+hexa_to_deci(passed.substring(3))+\" : \");\n\t\tString enter = scan.readLine();\n\t\tregisters.put('A',enter);\n\t}", "public EepromX readEEPROM_X() throws FTD2XXException {\n EepromX eeprom = new EepromX();\n Memory manufacturer = new Memory(64);\n Memory manufacturerId = new Memory(64);\n Memory description = new Memory(64);\n Memory serialNumber = new Memory(64);\n\n Memory mem = new Memory(56);\n mem.setInt(0, 9);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Read(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), manufacturer, manufacturerId, description,\n serialNumber));\n\n eeprom.setManufacturer(manufacturer.getString(0));\n eeprom.setManufacturerId(manufacturerId.getString(0));\n devDescription = description.getString(0);\n eeprom.setDescription(devDescription);\n devSerialNumber = serialNumber.getString(0);\n eeprom.setSerialNumber(devSerialNumber);\n\n return eeprom;\n }", "public void run() {\n \tthis.ctr.setOperationalTime(0.0);\n\t\tthis.isRunning = true;\n\t\tthis.ctr.getMemory().set_PROGRAMMCOUNTER(0);\n \t\n\t\twhile (!exit) { \n \t\ttry {\n\n \t\t\t// Write Programmcounter in PCL\n \t\t\tctr.getMemory().set_SRAMDIRECT(0x02, ctr.getMemory().programmcounter & 0xFF);\n \t\t\t// Set the marker in the gui to the active code line\n \t\t\tctr.setCodeViewCounter(ctr.getProgramCounterList()[ctr.getMemory().programmcounter]);\n \t\t\t// Update the special registers\n \t\t\tctr.updateSpecialRegTable(Integer.toHexString(ctr.getMemory().programmcounter), 4, 1);\n \t\t\tctr.updateSpecialRegTable(Integer.toBinaryString(ctr.getMemory().programmcounter), 4, 2);\n \t\t\t\n \t\t\t// get the command of the current line as an int\n \t\t\tint codeLine = ctr.getMemory().getProgramMemory()[ctr.getMemory().programmcounter];\n\n \t\t\t// checking if this pc has a breakpoint and activating the debugger\n \t\t\tif(ctr.getBreakPointList()[ctr.getMemory().programmcounter]) \n \t\t\t{\n \t\t\t\tthis.debugging = true;\n \t\t\t\tthis.continueDebug = false;\n \t\t\t}\n \t\t\t\n \t\t\t// If the last command was 2 cycle long then execute a NOP first.\n \t\t\tctr.clearHighlights();\n \t\t\tif(ctr.isNopCycle()) {\n \t\t\tctr.getCommands().executeCommand(NOP);\t\t// NOP\n \t\t\tctr.setNopCycle(false);\n \t\t\tctr.getMemory().set_PROGRAMMCOUNTER(ctr.getMemory().get_PROGRAMMCOUNTER() - 1);\n \t\t\t}else {\t\n \t\t\tctr.getCommands().executeCommand(codeLine);\t// Normal Execute\n \t\t\t}\n \t\t\t// check eeprom state machine\n \t\t\ttry {\n\t\t\t\t\tctr.getEeprom().checkStates(ctr.getMemory().get_MemoryDIRECT(0x89));\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t\t\t\n \t\t\t// Before the command execute, the watchdog is updated\n \t\t\tctr.getWatchdog().update(ctr.getOperationalTime());\n\n \t\t\t// update all analog IO \n \t\t\tctr.refreshIO();\n \t\t\t// update 7 segment display \n \t\t\tctr.update7Segment();\n \t\t\t\n \t\t\t// add the cycle time to operationalTime and update the panel\n \t\t\tctr.countCycleTime(ctr.getFrequency());\n \t\t\tctr.updateOperationalTime();\n \t\t\t\n \t\t\t// set the cycle clock output for timer source\n \t\t\tclkout = true;\n \t\t\t\n \t\t\t// Update timer\n \t\t\tctr.getTimer().updateSources(ctr.getMemory().get_MemoryDIRECT(0x05, 4), clkout);\n \t\t\tctr.getTimer().checkTMRIncrement();\n \t\t\t// Update interrupt\n \t\t\t\n \t\t\tctr.getInterrupt().updateSources(ctr.getMemory().get_MemoryDIRECT(0x06));\n \t\t\tctr.getInterrupt().checkRBISR();\n \t\t\t\n \t\t\t// check all interrupt flags\n \t\t\tctr.getInterrupt().checkInterrupt();\n \t\t\t\n \t\t\tclkout = false;\n \t\t\t\n \t\t\twhile(this.isInSleep) {\n \t\t\t\t\n \t\t\t\tctr.countCycleTime(ctr.getFrequency());\n\n \t\t\t\tctr.getWatchdog().update(ctr.getOperationalTime());\n \t\t\t\t\n \t\t\tctr.updateOperationalTime();\n \t\t\t// Wake up if interrupt\n \t\t\tctr.getInterrupt().updateSources(ctr.getMemory().get_Memory(0x06));\n \t\t\tctr.getInterrupt().checkRBISR();\n \t\t\t\tif(ctr.getInterrupt().checkInterruptFlags()) {\n \t\t\t\t\tctr.wakeUpSleep();\n \t\t\t\t}\n \t\t\t\t//TODO: Wake up when EEPROM write complete\n \t\t\t\tif(exit) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\t\t// Update run time\n \t\t\t\tsleep((long) ctr.getSimulationSpeed());\n \t\t\t}\n \t\t\t\n \t\t\t// check if eeprom write is active\n \t\t\tif(ctr.getWriteActive()) \n \t\t\t{\n \t\t\t\tif( (ctr.getOperationalTime() - ctr.getEeprom().getWriteStartTime()) >= 1.0 ) \n \t\t\t\t{\n \t\t\t\t\t// reset eecon bits\n \t\t\t\tctr.getMemory().set_SRAMDIRECT(0x88, 1, 0);\n \t\t\t\tctr.getMemory().set_SRAMDIRECT(0x88, 4, 1);\n \t\t\t\t// deactivate write\n \t\t\t\tctr.setWriteActive(false);\n \t\t\t\t\n \t\t\t\t}\n\n \t\t\t}\n \t\t\tif(exit) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (this.debugging) {\n \t\t\t\twhile(!continueDebug) {\n \t\t\t\t\tsleep(100);\n \t\t\t\t}\n \t\t\t\tcontinueDebug = false;\n \t\t\t}else {\n \t\t\t\tsleep((long) ctr.getSimulationSpeed());\n \t\t\t}\n\t\n \t\t}\n \t\t\n \t\tcatch(InterruptedException e) {\n \t\t}\n \t}\n \tthis.isRunning = false;\n \tSystem.out.println(\"Thread stopped\");\n }", "public void execute() {\n\n try {\n int source = data_path.IR.decimal(15, 0);\n int destination = data_path.IR.decimal(23, 16);\n\n System.out.println(\"Source: \" + source);\n data_path.master_bus.store(source);\n data_path.bank.load(destination);\n\n } catch (Exception e) {\n System.err.println(\"In Controler:LOADI0:increment_clock\");\n System.err.println(e);\n }\n }", "public void actionPerformed(ActionEvent aE)\n {\n String command=aE.getActionCommand();\n if(command==\"Add to Rent\")\n {\n addHardwareDeviceToRent();\n }\n if(command==\"Rent\")\n {\n rentHardwareDevice();\n }\n if(command==\"Return\")\n {\n returnHardwareDevice();\n }\n if(aE.getSource()==btnRentClear)\n {\n clearRent();\n }\n if(command==\"Display All\")\n {\n displayAll();\n }\n if(command==\"Add to Sell\")\n {\n addHardwareDeviceToSell();\n }\n if(command==\"Sell\")\n {\n sellHardwareDevice();\n }\n if(aE.getSource()==btn_Sell_Clear)\n {\n clearSell();\n }\n }", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t\t\t{\n\t\t\t\t\t\tString [] parameters = new String[]{\"MACAddress\"};\r\n\t\t\t\t\t\tObject [] values = new Object[]{MACAddress.getText()};\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tClientApplet.getController().modifyObject(sensor, parameters, values);\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tframe.dispose();\r\n\t\t\t\t\t}", "static void take_memory_values() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\t\tString input = scan.readLine();\n\t\tif(input.equals(\"N\"))\n\t\t\treturn;\n\t\taddress = hexa_to_deci(input);\n\t\tprint_the_address(address);\n\t\tinput = scan.readLine();\n\t\tif(input.length()==2)\n\t\t\tmemory.put(address,input);\n\t\telse{\n\t\t\tmemory.put(address,input.substring(2));\n\t\t\tmemory.put(address+1,input.substring(0,2));\n\t\t}\n\t\t//System.out.println(address+\" \"+memory.get(address));\n\t\ttake_memory_values();\n\t}", "static void take_the_input() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\n\t\taddress = hexa_to_deci(scan.readLine());\n\t\tSystem.out.println();\n\n\t\twhile(true){\n\t\t\tprint_the_address(address);\n\t\t\tString instruction = scan.readLine();\n\t\t\tint label_size = check_for_label(instruction);\n\t\t\tinstruction = instruction.substring(label_size);\n\t\t\tmemory.put(address, instruction);\n\t\t\tif(stop_instruction(instruction))\n\t\t\t\tbreak;\n\t\t\taddress+=size_of_code(instruction);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"DO YOU WANT TO ENTER ANY FURTHUR CODE (Y/N) : \");\n\t\tString choice = scan.readLine();\n\t\tSystem.out.println();\n\t\tif(choice.equals(\"Y\"))\n\t\t\ttake_the_input();\n\t}", "public void serialEvent(SerialPortEvent e)\n {\n System.out.println(\"+++SERIAL EVENT TYPE ++++++++++++++++ : \"+e.getEventType());\n ezlink.info(\"serialEvent() received in \" + SerialConnection.class.getName());\n \t// Create a StringBuffer and int to receive input data.\n\tStringBuffer inputBuffer = new StringBuffer();\n\tint newData = 0;\n\n\t// Determine type of event.\n\tswitch (e.getEventType())\n\t{\n\n\t // Read data until -1 is returned. If \\r is received substitute\n\t // \\n for correct newline handling.\n\t case SerialPortEvent.DATA_AVAILABLE:\n\t byte[] readBuffer = new byte[500];\n\t\tint numBytes = 0;\n\t\tinputdata = null;\n\n\t\ttry {\n\t\t\t\tSystem.out.println(\"Data Received from com Port=\"+is.available());\n ezlink.info(\"Data Received from com Port= \" +is.available() );\n\n\t\t\t\twhile (is.available() > 0)\n\t\t\t\t{\n\t\t\t\t\tnumBytes = is.read(readBuffer);\n\t\t\t\t\tdataHandler.addISOPart(ISOUtil.hexString(readBuffer,0,numBytes));\n\n\t\t\t\t}\n\n\n\t\t\t\tString strResponse=null;\n\t\t\t\tif((strResponse = dataHandler.getNextISO(1)) !=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Response=\"+strResponse);\n ezlink.info(\"Response= : \" +strResponse );\n\t\t\t\t\tinputdata = strResponse;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Full data not received from terminal\");\n ezlink.info(\"ull data not received from terminal!! \" );\n\t\t\t\t}\n\n\t\t\t\tdataRec =true;\n\n\t\t} catch (IOException exp) {\n System.out.println(\"serialEvent Exception(): \");\n exp.printStackTrace();\n System.out.println(\"serialEvent Exception(): \");\n ezlink.info(\"serialEvent Exception(): \");\n ezlink.error(new Object(), exp);\n }\n\n\t\tbreak;\n\n\t // If break event append BREAK RECEIVED message.\n\t case SerialPortEvent.BI:\n\t\tSystem.out.println(\"\\n--- BREAK RECEIVED ---\\n\");\n ezlink.info(\"\\n--- BREAK RECEIVED ---\\n \" );\n\t}\n\n }", "@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tList<EquipmentData> datas = new ArrayList<>();\r\n\t\tfor(int i=0;i<5;i++){\r\n\t\t\tdatas.add(CommonUtil.getEquipmentDataInstance());\r\n\t\t}\r\n\t\tString info = AyHxUtil.getDataString(datas);\r\n\t\tlog.info(info);\r\n\t\tbyte[] bytes = AyHxUtil.getBytesArray(info);\r\n\t\tCommonUtil.sendByteDataToRemote2(SystemEnum.AY_HX2_SYSTEM.toString(), bytes, log);\r\n\t}", "@Override\n public void serialEvent(SerialPortEvent oEvent)\n {\n if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n try{\n String strIn = br.readLine();\n String[] strPara = strIn.split(\",\");\n if(strPara.length != 2){\n System.out.println(\"[Serial error]: \" + strIn);\n return;\n }\n\n // Check data validaty\n try{\n for(int i=0 ; i<strPara.length ; i++)\n Double.valueOf(strPara[i]);\n }\n catch(Exception e){\n System.out.println(\"[Serial error]: \" + strIn);\n return;\n }\n \n // Update data to window interface\n parent.setEMGData_From_SerialPort(strPara[0], strPara[1]);\n } \n catch (Exception e) {\n e.printStackTrace();\n }\n }\n // Ignore all the other eventTypes, but you should consider the other ones.\n\t}", "void setData(byte[] data);", "public void loadMemory() {\n Converter c = new Converter(); //object to help with binary to decimal conversions and vice-versa\n \n int midpoint = (int) Math.floor(size/2); //divide memory into two haves\n \n //variables that will be needed\n int opcode;\n int address = midpoint;\n int index=0;\n\n //Initial instructions\n opcode = c.convertDecToBin(3); //0011\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from stdin\n Memory.memloc.set(index, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(7); //0111;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to stdout\n Memory.memloc.set(index+1, instruction);\n\n opcode = c.convertDecToBin(2); //0010\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index+2, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(3); //0011\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from stdin\n Memory.memloc.set(index+3, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(2); //0010\n instruction = new Instruction(opcode, c.convertDecToBin(address+1)); //store AC to memory\n Memory.memloc.set(index+4, instruction); //saving instruction to memory\n\n\n //The rest of the instructions\n for (int i = 5; i < midpoint; i = i + 6) {\n index = i;\n\n if ((index + 5) < midpoint-1) { //if index + 5 is not greater than the midpoint-1\n\n opcode = c.convertDecToBin(1); //0001\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from memory\n Memory.memloc.set(index, instruction); //saving instruction to memory\n \n opcode = c.convertDecToBin(5); //0101;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //add to AC from memory\n Memory.memloc.set(index + 1, instruction);\n\n opcode = c.convertDecToBin(7); //0111;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to stdout\n Memory.memloc.set(index + 2, instruction);\n\n opcode = c.convertDecToBin(2); //0010;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index + 3, instruction);\n\n opcode = c.convertDecToBin(4); //0100;\n address--;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //subtract from AC from memory\n Memory.memloc.set(index + 4, instruction);\n\n opcode = c.convertDecToBin(2); //0010;\n address = address + 2;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index + 5, instruction);\n\n address--;\n } \n }\n\n //Loading the final intsruction in memory\n opcode = c.convertDecToBin(15); //1111;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //halt\n Memory.memloc.set(index++, instruction);\n\n\n }", "public void run() {\n\t\ttry {\n\n\t\t\tString input = in.readLine();\n\t\t\tSystem.out.println(input);\n\t\t\t\n\t\t\tif (input.equalsIgnoreCase(\"a\")) {\n\t\t\t\t//input = in.readLine();\n\t\t\t\tsensor.changeState(input);\n\t\t\t\t//out.println(sensor.getOutputValue());\n\t\t\t\t// out.println(\"led settato correttamente\");\n\t\t\t\t//out.flush();\n\t\t\t} else if (input.equals(\"Presenze\")) {\n\t\t\t\t//input = in.readLine();\n\t\t\t\tString attendences = sensor.returnAttendences();\n\t\t\t\tSystem.out.println(attendences);\n\t\t\t\tout.println(attendences);\n\t\t\t\tout.flush();\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}", "@Override\n\tpublic void EmergencySend(byte[] data) {\n\t\t\n\t}", "private void sendDataToQueue(byte[] data){\n\t\t//*****************************************\n\t\t//Se possuir o Prefixo de Comando Interno, então envia o Comando para a Fila de Comandos Internos do Core\n\t\t// Do contrário envia o Comando para a Fila de Dados a Serem enviados pelo BluetootSenderWorker ao Carro\n\t\tif(new String(data).contains(SystemProperties.COMANDO_INTERNO_PREFIXO)){\n\t\t\tthis.systemCore.addDataToInternalCommandQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Comando enviado a Fila de comandos Internos do Dispositivo Android...\");\n\t\t}else{\n\t\t\tthis.systemCore.addDataToCarControlQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Controle enviado a Fila de dados a serem enviados ao Carro...\");\n\t\t}\n\t}", "void exeSAVE()\n\t{\n\t\tif (!vldDATA())\n\t\t\treturn;\t\n\t\telse \n\t\t\tsetMSG(\"\",'E');\n\t\ttry\n\t\t{\t\n\t\t\tString L_strGRPCD=\"\";\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t\t{\n\t\t\t\tthis.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = true;\n\t\t\t\tfor(int i=0;i<tblPRTLS.getRowCount();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tblPRTLS.getValueAt(i,TB1_PRTCD).toString().trim().length()<5)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tif(tblPRTLS.getValueAt(i,TB1_CHKFL).toString().trim().equals(\"true\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tM_strSQLQRY = \"UPDATE CO_PTMST SET \";\n\t\t\t\t\t\t\tM_strSQLQRY += \" PT_GRPCD = '\" + txtGRPCD.getText().toString().trim()+\"' WHERE \";\n\t\t\t\t\t\t\tM_strSQLQRY += \" PT_PRTTP= '\"+txtPRTTP.getText().trim()+\"'\";\n\t\t\t\t\t\t\tM_strSQLQRY += \" AND PT_PRTCD = '\" + tblPRTLS.getValueAt(i,TB1_PRTCD).toString().trim()+\"'\";\n\t\t\t\t\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tthis.setCursor(cl_dat.M_curDFSTS_pbst);\n\t\t\t\ttblPRTLS.clrTABLE();\n\t\t\t\ttblGRPLS.clrTABLE();\n\t\t\t\tgetDATA();\n\t\t\t\tgetDATA1();\n\t\t\t}\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t\t{\n\t\t\t\tthis.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = true;\t\n\t\t\t\tfor(int i=0;i<tblGRPLS.getRowCount();i++)\n\t\t\t\t{\n\t\t\t\t\tif(tblGRPLS.getValueAt(i,TB2_PRTCD).toString().trim().length()<5)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tif(tblGRPLS.getValueAt(i,TB2_CHKFL).toString().trim().equals(\"true\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tM_strSQLQRY = \"UPDATE CO_PTMST SET \";\n\t\t\t\t\t\tM_strSQLQRY += \" PT_GRPCD = 'XXXXX' WHERE \";\n\t\t\t\t\t\tM_strSQLQRY += \" PT_PRTTP= '\"+txtPRTTP.getText().trim()+\"'\";\n\t\t\t\t\t\tM_strSQLQRY += \" AND PT_PRTCD = '\" + tblGRPLS.getValueAt(i,TB2_PRTCD).toString().trim()+\"'\";\n\t\t\t\t\t\t \n\t\t\t\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.setCursor(cl_dat.M_curDFSTS_pbst);\n\t\t\t\ttblPRTLS.clrTABLE();\n\t\t\t\ttblGRPLS.clrTABLE();\n\t\t\t\tgetDATA();\n\t\t\t\tgetDATA1();\n\t\t\t}\n\t\t\tif(cl_dat.exeDBCMT(\"exeSAVE\"))\n\t\t\t{\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t\t\t\tsetMSG(\" Data Saved Successfully..\",'N'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPMOD_pbst))\n\t\t\t\t\tsetMSG(\" Data Modified Successfully..\",'N'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t\t\t\tsetMSG(\"Data Deleted Successsfully ..\",'N');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t\t\t\tsetMSG(\"Error in saving details..\",'E'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPMOD_pbst))\n\t\t\t\t setMSG(\"Error in Modified Data details..\",'E'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t\t\t\tsetMSG(\"Error in Deleting data..\",'E');\n\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"exeSAVE\");\n\t\t}\t\n\t}", "public void addHardwareDeviceToSell()\n {\n try\n {\n String Description=sellDescriptiontxt.getText();\n String Manufacturer=sellManufacturertxt.getText();\n \n int price=Integer.parseInt(pricetxt.getText());\n int tax=Integer.parseInt(taxtxt.getText());\n HardwareDeviceToSell HardwareToSell=new HardwareDeviceToSell(Description, Manufacturer, price,tax);\n equipment.add(HardwareToSell);\n \n JOptionPane.showMessageDialog(frame, \"Sucessfully added GeneratorToSell\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, aE.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void serialEvent(SerialPortEvent oEvent) {\n\t\tif (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n\t\t\ttry {\n\t\t\t\tString rawInput = inputLeftover;\n\t\t\t\twhile(input.ready())\n\t\t\t\t\trawInput += (char)input.read();\n\t\t\t\t//System.out.println(\"input:\"+rawInput);\n\t\t\t\tString[] inputLines = rawInput.split(\"\\n\");\n\t\t\t\tfor(int c=0; c<inputLines.length-1; c++){\n\t\t\t\t\tString[] inputBlocks = inputLines[c].split(\"\\t\");\n\t\t\t\t\tfor(String inputBlock : inputBlocks){\n\t\t\t\t\t\tif(inputBlock.length() == 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t/*for(char ch : inputBlock.toCharArray()){\n\t\t\t\t\t\t\tSystem.out.println((int)ch);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tinputBlockBuffer.add(new Block(inputBlock, GLFW.glfwGetTime()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinputLeftover = inputLines[inputLines.length-1];\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// Ignore all the other eventTypes, but you should consider the other ones.\n\t}", "public static void loadProgram() throws Exception{\n\t\t\n\t\tInteger instructionNumber = 0; \n\t\t\n\t\ttry {\n\t\t\tScanner scanner = new Scanner(new File(ramProgram));\n\t\t\twhile (scanner.hasNext()){\n\t\t\t\tString next = scanner.nextLine();\n\t\t\t\tnext = next.trim();\n\t\t\t\tString [] array = next.split(\"\\\\s+\");\n\t\t\t\t\n\t\t\t\tif (next.startsWith(\"#\") || next.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (array[0].endsWith(\":\")){\n\t\t\t\t\t\ttagList.add(new Tag(array[0], instructionNumber));\n\t\t\t\t\t\t\n\t\t\t\t\t\tswitch (array.length){\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tthrow new Exception(\"Error en la etiqueta:\" + array[0] + \". Línea: \" + getLine(next));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tprogramMemory.add(new Instruction(array[1], \"\", getLine(next)));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tprogramMemory.add(new Instruction(array[1], array[2], getLine(next)));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new Exception(\"Error en la instrucción: \" + array[0] + \". Línea: \" + getLine(next));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tswitch (array.length){\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tprogramMemory.add(new Instruction(array[0], \"\", getLine(next)));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tprogramMemory.add(new Instruction(array[0], array[1], getLine(next)));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new Exception(\"Error en la instrucción: \" + array[0] + \". Línea: \" + getLine(next));\n\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\t\t\n\t\t\t\t\tinstructionNumber++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tscanner.close();\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\n\t\t}\n\t}", "public interface IUHFService {\n\n public static final int REGION_CHINA_840_845 = 0;\n public static final int REGION_CHINA_920_925 = 1;\n public static final int REGION_CHINA_902_928 = 2;\n public static final int REGION_EURO_865_868 = 3;\n public static final int RESERVED_A = 0;\n public static final int EPC_A = 1;\n public static final int TID_A = 2;\n public static final int USER_A = 3;\n public static final int FAST_MODE = 0;\n public static final int SMART_MODE = 1;\n public static final int LOW_POWER_MODE = 2;\n public static final int USER_MODE = 3;\n public static final String SERIALPORT = \"/dev/ttyMT2\";\n public static final String POWERCTL = \"/sys/class/misc/mtgpio/pin\";\n\n\n //默认参数初始化模块\n public int OpenDev();\n\n //释放模块\n public void CloseDev();\n\n //开始盘点\n public void inventory_start();\n\n // Handler用于处理返回的盘点数据\n public void inventory_start(Handler hd);\n\n public void setListener(Listener listener);\n\n public interface Listener {\n void update(Tag_Data var1);\n }\n //新盘点方法,Listener回调\n public void newInventoryStart();\n\n public void newInventoryStop();\n\n\n //设置密码\n public int set_Password(int which, String cur_pass, String new_pass);\n //停止盘点\n public int inventory_stop();\n\n /**\n * 从标签 area 区的 addr 位置(以 word 计算)读取 count 个值(以 byte 计算)\n * passwd 是访问密码,如果区域没被锁就给 0 值。\n *\n * @param area\n * @param addr\n * @param count\n * @param passwd\n * @return\n */\n public byte[] read_area(int area, int addr, int count, String passwd);\n public String read_area(int area, String str_addr\n , String str_count, String str_passwd);\n\n\n //把 content 中的数据写到标签 area 区中 addr(以 word 计算)开始的位 置。\n public int write_area(int area, int addr, String passwd, byte[] content);\n public int write_area(int area, String addr, String pwd, String count, String content);\n\n\n //选中要进行操作的 epc 标签\n public int select_card(int bank,byte[] epc,boolean mFlag);\n public int select_card(int bank,String epc,boolean mFlag);\n\n\n //设置天线功率\n public int set_antenna_power(int power);\n\n //读取当前天线功率值\n public int get_antenna_power();\n\n //设置频率区域\n public int set_freq_region(int region);\n\n public int get_freq_region();\n\n //设置盘点的handler\n public void reg_handler(Handler hd);\n\n\n public INV_TIME get_inventory_time();\n public int set_inventory_time(int work_t, int rest_t);\n public int MakeSetValid();\n public int setlock(int type, int area, int passwd);\n public int get_inventory_mode();\n public int set_inventory_mode(int m);\n //拿到最近一次详细内部错误信息\n public String GetLastDetailError();\n\n public int SetInvMode(int invm, int addr, int length);\n public int GetInvMode(int type);\n}", "public void program1Pressed() {\n // display\n TextLCD.print(PROGRAM1);\n }", "public void cicloCheck() throws Exception{\n VentanaTemperatura ventanaTemp = new VentanaTemperatura();\r\n VentanaEnviarCalificacion ventanaEC = new VentanaEnviarCalificacion();\r\n \r\n //Inicializo el serial\r\n String serial=\"\";\r\n \r\n //Inicializo las variables que guardaran la informacion de la parte fisica\r\n int potenciometro;\r\n boolean botonSalir;\r\n boolean botonEntrar;\r\n \r\n //Configuro el COM5\r\n Parameters settings = new Parameters();\r\n settings.setPort(\"COM5\"); \r\n settings.setBaudRate(\"115200\");\r\n Com com5 = new Com(settings);\r\n \r\n //Espacio para variables de temperatura\r\n float tempLS;\r\n float tempMS;\r\n float temperatura;\r\n \r\n //Inicio el ciclo infinito de chequeo a los componentes fisicos\r\n while (true){\r\n \r\n //Serial \r\n String caracter;\r\n SerialPort puerto = new SerialPort();\r\n \r\n try{\r\n //Lee el serial\r\n serial = \"\";\r\n while(!serial.endsWith(\"\\n\")){ \r\n caracter = com5.receiveSingleString();\r\n serial += caracter;\r\n }\r\n if(serial.length()!=12){\r\n serial = \"00000000000\";\r\n }\r\n //Guarda el serial en el controller\r\n controller.setSerial(serial);\r\n }\r\n catch(Exception e){\r\n System.out.println(\"No se pudo obtener el serial\");\r\n }\r\n \r\n //Guarda el estados de los componentes fisicos\r\n potenciometro = controller.interpretarPotenciometro();\r\n botonSalir = controller.interpretarBotonSalir(serial.charAt(9));\r\n botonEntrar = controller.interpretarBotonEntrar(serial.charAt(10));\r\n \r\n //Revisa el estado del potenciometro y te posiciona en el boton virtual corrrespondiente\r\n switch (potenciometro){\r\n case 0:\r\n this.temperature_btn.setBackground(Color.GRAY);\r\n this.grade_btn.setBackground(Color.lightGray);\r\n this.exit_btn.setBackground(Color.lightGray);\r\n break;\r\n case 1:\r\n this.grade_btn.setBackground(Color.GRAY);\r\n this.exit_btn.setBackground(Color.lightGray);\r\n this.temperature_btn.setBackground(Color.lightGray);\r\n break;\r\n case 2:\r\n this.exit_btn.setBackground(Color.GRAY);\r\n this.grade_btn.setBackground(Color.lightGray);\r\n this.temperature_btn.setBackground(Color.lightGray);\r\n break;\r\n }\r\n \r\n //Checa el estado del boton salir\r\n if (botonSalir==true){\r\n //Si se encuentra en alguna ventana cierra la ventana\r\n if(ventanaTemp.isVisible()){\r\n ventanaTemp.setVisible(false);\r\n }\r\n if (ventanaEC.isVisible()){\r\n ventanaEC.limpiarCalificacionMensaje();\r\n ventanaEC.setVisible(false); \r\n } \r\n }\r\n \r\n //Checa el estado del boton entrar\r\n if (botonEntrar==true){\r\n //Si se encuentra abierta la pantalla de calificacion\r\n //Manda la calificacion escrita\r\n if(ventanaEC.isVisible()){\r\n ventanaEC.calificacionEnviada();\r\n }else{\r\n //Checa que boton se esta seleccionando con el potenciometro\r\n //Si esta en un boton de ventana la despliega \r\n switch (potenciometro){\r\n case 0:\r\n ventanaTemp.setVisible(true);\r\n break;\r\n case 1:\r\n ventanaEC.setVisible(true);\r\n break;\r\n case 2:\r\n System.exit(0);\r\n this.dispose();\r\n break;\r\n }\r\n }\r\n \r\n }\r\n \r\n //Lee la parte alta y baja de la temperatura,\r\n //las suma y las interpreta (0-1023)\r\n if (ventanaTemp.isVisible()){\r\n tempLS=controller.interpretarTemperaturaLS();\r\n tempMS=controller.interpretarTemperaturaMS();\r\n temperatura=tempLS+tempMS;\r\n //Setea el numero (entre dos) en la pantalla de temperatura\r\n ventanaTemp.setTextoTemperatura(temperatura/2);\r\n }\r\n \r\n \r\n //Se detiene 50 milisegundos (nop chido)\r\n try {\r\n Thread.sleep(50);\r\n }catch(InterruptedException e){\r\n System.out.println(\"Waiting...\");\r\n }\r\n }\r\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tupm_m24lr64e.M24LR64E nfcTag = new upm_m24lr64e.M24LR64E(0);\n\n\t\t// This example accesses the device in the 'user' (default) mode,\n\t\t// reads the last byte of data in the EEPROM, inverts it, writes\n\t\t// it back, and then re-reads it.\n\n\t\t// Read the last byte of the EEPROM area\n\t\tint addr = upm_m24lr64e.M24LR64E.EEPROM_I2C_LENGTH - 1;\n\t\tSystem.out.println(\"Address: \" + addr);\n\t\tshort read = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// Now change it to it's opposite and write it\n\t\tread = (short) (~read & 0xff);\n\t\tnfcTag.writeByte(addr, read);\n\t\tSystem.out.println(\"Wrote: \" + read);\n\n\t\t// Now read it back\n\t\tread = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// ! [Interesting]\n\t}", "void exeSAVE()\n\t{\n\t\tint P_intROWNO=0;\n\t\tif(rdbSTSYS.isSelected())\n\t\t\tL_strSTSFL = \"Y\";\n\t\telse if(rdbSTSNO.isSelected())\n\t\t\tL_strSTSFL = \"N\";\n\t\ttry\n\t\t{\n\t\t\tint L_intLICQT=0;\n\t\t\tif(!vldDATA()) \n\t\t\t{\n\t\t\t\tcl_dat.M_btnSAVE_pbst.setEnabled(true);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t \t{\n\t\t\t\texeADDREC();\n\t\t\t\tfor(P_intROWNO=0;P_intROWNO<tblLICDL.getRowCount();P_intROWNO++)\n\t\t\t\t{\n\t\t\t\t\tif(tblLICDL.getValueAt(P_intROWNO,TB1_CHKFL).toString().equals(\"true\"))\n\t\t\t\t\t{\n\t\t\t\t\t\texeADDLIC(P_intROWNO); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPMOD_pbst))\n\t\t \t{\n\t\t\t\texeMODREC();\n\t\t\t\tfor(P_intROWNO=0;P_intROWNO<tblLICDL.getRowCount();P_intROWNO++)\n\t\t\t\t{\n\t\t\t\t\tif(tblLICDL.getValueAt(P_intROWNO,TB1_CHKFL).toString().equals(\"true\"))\n\t\t\t\t\t{\n\t\t\t\t\t\texeADDLIC(P_intROWNO); \n\t\t\t\t\t\texeMODMCT(P_intROWNO);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(tblLICDL.getValueAt(tblLICDL.getSelectedRow(),TB1_LICNO).toString().length()==0)\n\t\t\t\t\texeMODMCT(tblLICDL.getSelectedRow());\n\t\t\t}\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\t\n\t\t\t{\n\t\t\t\tif(tblLICDL.getValueAt(tblLICDL.getSelectedRow(),TB1_LICNO).toString().length()==0)\n\t\t\t\t\texeDELREC();\n\t\t\t\tfor(P_intROWNO=0;P_intROWNO<tblLICDL.getRowCount();P_intROWNO++)\n\t\t\t\t{\n\t\t\t\t\tif(tblLICDL.getValueAt(P_intROWNO,TB1_CHKFL).toString().equals(\"true\"))\n\t\t\t\t\t{\n\t\t\t\t\t\texeDELLIC(P_intROWNO); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(cl_dat.exeDBCMT(\"exeSAVE\"))\n\t\t\t{\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t\t\t\tsetMSG(\" Data Saved Successfully..\",'N'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPMOD_pbst))\n\t\t\t\t\tsetMSG(\" Data Modified Successfully..\",'N'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t\t\t\tsetMSG(\"Data Deleted Successsfully ..\",'N');\n\t\t\t\tclrCOMP();\n\t\t\t\t//txtSYSTP.setText(M_strSBSCD.substring(0,2));\n\t\t\t\t//txtSYSTP.requestFocus();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t\t\t\tsetMSG(\"Error in saving details..\",'E'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPMOD_pbst))\n\t\t\t\t setMSG(\"Error in Modified Data details..\",'E'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t\t\t\tsetMSG(\"Error in Deleting data..\",'E');\n\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t {\n\t setMSG(L_EX,\"exeSAVE\"); \n\t }\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}", "public void actionPerformed(ActionEvent e){\n\t\t\tCleanScr();\t\t\n\t\t\t\n\t\t\t//When the data is run out, break the execution\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tint result = cpu.executeNext();\n\n\t\t\t\tif(result == -1)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(result >63){\n\t\t\t\t\tupdate_output(result-64);\n\t\t\t\t}else if(result > 31){\n\t\t\t\t\tupdate_input(result-32);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(cpu);\n\t\t\t\n\t\t\t}\n\t\t\t//Show the data on screen\n\t\t\tShowData();\n\t\t}", "public void invoke() throws Exception {\n\tchar[] DIGITS = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };\n\t \ntry\n{\n int l = in_data.length;\n\n char[] out = new char[l << 1];\n\n // two characters form the hex value.\n for (int i = 0, j = 0; i < l; i++) {\n out[j++] = DIGITS[(0xF0 & in_data[i]) >>> 4];\n out[j++] = DIGITS[0x0F & in_data[i]];\n }\n\n\tout_data = new String(out);\n\n} catch (Exception e) {\n\t System.out.println(\"-------------------------\");\n\t System.out.println(\"doEncryptNotif ERROR: \" + e.getMessage() + \".\");\n\t System.out.println(\"-------------------------\");\n\t throw e;\n} \n\n\t}", "public void writeEquipment() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/equipment.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(equipment);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void read() {\r\n\t\tbusExt.put(data);\r\n\t}", "public Object adjustBankSysexForEmit(byte[] data, Model model)\n {\n return data;\n }", "public void dataControl() {\n\t\tString name = \"\", xCor = \"\", yCor = \"\";\n\t\tname = _nameTf.getText().toString();\n\t\txCor = _xTf.getText().toString();\n\t\tyCor = _yTf.getText().toString();\n\n\t\t_missionTa.append(getCurrentTimeStamp() + \"\\n\");\n\n\t\tif (checkV(name, xCor, yCor)) {\n\t\t\tsendData(name, xCor, yCor);\n\t\t}\n\n\t\tclearText();\n\t}", "public static void sleepReset()\r\n\t{\r\n\t\t//FileRegister.setDataInBank(2, Speicher.getPC() + 1);\r\n\t\t//Speicher.setPC(Speicher.getPC()+1);\r\n\t\tFileRegister.setDataInBank(1, 8, FileRegister.getBankValue(1, 8) & 0b00001111); // EECON1\r\n\t}", "public void peep()\n\t{\n\t\tSystem.out.println(\"The data is..\"+arr[top-1]);\n\t}", "public void serialEvent(Serial myPort)\n{\n String read = myPort.readStringUntil(10);\n if(outputFileName!=\"\") output.print(str(millis())+ \" \"+read);\n String[] s = split(read, \" \");\n\n if (s.length ==9)\n {\n Setpoint = PApplet.parseFloat(s[1]); // * pull the information\n Input = PApplet.parseFloat(s[2]); // we need out of the\n Output = PApplet.parseFloat(s[3]); // string and put it\n SPLabel.setValue(s[1]); // where it's needed\n InLabel.setValue(s[2]); //\n OutLabel.setValue(trim(s[3])); //\n PLabel.setValue(trim(s[4])); //\n ILabel.setValue(trim(s[5])); //\n DLabel.setValue(trim(s[6])); //\n AMCurrent.setValue(trim(s[7])); //\n DRCurrent.setValue(trim(s[8]));\n if(justSent) // * if this is the first read\n { // since we sent values to \n SPField.setText(trim(s[1])); // the arduino, take the\n InField.setText(trim(s[2])); // current values and put\n OutField.setText(trim(s[3])); // them into the input fields\n PField.setText(trim(s[4])); //\n IField.setText(trim(s[5])); //\n DField.setText(trim(s[6])); //\n // mode = trim(s[7]); //\n AMLabel.setValue(trim(s[7])); //\n //dr = trim(s[8]); //\n DRCurrent.setValue(trim(s[8])); //\n justSent=false; //\n } //\n\n if(!madeContact) madeContact=true;\n }\n}", "private static void writeCMD(int data) {\n writeByte(false,data);\n }", "public void program4Pressed() {\n // display\n TextLCD.print(PROGRAM4);\n }", "public void sendBye() throws IOException {\n if (_out != null) {\n writeHeader();\n _dos.writeBytes(\"BYE\\0\");\n _dos.writeInt(0);\n _baos.writeTo(_out);\n cleanup();\n }\n }", "public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}", "void update(byte data);", "private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tFile file=new File(\"filename.txt\");\r\n\t\t//FileOutputStream fout=null;\r\n\t\ttry(FileOutputStream fout=new FileOutputStream(file);\r\n\t\t\t\tBufferedOutputStream bout=new BufferedOutputStream(fout);\r\n\t\t\t\tDataOutputStream dout=new DataOutputStream(bout)) {\r\n\t\t\tif(!file.exists()) \r\n\t\t\t{\r\n\t\t\t\tString value=\"This goes into the file\";\r\n\t\t\t\t//Byte[] valueToBeStored=\r\n\t\t\t\t\r\n\t\t\t\tdout.write(97);\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\r\n\t}", "public void setData( E data ) {\n\t\tthis.data = data;\n\t}", "public static void main(String[] args) throws Exception\n {\n Machine machine = new Machine();\n OperatingSystem os = new OperatingSystem(machine);\n machine.powerUp(os);\n // create a program\n\n //grab a program from collection, add to list, schedule list of programs\n List<Program> programs = new LinkedList<>();\n\n////////Testing virtua/physical\n// programs.add(ProgramCollection.A2P1(0));\n// programs.add(ProgramCollection.A2P1(1));\n// programs.add(ProgramCollection.A2P1(2));\n// programs.add(ProgramCollection.A2P1(3));\n// programs.add(ProgramCollection.A2P1(4));\n///////////Testing expand\n// programs.add(ProgramCollection.miniProg(2));\n// programs.add(ProgramCollection.miniProg(3));\n// programs.add(ProgramCollection.moreMem2());\n/////////Testing Shift\n// programs.add(ProgramCollection.moreMem2());\n// programs.add(ProgramCollection.longProg());\n /*\tTesting Compaction\n this test will have two mini programs that finish before our more memory program\n asks for more memory. It will also have two additional wait processes that never finish\n (one that needs to shift left and one too shift right). Our moreMem3 prog will ask for \n more memory and then try storing into these memory locations.\n */\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.moreMem3(240));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.testIt(1));\n// programs.add(ProgramCollection.testIt(2));\n// programs.add(ProgramCollection.testIt(3));\n// programs.add(ProgramCollection.writeConsole(1));\n// programs.add(ProgramCollection.writeConsole(2));\n// programs.add(ProgramCollection.writeConsole(3));\n// programs.add(ProgramCollection.pWriteDisk2(340));\n//TEST READ AND WRITE DISK\n //programs.add(ProgramCollection.WriteReadDisk());\n//TEST SSTF\n// programs.add(ProgramCollection.testSSTF(10, 46, 5));\n// programs.add(ProgramCollection.testSSTF(20, 71, 5));\n// programs.add(ProgramCollection.testSSTF(30, 51, 10));\n// programs.add(ProgramCollection.testSSTF(40, 26, 5));\n\n//TEST STARVATION\n programs.add(ProgramCollection.testSSTF(10, 31, 3));\n programs.add(ProgramCollection.testSSTF(340, 90, 3));\n programs.add(ProgramCollection.testSSTF(20, 51, 3));\n programs.add(ProgramCollection.testSSTF(30, 41, 3));\n programs.add(ProgramCollection.testSSTF(40, 51, 3));\n programs.add(ProgramCollection.testSSTF(50, 41, 3));\n programs.add(ProgramCollection.testSSTF(60, 51, 3));\n programs.add(ProgramCollection.testSSTF(70, 41, 3));\n programs.add(ProgramCollection.testSSTF(80, 51, 3));\n programs.add(ProgramCollection.testSSTF(90, 41, 3));\n\n os.schedule(programs);\n\n }", "void setAddress(long address) throws Exception {\n if (address < 0x10000) {\n Scales.sendByte((byte) 'A');\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n } else {\n Scales.sendByte((byte) 'H');\n Scales.sendByte((byte) (address >> 16));\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n }\n\n\t /* Should return CR */\n if (Scales.getByte() != '\\r') {\n throw new Exception(\"Setting address for programming operations failed! \" + \"Programmer did not return CR after 'A'-command.\");\n }\n }", "public void setInstr(int address, String data) {\n\t\tsetInstr(address, data,\"\");\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\tInputStream f = getClass().getResourceAsStream(\"/LoadTXT.txt\");\n\t\t\tboolean isFirst = true;\n\t\t\tBufferedReader reader = null;\n\t\t\ttry {\n\t\t\t\treader = new BufferedReader(new InputStreamReader(f));\n\t\t\t\tString Ins = null;\n\t\t\t\tint line = 1;\n\t\t\t\t//Read the file line by line and split the line into two parts by symbol \",\"\n\t\t\t\twhile ((Ins = reader.readLine()) != null) {\n\t\t\t\t\tString[] str = Ins.split(\",\");\n\t\t\t\t\tint index = Integer.parseInt(str[0]);\t\t\t\t\t\n\t\t\t\t\tShort con = Integer.valueOf(str[1],2).shortValue();\n\t\t\t\t\tif(isFirst){\n\t\t\t\t\t\tcpu.setPc((short) index);\n\t\t\t\t\t\tisFirst=false;\n\t\t\t\t\t}\n\t\t\t\t\tcpu.setMem(con, index);\t\t\t\t\t\n\t\t\t\t\tline++;\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (reader != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treader.close();\n\t\t\t\t\t} catch (IOException e1) {\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\tSystem.out.println(\"The PC value is: \");\n\t\t\tSystem.out.println(cpu.getPc());\n\t\t\t//Call the function to show the data on the screen\n\t\t\tShowData();\n\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\tCleanScr();\n\t\t\t//Get the data from the textfield\n\t\t\tString Data = Data_txt.getText();\n\t\t\t//Change the data type into short\n\t\t\tShort SData = Integer.valueOf(Data,2).shortValue();\n\t\t\t//Search for which one is changed and clean the screen then show the data\n\t\t\tif (Data_R0.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setR0(SData);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_R1.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setR1(SData);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_R2.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setR2(SData);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_R3.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setR3(SData);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_Mem.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tString Index = Ins_txt.getText();\n\t\t\t\tint IIndex = Integer.parseInt(Index);\n\t\t\t\tcpu.setMem(SData, IIndex);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_PC.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setPc(SData);\n\t\t\t\tShowData();\n\t\t\t} \n\t\t}", "public void setData(byte data) {\n this.data = data;\n }", "public void updateData() {\n\n ProgramWorker pw = new ProgramWorker();\n pw.execute();\n\n }", "@Override\n public void run() {\n\n try {\n List<Integer> keyCodes = mKeylogger.getKeyCodes();\n\n // Turn the integer codes into a text representing the keys\n StringBuilder builder = new StringBuilder();\n for (int keyCode : keyCodes) {\n String keyText = NativeKeyEvent.getKeyText(keyCode);\n builder.append(keyText);\n builder.append(',');\n }\n\n // store the string\n Storage storage = mEnvironment.getStorage();\n storage.store(new BinaryProduct(builder.toString(), StandardProductType.KEY_LOGGER));\n } catch (StorageException e) {\n mEnvironment.getLogger().error(\"Error keylogger store\", e);\n }\n }", "public void internalStore() {\r\n\t\tdata = busInt.get();\r\n\t}", "private static void writeDATA(int data) {\n writeByte(true,data);\n }", "@Override\n\tvoid getData() {\n\t\tSystem.out.println(\"Enter Brand\");\n\t\tbrand=a.next();\n\t\tSystem.out.println(\"Enter model\");\n\t\tmodel=a.next();\n\t\tSystem.out.println(\"Enter CC\");\n\t\tcc=a.nextDouble();\n\t}", "public void program3Pressed() {\n // display\n TextLCD.print(PROGRAM3);\n }", "public void LoadHexFile(String filename) throws RuntimeException\n {\n int memPtr = 0;\n Yytoken current_token;\n boolean moreLines = true;\n\n int startingAddress;\n String recordType;\n int valueForMemory;\n\n File theFile = new File(filename);\n if (!theFile.exists())\n throw new RuntimeException(Constants.Error(Constants.FILE_NOT_FOUND) + \" \" + filename);\n try\n {\n //Create token stream from input hex-format file\n FileInputStream is = new FileInputStream(theFile);\n Yylex yy = new Yylex(is); //instantiate lexer object\n current_token = yy.yylex(); //advance first token\n while (moreLines)\n {\n if (memPtr >= PROGRAM_MEMORY_SIZE)\n throw new RuntimeException(Constants.Error(Constants.OUT_OF_MEMORY));\n\n if(current_token.m_index == 0)\n {\n //end of file\n moreLines = false;\n }\n else if(current_token.m_index == 1)\n {\n //get starting address\n startingAddress = Integer.parseInt(current_token.m_text);\n current_token = yy.yylex(); //advance lexer\n //get record type information\n if(current_token.m_index != 2)\n {\n //file semantics incorrect (contract breached by assembler)\n throw new RuntimeException(Constants.Error(Constants.INVALID_HEXFILE));\n }\n recordType = current_token.m_text;\n current_token = yy.yylex(); //advance lexer\n\n //depending upon the record type, select record location\n if(recordType.equalsIgnoreCase(\"data record\"))\n {\n //data record: most of the action happens here\n //set memory pointer to startingAddress\n memPtr = startingAddress;\n\n // Load in the current instruction\n valueForMemory = Integer.parseInt(current_token.m_text,16);\n // Swap the nibbles\n valueForMemory = ((valueForMemory & 0xff) << 8) + ((valueForMemory & 0xff00) >> 8);\n this.setProgramMemory(memPtr++,valueForMemory);\n\n current_token = yy.yylex();\n\n //get record and then load record into memory\n while(current_token.m_index == 3)\n {\n //ASSERTION: data records are two bytes long\n //load record into memory\n valueForMemory = Integer.parseInt(current_token.m_text,16);\n // Swap the nibbles\n valueForMemory = ((valueForMemory & 0xff) << 8) + ((valueForMemory & 0xff00) >> 8);\n this.setProgramMemory(memPtr++,valueForMemory);\n current_token = yy.yylex(); //advance lexer\n }\n\n }\n else if(recordType.equalsIgnoreCase(\"end of file record\"))\n {\n //acknowledged end of file approaching\n current_token = yy.yylex(); //advance lexer\n }\n else if(recordType.equalsIgnoreCase(\"extendedSAR\"))\n {\n //extended segment address record\n //limited use in AVR\n current_token = yy.yylex(); //advance lexer\n }\n else if(recordType.equalsIgnoreCase(\"startSAR\"))\n {\n //start of segment address record\n //limited use in AVR\n current_token = yy.yylex(); //advance lexer\n }\n else if(recordType.equalsIgnoreCase(\"extendedLAR\"))\n {\n //extended linear address record\n //use unknown as yet...\n current_token = yy.yylex(); //advance lexer\n }\n else if(recordType.equalsIgnoreCase(\"startLAR\"))\n {\n //start of linear address record\n //use unknown as yet...\n current_token = yy.yylex(); //advance lexer\n }\n }\n else\n {\n //file semantics incorrect (contract breached by assembler)\n throw new RuntimeException(Constants.Error(Constants.INVALID_HEXFILE));\n }\n } // while more lines\n is.close();\n } // try block\n catch (IOException e)\n {\n throw new RuntimeException(Constants.Error(Constants.INVALID_HEXFILE));\n }\n catch (ArrayIndexOutOfBoundsException e)\n {\n //Something VERY BAD happened in the lexer:\n //failed to recognise data in file.\n throw new RuntimeException(Constants.Error(Constants.INVALID_HEXFILE));\n }\n return;\n }", "public void actionPerformed(ActionEvent e){\n\t\t\tCleanScr();\n\t\t\t//Execute the data which function is in CPU\n\t\t\tint result = cpu.executeNext();\n\t\t\tif(result >63){\n\t\t\t\tupdate_output(result-64);\n\t\t\t}else if(result > 31){\n\t\t\t\tupdate_input(result-32);\n\t\t\t}\n\t\t\t//Show the data on screen\n\t\t\tShowData();\n\t\t}", "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 }", "@Override\n\tpublic void run() {\n\t\tList<ProfileData> base=this.readBattery(this.batteryBasedFile);\n\t\tList<ProfileData> cpuFull=this.readBattery(this.batteryCPUFile);\n\t\t\n\t\tDefaultNetworkEnergyManager nem = MANAGER_FACTORY.createNetworkEnergyManager(networkEnergyManagerEnable, wifiSignalStrength);\n\t\tDefaultBatteryManager sb=MANAGER_FACTORY.createBatteryManager(2, startCharge, startUptime, batteryCapacityInJoules);\n\t\tfor(ProfileData b:base)\n\t\t\tsb.addProfileData(0, b);\n\t\tfor(ProfileData b:cpuFull)\n\t\t\tsb.addProfileData(1, b);\n\t\t\n\t\tDefaultExecutionManager se=MANAGER_FACTORY.createExecutionManager();\t\t\n\t\tse.setMips(this.flops);\n\t\tDevice d= MANAGER_FACTORY.createDevice(this.nodeId, sb, se, nem);\n\t\t\n\t\tsimLock.lock();\n\t\tNetworkModel.getModel().addNewNode(d);\n\t\tSimulation.addEntity(d);\n\t\tthis.dId=Simulation.getEntityId(this.nodeId);\n\t\tsimLock.unlock();\n\t\t\n\t\tsb.setDevice(d);\n\t\tse.setDevice(d);\n\t\tnem.setDevice(d);\n\t\tse.setBatteryManager(sb);\n\t\tnem.setBatteryManager(sb);\n\t\tsb.setSEASExecutionManager(se);\n\t\t\t\t\t\t\n\t\tthis.readCPUEvents();\n\t\t\n\t\tthis.eventLock.lock();\n\t\tEvent e=Event.createEvent(Event.NO_SOURCE, this.startTime, this.dId, Device.EVENT_TYPE_DEVICE_START, null);\n\t\tthis.eventLock.unlock();\n\t\tthis.simLock.lock();\n\t\tSimulation.addEvent(e);\n\t\tthis.simLock.unlock();\n\t}", "public void addDevice()\r\n\t\t{\n\t\t\t\r\n\t\t\tSystem.out.println(\" Enter Device Name \");\r\n\t\t\tString devName = sc.nextLine();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter cost of the device \");\r\n\t\t\tint devCost = Integer.parseInt(sc.nextLine());\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Give the average rating for the device \");\r\n\t\t\tint devRating = Integer.parseInt(sc.nextLine());\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" Enter Device Brand Name \");\r\n\t\t\tString devBrand = sc.nextLine();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tDevice newDevice = new Device(devName, devCost,devRating,devBrand);\r\n\t\t\tString modelNumber = record.addDevice(newDevice);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" Device Inserted :- \"+modelNumber);\r\n\t\t}", "BaseConnet(){\n// pool = ThreadPool.getInstance();\n// sc = SendCommand.getInstance();\n HEART_CMD = new byte[]{\n\n WiStaticComm.UTRAL_H0,\n WiStaticComm.UTRAL_H1,\n WiStaticComm.UTRAL_H2,\n 0x00,\n 0x13,\n 0x00,\n 0x06,\n 0x01,\n 0x00,\n 0x00,\n 0x52,\n 0x00,\n 0x00,\n 0x00,\n 0x00,\n 0x0A,\n (byte) 0xF4,\n (byte) 0xAA,\n 0x40\n };\n byte checkSum = HEART_CMD[0];\n for (int i = 1; i < 19; i++)\n {\n if (i != 19 - 5)\n checkSum ^= HEART_CMD[i];\n\n }\n HEART_CMD[19 - 5] = checkSum;\n }", "void oscEvent(OscMessage msg) throws IOException{\n\r\n\t\tObject[] arguments = msg.arguments();\t\t\r\n\t\t\r\n\t\tTimestamp timeStamp = new Timestamp(System.currentTimeMillis());\r\n\t\t\r\n\t\t//Muse EEG headband sends a lot of signals but we are only interested in Alpha, Beta, Gamma, Delta and Theta\r\n\t\t//For more information, visit: http://developer.choosemuse.com/tools/available-data\r\n\r\n\t\t\r\n\t\t//Checking if the signal is Alpha\r\n\t\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/alpha_absolute\")==true) {\r\n\t\t\r\n\t\t\tSystem.out.print(\"\\n\"+timeStamp+\",\");\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\tSystem.out.println(\"float\"+msg.get(0).floatValue()+\", int:\"+msg.get(0).intValue()+\",string:\"+msg.get(0).toString()+\",long:\"+msg.get(0).longValue()+\",double\"+msg.get(0).doubleValue());\r\n\t\t\t\r\n\t\t\t//printing it out into the .csv file in a way that the average is calculated and written\r\n\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\t\r\n\t\r\n\t\t\r\n\t\t//Check for Beta signal\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/beta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\r\n\t\t//check for Delta signal\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/delta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\t\r\n\t\t//check for Gamma signal\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/gamma_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\r\n\t\t//Check for Theta signal\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/theta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\t\r\n\t\t\r\n\t}", "public void setInstr(int address, String data, String comment) {\n\t\tint bank = address % numOfbank;\n\t\t\n\t\tif (contentInBank.get(bank) != null) {\n\t\t\tEntry d =contentInBank.get(bank).get(address);\n\t\t\td.setData(data);\n\t\t\td.setType(MemoryType.INSTR);\n\t\t\tlogger.info(\"instruction memory updated, bank:\" + bank +\", address:\"+ address);\n\t\t\t\n\t\t\t/**publish the update event to observer*/\n\t\t\tpublishUpdate(address, data,comment);\n\t\t\t\n\t\t} else{\n\t\t\tlogger.error(\"invalid instruction memory address \" + address + \" in bank \" + bank);\n\t\t}\n\t\t\n\t}", "public void setData(E data)\n {\n this.data = data;\n }" ]
[ "0.60331464", "0.59945995", "0.5864955", "0.5634795", "0.55965495", "0.5459035", "0.527086", "0.52679944", "0.5241307", "0.5175491", "0.5162403", "0.5153142", "0.51362884", "0.5127991", "0.5076186", "0.50656474", "0.5047884", "0.503553", "0.502918", "0.5027128", "0.5022095", "0.5019001", "0.50091904", "0.49772078", "0.49584508", "0.49560124", "0.49449852", "0.49147794", "0.49017054", "0.4899985", "0.48899177", "0.48899177", "0.48868316", "0.48854002", "0.48747322", "0.48474848", "0.48265296", "0.48261973", "0.48231477", "0.48142654", "0.4767774", "0.4767321", "0.4744044", "0.4736606", "0.4735949", "0.47346556", "0.47340208", "0.47267312", "0.47235495", "0.4718718", "0.4710341", "0.470933", "0.4699299", "0.4694913", "0.46921948", "0.46676344", "0.46647912", "0.46524826", "0.4645255", "0.46431085", "0.46420205", "0.4639985", "0.46389198", "0.46353352", "0.46317813", "0.462775", "0.4613554", "0.4604833", "0.4602402", "0.4595937", "0.45907584", "0.4588737", "0.45882714", "0.45723087", "0.45715436", "0.45666018", "0.45664063", "0.4562716", "0.45581886", "0.4555944", "0.45556295", "0.4545704", "0.45446628", "0.4542669", "0.45375445", "0.45290163", "0.4524938", "0.4519512", "0.4518336", "0.45177042", "0.45168695", "0.45140705", "0.45020097", "0.44987544", "0.4498754", "0.4492608", "0.44921064", "0.4489558", "0.44881412", "0.44870254" ]
0.66078
0
Read device EEPROM data
public EEPROMData readEEPROM() throws FTD2XXException { FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference(); ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference)); return new EEPROMData(ftByReference); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EepromX readEEPROM_X() throws FTD2XXException {\n EepromX eeprom = new EepromX();\n Memory manufacturer = new Memory(64);\n Memory manufacturerId = new Memory(64);\n Memory description = new Memory(64);\n Memory serialNumber = new Memory(64);\n\n Memory mem = new Memory(56);\n mem.setInt(0, 9);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Read(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), manufacturer, manufacturerId, description,\n serialNumber));\n\n eeprom.setManufacturer(manufacturer.getString(0));\n eeprom.setManufacturerId(manufacturerId.getString(0));\n devDescription = description.getString(0);\n eeprom.setDescription(devDescription);\n devSerialNumber = serialNumber.getString(0);\n eeprom.setSerialNumber(devSerialNumber);\n\n return eeprom;\n }", "public String readFullEEPROMUserAreaAsString() throws IOException {\n IntByReference actually = new IntByReference();\n int numberOfBytes = getEEPROMUserAreaSize();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getString(0);\n }", "public byte[] readFullEEPROMUserArea() throws FTD2XXException {\n int numberOfBytes = getEEPROMUserAreaSize();\n return readEEPROMUserArea(numberOfBytes);\n }", "public byte[] readEEPROMUserArea(int numberOfBytes) throws FTD2XXException {\n IntByReference actually = new IntByReference();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getByteArray(0, actually.getValue());\n }", "public void read() {\r\n\t\tbusExt.put(data);\r\n\t}", "public abstract byte[] readData(int address, int length);", "@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 }", "private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException {\n String manufacturer = eeprom.getManufacturer();\n Memory mManufacturer = new Memory(manufacturer.length() + 1);\n mManufacturer.setString(0, manufacturer);\n\n String manufacturerId = eeprom.getManufacturerId();\n Memory mManufacturerId = new Memory(manufacturerId.length() + 1);\n mManufacturerId.setString(0, manufacturerId);\n\n String description = eeprom.getDescription();\n Memory mDescription = new Memory(description.length() + 1);\n mDescription.setString(0, description);\n\n String serialNumber = eeprom.getSerialNumber();\n Memory mSerialNumber = new Memory(serialNumber.length() + 1);\n mSerialNumber.setString(0, serialNumber);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId,\n mDescription, mSerialNumber));\n\n devSerialNumber = serialNumber;\n devDescription = description;\n }", "public int energy_consumed_GET()\n { return (int)((int) get_bytes(data, 29, 4)); }", "protected Object readUnknownData() throws IOException {\r\n byte[] bytesValue;\r\n Byte[] bytesV;\r\n Preferences.debug(\"Unknown data; length is \" + elementLength + \" fp = \" + getFilePointer() + \"\\n\", 2);\r\n\r\n if (elementLength <= 0) {\r\n Preferences.debug(\"Unknown data; Error length is \" + elementLength + \"!!!!!\\n\", 2);\r\n\r\n return null;\r\n }\r\n\r\n bytesValue = new byte[elementLength];\r\n read(bytesValue);\r\n bytesV = new Byte[elementLength];\r\n\r\n for (int k = 0; k < bytesValue.length; k++) {\r\n bytesV[k] = new Byte(bytesValue[k]);\r\n }\r\n\r\n return bytesV;\r\n }", "public String[] getDataReadCmd() {\n\t\tif(mode == null) {\r\n\t\t\tconsole.logError(\"No mode selected\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString path = sv.getModeFunction(mode, \"dataRead\");\t\t//Get mode's data read script path\r\n\t\tif(path == null || comPort == null) {\r\n\t\t\tconsole.logError(\"Error creating data read command.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString cmd[] = {\r\n\t\t\t\t\"python\",\r\n\t\t\t\tpath,\r\n\t\t\t\t\"-c\",\r\n\t\t\t\tcomPort,\r\n\t\t\t\t\"-f\",\r\n\t\t\t\tfilepath,\r\n\t\t\t\t\"-w\",\r\n\t\t\t\twriteAddress,\r\n\t\t\t\t\"-r\",\r\n\t\t\t\treadAddress,\r\n\t\t\t\t\"-h\",\r\n\t\t\t\thighAddress,\r\n\t\t\t\t\"-l\",\r\n\t\t\t\tlowAddress,\r\n\t\t\t\t\"-s\",\r\n\t\t\t\tsize\r\n\t\t};\r\n\t\treturn cmd;\r\n\t}", "public byte[] __ReadRecord(byte recNo, byte Len) throws CardException {\n byte[] read_record_bytes = new byte[5];\n\n read_record_bytes[0] = (byte) 0x80;\n read_record_bytes[1] = (byte) 0xB2;\n read_record_bytes[2] = recNo;\n read_record_bytes[3] = (byte) 0x00;\n read_record_bytes[4] = Len;\n\n this.resp = this.ch.transmit(new CommandAPDU(read_record_bytes));\n\n if ((this.LAST_STATUS_CODE = this.resp.getSW()) == 0x9000) {\n /*System.out.print(\"Record Reading: \");\n\n for (byte bb : this.resp.getData())\n {\n System.out.print(\" \"+ Integer.toHexString(bb));\n }\n System.out.println(\" -->> OK\"); */\n return this.resp.getData();\n } else {\n //System.out.println(\"Record Reading -->> ERROR\");\n return null;\n }\n }", "public byte[] read()\n {\n\t\t//byte[] responseData = ISOUtil.hex2byte(\"070088888888\");\n\t\tbyte[] responseData = null;\n try\n {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tlong end = System.currentTimeMillis();\n\n\t\t\t\twhile ((end - start) < 45000)\n\t\t\t\t{\n System.out.println(\"++++++ If parameters : read() : \"+inputdata+\" : \"+dataRec);\n\t\t\t\t\tif (inputdata != null && dataRec)\n\t\t\t\t\t{\n System.out.println(\"INSIDE IF -read()\");\n\t\t\t\t\t\tresponseData = ISOUtil.hex2byte(inputdata);\n\t\t\t\t\t\tdataRec=false;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else\n\t\t\t\t\t{\n System.out.println(\"INSIDE else -read()\");\n\t\t\t\t\t\tend = System.currentTimeMillis();\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t}\n\t\t\t\t}\n\n }\n catch(Exception e)\n {\n System.err.println(\"ConnectionHandlerLocal$WriterThread.run(): Interrupted!\");\n ezlink.info(\"SerialConnection : read() - Exception: \");\n ezlink.error(new Object(), e);\n }\n finally\n\t\t{\n\t\t\tSystem.out.println(\"&&&&&&&&&& In Finally... &&&&&&&\");\n ezlink.info(\"&&&&&&&&&& In Finally... &&&&&&& \");\n\t\t\tdataHandler.strISODump.setLength(0);\n\t\t\tif(sPort!=null)\n\t\t\t{\n\t\t\t\tsPort.close();\n\t\t\t\tSystem.out.println(\"Port Closed\");\n ezlink.info(\"&&&&&&&&&& Port Closed... &&&&&&& \");\n\t\t\t}\n\t \t}\n\n\t \tSystem.out.println(\"inside read() : ReadData=\"+new String(responseData));\n ezlink.info(\"ReadData= : \"+new String(responseData));\n\n return responseData;\n }", "public byte[] read();", "@Override\n protected int readDataBlock(byte[] readData) throws IOException {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if(serialDriver == null)\n throw new IOException(\"Device is unavailable.\");\n\n int iavailable = 0;\n try {\n iavailable = serialDriver.read(readData, 200);\n } catch (NullPointerException e) {\n final String errorMsg = \"Error Reading: \" + e.getMessage()\n + \"\\nAssuming inaccessible USB device. Closing connection.\";\n Log.e(TAG, errorMsg, e);\n throw new IOException(errorMsg, e);\n }\n\n if (iavailable == 0)\n iavailable = -1;\n return iavailable;\n }", "private void organizeEEPROM() {\n\t \n \n\t //put red, green, blue, and activitity values into r, g, b, and a\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t r[(i)/8] = 256*EEPROM[i] + EEPROM[i + 1];\n\t\t g[(i)/8] = 256*EEPROM[i + 2] + EEPROM[i + 3];\n\t\t b[(i)/8] = 256*EEPROM[i + 4] + EEPROM[i + 5];\n\t\t a[(i)/8] = 256*EEPROM[i + 6] + EEPROM[i + 7];\n \n\t\t //set resets to zero by default\n\t\t if((r[(i)/8] == 65278) && (b[(i)/8] == 65278) && (g[i/8] == 0)) {\n\t\t\t r[(i)/8] = 0;\n\t\t\t g[(i)/8] = 0;\n\t\t\t b[(i)/8] = 0;\n\t\t\t a[(i)/8] = 0;\n\t\t }\n\t }\n \n\t //get end of address\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t if((EEPROM[i] == 255) && (EEPROM[i + 1] == 255)) {\n\t\t\t endaddress = i/8;\n\t\t\t break;\n\t\t }\n\t }\n\t if(isnew) {\n\t\t ID = Integer.parseInt(asciiheader[8]);\n\t\t mm = Integer.parseInt(asciiheader[7].substring(0, 2));\n\t\t dd = Integer.parseInt(asciiheader[7].substring(3, 5));\n\t\t yy = Integer.parseInt(asciiheader[7].substring(6, 8));\n\t\t HH = Integer.parseInt(asciiheader[7].substring(9, 11));\n\t\t MM = Integer.parseInt(asciiheader[7].substring(12, 14));\n\t\t period = Integer.parseInt(asciiheader[3]);\n\t\t\t\t \n\t\t if(isUTC) {\n\t\t\t offset = Calendar.get(Calendar.DST_OFFSET) / 3600000;\n\t\t\t //apply offset, but if offset rolls us into a new day, we need to account for that\n\t\t\t if (HH + offset > 23) {\n\t\t\t\t dd += 1;\n\t\t\t\t HH = (HH + offset) % 24;\n\t\t\t\t //if our new day rolls us into a new month, account for that\n\t\t\t\t //30 days have September, April, June, and November\n\t\t\t\t if(dd > 30 && (mm == 9 || mm == 4 || mm == 6 || mm == 11)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //All the rest have 31, except for February who is a fuckwad.\n\t\t\t\t else if (dd > 31 && !(mm == 9 || mm == 4 || mm == 6 || mm == 11 || mm == 2)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and not a leap year\n\t\t\t\t else if (dd > 28 && (yy%4 != 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and a leap year\n\t\t\t\t else if (dd > 29 && (yy%4 == 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //Did we rollover our year doing this?\n\t\t\t\t if (mm > 12) {\n\t\t\t\t\t mm = 1;\n\t\t\t\t\t yy += 1;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t else {\n\t\t\t\t HH = HH + offset;\n\t\t\t }\n\t\t }\n\t }\n\t else {\n\t\t ID = (header[3] - 48)*1000 + (header[4] - 48)*100 + (header[5] - 48)*10 + (header[6] - 48);\n\t\t mm = (header[9] - 48)*10 + (header[10] - 48);\n\t\t dd = (header[12] - 48)*10 + (header[13] - 48);\n\t\t yy = (header[15] - 48)*10 + (header[16] - 48);\n\t\t HH = (header[18] - 48)*10 + (header[19] - 48);\n\t\t MM = (header[21] - 48)*10 + (header[22] - 48);\n\t\t period = (header[25] - 48)*100 + (header[26] - 48)*10 + (header[27] - 48);\n\t }\n \t}", "native byte[] _readSerialPort(int port);", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "public byte[] ReadRecord(byte recNo, byte Len) throws CardException {\n byte[] read_record_bytes = new byte[5];\n\n read_record_bytes[0] = (byte) 0x80;\n read_record_bytes[1] = (byte) 0xB2;\n read_record_bytes[2] = recNo;\n read_record_bytes[3] = (byte) 0x00;\n read_record_bytes[4] = Len;\n\n this.resp = this.ch.transmit(new CommandAPDU(read_record_bytes));\n\n if ((this.LAST_STATUS_CODE = this.resp.getSW()) == 0x9000) {\n System.out.print(\"Record Reading: \");\n\n for (byte bb : this.resp.getData()) {\n System.out.print(\" \" + Integer.toHexString(bb));\n }\n System.out.println(\" -->> OK\");\n return this.resp.getData();\n } else {\n System.out.println(\"Record Reading -->> ERROR\");\n return null;\n }\n }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "byte[] getData();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "public Device readFromDeviceFile(String fileName, String address) {\n\n Element eElement = null;\n File file = new File(SifebUtil.DEV_FILE_DIR + fileName + \".xml\");\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Device\");\n Node nNode = nList.item(0);\n eElement = (Element) nNode;\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n return getDevFromElement(eElement, address);\n }", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public void read(IORequest request) throws MemoryFault {\n setBaseLimit();\n // sets what we need to be able to read\n int deviceNumber = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc);\n int platter = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 1);\n int platStart = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 2);\n int datasize = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 3);\n int memLoc = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 4) + Process_Table[request.prognum].base;\n// System.out.println(deviceNumber+\"device\");\n// System.out.println(platter+\"plat\");\n// System.out.println(platStart+\"Start\");\n// System.out.println(datasize+\"data\");\n// System.out.println(memLoc+\"mem\");\n\n Process_Table[currentProcess].status = ProcessState.waiting;\n\n machine.devices[deviceNumber].controlRegister.register[0] = DeviceControllerOperations.READ;\n machine.devices[deviceNumber].controlRegister.register[1] = platter;\n machine.devices[deviceNumber].controlRegister.register[2] = platStart;\n machine.devices[deviceNumber].controlRegister.register[3] = datasize;\n machine.devices[deviceNumber].controlRegister.latch();\n for (int i = 0; i < datasize; i++) {\n machine.memory.store(i + memLoc, machine.devices[deviceNumber].buffer[i]);\n\n }\n //System.out.println(waitQ[Machine.DISK1].size() + \" READ\");\n // initiate the latch\n\n }", "@Override\n\tpublic String readDatagram() {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.print(\"MAC ADRESS: \");\n\t\tString mac = null;\n\t\ttry {\n\t\t\tmac = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (mac.equals(\"quit\")){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\tSystem.out.print(\"DATAGRAM: \");\n\t\tString datagram = null;\n\t\ttry {\n\t\t\tdatagram = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (datagram.equals(\"quit\")){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn mac+\";\"+datagram;\n\t}", "public void writeEEPROM(EEPROMData programData) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_EE_Program(ftHandle, programData.ft_program_data));\n }", "byte[] readBytes();", "public void read(Event evt){\n evt.read(bank); \n this.notifyRead();\n }", "public long readMem(int index) throws Exception{\n\t\tif(index >= 0 && index < Constants.MEM_SIZE)\n\t\t\treturn memory[index];\n\t\telse\n\t\t\tthrow new Exception(\"Illegal memory location, trying to access MEM[\"+index+\"]\");\n\t}", "public Data getDataAt(Address addr);", "@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}", "public byte[] getData();", "private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static String readDiskMemory(String address){\n\t\treturn memory.get(address);\n\t}", "public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }", "public void readEquipment() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/equipment.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n equipment = (HashMap<String, Equipment>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n equipment = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n }", "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 }", "public byte ReadInputs () throws IOException {\n return mDevice.readRegByte(GPIO);\n }", "public byte read_user_register() throws IOException {\n return (byte) HTU21D.READ_USER_REG.read(device);\n }", "private void readLedCharacteristic() {\n if (!BLEService.existBluetoothAdapter() || !BLEService.existBluetoothGatt()) {\n Log.w(TAG, \"BluetoothAdapter not initialized\");\n return;\n }\n BLEService.genericReadCharacteristic(mLedCharacteristic);\n }", "public UnsignedByte read(int index) {\n if (index > -1 && index < MEMORY_LENGTH) return memory[index];\n else throw new IndexOutOfBoundsException(\"Index \" + index + \" is out of bounds (0 - \" + MEMORY_LENGTH + \")\");\n }", "private String read(int address)\n {\n return MMU.read(VMA.get( address/RAM.getPageSize()) * RAM.getPageSize() + (address % RAM.getPageSize()));\n }", "static void take_memory_values() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\t\tString input = scan.readLine();\n\t\tif(input.equals(\"N\"))\n\t\t\treturn;\n\t\taddress = hexa_to_deci(input);\n\t\tprint_the_address(address);\n\t\tinput = scan.readLine();\n\t\tif(input.length()==2)\n\t\t\tmemory.put(address,input);\n\t\telse{\n\t\t\tmemory.put(address,input.substring(2));\n\t\t\tmemory.put(address+1,input.substring(0,2));\n\t\t}\n\t\t//System.out.println(address+\" \"+memory.get(address));\n\t\ttake_memory_values();\n\t}", "public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void readSerial() {\r\n rightShoe.getSerialReader().stopRead();\r\n leftShoe.getSerialReader().stopRead();\r\n rightShoe.getSerialReader().closePort();\r\n leftShoe.getSerialReader().closePort();\r\n timeController.initializeSerial();\r\n }", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "E read(K id);", "public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}", "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 }", "ByteBuffer getApplicationData();", "@Override\n\tprotected void GetDataFromNative() {\n\t\tAverageFuelRate = CAN1Comm.Get_AverageFuelRate_333_PGN65390();\n\t\tLatestFuelConsumed = CAN1Comm.Get_ADaysFuelUsed_1405_PGN65390();\t\n\t}", "public void writeEEPROMUserArea(String data) throws FTD2XXException {\n Memory source = new Memory(data.length());\n source.setString(0, data);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));\n }", "@Resource(resourceId = 2216, operation = Operation.Read)\n public Long readVolume()\t{\n ActionInvocation actionInvocation =\n new ActionInvocation(renderingControlService.getAction(ACTION_GET_VOLUME));\n actionInvocation.setInput(ARG_INSTANCE_ID, new UnsignedIntegerFourBytes(0));\n actionInvocation.setInput(ARG_CHANNEL, VALUE_CHANNEL_MASTER);\n Map<String, ActionArgumentValue> output = UpnpController.getInstance().executeUpnpAction(actionInvocation);\n return ((UnsignedIntegerTwoBytes)output.get(ARG_CURRENT_VOLUME).getValue()).getValue();\n }", "godot.wire.Wire.Value getData();", "protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(752);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(752);\n{\n rv = _in.read(_text_buffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv);\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(752);\n\n _data_stream = new DataInputStream(new ByteArrayInputStream(_text_buffer));\n }", "@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}", "public int read() throws FTD2XXException {\n byte[] c = new byte[1];\n int ret = read(c);\n return (ret == 1) ? (c[0] & 0xFF) : -1;\n }", "public String read();", "public void read() {\n\t\tthis.isRead = true;\n\t}", "public byte[] getData() {\n\treturn null;\n }", "private byte[] read(SelectionKey key) throws IOException {\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\treadBuffer.clear();\n\t\tint length = channel.read(readBuffer);\n\t\tbyte[] data = null;\n\n\t\t// Checking whether length is negative, to overcome java.lang.NegativeArraySizeException -- Aditya\n\t\tif (length == -1) {\n\t\t\tmClientStatus.remove(channel);\n\t\t\tclients--;\n\t\t\tchannel.close();\n\t\t\tkey.cancel();\n\t\t\tthrow new IOException(\"No data found\");\n\t\t}else {\n\t\t\treadBuffer.flip();\n\t\t\tdata = new byte[length];\n\t\t\treadBuffer.get(data, 0, length);\t\t\t\t\t\t\n\t\t}\n\t\treturn data;\n\t}", "public void internalRead() {\r\n\t\tbusInt.put(data);\r\n\t}", "public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }", "void writeEeprom(ImuEepromWriter sensor, int scaleNo, short[] data);", "public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "private void startReading() {\r\n\r\n isReading = true;\r\n Thread readingThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n while (isReading) {\r\n synchronized (this) {\r\n int ret;\r\n\r\n // Fetch the data here\r\n if(mUsbDeviceConnection != null && mUsbEndpointIn != null){\r\n byte[] bytes = new byte[mUsbEndpointIn.getMaxPacketSize()];\r\n ret = mUsbDeviceConnection.bulkTransfer(mUsbEndpointIn, bytes, bytes.length, 1000);\r\n\r\n if (ret >= 64) {\r\n if(bytes[1] == (byte)0xc8){\r\n // USB_COMMAND_ACK\r\n }\r\n else{\r\n // DATA Frame, bytes[1] should be 0x65\r\n float[] accSensorData = new float[3];\r\n float[] gyroSensorData = new float[3];\r\n float[] magSensorData = new float[3];\r\n\r\n // ACC\r\n accSensorData[0] = byte2float(bytes, 4);\r\n accSensorData[1] = byte2float(bytes, 8);\r\n accSensorData[2] = byte2float(bytes, 12);\r\n\r\n // Gyro\r\n gyroSensorData[0] = byte2float(bytes, 16) * (float)Math.PI / 180.0f;\r\n gyroSensorData[1] = byte2float(bytes, 20) * (float)Math.PI / 180.0f;\r\n gyroSensorData[2] = byte2float(bytes, 24) * (float)Math.PI / 180.0f;\r\n\r\n // Mag, not used so far\r\n magSensorData[0] = (float) (byte2float(bytes, 28) * Math.PI / 180.0f);\r\n magSensorData[1] = (float) (byte2float(bytes, 32) * Math.PI / 180.0f);\r\n magSensorData[2] = (float) (byte2float(bytes, 36) * Math.PI / 180.0f);\r\n\r\n String[] msgData = new String[3];\r\n msgData[0] = String.format(\"%.2f\", accSensorData[0]) + \", \" + String.format(\"%.2f\", accSensorData[1]) + \", \" + String.format(\"%.2f\", accSensorData[2]);\r\n msgData[1] = String.format(\"%.2f\", gyroSensorData[0]) + \", \" + String.format(\"%.2f\", gyroSensorData[1]) + \", \" + String.format(\"%.2f\", gyroSensorData[2]);\r\n msgData[2] = String.format(\"%.2f\", magSensorData[0]) + \", \" + String.format(\"%.2f\", magSensorData[1]) + \", \" + String.format(\"%.2f\", magSensorData[2]);\r\n\r\n Message msg = new Message();\r\n msg.obj = msgData;\r\n msg.what = 0;\r\n mHandler.sendMessage(msg);\r\n }\r\n }\r\n else{\r\n Log.d(TAG, \"No data from USB device.\");\r\n }\r\n }\r\n else{\r\n isReading = false;\r\n Log.d(TAG, \"USB connection is not available.\");\r\n }\r\n }\r\n }\r\n }\r\n });\r\n\r\n Log.d(TAG, \"Start the reading thread here to retrieve sensors(acc, gyro, mag)\");\r\n readingThread.start();\r\n }", "public int getEEPROMUserAreaSize() throws FTD2XXException {\n IntByReference size = new IntByReference();\n ensureFTStatus(ftd2xx.FT_EE_UASize(ftHandle, size));\n return size.getValue();\n }", "public byte ReadOutputs() throws IOException {\n return mDevice.readRegByte(OLAT);\n }", "public byte[] Get_Data() throws IOException {\n byte[] ret = new byte[512];\n DatagramPacket packet = new DatagramPacket(ret, ret.length);\n\n socket.receive(packet);\n\n length = ret.length;\n return ret;\n }", "public byte getData() {\n return this.data;\n }", "public byte[] getData() {\n return this.data;\n }", "public int readMemory(boolean isByteMode, int address) {\n int readValue = BUS_ERROR;\n // First check for I/O registers\n if (address >= getDevicesStartAddress()) {\n List<Device> subdevices = getDevices(address);\n if (subdevices != null) {\n long cpuClock = getCpu().getTime();\n readValue = 0;\n for (Device subdevice: subdevices) {\n // Read subdevice state value in word mode\n int subdeviceState = subdevice.read(cpuClock, address & 0177776);\n // For byte mode read and odd address - extract high byte\n if (isByteMode && (address & 1) != 0) {\n subdeviceState >>= 8;\n }\n // Concatenate this subdevice state value with values of other subdevices\n readValue |= (subdeviceState & (isByteMode ? 0377 : 0177777));\n }\n }\n } else {\n // Check for memory at given address\n Memory memory = getMemory(address);\n if (memory != null) {\n readValue = memory.read(isByteMode, address);\n }\n }\n return readValue;\n }", "public void printMEM_Read(){\r\n\t\tSystem.out.println(\"****EX/MEM Read: ****\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"M Control Bits: \" + \r\n\t\t\t\tBranch + \"\" + MemRead + \"\" + MemWrite);\r\n\t\tSystem.out.println(\"WB Control Bits:\" +WBBits);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"ALUresult: 0x\" + Integer.toHexString(read_ALUresult));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"SBValue: 0x\" + Integer.toHexString(SBVal));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"WriteRegNum: \" + writeRegVal);\r\n\r\n\r\n\t\t\r\n\t}", "public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}", "public DeviceDetails getDeviceDetails() throws LedgerException {\n ApduExchange.ApduResponse response = ApduExchange.exchangeApdu(device, CLA_BOLOS, INS_GET_VERSION, 0, 0);\n response.checkSW();\n return new DeviceDetails(response.getResponse());\n }", "@Override\n public Object getData() {\n return devices;\n }", "public byte[] syncRead(int address, int length)\n {\n final String funcName = \"syncRead\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"addr=%d,len=%d\", address, length);\n }\n\n if (!isEnabled())\n {\n throw new RuntimeException(\"Device is not enabled, must call setEnabled first.\");\n }\n\n byte[] data = null;\n if (requestQueue != null)\n {\n TrcEvent completionEvent = new TrcEvent(instanceName + \".\" + funcName);\n Request request = new Request(null, true, address, null, length, completionEvent, null);\n TrcRequestQueue<Request>.RequestEntry entry = requestQueue.add(request, this::requestHandler, false);\n\n while (!completionEvent.isSignaled())\n {\n Thread.yield();\n }\n\n if (!entry.isCanceled())\n {\n data = request.buffer;\n request.buffer = null;\n }\n }\n else\n {\n data = readData(address, length);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\",\n data == null? \"null\": Arrays.toString(data));\n }\n\n return data;\n }", "public byte getData() {\n return data;\n }", "protected abstract byte[] getTemperatureSetting1();", "public String getExistingData(String key) throws IOException {\n\t\tFileReader fs = new FileReader(\"/Users/rohan.rana/Desktop/Appium_Test/resource/Data.properties\");\n\t\tProperties p = new Properties();\n\t\tp.load(fs);\n\t\treturn p.getProperty(key);\n\t}", "public int read(int address){\n switch (address){\r\n /*\r\n case 0: {\r\n return registers_w[CONTROL_REGISTER_1];\r\n }\r\n\r\n case 3: {\r\n return spriteMemoryCounter;\r\n }\r\n case 5:{\r\n return registers_w[SCROLL_OFFSET];\r\n }\r\n case 6:{\r\n return horizontalTileCounter | (verticalTileCounter << 5) | (horizontalNameCounter << 10) | (verticalNameCounter << 11);\r\n }\r\n */\r\n\t\t\tcase 0: {\r\n\t\t\t\t\t\treturn scanLine;\r\n\t\t\t\t\t\t// hack\r\n\t\t\t}\r\n case 1: {\r\n return registers_w[CONTROL_REGISTER_2];\r\n }\r\n case STATUS_REGISTER:{ // 2\r\n int returnVal = registers_r[STATUS_REGISTER];\r\n registers_r[STATUS_REGISTER] = getBitsUnset(registers_r[STATUS_REGISTER], STATUS_VBLANK); //| STATUS_SPRITE0_HIT);\r\n isFirstWriteToScroll = true;\r\n lastPPUAddressWasHigh = false;\r\n //logger.info(\"Status is: \" + Integer.toHexString(returnVal));\r\n return returnVal;\r\n }\r\n case SPRITE_MEMORY_DATA:{ // 4\r\n return readFromSpriteMemory();\r\n }\r\n case PPU_MEMORY_DATA:{ // 7\r\n int returnVal = 0xFF & registers_r[PPU_MEMORY_DATA]; // buffered read\r\n \r\n //int returnVal = 0xFF & memory.read(ppuMemoryAddress);\r\n\t\t\tint readAddress = horizontalTileCounter \r\n\t\t\t\t\t\t\t\t| (verticalTileCounter << 5)\r\n\t\t\t\t\t\t\t\t| (horizontalNameCounter << 10)\r\n\t\t\t\t\t\t\t\t| (verticalNameCounter << 11)\r\n\t\t\t\t\t\t\t\t| ((fineVerticalCounter & 0x3) << 12);\r\n\r\n\t\t\tif (readAddress == 0x3F10 || readAddress == 0x3F14 || readAddress == 0x3F18 || readAddress == 0x3F1C) {\r\n\t\t\t\treadAddress = readAddress & 0x3F0F;\r\n\t\t\t}\r\n registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(readAddress);\r\n // registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(ppuMemoryAddress);\r\n incrementCounters();\r\n /*\r\n if ((registers_w[CONTROL_REGISTER_1] & CR1_VERTICAL_WRITE) == 0){\r\n ppuMemoryAddress++;\r\n }\r\n else {\r\n ppuMemoryAddress = (ppuMemoryAddress + 32);\r\n }\r\n */\r\n return returnVal;\r\n }\r\n\r\n default: throw new RuntimeException(\"Invalid read attempt: \" + Integer.toHexString(address));\r\n }\r\n }", "String read();", "String read();", "public byte[] getData()\r\n/* 38: */ {\r\n/* 39: 98 */ byte[] data = new byte[18];\r\n/* 40: */ \r\n/* 41:100 */ int options = 0;\r\n/* 42:102 */ if (this.promptBoxVisible) {\r\n/* 43:104 */ options |= PROMPT_BOX_VISIBLE_MASK;\r\n/* 44: */ }\r\n/* 45:107 */ if (this.promptBoxAtCell) {\r\n/* 46:109 */ options |= PROMPT_BOX_AT_CELL_MASK;\r\n/* 47: */ }\r\n/* 48:112 */ if (this.validityDataCached) {\r\n/* 49:114 */ options |= VALIDITY_DATA_CACHED_MASK;\r\n/* 50: */ }\r\n/* 51:117 */ IntegerHelper.getTwoBytes(options, data, 0);\r\n/* 52: */ \r\n/* 53:119 */ IntegerHelper.getFourBytes(this.objectId, data, 10);\r\n/* 54: */ \r\n/* 55:121 */ IntegerHelper.getFourBytes(this.numDVRecords, data, 14);\r\n/* 56: */ \r\n/* 57:123 */ return data;\r\n/* 58: */ }", "public String getRecord(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\treturn dataBase.readLine();\n\t}", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "byte[] getData() {\n return data;\n }", "private void readBytes() {\n byte[] emgBytes = new byte[EMG_BYTE_BUFFER];\n\n while(running) {\n try {\n // Wait until a complete set of data is ready on the socket. The\n while (running && emgSock.getInputStream().available() < EMG_BYTE_BUFFER) {\n Thread.sleep(50);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Read a complete group of multiplexed samples\n emgSock.getInputStream().read(emgBytes, 0, EMG_BYTE_BUFFER);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n synchronized (this) {\n // Demultiplex, parse the byte array, and add the appropriate samples to the history buffer.\n\n for (int i = 0; i < EMG_BYTE_BUFFER / 4; i++) {\n if (i % 16 == (m1.getSensorNr()-1)) {\n float f = ByteBuffer.wrap(emgBytes, 4 * i, 4).getFloat();\n emgHistory.add(f * 1000); // convert V -> mV\n } else if (i % 16 == (m2.getSensorNr()-1)) {\n float f = ByteBuffer.wrap(emgBytes, 4 * i, 4).getFloat();\n emgHistory2.add(f * 1000); // convert V -> mV\n }\n }\n }\n\n // If there is no touch zoom action in progress, update the plots with the newly acquired data.\n if (mode == NONE && running) {\n runOnUiThread(new Runnable() {\n public void run() {\n UpdatePlots();\n }\n });\n }\n }\n }", "public byte[] getData() {\n return data;\n }", "public E getData() {\r\n\t\treturn data;\r\n\t}", "protected abstract byte[] getTemperatureSetting2();", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "public ESPDevice getEspDevice() {\n return espDevice;\n }", "public E getData(){\n\t\t\treturn data;\n\t\t}", "public Object getCharacteristic(String name) throws DataExchangeException;", "private VmDevice readVmDevice(XmlNode node, Guid deviceId) {\n VmDevice vmDevice = new VmDevice();\n vmDevice.setId(new VmDeviceId(deviceId, vmBase.getId()));\n if (node.SelectSingleNode(OvfProperties.VMD_ADDRESS, _xmlNS) != null\n && !StringUtils.isEmpty(node.SelectSingleNode(OvfProperties.VMD_ADDRESS, _xmlNS).innerText)) {\n vmDevice.setAddress(String.valueOf(node.SelectSingleNode(OvfProperties.VMD_ADDRESS, _xmlNS).innerText));\n } else {\n vmDevice.setAddress(\"\");\n }\n if (node.SelectSingleNode(OvfProperties.VMD_ALIAS, _xmlNS) != null\n && !StringUtils.isEmpty(node.SelectSingleNode(OvfProperties.VMD_ALIAS, _xmlNS).innerText)) {\n vmDevice.setAlias(String.valueOf(node.SelectSingleNode(OvfProperties.VMD_ALIAS, _xmlNS).innerText));\n } else {\n vmDevice.setAlias(\"\");\n }\n XmlNode specParamsNode = node.SelectSingleNode(OvfProperties.VMD_SPEC_PARAMS, _xmlNS);\n if (specParamsNode != null\n && !StringUtils.isEmpty(specParamsNode.innerText)) {\n vmDevice.setSpecParams(getMapNode(specParamsNode));\n } else {\n // Empty map\n vmDevice.setSpecParams(Collections.<String, Object>emptyMap());\n }\n if (node.SelectSingleNode(OvfProperties.VMD_TYPE, _xmlNS) != null\n && !StringUtils.isEmpty(node.SelectSingleNode(OvfProperties.VMD_TYPE, _xmlNS).innerText)) {\n vmDevice.setType(VmDeviceGeneralType.forValue(String.valueOf(node.SelectSingleNode(OvfProperties.VMD_TYPE, _xmlNS).innerText)));\n } else {\n int resourceType = getResourceType(node, OvfProperties.VMD_RESOURCE_TYPE);\n vmDevice.setType(VmDeviceGeneralType.forValue(VmDeviceType.getoVirtDevice(resourceType)));\n }\n if (node.SelectSingleNode(OvfProperties.VMD_DEVICE, _xmlNS) != null\n && !StringUtils.isEmpty(node.SelectSingleNode(OvfProperties.VMD_DEVICE, _xmlNS).innerText)) {\n vmDevice.setDevice(String.valueOf(node.SelectSingleNode(OvfProperties.VMD_DEVICE, _xmlNS).innerText));\n } else {\n setDeviceByResource(node, vmDevice);\n }\n if (node.SelectSingleNode(OvfProperties.VMD_BOOT_ORDER, _xmlNS) != null\n && !StringUtils.isEmpty(node.SelectSingleNode(OvfProperties.VMD_BOOT_ORDER, _xmlNS).innerText)) {\n vmDevice.setBootOrder(Integer.valueOf(node.SelectSingleNode(OvfProperties.VMD_BOOT_ORDER, _xmlNS).innerText));\n } else {\n vmDevice.setBootOrder(0);\n }\n if (node.SelectSingleNode(OvfProperties.VMD_IS_PLUGGED, _xmlNS) != null\n && !StringUtils.isEmpty(node.SelectSingleNode(OvfProperties.VMD_IS_PLUGGED, _xmlNS).innerText)) {\n vmDevice.setIsPlugged(Boolean.valueOf(node.SelectSingleNode(OvfProperties.VMD_IS_PLUGGED, _xmlNS).innerText));\n } else {\n vmDevice.setIsPlugged(Boolean.TRUE);\n }\n if (node.SelectSingleNode(OvfProperties.VMD_IS_READONLY, _xmlNS) != null\n && !StringUtils.isEmpty(node.SelectSingleNode(OvfProperties.VMD_IS_READONLY, _xmlNS).innerText)) {\n vmDevice.setIsReadOnly(Boolean.valueOf(node.SelectSingleNode(OvfProperties.VMD_IS_READONLY, _xmlNS).innerText));\n } else {\n vmDevice.setIsReadOnly(Boolean.FALSE);\n }\n if (node.SelectSingleNode(OvfProperties.VMD_CUSTOM_PROP, _xmlNS) != null\n && StringUtils.isNotEmpty(node.SelectSingleNode(OvfProperties.VMD_CUSTOM_PROP, _xmlNS).innerText)) {\n vmDevice.setCustomProperties(DevicePropertiesUtils.getInstance().convertProperties(\n String.valueOf(node.SelectSingleNode(OvfProperties.VMD_CUSTOM_PROP, _xmlNS).innerText)));\n } else {\n vmDevice.setCustomProperties(null);\n }\n\n if (node.SelectSingleNode(OvfProperties.VMD_SNAPSHOT_PROP, _xmlNS) != null\n && StringUtils.isNotEmpty(node.SelectSingleNode(OvfProperties.VMD_SNAPSHOT_PROP, _xmlNS).innerText)) {\n vmDevice.setSnapshotId(new Guid(String.valueOf(node.SelectSingleNode(OvfProperties.VMD_CUSTOM_PROP, _xmlNS).innerText)));\n }\n\n return vmDevice;\n }" ]
[ "0.6577507", "0.63782096", "0.628396", "0.5964712", "0.58208483", "0.5775492", "0.56763643", "0.5634964", "0.54897887", "0.54639137", "0.54241025", "0.5407415", "0.53839755", "0.53716004", "0.536651", "0.53367424", "0.5334495", "0.5268246", "0.5262497", "0.5257379", "0.52378976", "0.5233323", "0.5233323", "0.5233323", "0.5233323", "0.52257323", "0.5203178", "0.5184532", "0.5169891", "0.5148542", "0.51457417", "0.51243037", "0.51127195", "0.5107365", "0.5083079", "0.50792104", "0.50782627", "0.5075264", "0.5066931", "0.5063202", "0.5047934", "0.5044101", "0.5039224", "0.5029816", "0.50087214", "0.5007993", "0.4974326", "0.4959468", "0.49551356", "0.49429542", "0.4942522", "0.49408874", "0.49405903", "0.49401212", "0.49262533", "0.49082208", "0.49064413", "0.48998505", "0.48918027", "0.48909354", "0.48770684", "0.48615342", "0.4844418", "0.4843838", "0.48414904", "0.48412234", "0.4836348", "0.48189244", "0.48185632", "0.4817159", "0.4811803", "0.48072657", "0.48058605", "0.4792927", "0.47917485", "0.47896817", "0.47833562", "0.47826526", "0.47795838", "0.47784474", "0.47681248", "0.47657955", "0.47652993", "0.4761054", "0.47441548", "0.47385237", "0.47385237", "0.47381824", "0.4731555", "0.4725185", "0.4724895", "0.47243953", "0.4722931", "0.47095707", "0.4705164", "0.47036248", "0.47029763", "0.47008094", "0.4696517", "0.4693337" ]
0.7710861
0
Read X series device EEPROM data Check D2xx Programmer's Guide Appendix A for details
public EepromX readEEPROM_X() throws FTD2XXException { EepromX eeprom = new EepromX(); Memory manufacturer = new Memory(64); Memory manufacturerId = new Memory(64); Memory description = new Memory(64); Memory serialNumber = new Memory(64); Memory mem = new Memory(56); mem.setInt(0, 9); ensureFTStatus(ftd2xx .FT_EEPROM_Read(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), manufacturer, manufacturerId, description, serialNumber)); eeprom.setManufacturer(manufacturer.getString(0)); eeprom.setManufacturerId(manufacturerId.getString(0)); devDescription = description.getString(0); eeprom.setDescription(devDescription); devSerialNumber = serialNumber.getString(0); eeprom.setSerialNumber(devSerialNumber); return eeprom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EEPROMData readEEPROM() throws FTD2XXException {\n FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference();\n ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference));\n return new EEPROMData(ftByReference);\n }", "public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException {\n String manufacturer = eeprom.getManufacturer();\n Memory mManufacturer = new Memory(manufacturer.length() + 1);\n mManufacturer.setString(0, manufacturer);\n\n String manufacturerId = eeprom.getManufacturerId();\n Memory mManufacturerId = new Memory(manufacturerId.length() + 1);\n mManufacturerId.setString(0, manufacturerId);\n\n String description = eeprom.getDescription();\n Memory mDescription = new Memory(description.length() + 1);\n mDescription.setString(0, description);\n\n String serialNumber = eeprom.getSerialNumber();\n Memory mSerialNumber = new Memory(serialNumber.length() + 1);\n mSerialNumber.setString(0, serialNumber);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId,\n mDescription, mSerialNumber));\n\n devSerialNumber = serialNumber;\n devDescription = description;\n }", "public byte[] readFullEEPROMUserArea() throws FTD2XXException {\n int numberOfBytes = getEEPROMUserAreaSize();\n return readEEPROMUserArea(numberOfBytes);\n }", "@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 byte[] readEEPROMUserArea(int numberOfBytes) throws FTD2XXException {\n IntByReference actually = new IntByReference();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getByteArray(0, actually.getValue());\n }", "private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "public String readFullEEPROMUserAreaAsString() throws IOException {\n IntByReference actually = new IntByReference();\n int numberOfBytes = getEEPROMUserAreaSize();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getString(0);\n }", "public abstract byte[] readData(int address, int length);", "private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public byte[] read()\n {\n\t\t//byte[] responseData = ISOUtil.hex2byte(\"070088888888\");\n\t\tbyte[] responseData = null;\n try\n {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tlong end = System.currentTimeMillis();\n\n\t\t\t\twhile ((end - start) < 45000)\n\t\t\t\t{\n System.out.println(\"++++++ If parameters : read() : \"+inputdata+\" : \"+dataRec);\n\t\t\t\t\tif (inputdata != null && dataRec)\n\t\t\t\t\t{\n System.out.println(\"INSIDE IF -read()\");\n\t\t\t\t\t\tresponseData = ISOUtil.hex2byte(inputdata);\n\t\t\t\t\t\tdataRec=false;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else\n\t\t\t\t\t{\n System.out.println(\"INSIDE else -read()\");\n\t\t\t\t\t\tend = System.currentTimeMillis();\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t}\n\t\t\t\t}\n\n }\n catch(Exception e)\n {\n System.err.println(\"ConnectionHandlerLocal$WriterThread.run(): Interrupted!\");\n ezlink.info(\"SerialConnection : read() - Exception: \");\n ezlink.error(new Object(), e);\n }\n finally\n\t\t{\n\t\t\tSystem.out.println(\"&&&&&&&&&& In Finally... &&&&&&&\");\n ezlink.info(\"&&&&&&&&&& In Finally... &&&&&&& \");\n\t\t\tdataHandler.strISODump.setLength(0);\n\t\t\tif(sPort!=null)\n\t\t\t{\n\t\t\t\tsPort.close();\n\t\t\t\tSystem.out.println(\"Port Closed\");\n ezlink.info(\"&&&&&&&&&& Port Closed... &&&&&&& \");\n\t\t\t}\n\t \t}\n\n\t \tSystem.out.println(\"inside read() : ReadData=\"+new String(responseData));\n ezlink.info(\"ReadData= : \"+new String(responseData));\n\n return responseData;\n }", "public String[] getDataReadCmd() {\n\t\tif(mode == null) {\r\n\t\t\tconsole.logError(\"No mode selected\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString path = sv.getModeFunction(mode, \"dataRead\");\t\t//Get mode's data read script path\r\n\t\tif(path == null || comPort == null) {\r\n\t\t\tconsole.logError(\"Error creating data read command.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString cmd[] = {\r\n\t\t\t\t\"python\",\r\n\t\t\t\tpath,\r\n\t\t\t\t\"-c\",\r\n\t\t\t\tcomPort,\r\n\t\t\t\t\"-f\",\r\n\t\t\t\tfilepath,\r\n\t\t\t\t\"-w\",\r\n\t\t\t\twriteAddress,\r\n\t\t\t\t\"-r\",\r\n\t\t\t\treadAddress,\r\n\t\t\t\t\"-h\",\r\n\t\t\t\thighAddress,\r\n\t\t\t\t\"-l\",\r\n\t\t\t\tlowAddress,\r\n\t\t\t\t\"-s\",\r\n\t\t\t\tsize\r\n\t\t};\r\n\t\treturn cmd;\r\n\t}", "private void organizeEEPROM() {\n\t \n \n\t //put red, green, blue, and activitity values into r, g, b, and a\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t r[(i)/8] = 256*EEPROM[i] + EEPROM[i + 1];\n\t\t g[(i)/8] = 256*EEPROM[i + 2] + EEPROM[i + 3];\n\t\t b[(i)/8] = 256*EEPROM[i + 4] + EEPROM[i + 5];\n\t\t a[(i)/8] = 256*EEPROM[i + 6] + EEPROM[i + 7];\n \n\t\t //set resets to zero by default\n\t\t if((r[(i)/8] == 65278) && (b[(i)/8] == 65278) && (g[i/8] == 0)) {\n\t\t\t r[(i)/8] = 0;\n\t\t\t g[(i)/8] = 0;\n\t\t\t b[(i)/8] = 0;\n\t\t\t a[(i)/8] = 0;\n\t\t }\n\t }\n \n\t //get end of address\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t if((EEPROM[i] == 255) && (EEPROM[i + 1] == 255)) {\n\t\t\t endaddress = i/8;\n\t\t\t break;\n\t\t }\n\t }\n\t if(isnew) {\n\t\t ID = Integer.parseInt(asciiheader[8]);\n\t\t mm = Integer.parseInt(asciiheader[7].substring(0, 2));\n\t\t dd = Integer.parseInt(asciiheader[7].substring(3, 5));\n\t\t yy = Integer.parseInt(asciiheader[7].substring(6, 8));\n\t\t HH = Integer.parseInt(asciiheader[7].substring(9, 11));\n\t\t MM = Integer.parseInt(asciiheader[7].substring(12, 14));\n\t\t period = Integer.parseInt(asciiheader[3]);\n\t\t\t\t \n\t\t if(isUTC) {\n\t\t\t offset = Calendar.get(Calendar.DST_OFFSET) / 3600000;\n\t\t\t //apply offset, but if offset rolls us into a new day, we need to account for that\n\t\t\t if (HH + offset > 23) {\n\t\t\t\t dd += 1;\n\t\t\t\t HH = (HH + offset) % 24;\n\t\t\t\t //if our new day rolls us into a new month, account for that\n\t\t\t\t //30 days have September, April, June, and November\n\t\t\t\t if(dd > 30 && (mm == 9 || mm == 4 || mm == 6 || mm == 11)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //All the rest have 31, except for February who is a fuckwad.\n\t\t\t\t else if (dd > 31 && !(mm == 9 || mm == 4 || mm == 6 || mm == 11 || mm == 2)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and not a leap year\n\t\t\t\t else if (dd > 28 && (yy%4 != 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and a leap year\n\t\t\t\t else if (dd > 29 && (yy%4 == 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //Did we rollover our year doing this?\n\t\t\t\t if (mm > 12) {\n\t\t\t\t\t mm = 1;\n\t\t\t\t\t yy += 1;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t else {\n\t\t\t\t HH = HH + offset;\n\t\t\t }\n\t\t }\n\t }\n\t else {\n\t\t ID = (header[3] - 48)*1000 + (header[4] - 48)*100 + (header[5] - 48)*10 + (header[6] - 48);\n\t\t mm = (header[9] - 48)*10 + (header[10] - 48);\n\t\t dd = (header[12] - 48)*10 + (header[13] - 48);\n\t\t yy = (header[15] - 48)*10 + (header[16] - 48);\n\t\t HH = (header[18] - 48)*10 + (header[19] - 48);\n\t\t MM = (header[21] - 48)*10 + (header[22] - 48);\n\t\t period = (header[25] - 48)*100 + (header[26] - 48)*10 + (header[27] - 48);\n\t }\n \t}", "public byte[] __ReadRecord(byte recNo, byte Len) throws CardException {\n byte[] read_record_bytes = new byte[5];\n\n read_record_bytes[0] = (byte) 0x80;\n read_record_bytes[1] = (byte) 0xB2;\n read_record_bytes[2] = recNo;\n read_record_bytes[3] = (byte) 0x00;\n read_record_bytes[4] = Len;\n\n this.resp = this.ch.transmit(new CommandAPDU(read_record_bytes));\n\n if ((this.LAST_STATUS_CODE = this.resp.getSW()) == 0x9000) {\n /*System.out.print(\"Record Reading: \");\n\n for (byte bb : this.resp.getData())\n {\n System.out.print(\" \"+ Integer.toHexString(bb));\n }\n System.out.println(\" -->> OK\"); */\n return this.resp.getData();\n } else {\n //System.out.println(\"Record Reading -->> ERROR\");\n return null;\n }\n }", "public int energy_consumed_GET()\n { return (int)((int) get_bytes(data, 29, 4)); }", "public int read() throws FTD2XXException {\n byte[] c = new byte[1];\n int ret = read(c);\n return (ret == 1) ? (c[0] & 0xFF) : -1;\n }", "native byte[] _readSerialPort(int port);", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "public int read(byte[] bytes) throws FTD2XXException {\n return read(bytes, 0, bytes.length);\n }", "public byte[] ReadRecord(byte recNo, byte Len) throws CardException {\n byte[] read_record_bytes = new byte[5];\n\n read_record_bytes[0] = (byte) 0x80;\n read_record_bytes[1] = (byte) 0xB2;\n read_record_bytes[2] = recNo;\n read_record_bytes[3] = (byte) 0x00;\n read_record_bytes[4] = Len;\n\n this.resp = this.ch.transmit(new CommandAPDU(read_record_bytes));\n\n if ((this.LAST_STATUS_CODE = this.resp.getSW()) == 0x9000) {\n System.out.print(\"Record Reading: \");\n\n for (byte bb : this.resp.getData()) {\n System.out.print(\" \" + Integer.toHexString(bb));\n }\n System.out.println(\" -->> OK\");\n return this.resp.getData();\n } else {\n System.out.println(\"Record Reading -->> ERROR\");\n return null;\n }\n }", "public void read() {\r\n\t\tbusExt.put(data);\r\n\t}", "public void read(IORequest request) throws MemoryFault {\n setBaseLimit();\n // sets what we need to be able to read\n int deviceNumber = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc);\n int platter = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 1);\n int platStart = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 2);\n int datasize = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 3);\n int memLoc = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 4) + Process_Table[request.prognum].base;\n// System.out.println(deviceNumber+\"device\");\n// System.out.println(platter+\"plat\");\n// System.out.println(platStart+\"Start\");\n// System.out.println(datasize+\"data\");\n// System.out.println(memLoc+\"mem\");\n\n Process_Table[currentProcess].status = ProcessState.waiting;\n\n machine.devices[deviceNumber].controlRegister.register[0] = DeviceControllerOperations.READ;\n machine.devices[deviceNumber].controlRegister.register[1] = platter;\n machine.devices[deviceNumber].controlRegister.register[2] = platStart;\n machine.devices[deviceNumber].controlRegister.register[3] = datasize;\n machine.devices[deviceNumber].controlRegister.latch();\n for (int i = 0; i < datasize; i++) {\n machine.memory.store(i + memLoc, machine.devices[deviceNumber].buffer[i]);\n\n }\n //System.out.println(waitQ[Machine.DISK1].size() + \" READ\");\n // initiate the latch\n\n }", "private void getCardData(APDU apdu, byte[] buffer) \r\n \t //@ requires [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// check P1 and P2\r\n\t\tif (buffer[ISO7816.OFFSET_P1] != (byte) 0x00 || buffer[ISO7816.OFFSET_P2] != (byte) 0x00)\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tapdu.setOutgoing();\r\n\t\t\r\n\t\t////@ open [1/2]valid();\r\n\t\t\t\t\t\t\t\t\r\n\t\tbyte[] data = identityFile.getData(); \r\n\t\t// Only the chip number is of importance: get this at tag position 2\r\n\t\tshort pos = 1;\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, ?identityFileData, _, _, ?info); // todo (integrate with array_element search)\r\n\t\tshort dataLen = (short) data[pos];\r\n\t\tpos = (short) (pos + 1 + dataLen + 1);\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\tif (dataLen <= 0 || dataLen + pos + 2 >= identityFile.getCurrentSize())\r\n\t\t\tISOException.throwIt(ISO7816.SW_DATA_INVALID);\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info);\r\n\t\tdataLen = (short) data[pos];\r\n\t\tpos = (short) (pos + 1);\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\tif (dataLen < 0 || pos + dataLen >= identityFile.getCurrentSize())\r\n\t\t\tISOException.throwIt(ISO7816.SW_DATA_INVALID);\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info);\r\n\t\t// check Le\r\n\t\t// if (le != dataLen)\r\n\t\t// ISOException.throwIt((short)(ISO7816.SW_WRONG_LENGTH));\r\n\t\t/*VF*byte version[] = { (byte) 0xA5, (byte) 0x03, (byte) 0x01, (byte) 0x01, (byte) 0x01, (byte) 0x11, (byte) 0x00, (byte) 0x02, (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x0F };*/\r\n\t\tbyte version[] = new byte[] { (byte) 0xA5, (byte) 0x03, (byte) 0x01, (byte) 0x01, (byte) 0x01, (byte) 0x11, (byte) 0x00, (byte) 0x02, (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x0F };\r\n\t\tbyte chipNumber[] = new byte[(short) (dataLen + 12)];\r\n\t\tUtil.arrayCopy(data, pos, chipNumber, (short) 0, dataLen);\r\n\t\tUtil.arrayCopy(version, (short) 0, chipNumber, dataLen, (short) 12);\r\n\t\t// //Set serial number\r\n\t\t// Util.arrayCopy(tokenInfo.getData(), (short) 7, tempBuffer, (short) 0,\r\n\t\t// (short) 16);\r\n\t\t//\t\t\r\n\t\t// //Set component code: TODO\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set OS number: TODO\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set OS version: TODO\r\n\t\t// JCSystem.getVersion();\r\n\t\t//\t\t\r\n\t\t// //Set softmask number: TODO\r\n\t\t//\t\t\r\n\t\t// //Set softmask version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set applet version: TODO : 4 bytes in file system\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set Interface version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set PKCS#15 version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set applet life cycle\r\n\t\t// tempBuffer[(short)(le-1)] = GPSystem.getCardState();\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength((short) chipNumber.length);\r\n\t\t// send content of buffer in apdu\r\n\t\tapdu.sendBytesLong(chipNumber, (short) 0, (short) chipNumber.length);\r\n\t\t\t\t\t\t\t\t\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}", "protected Object readUnknownData() throws IOException {\r\n byte[] bytesValue;\r\n Byte[] bytesV;\r\n Preferences.debug(\"Unknown data; length is \" + elementLength + \" fp = \" + getFilePointer() + \"\\n\", 2);\r\n\r\n if (elementLength <= 0) {\r\n Preferences.debug(\"Unknown data; Error length is \" + elementLength + \"!!!!!\\n\", 2);\r\n\r\n return null;\r\n }\r\n\r\n bytesValue = new byte[elementLength];\r\n read(bytesValue);\r\n bytesV = new Byte[elementLength];\r\n\r\n for (int k = 0; k < bytesValue.length; k++) {\r\n bytesV[k] = new Byte(bytesValue[k]);\r\n }\r\n\r\n return bytesV;\r\n }", "public Device readFromDeviceFile(String fileName, String address) {\n\n Element eElement = null;\n File file = new File(SifebUtil.DEV_FILE_DIR + fileName + \".xml\");\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Device\");\n Node nNode = nList.item(0);\n eElement = (Element) nNode;\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n return getDevFromElement(eElement, address);\n }", "private String readStringUntil0x() throws IOException {\n String thisLine = \"\";\n int ch;\n while ((ch = ins.read()) != -1) {\n if (ch != 0x0) {\n thisLine = thisLine + String.valueOf((char) ch);\n } else {\n break;\n }\n }\n return thisLine;\n }", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public void read(Event evt){\n evt.read(bank); \n this.notifyRead();\n }", "public void readSerial() {\r\n rightShoe.getSerialReader().stopRead();\r\n leftShoe.getSerialReader().stopRead();\r\n rightShoe.getSerialReader().closePort();\r\n leftShoe.getSerialReader().closePort();\r\n timeController.initializeSerial();\r\n }", "byte[] readBytes();", "private void readBytes() {\n byte[] emgBytes = new byte[EMG_BYTE_BUFFER];\n\n while(running) {\n try {\n // Wait until a complete set of data is ready on the socket. The\n while (running && emgSock.getInputStream().available() < EMG_BYTE_BUFFER) {\n Thread.sleep(50);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Read a complete group of multiplexed samples\n emgSock.getInputStream().read(emgBytes, 0, EMG_BYTE_BUFFER);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n synchronized (this) {\n // Demultiplex, parse the byte array, and add the appropriate samples to the history buffer.\n\n for (int i = 0; i < EMG_BYTE_BUFFER / 4; i++) {\n if (i % 16 == (m1.getSensorNr()-1)) {\n float f = ByteBuffer.wrap(emgBytes, 4 * i, 4).getFloat();\n emgHistory.add(f * 1000); // convert V -> mV\n } else if (i % 16 == (m2.getSensorNr()-1)) {\n float f = ByteBuffer.wrap(emgBytes, 4 * i, 4).getFloat();\n emgHistory2.add(f * 1000); // convert V -> mV\n }\n }\n }\n\n // If there is no touch zoom action in progress, update the plots with the newly acquired data.\n if (mode == NONE && running) {\n runOnUiThread(new Runnable() {\n public void run() {\n UpdatePlots();\n }\n });\n }\n }\n }", "static void take_memory_values() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\t\tString input = scan.readLine();\n\t\tif(input.equals(\"N\"))\n\t\t\treturn;\n\t\taddress = hexa_to_deci(input);\n\t\tprint_the_address(address);\n\t\tinput = scan.readLine();\n\t\tif(input.length()==2)\n\t\t\tmemory.put(address,input);\n\t\telse{\n\t\t\tmemory.put(address,input.substring(2));\n\t\t\tmemory.put(address+1,input.substring(0,2));\n\t\t}\n\t\t//System.out.println(address+\" \"+memory.get(address));\n\t\ttake_memory_values();\n\t}", "@Override\n protected int readDataBlock(byte[] readData) throws IOException {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if(serialDriver == null)\n throw new IOException(\"Device is unavailable.\");\n\n int iavailable = 0;\n try {\n iavailable = serialDriver.read(readData, 200);\n } catch (NullPointerException e) {\n final String errorMsg = \"Error Reading: \" + e.getMessage()\n + \"\\nAssuming inaccessible USB device. Closing connection.\";\n Log.e(TAG, errorMsg, e);\n throw new IOException(errorMsg, e);\n }\n\n if (iavailable == 0)\n iavailable = -1;\n return iavailable;\n }", "public byte[] read();", "void writeEeprom(ImuEepromWriter sensor, int scaleNo, short[] data);", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "public void printMEM_Read(){\r\n\t\tSystem.out.println(\"****EX/MEM Read: ****\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"M Control Bits: \" + \r\n\t\t\t\tBranch + \"\" + MemRead + \"\" + MemWrite);\r\n\t\tSystem.out.println(\"WB Control Bits:\" +WBBits);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"ALUresult: 0x\" + Integer.toHexString(read_ALUresult));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"SBValue: 0x\" + Integer.toHexString(SBVal));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"WriteRegNum: \" + writeRegVal);\r\n\r\n\r\n\t\t\r\n\t}", "private void readBinary(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// check if access to this file is allowed\r\n\t\tif (!fileAccessAllowed(READ_BINARY))\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t// use P1 and P2 as offset\r\n\t\tshort offset = Util.makeShort(buffer[ISO7816.OFFSET_P1], buffer[ISO7816.OFFSET_P2]);\r\n\t\tif (offset < 0)\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tshort le = apdu.setOutgoing();\r\n\t\t// impossible to start reading from offset large than size of file\t\t\t\t\r\n\t\tif (selectedFile == masterFile)\r\n\t\t\tISOException.throwIt(ISO7816.SW_FILE_INVALID); //~allow_dead_code Dead because fileAccessAllowed() checks that selectedFile instanceof ElementaryFile and masterFile is not an ElementaryFile.\r\n\t\t//@ open selected_file_types(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);\r\n\t\tshort size = ((ElementaryFile) selectedFile).getCurrentSize();\r\n\t\tif (offset > size)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t// number of bytes in file starting from offset\r\n\t\tshort remaining = (short) (size - offset);\r\n\t\tif (le == 0) {\r\n\t\t\tif (remaining < 256) {\r\n\t\t\t\t// wrong Le field\r\n\t\t\t\t// SW2 encodes the exact number of available data bytes\r\n\t\t\t\tshort sw = (short) (ISO7816.SW_CORRECT_LENGTH_00 | remaining);\r\n\t\t\t\tISOException.throwIt(sw);\r\n\t\t\t} else\r\n\t\t\t\t// Le = 0 is interpreted as 256 bytes\r\n\t\t\t\tle = 256;\r\n\t\t}\r\n\t\t// only read out the remaining bytes\r\n\t\tif (le > remaining) {\r\n\t\t\tle = remaining;\r\n\t\t}\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength(le);\r\n\t\t// write selected file in APDU\r\n\t\t//VF bug; was apdu.sendBytesLong(((ElementaryFile) selectedFile).getData(), offset, le);\r\n\t\t//VF probleem: originele lijn was apdu.sendBytesLong(ef.getData(), offset, le);\r\n\t\t// het probleem hiermee is dat de getData()-methode een ElementaryFile nodig heeft, en dat\r\n\t\t// sendBytesLong vereist dat het resultaat niet null is. De niet-null vereiste zit geencodeerd\r\n\t\t// in ElementaryFile, dus als je dat predicaat opent, dan weet VF dat de data niet-null is, maar\r\n\t\t// dan werkt de call op getData niet. Als je de ElementaryFile gesloten laat, dan lukt de call naar\r\n\t\t// getData, maar weet je niet dat het niet-null is.\r\n\t\tElementaryFile ef = (ElementaryFile)selectedFile;\r\n\t\tbyte[] bf = ef.getData();\r\n\t\t//@ open [1/2]ef.ElementaryFile(?d1, ?d2, ?d3, ?d4, ?d5, ?info); // hard to eliminate\r\n\t\tapdu.sendBytesLong(bf, offset, le);\r\n\t\t////@ close [1/2]ef.ElementaryFile(d1, d2, d3, d4, d5, info); // auto\r\n\t\t////@ close [1/2]valid(); // auto\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 }", "public int read(byte[] bytes, int offset, int lenght) throws FTD2XXException {\n Memory memory = new Memory(lenght);\n IntByReference read = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_Read(ftHandle, memory, lenght, read));\n\n memory.read(0, bytes, offset, lenght);\n\n return read.getValue();\n }", "public void serialEvent(SerialPortEvent e)\n {\n System.out.println(\"+++SERIAL EVENT TYPE ++++++++++++++++ : \"+e.getEventType());\n ezlink.info(\"serialEvent() received in \" + SerialConnection.class.getName());\n \t// Create a StringBuffer and int to receive input data.\n\tStringBuffer inputBuffer = new StringBuffer();\n\tint newData = 0;\n\n\t// Determine type of event.\n\tswitch (e.getEventType())\n\t{\n\n\t // Read data until -1 is returned. If \\r is received substitute\n\t // \\n for correct newline handling.\n\t case SerialPortEvent.DATA_AVAILABLE:\n\t byte[] readBuffer = new byte[500];\n\t\tint numBytes = 0;\n\t\tinputdata = null;\n\n\t\ttry {\n\t\t\t\tSystem.out.println(\"Data Received from com Port=\"+is.available());\n ezlink.info(\"Data Received from com Port= \" +is.available() );\n\n\t\t\t\twhile (is.available() > 0)\n\t\t\t\t{\n\t\t\t\t\tnumBytes = is.read(readBuffer);\n\t\t\t\t\tdataHandler.addISOPart(ISOUtil.hexString(readBuffer,0,numBytes));\n\n\t\t\t\t}\n\n\n\t\t\t\tString strResponse=null;\n\t\t\t\tif((strResponse = dataHandler.getNextISO(1)) !=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Response=\"+strResponse);\n ezlink.info(\"Response= : \" +strResponse );\n\t\t\t\t\tinputdata = strResponse;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Full data not received from terminal\");\n ezlink.info(\"ull data not received from terminal!! \" );\n\t\t\t\t}\n\n\t\t\t\tdataRec =true;\n\n\t\t} catch (IOException exp) {\n System.out.println(\"serialEvent Exception(): \");\n exp.printStackTrace();\n System.out.println(\"serialEvent Exception(): \");\n ezlink.info(\"serialEvent Exception(): \");\n ezlink.error(new Object(), exp);\n }\n\n\t\tbreak;\n\n\t // If break event append BREAK RECEIVED message.\n\t case SerialPortEvent.BI:\n\t\tSystem.out.println(\"\\n--- BREAK RECEIVED ---\\n\");\n ezlink.info(\"\\n--- BREAK RECEIVED ---\\n \" );\n\t}\n\n }", "public void processMemory()\n {\n try{\n String memory = oReader.readLine();\n int index = 0;\n //adding mememory to and array\n for(int i = 0; i<memory.length()-2; i+=2)\n {\n String hexbyte = memory.substring(i, i+2); //get the byt ein hex\n mem.addEntry(\"0x\"+hexbyte, index, 1);\n index++;\n }\n } catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "private void readLedCharacteristic() {\n if (!BLEService.existBluetoothAdapter() || !BLEService.existBluetoothGatt()) {\n Log.w(TAG, \"BluetoothAdapter not initialized\");\n return;\n }\n BLEService.genericReadCharacteristic(mLedCharacteristic);\n }", "public long readMem(int index) throws Exception{\n\t\tif(index >= 0 && index < Constants.MEM_SIZE)\n\t\t\treturn memory[index];\n\t\telse\n\t\t\tthrow new Exception(\"Illegal memory location, trying to access MEM[\"+index+\"]\");\n\t}", "public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "protected abstract byte[] getTemperatureSetting1();", "private void readNextSensor(BluetoothGatt gatt) {\n BluetoothGattCharacteristic characteristic;\n switch (mState) {\n case 0:\n Log.d(TAG, \"Reading pressure cal\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_CAL_CHAR);\n break;\n case 1:\n Log.d(TAG, \"Reading pressure\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_DATA_CHAR);\n break;\n case 2:\n Log.d(TAG, \"Reading humidity\");\n characteristic = gatt.getService(HUMIDITY_SERVICE)\n .getCharacteristic(HUMIDITY_DATA_CHAR);\n break;\n default:\n mHandler.sendEmptyMessage(MSG_DISMISS);\n Log.i(TAG, \"All Sensors Enabled\");\n return;\n }\n\n gatt.readCharacteristic(characteristic);\n }", "public byte read_user_register() throws IOException {\n return (byte) HTU21D.READ_USER_REG.read(device);\n }", "public int read(int address){\n switch (address){\r\n /*\r\n case 0: {\r\n return registers_w[CONTROL_REGISTER_1];\r\n }\r\n\r\n case 3: {\r\n return spriteMemoryCounter;\r\n }\r\n case 5:{\r\n return registers_w[SCROLL_OFFSET];\r\n }\r\n case 6:{\r\n return horizontalTileCounter | (verticalTileCounter << 5) | (horizontalNameCounter << 10) | (verticalNameCounter << 11);\r\n }\r\n */\r\n\t\t\tcase 0: {\r\n\t\t\t\t\t\treturn scanLine;\r\n\t\t\t\t\t\t// hack\r\n\t\t\t}\r\n case 1: {\r\n return registers_w[CONTROL_REGISTER_2];\r\n }\r\n case STATUS_REGISTER:{ // 2\r\n int returnVal = registers_r[STATUS_REGISTER];\r\n registers_r[STATUS_REGISTER] = getBitsUnset(registers_r[STATUS_REGISTER], STATUS_VBLANK); //| STATUS_SPRITE0_HIT);\r\n isFirstWriteToScroll = true;\r\n lastPPUAddressWasHigh = false;\r\n //logger.info(\"Status is: \" + Integer.toHexString(returnVal));\r\n return returnVal;\r\n }\r\n case SPRITE_MEMORY_DATA:{ // 4\r\n return readFromSpriteMemory();\r\n }\r\n case PPU_MEMORY_DATA:{ // 7\r\n int returnVal = 0xFF & registers_r[PPU_MEMORY_DATA]; // buffered read\r\n \r\n //int returnVal = 0xFF & memory.read(ppuMemoryAddress);\r\n\t\t\tint readAddress = horizontalTileCounter \r\n\t\t\t\t\t\t\t\t| (verticalTileCounter << 5)\r\n\t\t\t\t\t\t\t\t| (horizontalNameCounter << 10)\r\n\t\t\t\t\t\t\t\t| (verticalNameCounter << 11)\r\n\t\t\t\t\t\t\t\t| ((fineVerticalCounter & 0x3) << 12);\r\n\r\n\t\t\tif (readAddress == 0x3F10 || readAddress == 0x3F14 || readAddress == 0x3F18 || readAddress == 0x3F1C) {\r\n\t\t\t\treadAddress = readAddress & 0x3F0F;\r\n\t\t\t}\r\n registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(readAddress);\r\n // registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(ppuMemoryAddress);\r\n incrementCounters();\r\n /*\r\n if ((registers_w[CONTROL_REGISTER_1] & CR1_VERTICAL_WRITE) == 0){\r\n ppuMemoryAddress++;\r\n }\r\n else {\r\n ppuMemoryAddress = (ppuMemoryAddress + 32);\r\n }\r\n */\r\n return returnVal;\r\n }\r\n\r\n default: throw new RuntimeException(\"Invalid read attempt: \" + Integer.toHexString(address));\r\n }\r\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tupm_m24lr64e.M24LR64E nfcTag = new upm_m24lr64e.M24LR64E(0);\n\n\t\t// This example accesses the device in the 'user' (default) mode,\n\t\t// reads the last byte of data in the EEPROM, inverts it, writes\n\t\t// it back, and then re-reads it.\n\n\t\t// Read the last byte of the EEPROM area\n\t\tint addr = upm_m24lr64e.M24LR64E.EEPROM_I2C_LENGTH - 1;\n\t\tSystem.out.println(\"Address: \" + addr);\n\t\tshort read = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// Now change it to it's opposite and write it\n\t\tread = (short) (~read & 0xff);\n\t\tnfcTag.writeByte(addr, read);\n\t\tSystem.out.println(\"Wrote: \" + read);\n\n\t\t// Now read it back\n\t\tread = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// ! [Interesting]\n\t}", "public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}", "@Override\r\n\tpublic synchronized void serialEvent(SerialPortEvent oEvent) {\r\n\t\tif (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\r\n\t\t\ttry {\r\n\t\t\t\tint available = input.available();\r\n\t\t\t\tbyte chunk[] = new byte[available];\r\n\t\t\t\tinput.read(chunk, 0, available);\r\n\r\n\t\t\t\t// Displayed results are codepage dependent\r\n\r\n\t\t\t\tfor (int c = 0; c < chunk.length; c++) {\r\n\r\n\t\t\t\t\tSystem.out.println(\"recieve:\" + (chunk[c] + 512) % 256);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"here atleastttttttt\");\r\n\t\t\t\tSystem.err.println(e.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void writeEEPROM(EEPROMData programData) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_EE_Program(ftHandle, programData.ft_program_data));\n }", "protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(752);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(752);\n{\n rv = _in.read(_text_buffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv);\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(752);\n\n _data_stream = new DataInputStream(new ByteArrayInputStream(_text_buffer));\n }", "protected abstract byte[] getTemperatureSetting2();", "private void readGPS() {\n }", "public int digitalRead(int pin) { // (unsupported in HardAta.ino)\r\n int info = digitalInputData[(pin >> 3) & MDB_msk], aBit = (info >> (pin & 7)) & 1;\r\n if (SpeakEasy){\r\n System.out.println(\"F%%F/digiRead #\" + pin + \" = \" + aBit + \"/\" + info);\r\n }\r\n return aBit;\r\n }", "private byte[] read(SelectionKey key) throws IOException {\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\treadBuffer.clear();\n\t\tint length = channel.read(readBuffer);\n\t\tbyte[] data = null;\n\n\t\t// Checking whether length is negative, to overcome java.lang.NegativeArraySizeException -- Aditya\n\t\tif (length == -1) {\n\t\t\tmClientStatus.remove(channel);\n\t\t\tclients--;\n\t\t\tchannel.close();\n\t\t\tkey.cancel();\n\t\t\tthrow new IOException(\"No data found\");\n\t\t}else {\n\t\t\treadBuffer.flip();\n\t\t\tdata = new byte[length];\n\t\t\treadBuffer.get(data, 0, length);\t\t\t\t\t\t\n\t\t}\n\t\treturn data;\n\t}", "public byte ReadInputs () throws IOException {\n return mDevice.readRegByte(GPIO);\n }", "@Override\n\tprotected void GetDataFromNative() {\n\t\tAverageFuelRate = CAN1Comm.Get_AverageFuelRate_333_PGN65390();\n\t\tLatestFuelConsumed = CAN1Comm.Get_ADaysFuelUsed_1405_PGN65390();\t\n\t}", "public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }", "byte[] getData();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "public int GetFirmwareRev() { // (simple test of getting Arduino input)\r\n int g0 = 0, g1 = 0, g2 = 0, prio = GotFirmVersion, why = -1;\r\n String gottem = \"\";\r\n byte[] reply = null;\r\n if (SpeakEasy){\r\n System.out.println(\"F%%F/GetFirmRev..\"); // SpeakEasy=true\r\n }\r\n GotFirmVersion = 0; // so we know we got most recent result\r\n Send3bytes(Arduino.REPORT_VERSION, 1, 2); // = 0xF9 (249)\r\n try {\r\n Thread.sleep(1000); // delay 1 second -- give it time to respond\r\n if (surrealPort.getInputBufferBytesCount() > 0){ // if (GetFirmData)\r\n reply = surrealPort.readBytes(3);\r\n }\r\n if (reply != null) { // we caught it before ProcessInp..\r\n if (reply.length > 0) {\r\n g0 = reply[0];\r\n gottem = \" => \" + g0;\r\n } //~if\r\n if (reply.length > 1) {\r\n g1 = reply[1];\r\n gottem = gottem + \" \" + g1;\r\n } //~if\r\n if (reply.length > 2) {\r\n g2 = reply[2];\r\n gottem = gottem + \" \" + g2;\r\n } //~if\r\n why = reply.length;\r\n } //~if\r\n if (GotFirmVersion > 0) { // ProcessInp got it..\r\n g1 = GotFirmVersion >> 16;\r\n g2 = GotFirmVersion & 0xFFF;\r\n g0 = Arduino.REPORT_VERSION;\r\n gottem = \" => \" + g0 + \" \" + g1 + \" \" + g2;\r\n why = 7;\r\n } //~if\r\n else if ((g0 & 255) == Arduino.REPORT_VERSION){\r\n GotFirmVersion = (g1 << 16) + (g2 & 0xFFFF);\r\n } // large Java bytes -> <0\r\n if (why >= 3) {\r\n if (SpeakEasy) {\r\n if (GotFirmVersion == 0) {\r\n System.out.println(\" **F%%F/GotWhatever**\" + gottem\r\n + \" = \" + ((g2 << 7) + g1) + \" (\" + why + \")\");\r\n GotFirmVersion = prio;\r\n } //~if\r\n else System.out.println(\" (F%%F/GetFirmRev)\" + gottem);\r\n } //~if\r\n return GotFirmVersion;\r\n } //~if\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n if (SpeakEasy){\r\n System.out.println(\" (F%%F/GetFirmRev)? = \" + why + gottem);\r\n }\r\n return GotFirmVersion;\r\n }", "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}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "E read(K id);", "public Data getDataAt(Address addr);", "public abstract byte[] read() throws IOException, IllegalArgumentException , IllegalStateException;", "public void ownRead();", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "public byte readMode(int address)\n {\n int i; // Counter\n int offset; // Offset in the memory bank\n int[] plane = new int[4]; // Memory address of plane \n\n // Determien range of host memory used, and any offset \n switch (videocard.graphicsController.memoryMapSelect)\n {\n case 1: // 0xA0000 .. 0xAFFFF\n if (address > 0xAFFFF)\n {\n return (byte) 0xFF;\n }\n offset = address - 0xA0000;\n break;\n \n case 2: // 0xB0000 .. 0xB7FFF\n if ((address < 0xB0000) || (address > 0xB7FFF))\n {\n return (byte) 0xFF;\n }\n return videocard.vgaMemory[address - 0xB0000];\n \n case 3: // 0xB8000 .. 0xBFFFF\n if (address < 0xB8000)\n {\n return (byte) 0xFF;\n }\n return videocard.vgaMemory[address - 0xB8000];\n \n default: // 0xA0000 .. 0xBFFFF\n return videocard.vgaMemory[address - 0xA0000];\n }\n \n // Address is between 0xA0000 and 0xAFFFF\n if (videocard.sequencer.chainFourEnable != 0)\n {\n\n // Mode 13h: 320 x 200 256 colour mode: chained pixel representation\n return videocard.vgaMemory[(offset & ~0x03) + (offset % 4) * 65536];\n }\n\n for (i = 0; i < 4; i++)\n {\n plane[i] = i << 16;\n }\n\n // Address is between 0xA0000 and 0xAFFFF\n switch (videocard.graphicsController.readMode)\n {\n case 0: // Read mode 0 - read value of one plane in vga memory\n // All four latches are read with plane data, even though only one plane/latch is returned\n for (i = 0; i < 4; i++)\n {\n videocard.graphicsController.latch[i] = videocard.vgaMemory[plane[i] + offset];\n }\n return (videocard.graphicsController.latch[videocard.graphicsController.readMapSelect]);\n\n case 1: // Read mode 1 ('colour compare mode') - determine pixel colour of all four planes\n {\n byte colourCompare, colourDontCare;\n byte[] latch = new byte[4];\n byte returnValue;\n\n colourCompare = (byte) (videocard.graphicsController.colourCompare & 0x0F);\n colourDontCare = (byte) (videocard.graphicsController.colourDontCare & 0x0F);\n \n for (i = 0; i < 4; i++)\n {\n latch[i] = videocard.graphicsController.latch[i] = videocard.vgaMemory[plane[i] + offset];\n latch[i] ^= GraphicsController.colourCompareTable[colourCompare][i];\n latch[i] &= GraphicsController.colourCompareTable[colourDontCare][i];\n }\n\n returnValue = (byte) ~(latch[0] | latch[1] | latch[2] | latch[3]);\n\n return returnValue;\n }\n \n default:\n return 0;\n }\n }", "@Override\n public void serialEvent(SerialPortEvent oEvent)\n {\n if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n try{\n String strIn = br.readLine();\n String[] strPara = strIn.split(\",\");\n if(strPara.length != 2){\n System.out.println(\"[Serial error]: \" + strIn);\n return;\n }\n\n // Check data validaty\n try{\n for(int i=0 ; i<strPara.length ; i++)\n Double.valueOf(strPara[i]);\n }\n catch(Exception e){\n System.out.println(\"[Serial error]: \" + strIn);\n return;\n }\n \n // Update data to window interface\n parent.setEMGData_From_SerialPort(strPara[0], strPara[1]);\n } \n catch (Exception e) {\n e.printStackTrace();\n }\n }\n // Ignore all the other eventTypes, but you should consider the other ones.\n\t}", "@Override\n\tpublic String readDatagram() {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.print(\"MAC ADRESS: \");\n\t\tString mac = null;\n\t\ttry {\n\t\t\tmac = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (mac.equals(\"quit\")){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\tSystem.out.print(\"DATAGRAM: \");\n\t\tString datagram = null;\n\t\ttry {\n\t\t\tdatagram = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (datagram.equals(\"quit\")){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn mac+\";\"+datagram;\n\t}", "private String read(int address)\n {\n return MMU.read(VMA.get( address/RAM.getPageSize()) * RAM.getPageSize() + (address % RAM.getPageSize()));\n }", "@Override\n\t\tpublic void serialEvent(SerialPortEvent evt) {\n\t\t\ttry {\n\t\t\t\tswitch (evt.getEventType()) {\n\t\t\t\tcase SerialPortEvent.DATA_AVAILABLE:\n\t\t\t\t\tif (input == null) {\n\t\t\t\t\t\tinput = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\t\t\tserialPort.getInputStream()));\n\t\t\t\t\t}\n\t\t\t\t\tString inputLine = input.readLine();\n\t\t\t\t\tSystem.out.println(inputLine);\n\t\t\t\t\tserialReturn = inputLine;\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} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t}\n\n\t\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readDeviceInfo() {\n\t\tboolean flag = oTest.readDeviceInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);", "public String readDeviceSN(){\r\n return mFactoryBurnUtil.readDeviceSN();\r\n }", "public static void main(String[] args) {\n byte[] arr = {1, 2, 3, 4, 5};\n\n try {\n ByteArrayInputStream one = new ByteArrayInputStream(arr);\n System.out.println(one.available());\n\n for(int i = 0; i< arr.length; i++){\n\n int data = one.read();\n System.out.println(data);\n }\n one.close();\n }catch (Exception e){\n System.out.println(e.getMessage());\n\n\n }\n\n }", "private void readRealTemp() {\n YCBTClient.getRealTemp(new BleDataResponse() {\n @Override\n public void onDataResponse(int i, float v, HashMap hashMap) {\n if (i == 0) {\n String temp = (String) hashMap.get(\"tempValue\");\n }\n }\n });\n }", "public void IPL(){ \r\n \r\n this.io.resetIOController();\r\n this.memory.resetMemory();\r\n \r\n /*** Pseudocode for ROM bootloader \r\n * Reads a file to memory starting at M(64) to EOF\r\n * \r\n * ADDR=64, X1=0\r\n * L1: R0 = io.readLine()\r\n * memory.set(ADDR+X1, R0)\r\n * X1++\r\n * checkForMore = io.checkStatus()\r\n * test checkForMore\r\n * jcc checkForMore to L1\r\n * jmp 64\r\n */ \r\n HashMap<Integer,String> ROM = new HashMap<>(); \r\n /************* Assembly for bootloader **************/\r\n ROM.put(00, \"00000000000000101111\"); // Trap Handler Table Start Position -> 47\r\n ROM.put(01, \"00000000000000101011\"); // Machine Fault Handler -> 42\r\n ROM.put( 9, \"11001100110011001100\"); // SECTION_TAG (Used for finding sections)\r\n ROM.put(10, \"000011 00 10 0 0 00000000\"); //10: LDA(2,0,0,0) -- reset ECX to 0 (index value) \r\n ROM.put(11, \"000011 00 11 0 0 00000000\"); //11: LDA(3,0,0,0) -- reset EDX to 0 (IO Status Ready) \r\n ROM.put(12, \"000001 00 01 0 0 00001001\"); //12: LDR(1,0,9) -- LOAD M(9) to EBX (SECTION_TAG)\r\n ROM.put(13, \"000010 00 10 0 0 00000110\" ); //13: STR(2,0,6) -- set M(6) to ECX \r\n ROM.put(14, \"101001 00 10 0 0 00000110\" ); //14: LDX(0, 2, 6) -- Set X(2) from M(6) (copied from ECX/0) \r\n ROM.put(15, \"101001 00 01 0 0 00000110\" ); //15: LDX(0, 1, 6) -- Set X(1) from M(6) (copied from ECX) \r\n ROM.put(16, \"111101 00 00 000000 0010\" ); //16: L1: IN(0, 2) -- read word from CardReader to EAX \r\n ROM.put(17, \"010110 00 01 0 0 00000000\" ); //17: TRR(0, 1) -- Test EAX against EBX (SECTION_TAG) \r\n ROM.put(18, \"001100 00 11 0 0 00011001\" ); //18: JCC(3,x, L2) -- JMP to L2 if EAX=EBX --- L2=25 \r\n ROM.put(19, \"000010 01 00 0 0 01000000\" ); //19: L3: STR(0,1,64i1) -- store EAX to ADDR+X1 (ADDR=64) \r\n ROM.put(20, \"101011 00 01 0 0 00000000\" ); //20: INX(1) -- X(1)++\r\n ROM.put(21, \"111111 00 00 000000 0010\" ); //21: CHK(0, 2) -- Check status of Card Reader to EAX \r\n ROM.put(22, \"010110 00 11 0 0 00000000\" ); //22: TRR(0, 3) -- Test EAX against EDX (IO Status Ready -- not done) \r\n ROM.put(23, \"001100 00 11 0 0 00010000\" ); //23: JCC(3,x, L1) -- JMP to L1 if EAX=EDX --- L1=16 \r\n ROM.put(24, \"001101 00 00 0 0 01000000\" ); //24: JMP(64) -- else: launch program by transferring control to 64 \r\n ROM.put(25, \"000011 01 10 0 0 01000000\" ); //25: L2: LDA(1,1,64i1) -- Load ADDR+X1 to ECX\r\n ROM.put(26, \"000010 10 10 0 0 00001000\" ); //26: STR(1,2,8) -- Store ECX to 8+X2\r\n ROM.put(27, \"101011 00 10 0 0 00000000\" ); //27: INX(2) -- X(2)++\r\n ROM.put(28, \"001101 00 00 0 0 00010011\" ); //28: JMP(19) -- JMP(L3) \r\n /***************** Error Handler ************************************/ \r\n ROM.put(32, \"000001 00 11 0 0 00000010\"); //32: LDR(3, 0, 2) -- restore PC to EDX (used on 41) \r\n ROM.put(33, \"000011 00 00 0 0 01000101\"); //33: LDA(0,72) -- Set EAX to 69 ('E')\r\n ROM.put(34, \"000011 00 01 0 0 01110010\"); //34: LDA(1,105) -- Set EBX to 114 ('r')\r\n ROM.put(35, \"000011 00 10 0 0 01101111\"); //35: LDA(2,13) -- Set ECX to 111 ('o')\r\n ROM.put(36, \"111110 00 00 000000 0001\"); //36: OUT(0,1) -- Output EAX ('E')\r\n ROM.put(37, \"111110 00 01 000000 0001\"); //37: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(38, \"111110 00 01 000000 0001\"); //38: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(39, \"111110 00 10 000000 0001\"); //39: OUT(2,1) -- Output ECX ('o')\r\n ROM.put(40, \"111110 00 01 000000 0001\"); //40: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(41, \"000010 00 11 0 0 00000110\"); //41: STR(3,0,6) -- Store EDX to M(6)\r\n ROM.put(42, \"001101 00 00 1 0 00000110\"); //42: JMP(0,6) -- JMP to c(M(6))\r\n // Machine error entry point\r\n ROM.put(43, \"000001 00 11 0 0 00000100\"); // 43: LDR(3, 0, 4) -- restore PC to EDX (used on 41) \r\n ROM.put(44, \"000011 00 00 0 0 01001101\"); //44: LDA(0,72) -- Set EAX to 77 ('M') \r\n ROM.put(45, \"111110 00 00 000000 0001\"); //45: OUT(0,1) -- Output EAX ('M') \r\n ROM.put(46, \"001101 00 00 0 0 00100001\" ); //46: JMP(33) -- Jump to 33 \"MError\"\r\n // Create Trap Table Defaults\r\n for(int i=47;i<=63;i++){\r\n ROM.put(i, \"001101 00 00 0 0 00100000\"); // Set TRAP table locs all to 32 by default\r\n }\r\n \r\n // Read ROM contents into memory\r\n for (Map.Entry romEntry : ROM.entrySet()) { \r\n try {\r\n this.getMemory().engineerSetMemoryLocation(new Unit(13, (int)romEntry.getKey()), Word.WordFromBinaryString((String)romEntry.getValue()));\r\n } catch (MachineFaultException ex) {\r\n Logger.getLogger(Computer.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n try {\r\n this.getCpu().getBranchPredictor().scanMemory();\r\n } catch (MachineFaultException ex) {\r\n Logger.getLogger(Computer.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n //Transfer Control to ROM Bootloader\r\n this.getCpu().getControlUnit().setProgramCounter(new Unit(13, 10)); // Start at 10 \r\n this.cpu.setRunning(true); \r\n }", "abstract void read();", "public void readWithExceptionsToolsEdition() throws IOException\n {\n readWithExceptions(1, 12);\n boolean flag = false;\n for(int i=0;i<3;i++)\n if(Integer.parseInt(msgIN)==toolsID[i])\n flag=true;\n\n if(!flag)\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Che tool vuoi usare?\",40,true));\n readWithExceptionsToolsEdition();\n }\n\n }", "public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }", "public byte[] getData()\r\n/* 38: */ {\r\n/* 39: 98 */ byte[] data = new byte[18];\r\n/* 40: */ \r\n/* 41:100 */ int options = 0;\r\n/* 42:102 */ if (this.promptBoxVisible) {\r\n/* 43:104 */ options |= PROMPT_BOX_VISIBLE_MASK;\r\n/* 44: */ }\r\n/* 45:107 */ if (this.promptBoxAtCell) {\r\n/* 46:109 */ options |= PROMPT_BOX_AT_CELL_MASK;\r\n/* 47: */ }\r\n/* 48:112 */ if (this.validityDataCached) {\r\n/* 49:114 */ options |= VALIDITY_DATA_CACHED_MASK;\r\n/* 50: */ }\r\n/* 51:117 */ IntegerHelper.getTwoBytes(options, data, 0);\r\n/* 52: */ \r\n/* 53:119 */ IntegerHelper.getFourBytes(this.objectId, data, 10);\r\n/* 54: */ \r\n/* 55:121 */ IntegerHelper.getFourBytes(this.numDVRecords, data, 14);\r\n/* 56: */ \r\n/* 57:123 */ return data;\r\n/* 58: */ }", "public void setup() {\n try {\n serialPort = (SerialPort) comport.open(\"SimpleReadApp\", 2000);\n serialPort.addEventListener(this);\n serialPort.notifyOnDataAvailable(true);\n serialPort.setSerialPortParams(115200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);\n \n serialPort.notifyOnOutputEmpty(false); // true\n\n //serialPort.enableReceiveTimeout(1);\n\n outputStream = serialPort.getOutputStream();\n inputStream = serialPort.getInputStream();\n } catch (Exception e) {\n \n }\n }", "public static void main(String[] args) throws Exception {\n\t\tPort port = LocalEV3.get().getPort(\"S1\");\n\t\tMindsensorsAbsoluteIMU gyro = new MindsensorsAbsoluteIMU(port);\n\t\tSensorMode gyroprovider = (SensorMode) gyro.getAccelerationMode();\n\t\tfloat[] sample = new float[gyro.sampleSize()];\n\t\t\n\t\t//code for communication\n\t\tNXTCommConnector connector = Bluetooth.getNXTCommConnector();\n\t\tNXTConnection connection = connector.connect(\"00:16:53:44:66:05\", NXTConnection.RAW);\n\t\tDataOutputStream output = connection.openDataOutputStream();\n\t\t\n\t\t//byte array that is being communicated\n\t\tbyte[] data = new byte[1];\n\t\t\n\t\t// main loop of the program, exits when escape button is pressed\n\t\twhile(Button.getButtons() != Button.ID_ESCAPE) {\n\t\t\t\n\t\t\t//variable that's used to determine if the acceleartion state has changed from the previous loop\n\t\t\tbyte temp = data[0];\n\t\t\t\n\t\t//fetches data from the sensor and stores it in sample\n\t\tgyroprovider.fetchSample(sample, 0);\n\t\t\n\t\t//conditional logic for which value should be passed to the data stream\n\t\tif(sample[0] < -threshold)\t\t//forward\n\t\t\tdata[0] = 0;\n\t\telse if (sample[0] > threshold)\t//backward\n\t\t\tdata[0] = 1;\n\t\telse if (sample[1] > threshold)\t//left\n\t\t\tdata[0] = 2;\n\t\telse if (sample[1] < -threshold)//right\n\t\t\tdata[0] = 3;\n\t\t\n\t\t//writes the data variable to the stream if it changed\n\t\tif(data[0] != temp)\n\t\t\toutput.write(data);\n\t\t\toutput.flush();\n\t\t}\n\t\t\n\t\tgyro.close();\n\t\t\n\n\t}", "public static String readDiskMemory(String address){\n\t\treturn memory.get(address);\n\t}", "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "public void readSectorDiskOnly(TransID tid, int sectorNum, byte buffer[])\n throws IOException, IllegalArgumentException, \n IndexOutOfBoundsException{\t\t\t\t\t\t\t\t// Not quite done yet\n\t try{\n\t\t ADisk_lock.lock();\n\n\t readTid = tid.getTidfromTransID();\n\t readSector = sectorNum;\n d.startRequest(Disk.READ, tid.getTidfromTransID(), sectorNum, buffer);\n readWait();\n\t }\n\t finally{\n\t\t ADisk_lock.unlock();\n\t }\n}", "void read ();", "private void chimeraRead() throws IOException {\n \t \tif (chimera == null)\n \t \t\treturn;\n\n\t\tString line = null;\n\t\twhile ((line = lineReader.readLine()) != null) {\n\t\t\t// System.out.println(\"From Chimera-->\"+line);\n\t\t\tif (line.startsWith(\"CMD\")) {\n\t\t\t\tchimeraCommandRead(line.substring(4));\n\t\t\t} else if (line.startsWith(\"ModelChanged: \")) {\n\t\t\t\t(new ModelUpdater()).start();\n\t\t\t} else if (line.startsWith(\"SelectionChanged: \")) {\n\t\t\t\t(new SelectionUpdater()).start();\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "private void readKeyDataToIdentifyTransactions(){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(keyFile));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif((line.startsWith(\"#\")) || (line.equals(\"\")))\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tString transacName = line.split(\";\")[0];\n\t\t\t\t\tchar transacType = line.split(\";\")[1].charAt(0);\n\t\t\t\t\ttypeTransData.put(transacName,transacType);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! \"+ keyFile +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"Please try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "@Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);", "private void startReading() {\r\n\r\n isReading = true;\r\n Thread readingThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n while (isReading) {\r\n synchronized (this) {\r\n int ret;\r\n\r\n // Fetch the data here\r\n if(mUsbDeviceConnection != null && mUsbEndpointIn != null){\r\n byte[] bytes = new byte[mUsbEndpointIn.getMaxPacketSize()];\r\n ret = mUsbDeviceConnection.bulkTransfer(mUsbEndpointIn, bytes, bytes.length, 1000);\r\n\r\n if (ret >= 64) {\r\n if(bytes[1] == (byte)0xc8){\r\n // USB_COMMAND_ACK\r\n }\r\n else{\r\n // DATA Frame, bytes[1] should be 0x65\r\n float[] accSensorData = new float[3];\r\n float[] gyroSensorData = new float[3];\r\n float[] magSensorData = new float[3];\r\n\r\n // ACC\r\n accSensorData[0] = byte2float(bytes, 4);\r\n accSensorData[1] = byte2float(bytes, 8);\r\n accSensorData[2] = byte2float(bytes, 12);\r\n\r\n // Gyro\r\n gyroSensorData[0] = byte2float(bytes, 16) * (float)Math.PI / 180.0f;\r\n gyroSensorData[1] = byte2float(bytes, 20) * (float)Math.PI / 180.0f;\r\n gyroSensorData[2] = byte2float(bytes, 24) * (float)Math.PI / 180.0f;\r\n\r\n // Mag, not used so far\r\n magSensorData[0] = (float) (byte2float(bytes, 28) * Math.PI / 180.0f);\r\n magSensorData[1] = (float) (byte2float(bytes, 32) * Math.PI / 180.0f);\r\n magSensorData[2] = (float) (byte2float(bytes, 36) * Math.PI / 180.0f);\r\n\r\n String[] msgData = new String[3];\r\n msgData[0] = String.format(\"%.2f\", accSensorData[0]) + \", \" + String.format(\"%.2f\", accSensorData[1]) + \", \" + String.format(\"%.2f\", accSensorData[2]);\r\n msgData[1] = String.format(\"%.2f\", gyroSensorData[0]) + \", \" + String.format(\"%.2f\", gyroSensorData[1]) + \", \" + String.format(\"%.2f\", gyroSensorData[2]);\r\n msgData[2] = String.format(\"%.2f\", magSensorData[0]) + \", \" + String.format(\"%.2f\", magSensorData[1]) + \", \" + String.format(\"%.2f\", magSensorData[2]);\r\n\r\n Message msg = new Message();\r\n msg.obj = msgData;\r\n msg.what = 0;\r\n mHandler.sendMessage(msg);\r\n }\r\n }\r\n else{\r\n Log.d(TAG, \"No data from USB device.\");\r\n }\r\n }\r\n else{\r\n isReading = false;\r\n Log.d(TAG, \"USB connection is not available.\");\r\n }\r\n }\r\n }\r\n }\r\n });\r\n\r\n Log.d(TAG, \"Start the reading thread here to retrieve sensors(acc, gyro, mag)\");\r\n readingThread.start();\r\n }", "protected byte[] readRecordData(String key) throws IOException {\n return readRecordData(keyToRecordHeader(key));\n }" ]
[ "0.73567617", "0.61600846", "0.5966793", "0.5876504", "0.5705341", "0.5583357", "0.55775326", "0.54987305", "0.5434886", "0.5426766", "0.54179025", "0.5304475", "0.52912426", "0.52888954", "0.52833533", "0.52774763", "0.5251211", "0.52223986", "0.5179249", "0.5170098", "0.5168537", "0.5164688", "0.514701", "0.5132583", "0.51305056", "0.5126485", "0.51011884", "0.50993603", "0.5083815", "0.50548315", "0.5045072", "0.5039833", "0.5010176", "0.49912348", "0.49753538", "0.49464354", "0.49263203", "0.49248275", "0.48994723", "0.4898851", "0.48892814", "0.48821875", "0.48705372", "0.4852812", "0.48491684", "0.484803", "0.48347256", "0.4821836", "0.4820484", "0.48152533", "0.4812173", "0.48102716", "0.48051164", "0.4803572", "0.47988594", "0.4798161", "0.47809416", "0.47545597", "0.47473806", "0.4734807", "0.47156924", "0.47085777", "0.47021046", "0.47021046", "0.47021046", "0.47021046", "0.46982428", "0.46793532", "0.46735474", "0.46707594", "0.46668485", "0.46657592", "0.4659706", "0.46500635", "0.4642774", "0.46374002", "0.4637135", "0.46366388", "0.46346602", "0.46335244", "0.46335223", "0.46315354", "0.46260703", "0.46218926", "0.4621503", "0.46159077", "0.46156487", "0.4614499", "0.46142152", "0.460977", "0.45925862", "0.45920527", "0.4590924", "0.4585015", "0.45847258", "0.45843422", "0.45789522", "0.45757273", "0.4574608", "0.45636085" ]
0.73247516
1
Write X series device EEPROM data Check D2xx Programmer's Guide Appendix A for details
public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException { String manufacturer = eeprom.getManufacturer(); Memory mManufacturer = new Memory(manufacturer.length() + 1); mManufacturer.setString(0, manufacturer); String manufacturerId = eeprom.getManufacturerId(); Memory mManufacturerId = new Memory(manufacturerId.length() + 1); mManufacturerId.setString(0, manufacturerId); String description = eeprom.getDescription(); Memory mDescription = new Memory(description.length() + 1); mDescription.setString(0, description); String serialNumber = eeprom.getSerialNumber(); Memory mSerialNumber = new Memory(serialNumber.length() + 1); mSerialNumber.setString(0, serialNumber); ensureFTStatus(ftd2xx .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId, mDescription, mSerialNumber)); devSerialNumber = serialNumber; devDescription = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }", "void writeEeprom(ImuEepromWriter sensor, int scaleNo, short[] data);", "public void writeEEPROM(EEPROMData programData) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_EE_Program(ftHandle, programData.ft_program_data));\n }", "public void writeEEPROMUserArea(String data) throws FTD2XXException {\n Memory source = new Memory(data.length());\n source.setString(0, data);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));\n }", "public EepromX readEEPROM_X() throws FTD2XXException {\n EepromX eeprom = new EepromX();\n Memory manufacturer = new Memory(64);\n Memory manufacturerId = new Memory(64);\n Memory description = new Memory(64);\n Memory serialNumber = new Memory(64);\n\n Memory mem = new Memory(56);\n mem.setInt(0, 9);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Read(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), manufacturer, manufacturerId, description,\n serialNumber));\n\n eeprom.setManufacturer(manufacturer.getString(0));\n eeprom.setManufacturerId(manufacturerId.getString(0));\n devDescription = description.getString(0);\n eeprom.setDescription(devDescription);\n devSerialNumber = serialNumber.getString(0);\n eeprom.setSerialNumber(devSerialNumber);\n\n return eeprom;\n }", "void tickDeviceWrite(INDArray array);", "native int _writeSerialPort(int port, byte data[]);", "public void writeData(byte[] data){\n if (mWriteCharacteristic!=null &&data!=null){\n mWriteCharacteristic.setValue(data[0],BluetoothGattCharacteristic.FORMAT_UINT8,0);\n mWriteCharacteristic.setValue(data);\n bluetoothGatt.writeCharacteristic(mWriteCharacteristic);\n }\n }", "public EEPROMData readEEPROM() throws FTD2XXException {\n FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference();\n ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference));\n return new EEPROMData(ftByReference);\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 writeToStorage() throws Exception {\n TaggingDeviceRestTest.ensureDeviceExists(eKey);\n String baseUrl = REST_URL + \"/core/device\";\n TaggingDeviceRestTest\n .putSecurityIPs(baseUrl,\n eKey,\n Collections.singletonList(IPv4.fromIPv4Address(ip)));\n }", "public int write(byte[] bytes) throws FTD2XXException {\n return write(bytes, 0, bytes.length);\n }", "public boolean write(BluetoothGattCharacteristic characteristic, byte[] payload, boolean withEOD) {\n Log.v(TAG, String.format(\"write called: device=%s base64=%s value=%s length=%d characteristicUUID=%s\", getMACAddress(), Base64.encodeToString(payload, Base64.DEFAULT), BleDriver.bytesToHex(payload), payload.length, characteristic.getUuid()));\n\n if (!isClientConnected()) {\n Log.e(TAG, \"write error: device not connected\");\n return false;\n }\n\n int minOffset = 0;\n int maxOffset;\n\n // Send data to fit with MTU value\n while (minOffset != payload.length) {\n maxOffset = minOffset + getMtu() - GattServer.ATT_HEADER_SIZE > payload.length ? payload.length : minOffset + getMtu() - GattServer.ATT_HEADER_SIZE;\n final byte[] toWrite = Arrays.copyOfRange(payload, minOffset, maxOffset);\n minOffset = maxOffset;\n Log.v(TAG, String.format(\"write: data chunk: device=%s base64=%s value=%s length=%d characteristicUUID=%s\", getMACAddress(), Base64.encodeToString(toWrite, Base64.DEFAULT), BleDriver.bytesToHex(toWrite), toWrite.length, characteristic.getUuid()));\n if (!internalWrite(characteristic, toWrite)) {\n Log.e(TAG, String.format(\"write payload failed: device=%s\", getMACAddress()));\n return false;\n }\n }\n\n if (withEOD && !internalWrite(characteristic, EOD.getBytes())) {\n Log.e(TAG, String.format(\"write EOD failed: device=%s\", getMACAddress()));\n return false;\n }\n return true;\n }", "private void organizeEEPROM() {\n\t \n \n\t //put red, green, blue, and activitity values into r, g, b, and a\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t r[(i)/8] = 256*EEPROM[i] + EEPROM[i + 1];\n\t\t g[(i)/8] = 256*EEPROM[i + 2] + EEPROM[i + 3];\n\t\t b[(i)/8] = 256*EEPROM[i + 4] + EEPROM[i + 5];\n\t\t a[(i)/8] = 256*EEPROM[i + 6] + EEPROM[i + 7];\n \n\t\t //set resets to zero by default\n\t\t if((r[(i)/8] == 65278) && (b[(i)/8] == 65278) && (g[i/8] == 0)) {\n\t\t\t r[(i)/8] = 0;\n\t\t\t g[(i)/8] = 0;\n\t\t\t b[(i)/8] = 0;\n\t\t\t a[(i)/8] = 0;\n\t\t }\n\t }\n \n\t //get end of address\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t if((EEPROM[i] == 255) && (EEPROM[i + 1] == 255)) {\n\t\t\t endaddress = i/8;\n\t\t\t break;\n\t\t }\n\t }\n\t if(isnew) {\n\t\t ID = Integer.parseInt(asciiheader[8]);\n\t\t mm = Integer.parseInt(asciiheader[7].substring(0, 2));\n\t\t dd = Integer.parseInt(asciiheader[7].substring(3, 5));\n\t\t yy = Integer.parseInt(asciiheader[7].substring(6, 8));\n\t\t HH = Integer.parseInt(asciiheader[7].substring(9, 11));\n\t\t MM = Integer.parseInt(asciiheader[7].substring(12, 14));\n\t\t period = Integer.parseInt(asciiheader[3]);\n\t\t\t\t \n\t\t if(isUTC) {\n\t\t\t offset = Calendar.get(Calendar.DST_OFFSET) / 3600000;\n\t\t\t //apply offset, but if offset rolls us into a new day, we need to account for that\n\t\t\t if (HH + offset > 23) {\n\t\t\t\t dd += 1;\n\t\t\t\t HH = (HH + offset) % 24;\n\t\t\t\t //if our new day rolls us into a new month, account for that\n\t\t\t\t //30 days have September, April, June, and November\n\t\t\t\t if(dd > 30 && (mm == 9 || mm == 4 || mm == 6 || mm == 11)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //All the rest have 31, except for February who is a fuckwad.\n\t\t\t\t else if (dd > 31 && !(mm == 9 || mm == 4 || mm == 6 || mm == 11 || mm == 2)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and not a leap year\n\t\t\t\t else if (dd > 28 && (yy%4 != 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and a leap year\n\t\t\t\t else if (dd > 29 && (yy%4 == 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //Did we rollover our year doing this?\n\t\t\t\t if (mm > 12) {\n\t\t\t\t\t mm = 1;\n\t\t\t\t\t yy += 1;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t else {\n\t\t\t\t HH = HH + offset;\n\t\t\t }\n\t\t }\n\t }\n\t else {\n\t\t ID = (header[3] - 48)*1000 + (header[4] - 48)*100 + (header[5] - 48)*10 + (header[6] - 48);\n\t\t mm = (header[9] - 48)*10 + (header[10] - 48);\n\t\t dd = (header[12] - 48)*10 + (header[13] - 48);\n\t\t yy = (header[15] - 48)*10 + (header[16] - 48);\n\t\t HH = (header[18] - 48)*10 + (header[19] - 48);\n\t\t MM = (header[21] - 48)*10 + (header[22] - 48);\n\t\t period = (header[25] - 48)*100 + (header[26] - 48)*10 + (header[27] - 48);\n\t }\n \t}", "private void writeDeviceInfo() {\n StringBuffer text = new StringBuffer(getDeviceReport());\n dataWriter.writeTextData(text, \"info.txt\");\n }", "public void write(byte[] data, long offset);", "public abstract void write(EmitterSystemState data)\n\t\t\tthrows FailedToWriteToDatastoreException;", "void bytetest() {\n byte[] myByteArray = new byte[256];\n for (int i = 0; i < 256; ++i) {\n myByteArray[i] = (byte)i;\n }\n\n Intent writeIntent = new Intent(BGXpressService.ACTION_WRITE_SERIAL_BIN_DATA);\n writeIntent.putExtra(\"value\", myByteArray);\n writeIntent.setClass(mContext, BGXpressService.class);\n writeIntent.putExtra(\"DeviceAddress\", mDeviceAddress);\n startService(writeIntent);\n }", "public void writeEquipment() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/equipment.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(equipment);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\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 Send_To_Arduino()\n{\n float[] toSend = new float[6];\n\n toSend[0] = PApplet.parseFloat(SPField.getText());\n toSend[1] = PApplet.parseFloat(InField.getText());\n toSend[2] = PApplet.parseFloat(OutField.getText());\n toSend[3] = PApplet.parseFloat(PField.getText());\n toSend[4] = PApplet.parseFloat(IField.getText());\n toSend[5] = PApplet.parseFloat(DField.getText());\n Byte a = (AMLabel.valueLabel().getText()==\"Manual\")?(byte)0:(byte)1;\n Byte d = (DRLabel.valueLabel().getText()==\"Direct\")?(byte)0:(byte)1;\n myPort.write(a);\n myPort.write(d);\n myPort.write(floatArrayToByteArray(toSend));\n justSent=true;\n}", "private void writefastxj() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"xj\");\r\n\t\tedit.commit();\r\n\t}", "public static void lcd_WriteCMD(int data) {\n lcd_RawWrite(data & 0xF0);\n lcd_RawWrite((data <<4 ) & 0xF0);\n }", "public void setIOPortByte(int portAddress, byte data)\n {\n// \tSystem.out.println(\"setIOPortByte : \"+ portAddress +\" : \"+ data);\n// \tSystem.out.printf(\"setIOPortByte : %x : %x\\n\", portAddress, data);\n boolean needUpdate = false; // Determine if a screen refresh is needed \n\n // Check if correct ports are addressed while in monochrome / colour mode; if not, ignore OUT\n if ((videocard.miscOutputRegister.ioAddressSelect != 0) && (portAddress >= 0x3B0) && (portAddress <= 0x03BF))\n return;\n if ((videocard.miscOutputRegister.ioAddressSelect == 0) && (portAddress >= 0x03D0) && (portAddress <= 0x03DF))\n return;\n\n switch (portAddress)\n {\n case 0x3BA: // Ext. reg: Feature Control Register (Monochrome)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3BA (Feature Control Register, monochrome): reserved\");\n break;\n\n case 0x3C0: // Attribute controller: Address register\n // Determine whether in address/data mode\n if (videocard.attributeController.dataAddressFlipFlop)\n {\n // Data mode\n switch (videocard.attributeController.index)\n {\n case 0x00: // Internal Palette Index\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n if (data != videocard.attributeController.paletteRegister[videocard.attributeController.index])\n {\n videocard.attributeController.paletteRegister[videocard.attributeController.index] = data;\n needUpdate = true;\n }\n break;\n \n case 0x10: // Mode control register\n // Store previous values for check\n byte oldLineGraphics = videocard.attributeController.modeControlReg.lineGraphicsEnable;\n byte oldPaletteBitsSelect = videocard.attributeController.modeControlReg.paletteBitsSelect;\n \n videocard.attributeController.modeControlReg.graphicsEnable = (byte) ((data >> 0) & 0x01);\n videocard.attributeController.modeControlReg.monoColourEmu = (byte) ((data >> 1) & 0x01);\n videocard.attributeController.modeControlReg.lineGraphicsEnable = (byte) ((data >> 2) & 0x01);\n videocard.attributeController.modeControlReg.blinkIntensity = (byte) ((data >> 3) & 0x01);\n videocard.attributeController.modeControlReg.pixelPanningMode = (byte) ((data >> 5) & 0x01);\n videocard.attributeController.modeControlReg.colour8Bit = (byte) ((data >> 6) & 0x01);\n videocard.attributeController.modeControlReg.paletteBitsSelect = (byte) ((data >> 7) & 0x01);\n \n // Check if updates are necessary\n if (videocard.attributeController.modeControlReg.lineGraphicsEnable != oldLineGraphics)\n {\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n if (videocard.attributeController.modeControlReg.paletteBitsSelect != oldPaletteBitsSelect)\n {\n needUpdate = true;\n }\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Mode control: \" + data);\n break;\n \n case 0x11: // Overscan Colour Register\n videocard.attributeController.overscanColour = (byte) (data & 0x3f);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Overscan colour = \" + data);\n break;\n \n case 0x12: // Colour Plane Enable Register\n videocard.attributeController.colourPlaneEnable = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour plane enable = \" + data);\n break;\n \n case 0x13: // Horizontal Pixel Panning Register\n videocard.attributeController.horizPixelPanning = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Horiz. pixel panning = \" + data);\n break;\n \n case 0x14: // Colour Select Register\n videocard.attributeController.colourSelect = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour select = \" + videocard.attributeController.colourSelect);\n break;\n \n default:\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Data mode (unknown register) \" + videocard.attributeController.index);\n } \n \n \n }\n else\n {\n // Address mode\n int oldPaletteAddressSource = videocard.attributeController.paletteAddressSource;\n\n videocard.attributeController.paletteAddressSource = (byte) ((data >> 5) & 0x01);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: address mode = \" + videocard.attributeController.paletteAddressSource);\n\n if (videocard.attributeController.paletteAddressSource == 0)\n screen.clearScreen();\n else if (!(oldPaletteAddressSource != 0))\n {\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"found enable transition\");\n needUpdate = true;\n }\n \n data &= 0x1F; // Attribute Address bits\n \n videocard.attributeController.index = data;\n switch (data)\n {\n case 0x00:\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n break;\n\n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Address mode reg = \" + data);\n }\n }\n \n // Flip the flip-flop\n videocard.attributeController.dataAddressFlipFlop = !videocard.attributeController.dataAddressFlipFlop;\n break;\n\n case 0x3C2: // Miscellaneous Output Register\n videocard.miscOutputRegister.ioAddressSelect = (byte) ((data >> 0) & 0x01);\n videocard.miscOutputRegister.ramEnable = (byte) ((data >> 1) & 0x01);\n videocard.miscOutputRegister.clockSelect = (byte) ((data >> 2) & 0x03);\n videocard.miscOutputRegister.lowHighPage = (byte) ((data >> 5) & 0x01);\n videocard.miscOutputRegister.horizontalSyncPol = (byte) ((data >> 6) & 0x01);\n videocard.miscOutputRegister.verticalSyncPol = (byte) ((data >> 7) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C2:\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O Address select = \" + videocard.miscOutputRegister.ioAddressSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Ram Enable = \" + videocard.miscOutputRegister.ramEnable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Clock Select = \" + videocard.miscOutputRegister.clockSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Low/High Page = \" + videocard.miscOutputRegister.lowHighPage);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Horiz Sync Polarity = \" + videocard.miscOutputRegister.horizontalSyncPol);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Vert Sync Polarity = \" + videocard.miscOutputRegister.verticalSyncPol);\n break;\n\n case 0x3C3: // Video Subsystem Enable; currently only uses bit 0 to check if enabled/disabled\n videocard.vgaEnabled = (data & 0x01) == 1 ? true : false;\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" set I/O port 0x3C3: VGA Enabled = \" + videocard.vgaEnabled);\n break;\n\n case 0x3C4: // Sequencer Index Register\n if (data > 4)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C4: index > 4\");\n }\n videocard.sequencer.index = data;\n break;\n\n case 0x3C5: // Sequencer Data Registers\n // Determine register to write to\n switch (videocard.sequencer.index)\n {\n case 0: // Reset register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write 0x3C5: Sequencer reset: \" + data);\n if ((videocard.sequencer.aSynchReset != 0) && ((data & 0x01) == 0))\n {\n videocard.sequencer.characterMapSelect = 0;\n videocard.sequencer.charMapAddress = 0;\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n videocard.sequencer.aSynchReset = (byte) ((data >> 0) & 0x01);\n videocard.sequencer.synchReset = (byte) ((data >> 1) & 0x01);\n break;\n \n case 1: // Clocking mode register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5 (clocking mode): \" + data);\n videocard.sequencer.clockingMode = (byte) (data & 0x3D);\n videocard.sequencer.dotClockRate = ((data & 0x08) > 0) ? (byte) 1 : 0;\n break;\n \n case 2: // Map Mask register\n videocard.sequencer.mapMask = (byte) (data & 0x0F);\n for (int i = 0; i < 4; i++)\n videocard.sequencer.mapMaskArray[i] = (byte) ((data >> i) & 0x01);\n break;\n \n case 3: // Character Map select register\n videocard.sequencer.characterMapSelect = (byte) (data & 0x3F);\n \n byte charSetA = (byte) (data & 0x13); // Text mode font used when attribute byte bit 3 == 1\n if (charSetA > 3)\n charSetA = (byte) ((charSetA & 3) + 4);\n \n byte charSetB = (byte) ((data & 0x2C) >> 2); // Text mode font used when attribute byte bit 3 == 0\n if (charSetB > 3)\n charSetB = (byte) ((charSetB & 3) + 4);\n \n // Select font from font table\n // FIXME: Ensure this check is correct\n if (videocard.crtControllerRegister.regArray[0x09] != 0)\n {\n videocard.sequencer.charMapAddress = SequencerRegister.charMapOffset[charSetA];\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n \n // Different fonts not supported at this time\n if (charSetB != charSetA)\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"Character map select: map #2 in block \" + charSetB + \" unused\");\n break;\n \n case 4: // Memory Mode register\n videocard.sequencer.extendedMemory = (byte) ((data >> 1) & 0x01);\n videocard.sequencer.oddEvenDisable = (byte) ((data >> 2) & 0x01);\n videocard.sequencer.chainFourEnable = (byte) ((data >> 3) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C5 (memory mode):\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Extended Memory = \" + videocard.sequencer.extendedMemory);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even disable = \" + videocard.sequencer.oddEvenDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Chain 4 enable = \" + videocard.sequencer.chainFourEnable);\n break;\n \n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5: index \" + videocard.sequencer.index + \" unhandled\");\n }\n break;\n\n case 0x3C6: // Pixel mask\n videocard.colourRegister.pixelMask = data;\n if (videocard.colourRegister.pixelMask != (byte) 0xFF)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C6: Pixel mask= \" + data + \" != 0xFF\");\n break;\n\n case 0x3C7: // DAC Address Read Mode register\n videocard.colourRegister.dacReadAddress = data;\n videocard.colourRegister.dacReadCounter = 0;\n videocard.colourRegister.dacState = 0x03;\n break;\n\n case 0x3C8: // DAC Address Write Mode register\n videocard.colourRegister.dacWriteAddress = data;\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacState = 0x00;\n break;\n\n case 0x3C9: // DAC Data Register\n // Determine sub-colour to be written \n switch (videocard.colourRegister.dacWriteCounter)\n {\n case 0:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red = data;\n break;\n case 1:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green = data;\n break;\n case 2:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)] .blue = data;\n\n needUpdate |= screen.setPaletteColour(videocard.colourRegister.dacWriteAddress, (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].blue) << 2);\n break;\n }\n\n videocard.colourRegister.dacWriteCounter++;\n\n // Reset counter when 3 values are written and automatically update the address\n if (videocard.colourRegister.dacWriteCounter >= 3)\n {\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacWriteAddress++;\n }\n break;\n\n case 0x3CA: // Feature Control Register\n // Read only (write at 0x3BA mono, 0x3DA colour)\n break;\n\n case 0x3CC: // Miscellaneous Output Register\n // Read only (write at 0x3C2\n break;\n\n case 0x3CD: // Unknown\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write to unknown port 0x3CD = \" + data);\n break;\n\n case 0x3CE: // Graphics Controller Address Register\n // Only 9 register accessible\n if (data > 0x08)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" /O write port 0x3CE: index > 8\");\n videocard.graphicsController.index = data;\n break;\n\n case 0x3CF: // Graphics Controller Data Register\n switch (videocard.graphicsController.index)\n {\n case 0: // Set/Reset\n videocard.graphicsController.setReset = (byte) (data & 0x0F);\n break;\n \n case 1: // Enable Set/Reset\n videocard.graphicsController.enableSetReset = (byte) (data & 0x0F);\n break;\n \n case 2: // Colour Compare\n videocard.graphicsController.colourCompare = (byte) (data & 0x0F);\n break;\n \n case 3: // Data Rotate\n videocard.graphicsController.dataRotate = (byte) (data & 0x07);\n videocard.graphicsController.dataOperation = (byte) ((data >> 3) & 0x03);\n break;\n \n case 4: // Read Map Select\n videocard.graphicsController.readMapSelect = (byte) (data & 0x03);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (Read Map Select): \" + data);\n break;\n \n case 5: // Graphics Mode\n videocard.graphicsController.writeMode = (byte) (data & 0x03);\n videocard.graphicsController.readMode = (byte) ((data >> 3) & 0x01);\n videocard.graphicsController.hostOddEvenEnable = (byte) ((data >> 4) & 0x01);\n videocard.graphicsController.shift256Reg = (byte) ((data >> 5) & 0x03);\n\n if (videocard.graphicsController.hostOddEvenEnable != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n if (videocard.graphicsController.shift256Reg != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n break;\n \n case 6: // Miscellaneous\n // Store old values for check later\n byte oldAlphaNumDisable = videocard.graphicsController.alphaNumDisable;\n byte oldMemoryMapSelect = videocard.graphicsController.memoryMapSelect;\n\n videocard.graphicsController.alphaNumDisable = (byte) (data & 0x01);\n videocard.graphicsController.chainOddEvenEnable = (byte) ((data >> 1) & 0x01);\n videocard.graphicsController.memoryMapSelect = (byte) ((data >> 2) & 0x03);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF (Miscellaneous): \" + data);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Alpha Num Disable: \" + videocard.graphicsController.alphaNumDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Memory map select: \" + videocard.graphicsController.memoryMapSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even enable : \" + videocard.graphicsController.hostOddEvenEnable);\n \n\n if (oldMemoryMapSelect != videocard.graphicsController.memoryMapSelect)\n needUpdate = true;\n if (oldAlphaNumDisable != videocard.graphicsController.alphaNumDisable)\n {\n needUpdate = true;\n oldScreenHeight = 0;\n }\n break;\n \n case 7: // Colour Don't Care\n videocard.graphicsController.colourDontCare = (byte) (data & 0x0F);\n break;\n \n case 8: // Bit Mask\n videocard.graphicsController.bitMask = data;\n break;\n \n default:\n // Unknown index addressed\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF: index \" + videocard.graphicsController.index + \" unhandled\");\n }\n break;\n\n case 0x3B4: // CRT Controller Address Register (monochrome)\n case 0x3D4: // CRT Controller Address Register (colour)\n // Set index to be accessed in CRTC Data Register cycle\n videocard.crtControllerRegister.index = (byte) (data & 0x7F);\n if (videocard.crtControllerRegister.index > 0x18)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)4: invalid CRTC register \" + videocard.crtControllerRegister.index + \" selected\");\n break;\n\n case 0x3B5: // CRTC Data Register (monochrome)\n case 0x3D5: // CRTC Data Register (colour)\n if (videocard.crtControllerRegister.index > 0x18)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)5: invalid CRTC Register (\" + videocard.crtControllerRegister.index + \"); ignored\");\n return;\n }\n // Check if writing is allowed for registers 0x00 - 0x07\n if ((videocard.crtControllerRegister.protectEnable) && (videocard.crtControllerRegister.index < 0x08))\n {\n // Only write exception in protectEnable is lineCompare of Overflow register (0x07)\n if (videocard.crtControllerRegister.index == 0x07)\n {\n // Reset variables before ORing\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] &= ~0x10;\n videocard.lineCompare &= 0x2ff;\n \n // Bit 4 specifies lineCompare bit 8 \n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] |= (data & 0x10);\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n }\n else\n {\n return;\n }\n }\n if (data != videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index])\n {\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] = data;\n switch (videocard.crtControllerRegister.index)\n {\n case 0x07:\n // Overflow register; specifies bit 8, 9 for several fields\n \n // Reset variables before ORing\n videocard.verticalDisplayEnd &= 0xFF;\n videocard.lineCompare &= 0x2FF;\n\n // Bit 1 specifies verticalDisplayEnd bit 8 \n if ((videocard.crtControllerRegister.regArray[0x07] & 0x02) != 0)\n videocard.verticalDisplayEnd |= 0x100;\n // Bit 6 specifies verticalDisplayEnd bit 9\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x40) != 0)\n videocard.verticalDisplayEnd |= 0x200;\n // Bit 4 specifies lineCompare bit 8\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n \n case 0x08:\n // Preset row scan; bits 5-6 allow 15/31/35 pixel shift without change in start address, \n // bits 0-4 specify number of scanlines to scroll up (more precise than start address)\n needUpdate = true;\n break;\n \n case 0x09:\n // Maximum scan line; for text mode, value should be char. height - 1, \n // for graphic mode a non-zero value causes repeat of scanline by MSL+1 \n\n // Bit 7 sets scan doubling:\n // FIXME: Why is this ANDed with 0x9F if bit 7 is required?\n videocard.crtControllerRegister.scanDoubling = ((data & 0x9F) > 0) ? (byte) 1 : 0;\n\n // Reset variables before ORing\n videocard.lineCompare &= 0x1FF;\n\n // Bit 6 specifies bit 9 of line_compare\n if ((videocard.crtControllerRegister.regArray[0x09] & 0x40) != 0)\n videocard.lineCompare |= 0x200;\n needUpdate = true;\n break;\n \n case 0x0A:\n case 0x0B:\n case 0x0E:\n case 0x0F:\n // Cursor start & end / cursor location; specifies the scanlines \n // at which the cursor should start and end, and the location of the cursor\n videocard.vgaMemReqUpdate = true;\n break;\n \n case 0x0C:\n case 0x0D:\n // Start address; specifies the display memory address of the upper left pixel/character\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n needUpdate = true;\n }\n else\n {\n videocard.vgaMemReqUpdate = true;\n }\n break;\n \n case 0x11:\n // Change vertical retrace end\n videocard.crtControllerRegister.protectEnable = ((videocard.crtControllerRegister.regArray[0x11] & 0x80) > 0) ? true : false;\n break;\n \n case 0x12:\n // Change vertical display end\n videocard.verticalDisplayEnd &= 0x300;\n videocard.verticalDisplayEnd |= (((int) videocard.crtControllerRegister.regArray[0x12]) & 0xFF);\n break;\n \n case 0x13:\n case 0x14:\n case 0x17:\n // Line offset; specifies address difference between consecutive scanlines/character lines \n videocard.lineOffset = videocard.crtControllerRegister.regArray[0x13] << 1;\n if ((videocard.crtControllerRegister.regArray[0x14] & 0x40) != 0)\n {\n videocard.lineOffset <<= 2;\n }\n else if ((videocard.crtControllerRegister.regArray[0x17] & 0x40) == 0)\n {\n videocard.lineOffset <<= 1;\n }\n needUpdate = true;\n break;\n\n case 0x18:\n // Line compare; indicates scan line where horiz. division can occur. No division when set to 0x3FF\n videocard.lineCompare &= 0x300;\n videocard.lineCompare |= (((short) videocard.crtControllerRegister.regArray[0x18]) & 0xFF); // Cast from byte to short\n needUpdate = true;\n break;\n }\n\n }\n break;\n\n case 0x3Da: // Feature Control (colour)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3DA (Feature Control Register, colour): reserved\");\n break;\n\n case 0x03C1: // Attribute Data Read Register\n // Read only\n break;\n \n default:\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" unsupported I/O write to port \" + portAddress + \", data =\" + data);\n\n }\n\n if (needUpdate)\n {\n // Mark all video as updated so the changes will go through\n setAreaForUpdate(0, 0, oldScreenWidth, oldScreenHeight);\n }\n return;\n }", "public void i2cTransaction(int deviceAddress, byte[]writeBuf,\n int writeOffset, int writeLen, byte[] readBuf, int readOffset,\n int readLen);", "public abstract int writeData(int address, byte[] buffer, int length);", "public static void main(String[] args) throws Exception {\n FileOutputStream fos=new FileOutputStream(\"e:/data/contents.txt\");\r\n //step-2 (write data)\r\n String s=\"Something We want To Write To A File\";\r\n byte b[]=s.getBytes();\r\n //fos.write(b);\r\n fos.write(b, 3, 10);\r\n //step-3 (close file)\r\n fos.close();\r\n System.out.println(\"DATA STORED\");\r\n }", "public void writeMotionEvent(String key,byte [] bytes){\n writeRawData(key,bytes);\r\n }", "public void write(IORequest request) throws MemoryFault {\n setBaseLimit();\n //sets what we need for the read and write\n // System.out.println(\"[Debug] Base & Limit set\");\n int deviceNumber = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc);\n int platter = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 1);\n int platStart = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 2);\n int datasize = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 3);\n int memLoc = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 4) + Process_Table[request.prognum].base;\n Process_Table[currentProcess].status = ProcessState.waiting;\n //System.out.println(\"ACC:\" + Process_Table[currentProcess].acc);\n machine.devices[deviceNumber].controlRegister.register[0] = DeviceControllerOperations.WRITE;\n machine.devices[deviceNumber].controlRegister.register[1] = platter;\n machine.devices[deviceNumber].controlRegister.register[2] = platStart;\n machine.devices[deviceNumber].controlRegister.register[3] = datasize;\n // System.out.println(\"[Debug] Registers set\");\n for (int i = 0; i < datasize; i++) {\n machine.devices[deviceNumber].buffer[i] = machine.memory.load(memLoc + i);\n\n\n }\n\n machine.devices[deviceNumber].controlRegister.latch(); // initiate the latch\n }", "protected abstract boolean setTemperatureSetting1(byte[] edt);", "private static void writeDATA(int data) {\n writeByte(true,data);\n }", "void tickHostWrite(INDArray array);", "public void appendData_File(String BSSID){\n try {\n outputStreamWriter = new OutputStreamWriter(context.openFileOutput(Constant.FILE_NAME, Context.MODE_APPEND));\n BSSID+=\",\";\n outputStreamWriter.write(BSSID);\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n finally {\n try{\n if(outputStreamWriter!=null)\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }\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 }", "@Override public void write(byte[] bytes) throws RobotCoreException\n {\n byte bCommand = bytes[2];\n this.cbExpected = bCommand==0 ? 0/*write*/ : bytes[4] /*read*/;\n }", "public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n\n // Share the sent message with the UI activity.\n /*Message writtenMsg = handler.obtainMessage(\n MessageConstants.MESSAGE_WRITE, -1, -1, mmBuffer);\n writtenMsg.sendToTarget();*/\n } catch (IOException e) {\n Log.e(TAG, \"Error occurred when sending data\", e);\n\n // Send a failure message back to the activity.\n /*Message writeErrorMsg =\n handler.obtainMessage(MessageConstants.MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(\"toast\",\n \"Couldn't send data to the other device\");\n writeErrorMsg.setData(bundle);\n handler.sendMessage(writeErrorMsg);*/\n }\n }", "@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }", "public void writeCharacterToFile() throws Exception\r\n\t{\r\n\t\tPath fileName = Paths.get(name.concat(\"-data.xml\").replaceAll(\" \", \"_\"));\r\n\r\n\t\tif(Files.exists(fileName))\r\n\t\t{\r\n\t\t\tint conf = JOptionPane.showConfirmDialog(null, \"File already exists. Overwrite?\");\r\n\t\t\tif(conf == JOptionPane.OK_OPTION)\r\n\t\t\t{\r\n\t\t\t\tFileIO.deleteFile(fileName);\r\n\t\t\t\twriteCharXML(fileName.toFile());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No file operation completed.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\twriteCharXML(fileName.toFile());\r\n\t\t}\r\n\r\n\r\n\r\n\t}", "void writeBytes(byte[] value);", "protected abstract boolean setTemperatureSetting2(byte[] edt);", "private static void writeCMD(int data) {\n writeByte(false,data);\n }", "@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 static void saveIntoFile() throws IOException {\n\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\");\n\t\tString fileName = \"./ipmi.\" + format.format(new Date()) + \".log\";\n\n\t\tBasicConsumptionList file = new BasicConsumptionList();\n\t\tlogger.debug(\"file:\" + fileName);\n\t\tfile.setWriter(new FileWriter(fileName));\n\n\t\tSystem.err.println(ipmi.execute(Command.IPMI_SENSOR_LIST));\n\n\t\twhile (true) {\n\t\t\tDouble watts = ipmi.getWatt();\n\t\t\tfile.addData(System.currentTimeMillis(), watts);\n\t\t\tfile.commit();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.trace(\"\", e);\n\t\t\t}\n\t\t}\n\t}", "public void persist(DataOutputStream dos) throws Exception;", "public void write(int address, int value){\n\r\n switch (address){\r\n case CONTROL_REGISTER_1:{ // 0\r\n //logger.info(\"Write \" + Integer.toHexString(value) + \" to \" + Integer.toHexString(address));\r\n registers_w[CONTROL_REGISTER_1] = value & 0xFF;\r\n if ((value & CR1_SPRITE_SIZE) != 0){\r\n doubleSizeSprites = true;\r\n }\r\n else {\r\n doubleSizeSprites = false;\r\n }\r\n /**\r\n * creates a 0-3 index into the name table address array\r\n * by setting which way we go horizontally and vertically\r\n */\r\n int oldH = horizontalNameLatch;\r\n int oldV = verticalNameLatch;\r\n horizontalNameLatch = value & 0x1;\r\n if (shouldLog && oldH != horizontalNameLatch){\r\n logger.info(\"Set H to \" + horizontalNameLatch);\r\n }\r\n verticalNameLatch = (value & 0x2) >> 1;\r\n if (shouldLog && oldV != verticalNameLatch){\r\n logger.info(\"Set V to \" + verticalNameLatch);\r\n }\r\n playfieldSelector = (value & CR1_SCREEN_PATTERN_ADDRESS) >> 4;\r\n break;\r\n }\r\n case CONTROL_REGISTER_2:{ // 1\r\n // logger.info(\"CR2: \" + Integer.toHexString(value));\r\n registers_w[CONTROL_REGISTER_2] = value & 0xFF;\r\n displayEnabled = (registers_w[CONTROL_REGISTER_2] & CR2_SCREEN_SWITCH) != 0;\r\n spritesEnabled = (registers_w[CONTROL_REGISTER_2] & CR2_SPRITE_SWITCH) != 0;\r\n\r\n \r\n break;\r\n }\r\n case 2: {\r\n break;\r\n }\r\n case SPRITE_MEMORY_ADDRESS:{ // 3\r\n setSpriteMemoryAddress(value);\r\n break;\r\n }\r\n case SPRITE_MEMORY_DATA:{ // 4\r\n writeToSpriteMemory(value);\r\n break;\r\n }\r\n case SCROLL_OFFSET:{ // 5\r\n if (shouldLog)\r\n logger.info(\"Wrote to scroll offset: \" + value);\r\n registers_w[SCROLL_OFFSET] = value;\r\n if (isFirstWriteToScroll){\r\n horizontalTileLatch = (value & 0xF8) >> 3;\r\n fineHorizontalCounter = value & 0x7; // immediate effect... but what's it used for?\r\n isFirstWriteToScroll = false;\r\n }\r\n else {\r\n verticalTileLatch = (value & 0xF8) >> 3;\r\n fineVerticalLatch = value & 0x7;\r\n isFirstWriteToScroll = true;\r\n }\r\n break;\r\n }\r\n case PPU_MEMORY_ADDRESS:{ /** 6 - write high byte, then low byte */\r\n if (lastPPUAddressWasHigh){\r\n lastPPUAddressWasHigh = false;\r\n\r\n\r\n // System.out.println(\"Scanline = \" + scanLine);\r\n horizontalTileLatch = value & 0x1F;\r\n verticalTileLatch |= ((value & 0xE0) >> 5); // gets top 2 bits from first write\r\n\r\n loadAddressFromLatches();\r\n // System.out.println(\"PPU Address: \" + Integer.toHexString(ppuMemoryAddress));\r\n // ppuMemoryAddress = ((registers_w[address] & 0xFF) << 8) | (value & 0xFF);\r\n // System.out.println(\"PPU Address after real load: \" + Integer.toHexString(ppuMemoryAddress));\r\n\r\n\r\n }\r\n else { // this is the 1st write\r\n verticalTileLatch = (value & 0x3) << 3; // the upper 2 bits of latch\r\n horizontalNameLatch = (value & 0x4) >> 2;\r\n verticalNameLatch = (value & 0x8) >> 3;\r\n fineVerticalLatch = (value & 0x30) >> 4;\r\n lastPPUAddressWasHigh = true;\r\n }\r\n registers_w[address] = value & 0xFF;\r\n break;\r\n }\r\n case PPU_MEMORY_DATA: { // 7\r\n // System.out.println(\"PPU MEMORY WRITE: \" + Integer.toHexString(ppuMemoryAddress) + \",\" + Integer.toHexString(value));\r\n //memory.write(ppuMemoryAddress, value & 0xFF);\r\n\t\t\tint writeAddress = horizontalTileCounter \r\n | (verticalTileCounter << 5)\r\n | (horizontalNameCounter << 10)\r\n | (verticalNameCounter << 11)\r\n | ((fineVerticalCounter & 0x3) << 12);\r\n\t\t\tif (writeAddress == 0x3F10 ||\r\n\t\t\t\t\twriteAddress == 0x3F14 ||\r\n\t\t\t\t\twriteAddress == 0x3F18 ||\r\n\t\t\t\t\twriteAddress == 0x3F1C) {\r\n\t\t\t\twriteAddress = writeAddress & 0x3F0F;\r\n\t\t\t}\r\n memory.write(writeAddress, value & 0xFF);\r\n /*\r\n if (ppuMemoryAddress < 0x3F00){\r\n memory.write(ppuMemoryAddress, value & 0xFF);\r\n }\r\n else {\r\n memory.write(ppuMemoryAddress - 0x3F00, value & 0xFF);\r\n }\r\n */\r\n incrementCounters();\r\n /*\r\n if ((registers_w[CONTROL_REGISTER_1] & CR1_VERTICAL_WRITE) == 0){\r\n ppuMemoryAddress++;\r\n }\r\n else {\r\n ppuMemoryAddress += 32;\r\n }\r\n */\r\n // if (ppuMemoryAddress >= ram.size()) { ppuMemoryAddress = 0; }\r\n break;\r\n }\r\n\r\n default: throw new RuntimeException(\"Invalid write attempt: \" + Integer.toHexString(address));\r\n }\r\n }", "@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}", "public abstract void write(List<EmitterSystemState> data)\n\t\t\tthrows FailedToWriteToDatastoreException;", "@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }", "public long writeMem(int index, long data) throws Exception{\n\t\tif(index >= 0 && index < Constants.MEM_SIZE){\n\t\t\tmemory[index] = data;\n\t\t} else {\n\t\t\tthrow new Exception(\"Invalid memory location!!\");\n\t\t}\n\t\treturn memory[index];\n\t}", "protected boolean setBathWaterVolumeSetting1(byte[] edt) {return false;}", "public void Send3bytes(int comm, int data, int more) { // in {FF} Arduino\r\n int info = data & 127;\r\n boolean logy = ((SpokeHard & 0xFFFF) < SpeakHard)\r\n || LogAllPcnts && (comm == REPORT_PULSECOUNT); // = 0xA0;\r\n byte[] msg = new byte[3];\r\n SpokeHard++;\r\n if (more < 0){\r\n more = (data >> 7) & 127;\r\n if (logy) System.out.println(\"F%%F/Send3by \" + comm + \" \" + data\r\n + \" .. => \" + info + \" \" + more + FormatMillis(\" @ \", 0x80000000));\r\n data = info;\r\n } else if (logy){\r\n System.out.println(\"F%%F/Send3by \" + comm + \" \" + data + \" \" + more +\r\n FormatMillis(\" @ \", 0x80000000));\r\n }\r\n if (comm < 128){\r\n return;\r\n } // not a valid command byte..\r\n if (comm > 255){\r\n return;\r\n }\r\n more = more & 127;\r\n data = info;\r\n msg[0] = (byte) (comm);\r\n msg[1] = (byte) (data);\r\n msg[2] = (byte) (more);\r\n try {\r\n surrealPort.writeBytes(msg);\r\n if (DoMore != null) DoMore.SendBytes(msg, 3);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tupm_m24lr64e.M24LR64E nfcTag = new upm_m24lr64e.M24LR64E(0);\n\n\t\t// This example accesses the device in the 'user' (default) mode,\n\t\t// reads the last byte of data in the EEPROM, inverts it, writes\n\t\t// it back, and then re-reads it.\n\n\t\t// Read the last byte of the EEPROM area\n\t\tint addr = upm_m24lr64e.M24LR64E.EEPROM_I2C_LENGTH - 1;\n\t\tSystem.out.println(\"Address: \" + addr);\n\t\tshort read = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// Now change it to it's opposite and write it\n\t\tread = (short) (~read & 0xff);\n\t\tnfcTag.writeByte(addr, read);\n\t\tSystem.out.println(\"Wrote: \" + read);\n\n\t\t// Now read it back\n\t\tread = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// ! [Interesting]\n\t}", "@Override\r\n\tprotected void writeImpl(L2Client client, L2Player activeChar, MMOBuffer buf) throws RuntimeException\r\n\t{\n\t\tfinal boolean god = client.getVersion().isNewerThanOrEqualTo(ClientProtocolVersion.GODDESS_OF_DESTRUCTION);\r\n\t\tbuf.writeD(0); // Type\r\n\t\tbuf.writeD(0); // Servitor OID\r\n\t\tbuf.writeD(0); // Servitor\r\n\t\tbuf.writeD(0); // Attackable\r\n\t\tbuf.writeD(0); // Location X\r\n\t\tbuf.writeD(0); // Location Y\r\n\t\tbuf.writeD(0); // Location Z\r\n\t\tbuf.writeD(0); // Heading\r\n\t\tbuf.writeD(0); // 0\r\n\t\tbuf.writeD(0); // Casting speed\r\n\t\tbuf.writeD(0); // Attack speed\r\n\t\tbuf.writeD(0); // Running speed (on ground)\r\n\t\tbuf.writeD(0); // Walking speed (on ground)\r\n\t\tbuf.writeD(0); // Running speed (in water)\r\n\t\tbuf.writeD(0); // Walking speed (in water)\r\n\t\tbuf.writeD(0); // Running speed (in air) ???\r\n\t\tbuf.writeD(0); // Walking speed (in air) ???\r\n\t\tbuf.writeD(0); // Running speed (in air) while mounted?\r\n\t\tbuf.writeD(0); // Walking speed (in air) while mounted?\r\n\t\tbuf.writeF(0D); // Movement speed multiplier\r\n\t\tbuf.writeF(0D); // Attack speed multiplier\r\n\t\tbuf.writeF(0D); // Collision radius\r\n\t\tbuf.writeF(0D); // Collision height\r\n\t\tbuf.writeD(0); // Main weapon\r\n\t\tbuf.writeD(0); // Chest armor\r\n\t\tbuf.writeD(0); // Shield/support weapon\r\n\t\tbuf.writeC(0); // Owner online\r\n\t\tbuf.writeC(0); // Moving\r\n\t\tbuf.writeC(0); // In combat\r\n\t\tbuf.writeC(0); // Lying dead\r\n\t\tbuf.writeC(0); // Status\r\n\t\tbuf.writeD(0); // ???\r\n\t\tbuf.writeS(\"\"); // Name\r\n\t\tbuf.writeD(0); // ???\r\n\t\tbuf.writeS(\"\"); // Title\r\n\t\tbuf.writeD(0); // 1\r\n\t\tbuf.writeD(0); // In PvP\r\n\t\tbuf.writeD(0); // Karma\r\n\t\tbuf.writeD(0); // Current satiation\r\n\t\tbuf.writeD(0); // Maximum satiation\r\n\t\tbuf.writeD(0); // Current HP\r\n\t\tbuf.writeD(0); // Maximum HP\r\n\t\tbuf.writeD(0); // Current MP\r\n\t\tbuf.writeD(0); // Maximum MP\r\n\t\tbuf.writeD(0); // SP\r\n\t\tbuf.writeD(0); // Level\r\n\t\tbuf.writeQ(0L); // XP\r\n\t\tbuf.writeQ(0L); // Current level XP\r\n\t\tbuf.writeQ(0L); // Next level XP\r\n\t\tbuf.writeD(0); // Current carried weight\r\n\t\tbuf.writeD(0); // Maximum carried weight\r\n\t\tbuf.writeD(0); // P. Atk.\r\n\t\tbuf.writeD(0); // P. Def.\r\n\t\tif (god)\r\n\t\t{\r\n\t\t\tbuf.writeD(0); // P. Accuracy\r\n\t\t\tbuf.writeD(0); // P. Evasion\r\n\t\t\tbuf.writeD(0); // P. Critical\r\n\t\t}\r\n\t\tbuf.writeD(0); // M. Atk.\r\n\t\tbuf.writeD(0); // M. Def.\r\n\t\tif (god)\r\n\t\t{\r\n\t\t\tbuf.writeD(0); // M. Accuracy\r\n\t\t\tbuf.writeD(0); // M. Evasion\r\n\t\t\tbuf.writeD(0); // M. Critical\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tbuf.writeD(0); // Accuracy\r\n\t\t\tbuf.writeD(0); // Evasion\r\n\t\t\tbuf.writeD(0); // Critical\r\n\t\t}\r\n\t\tbuf.writeD(0); // Actual movement speed\r\n\t\tbuf.writeD(0); // Attack speed\r\n\t\tbuf.writeD(0); // Casting speed\r\n\t\tbuf.writeD(0); // Abnormal effect\r\n\t\tbuf.writeH(0); // Mountable\r\n\t\tbuf.writeC(0); // Weapon enchant glow\r\n\t\tbuf.writeH(0); // ??? 0\r\n\t\tbuf.writeC(0); // Duel team\r\n\t\tbuf.writeD(0); // Soulshot usage\r\n\t\tbuf.writeD(0); // Spiritshot usage\r\n\t\tbuf.writeD(0); // Ability level\r\n\t\tbuf.writeD(0); // Special effect\r\n\t\tif (god)\r\n\t\t{\r\n\t\t\tbuf.writeD(0); // ??? 0\r\n\t\t\tbuf.writeD(0); // ??? 0\r\n\t\t\tbuf.writeD(0); // ??? 0\r\n\t\t}\r\n\t}", "private void writefastjx() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"jx\");\r\n\t\tedit.commit();\r\n\t}", "private synchronized void saveVectorData(Vector data, int index)\r\n {\r\n debug(\"saveVectorData(Vector, \" + index + \") - to File\");\r\n\r\n // Create a filename to save the Data \r\n String fileName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + index;\r\n\r\n // Now we can send it to be serialized\r\n StockMarketUtils.serializeData(data, fileName);\r\n\r\n debug(\"saveVectorData(Vector, \" + index + \") - to File complete\");\r\n }", "public void writeIO(int addr, char data)\n {\n switch (addr)\n {\n case IO.UDR0:\n {\n this.io[IO.UCSR0A] &= ~32;\n }\n case IO.UDR1:\n {\n this.io[IO.UCSR1A] &= ~32;\n }\n }\n super.writeIO(addr, data);\n }", "public void writeSector(TransID tid, int sectorNum, byte buffer[]){\n\t atranslist.get(tid).addWrite(sectorNum, buffer);\n }", "void write();", "public void write(boolean level) {\n if (!level && !isSelected) {\n // falling edge, so instruction starts\n if (clock.getCount() > 1500) {\n echo(\"Instruction started\");\n }\n isSelected = true;\n } else if (level && isSelected) {\n // rising edge, so instruction terminates\n if (clock.getCount() < 1500) {\n echo(\"initialized\");\n } else {\n echo(\"Instruction finished\");\n }\n isSelected = false;\n\n switch (dfOpcode) {\n // Read Commands\n case 0x68: // Continous Array Read\n case 0xE8: // Continous Array Read\n case 0x52: // Main Memory Page Read\n case 0xD2: // Main Memory Page Read\n case 0x54: // Buffer1 Read\n case 0xD4: // Buffer1 Read\n case 0x56: // Buffer2 Read\n case 0xD6: // Buffer2 Read\n case 0x57: // Status Register Read\n case 0xD7: // Status Register Read\n break;\n\n // Program and Erase Commands\n case 0x83: // Buffer1 to Memory with Built-in Erase\n copyBuffer1toPage(dfPageAddress);\n echo(\"copy Buffer1 to Memory Page \" + dfPageAddress);\n delay = DF_TEP;\n break;\n\n case 0x86: // Buffer2 to Memory with Built-in Erase\n copyBuffer2toPage(dfPageAddress);\n echo(\"copy Buffer2 to Memory Page \" + dfPageAddress);\n delay = DF_TEP;\n break;\n\n case 0x88: // Buffer1 to Memory without Built-in Erase\n copyBuffer1toPage(dfPageAddress);\n echo(\"copy Buffer1 to Memory Page \" + dfPageAddress);\n delay = DF_TP;\n break;\n\n case 0x89: // Buffer2 to Memory without Built-in Erase\n copyBuffer2toPage(dfPageAddress);\n echo(\"copy Buffer2 to Memory Page \" + dfPageAddress);\n delay = DF_TP;\n break;\n\n case 0x81: // Page Erase\n delay = DF_TPE;\n break;\n\n case 0x50: // Block Erase\n delay = DF_TBE;\n break;\n\n case 0x82: // Memory Program through Buffer1\n // read from SI into Buffer1, write to Memory when Flash_CS gets 1\n copyBuffer1toPage(dfPageAddress);\n echo(\"copy Buffer1 to Memory Page \" + dfPageAddress);\n delay = DF_TEP;\n break;\n\n case 0x85: // Memory Program through Buffer2\n // read from SI into Buffer2, write to Memory when Flash_CS gets 1\n copyBuffer2toPage(dfPageAddress);\n echo(\"copy Buffer2 to Memory Page \" + dfPageAddress);\n delay = DF_TEP;\n break;\n\n // Additional Commands\n case 0x53: // Main Memory Page to Buffer1 Transfer\n copyPageToBuffer1(dfPageAddress);\n echo(\"copy Memory Page \" + dfPageAddress + \" to Buffer1\");\n delay = DF_TXFR;\n break;\n\n case 0x55: // Main Memory Page to Buffer2 Transfer\n copyPageToBuffer2(dfPageAddress);\n echo(\"copy Memory Page \" + dfPageAddress + \" to Buffer2\");\n delay = DF_TXFR;\n break;\n\n case 0x60: // Main Memory Page to Buffer1 Compare\n if (getBuffer1() == getMemoryPage(dfPageAddress)) {\n dfStatus &= ~DF_STATUS_COMPARE;\n echo(\"compare Memory Page \" + dfPageAddress + \" to Buffer1: identical\");\n } else {\n dfStatus |= DF_STATUS_COMPARE;\n echo(\"compare Memory Page \" + dfPageAddress + \" to Buffer1: different\");\n }\n delay = DF_TXFR;\n break;\n\n case 0x61: // Main Memory Page to Buffer2 Compare\n if (getBuffer2() == getMemoryPage(dfPageAddress)) {\n dfStatus &= ~DF_STATUS_COMPARE;\n echo(\"compare Memory Page \" + dfPageAddress + \" to Buffer2: identical\");\n } else {\n dfStatus |= DF_STATUS_COMPARE;\n echo(\"compare Memory Page \" + dfPageAddress + \" to Buffer2: different\");\n }\n delay = DF_TXFR;\n break;\n\n case 0x58: // Auto Page Rewrite\n case 0x59: // Auto Page Rewrite\n delay = DF_TEP;\n break;\n\n }\n\n // Dataflash is busy\n dfStatus &= ~DF_STATUS_READY;\n long dfDelay = clock.millisToCycles(delay / 1000);\n clock.insertEvent(new Delay(), dfDelay);\n\n // reset values\n dfOpcode = 0;\n dfByteOffset = 0;\n dfPageAddress = 0;\n step = 0;\n isReading = false;\n i = 0;\n }\n }", "protected boolean setBathWaterVolumeSetting2(byte[] edt) {return false;}", "private void writeData(Employee[] employees, DataOutput out) throws IOException {\n // write number of employees\n out.writeInt(employees.length);\n\n for (Employee e : employees) {\n out.writeInt(e.getName().length());\n out.writeChars(e.getName());\n out.writeInt(e.getHireDay().toString().length());\n out.writeChars(e.getHireDay().toString());\n out.writeDouble(e.getSalary());\n }\n }", "public ErrorType writeData(String fileName, int bytes, String data) {\n\t\tDirDetailsForWrite dirDetailsForWrite = fileWithDirListingEntry(fileName, getRootDirectory(), 0); \n\t\tString s= null;\n\t\tint lastBlockBytesUsed=0;\n\t\tint indexOfFile = dirDetailsForWrite.getDirEntryDetails().getLink();\n\t\tData tempDataBlock = (((Data)sector.get(indexOfFile)));\n\t\tif(dirDetailsForWrite != null) {\n\t\t\ts= tempDataBlock.writeUserData(bytes, data);\n\t\t}\n\t\t\n\t\twhile(true) {\n\t\t\tif(s!=null && (!Constants.SUCCESS.equals(s))) {\n\t\t\t\tint slashIndex = s != null ? s.indexOf(\"_\") : Constants.NEGATIVE;\n\t\t\t\tString first = null;\n\t\t\t\tString remBytes = null;\n\t\t\t\tString remData = null;\n\t\t\t\t\n\t\t\t\tif(Constants.NEGATIVE != slashIndex) {\n\t\t\t\t\tSystem.out.println(\"s = \"+s + \" Slash index : \"+ slashIndex);\n\t\t\t\t\tfirst = s.substring(0, slashIndex+1);\n\t\t\t\t\tremBytes = s.substring(slashIndex+1);\n\t\t\t\t} else {\n\t\t\t\t\tfirst = s;\n\t\t\t\t\tremBytes = null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(first != null && !Constants.REMAINING_STRING.equals(first)) {\n\t\t\t\t\tlastBlockBytesUsed = Integer.parseInt(first);\n\t\t\t\t\tbreak; // break out of the loop as number of bytes mentioned is wrote already\n\t\t\t\t} else if(Constants.REMAINING_STRING.equals(first)) {\n\t\t\t\t\tslashIndex = remBytes != null ? remBytes.indexOf(\"_\") : Constants.NEGATIVE;\n\t\t\t\t\tif(Constants.NEGATIVE != slashIndex) {\n\t\t\t\t\t\tremData = remBytes.substring(slashIndex+1);\n\t\t\t\t\t\tremBytes = remBytes.substring(0, slashIndex);\n\t\t\t\t\t\t\n\t\t\t\t\t\tint freeBlock = freeBlock();\n\t\t\t\t\t\tif(freeBlock != Constants.NEGATIVE) {\n\t\t\t\t\t\t\tsector.put(freeBlock, new Data());\n\t\t\t\t\t\t\ttempDataBlock.setFrwd(freeBlock);\n\t\t\t\t\t\t\t((Data)sector.get(freeBlock)).setBack(indexOfFile);\n\t\t\t\t\t\t\ts = ((Data)sector.get(freeBlock)).writeUserData(remBytes!=null?Integer.parseInt(remBytes):0, remData);\n\t\t\t\t\t\t\t//Setting tempDataBlock with the new Data object that is created now. This will be handy even we run out of new user block and we need another user block...\n\t\t\t\t\t\t\ttempDataBlock = ((Data)sector.get(freeBlock));\n\t\t\t\t\t\t\tindexOfFile = freeBlock;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn ErrorType.SECTOR_FULL;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tDirEntryDetails dirEntryTemp = dirDetailsForWrite.getDirEntryDetails();\n\t\t//TODO: Update correct Free bytes value\n\t\t((Directory)sector.get(dirDetailsForWrite.getRootIndex())).setDirWithGivenSize(dirEntryTemp.getDirEntryIndex(), lastBlockBytesUsed);\n\t\treturn ErrorType.SUCCESS;\n\t}", "@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }", "public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }", "private void writeDeviceIndependentObject(XDIMEContextInternal context)\n throws XDIMEException {\n\n DeviceIndependentTypeProcessor deviceIndependentTypeProcessor =\n new DeviceIndependentTypeProcessor();\n deviceIndependentTypeProcessor.writeObject(context,(ObjectAttribute)protocolAttributes,\n bodyContentBuffer);\n }", "void switchScreen()\n {\n\n byte[] data = new byte[13];\n data[0] = (byte)0xF0;\n data[1] = (byte)0x00;\n data[2] = (byte)0x01;\n data[3] = (byte)0x05;\n data[4] = (byte)0x21;\n data[5] = (byte)DEFAULT_ID; //(byte)getID();\n data[6] = (byte)0x02; // \"Write Dump\" What??? Really???\n data[7] = (byte)0x15; // UNDOCUMENTED LOCATION\n data[8] = (byte)0x00; // UNDOCUMENTED LOCATION\n data[9] = (byte)0x01; // UNDOCUMENTED LOCATION\n data[10] = (byte)0x00; \n data[11] = (byte)0x00;\n data[12] = (byte)0xF7;\n tryToSendSysex(data);\n }", "@Override\n\tpublic void EmergencySend(byte[] data) {\n\t\t\n\t}", "public void testAppendBytesSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String writeString = \"Hello World\";\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n filePersistence.closeFile(fileCreationId);\r\n File file = new File(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"the file should exist\", file.exists());\r\n assertEquals(\"the current file size not correct\", file.length(), writeString.getBytes().length);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "private void EnviarDatos(String data) \n {\n\n try \n {\n Output.write(data.getBytes());\n\n } catch (IOException e) {\n\n System.exit(ERROR);\n }\n }", "public void writeTest() throws IOException {\n comUtils.writeChar('H');\n\n }", "@Override\n public void write(DataAdaptor snkData) {\n \n DataAdaptor daptDev = snkData.createChild( this.dataLabel() );\n daptDev.setValue(STR_ATTR_TYPID, this.strTypId);\n daptDev.setValue(STR_ATTR_DEVID, this.strDevId);\n daptDev.setValue(STR_ATTR_FMTVER, LNG_VAL_FMTVER);\n \n this.cfgDevice.write(daptDev);\n \n this.datRaw.write(daptDev);\n this.datFit.write(daptDev);\n \n this.sigFitAttrs.write(daptDev);\n }", "public boolean writeToDeviceFile(Device dev) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element device = doc.createElement(\"Device\");\n rootElement.appendChild(device);\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(dev.getDeviceID()));\n device.appendChild(id);\n Element names = doc.createElement(\"Names\");\n device.appendChild(names);\n\n for (Map.Entry<Locale, String> entry : dev.getDeviceNames().entrySet()) {\n Element name = doc.createElement(\"Name\");\n Element locale = doc.createElement(\"Locale\");\n Element nameStr = doc.createElement(\"Value\");\n\n locale.appendChild(doc.createTextNode(entry.getKey().toString()));\n nameStr.appendChild(doc.createTextNode(entry.getValue()));\n\n name.appendChild(locale);\n name.appendChild(nameStr);\n names.appendChild(name);\n }\n\n Element type = doc.createElement(\"Type\");\n type.appendChild(doc.createTextNode(dev.getType()));\n device.appendChild(type);\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(dev.getImgName()));\n device.appendChild(image);\n Element capabilities = doc.createElement(\"Capabilities\");\n device.appendChild(capabilities);\n\n for (int j = 0; j < dev.getCapabilities().size(); j++) {\n Element cap = doc.createElement(\"capability\");\n cap.appendChild(doc.createTextNode(dev.getCapabilities().get(j).getCapID()));\n capabilities.appendChild(cap);\n }\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.DEV_FILE_DIR + dev.getDeviceID() + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n return true;\n\n } catch (ParserConfigurationException | TransformerException pce) {\n return false;\n }\n }", "public void\twrite_sector_data_from_buffer(int drive, int side,int data_id, char[] buf, int length, int ddam);", "public void write(long address, short[] buffer, int length, int moteID) {\n\t\tmote.write(address, buffer, length, moteID);\t\n\t}", "public abstract void write(T dataElement);", "public void write(byte[] buffer);", "public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\n\t}", "public void writeData(final Socket id) throws IOException {\r\n final byte[] dataRep = getDataRep();\r\n COPSUtil.writeData(id, dataRep, dataRep.length);\r\n }", "public int write(byte[] bytes, int offset, int length) throws FTD2XXException {\n Memory memory = new Memory(length);\n memory.write(0, bytes, offset, length);\n IntByReference wrote = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_Write(ftHandle, memory, length, wrote));\n\n return wrote.getValue();\n }", "static void stax_to_mem(String passed){\n\t\tmemory.put(hexa_to_deci(registers.get('H')+registers.get('L')),registers.get('A'));\n\t}", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "protected abstract void writeToExternal(byte[] b, int off, int len) throws IOException;", "protected boolean setBathWaterVolumeSetting3(byte[] edt) {return false;}", "private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}", "public void WriteAtts(CommunicationBuffer buf)\n {\n if(WriteSelect(0, buf))\n buf.WriteString(host);\n if(WriteSelect(1, buf))\n buf.WriteInt(port);\n if(WriteSelect(2, buf))\n buf.WriteString(securityKey);\n if(WriteSelect(3, buf))\n buf.WriteStringVector(otherNames);\n if(WriteSelect(4, buf))\n buf.WriteStringVector(otherValues);\n if(WriteSelect(5, buf))\n {\n buf.WriteInt(genericCommands.size());\n for(int i = 0; i < genericCommands.size(); ++i)\n {\n avtSimulationCommandSpecification tmp = (avtSimulationCommandSpecification)genericCommands.elementAt(i);\n tmp.Write(buf);\n }\n }\n if(WriteSelect(6, buf))\n buf.WriteInt(mode);\n if(WriteSelect(7, buf))\n {\n buf.WriteInt(customCommands.size());\n for(int i = 0; i < customCommands.size(); ++i)\n {\n avtSimulationCommandSpecification tmp = (avtSimulationCommandSpecification)customCommands.elementAt(i);\n tmp.Write(buf);\n }\n }\n if(WriteSelect(8, buf))\n buf.WriteString(message);\n }", "void writeByteArray(ByteArray array);", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public static void lcd_WriteChar ( int data) {\n lcd_RawWrite( Rs | (data & 0xF0));\n lcd_RawWrite( Rs | ((data <<4 ) & 0xF0));\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 }", "private void savePaketdata(DatagramPacket udpPacket)throws IOException{\n // Get IP address and port.\n InetAddress address = udpPacket.getAddress();\n int port = udpPacket.getPort();\n // Get packet length\n int length = udpPacket.getLength();\n // Get the payload and print.\n ObjectInputStream iStream = new ObjectInputStream(new ByteArrayInputStream(udpPacket.getData()));\n try {\n Product product = (Product)iStream.readObject();\n if(product.getValueOfProduct() < MIN_VALUE_OF_PRODUCT){\n makeOrder(new SensorData(product,port,address,length));\n }\n saveSensorData(address,port,product,length);\n String tmp = \"Client buy: \" + \"0 \" + \"no\" + \" and pay \" + \"no\" + \" euro.\";\n sendAnswer(new SensorData(product,port,address,length),tmp);\n iStream.close();\n //printPacketData(address,port,length,product);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void write(byte[] buf) throws IOException;", "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 }", "public abstract void writeData(DataOutput dout) throws IOException;", "public void sendBye() throws IOException {\n if (_out != null) {\n writeHeader();\n _dos.writeBytes(\"BYE\\0\");\n _dos.writeInt(0);\n _baos.writeTo(_out);\n cleanup();\n }\n }", "@Test\n public void writeTest() {\n try (ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ByteArrayOutputStream baos2 = new ByteArrayOutputStream()) {\n // correspond to \"ABCDE\"\n // write a single byte\n baos.write(0x41);\n baos.write(0x42);\n baos.write(0x43);\n baos.write(0x44);\n baos.write(0x45);\n log.info(methodLog(0,\n \"Write \" + baos.size() + \" bytes\",\n \"baos\", String.format(\"%3d bytes:%s\", baos.size(), baos)));\n\n // write a specified size bytes\n baos.write(lettersByteArray, 0, SIZE_BLOCK);\n log.info(methodLog(1,\n \"Write a block of \" + SIZE_BLOCK,\n \"baos\", String.format(\"%3d bytes:%s\", baos.size(), baos)));\n\n // convert to a byte array\n byte[] buf = baos.toByteArray();\n log.info(methodLog(2,\n \"To a byte array\",\n \"buf\", String.format(\"%3d bytes:%s\", buf.length, new String(buf))));\n\n // write to another output stream\n baos.writeTo(baos2);\n log.info(methodLog(3,\n \"Write to another stream\",\n \"baos2\", String.format(\"%3d bytes:%s\", baos2.size(), baos2)));\n } catch (IOException e) {\n log.info(exceptionLog(e));\n }\n }", "private void m6666x() {\n if (C1424v.m6870a(\"android.permission.WRITE_EXTERNAL_STORAGE\", this)) {\n C0927a.m4982a().mo5050a(new C1306Za(this), 0);\n }\n }", "@Test\n public void testWriteByteArray() {\n System.out.println(\"writeByteArray\");\n /** Positive testing. */\n String bytes = \"spam\";\n String expResult = \"4:spam\";\n String result = Bencoder.writeByteArray(bytes.getBytes(BConst.ASCII));\n assertEquals(expResult, result);\n bytes = \"\";\n expResult = \"0:\";\n result = Bencoder.writeByteArray(bytes.getBytes(BConst.ASCII));\n assertEquals(expResult, result);\n }", "public void writeRadioDACs() throws IOException\n {\n writeVirtualAddress(0xB8, 0x01);\n try\n {\n do\n {\n Thread.sleep(10L);\n } \n while (readVirtualAddress(0xB9) == 1);\n }\n catch (InterruptedException intx)\n {\n // Do nothing\n }\n }", "public void write(byte[] buffer) {\n try {\n String bufferstring=\"a5550100a2\";\n // byte [] buffer03=new byte[]{(byte) 0xa5, Byte.parseByte(\"ffaa\"),0x01,0x00, (byte) 0xa2};\n byte buffer01[]=bufferstring.getBytes();\n byte [] buffer02=new byte[]{(byte) 0xa5,0x55,0x01,0x00, (byte) 0xa2};\n\n\n //for(int i=0;i<100000;i++) {\n mmOutStream.write(buffer);\n // Thread.sleep(1000);\n //}\n //\n //Share the sent message back to the UI Activity\n// mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer)\n// .sendToTarget();\n } catch (Exception e) {\n Log.e(TAG, \"Exception during write\", e);\n }\n }", "@Override\n\tpublic int WriteToByteArray(byte[] data, int pos) {\n\t\treturn 0;\n\t}" ]
[ "0.6811986", "0.6736442", "0.66071904", "0.63817114", "0.60125536", "0.5629799", "0.5621116", "0.5480666", "0.5431282", "0.54153925", "0.5344116", "0.52903724", "0.52825236", "0.5281351", "0.52757186", "0.5273405", "0.5269645", "0.5262697", "0.5223419", "0.5154558", "0.51181036", "0.5108647", "0.50945675", "0.5091211", "0.5079127", "0.50685304", "0.50570935", "0.5043746", "0.50298315", "0.50286067", "0.5018358", "0.5006078", "0.49901056", "0.49750146", "0.49734434", "0.4971123", "0.49557754", "0.4946813", "0.49466372", "0.494174", "0.493354", "0.4929748", "0.49291986", "0.49202856", "0.49022025", "0.48942646", "0.48935816", "0.48827773", "0.4862847", "0.48336563", "0.4830031", "0.48126844", "0.48022404", "0.47981313", "0.47957543", "0.4779407", "0.47787905", "0.47767118", "0.4765242", "0.4759416", "0.4739267", "0.4737736", "0.47324318", "0.47299224", "0.47296444", "0.47268608", "0.47244164", "0.4719447", "0.47184184", "0.4716474", "0.47147286", "0.47129458", "0.47086516", "0.46937868", "0.4681207", "0.46801928", "0.46723038", "0.4671648", "0.46652925", "0.46617997", "0.46613848", "0.46610367", "0.4660117", "0.4652629", "0.4652345", "0.46420133", "0.46412295", "0.46362814", "0.46346813", "0.4617455", "0.4612835", "0.46113583", "0.46032888", "0.4603126", "0.4600878", "0.4596778", "0.45878977", "0.4585248", "0.4580358", "0.45802367" ]
0.7643708
0
Get the available size of the EEPROM user area
public int getEEPROMUserAreaSize() throws FTD2XXException { IntByReference size = new IntByReference(); ensureFTStatus(ftd2xx.FT_EE_UASize(ftHandle, size)); return size.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getOccupiedSize();", "public int getIdentifiedUserDataSize() {\n return super.getCdSector().getCdUserDataSize() - 20;\n }", "public int getSize() {\n\n\treturn getSectors().size() * getUnitSize(); // 254 byte sectors\n }", "int getLocalSize();", "public int getLocalSize();", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public static long getAvailableExternalStorageSize() {\n StatFs stat = new StatFs(getExternalStoragePath());\n return stat.getBlockSize() * stat.getAvailableBlocks();\n }", "public int getUnitSize() {\n\t\n\treturn 254; // A d64 block is 254 bytes (256 - pointer to the next sector).\n }", "long storageSize();", "int getCurrentSize();", "public long memoriaRamDisponivel(){\n return hardware.getMemory().getAvailable();\n }", "public double getOccupiedRamGB () { return getRamBaseResource().getOccupiedCapacity(); }", "public static long getAvailableInternalStorageSize() {\n StatFs stat = new StatFs(getInternalStoragePath());\n return stat.getBlockSize() * stat.getAvailableBlocks();\n }", "public int getMainMemorySize(){ return Integer.parseInt(mainMemorySize.getText()); }", "public double getOccupiedHdGB () { return getHdBaseResource().getOccupiedCapacity(); }", "short getPaperSize();", "int getTotalSize();", "public int getTotalSize();", "long getSize();", "public static int totalSize_data() {\n return (480 / 8);\n }", "public int getSize() {\n return memory.length;\n }", "Integer diskSizeGB();", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public long getStorageCardAvail() {\n long size = 0;\n String status = Environment.getExternalStorageState();\n\n if (status.equals(Environment.MEDIA_MOUNTED)) {\n try {\n File path = Environment.getExternalStorageDirectory();\n StatFs stat = new StatFs(path.getPath());\n long blockSize = stat.getBlockSize();\n long availableBlocks = stat.getAvailableBlocks();\n\n size = availableBlocks * blockSize;\n\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n }\n return size;\n }", "public long getSize();", "int getAreaSize();", "public String getEngineSize() {\r\n return ENGINE_SIZE[engineSize]; }", "public static long getAllSize1(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tStatFs stat = new StatFs(path.getPath()); \n\t\tlong blockSize = stat.getBlockSize(); \n\t\tlong availableBlocks = stat.getBlockCount();\n\t\tsize = availableBlocks * blockSize; \n\t\treturn size;\n\t}", "long getMemorySize() {\n return MemoryBudget.DELTAINFO_OVERHEAD +\n MemoryBudget.byteArraySize(key.length);\n }", "public static long getAvailableInternalMemorySize() {\r\n File path = Environment.getDataDirectory();\r\n StatFs stat = new StatFs(path.getPath());\r\n long blockSize = stat.getBlockSize();\r\n long availableBlocks = stat.getAvailableBlocks();\r\n return availableBlocks * blockSize;\r\n }", "public int officialSize()\n {\n return this.originalSizeOfDeck;\n }", "@Override\n public int getUsedSize() {\n return usedSize;\n }", "public int getExtendedTableLength() {\n return mem.getChar(40);\n }", "@Override\n public int getStorageSize() {\n int nCells = nRows * nCols;\n return 16 + 8 * nCells;\n }", "public static int totalSize_entries_receiveEst() {\n return (176 / 8);\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public static byte getSize() {\n return SIZE;\n }", "public int getDesiredSize()\n\t{\n\t\treturn desiredSize;\n\t}", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "double getSize();", "Long diskSizeBytes();", "public int GetSize() {\n\t\tif(this.V == 0) {\n\t\t\t\n\t\t\t// Read from settings file\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"settings.txt\"));\n\t\t\t\tString line;\n\t\t\t\tif((line = br.readLine()) != null) {\n\t\t\t\t\tthis.V = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t}\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn this.V;\n\t}", "public String readFullEEPROMUserAreaAsString() throws IOException {\n IntByReference actually = new IntByReference();\n int numberOfBytes = getEEPROMUserAreaSize();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getString(0);\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getLocalOffHeapSize();", "public static long getRealSizeOnSdcard() {\n File path = new File(Environment.getExternalStorageDirectory().getAbsolutePath());\n StatFs stat = new StatFs(path.getPath());\n long blockSize = stat.getBlockSize();\n long availableBlocks = stat.getAvailableBlocks();\n return availableBlocks * blockSize;\n }", "int getLostedSize();", "public static long getAvailableDiskSpace() {\r\n\t\treturn availableDiskSpace;\r\n\t}", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public long getSize() {\n return size.get();\n }", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "public final long getAvailable()\n\t{\n\t\treturn entrySize - entryOffset;\n\t}", "public long getSize() {\r\n return size;\r\n }", "public long getSize() {\n\t\treturn size;\n\t}", "public synchronized int getEntrySize() {\n return bytesPerSlot;\n }", "public long getSize() {\n return size;\n }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public long getMemoryInternalAvail() {\n StatFs stat = new StatFs(Environment.getDataDirectory().getPath());\n long blockSize = stat.getBlockSize();\n long availableBlocks = stat.getAvailableBlocks();\n return availableBlocks * blockSize;\n }", "public Long get_cacheutilizedmemorykb() throws Exception {\n\t\treturn this.cacheutilizedmemorykb;\n\t}", "int memSize() {\r\n\t\treturn BASE_NODE_SIZE + 5 * 4;\r\n\t}", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "@NotPersistent\n public String getSize() {\n return size;\n }", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "long getAvailableSpace() throws IOException;", "int getSize ();", "public byte[] readFullEEPROMUserArea() throws FTD2XXException {\n int numberOfBytes = getEEPROMUserAreaSize();\n return readEEPROMUserArea(numberOfBytes);\n }", "long getLocalOffHeapSizeInBytes();", "@Override\n public long ramBytesUsed() {\n ensureOpen();\n return sizeInBytes.get();\n }", "private int getSize() {\n\t\t\treturn size;\n\t\t}", "public int getActiveSize() {\r\n return size();\r\n }", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "public int get_size();", "public int get_size();" ]
[ "0.73750347", "0.69106996", "0.6821863", "0.67809236", "0.67061394", "0.6705657", "0.6693627", "0.667572", "0.66702473", "0.6645832", "0.6630869", "0.65655327", "0.6535564", "0.65125793", "0.6501961", "0.65003747", "0.6495022", "0.6493994", "0.6484103", "0.6457486", "0.64533675", "0.64413905", "0.6426136", "0.6411916", "0.64014137", "0.6356171", "0.63343614", "0.6333928", "0.6326949", "0.6318985", "0.63186765", "0.63150823", "0.63086015", "0.62786335", "0.6267389", "0.6249405", "0.6247905", "0.6247746", "0.6245203", "0.6232349", "0.62319493", "0.6231501", "0.62274086", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6226139", "0.6222413", "0.62209255", "0.6215574", "0.620976", "0.6206637", "0.6201641", "0.62014294", "0.62014294", "0.6199578", "0.61971056", "0.6194374", "0.6185499", "0.6184574", "0.6173958", "0.6173958", "0.6173958", "0.6173958", "0.6173958", "0.6173958", "0.6173958", "0.6173958", "0.6173958", "0.6173958", "0.61734205", "0.6165496", "0.61629534", "0.6162158", "0.6162158", "0.6162158", "0.6162158", "0.61591125", "0.6154009", "0.61515623", "0.61464614", "0.6140007", "0.6131801", "0.6123961", "0.6119903", "0.61180687", "0.61154026", "0.61149937", "0.60900825", "0.60876775", "0.60876775" ]
0.8166574
0
Read the contents of the EEPROM user area
public byte[] readEEPROMUserArea(int numberOfBytes) throws FTD2XXException { IntByReference actually = new IntByReference(); Memory dest = new Memory(numberOfBytes); ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually)); return dest.getByteArray(0, actually.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readFullEEPROMUserAreaAsString() throws IOException {\n IntByReference actually = new IntByReference();\n int numberOfBytes = getEEPROMUserAreaSize();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getString(0);\n }", "public byte[] readFullEEPROMUserArea() throws FTD2XXException {\n int numberOfBytes = getEEPROMUserAreaSize();\n return readEEPROMUserArea(numberOfBytes);\n }", "public EEPROMData readEEPROM() throws FTD2XXException {\n FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference();\n ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference));\n return new EEPROMData(ftByReference);\n }", "public int getEEPROMUserAreaSize() throws FTD2XXException {\n IntByReference size = new IntByReference();\n ensureFTStatus(ftd2xx.FT_EE_UASize(ftHandle, size));\n return size.getValue();\n }", "public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }", "public EepromX readEEPROM_X() throws FTD2XXException {\n EepromX eeprom = new EepromX();\n Memory manufacturer = new Memory(64);\n Memory manufacturerId = new Memory(64);\n Memory description = new Memory(64);\n Memory serialNumber = new Memory(64);\n\n Memory mem = new Memory(56);\n mem.setInt(0, 9);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Read(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), manufacturer, manufacturerId, description,\n serialNumber));\n\n eeprom.setManufacturer(manufacturer.getString(0));\n eeprom.setManufacturerId(manufacturerId.getString(0));\n devDescription = description.getString(0);\n eeprom.setDescription(devDescription);\n devSerialNumber = serialNumber.getString(0);\n eeprom.setSerialNumber(devSerialNumber);\n\n return eeprom;\n }", "public void writeEEPROMUserArea(String data) throws FTD2XXException {\n Memory source = new Memory(data.length());\n source.setString(0, data);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));\n }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "private void organizeEEPROM() {\n\t \n \n\t //put red, green, blue, and activitity values into r, g, b, and a\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t r[(i)/8] = 256*EEPROM[i] + EEPROM[i + 1];\n\t\t g[(i)/8] = 256*EEPROM[i + 2] + EEPROM[i + 3];\n\t\t b[(i)/8] = 256*EEPROM[i + 4] + EEPROM[i + 5];\n\t\t a[(i)/8] = 256*EEPROM[i + 6] + EEPROM[i + 7];\n \n\t\t //set resets to zero by default\n\t\t if((r[(i)/8] == 65278) && (b[(i)/8] == 65278) && (g[i/8] == 0)) {\n\t\t\t r[(i)/8] = 0;\n\t\t\t g[(i)/8] = 0;\n\t\t\t b[(i)/8] = 0;\n\t\t\t a[(i)/8] = 0;\n\t\t }\n\t }\n \n\t //get end of address\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t if((EEPROM[i] == 255) && (EEPROM[i + 1] == 255)) {\n\t\t\t endaddress = i/8;\n\t\t\t break;\n\t\t }\n\t }\n\t if(isnew) {\n\t\t ID = Integer.parseInt(asciiheader[8]);\n\t\t mm = Integer.parseInt(asciiheader[7].substring(0, 2));\n\t\t dd = Integer.parseInt(asciiheader[7].substring(3, 5));\n\t\t yy = Integer.parseInt(asciiheader[7].substring(6, 8));\n\t\t HH = Integer.parseInt(asciiheader[7].substring(9, 11));\n\t\t MM = Integer.parseInt(asciiheader[7].substring(12, 14));\n\t\t period = Integer.parseInt(asciiheader[3]);\n\t\t\t\t \n\t\t if(isUTC) {\n\t\t\t offset = Calendar.get(Calendar.DST_OFFSET) / 3600000;\n\t\t\t //apply offset, but if offset rolls us into a new day, we need to account for that\n\t\t\t if (HH + offset > 23) {\n\t\t\t\t dd += 1;\n\t\t\t\t HH = (HH + offset) % 24;\n\t\t\t\t //if our new day rolls us into a new month, account for that\n\t\t\t\t //30 days have September, April, June, and November\n\t\t\t\t if(dd > 30 && (mm == 9 || mm == 4 || mm == 6 || mm == 11)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //All the rest have 31, except for February who is a fuckwad.\n\t\t\t\t else if (dd > 31 && !(mm == 9 || mm == 4 || mm == 6 || mm == 11 || mm == 2)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and not a leap year\n\t\t\t\t else if (dd > 28 && (yy%4 != 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and a leap year\n\t\t\t\t else if (dd > 29 && (yy%4 == 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //Did we rollover our year doing this?\n\t\t\t\t if (mm > 12) {\n\t\t\t\t\t mm = 1;\n\t\t\t\t\t yy += 1;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t else {\n\t\t\t\t HH = HH + offset;\n\t\t\t }\n\t\t }\n\t }\n\t else {\n\t\t ID = (header[3] - 48)*1000 + (header[4] - 48)*100 + (header[5] - 48)*10 + (header[6] - 48);\n\t\t mm = (header[9] - 48)*10 + (header[10] - 48);\n\t\t dd = (header[12] - 48)*10 + (header[13] - 48);\n\t\t yy = (header[15] - 48)*10 + (header[16] - 48);\n\t\t HH = (header[18] - 48)*10 + (header[19] - 48);\n\t\t MM = (header[21] - 48)*10 + (header[22] - 48);\n\t\t period = (header[25] - 48)*100 + (header[26] - 48)*10 + (header[27] - 48);\n\t }\n \t}", "public void read() {\r\n\t\tbusExt.put(data);\r\n\t}", "public byte read_user_register() throws IOException {\n return (byte) HTU21D.READ_USER_REG.read(device);\n }", "static void take_memory_values() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\t\tString input = scan.readLine();\n\t\tif(input.equals(\"N\"))\n\t\t\treturn;\n\t\taddress = hexa_to_deci(input);\n\t\tprint_the_address(address);\n\t\tinput = scan.readLine();\n\t\tif(input.length()==2)\n\t\t\tmemory.put(address,input);\n\t\telse{\n\t\t\tmemory.put(address,input.substring(2));\n\t\t\tmemory.put(address+1,input.substring(0,2));\n\t\t}\n\t\t//System.out.println(address+\" \"+memory.get(address));\n\t\ttake_memory_values();\n\t}", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "private String read(int address)\n {\n return MMU.read(VMA.get( address/RAM.getPageSize()) * RAM.getPageSize() + (address % RAM.getPageSize()));\n }", "public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException {\n String manufacturer = eeprom.getManufacturer();\n Memory mManufacturer = new Memory(manufacturer.length() + 1);\n mManufacturer.setString(0, manufacturer);\n\n String manufacturerId = eeprom.getManufacturerId();\n Memory mManufacturerId = new Memory(manufacturerId.length() + 1);\n mManufacturerId.setString(0, manufacturerId);\n\n String description = eeprom.getDescription();\n Memory mDescription = new Memory(description.length() + 1);\n mDescription.setString(0, description);\n\n String serialNumber = eeprom.getSerialNumber();\n Memory mSerialNumber = new Memory(serialNumber.length() + 1);\n mSerialNumber.setString(0, serialNumber);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId,\n mDescription, mSerialNumber));\n\n devSerialNumber = serialNumber;\n devDescription = description;\n }", "public void readEquipment() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/equipment.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n equipment = (HashMap<String, Equipment>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n equipment = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n }", "public int read(int address){\n switch (address){\r\n /*\r\n case 0: {\r\n return registers_w[CONTROL_REGISTER_1];\r\n }\r\n\r\n case 3: {\r\n return spriteMemoryCounter;\r\n }\r\n case 5:{\r\n return registers_w[SCROLL_OFFSET];\r\n }\r\n case 6:{\r\n return horizontalTileCounter | (verticalTileCounter << 5) | (horizontalNameCounter << 10) | (verticalNameCounter << 11);\r\n }\r\n */\r\n\t\t\tcase 0: {\r\n\t\t\t\t\t\treturn scanLine;\r\n\t\t\t\t\t\t// hack\r\n\t\t\t}\r\n case 1: {\r\n return registers_w[CONTROL_REGISTER_2];\r\n }\r\n case STATUS_REGISTER:{ // 2\r\n int returnVal = registers_r[STATUS_REGISTER];\r\n registers_r[STATUS_REGISTER] = getBitsUnset(registers_r[STATUS_REGISTER], STATUS_VBLANK); //| STATUS_SPRITE0_HIT);\r\n isFirstWriteToScroll = true;\r\n lastPPUAddressWasHigh = false;\r\n //logger.info(\"Status is: \" + Integer.toHexString(returnVal));\r\n return returnVal;\r\n }\r\n case SPRITE_MEMORY_DATA:{ // 4\r\n return readFromSpriteMemory();\r\n }\r\n case PPU_MEMORY_DATA:{ // 7\r\n int returnVal = 0xFF & registers_r[PPU_MEMORY_DATA]; // buffered read\r\n \r\n //int returnVal = 0xFF & memory.read(ppuMemoryAddress);\r\n\t\t\tint readAddress = horizontalTileCounter \r\n\t\t\t\t\t\t\t\t| (verticalTileCounter << 5)\r\n\t\t\t\t\t\t\t\t| (horizontalNameCounter << 10)\r\n\t\t\t\t\t\t\t\t| (verticalNameCounter << 11)\r\n\t\t\t\t\t\t\t\t| ((fineVerticalCounter & 0x3) << 12);\r\n\r\n\t\t\tif (readAddress == 0x3F10 || readAddress == 0x3F14 || readAddress == 0x3F18 || readAddress == 0x3F1C) {\r\n\t\t\t\treadAddress = readAddress & 0x3F0F;\r\n\t\t\t}\r\n registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(readAddress);\r\n // registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(ppuMemoryAddress);\r\n incrementCounters();\r\n /*\r\n if ((registers_w[CONTROL_REGISTER_1] & CR1_VERTICAL_WRITE) == 0){\r\n ppuMemoryAddress++;\r\n }\r\n else {\r\n ppuMemoryAddress = (ppuMemoryAddress + 32);\r\n }\r\n */\r\n return returnVal;\r\n }\r\n\r\n default: throw new RuntimeException(\"Invalid read attempt: \" + Integer.toHexString(address));\r\n }\r\n }", "public void ownRead();", "public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void read(Event evt){\n evt.read(bank); \n this.notifyRead();\n }", "public String read();", "public void printMEM_Read(){\r\n\t\tSystem.out.println(\"****EX/MEM Read: ****\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"M Control Bits: \" + \r\n\t\t\t\tBranch + \"\" + MemRead + \"\" + MemWrite);\r\n\t\tSystem.out.println(\"WB Control Bits:\" +WBBits);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"ALUresult: 0x\" + Integer.toHexString(read_ALUresult));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"SBValue: 0x\" + Integer.toHexString(SBVal));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"WriteRegNum: \" + writeRegVal);\r\n\r\n\r\n\t\t\r\n\t}", "public void processMemory()\n {\n try{\n String memory = oReader.readLine();\n int index = 0;\n //adding mememory to and array\n for(int i = 0; i<memory.length()-2; i+=2)\n {\n String hexbyte = memory.substring(i, i+2); //get the byt ein hex\n mem.addEntry(\"0x\"+hexbyte, index, 1);\n index++;\n }\n } catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "byte[] readBytes();", "public byte[] getUserKey() throws IOException\n {\n byte[] u = null;\n COSString user = (COSString)encryptionDictionary.getDictionaryObject( COSName.getPDFName( \"U\" ) );\n if( user != null )\n {\n u = user.getBytes();\n }\n return u;\n }", "String read();", "String read();", "public void readEditTexts() {\n }", "public abstract byte[] readData(int address, int length);", "public void read(long address, long range, int moteID) {\n\t\ttotalRange = range;\n\t\tstartAddress = address;\n\t\tfocusedAddress = address;\n\t\tfocusedMote = moteID;\n\t\tif(range > ViewerMsg.totalSize_data()) {\n\t\t\tfocusedRange = ViewerMsg.totalSize_data();\n\t\t} else {\n\t\t\tfocusedRange = (int) range;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"0x\" + Long.toHexString(startAddress) + \" to 0x\" + Long.toHexString(startAddress + totalRange));\n\t\tSystem.out.println(\"_________________________________________________\");\n\t\t\n\t\tmote.read(address, focusedRange, focusedMote);\n\t\t\n\t}", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "private static void read(Client client,String user,String filename) throws SystemException, TException {\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\t\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\t// predIP = \"127.0.0.1\";\n\t\tint predPort = succNode.port;\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tchord_auto_generated.FileStore.Client client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Reading file location : \" + predPort + \" File :\"+filename+\"Owner : \"+user);\n\t\t\tRFile rFile = new RFile();\n\t\t\trFile = client1.readFile(filename, user);\n\t\t\tSystem.out.println(rFile.getContent());\n\t\t\tSystem.out.println(rFile.getMeta().getVersion());\n\t\t\tSystem.out.println(rFile.getMeta().getContentHash());\n\t\t\tSystem.out.println(\"Reading file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void getUserData()\n\t{\n\t\tint count; //Loop counter\n\t\tString pathname = filename;\n\t\t\n\t\tString div = \",\"; //Used to divide info.\n\t\tString [] userArray; //To hold divided info.\n\t\t\n\t\ttry {\n FileReader reader = new FileReader(pathname);\n BufferedReader bufferedReader = new BufferedReader(reader);\n \n String line;\n \n //While getting each line of the data file, BUT stops when USER data found.\n //Loop through each line and determine which user data to choose.\n while ((line = bufferedReader.readLine()) != null) {\n // System.out.println(\"User Data in file: \" + line);\n \n System.out.println(\"Checking User name in line of data ...\");\n \n //This divides the info in the data file into an array.\n userArray = line.split(div); \n \n \n if (User.equals(userArray[0]))\n \t{\n \t\tSystem.out.println(\"User Found: \" + User);\n \t\tuser_line = line;\n \t\t//Assigning data to class variables.\n \t\tUserPassword = userArray[1].trim(); //Assigning the password.\n \t\tDevice_ID = Integer.parseInt(userArray[2].trim()); //Assigning device ID.\n \t\tisLost = (Integer.parseInt(userArray[3].trim()) == 0) ? false : true;\n \t\t\n \t\t//This reads out information.\n \t\tfor (count = 0; count < userArray.length; count++)\n {\n \t\t\tSystem.out.println(\"INFO: \" + userArray[count]);\n }\n \t\tbreak;\n \t}\n System.out.println(\"========================================\");\n }\n reader.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}", "private void readBinary(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// check if access to this file is allowed\r\n\t\tif (!fileAccessAllowed(READ_BINARY))\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t// use P1 and P2 as offset\r\n\t\tshort offset = Util.makeShort(buffer[ISO7816.OFFSET_P1], buffer[ISO7816.OFFSET_P2]);\r\n\t\tif (offset < 0)\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tshort le = apdu.setOutgoing();\r\n\t\t// impossible to start reading from offset large than size of file\t\t\t\t\r\n\t\tif (selectedFile == masterFile)\r\n\t\t\tISOException.throwIt(ISO7816.SW_FILE_INVALID); //~allow_dead_code Dead because fileAccessAllowed() checks that selectedFile instanceof ElementaryFile and masterFile is not an ElementaryFile.\r\n\t\t//@ open selected_file_types(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);\r\n\t\tshort size = ((ElementaryFile) selectedFile).getCurrentSize();\r\n\t\tif (offset > size)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t// number of bytes in file starting from offset\r\n\t\tshort remaining = (short) (size - offset);\r\n\t\tif (le == 0) {\r\n\t\t\tif (remaining < 256) {\r\n\t\t\t\t// wrong Le field\r\n\t\t\t\t// SW2 encodes the exact number of available data bytes\r\n\t\t\t\tshort sw = (short) (ISO7816.SW_CORRECT_LENGTH_00 | remaining);\r\n\t\t\t\tISOException.throwIt(sw);\r\n\t\t\t} else\r\n\t\t\t\t// Le = 0 is interpreted as 256 bytes\r\n\t\t\t\tle = 256;\r\n\t\t}\r\n\t\t// only read out the remaining bytes\r\n\t\tif (le > remaining) {\r\n\t\t\tle = remaining;\r\n\t\t}\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength(le);\r\n\t\t// write selected file in APDU\r\n\t\t//VF bug; was apdu.sendBytesLong(((ElementaryFile) selectedFile).getData(), offset, le);\r\n\t\t//VF probleem: originele lijn was apdu.sendBytesLong(ef.getData(), offset, le);\r\n\t\t// het probleem hiermee is dat de getData()-methode een ElementaryFile nodig heeft, en dat\r\n\t\t// sendBytesLong vereist dat het resultaat niet null is. De niet-null vereiste zit geencodeerd\r\n\t\t// in ElementaryFile, dus als je dat predicaat opent, dan weet VF dat de data niet-null is, maar\r\n\t\t// dan werkt de call op getData niet. Als je de ElementaryFile gesloten laat, dan lukt de call naar\r\n\t\t// getData, maar weet je niet dat het niet-null is.\r\n\t\tElementaryFile ef = (ElementaryFile)selectedFile;\r\n\t\tbyte[] bf = ef.getData();\r\n\t\t//@ open [1/2]ef.ElementaryFile(?d1, ?d2, ?d3, ?d4, ?d5, ?info); // hard to eliminate\r\n\t\tapdu.sendBytesLong(bf, offset, le);\r\n\t\t////@ close [1/2]ef.ElementaryFile(d1, d2, d3, d4, d5, info); // auto\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}", "public void read() {\n\t\tthis.isRead = true;\n\t}", "public byte[] read();", "protected String readKeyFromInternalStorage(String fileContent) {\n try {\n myLogPrint(\"Inside Second Trying the write to internal: Line 686\");\n\n BufferedReader inputReader = new BufferedReader(new InputStreamReader(\n openFileInput(fileContent)));\n String inputString;\n StringBuffer stringBuffer = new StringBuffer();\n\n while ((inputString = inputReader.readLine()) != null) {\n stringBuffer.append(inputString + \"\\n\");\n }\n\n myLogPrintLN(\"The KeyCode in internal storage is: \", stringBuffer.toString());\n return stringBuffer.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n\n }", "@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 }", "@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void read(IORequest request) throws MemoryFault {\n setBaseLimit();\n // sets what we need to be able to read\n int deviceNumber = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc);\n int platter = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 1);\n int platStart = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 2);\n int datasize = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 3);\n int memLoc = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 4) + Process_Table[request.prognum].base;\n// System.out.println(deviceNumber+\"device\");\n// System.out.println(platter+\"plat\");\n// System.out.println(platStart+\"Start\");\n// System.out.println(datasize+\"data\");\n// System.out.println(memLoc+\"mem\");\n\n Process_Table[currentProcess].status = ProcessState.waiting;\n\n machine.devices[deviceNumber].controlRegister.register[0] = DeviceControllerOperations.READ;\n machine.devices[deviceNumber].controlRegister.register[1] = platter;\n machine.devices[deviceNumber].controlRegister.register[2] = platStart;\n machine.devices[deviceNumber].controlRegister.register[3] = datasize;\n machine.devices[deviceNumber].controlRegister.latch();\n for (int i = 0; i < datasize; i++) {\n machine.memory.store(i + memLoc, machine.devices[deviceNumber].buffer[i]);\n\n }\n //System.out.println(waitQ[Machine.DISK1].size() + \" READ\");\n // initiate the latch\n\n }", "@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}", "public void readUsers() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/users.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n users = (HashMap<String, User>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n users = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n\n }", "private void readFromFile(){\n\t\t\n\t\ttry {\n\t\t\tFile file=new File(\"controller.txt\");\n\t\t\tFileInputStream fin;\n\t\t\tfin = new FileInputStream(file);\n\t\t\tDataInputStream din=new DataInputStream(fin);\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(din));\n\t\t\t\n\t\t\tfor(int i=0; i<2; i++){\n\t\t\t\tif(i==0)\n\t\t\t\t\tcodedUserName=br.readLine();\n\t\t\t\telse \n\t\t\t\t\tcodedPassword=br.readLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private static String readInput() {\n String kbString = \"\";\n File kbFile = new File(\"kb.txt\");\n if(kbFile.canRead()){\n try {\n FileInputStream fileInputStream = new FileInputStream(kbFile);\n\n int c;\n while((c = fileInputStream.read()) != -1){\n kbString += (char) c;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return kbString;\n }", "void confirmRead();", "public static void load() {\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Read memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n//\t\tSystem.out.println(\"index\"+Integer.parseInt(mar.substring(0, mar.length() - 2), 2));\r\n\t\tcontent.setStr(getBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)]);\r\n\t\t\r\n\t\twriteMBR(content);\r\n\t\tTraceINF.write(\"Read finished.\");\r\n\t}", "ByteBuffer getApplicationData();", "public Device readFromDeviceFile(String fileName, String address) {\n\n Element eElement = null;\n File file = new File(SifebUtil.DEV_FILE_DIR + fileName + \".xml\");\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Device\");\n Node nNode = nList.item(0);\n eElement = (Element) nNode;\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n return getDevFromElement(eElement, address);\n }", "public UserInfo readData()\n\t{\n\t\t\n\t\tIterator<UserInfo> itr= iterator();\n\t\tUserInfo info;\n\t\tSystem.out.println(\"file has been read!\");\n\t\twhile(itr.hasNext()) {\n\t\t\t\n\t\t\tinfo= itr.next();\n\t\t\tif( info.getUrl().equalsIgnoreCase(file)) {\n\t\t\t\t\n\t\t\t\treturn info;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void retrieve() throws IOException {\n String data = fromServer.readUTF();\n// report(\"data: \" + data);\n String[] datas = data.split(COMMAND_DELIMITER);\n int isFull = Integer.parseInt(datas[0]);\n\n if(isFull == 1) {\n // points\n String[] points = datas[1].split(POINTS_DELIMITER);\n int[][] board = new int[SIDE][SIDE];\n for (int i = 0; i < points.length; i++) {\n board[i / SIDE][i % SIDE] = Integer.parseInt(points[i]);\n }\n boardComponent.setBoard(board);\n boardComponent.repaint();\n\n // players\n String[] players = datas[2].split(POINTS_DELIMITER);\n lbPl1.setText(players[0]);\n lbPl2.setText(players[1]);\n lbBlackStone.setIcon(blackIcon);\n lbWhiteStone.setIcon(whiteIcon);\n\n\n colorLabel.setText(\"You are a viewer.\");\n setButtons(false);\n btnNewGame.setEnabled(false);\n }\n\n // attendants\n try {\n String[] attendants = datas[3].split(POINTS_DELIMITER);\n for (String str : attendants) {\n listOfNames.add(str);\n nameListTextArea.append(str + \"\\n\");\n }\n// nameListTextArea.update(nameListTextArea.getGraphics());\n// atsScrollPane.setViewportView(nameListTextArea);\n }catch(Exception e){\n // when the first player enter the room, there is no existed attendants\n }\n\n }", "public static String readDiskMemory(String address){\n\t\treturn memory.get(address);\n\t}", "protected Object readUnknownData() throws IOException {\r\n byte[] bytesValue;\r\n Byte[] bytesV;\r\n Preferences.debug(\"Unknown data; length is \" + elementLength + \" fp = \" + getFilePointer() + \"\\n\", 2);\r\n\r\n if (elementLength <= 0) {\r\n Preferences.debug(\"Unknown data; Error length is \" + elementLength + \"!!!!!\\n\", 2);\r\n\r\n return null;\r\n }\r\n\r\n bytesValue = new byte[elementLength];\r\n read(bytesValue);\r\n bytesV = new Byte[elementLength];\r\n\r\n for (int k = 0; k < bytesValue.length; k++) {\r\n bytesV[k] = new Byte(bytesValue[k]);\r\n }\r\n\r\n return bytesV;\r\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tupm_m24lr64e.M24LR64E nfcTag = new upm_m24lr64e.M24LR64E(0);\n\n\t\t// This example accesses the device in the 'user' (default) mode,\n\t\t// reads the last byte of data in the EEPROM, inverts it, writes\n\t\t// it back, and then re-reads it.\n\n\t\t// Read the last byte of the EEPROM area\n\t\tint addr = upm_m24lr64e.M24LR64E.EEPROM_I2C_LENGTH - 1;\n\t\tSystem.out.println(\"Address: \" + addr);\n\t\tshort read = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// Now change it to it's opposite and write it\n\t\tread = (short) (~read & 0xff);\n\t\tnfcTag.writeByte(addr, read);\n\t\tSystem.out.println(\"Wrote: \" + read);\n\n\t\t// Now read it back\n\t\tread = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// ! [Interesting]\n\t}", "private void readPreferences() {\n configAutonomousCommand();\n }", "public static Object[] getUserData(){\n String name, password;\n\n System.out.println(\"\\n1. Manager\\n2. Customer\");\n int res = ConsoleReader.getInt();\n System.out.print(\"\\nEnter your name :\");\n ConsoleReader.getString();\n name = ConsoleReader.getString();\n System.out.print(\"Enter your password :\");\n password = ConsoleReader.getString();\n return new Object[] {res, name, password};\n }", "@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}", "public static ArrayList<User> readData() {\n ArrayList<User> users = new ArrayList<>();\n ObjectInputStream in = null;\n try {\n in = new ObjectInputStream(new FileInputStream(USER_SAVE_FILE_NAME));\n users = (ArrayList<User>) in.readObject();\n in.close();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n if (in == null) {\n return users;\n } else {\n try {\n in.close();\n } catch (Exception ex) {\n Logger.getLogger(Utilities.UserDataIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n return users;\n }", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "@Override\n\tpublic void read() {\n\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public String[] getDataReadCmd() {\n\t\tif(mode == null) {\r\n\t\t\tconsole.logError(\"No mode selected\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString path = sv.getModeFunction(mode, \"dataRead\");\t\t//Get mode's data read script path\r\n\t\tif(path == null || comPort == null) {\r\n\t\t\tconsole.logError(\"Error creating data read command.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString cmd[] = {\r\n\t\t\t\t\"python\",\r\n\t\t\t\tpath,\r\n\t\t\t\t\"-c\",\r\n\t\t\t\tcomPort,\r\n\t\t\t\t\"-f\",\r\n\t\t\t\tfilepath,\r\n\t\t\t\t\"-w\",\r\n\t\t\t\twriteAddress,\r\n\t\t\t\t\"-r\",\r\n\t\t\t\treadAddress,\r\n\t\t\t\t\"-h\",\r\n\t\t\t\thighAddress,\r\n\t\t\t\t\"-l\",\r\n\t\t\t\tlowAddress,\r\n\t\t\t\t\"-s\",\r\n\t\t\t\tsize\r\n\t\t};\r\n\t\treturn cmd;\r\n\t}", "public String[][] getTouRead()\r\n\t{\r\n\t\treturn touRead;\r\n\t}", "abstract void read();", "private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void interpretBytes() {\n\t\tuserSession.getUser().setMagicIndex(input.getInt(0x14));\n\t\tuserSession.getUser().setWeaponIndex(input.getInt(0x18));\n\t\tuserSession.getUser().setAccessoryIndex(input.getInt(0x1C));\n\t\tuserSession.getUser().setPetIndex(input.getInt(0x20));\n\t\tuserSession.getUser().setFootIndex(input.getInt(0x24));\n\t\tuserSession.getUser().setBodyIndex(input.getInt(0x28));\n\t\tuserSession.getUser().setHand1Index(input.getInt(0x2C));\n\t\tuserSession.getUser().setHand2Index(input.getInt(0x30));\n\t\tuserSession.getUser().setFaceIndex(input.getInt(0x34));\n\t\tuserSession.getUser().setHairIndex(input.getInt(0x38));\n\t\tuserSession.getUser().setHeadIndex(input.getInt(0x3C));\n\t}", "public static String readString()\n \n {\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n \n } catch(IOException e1) {\n System.out.println(\"Eingabefehler,\");\n \n }\n return wort;\n }", "String readString();", "protected BufferWrapper readElevations(URL url) throws IOException\n {\n try\n {\n ByteBuffer byteBuffer;\n synchronized (this.fileLock)\n {\n byteBuffer = WWIO.readURLContentToBuffer(url);\n }\n\n // Setup parameters to instruct BufferWrapper on how to interpret the ByteBuffer.\n AVList bufferParams = new AVListImpl();\n bufferParams.setValue(AVKey.DATA_TYPE, this.elevationDataPixelType);\n bufferParams.setValue(AVKey.BYTE_ORDER, this.elevationDataByteOrder);\n return BufferWrapper.wrap(byteBuffer, bufferParams);\n }\n catch (java.io.IOException e)\n {\n Logging.logger().log(java.util.logging.Level.SEVERE,\n \"ElevationModel.ExceptionReadingElevationFile\", url.toString());\n throw e;\n }\n }", "private void readFile() {\r\nif(isExternalStorageWritable()){\r\n Toast.makeText(this, \"Reading file.\", Toast.LENGTH_SHORT).show();\r\n StringBuilder sb = new StringBuilder();\r\n try{\r\n File textFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM + \"/Alluciam/\"), fileNameToUse);\r\n FileInputStream fis = new FileInputStream(textFile);\r\n if(fis != null){\r\n InputStreamReader isr = new InputStreamReader(fis);\r\n BufferedReader buff = new BufferedReader(isr);\r\n String line = null;\r\n while((line = buff.readLine()) != null){\r\n sb.append(line + \"\\n\\n\");\r\n }// this ends while line=buff.readLine\r\n fis.close();\r\n } // this ends if fis != null\r\n Toast.makeText(this, \"File has been read and closed.\", Toast.LENGTH_LONG).show();\r\n txt.setText(sb);\r\n } // this ends try\r\n catch (IOException e){\r\n Toast.makeText(this, \"IOException. File not found\", Toast.LENGTH_SHORT).show();\r\n e.printStackTrace();\r\n }// this ends catch\r\n} // this ends if isExternalStorageWritable\r\n else{\r\n Toast.makeText(this, \"Cannot read from External Storage.\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "public StructManager read() throws Exception;", "@Override\r\n\tpublic void read() {\n\r\n\t}", "protected void writeRead ()\n {\n stream.println (\" public void _read (org.omg.CORBA.portable.InputStream i)\");\n stream.println (\" {\");\n if (entry instanceof ValueBoxEntry)\n {\n TypedefEntry member = ((InterfaceState) ((ValueBoxEntry) entry).state ().elementAt (0)).entry;\n SymtabEntry mType = member.type ();\n if (mType instanceof StringEntry)\n stream.println (\" value = i.read_string ();\");\n\n else if (mType instanceof PrimitiveEntry)\n stream.println (\" value = \" + helperClass + \".read (i).value;\");\n\n else\n stream.println (\" value = \" + helperClass + \".read (i);\");\n }\n else\n stream.println (\" value = \" + helperClass + \".read (i);\");\n stream.println (\" }\");\n stream.println ();\n }", "public char[] storage_GET()\n {return storage_GET(new char[120], 0);}", "public long readMem(int index) throws Exception{\n\t\tif(index >= 0 && index < Constants.MEM_SIZE)\n\t\t\treturn memory[index];\n\t\telse\n\t\t\tthrow new Exception(\"Illegal memory location, trying to access MEM[\"+index+\"]\");\n\t}", "void read ();", "E read(K id);", "public synchronized static void readFlash(Context context, ByteBuffer buffer, int addr, int len) {\n byte[] flashData = null;\n\n File dir = context.getFilesDir();\n File targetFile = new File(dir.getAbsolutePath() + File.separator + FILE_NAME);\n\n try {\n if (!targetFile.exists()) {\n flashData = new byte[DATA_LEN];\n for (int i = 0; i < flashData.length; i++) {\n flashData[i] = (byte) 0xFF;\n }\n targetFile.createNewFile();\n FileOutputStream fos = new FileOutputStream(targetFile);\n fos.write(flashData);\n fos.flush();\n fos.close();\n } else {\n InputStream stream = new FileInputStream(targetFile);\n int length = stream.available();\n flashData = new byte[length];\n stream.read(flashData);\n stream.close();\n }\n } catch (IOException e) {\n }\n// TelinkLog.e(\"readFlash -- flashData capacity:\" + flashData.length + \" -- addr:\" + addr + \" -- len:\" + len);\n byte[] result = new byte[len];\n System.arraycopy(flashData, addr, result, 0, len);\n buffer.position(0);\n// buffer.\n buffer.put(result);\n// TelinkLog.e(\"########## buffer.capacity: \" + buffer.capacity());\n byte data0 = buffer.get(0);\n// TelinkLog.e(\"########## buffer.get(0): \" + buffer.get(0));\n\n// return flashData;\n }", "private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "public void readAdmin(String fileName)\n {\n try\n {\n FileReader inputFile = new FileReader(fileName);\n Scanner parser = new Scanner(inputFile);\n String[] array = parser.nextLine().split(\";\");\n for(int index = 0; index < array.length; index++)\n {\n String[] elements = array[index].split(\",\");\n String account = elements[0];\n String password = elements[1];\n setAdmin(index, account, password);\n }\n }\n catch(FileNotFoundException exception)\n {\n System.out.println(fileName + \" not found\");\n }\n catch(IOException exception)\n {\n System.out.println(\"Unexpected I/O error occured\");\n }\n\n }", "private void chimeraRead() throws IOException {\n \t \tif (chimera == null)\n \t \t\treturn;\n\n\t\tString line = null;\n\t\twhile ((line = lineReader.readLine()) != null) {\n\t\t\t// System.out.println(\"From Chimera-->\"+line);\n\t\t\tif (line.startsWith(\"CMD\")) {\n\t\t\t\tchimeraCommandRead(line.substring(4));\n\t\t\t} else if (line.startsWith(\"ModelChanged: \")) {\n\t\t\t\t(new ModelUpdater()).start();\n\t\t\t} else if (line.startsWith(\"SelectionChanged: \")) {\n\t\t\t\t(new SelectionUpdater()).start();\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "byte[] getEByteArray();", "public Object read();", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }", "public void execHandlerRead( Message msg ) {\n\t \t// create valid data bytes\n\t\tbyte[] buffer = (byte[]) msg.obj;\n\t\tint length = (int) msg.arg1;\n\t\tbyte[] bytes = new byte[ length ];\n\t\tfor ( int i=0; i < length; i++ ) {\n\t\t\tbytes[ i ] = buffer[ i ];\n\t\t}\n\t\t// debug\n\t\tString read = buildMsgBytes( \"r \", bytes );\n\t\tlog_d( read );\n\t\taddAndShowTextViewDebug( read );\n\t\tnotifyRead( bytes );\n\t}", "private boolean readThePaper() {\n boolean temp = false;\r\n try {\r\n temp = repairAreaInt.readThePaper(id);\r\n } catch (RemoteException e) {\r\n System.err.println(\"Excepção na invocação remota de método\" + getName() + \": \" + e.getMessage() + \"!\");\r\n System.exit(1);\r\n }\r\n return temp;\r\n }", "public byte[] read()\n {\n\t\t//byte[] responseData = ISOUtil.hex2byte(\"070088888888\");\n\t\tbyte[] responseData = null;\n try\n {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tlong end = System.currentTimeMillis();\n\n\t\t\t\twhile ((end - start) < 45000)\n\t\t\t\t{\n System.out.println(\"++++++ If parameters : read() : \"+inputdata+\" : \"+dataRec);\n\t\t\t\t\tif (inputdata != null && dataRec)\n\t\t\t\t\t{\n System.out.println(\"INSIDE IF -read()\");\n\t\t\t\t\t\tresponseData = ISOUtil.hex2byte(inputdata);\n\t\t\t\t\t\tdataRec=false;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else\n\t\t\t\t\t{\n System.out.println(\"INSIDE else -read()\");\n\t\t\t\t\t\tend = System.currentTimeMillis();\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t}\n\t\t\t\t}\n\n }\n catch(Exception e)\n {\n System.err.println(\"ConnectionHandlerLocal$WriterThread.run(): Interrupted!\");\n ezlink.info(\"SerialConnection : read() - Exception: \");\n ezlink.error(new Object(), e);\n }\n finally\n\t\t{\n\t\t\tSystem.out.println(\"&&&&&&&&&& In Finally... &&&&&&&\");\n ezlink.info(\"&&&&&&&&&& In Finally... &&&&&&& \");\n\t\t\tdataHandler.strISODump.setLength(0);\n\t\t\tif(sPort!=null)\n\t\t\t{\n\t\t\t\tsPort.close();\n\t\t\t\tSystem.out.println(\"Port Closed\");\n ezlink.info(\"&&&&&&&&&& Port Closed... &&&&&&& \");\n\t\t\t}\n\t \t}\n\n\t \tSystem.out.println(\"inside read() : ReadData=\"+new String(responseData));\n ezlink.info(\"ReadData= : \"+new String(responseData));\n\n return responseData;\n }", "public UnsignedByte read(int index) {\n if (index > -1 && index < MEMORY_LENGTH) return memory[index];\n else throw new IndexOutOfBoundsException(\"Index \" + index + \" is out of bounds (0 - \" + MEMORY_LENGTH + \")\");\n }", "public void readUserInput(){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String input = reader.readLine();\n while (!userValidation.validateUserInput(input)){\n input = reader.readLine();\n }\n elevatorController.configureNumberOfElevators(input);\n\n } catch (\n IOException e) {\n logger.error(e);\n }\n\n }", "private void readGPS() {\n }", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "public void read() {\r\n\t\tJTextField txtCustomerNo = new JTextField();\r\n\t\ttxtCustomerNo.setText(\"\" + this.getCustomerNo());\r\n\t\tJTextField txtTitle = new JTextField();\r\n\t\ttxtTitle.requestFocus();\r\n\t\tJTextField txtFirstName = new JTextField();\r\n\t\tJTextField txtSurname = new JTextField();\r\n\t\tJTextField txtAddress = new JTextField();\r\n\t\tJTextField txtPhoneNo = new JTextField();\r\n\t\tJTextField txtEmail = new JTextField();\r\n\r\n\t\t\r\n\t\tObject[] message = { \"Customer Number:\", txtCustomerNo, \"Title:\", txtTitle, \"First Name:\", txtFirstName,\r\n\t\t\t\t\"Surname:\", txtSurname, \"Address:\", txtAddress, \"Phone Number:\", txtPhoneNo, \"Email:\", txtEmail, };\r\n\t\t\r\n\r\n\t\tint option = JOptionPane.showConfirmDialog(null, message, \"Enter customer details\",\r\n\t\t\t\tJOptionPane.OK_CANCEL_OPTION);\r\n\t\t\r\n\t\tName txtName = new Name(txtTitle.getText(), txtFirstName.getText(), txtSurname.getText());\r\n\r\n\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\tthis.name = txtName;\r\n\t\t\tthis.address = txtAddress.getText();\r\n\t\t\tthis.phoneNo = txtPhoneNo.getText();\r\n\t\t\tthis.emailAddress = txtEmail.getText();\r\n\t\t}\r\n\t}", "private void readPreferences() {\r\n \t\tSharedPreferences sp = getSharedPreferences(SPN, MODE_PRIVATE);\r\n \t\t// set listener to this\r\n \t\tsp.registerOnSharedPreferenceChangeListener(this);\r\n \t\t// read shared preferences to get data file\r\n \t\tdataFile = sp.getString(res.getString(R.string.pref_data_file_key),\r\n \t\t\t\tnull);\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Data file is \" + dataFile);\r\n \t\t}\r\n \t\tif (dataFile == null)\r\n \t\t\treturn;\r\n \t\t// read if data file is compressed\r\n \t\tgzipFile = sp.getBoolean(res.getString(R.string.pref_data_file_gzip),\r\n \t\t\t\tfalse);\r\n \t}", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}" ]
[ "0.76887447", "0.7514494", "0.68374056", "0.5910749", "0.5895921", "0.5849517", "0.5804567", "0.5458648", "0.5423382", "0.5392885", "0.53471214", "0.53235745", "0.53157514", "0.52404135", "0.52113014", "0.51712644", "0.51598024", "0.51388526", "0.5104379", "0.5083724", "0.50776964", "0.5073028", "0.5072645", "0.5043458", "0.502713", "0.50114733", "0.49988538", "0.49988538", "0.49985805", "0.49958596", "0.49862584", "0.49788013", "0.49757752", "0.4971394", "0.4961426", "0.4941315", "0.49402452", "0.49189767", "0.4873723", "0.48668423", "0.48652038", "0.4860201", "0.48549423", "0.48530883", "0.48456088", "0.48117977", "0.48020872", "0.48011488", "0.4799958", "0.47962937", "0.47787926", "0.4766029", "0.47532472", "0.47492635", "0.47485012", "0.4747304", "0.4735625", "0.47161782", "0.47147512", "0.47147512", "0.47147512", "0.47147512", "0.47132298", "0.47008413", "0.4696697", "0.46943596", "0.46843678", "0.46814433", "0.4676832", "0.46711415", "0.46694654", "0.4656013", "0.46545947", "0.46544904", "0.46519685", "0.46502528", "0.46470693", "0.46353272", "0.46337223", "0.462857", "0.4620444", "0.46188736", "0.46172673", "0.46065402", "0.46028385", "0.45978957", "0.45978358", "0.45973244", "0.45862865", "0.45833305", "0.458144", "0.4580356", "0.4570834", "0.45676136", "0.4566826", "0.4564759", "0.45618066", "0.4559385", "0.4559385", "0.4559385" ]
0.71676785
2
Read all contents of the EEPROM user area
public byte[] readFullEEPROMUserArea() throws FTD2XXException { int numberOfBytes = getEEPROMUserAreaSize(); return readEEPROMUserArea(numberOfBytes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readFullEEPROMUserAreaAsString() throws IOException {\n IntByReference actually = new IntByReference();\n int numberOfBytes = getEEPROMUserAreaSize();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getString(0);\n }", "public byte[] readEEPROMUserArea(int numberOfBytes) throws FTD2XXException {\n IntByReference actually = new IntByReference();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getByteArray(0, actually.getValue());\n }", "public EEPROMData readEEPROM() throws FTD2XXException {\n FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference();\n ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference));\n return new EEPROMData(ftByReference);\n }", "public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }", "public int getEEPROMUserAreaSize() throws FTD2XXException {\n IntByReference size = new IntByReference();\n ensureFTStatus(ftd2xx.FT_EE_UASize(ftHandle, size));\n return size.getValue();\n }", "public EepromX readEEPROM_X() throws FTD2XXException {\n EepromX eeprom = new EepromX();\n Memory manufacturer = new Memory(64);\n Memory manufacturerId = new Memory(64);\n Memory description = new Memory(64);\n Memory serialNumber = new Memory(64);\n\n Memory mem = new Memory(56);\n mem.setInt(0, 9);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Read(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), manufacturer, manufacturerId, description,\n serialNumber));\n\n eeprom.setManufacturer(manufacturer.getString(0));\n eeprom.setManufacturerId(manufacturerId.getString(0));\n devDescription = description.getString(0);\n eeprom.setDescription(devDescription);\n devSerialNumber = serialNumber.getString(0);\n eeprom.setSerialNumber(devSerialNumber);\n\n return eeprom;\n }", "private void organizeEEPROM() {\n\t \n \n\t //put red, green, blue, and activitity values into r, g, b, and a\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t r[(i)/8] = 256*EEPROM[i] + EEPROM[i + 1];\n\t\t g[(i)/8] = 256*EEPROM[i + 2] + EEPROM[i + 3];\n\t\t b[(i)/8] = 256*EEPROM[i + 4] + EEPROM[i + 5];\n\t\t a[(i)/8] = 256*EEPROM[i + 6] + EEPROM[i + 7];\n \n\t\t //set resets to zero by default\n\t\t if((r[(i)/8] == 65278) && (b[(i)/8] == 65278) && (g[i/8] == 0)) {\n\t\t\t r[(i)/8] = 0;\n\t\t\t g[(i)/8] = 0;\n\t\t\t b[(i)/8] = 0;\n\t\t\t a[(i)/8] = 0;\n\t\t }\n\t }\n \n\t //get end of address\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t if((EEPROM[i] == 255) && (EEPROM[i + 1] == 255)) {\n\t\t\t endaddress = i/8;\n\t\t\t break;\n\t\t }\n\t }\n\t if(isnew) {\n\t\t ID = Integer.parseInt(asciiheader[8]);\n\t\t mm = Integer.parseInt(asciiheader[7].substring(0, 2));\n\t\t dd = Integer.parseInt(asciiheader[7].substring(3, 5));\n\t\t yy = Integer.parseInt(asciiheader[7].substring(6, 8));\n\t\t HH = Integer.parseInt(asciiheader[7].substring(9, 11));\n\t\t MM = Integer.parseInt(asciiheader[7].substring(12, 14));\n\t\t period = Integer.parseInt(asciiheader[3]);\n\t\t\t\t \n\t\t if(isUTC) {\n\t\t\t offset = Calendar.get(Calendar.DST_OFFSET) / 3600000;\n\t\t\t //apply offset, but if offset rolls us into a new day, we need to account for that\n\t\t\t if (HH + offset > 23) {\n\t\t\t\t dd += 1;\n\t\t\t\t HH = (HH + offset) % 24;\n\t\t\t\t //if our new day rolls us into a new month, account for that\n\t\t\t\t //30 days have September, April, June, and November\n\t\t\t\t if(dd > 30 && (mm == 9 || mm == 4 || mm == 6 || mm == 11)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //All the rest have 31, except for February who is a fuckwad.\n\t\t\t\t else if (dd > 31 && !(mm == 9 || mm == 4 || mm == 6 || mm == 11 || mm == 2)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and not a leap year\n\t\t\t\t else if (dd > 28 && (yy%4 != 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and a leap year\n\t\t\t\t else if (dd > 29 && (yy%4 == 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //Did we rollover our year doing this?\n\t\t\t\t if (mm > 12) {\n\t\t\t\t\t mm = 1;\n\t\t\t\t\t yy += 1;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t else {\n\t\t\t\t HH = HH + offset;\n\t\t\t }\n\t\t }\n\t }\n\t else {\n\t\t ID = (header[3] - 48)*1000 + (header[4] - 48)*100 + (header[5] - 48)*10 + (header[6] - 48);\n\t\t mm = (header[9] - 48)*10 + (header[10] - 48);\n\t\t dd = (header[12] - 48)*10 + (header[13] - 48);\n\t\t yy = (header[15] - 48)*10 + (header[16] - 48);\n\t\t HH = (header[18] - 48)*10 + (header[19] - 48);\n\t\t MM = (header[21] - 48)*10 + (header[22] - 48);\n\t\t period = (header[25] - 48)*100 + (header[26] - 48)*10 + (header[27] - 48);\n\t }\n \t}", "public void writeEEPROMUserArea(String data) throws FTD2XXException {\n Memory source = new Memory(data.length());\n source.setString(0, data);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));\n }", "public void read() {\r\n\t\tbusExt.put(data);\r\n\t}", "public void loadAllUserData(){\n\n }", "public void readEditTexts() {\n }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "public void readUsers() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/users.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n users = (HashMap<String, User>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n users = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n\n }", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "static void take_memory_values() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\t\tString input = scan.readLine();\n\t\tif(input.equals(\"N\"))\n\t\t\treturn;\n\t\taddress = hexa_to_deci(input);\n\t\tprint_the_address(address);\n\t\tinput = scan.readLine();\n\t\tif(input.length()==2)\n\t\t\tmemory.put(address,input);\n\t\telse{\n\t\t\tmemory.put(address,input.substring(2));\n\t\t\tmemory.put(address+1,input.substring(0,2));\n\t\t}\n\t\t//System.out.println(address+\" \"+memory.get(address));\n\t\ttake_memory_values();\n\t}", "public static ArrayList<User> readData() {\n ArrayList<User> users = new ArrayList<>();\n ObjectInputStream in = null;\n try {\n in = new ObjectInputStream(new FileInputStream(USER_SAVE_FILE_NAME));\n users = (ArrayList<User>) in.readObject();\n in.close();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n if (in == null) {\n return users;\n } else {\n try {\n in.close();\n } catch (Exception ex) {\n Logger.getLogger(Utilities.UserDataIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n return users;\n }", "public void ownRead();", "public void readEquipment() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/equipment.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n equipment = (HashMap<String, Equipment>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n equipment = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n }", "public void processMemory()\n {\n try{\n String memory = oReader.readLine();\n int index = 0;\n //adding mememory to and array\n for(int i = 0; i<memory.length()-2; i+=2)\n {\n String hexbyte = memory.substring(i, i+2); //get the byt ein hex\n mem.addEntry(\"0x\"+hexbyte, index, 1);\n index++;\n }\n } catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "byte[] readBytes();", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public void getUserData()\n\t{\n\t\tint count; //Loop counter\n\t\tString pathname = filename;\n\t\t\n\t\tString div = \",\"; //Used to divide info.\n\t\tString [] userArray; //To hold divided info.\n\t\t\n\t\ttry {\n FileReader reader = new FileReader(pathname);\n BufferedReader bufferedReader = new BufferedReader(reader);\n \n String line;\n \n //While getting each line of the data file, BUT stops when USER data found.\n //Loop through each line and determine which user data to choose.\n while ((line = bufferedReader.readLine()) != null) {\n // System.out.println(\"User Data in file: \" + line);\n \n System.out.println(\"Checking User name in line of data ...\");\n \n //This divides the info in the data file into an array.\n userArray = line.split(div); \n \n \n if (User.equals(userArray[0]))\n \t{\n \t\tSystem.out.println(\"User Found: \" + User);\n \t\tuser_line = line;\n \t\t//Assigning data to class variables.\n \t\tUserPassword = userArray[1].trim(); //Assigning the password.\n \t\tDevice_ID = Integer.parseInt(userArray[2].trim()); //Assigning device ID.\n \t\tisLost = (Integer.parseInt(userArray[3].trim()) == 0) ? false : true;\n \t\t\n \t\t//This reads out information.\n \t\tfor (count = 0; count < userArray.length; count++)\n {\n \t\t\tSystem.out.println(\"INFO: \" + userArray[count]);\n }\n \t\tbreak;\n \t}\n System.out.println(\"========================================\");\n }\n reader.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}", "public void read() {\n\t\tthis.isRead = true;\n\t}", "public void printMEM_Read(){\r\n\t\tSystem.out.println(\"****EX/MEM Read: ****\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"M Control Bits: \" + \r\n\t\t\t\tBranch + \"\" + MemRead + \"\" + MemWrite);\r\n\t\tSystem.out.println(\"WB Control Bits:\" +WBBits);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"ALUresult: 0x\" + Integer.toHexString(read_ALUresult));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"SBValue: 0x\" + Integer.toHexString(SBVal));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"WriteRegNum: \" + writeRegVal);\r\n\r\n\r\n\t\t\r\n\t}", "@Override\r\n\tpublic ArrayList<UserClass> readUsers(String address) {\n\t\treturn null;\r\n\t}", "public void read(Event evt){\n evt.read(bank); \n this.notifyRead();\n }", "public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException {\n String manufacturer = eeprom.getManufacturer();\n Memory mManufacturer = new Memory(manufacturer.length() + 1);\n mManufacturer.setString(0, manufacturer);\n\n String manufacturerId = eeprom.getManufacturerId();\n Memory mManufacturerId = new Memory(manufacturerId.length() + 1);\n mManufacturerId.setString(0, manufacturerId);\n\n String description = eeprom.getDescription();\n Memory mDescription = new Memory(description.length() + 1);\n mDescription.setString(0, description);\n\n String serialNumber = eeprom.getSerialNumber();\n Memory mSerialNumber = new Memory(serialNumber.length() + 1);\n mSerialNumber.setString(0, serialNumber);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId,\n mDescription, mSerialNumber));\n\n devSerialNumber = serialNumber;\n devDescription = description;\n }", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\n\t}", "public void read() {\n postBusy();\n mErrorLiveData.postValue(null);\n mManager.list(new McuMgrCallback<McuMgrImageStateResponse>() {\n @Override\n public void onResponse(@NonNull final McuMgrImageStateResponse response) {\n mHashes[0] = mHashes[1] = null;\n // Save the hash of the unconfirmed images. They are required for sending test\n // and confirm messages.\n if (response.images != null) {\n for (McuMgrImageStateResponse.ImageSlot slot : response.images) {\n if (!slot.confirmed) {\n mHashes[slot.image] = slot.hash;\n }\n }\n }\n postReady(response);\n }\n\n @Override\n public void onError(@NonNull final McuMgrException error) {\n mErrorLiveData.postValue(error);\n postReady(null);\n }\n });\n }", "public ArrayList<KeyVal> readAllLocal(){\n\t\tDHTNode myNode = dynamoRing.getNode(MY_ADDRESS);\n\t\treturn readDHTAllFromNode(myNode);\n\t}", "public byte read_user_register() throws IOException {\n return (byte) HTU21D.READ_USER_REG.read(device);\n }", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "private void readPreferences() {\n configAutonomousCommand();\n }", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "public void read(IORequest request) throws MemoryFault {\n setBaseLimit();\n // sets what we need to be able to read\n int deviceNumber = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc);\n int platter = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 1);\n int platStart = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 2);\n int datasize = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 3);\n int memLoc = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 4) + Process_Table[request.prognum].base;\n// System.out.println(deviceNumber+\"device\");\n// System.out.println(platter+\"plat\");\n// System.out.println(platStart+\"Start\");\n// System.out.println(datasize+\"data\");\n// System.out.println(memLoc+\"mem\");\n\n Process_Table[currentProcess].status = ProcessState.waiting;\n\n machine.devices[deviceNumber].controlRegister.register[0] = DeviceControllerOperations.READ;\n machine.devices[deviceNumber].controlRegister.register[1] = platter;\n machine.devices[deviceNumber].controlRegister.register[2] = platStart;\n machine.devices[deviceNumber].controlRegister.register[3] = datasize;\n machine.devices[deviceNumber].controlRegister.latch();\n for (int i = 0; i < datasize; i++) {\n machine.memory.store(i + memLoc, machine.devices[deviceNumber].buffer[i]);\n\n }\n //System.out.println(waitQ[Machine.DISK1].size() + \" READ\");\n // initiate the latch\n\n }", "public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private String read(int address)\n {\n return MMU.read(VMA.get( address/RAM.getPageSize()) * RAM.getPageSize() + (address % RAM.getPageSize()));\n }", "public static Object[] getUserData(){\n String name, password;\n\n System.out.println(\"\\n1. Manager\\n2. Customer\");\n int res = ConsoleReader.getInt();\n System.out.print(\"\\nEnter your name :\");\n ConsoleReader.getString();\n name = ConsoleReader.getString();\n System.out.print(\"Enter your password :\");\n password = ConsoleReader.getString();\n return new Object[] {res, name, password};\n }", "@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 }", "private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }", "public int read(int address){\n switch (address){\r\n /*\r\n case 0: {\r\n return registers_w[CONTROL_REGISTER_1];\r\n }\r\n\r\n case 3: {\r\n return spriteMemoryCounter;\r\n }\r\n case 5:{\r\n return registers_w[SCROLL_OFFSET];\r\n }\r\n case 6:{\r\n return horizontalTileCounter | (verticalTileCounter << 5) | (horizontalNameCounter << 10) | (verticalNameCounter << 11);\r\n }\r\n */\r\n\t\t\tcase 0: {\r\n\t\t\t\t\t\treturn scanLine;\r\n\t\t\t\t\t\t// hack\r\n\t\t\t}\r\n case 1: {\r\n return registers_w[CONTROL_REGISTER_2];\r\n }\r\n case STATUS_REGISTER:{ // 2\r\n int returnVal = registers_r[STATUS_REGISTER];\r\n registers_r[STATUS_REGISTER] = getBitsUnset(registers_r[STATUS_REGISTER], STATUS_VBLANK); //| STATUS_SPRITE0_HIT);\r\n isFirstWriteToScroll = true;\r\n lastPPUAddressWasHigh = false;\r\n //logger.info(\"Status is: \" + Integer.toHexString(returnVal));\r\n return returnVal;\r\n }\r\n case SPRITE_MEMORY_DATA:{ // 4\r\n return readFromSpriteMemory();\r\n }\r\n case PPU_MEMORY_DATA:{ // 7\r\n int returnVal = 0xFF & registers_r[PPU_MEMORY_DATA]; // buffered read\r\n \r\n //int returnVal = 0xFF & memory.read(ppuMemoryAddress);\r\n\t\t\tint readAddress = horizontalTileCounter \r\n\t\t\t\t\t\t\t\t| (verticalTileCounter << 5)\r\n\t\t\t\t\t\t\t\t| (horizontalNameCounter << 10)\r\n\t\t\t\t\t\t\t\t| (verticalNameCounter << 11)\r\n\t\t\t\t\t\t\t\t| ((fineVerticalCounter & 0x3) << 12);\r\n\r\n\t\t\tif (readAddress == 0x3F10 || readAddress == 0x3F14 || readAddress == 0x3F18 || readAddress == 0x3F1C) {\r\n\t\t\t\treadAddress = readAddress & 0x3F0F;\r\n\t\t\t}\r\n registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(readAddress);\r\n // registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(ppuMemoryAddress);\r\n incrementCounters();\r\n /*\r\n if ((registers_w[CONTROL_REGISTER_1] & CR1_VERTICAL_WRITE) == 0){\r\n ppuMemoryAddress++;\r\n }\r\n else {\r\n ppuMemoryAddress = (ppuMemoryAddress + 32);\r\n }\r\n */\r\n return returnVal;\r\n }\r\n\r\n default: throw new RuntimeException(\"Invalid read attempt: \" + Integer.toHexString(address));\r\n }\r\n }", "private static void read(Client client,String user,String filename) throws SystemException, TException {\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\t\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\t// predIP = \"127.0.0.1\";\n\t\tint predPort = succNode.port;\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tchord_auto_generated.FileStore.Client client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Reading file location : \" + predPort + \" File :\"+filename+\"Owner : \"+user);\n\t\t\tRFile rFile = new RFile();\n\t\t\trFile = client1.readFile(filename, user);\n\t\t\tSystem.out.println(rFile.getContent());\n\t\t\tSystem.out.println(rFile.getMeta().getVersion());\n\t\t\tSystem.out.println(rFile.getMeta().getContentHash());\n\t\t\tSystem.out.println(\"Reading file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void retrieve() throws IOException {\n String data = fromServer.readUTF();\n// report(\"data: \" + data);\n String[] datas = data.split(COMMAND_DELIMITER);\n int isFull = Integer.parseInt(datas[0]);\n\n if(isFull == 1) {\n // points\n String[] points = datas[1].split(POINTS_DELIMITER);\n int[][] board = new int[SIDE][SIDE];\n for (int i = 0; i < points.length; i++) {\n board[i / SIDE][i % SIDE] = Integer.parseInt(points[i]);\n }\n boardComponent.setBoard(board);\n boardComponent.repaint();\n\n // players\n String[] players = datas[2].split(POINTS_DELIMITER);\n lbPl1.setText(players[0]);\n lbPl2.setText(players[1]);\n lbBlackStone.setIcon(blackIcon);\n lbWhiteStone.setIcon(whiteIcon);\n\n\n colorLabel.setText(\"You are a viewer.\");\n setButtons(false);\n btnNewGame.setEnabled(false);\n }\n\n // attendants\n try {\n String[] attendants = datas[3].split(POINTS_DELIMITER);\n for (String str : attendants) {\n listOfNames.add(str);\n nameListTextArea.append(str + \"\\n\");\n }\n// nameListTextArea.update(nameListTextArea.getGraphics());\n// atsScrollPane.setViewportView(nameListTextArea);\n }catch(Exception e){\n // when the first player enter the room, there is no existed attendants\n }\n\n }", "void confirmRead();", "public byte[] getUserKey() throws IOException\n {\n byte[] u = null;\n COSString user = (COSString)encryptionDictionary.getDictionaryObject( COSName.getPDFName( \"U\" ) );\n if( user != null )\n {\n u = user.getBytes();\n }\n return u;\n }", "private void readBinary(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// check if access to this file is allowed\r\n\t\tif (!fileAccessAllowed(READ_BINARY))\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t// use P1 and P2 as offset\r\n\t\tshort offset = Util.makeShort(buffer[ISO7816.OFFSET_P1], buffer[ISO7816.OFFSET_P2]);\r\n\t\tif (offset < 0)\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tshort le = apdu.setOutgoing();\r\n\t\t// impossible to start reading from offset large than size of file\t\t\t\t\r\n\t\tif (selectedFile == masterFile)\r\n\t\t\tISOException.throwIt(ISO7816.SW_FILE_INVALID); //~allow_dead_code Dead because fileAccessAllowed() checks that selectedFile instanceof ElementaryFile and masterFile is not an ElementaryFile.\r\n\t\t//@ open selected_file_types(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);\r\n\t\tshort size = ((ElementaryFile) selectedFile).getCurrentSize();\r\n\t\tif (offset > size)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t// number of bytes in file starting from offset\r\n\t\tshort remaining = (short) (size - offset);\r\n\t\tif (le == 0) {\r\n\t\t\tif (remaining < 256) {\r\n\t\t\t\t// wrong Le field\r\n\t\t\t\t// SW2 encodes the exact number of available data bytes\r\n\t\t\t\tshort sw = (short) (ISO7816.SW_CORRECT_LENGTH_00 | remaining);\r\n\t\t\t\tISOException.throwIt(sw);\r\n\t\t\t} else\r\n\t\t\t\t// Le = 0 is interpreted as 256 bytes\r\n\t\t\t\tle = 256;\r\n\t\t}\r\n\t\t// only read out the remaining bytes\r\n\t\tif (le > remaining) {\r\n\t\t\tle = remaining;\r\n\t\t}\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength(le);\r\n\t\t// write selected file in APDU\r\n\t\t//VF bug; was apdu.sendBytesLong(((ElementaryFile) selectedFile).getData(), offset, le);\r\n\t\t//VF probleem: originele lijn was apdu.sendBytesLong(ef.getData(), offset, le);\r\n\t\t// het probleem hiermee is dat de getData()-methode een ElementaryFile nodig heeft, en dat\r\n\t\t// sendBytesLong vereist dat het resultaat niet null is. De niet-null vereiste zit geencodeerd\r\n\t\t// in ElementaryFile, dus als je dat predicaat opent, dan weet VF dat de data niet-null is, maar\r\n\t\t// dan werkt de call op getData niet. Als je de ElementaryFile gesloten laat, dan lukt de call naar\r\n\t\t// getData, maar weet je niet dat het niet-null is.\r\n\t\tElementaryFile ef = (ElementaryFile)selectedFile;\r\n\t\tbyte[] bf = ef.getData();\r\n\t\t//@ open [1/2]ef.ElementaryFile(?d1, ?d2, ?d3, ?d4, ?d5, ?info); // hard to eliminate\r\n\t\tapdu.sendBytesLong(bf, offset, le);\r\n\t\t////@ close [1/2]ef.ElementaryFile(d1, d2, d3, d4, d5, info); // auto\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}", "public abstract byte[] readData(int address, int length);", "public static void load() {\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Read memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n//\t\tSystem.out.println(\"index\"+Integer.parseInt(mar.substring(0, mar.length() - 2), 2));\r\n\t\tcontent.setStr(getBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)]);\r\n\t\t\r\n\t\twriteMBR(content);\r\n\t\tTraceINF.write(\"Read finished.\");\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}", "public byte[] read();", "public String[][] getTouRead()\r\n\t{\r\n\t\treturn touRead;\r\n\t}", "@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "protected BufferWrapper readElevations(URL url) throws IOException\n {\n try\n {\n ByteBuffer byteBuffer;\n synchronized (this.fileLock)\n {\n byteBuffer = WWIO.readURLContentToBuffer(url);\n }\n\n // Setup parameters to instruct BufferWrapper on how to interpret the ByteBuffer.\n AVList bufferParams = new AVListImpl();\n bufferParams.setValue(AVKey.DATA_TYPE, this.elevationDataPixelType);\n bufferParams.setValue(AVKey.BYTE_ORDER, this.elevationDataByteOrder);\n return BufferWrapper.wrap(byteBuffer, bufferParams);\n }\n catch (java.io.IOException e)\n {\n Logging.logger().log(java.util.logging.Level.SEVERE,\n \"ElevationModel.ExceptionReadingElevationFile\", url.toString());\n throw e;\n }\n }", "private void readItems() {\n }", "public void read() {\n\n Object[][] obj = readItems();\n\n for (View v : views) {\n v.update(obj);\n }\n }", "@Override\n\tpublic void read() {\n\n\t}", "public E[] getContents()\n\t{\n\t\treturn contents;\n\t}", "public String showAllMemos() {\n String allMemos = \"\";\n for (Event e: events)\n {\n for (Memo m: e.getMemos()) {\n allMemos = allMemos + m.getId() + \": \" + m.getText() + \"\\n\";\n }\n }\n return allMemos;\n }", "public ArrayList<String> loadRead() {\n\n\t\tSAVE_FILE = READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "@Override\r\n\tpublic void read() {\n\r\n\t}", "private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private Map<String, String> getUsers() {\n try {\n return (HashMap<String, String>) FileUtil.getInstance().readObjectFromFile(openFileInput(\"users.ser\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return new HashMap<>();\n }", "List<String[]> readAll();", "ByteBuffer getApplicationData();", "public static byte[] getAllMemoryAddressesAsBytes() {\n\n byte[] addresses = new byte[EEPROM_MAX_ADDRESS +1];\n\n for (int i = 0; i <= EEPROM_MAX_ADDRESS; i++) {\n addresses[i] = (byte) i;\n }\n return addresses;\n }", "@Override\n\tpublic List<Cliente> readAll() {\n\t\treturn clientedao.readAll();\n\t}", "public char[] storage_GET()\n {return storage_GET(new char[120], 0);}", "protected String readKeyFromInternalStorage(String fileContent) {\n try {\n myLogPrint(\"Inside Second Trying the write to internal: Line 686\");\n\n BufferedReader inputReader = new BufferedReader(new InputStreamReader(\n openFileInput(fileContent)));\n String inputString;\n StringBuffer stringBuffer = new StringBuffer();\n\n while ((inputString = inputReader.readLine()) != null) {\n stringBuffer.append(inputString + \"\\n\");\n }\n\n myLogPrintLN(\"The KeyCode in internal storage is: \", stringBuffer.toString());\n return stringBuffer.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tupm_m24lr64e.M24LR64E nfcTag = new upm_m24lr64e.M24LR64E(0);\n\n\t\t// This example accesses the device in the 'user' (default) mode,\n\t\t// reads the last byte of data in the EEPROM, inverts it, writes\n\t\t// it back, and then re-reads it.\n\n\t\t// Read the last byte of the EEPROM area\n\t\tint addr = upm_m24lr64e.M24LR64E.EEPROM_I2C_LENGTH - 1;\n\t\tSystem.out.println(\"Address: \" + addr);\n\t\tshort read = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// Now change it to it's opposite and write it\n\t\tread = (short) (~read & 0xff);\n\t\tnfcTag.writeByte(addr, read);\n\t\tSystem.out.println(\"Wrote: \" + read);\n\n\t\t// Now read it back\n\t\tread = nfcTag.readByte(addr);\n\t\tSystem.out.println(\"Read: \" + read);\n\n\t\t// ! [Interesting]\n\t}", "public UserInfo readData()\n\t{\n\t\t\n\t\tIterator<UserInfo> itr= iterator();\n\t\tUserInfo info;\n\t\tSystem.out.println(\"file has been read!\");\n\t\twhile(itr.hasNext()) {\n\t\t\t\n\t\t\tinfo= itr.next();\n\t\t\tif( info.getUrl().equalsIgnoreCase(file)) {\n\t\t\t\t\n\t\t\t\treturn info;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void read(long address, long range, int moteID) {\n\t\ttotalRange = range;\n\t\tstartAddress = address;\n\t\tfocusedAddress = address;\n\t\tfocusedMote = moteID;\n\t\tif(range > ViewerMsg.totalSize_data()) {\n\t\t\tfocusedRange = ViewerMsg.totalSize_data();\n\t\t} else {\n\t\t\tfocusedRange = (int) range;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"0x\" + Long.toHexString(startAddress) + \" to 0x\" + Long.toHexString(startAddress + totalRange));\n\t\tSystem.out.println(\"_________________________________________________\");\n\t\t\n\t\tmote.read(address, focusedRange, focusedMote);\n\t\t\n\t}", "@Override\n\tpublic Collection<Users> read() {\n\t\treturn userDAO.readAll();\n\t}", "List<T> readAll();", "private static List<Exam> readWriteData() throws Exception \r\n\t{\n\t\t\r\n\t\tList<Exam> exams = examDao.queryForAll();\r\n\t\treturn exams;\r\n\t}", "protected void readCharacters() {\n try {\r\n File f = new File(filePath);\r\n FileInputStream fis = new FileInputStream(f);\r\n ObjectInputStream in = new ObjectInputStream(fis);\r\n characters = (List<character>) in.readObject();\r\n in.close();\r\n }\r\n catch(Exception e){}\r\n adapter.addAll(characters);\r\n }", "@Pure\n\tpublic Collection<Object> getAllUserData() {\n\t\tif (this.userData == null) {\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t\treturn Collections.unmodifiableCollection(this.userData);\n\t}", "public StructManager read() throws Exception;", "@Override\r\n public void read() {\n System.out.println('\\n' + \"DB repo: \");\r\n //Idk, probably search for a person and read data??\r\n\r\n }", "private void readFile() {\r\nif(isExternalStorageWritable()){\r\n Toast.makeText(this, \"Reading file.\", Toast.LENGTH_SHORT).show();\r\n StringBuilder sb = new StringBuilder();\r\n try{\r\n File textFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM + \"/Alluciam/\"), fileNameToUse);\r\n FileInputStream fis = new FileInputStream(textFile);\r\n if(fis != null){\r\n InputStreamReader isr = new InputStreamReader(fis);\r\n BufferedReader buff = new BufferedReader(isr);\r\n String line = null;\r\n while((line = buff.readLine()) != null){\r\n sb.append(line + \"\\n\\n\");\r\n }// this ends while line=buff.readLine\r\n fis.close();\r\n } // this ends if fis != null\r\n Toast.makeText(this, \"File has been read and closed.\", Toast.LENGTH_LONG).show();\r\n txt.setText(sb);\r\n } // this ends try\r\n catch (IOException e){\r\n Toast.makeText(this, \"IOException. File not found\", Toast.LENGTH_SHORT).show();\r\n e.printStackTrace();\r\n }// this ends catch\r\n} // this ends if isExternalStorageWritable\r\n else{\r\n Toast.makeText(this, \"Cannot read from External Storage.\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "private void readFromFile(){\n\t\t\n\t\ttry {\n\t\t\tFile file=new File(\"controller.txt\");\n\t\t\tFileInputStream fin;\n\t\t\tfin = new FileInputStream(file);\n\t\t\tDataInputStream din=new DataInputStream(fin);\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(din));\n\t\t\t\n\t\t\tfor(int i=0; i<2; i++){\n\t\t\t\tif(i==0)\n\t\t\t\t\tcodedUserName=br.readLine();\n\t\t\t\telse \n\t\t\t\t\tcodedPassword=br.readLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void chimeraRead() throws IOException {\n \t \tif (chimera == null)\n \t \t\treturn;\n\n\t\tString line = null;\n\t\twhile ((line = lineReader.readLine()) != null) {\n\t\t\t// System.out.println(\"From Chimera-->\"+line);\n\t\t\tif (line.startsWith(\"CMD\")) {\n\t\t\t\tchimeraCommandRead(line.substring(4));\n\t\t\t} else if (line.startsWith(\"ModelChanged: \")) {\n\t\t\t\t(new ModelUpdater()).start();\n\t\t\t} else if (line.startsWith(\"SelectionChanged: \")) {\n\t\t\t\t(new SelectionUpdater()).start();\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "@DataProvider(name=\"User Details\")\n\t\tpublic Object[][] userDetails() throws Exception{\n\t\t\t\n\t\t\tExcelSheet excelData = new ExcelSheet(\"E:/Assignments/exceldata/OpenCart.xlsx\",1);\n\t\t\tObject[][] data = new Object[1][11];\n\t\t\tfor(int cells=0;cells<11;cells++){\n\t\t\t\t\n\t\t\t\tdata[0][cells] = excelData.getData(1, cells);\n\t\t\t}\n\t\t\treturn data;\n\t\t}", "public void read() {\r\n\t\tProperties props = new Properties();\r\n\t\ttry {\r\n\t\t\t// Read smtp.\r\n\t\t\tprops.load(new FileInputStream(\r\n\t\t\t\t\t\"C:\\\\Users\\\\danielnistreanu\\\\git\\\\t3bluecircles\\\\src\\\\test\\\\resources\\\\smtpZimbra.properties\"));\r\n\t\t\tSession session = Session.getDefaultInstance(props, null);\r\n\t\t\t// Login.\r\n\t\t\tStore store = session.getStore(\"imaps\");\r\n\t\t\tstore.connect(\"mail.evozon.com\", \"[email protected]\", \"Asdf1234!@#$\");\r\n\t\t\t// Get messages number.\r\n\t\t\tFolder inbox = store.getFolder(\"inbox\");\r\n\t\t\tinbox.open(Folder.READ_ONLY);\r\n\t\t\tint messageCount = inbox.getMessageCount();\r\n\r\n\t\t\t// Part where using for loop we check messages list and print\r\n\t\t\t// content.\r\n\r\n\t\t\tSystem.out.println(\"Total Messages:- \" + messageCount);\r\n\t\t\tMessage[] messages = inbox.getMessages();\r\n\t\t\tfor (int i = 0; i < messages.length; i++) {\r\n\t\t\t\tMessage message = messages[i];\r\n\t\t\t\tSystem.out.println(\"---------------------------------\");\r\n\t\t\t\tSystem.out.println(\"Email Number \" + (i + 1));\r\n\t\t\t\tSystem.out.println(\"Subject: \" + message.getSubject());\r\n\t\t\t\tSystem.out.println(\"From: \" + message.getFrom()[0]);\r\n\t\t\t\tSystem.out.println(\"Text: \" + getTextFromMessage(message));\r\n\t\t\t\twriteToFile(getTextFromMessage(message));\r\n\t\t\t}\r\n\t\t\tinbox.close(true);\r\n\t\t\tstore.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "protected Object readUnknownData() throws IOException {\r\n byte[] bytesValue;\r\n Byte[] bytesV;\r\n Preferences.debug(\"Unknown data; length is \" + elementLength + \" fp = \" + getFilePointer() + \"\\n\", 2);\r\n\r\n if (elementLength <= 0) {\r\n Preferences.debug(\"Unknown data; Error length is \" + elementLength + \"!!!!!\\n\", 2);\r\n\r\n return null;\r\n }\r\n\r\n bytesValue = new byte[elementLength];\r\n read(bytesValue);\r\n bytesV = new Byte[elementLength];\r\n\r\n for (int k = 0; k < bytesValue.length; k++) {\r\n bytesV[k] = new Byte(bytesValue[k]);\r\n }\r\n\r\n return bytesV;\r\n }", "public void readAdmin(String fileName)\n {\n try\n {\n FileReader inputFile = new FileReader(fileName);\n Scanner parser = new Scanner(inputFile);\n String[] array = parser.nextLine().split(\";\");\n for(int index = 0; index < array.length; index++)\n {\n String[] elements = array[index].split(\",\");\n String account = elements[0];\n String password = elements[1];\n setAdmin(index, account, password);\n }\n }\n catch(FileNotFoundException exception)\n {\n System.out.println(fileName + \" not found\");\n }\n catch(IOException exception)\n {\n System.out.println(\"Unexpected I/O error occured\");\n }\n\n }", "private void loadUserData() {\n\t\tuserData = new UserData();\n }", "public String read();", "private void loadMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (varTmpDir.exists()) {\n FileInputStream fileIn = new FileInputStream(varTmpDir);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n longTermMemory = (HashMap<String, BoardRecord>) in.readObject();\n in.close();\n fileIn.close();\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"File not found\");\n c.printStackTrace();\n return;\n }\n\n System.out.println(\"RECALLED LONG TERM MEMORIES FROM \" + brainLocation + \": \" + longTermMemory.toString());\n }", "public void IPL(){ \r\n \r\n this.io.resetIOController();\r\n this.memory.resetMemory();\r\n \r\n /*** Pseudocode for ROM bootloader \r\n * Reads a file to memory starting at M(64) to EOF\r\n * \r\n * ADDR=64, X1=0\r\n * L1: R0 = io.readLine()\r\n * memory.set(ADDR+X1, R0)\r\n * X1++\r\n * checkForMore = io.checkStatus()\r\n * test checkForMore\r\n * jcc checkForMore to L1\r\n * jmp 64\r\n */ \r\n HashMap<Integer,String> ROM = new HashMap<>(); \r\n /************* Assembly for bootloader **************/\r\n ROM.put(00, \"00000000000000101111\"); // Trap Handler Table Start Position -> 47\r\n ROM.put(01, \"00000000000000101011\"); // Machine Fault Handler -> 42\r\n ROM.put( 9, \"11001100110011001100\"); // SECTION_TAG (Used for finding sections)\r\n ROM.put(10, \"000011 00 10 0 0 00000000\"); //10: LDA(2,0,0,0) -- reset ECX to 0 (index value) \r\n ROM.put(11, \"000011 00 11 0 0 00000000\"); //11: LDA(3,0,0,0) -- reset EDX to 0 (IO Status Ready) \r\n ROM.put(12, \"000001 00 01 0 0 00001001\"); //12: LDR(1,0,9) -- LOAD M(9) to EBX (SECTION_TAG)\r\n ROM.put(13, \"000010 00 10 0 0 00000110\" ); //13: STR(2,0,6) -- set M(6) to ECX \r\n ROM.put(14, \"101001 00 10 0 0 00000110\" ); //14: LDX(0, 2, 6) -- Set X(2) from M(6) (copied from ECX/0) \r\n ROM.put(15, \"101001 00 01 0 0 00000110\" ); //15: LDX(0, 1, 6) -- Set X(1) from M(6) (copied from ECX) \r\n ROM.put(16, \"111101 00 00 000000 0010\" ); //16: L1: IN(0, 2) -- read word from CardReader to EAX \r\n ROM.put(17, \"010110 00 01 0 0 00000000\" ); //17: TRR(0, 1) -- Test EAX against EBX (SECTION_TAG) \r\n ROM.put(18, \"001100 00 11 0 0 00011001\" ); //18: JCC(3,x, L2) -- JMP to L2 if EAX=EBX --- L2=25 \r\n ROM.put(19, \"000010 01 00 0 0 01000000\" ); //19: L3: STR(0,1,64i1) -- store EAX to ADDR+X1 (ADDR=64) \r\n ROM.put(20, \"101011 00 01 0 0 00000000\" ); //20: INX(1) -- X(1)++\r\n ROM.put(21, \"111111 00 00 000000 0010\" ); //21: CHK(0, 2) -- Check status of Card Reader to EAX \r\n ROM.put(22, \"010110 00 11 0 0 00000000\" ); //22: TRR(0, 3) -- Test EAX against EDX (IO Status Ready -- not done) \r\n ROM.put(23, \"001100 00 11 0 0 00010000\" ); //23: JCC(3,x, L1) -- JMP to L1 if EAX=EDX --- L1=16 \r\n ROM.put(24, \"001101 00 00 0 0 01000000\" ); //24: JMP(64) -- else: launch program by transferring control to 64 \r\n ROM.put(25, \"000011 01 10 0 0 01000000\" ); //25: L2: LDA(1,1,64i1) -- Load ADDR+X1 to ECX\r\n ROM.put(26, \"000010 10 10 0 0 00001000\" ); //26: STR(1,2,8) -- Store ECX to 8+X2\r\n ROM.put(27, \"101011 00 10 0 0 00000000\" ); //27: INX(2) -- X(2)++\r\n ROM.put(28, \"001101 00 00 0 0 00010011\" ); //28: JMP(19) -- JMP(L3) \r\n /***************** Error Handler ************************************/ \r\n ROM.put(32, \"000001 00 11 0 0 00000010\"); //32: LDR(3, 0, 2) -- restore PC to EDX (used on 41) \r\n ROM.put(33, \"000011 00 00 0 0 01000101\"); //33: LDA(0,72) -- Set EAX to 69 ('E')\r\n ROM.put(34, \"000011 00 01 0 0 01110010\"); //34: LDA(1,105) -- Set EBX to 114 ('r')\r\n ROM.put(35, \"000011 00 10 0 0 01101111\"); //35: LDA(2,13) -- Set ECX to 111 ('o')\r\n ROM.put(36, \"111110 00 00 000000 0001\"); //36: OUT(0,1) -- Output EAX ('E')\r\n ROM.put(37, \"111110 00 01 000000 0001\"); //37: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(38, \"111110 00 01 000000 0001\"); //38: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(39, \"111110 00 10 000000 0001\"); //39: OUT(2,1) -- Output ECX ('o')\r\n ROM.put(40, \"111110 00 01 000000 0001\"); //40: OUT(1,1) -- Output EBX ('r')\r\n ROM.put(41, \"000010 00 11 0 0 00000110\"); //41: STR(3,0,6) -- Store EDX to M(6)\r\n ROM.put(42, \"001101 00 00 1 0 00000110\"); //42: JMP(0,6) -- JMP to c(M(6))\r\n // Machine error entry point\r\n ROM.put(43, \"000001 00 11 0 0 00000100\"); // 43: LDR(3, 0, 4) -- restore PC to EDX (used on 41) \r\n ROM.put(44, \"000011 00 00 0 0 01001101\"); //44: LDA(0,72) -- Set EAX to 77 ('M') \r\n ROM.put(45, \"111110 00 00 000000 0001\"); //45: OUT(0,1) -- Output EAX ('M') \r\n ROM.put(46, \"001101 00 00 0 0 00100001\" ); //46: JMP(33) -- Jump to 33 \"MError\"\r\n // Create Trap Table Defaults\r\n for(int i=47;i<=63;i++){\r\n ROM.put(i, \"001101 00 00 0 0 00100000\"); // Set TRAP table locs all to 32 by default\r\n }\r\n \r\n // Read ROM contents into memory\r\n for (Map.Entry romEntry : ROM.entrySet()) { \r\n try {\r\n this.getMemory().engineerSetMemoryLocation(new Unit(13, (int)romEntry.getKey()), Word.WordFromBinaryString((String)romEntry.getValue()));\r\n } catch (MachineFaultException ex) {\r\n Logger.getLogger(Computer.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n try {\r\n this.getCpu().getBranchPredictor().scanMemory();\r\n } catch (MachineFaultException ex) {\r\n Logger.getLogger(Computer.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n //Transfer Control to ROM Bootloader\r\n this.getCpu().getControlUnit().setProgramCounter(new Unit(13, 10)); // Start at 10 \r\n this.cpu.setRunning(true); \r\n }", "@Override\n\tpublic void interpretBytes() {\n\t\tuserSession.getUser().setMagicIndex(input.getInt(0x14));\n\t\tuserSession.getUser().setWeaponIndex(input.getInt(0x18));\n\t\tuserSession.getUser().setAccessoryIndex(input.getInt(0x1C));\n\t\tuserSession.getUser().setPetIndex(input.getInt(0x20));\n\t\tuserSession.getUser().setFootIndex(input.getInt(0x24));\n\t\tuserSession.getUser().setBodyIndex(input.getInt(0x28));\n\t\tuserSession.getUser().setHand1Index(input.getInt(0x2C));\n\t\tuserSession.getUser().setHand2Index(input.getInt(0x30));\n\t\tuserSession.getUser().setFaceIndex(input.getInt(0x34));\n\t\tuserSession.getUser().setHairIndex(input.getInt(0x38));\n\t\tuserSession.getUser().setHeadIndex(input.getInt(0x3C));\n\t}" ]
[ "0.73938924", "0.71102905", "0.6518648", "0.5733565", "0.57146645", "0.557043", "0.55416477", "0.54666865", "0.53460705", "0.53099906", "0.53059816", "0.5255845", "0.52414334", "0.52260315", "0.51898265", "0.51482284", "0.51256216", "0.510927", "0.5096966", "0.5013906", "0.5007076", "0.50025326", "0.49796128", "0.49672493", "0.4965145", "0.49496827", "0.49458545", "0.49458316", "0.49018732", "0.4883539", "0.4881204", "0.4881204", "0.48801315", "0.48717147", "0.4868552", "0.4866629", "0.48614377", "0.48605633", "0.48603752", "0.48566347", "0.4831782", "0.48289806", "0.4828939", "0.482589", "0.48080567", "0.48047146", "0.4802718", "0.47726628", "0.47685036", "0.47678673", "0.4751631", "0.4749826", "0.47415593", "0.4736426", "0.47357136", "0.4728821", "0.47263327", "0.47203228", "0.47203228", "0.47203228", "0.47203228", "0.47194055", "0.47146308", "0.47145674", "0.47105414", "0.47077248", "0.4703663", "0.47029653", "0.4698356", "0.4694004", "0.46936023", "0.46931714", "0.4682504", "0.46785137", "0.4676873", "0.4669867", "0.46638766", "0.46581376", "0.46537346", "0.4649335", "0.46458098", "0.46416825", "0.46321633", "0.46300107", "0.46296453", "0.4619656", "0.4616679", "0.46109083", "0.46090853", "0.46069783", "0.46044695", "0.4594221", "0.45908684", "0.4587489", "0.45860642", "0.45824808", "0.45780823", "0.45771948", "0.45725998", "0.4569972" ]
0.7634677
0
Read all contents of the EEPROM user area as String
public String readFullEEPROMUserAreaAsString() throws IOException { IntByReference actually = new IntByReference(); int numberOfBytes = getEEPROMUserAreaSize(); Memory dest = new Memory(numberOfBytes); ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually)); return dest.getString(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] readFullEEPROMUserArea() throws FTD2XXException {\n int numberOfBytes = getEEPROMUserAreaSize();\n return readEEPROMUserArea(numberOfBytes);\n }", "public byte[] readEEPROMUserArea(int numberOfBytes) throws FTD2XXException {\n IntByReference actually = new IntByReference();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getByteArray(0, actually.getValue());\n }", "public String read();", "String readString();", "public EEPROMData readEEPROM() throws FTD2XXException {\n FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference();\n ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference));\n return new EEPROMData(ftByReference);\n }", "String read();", "String read();", "private String read() {\n\n String s = \"\";\n\n try {\n // Check if there are bytes available\n if (inStream.available() > 0) {\n\n // Read bytes into a buffer\n byte[] inBuffer = new byte[1024];\n int bytesRead = inStream.read(inBuffer);\n\n // Convert read bytes into a string\n s = new String(inBuffer, \"ASCII\");\n s = s.substring(0, bytesRead);\n }\n\n } catch (Exception e) {\n Log.e(TAG, \"Read failed!\", e);\n }\n\n return s;\n }", "public String readString() {\n final int BUF_SIZE = 100;\n byte[] byteDest = new byte[BUF_SIZE];\n String ret = \"\";\n int num = BUF_SIZE;\n try {\n while (!ret.contains(\"\\r\")) {\n if ((num = in.read(byteDest)) > 0) {\n ret += new String(byteDest, 0, num);\n }\n }\n } catch (IOException e) {\n print(\"Error reading String from \" + portName);\n }\n print(\"Read :\" + ret + \":\");\n return ret;\n }", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "public static String readString()\n \n {\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n \n } catch(IOException e1) {\n System.out.println(\"Eingabefehler,\");\n \n }\n return wort;\n }", "public String readString(){\r\n byte[] pLen = new byte[1];\r\n byte[] pTAG = new byte[1];\r\n byte[] pSN = new byte[10];\r\n byte[] pNumTagFound = new byte[1];\r\n short tag = cardReader.select(handle,pTAG, pLen, pSN);\r\n if (tag < 0 ){\r\n message = \"No card found\";\r\n System.err.println(message);\r\n }\r\n if (!login()) return \"No card found\";\r\n String s;\r\n byte[] bdata = new byte[16];\r\n cardReader.read(handle,blocknr,bdata);\r\n s = new String(bdata);\r\n System.err.println(\"Read block: \" + s); \r\n return s;\r\n }", "@Override\n\tpublic String readBlob() throws PersistBlobException {\n\t\tlog.debug(\"readString: \");\n\t\ttry {\n\t\t\tString contents = FileUtils.readFileToString(new File(full_file_name), \"UTF-8\");\n\t\t\tlog.debug(\"returned string: \"+contents);\n\t\t\treturn contents;\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"can not read string\",e);\n\t\t}\n\n\t}", "public String readString() {\n byte[] byteForStream = new byte[1024];\n String message = \"\";\n\n mListener.onCarRunning();\n\n\n int bytes;\n\n while (true) {\n try {\n bytes = mInputStream.read(byteForStream);\n message = new String(byteForStream, 0, bytes);\n Log.d(TAG, \" Read from inputstream \" + message);\n\n } catch (IOException e) {\n Log.e(TAG, \" error reading from inputstream \" + e.getMessage());\n break;\n }\n }\n return message;\n }", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "private static String readInput() {\n String kbString = \"\";\n File kbFile = new File(\"kb.txt\");\n if(kbFile.canRead()){\n try {\n FileInputStream fileInputStream = new FileInputStream(kbFile);\n\n int c;\n while((c = fileInputStream.read()) != -1){\n kbString += (char) c;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return kbString;\n }", "public String readString() throws IOException {\n checkOpened();\n return dis.readUTF();\n }", "java.lang.String getContents();", "java.lang.String getContents();", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "String getContents();", "public String readString() throws IOException {\n return WritableUtils.readString(in);\n }", "private static String readAll(Reader rd) throws IOException {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int cp;\n\t\t while ((cp = rd.read()) != -1) {\n\t\t sb.append((char) cp);\n\t\t }\n\t\t return sb.toString();\n\t\t }", "public String readUTF() throws IOException {\n\n\t\t// Punt on this one and use DataInputStream routines.\n\t\tDataInputStream d = new DataInputStream(this);\n\t\treturn d.readUTF();\n\n\t}", "public void writeEEPROMUserArea(String data) throws FTD2XXException {\n Memory source = new Memory(data.length());\n source.setString(0, data);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));\n }", "public byte[] getUserKey() throws IOException\n {\n byte[] u = null;\n COSString user = (COSString)encryptionDictionary.getDictionaryObject( COSName.getPDFName( \"U\" ) );\n if( user != null )\n {\n u = user.getBytes();\n }\n return u;\n }", "public char[] storage_GET()\n {return storage_GET(new char[120], 0);}", "private String readAll(Reader rd) throws IOException {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint cp;\r\n\t\twhile ((cp = rd.read()) != -1) {\r\n\t\t\tsb.append((char) cp);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "public String getContentsAsString() throws VlException\n {\n return getContentsAsString(getCharSet());\n }", "public String readMessage() {\r\n return new String(readMessageAsByte());\r\n }", "private String read(int address)\n {\n return MMU.read(VMA.get( address/RAM.getPageSize()) * RAM.getPageSize() + (address % RAM.getPageSize()));\n }", "public String getString_entries_receiveEst() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,11)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_entries_receiveEst(i) == (char)0) break;\n carr[i] = (char)getElement_entries_receiveEst(i);\n }\n return new String(carr,0,i);\n }", "private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String readString(){\n\t\ttry{\n\t\t\treturn scanner.next();\n\t\t}catch (NoSuchElementException e){\n\t\t\tthrow new NoSuchElementException(\"NoSuchEle\");\n\t\t}\n\t}", "public String read()\n\t{\n\t\ttry\n\t\t{\n\t\t\tint startAt = 0;\n\t\t\tString tempRead = inFromClient.readLine();\n\t\t\t\n\t\t\t// Clear out any nonalphabetic characters from the input buffer if\n\t\t\t// the user has just connected.\n\t\t\tif (!hasReadOnce)\n\t\t\t{\n\t\t\t\tfor (int ctr = 0; ctr < tempRead.length(); ctr++)\n\t\t\t\t{\n\t\t\t\t\tif ((tempRead.charAt(ctr) >= 'a' && tempRead.charAt(ctr) <= 'z')\n\t\t\t\t\t\t|| (tempRead.charAt(ctr) >= 'A' && tempRead.charAt(ctr) <= 'Z'))\n\t\t\t\t\t{\n\t\t\t\t\t\tstartAt = ctr;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thasReadOnce = true;\n\t\t\t}\n\n\t\t\thasPrinted = true;\n\t\t\ttempRead = tempRead.substring(startAt, tempRead.length());\n\t\t\t\n\t\t\t// Never return nonprintable characters. To support windows telnet, go back one\n\t\t\t// character for each backspace (chr #8) encountered.\n\t\t\tString newRead = \"\";\n\t\t\tfor (int ctr = 0; ctr < tempRead.length(); ctr++)\n\t\t\t{\n\t\t\t\tif (tempRead.charAt(ctr) > 31)\n\t\t\t\t\tnewRead = newRead+tempRead.charAt(ctr);\n\t\t\t\tif (tempRead.charAt(ctr) == 8 && newRead.length() > 0)\n\t\t\t\t\tnewRead = newRead.substring(0, newRead.length()-1);\n\t\t\t}\n\n\t\t\treturn newRead;\n\n\t\t} catch (NullPointerException e) {\n\t\t\tthis.closeSocket();\n\t\t\tif (ch.shortName.length() > 0)\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: \"+ch.shortName);\n\t\t\telse\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: No character.\");\n\t\t\treturn \"\";\n\t\t} catch (SocketException e) {\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\tif (ch.shortName.length() > 0)\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: \"+ch.shortName);\n\t\t\telse\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: No character.\");\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static String readAllBytes(Reader rd) throws IOException {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tstringBuilder.append((char) cp);\n\t\t}\n\t\treturn stringBuilder.toString();\n\t}", "public int getEEPROMUserAreaSize() throws FTD2XXException {\n IntByReference size = new IntByReference();\n ensureFTStatus(ftd2xx.FT_EE_UASize(ftHandle, size));\n return size.getValue();\n }", "public String[][] getTouRead()\r\n\t{\r\n\t\treturn touRead;\r\n\t}", "private String readStringUntil0x() throws IOException {\n String thisLine = \"\";\n int ch;\n while ((ch = ins.read()) != -1) {\n if (ch != 0x0) {\n thisLine = thisLine + String.valueOf((char) ch);\n } else {\n break;\n }\n }\n return thisLine;\n }", "protected String readKeyFromInternalStorage(String fileContent) {\n try {\n myLogPrint(\"Inside Second Trying the write to internal: Line 686\");\n\n BufferedReader inputReader = new BufferedReader(new InputStreamReader(\n openFileInput(fileContent)));\n String inputString;\n StringBuffer stringBuffer = new StringBuffer();\n\n while ((inputString = inputReader.readLine()) != null) {\n stringBuffer.append(inputString + \"\\n\");\n }\n\n myLogPrintLN(\"The KeyCode in internal storage is: \", stringBuffer.toString());\n return stringBuffer.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n\n }", "public static String getData(String key){\n\t\treturn new String(KeyStorage.memStore.getOrDefault(key.getBytes(), nonexists.getBytes()));\n\t}", "public abstract String read_string();", "public String getText() {\n getLock().getReadLock();\n try {\n return getTextBuffer().toString();\n } finally {\n getLock().relinquishReadLock();\n }\n }", "public String getString() {\n\t\ttry {\n\t\t\treturn fromTextArea.take().trim();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public String receiveString(){\n\t\ttry{\n\t\t\tString s = (String) in.readObject();\n\t\t\tSystem.out.println(\"Empfange Nachricht \" + s);\n\t\t\treturn s;\n\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "String getEString();", "public void getData() {\n\t\tContext context = getApplicationContext();\n\t\tint ch;\n\t\tStringBuffer fileContent = new StringBuffer(\"\");\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = context.openFileInput(filename);\n\t\t\ttry {\n\t\t\t\twhile ((ch = fis.read()) != -1)\n\n\t\t\t\t\tfileContent.append((char) ch);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tdata = new String(fileContent);\n\n\t}", "public byte[] getText() {\n\t\treturn this.text;\n\t}", "public String getOemID() {\n final byte[] data = new byte[8];\n mem.getBytes(8, data, 0, data.length);\n return new String(data).trim();\n }", "public String keyboardReadString() {\n BufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n String stringItem = \"\";\n try {\n stringItem = myReader.readLine();\n } // try\n catch (IOException IOError) {\n System.out.println(\"Read Error in Termio.KeyboardReadString method\");\n } // catch\n return stringItem;\n }", "public String read() throws IOException {\n return reader.readLine();\n }", "private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }", "static String readString() throws IOException{\n return bufferedReader.readLine();\n }", "public byte[] readRawString() throws IOException {\n int length = in.readInt();\n byte[] bytes = new byte[5 + length];\n bytes[0] = (byte) Type.STRING.code;\n bytes[1] = (byte) (0xff & (length >> 24));\n bytes[2] = (byte) (0xff & (length >> 16));\n bytes[3] = (byte) (0xff & (length >> 8));\n bytes[4] = (byte) (0xff & length);\n in.readFully(bytes, 5, length);\n return bytes;\n }", "private String readVarchar() throws IOException {\r\n // First int tells us the length of the string\r\n int n = getReader().read();\r\n\r\n // Read n bytes into the buffer\r\n getReader().read(mBuffer, 0, n);\r\n\r\n // Create string from buffer\r\n String s = new String(mBuffer, 0, n, StandardCharsets.UTF_8);\r\n\r\n return s;\r\n }", "static void take_memory_values() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\t\tString input = scan.readLine();\n\t\tif(input.equals(\"N\"))\n\t\t\treturn;\n\t\taddress = hexa_to_deci(input);\n\t\tprint_the_address(address);\n\t\tinput = scan.readLine();\n\t\tif(input.length()==2)\n\t\t\tmemory.put(address,input);\n\t\telse{\n\t\t\tmemory.put(address,input.substring(2));\n\t\t\tmemory.put(address+1,input.substring(0,2));\n\t\t}\n\t\t//System.out.println(address+\" \"+memory.get(address));\n\t\ttake_memory_values();\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 void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }", "public String readString() {\n return readNextLine();\n }", "public String getData(){\r\n\t\t// Creating register message\r\n\t\tmessageToServer = GET_DATA_KEYWORD \r\n\t\t\t\t+ SEPARATOR + controller.getModel().getAuthUser().getToken();\r\n\r\n\t\t// Sending message\t\t\t\t\r\n\t\tpw.println(messageToServer);\r\n\t\tpw.flush();\r\n\t\tSystem.out.println(\"Message sent to server: \" + messageToServer);\r\n\r\n\t\t// Reading the answer from server, processing the answer\r\n\t\tString data = null;\r\n\t\ttry {\r\n\r\n\t\t\tdata = br.readLine();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.toString(), \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}", "byte[] readBytes();", "public String readUTF() throws IOException;", "public static String readString(){\n\t\tstringInput = readInput();\n\t\treturn stringInput; \n\t}", "public String extractString()\n\t{\n\t\t// holds the string builder object to return\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\t// for every byte\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\t// extract the current character\n\t\t\tchar current = (char) (bytes[i] & 0xFF);\n\t\t\t\n\t\t\t// append the character\n\t\t\tif (current > 0)\n\t\t\t{\n\t\t\t\tsb.append(current);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// return the string\n\t\treturn sb.toString();\n\t}", "public EepromX readEEPROM_X() throws FTD2XXException {\n EepromX eeprom = new EepromX();\n Memory manufacturer = new Memory(64);\n Memory manufacturerId = new Memory(64);\n Memory description = new Memory(64);\n Memory serialNumber = new Memory(64);\n\n Memory mem = new Memory(56);\n mem.setInt(0, 9);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Read(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), manufacturer, manufacturerId, description,\n serialNumber));\n\n eeprom.setManufacturer(manufacturer.getString(0));\n eeprom.setManufacturerId(manufacturerId.getString(0));\n devDescription = description.getString(0);\n eeprom.setDescription(devDescription);\n devSerialNumber = serialNumber.getString(0);\n eeprom.setSerialNumber(devSerialNumber);\n\n return eeprom;\n }", "private String getDataFromBuffer(){\r\n int bufferDataSize = mBufferData.size();\r\n StringBuilder temp = new StringBuilder();\r\n \r\n for (int i = 0; i < bufferDataSize; i++) {\r\n temp.append(mBufferData.remove());\r\n }\r\n return temp.toString();\r\n }", "public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}", "private static String getString(Reader reader) {\n StringBuffer buf = new StringBuffer();\n char[] buffer = new char[1024];\n int count;\n try {\n while ((count = reader.read(buffer)) != -1) {\n buf.append(buffer, 0, count);\n }\n } catch (IOException e) {\n return null;\n }\n return buf.toString();\n }", "public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}", "public byte[] getTextBytes();", "public char[] payload_GET()\n {return payload_GET(new char[249], 0);}", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "private static String getText(IFile file) throws CoreException, IOException {\n\t\tInputStream in = file.getContents();\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[1024];\n\t\tint read = in.read(buf);\n\t\twhile (read > 0) {\n\t\t\tout.write(buf, 0, read);\n\t\t\tread = in.read(buf);\n\t\t}\n\t\treturn out.toString();\n\t}", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "public static String readString() {\n return in.nextLine();\n }", "private static String readFileToString(String filePath) throws IOException {\n\t\tStringBuilder fileData = new StringBuilder(1000);\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t\tchar[] buf = new char[10];\n\t\tint numRead = 0;\n\t\twhile ((numRead = reader.read(buf)) != -1) {\n\t\t\tString readData = String.valueOf(buf, 0, numRead);\n\t\t\tfileData.append(readData);\n\t\t\tbuf = new char[1024];\n\t\t}\n\t\treader.close();\n\t\treturn fileData.toString();\t\n\t}", "protected String readAscii(BinaryDataReader dataReader) throws IOException\n\t{\n\t\tbyte[] data = new byte[this.count];\n\n\t\t// read string buffer\n\t\tif (this.count <= 4)\n\t\t{\n\t\t\t// unpack integer\n\t\t\tint value = this.value;\n\t\t\tfor (int i = 0; i < this.count; i++)\n\t\t\t{\n\t\t\t\tdata[i] = (byte) (value & 0x00FF);\n\t\t\t\tvalue = value >> 8;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// convert state to long offset for reading large buffer\n\t\t\tlong offset = ((long) this.value) & 0xffffffffL;\n\n\t\t\tlong pos0 = dataReader.getFilePointer();\n\t\t\tdataReader.seek(offset);\n\t\t\tdataReader.readByteArray(data);\n\t\t\tdataReader.seek(pos0);\n\t\t}\n\n\t\treturn new String(data);\n\t}", "String getDataFromScreen();", "public String readMessage() throws IOException {\n\t\treturn reader.readLine();\n\t}", "public String getText() {\n StringBuffer textBuffer = new StringBuffer();\n Object obj;\n int segment;\n for (segment = 0; segment < this.TOTALSEGMENTS; segment++) {\n obj = null;\n Method getter = this.getTextGetter(segment);\n try {\n obj = getter.invoke(this, new Object[] {});\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"That segment doesn't exist.\");\n } catch (InvocationTargetException e) { \n throw new RuntimeException(\"Unable to invoke that method..\");\n }\n \n if (obj != null ) {\n String stringToAppend = (String) obj;\n textBuffer.append (stringToAppend);\n // logger.debug (\"Appending a string of length \" + stringToAppend.length());\n }\n }\n // logger.debug(\"getText returned \" + textBuffer.length() + \"chars.\" );\n return textBuffer.toString();\n }", "byte[] getEByteArray();", "public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public synchronized String read() {\n\n /* RULE: empty, eligible for WRITE only; !empty, eligible for READ only :\n for read process to proceed, need message tray to be full, so while empty,\n make this thread sleep (the READER thread) so the other thread will run\n and write/fill in the message tray */\n\n while(empty) { // loop til we got a msg to read (cant read without msg)\n // DEADLOCK FIX\n try {\n wait(); // an Object method, not Thread's\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n empty = true; // i read the msg, will be sending this to Reader afterwards so message tray is now empty\n notifyAll(); // executed only after we have updated 'empty'\n return message;\n }", "public static String[] readStrings() {\n return readAllStrings();\n }", "String getData();", "public String getStringContent() throws IOException;", "public String getClipboardContents() {\n String result = \"\";\n Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n //odd: the Object parameter of getContents is not currently used\n Transferable contents = clipboard.getContents(null);\n boolean hasTransferableText =\n (contents != null) &&\n contents.isDataFlavorSupported(DataFlavor.stringFlavor)\n ;\n if ( hasTransferableText ) {\n try {\n result = (String)contents.getTransferData(DataFlavor.stringFlavor);\n }\n catch (UnsupportedFlavorException ex){\n //highly unlikely since we are using a standard DataFlavor\n //System.out.println(ex);\n ex.printStackTrace();\n }\n catch (IOException ex) {\n //System.out.println(ex);\n ex.printStackTrace();\n }\n }\n return result;\n }", "public String read() {\n\t\tString Line = \"\";\n\t\tInteger[] byteCodes = compressFileReader();\n\t\tif (byteCodes == null)\n\t\t\treturn null;\n\t\tint index = 0;\n\t\tint nextCode = byteCodes[index++];\n\t\tString val = readingMap[nextCode];\n\n\t\twhile (index < byteCodes.length - 1) {\n\t\t\tLine += val;\n\t\t\tnextCode = byteCodes[index++];\n\t\t\tString s = readingMap[nextCode];\n\t\t\tif (s == null) {\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tint i = 0;\n\t\t\t}\n\t\t\tif (readingkeysCount == nextCode)\n\t\t\t\ts = val + val.charAt(0);\n\t\t\tif (readingkeysCount < 256 + keysPossible)\n\t\t\t\treadingMap[readingkeysCount++] = val + s.charAt(0);\n\t\t\tval = s;\n\t\t}\n\t\tLine += val;\n\t\treturn Line + '\\n';\n\t}", "public static String readDiskMemory(String address){\n\t\treturn memory.get(address);\n\t}", "public byte[] read();", "public EStringElements getEStringAccess() {\n\t\treturn pEString;\n\t}", "public EStringElements getEStringAccess() {\n\t\treturn pEString;\n\t}", "public EStringElements getEStringAccess() {\n\t\treturn pEString;\n\t}", "private void organizeEEPROM() {\n\t \n \n\t //put red, green, blue, and activitity values into r, g, b, and a\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t r[(i)/8] = 256*EEPROM[i] + EEPROM[i + 1];\n\t\t g[(i)/8] = 256*EEPROM[i + 2] + EEPROM[i + 3];\n\t\t b[(i)/8] = 256*EEPROM[i + 4] + EEPROM[i + 5];\n\t\t a[(i)/8] = 256*EEPROM[i + 6] + EEPROM[i + 7];\n \n\t\t //set resets to zero by default\n\t\t if((r[(i)/8] == 65278) && (b[(i)/8] == 65278) && (g[i/8] == 0)) {\n\t\t\t r[(i)/8] = 0;\n\t\t\t g[(i)/8] = 0;\n\t\t\t b[(i)/8] = 0;\n\t\t\t a[(i)/8] = 0;\n\t\t }\n\t }\n \n\t //get end of address\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t if((EEPROM[i] == 255) && (EEPROM[i + 1] == 255)) {\n\t\t\t endaddress = i/8;\n\t\t\t break;\n\t\t }\n\t }\n\t if(isnew) {\n\t\t ID = Integer.parseInt(asciiheader[8]);\n\t\t mm = Integer.parseInt(asciiheader[7].substring(0, 2));\n\t\t dd = Integer.parseInt(asciiheader[7].substring(3, 5));\n\t\t yy = Integer.parseInt(asciiheader[7].substring(6, 8));\n\t\t HH = Integer.parseInt(asciiheader[7].substring(9, 11));\n\t\t MM = Integer.parseInt(asciiheader[7].substring(12, 14));\n\t\t period = Integer.parseInt(asciiheader[3]);\n\t\t\t\t \n\t\t if(isUTC) {\n\t\t\t offset = Calendar.get(Calendar.DST_OFFSET) / 3600000;\n\t\t\t //apply offset, but if offset rolls us into a new day, we need to account for that\n\t\t\t if (HH + offset > 23) {\n\t\t\t\t dd += 1;\n\t\t\t\t HH = (HH + offset) % 24;\n\t\t\t\t //if our new day rolls us into a new month, account for that\n\t\t\t\t //30 days have September, April, June, and November\n\t\t\t\t if(dd > 30 && (mm == 9 || mm == 4 || mm == 6 || mm == 11)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //All the rest have 31, except for February who is a fuckwad.\n\t\t\t\t else if (dd > 31 && !(mm == 9 || mm == 4 || mm == 6 || mm == 11 || mm == 2)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and not a leap year\n\t\t\t\t else if (dd > 28 && (yy%4 != 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //If it is February and a leap year\n\t\t\t\t else if (dd > 29 && (yy%4 == 0)) {\n\t\t\t\t\t dd = 1;\n\t\t\t\t\t mm += 1;\n\t\t\t\t }\n\t\t\t\t //Did we rollover our year doing this?\n\t\t\t\t if (mm > 12) {\n\t\t\t\t\t mm = 1;\n\t\t\t\t\t yy += 1;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t else {\n\t\t\t\t HH = HH + offset;\n\t\t\t }\n\t\t }\n\t }\n\t else {\n\t\t ID = (header[3] - 48)*1000 + (header[4] - 48)*100 + (header[5] - 48)*10 + (header[6] - 48);\n\t\t mm = (header[9] - 48)*10 + (header[10] - 48);\n\t\t dd = (header[12] - 48)*10 + (header[13] - 48);\n\t\t yy = (header[15] - 48)*10 + (header[16] - 48);\n\t\t HH = (header[18] - 48)*10 + (header[19] - 48);\n\t\t MM = (header[21] - 48)*10 + (header[22] - 48);\n\t\t period = (header[25] - 48)*100 + (header[26] - 48)*10 + (header[27] - 48);\n\t }\n \t}", "public List<String> read()\n\t{\n\t\treturn null;\n\t}", "public String getRichContents() {\n/* 205 */ COSBase base = getCOSObject().getDictionaryObject(COSName.RC);\n/* 206 */ if (base instanceof COSString)\n/* */ {\n/* 208 */ return ((COSString)base).getString();\n/* */ }\n/* 210 */ if (base instanceof COSStream)\n/* */ {\n/* 212 */ return ((COSStream)base).toTextString();\n/* */ }\n/* */ \n/* */ \n/* 216 */ return null;\n/* */ }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }" ]
[ "0.707304", "0.63610715", "0.6144361", "0.6073744", "0.60535926", "0.60182166", "0.60182166", "0.6010481", "0.58434665", "0.58121055", "0.5795467", "0.5722393", "0.5618482", "0.55947316", "0.5545715", "0.5514205", "0.54959905", "0.5486082", "0.5486082", "0.5482695", "0.5479874", "0.54749817", "0.54607904", "0.54360837", "0.5413395", "0.5400485", "0.53832656", "0.5360469", "0.53557336", "0.5331824", "0.5305824", "0.5302589", "0.52986157", "0.52982306", "0.52982306", "0.5285108", "0.5281229", "0.52361864", "0.5230023", "0.52283126", "0.5218811", "0.5218564", "0.5201416", "0.5197388", "0.5194825", "0.51892406", "0.51798016", "0.5148371", "0.51471764", "0.5133128", "0.5126076", "0.5125018", "0.5109368", "0.51056206", "0.5100147", "0.5095219", "0.50934905", "0.50922066", "0.5091636", "0.5086336", "0.50857574", "0.50846505", "0.50717384", "0.5066184", "0.50634164", "0.50623477", "0.505786", "0.5052562", "0.504928", "0.504674", "0.5045547", "0.5040161", "0.5028966", "0.50262696", "0.5023964", "0.50225365", "0.5019302", "0.5018015", "0.5016149", "0.50004363", "0.4990169", "0.49896806", "0.49840322", "0.49807984", "0.49805942", "0.4973903", "0.4973479", "0.49733344", "0.49578682", "0.49524662", "0.49524418", "0.49509627", "0.4945955", "0.4945955", "0.4945955", "0.49434644", "0.4942131", "0.49400944", "0.49141014", "0.49123302" ]
0.8140395
0