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 new form OpenImgs | public OpenImgs(IFramesTaker collectionTaker, BufferedImage[] images) {
this.framesTaker = collectionTaker;
initComponents();
initAdvancedComponents();
framePanel.setFrame(new Frame(images[0],GameInvariants.FRAMES_VERSION));
imgs = images;
massCenterPanel.setFramePanel(framePanel);
colorPanel.setFramePanel(framePanel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openImageFile(ImageActions action) {\n\t\tsetImageHolder(action, RGPTUIUtil.getImageFile(this));\r\n\t}",
"private void openFileChoose() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PEGA_IMAGEM);\n }",
"public void addPhoto(ActionEvent event) throws IOException {\n\t\t//System.out.println(\"ITEM ADDED______________________________________________\");\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open Photo\"); \n\t\tAccessibleUsersList.masterUserList.userLoggedIn.fileList = fileChooser.showOpenMultipleDialog(this.myNewStage);\n\t\t\n\t\tboolean checkIfImages = true;\n\t\t\n\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null){\n\t\t\t\n\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\n\t\t\t\tMimetypesFileTypeMap mimetype= new MimetypesFileTypeMap();\n\t\t\t\tmimetype.addMimeTypes(\"image png jpg jpeg JPG PNG\");\t\n\t\t\t\t\n\t\t\t\tString mimetype1 = mimetype.getContentType(file);\n\t\t\t\tString type = mimetype1.split(\"/\")[0];\n\t\t\t\t\n\t\t\t\tif(type.contains(\"image\")){\n\t\t\t //System.out.println(\"It's an image\");\n\t\t\t\t} else { \n\t\t\t \t //System.out.println(\"It's NOT an image\");\n\t\t\t \t Alert majorBagAlert = new Alert(AlertType.ERROR);\n\t\t\t\t majorBagAlert.setTitle(\"Error\");\n\t\t\t\t majorBagAlert.setHeaderText(\"One or more images is not an image file type.\");\n\t\t\t\t majorBagAlert.setContentText(\"Please enter photo(s) again\");\n\t\t\t\t majorBagAlert.showAndWait();\n\t\t\t \t \n\t\t\t\t //adding comment\n\t\t\t checkIfImages = false; \n\t\t\t }\n\t\t\t}\n }\n\t\t\n\n\t\t//iterate through the logged in user's albums \n\t\t//this is the album we have to add our photos to \n\t\tthis.selectedAlbum = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getName(); \n\t\tAlbum foundAlbum = null; \n\t\tlong lastModifiedDate = 0; \n\t\tString path; \n\t\t\n\t\t//if we are certain we only collected files of type jpg, png or jpeg \n\t\tif(checkIfImages){\n\t\t\t\n\t\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null) {\n\t\t\t\t\n\t\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\t\n\t\t\t\t\tpath = file.getAbsolutePath();\n\t\t\t\t\tFileInputStream inputstream = new FileInputStream(path); \n\t\t\t\t\tImage image1 = new Image(inputstream); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//iterate through the logged in user's albums \n\t\t\t\t\tint x=0; \n\t\t\t\t\tfor(Album album: AccessibleUsersList.masterUserList.userLoggedIn.albums_list){\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//looking for the current album to add our photos into \n\t\t\t\t\t\tif(album.getName().equals(this.selectedAlbum)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfoundAlbum = AccessibleUsersList.masterUserList.userLoggedIn.albums_list.get(x);\n\t\t\t\t\t\t\tlastModifiedDate = file.lastModified();\n\t\t\t\n\t\t\t\t\t\t\tPhoto albumPhoto = new Photo(path, lastModifiedDate); \n\t\t\t\t\t\t\tfoundAlbum.getAlbum().add(albumPhoto);\t \n\t\t\t\t\t\t\t//System.out.println(foundAlbum.getAlbum());\n\t\t\t\t\t\t\t//foundAlbum.photos.add(new model.Photo(image1, lastModifiedDate));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tImageView pic = new ImageView();\n\t\t\t\t\t\t\tpic.setFitWidth(340);\n\t\t\t\t\t\t\tpic.setFitHeight(180);\n\t\t\t\t\t\t\tpic.setImage(image1);\n\t\t\t\t\t\t\tlistOfPhotos.add(pic);\n\t\t\t\t\t\t\talbumPhoto.setImage(pic);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"photo added\");\n\t\t\t\t\t\t\t//System.out.println(albumPhoto.getPathToPhoto());\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn);\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.addPhoto(albumPhoto); <-----cause of bug, added photo TWICE, X\n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t} \n\t\t\t\t\t\tx++; \n\t\t\t\t\t}\n \t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\t\n\t}",
"public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }",
"public void OpenActionPerformed(ActionEvent evt) { \r\n\r\n //open file from file browser and display the image in the drawing panel\r\n if (jfcOpen.showOpenDialog(this) == JFileChooser.APPROVE_OPTION){\r\n //get selected image file\r\n File fileOpen = jfcOpen.getSelectedFile();\r\n \r\n //get image file path\r\n String fileName = fileOpen.toString();\r\n \r\n //set image path and display image\r\n drawingPanel.setPath(fileName); \r\n }\r\n }",
"private void galleryAddPic() {\n\t}",
"private void openFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PICK_IMAGE_REQUEST);\n\n }",
"private void openFileChooser() {\n Intent imageIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n imageIntent.setType(\"image/*\");\n startActivityForResult(imageIntent, GALLERY_REQUEST);\n }",
"@OnClick(R.id.add_photo_layout)\n public void onClickAddPhoto() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, getString(R.string.choose_image_from)), 8);\n }",
"public void crearImagenes() {\n try {\n fondoJuego1 = new Imagenes(\"/fondoJuego1.png\",39,-150,-151);\n fondoJuego2 = new Imagenes(\"/fondoJuego2.png\",40,150,149);\n regresar = new Imagenes(\"/regresar.png\",43,90,80);\n highLight = new Imagenes(\"/cursorSubmenus.png\",43,90,80);\n juegoNuevo = new Imagenes(\"/juegoNuevo.png\",44,90,80);\n continuar = new Imagenes(\"/continuar.png\",45,90,80);\n tituloJuegoNuevo = new Imagenes(\"/tituloJuegoNuevo.png\",200,100,165);\n tituloContinuar = new Imagenes(\"/tituloContinuar.png\",201,100,40);\n tituloRegresar = new Imagenes(\"/tituloRegresar.png\",202,20,100);\n\t} catch(IOException e){\n e.printStackTrace();\n }\n }",
"public void btnImgAddClick(View view) {\n\t\tIntent photoPickerIntent = new Intent(Intent.ACTION_GET_CONTENT);\n\t\tphotoPickerIntent.setType(\"image/*\");\n\t\tstartActivityForResult(photoPickerIntent, 1);\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File imagefile = fc.getSelectedFile();\n\t\t imageSelect.setText(\"images/\"+imagefile.getName());\n\t\t }}",
"public void openCustomPictureCreator() {\n\n\t\tFXMLLoader fxmlL = new FXMLLoader(getClass().getResource(\"AvatarDrawingTool.fxml\"));\n\t\ttry {\n\t\t\tBorderPane login = (BorderPane) fxmlL.load();\n\n\t\t\tScene scene = new Scene(login, 600, 400);\n\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\n\t\t\tstage.showAndWait();\n\t\t\t\n\t\t\tif(custom) {\n\t\t\t\tsetImg();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void opengallery() {\n Intent gallery = new Intent();\n gallery.setType(\"image/*\");\n gallery.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(getIntent().createChooser(gallery, \"Choose image\"), PICK_IMAGE);\n\n }",
"@RequestMapping(\"/upload\")\n public String formNewGif(Model model) {\n if (!model.containsAttribute(\"gif\")) {\n model.addAttribute(\"gif\", new Gif());\n }\n model.addAttribute(\"categories\", categoryService.findAll());\n model.addAttribute(\"action\", \"/gifs\");\n model.addAttribute(\"heading\", \"Upload Gif\");\n model.addAttribute(\"submit\", \"Upload\");\n return \"gif/form\";\n }",
"public photoGallery(String pics, File osm, int size) {\n pictureFilePath = pics;\n osmFilePath = osm;\n sizeOfGallery = size;\n gallery = new photo[size];\n }",
"@SuppressLint(\"RestrictedApi\")\n private void setUpAddPhoto() {\n mAddPhotoView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n MenuBuilder menuBuilder = new MenuBuilder(EditStudentInfo.this);\n new MenuInflater(EditStudentInfo.this).inflate(R.menu.menu_photo, menuBuilder);\n MenuPopupHelper menuPopupHelper = new MenuPopupHelper(EditStudentInfo.this,\n menuBuilder, mAddPhotoView);\n menuPopupHelper.setForceShowIcon(true);\n menuBuilder.setCallback(new MenuBuilder.Callback() {\n // Create a menu for the user to choose between taking a new photo and\n // choosing a photo from their photo gallery\n @Override\n public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {\n switch (item.getItemId()) {\n case R.id.photo_gallery_action:\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, PICK_PHOTO_GALLERY);\n break;\n case R.id.camera_action:\n launchCamera();\n break;\n default:\n throw new IllegalArgumentException(\"Invalid menu item selected\");\n }\n return true;\n }\n @Override\n public void onMenuModeChange(MenuBuilder menu) {\n\n }\n });\n menuPopupHelper.show();\n }\n });\n }",
"public void openImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, IMAGE_REQUEST);\n }",
"IMG createIMG();",
"@UiHandler(\"addObservatoryImage\")\r\n\tvoid onAddObservatoryImageClicked(ClickEvent event) {\r\n\t\tpresenter.goToCreateObservatoryActivity();\r\n\r\n\t}",
"public NewJFrame() {\n \n this.setIconImage(img.getImage());\n initComponents();\n \n }",
"public imageupload() {\nsuper(); \n this.setTitle(\"Friends Hub <3\");\n initComponents();\n initComponents1();\n this.setVisible(true); \n }",
"public void actionPerformed(ActionEvent e) {\n\tif (\"open\".equals(e.getActionCommand())) {\n\t\tfd.show(); \n\t\t if (fd.getFile() == null) \n\t\t { \n\t\t Label1.setText(\"You have not select\"); \n\t\t } else \n\t\t { \n\t\t in = new File [30];\n\t\t\tin = fd.getFiles ();\t\n\t\t\tLabel1.setText(\"You have selected \" + in.length + \" images\"); \n\t\t }\n\t}\n\tif (\"apply\".equals(e.getActionCommand())) {\n\t\tif (in == null) Label1.setText(\"You have not select\"); \n\t\telse {\n\t\t\tif (in.length < 30) Label1.setText(\"Chưa đủ 30 ảnh. Đã có \" + in.length + \"/30 ảnh\"); \n\t\t\telse {\n\t\tString S = nameImage.getText();\n\t\tif (S.equals(\"\")) Label1.setText(\"Không được để trống tên\");\n\t\telse {\n\t\tFile file = new File(\"D:\\\\java\\\\PROJECT_I\\\\src\\\\\"+ S);\n\t\t if (!file.exists()) {\n\t\t if (file.mkdir()) {\n\t\t System.out.println(\"Directory is created!\");\n\t\t } else {\n\t\t System.out.println(\"Failed to create directory!\");\n\t\t }\n\t\t }\n\t\t InputStream inStream= null;\n\t\t OutputStream outStream = null;\n\t\t \n\t\t //for(int i = 0; i <= in.length - 1; i ++) System.out.println(\"i = \" + i +\" name: \" + in[i].toString());\n\t\t \n\t\t try {\n\t\t\t //File [] getFiles () \n\t\t\t for(int i = 0; i <= in.length - 1; i ++) {\n\t\t\t if (i == 30) {\n\t\t\t\t //Label1.setText(\"Thừa ảnh. Bỏ từ ảnh \"+ in[i].getName()); \n JOptionPane.showMessageDialog(fr, \"Thừa ảnh. Bỏ từ ảnh \"+ in[i].getName());\n\t\t\t break;\n\t\t\t }\n\t\t inStream = new FileInputStream(in[i]);\n\t\t outStream = new FileOutputStream(new File(\"D:\\\\java\\\\PROJECT_I\\\\src\\\\\"+ S+\"\\\\icon\"+(i+1)+\".jpg\"));\n\n\t\t int length;\n\t\t byte[] buffer = new byte[2097152];\n\n\t\t // copy the file content in bytes\n\t\t while ((length = inStream.read(buffer)) > 0) {\n\t\t outStream.write(buffer, 0, length);\n\t\t }\n\t\t\t }\n\t\t System.out.println(\"File is copied successful!\");\n\t\t \n\t\t } catch (IOException ex) {\n\t\t ex.printStackTrace();\n\t\t }\t\t \n\t\t fr.setVisible(false);\n\t\t}}}\n\t}\n\tif (\"replace\".equals(e.getActionCommand())) {\n\t\tif (in == null) Label1.setText(\"You have not select\"); \n\t\telse {\n\t\t\tif (in.length > 30) Label1.setText(\"Thừa ảnh\"); \n\t\t\telse {\n\t\t\tfd.setDirectory(\"D:\\\\java\\\\PROJECT_I\\\\src\\\\\");\n\t\t\tfd.show(); \n\t\t\tFile[] in2;\n\t\t\t in2 = new File [30];\n\t\t\t\tin2 = fd.getFiles ();\n\t\t File tmp = new File(in2[0].getParent());\n\t\t String tv = tmp.getName();\n\t\t int kq = 0;\n\t\t File folder = new File(\"D:\\\\java\\\\PROJECT_I\\\\src\");\n\t\t\t //&& s != \"HighScore\" && s !=\"icon\" && s != \"icon\" && s != \"sound\"\n\t\t\t for (final File fileEntry : folder.listFiles()) {\n\t\t\t if (fileEntry.isDirectory()) {\n\t\t\t \tString s = fileEntry.getName();\n\t\t if (!s.equals(\"Game_lat_hinh\") && !s.equals(\"HighScore\") && !s.equals(\"icon\") && !s.equals(\"img\") && !s.equals(\"sound\")) {\n\t\t \tif (s.equals(tv)) kq = 1; \t\n\t\t }\n\t\t\t }\n\t\t\t }\n\t\t if (kq == 0) Label1.setText(\"File đã chọn không trong thư viện\" );\n\t\t else {\n if (in2.length != in.length ) Label1.setText(\"Số lượng chọn sai . Đã chọn\" + in2.length + \"/\" + in.length + \" ảnh\"); \n else {\n\t\t InputStream inStream= null;\n\t\t OutputStream outStream = null;\n\t\t \n\t\t //for(int i = 0; i <= in.length - 1; i ++) System.out.println(\"i = \" + i +\" name: \" + in[i].toString());\n\t\t \n\t\t try {\n\t\t\t //File [] getFiles () \n\t\t\t for(int i = 0; i <= in2.length - 1; i ++) {\t\t\n\t\t inStream = new FileInputStream(in[i]);\n\t\t outStream = new FileOutputStream(new File(in2[i].getAbsolutePath()));\n\t\t\t in2[i].delete();\n\t\t int length;\n\t\t byte[] buffer = new byte[2097152];\n\n\t\t // copy the file content in bytes\n\t\t while ((length = inStream.read(buffer)) > 0) {\n\t\t outStream.write(buffer, 0, length);\n\t\t }\n\t\t\t }\n\t\t System.out.println(\"File is copied successful!\");\n\t\t \n\t\t } catch (IOException ex) {\n\t\t ex.printStackTrace();\n\t\t }\t\t \n\t\t fr.setVisible(false);\n }}}}\n}\n}",
"private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }",
"public void imageclick(View view)\n {\n //for logo image upload\n\n\n Intent i =new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(i,\"select an image\"),imagerequestcode);\n\n }",
"public void btn_new_photo_On_click(View v) {\n Intent i = new Intent(MainActivity.this, NewPhoto.class);\n startActivity(i);\n }",
"public void createTeamLogo(ActionEvent actionEvent) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Picture Chooser\");\n // Sets up the initial directory as user folder when filechooser is opened\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n\n // Sets the file type options\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"PNG and JPG files\", \"*.png\",\"*.jpg\",\"*.jpeg\"));\n\n createTeamLogoFile = fileChooser.showOpenDialog(null);\n\n if( createTeamLogoFile != null)\n {\n // Upload button's text is changed and the display image is changed to the selected image\n uploadTeamLogoButtonCreate.setText(\"Change Photo\");\n logoChangeImageCreate.setImage(new Image(createTeamLogoFile.toURI().toString()));\n }\n }",
"public void uploadImg(View view){\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"image/*\");\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), SELECT_PICTURE);\n }",
"public void selectedImageButtonPushed(ActionEvent event) throws IOException {\n // get the Stage to open a new window\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"open Image\");\n //filter for .jpg and .png\n FileChooser.ExtensionFilter imageFilter = new FileChooser.ExtensionFilter(\"Image Files\",\"*.jpg\",\"*.png\");\n fileChooser.getExtensionFilters().add(imageFilter);\n // set the start directory\n String userDirectoryString = System.getProperty(\"user.home\")+\"\\\\Pictures\";\n File userDirectory = new File(userDirectoryString);\n // confirm that system can reach the directory\n if (!userDirectory.canRead())\n userDirectory = new File(System.getProperty(\"user.home\"));\n //set the file chooser to select initial directory\n fileChooser.setInitialDirectory(userDirectory);\n File imageFile = fileChooser.showOpenDialog(stage);\n if (imageFile != null && imageFile.isFile())\n {\n selectImage.setImage(new Image(imageFile.toURI().toString()));\n }\n }",
"public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }",
"public void imageOpened(ImagePlus imp) {\n update(imp);\n }",
"public void openFileChooser(ValueCallback<Uri> uploadMsg) {\n openFileChooser(uploadMsg, \"image/*\");\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (mProImage != null) {\n\t\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(),\n\t\t\t\t\t\t\tmProImage, \"QRImage\", \"QRImage\");\n\t\t\t\t\tToast.makeText(ImageShareActivity.this, \"生成成功,请到相册查看\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(ImageShareActivity.this, \"图片生成错误,请返回重试\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"public void openImage(String name) throws ViewerException {\n\n\t}",
"public com.agbar.service.model.ImgImportadas create(long imageId);",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 234);\n }",
"private void openImageIntent() {\n\t\tfinal File root = new File(Environment.getExternalStorageDirectory()\n\t\t\t\t+ File.separator + \"MyDir\" + File.separator);\n\t\troot.mkdirs();\n\n\t\tfinal File sdImageMainDirectory = new File(root, getUniquePhotoName());\n\t\toutputFileUri = Uri.fromFile(sdImageMainDirectory);\n\n\t\t// Camera.\n\t\tfinal List<Intent> cameraIntents = new ArrayList<Intent>();\n\t\tfinal Intent captureIntent = new Intent(\n\t\t\t\tandroid.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n\t\tfinal PackageManager packageManager = source.getPackageManager();\n\t\tfinal List<ResolveInfo> listCam = packageManager.queryIntentActivities(\n\t\t\t\tcaptureIntent, 0);\n\t\tfor (ResolveInfo res : listCam) {\n\t\t\tfinal String packageName = res.activityInfo.packageName;\n\t\t\tfinal Intent intent = new Intent(captureIntent);\n\t\t\tintent.setComponent(new ComponentName(res.activityInfo.packageName,\n\t\t\t\t\tres.activityInfo.name));\n\t\t\tintent.setPackage(packageName);\n\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n\t\t\tcameraIntents.add(intent);\n\t\t}\n\n\t\t// Filesystem.\n\t\tfinal Intent galleryIntent = new Intent();\n\t\tgalleryIntent.setType(\"*/*\");\n\t\tgalleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n\n\t\t// Chooser of filesystem options.\n\t\tIntent chooserIntent = Intent.createChooser(galleryIntent, \"Select Source\");\n\n\t\t// Add the camera options.\n\t\t//chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS,\n\t\t//\t\tcameraIntents.toArray(new Parcelable[] {}));\n\t\t\n\t\tIntent getContentIntent = FileUtils.createGetContentIntent();\n\n\t chooserIntent = Intent.createChooser(getContentIntent, \"Select a file\");\n\n\t\tsource.startActivityForResult(chooserIntent, Constants.QUIZSHOW_DATA);\n\t\t\n\t}",
"public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 1);\n\n }",
"void imageChooser() {\n\n\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"private void loadPhotosClicked() {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"image/jpeg\");\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n\n startActivityForResult(Intent.createChooser(intent, \"Choose Photos\"), RQS_OPEN_PHOTO_TREE);\n }",
"@FXML\r\n public void imageButtonClicked() {\r\n File file = fileChooser.showOpenDialog(viewHandler.getPrimaryStage());\r\n if (file != null) {\r\n try {\r\n viewModel.setImageurl(ImageConverter.ImageToByte(file));\r\n Image img = new Image(new ByteArrayInputStream(viewModel.getImageurl()));\r\n dogPicture.setFill(new ImagePattern(img));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tDialogImage dialog = DialogImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.newInstance(place.gallery\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(index_id_dialog)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.show(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetFragmentManager(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTools.TAG_DIALOG_IMAGE);\n\t\t\t\t\t\t\t\t\t\t\t\t}",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE);\n }",
"public void openImage() {\t\n\t\ttry {\n\t\t\timg.openImage(list);\n\t\t} \t\n\n\t\tcatch (BrokenImageException ex) {\n\t\t\ttry{\n\t\t\t\tif(!validImageContent())\n\t\t\t\t\tthrow new BadImageContentException(\"The image is broken \"\n\t\t\t\t\t\t\t+ \"due to corrupt content\");\n\t\t\t\tif(!validImageHeader())\n\t\t\t\t\tthrow new BadImageHeaderException(\"The image is broken\"\n\t\t\t\t\t\t\t+ \" due to a damaged header\");\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Please catch the proper Image-related Exception.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void OpenGallery() {\n Intent pickImage = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(pickImage, RequestCode);\n }",
"public void onClick(View arg0) {\n Intent intent = new Intent();\r\n intent.setType(\"image/*\");\r\n intent.setAction(Intent.ACTION_GET_CONTENT);\r\n startActivityForResult(Intent.createChooser(intent,\r\n \"Select Picture\"), SELECT_PICTURE);\r\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent();\n photoPickerIntent.setType(\"image/*\");\n photoPickerIntent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(photoPickerIntent, GALLERY_REQUEST);\n }",
"public void loadInputImage()\n{\n selectInput(\"Select a file to process:\", \"imageLoader\"); // select image window -> imageLoader()\n}",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), IMG_RESULT);\n\n }",
"private void getImage() {\n\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n //intent.setType(\"text/xls\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n try {\n startActivityForResult(\n Intent.createChooser(intent, \"Complete action using\"),\n MY_INTENT_CLICK);\n }catch (Exception e) {\n e.getMessage();\n }\n }",
"@Override\n public void onClick(View v) {\n\n ((CreateDocketActivityPart2) activity).openGalleryForPickingImage(position);\n }",
"public VisualizadorImagemJFrame() {\n initComponents();\n \n setLocationRelativeTo(null);\n \n AbrirAction abrirAction = new AbrirAction(this);\n jMenuItemAbrir.setAction(abrirAction);\n abrirBtn.setAction(abrirAction);\n intFrameImage.setVisible(false);\n }",
"private void openGallery() {\n\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, REQUESCODE);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n ((MainActivity) getActivity()).startActivityForResult(\n Intent.createChooser(intent, \"Select Picture\"),\n MainActivity.GALLERY_CODE);\n\n }",
"private void openGallery() {\n\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, REQUESCODE);\n }",
"private void imagePic(){\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"),1);\n\n }",
"boolean uploadImage() {\r\n\t\tJFileChooser inImg = new JFileChooser();\r\n\t\tint approved = inImg.showOpenDialog(mainFrame);\r\n\t\tif (approved == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFile imf = inImg.getSelectedFile();\r\n\t\t\ttry {\r\n\t\t\t\talbum.put(album.size(), new Image(imf.getPath()));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Invalid File Path\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tmodel.addElement(album.get(album.size() - 1));\r\n\t\t\talbumList.setModel(model);\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public void processAddImageOverlay() {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n\n // AND NOW ASK THE USER FOR THE FILE TO OPEN\n FileChooser fc = new FileChooser();\n fc.setInitialDirectory(new File(PATH_WORK));\n fc.setTitle(props.getProperty(LOAD_WORK_TITLE));\n File imageOverlayFile = fc.showOpenDialog(app.getGUI().getWindow());\n \n // SEND THE IMAGE FILE TO DATA MANAGER\n dataManager.setImageOverlayFile(imageOverlayFile);\n \n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_IMAGE_MODE);\n }",
"private void openImageIntent() {\n final File root = new File(Environment.getExternalStorageDirectory() + File.separator + \"MyDir\" + File.separator);\n root.mkdirs();\n final String fname = UUID.randomUUID().toString();\n final File sdImageMainDirectory = new File(root, fname);\n outputFileUri = Uri.fromFile(sdImageMainDirectory);\n\n // Camera.\n final List<Intent> cameraIntents = new ArrayList<Intent>();\n final Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n final PackageManager packageManager = getPackageManager();\n final List<ResolveInfo> listCam = packageManager.queryIntentActivities(captureIntent, 0);\n for(ResolveInfo res : listCam) {\n final String packageName = res.activityInfo.packageName;\n final Intent intent = new Intent(captureIntent);\n intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n intent.setPackage(packageName);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n cameraIntents.add(intent);\n }\n\n // Filesystem.\n final Intent galleryIntent = new Intent();\n galleryIntent.setType(\"image/*\");\n galleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n\n // Chooser of filesystem options.\n final Intent chooserIntent = Intent.createChooser(galleryIntent, \"Select Source\");\n\n // Add the camera options.\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, cameraIntents.toArray(new Parcelable[]{}));\n\n startActivityForResult(chooserIntent, SELECT_PICTURE);\n }",
"private void addButtonActionPerformed() {//GEN-FIRST:event_addButtonActionPerformed\r\n this.controller.OnAddPhoto();\r\n }",
"private void openGallery(){\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(gallery, PICK_IMAGE);\n }",
"public pn_Creating() {\n initComponents();\n imageCreating.start();\n }",
"public void openNewProject() {\n\n\t\t// Dispose of all the sound objects in the project that is currently open\n\t\tCollection<SoundInfo> sounds = soundList.values();\n for(SoundInfo sound: sounds){\n sound.close();\n }\n \n // Set the newly opened project variables\n\t\tsoundList = new HashMap<Integer, SoundInfo>();\n\t\tprojectModified = false;\n\t\tprojectFileIO = null;\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JFileChooser fc = new JFileChooser(); \n int returnVal = fc.showOpenDialog(null);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = fc.getSelectedFile();\n System.out.println(file.getAbsolutePath()); \n image = loadImage( file);\n }\n }",
"public void addPicture() {\n FileChooser chooser = new FileChooser();\n chooser.setTitle(\"Upload your pic for this post\");\n file = chooser.showOpenDialog(null);\n if (file != null) {\n\n Image profilePicImage = new Image(file.toURI().toString());\n try {\n this.postPic = new FileInputStream(file).readAllBytes();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n postImage.setImage(profilePicImage);\n }\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n }",
"public void choosePicture() {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\"); //inserting all images inside this Image folder\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, 1);\n\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"public ImageEditor() {\r\n initComponents(); \r\n }",
"public Coloca_imagen(){\n \n \n }",
"private void showGalleryChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"public ejidosyCampos() {\n initComponents();\n u.icono(this, \"imagenes/photo_add.png\");\n }",
"private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }",
"private void createUpdateImage(Item item) throws Exception {\r\n //cria a imagem\r\n new Image().saveImage(item.getImagem(), item.getNome());\r\n \t}",
"@Override\n public void onClick(View v) {\n OpenGallery();\n adapter.updateImageList(uploadedImages);\n }",
"private void uploadLogo() {\n\t\tJFileChooser fc = new JFileChooser();\n\t\tif (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n\t\t\tImageIcon icon = new ImageIcon(fc.getSelectedFile().getAbsolutePath());\n\t\t\tlblLogo.setIcon(icon);\n\t\t}\n\t}",
"public void openDialog() {\r\n\t\tString filename = this.getFileName();\r\n\t\tif (filename.equals(null) || filename.equals(\"\") ) {\r\n\t\t\ttext.append(\"\\nPlease select valid image\");\r\n\t\t\topenDialog();\r\n\t\t}\r\n\t\tdisplay_img = this.loadImage(filename);\r\n\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t dia.dismiss();\n\t\t\t\tIntent intent = new Intent( Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t\t\t startActivityForResult(intent, 1);\n\t\t\t\t\n\t\t\t}",
"public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }",
"public void uploadPic(View view) {\n Intent si=new Intent();\n si.setType(\"image/*\");\n si.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(si,1);\n\n\n }",
"private void galleryIntent() {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n ((MessageActivity) context).startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n\n }",
"private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }",
"public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}",
"private void createAndInitPictureFrame() {\r\n frame = new com.FingerVeinScanner.Frame(picture,picture2);\r\n\t\tthis.pictureFrame = frame.getFrame(); // Create the JFrame.\r\n\t\tthis.pictureFrame.setResizable(true); // Allow the user to resize it.\r\n\t\tthis.pictureFrame.getContentPane().\r\n\t\tsetLayout(new BorderLayout()); // Use border layout.\r\n\t\tthis.pictureFrame.setDefaultCloseOperation\r\n\t\t(JFrame.DISPOSE_ON_CLOSE); // When closed, stop.\r\n\t\tthis.pictureFrame.setTitle(picture.getTitle());\r\n\t\t//PictureExplorerFocusTraversalPolicy newPolicy =\r\n\t\t//\tnew PictureExplorerFocusTraversalPolicy();\r\n\t\t//this.pictureFrame.setFocusTraversalPolicy(newPolicy);\r\n\t}",
"public NewFileChooser_Alejandro() {\n initComponents();\n }",
"private void openGallery() {\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(gallery, REQUEST_IMAGE_SELECT);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlog.info(\"画上传界面\");\n\t\t\t\t\n\t\t\t\tinfomation.drawUpload();\n\t\t\t\t//frmIpfs.add(infomation);\n\t\t\t\tlog.info(\"画完了\");\n\t\t\t}",
"public void uploadPhoto(View view) {\n Intent i = new Intent(\n Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, GET_FROM_GALLERY);\n\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tGraphVisHandler.saveImageByType(viz, System.getProperty(\"user.dir\") + \"/..\", graphFile, true, pw, 400, 400, CommonDef.ISMAPPING);\n\t\t\t\tSystem.out.println(\"---------\");\n\t\t\t\t\n\t\t\t\t//Upload\n\t\t\t\t\n\t\t\t}",
"public void onPressAddPhoto(View view) {\r\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\r\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\r\n File imageFile = FileUtil.createUniqueJPGFile(this);\r\n\r\n lastPhotoUri = FileProvider.getUriForFile(\r\n this,\r\n \"com.example.a31taochvisakort.fileprovider\",\r\n imageFile\r\n );\r\n\r\n takePictureIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\r\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, lastPhotoUri);\r\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\r\n }\r\n }",
"public void createImage() {\n\t\tBufferedImage crab1ststep = null;\n\t\tBufferedImage crab2ndstep = null;\n\t\tBufferedImage crabhalf = null;\n\t\tBufferedImage crabfull = null;\n\t\tBufferedImage eye6 = null;\n\t\tBufferedImage eye5 = null;\n\t\tBufferedImage eye4 = null;\n\t\tBufferedImage eye3 = null;\n\t\tBufferedImage eye2 = null;\n\t\tBufferedImage eye1 = null;\n\t\tBufferedImage eyeClosed = null;\n\t\ttry {\n\t\t crabImage = ImageIO.read(new File(\"src/images/crab.png\"));\n\t\t crab1ststep = ImageIO.read(new File(\"src/images/crab1ststep.png\"));\n\t\t crab2ndstep = ImageIO.read(new File(\"src/images/crab2ndstep.png\"));\n\t\t crabhalf = ImageIO.read(new File(\"src/images/crabhalf.png\"));\n\t\t crabfull = ImageIO.read(new File(\"src/images/crabfull.png\"));\n\t\t crabWin = ImageIO.read(new File(\"src/images/crabwin.png\"));\n\t\t crabLose = ImageIO.read(new File(\"src/images/crablose.png\"));\n\t\t eye6 = ImageIO.read(new File(\"src/images/crab_eye6.png\"));\n\t\t eye5 = ImageIO.read(new File(\"src/images/crab_eye5.png\"));\n\t\t eye4 = ImageIO.read(new File(\"src/images/crab_eye4.png\"));\n\t\t eye3 = ImageIO.read(new File(\"src/images/crab_eye3.png\"));\n\t\t eye2 = ImageIO.read(new File(\"src/images/crab_eye2.png\"));\n\t\t eye1 = ImageIO.read(new File(\"src/images/crab_eye1.png\"));\n\t\t eyeClosed = ImageIO.read(new File(\"src/images/eyes_closed.png\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"bad\");\n\t\t}\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\t\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\t\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n\t}",
"private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}",
"public BioDataMetaData(String userId) {\n \n \n \n initComponents();\n this.userId=userId;\n \n Image img = new ImageIcon(System.getProperty(\"user.dir\")+\"/\"+\"ICON_LOGO.jpg\").getImage();\n this.setIconImage(img);\n this.setTitle(\"ADD NEW ITEM\"); \n// initComponents();\n }",
"@Override\n public void onClick(View v) {\n Intent camIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n camIntent.setType(\"image/*\");\n startActivityForResult(camIntent,CAMERA_REQUEST);\n }"
] | [
"0.6140373",
"0.5965086",
"0.5953548",
"0.5852877",
"0.57802135",
"0.5745877",
"0.57257473",
"0.56963676",
"0.5692352",
"0.56855017",
"0.56795394",
"0.56627387",
"0.56608886",
"0.56398034",
"0.560671",
"0.5605453",
"0.55808824",
"0.5567779",
"0.5544373",
"0.5541775",
"0.553811",
"0.5518608",
"0.55007833",
"0.549297",
"0.5490177",
"0.5488627",
"0.5482406",
"0.5471566",
"0.546025",
"0.54590815",
"0.5451783",
"0.5436748",
"0.54366803",
"0.54169595",
"0.54169595",
"0.5409015",
"0.53974354",
"0.53904635",
"0.5389811",
"0.5383886",
"0.53810847",
"0.5378571",
"0.5377937",
"0.5376797",
"0.5371406",
"0.53694713",
"0.53654593",
"0.53546363",
"0.53515905",
"0.5347765",
"0.53394765",
"0.5335903",
"0.5322309",
"0.53220713",
"0.53195876",
"0.53128415",
"0.53102905",
"0.5310268",
"0.53062433",
"0.5299632",
"0.5299578",
"0.529904",
"0.52988786",
"0.5291213",
"0.5274847",
"0.52734745",
"0.5270374",
"0.52657104",
"0.5261533",
"0.52606356",
"0.5244624",
"0.52411324",
"0.52408415",
"0.52408415",
"0.524084",
"0.5231934",
"0.5230367",
"0.52249545",
"0.52156407",
"0.52123374",
"0.520838",
"0.5204412",
"0.5203429",
"0.52018934",
"0.51968604",
"0.5196134",
"0.5185492",
"0.5185328",
"0.51847607",
"0.51808983",
"0.5179872",
"0.5179643",
"0.5179578",
"0.5169938",
"0.5167854",
"0.51666087",
"0.51616335",
"0.5160029",
"0.5159226",
"0.5157726"
] | 0.52606654 | 69 |
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. //GENBEGIN:initComponents | private void initComponents() {
okBut = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
scroller = new gui.Scroller();
massCenterPanel = new gui.HotSpotPanel();
stripPanel = new gui.StripPanel();
cancelBut = new javax.swing.JButton();
colorPanel = new gui.ColorPanel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Opening images");
setLocationByPlatform(true);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosed(java.awt.event.WindowEvent evt) {
formWindowClosed(evt);
}
});
okBut.setText(" Ok ");
okBut.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
okButActionPerformed(evt);
}
});
jLabel5.setText("First Frame preview");
massCenterPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
stripPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
cancelBut.setText("Canccel");
cancelBut.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cancelButActionPerformed(evt);
}
});
colorPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(okBut)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(cancelBut))
.addComponent(colorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(massCenterPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(8, 8, 8))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(stripPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(21, 21, 21)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(scroller, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jLabel5)
.addGap(107, 107, 107))))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(stripPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(massCenterPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(11, 11, 11)
.addComponent(colorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(okBut)
.addComponent(cancelBut)))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addGap(22, 22, 22)
.addComponent(jLabel5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(scroller, javax.swing.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)))
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public Form() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public FormPemilihan() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\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 FormCompra() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public MechanicForm() {\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 }",
"@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}",
"@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 }",
"public FormListRemarking() {\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\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 SettingsForm() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 630, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 431, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n axTextField = new javax.swing.JTextField();\n bxTextField = new javax.swing.JTextField();\n cxTextField = new javax.swing.JTextField();\n dxTextField = new javax.swing.JTextField();\n siTextField = new javax.swing.JTextField();\n diTextField = new javax.swing.JTextField();\n spTextField = new javax.swing.JTextField();\n bpTextField = new javax.swing.JTextField();\n pcTextField = new javax.swing.JTextField();\n ir1TextField = new javax.swing.JTextField();\n ir2TextField = new javax.swing.JTextField();\n marTextField = new javax.swing.JTextField();\n ivtpTextField = new javax.swing.JTextField();\n mbrTextField = new javax.swing.JTextField();\n ir3TextField = new javax.swing.JTextField();\n ir4TextField = new javax.swing.JTextField();\n xTextField = new javax.swing.JTextField();\n yTextField = new javax.swing.JTextField();\n aTextField = new javax.swing.JTextField();\n bTextField = new javax.swing.JTextField();\n pswTextField = new javax.swing.JTextField();\n imrTextField = new javax.swing.JTextField();\n sbusTextField = new javax.swing.JTextField();\n dbusTextField = new javax.swing.JTextField();\n systemABUSTextField = new javax.swing.JTextField();\n systemDBUSTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n okButton = new javax.swing.JButton();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n\n setTitle(\"RegisterDialog\");\n setFocusable(false);\n setMinimumSize(new java.awt.Dimension(688, 285));\n setName(\"\"); // NOI18N\n\n jLabel1.setText(\"AX\");\n\n jLabel2.setText(\"BX\");\n\n jLabel3.setText(\"CX\");\n\n jLabel4.setText(\"DX\");\n\n jLabel5.setText(\"SI\");\n\n jLabel6.setText(\"DI\");\n\n jLabel7.setText(\"SP\");\n\n jLabel8.setText(\"BP\");\n\n jLabel9.setText(\"PC\");\n\n jLabel10.setText(\"IR1\");\n\n jLabel11.setText(\"IR2\");\n\n jLabel12.setText(\"MAR\");\n\n jLabel13.setText(\"MBR\");\n\n jLabel14.setText(\"IVTP\");\n\n jLabel15.setText(\"IR3\");\n\n jLabel16.setText(\"IR4\");\n\n jLabel17.setText(\"X\");\n\n jLabel18.setText(\"Y\");\n\n jLabel19.setText(\"A\");\n\n jLabel20.setText(\"B\");\n\n jLabel21.setText(\"PSW\");\n\n jLabel22.setText(\"IMR\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel23.setText(\"CPU\");\n\n jLabel24.setText(\"sBUS\");\n\n jLabel25.setText(\"dBUS\");\n\n jLabel26.setText(\"ABUS\");\n\n jLabel27.setText(\"DBUS\");\n\n jLabel28.setText(\"bin.\");\n\n jLabel29.setText(\"bin.\");\n\n axTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n axTextField.setText(\"0000\");\n axTextField.setFocusable(false);\n axTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n axTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bxTextField.setText(\"0000\");\n bxTextField.setFocusable(false);\n bxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n cxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cxTextField.setText(\"0000\");\n cxTextField.setFocusable(false);\n cxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n cxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dxTextField.setText(\"0000\");\n dxTextField.setFocusable(false);\n dxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n siTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n siTextField.setText(\"0000\");\n siTextField.setFocusable(false);\n siTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n siTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n diTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n diTextField.setText(\"0000\");\n diTextField.setFocusable(false);\n diTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n diTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n spTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n spTextField.setText(\"0000\");\n spTextField.setFocusable(false);\n spTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n spTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bpTextField.setText(\"0000\");\n bpTextField.setFocusable(false);\n bpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pcTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pcTextField.setText(\"0000\");\n pcTextField.setFocusable(false);\n pcTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pcTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir1TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir1TextField.setText(\"0000\");\n ir1TextField.setFocusable(false);\n ir1TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir1TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir2TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir2TextField.setText(\"0000\");\n ir2TextField.setFocusable(false);\n ir2TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir2TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n marTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n marTextField.setText(\"0000\");\n marTextField.setFocusable(false);\n marTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n marTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ivtpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivtpTextField.setText(\"0000\");\n ivtpTextField.setFocusable(false);\n ivtpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ivtpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n mbrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n mbrTextField.setText(\"0000\");\n mbrTextField.setFocusable(false);\n mbrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n mbrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir3TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir3TextField.setText(\"0000\");\n ir3TextField.setFocusable(false);\n ir3TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir3TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir4TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir4TextField.setText(\"0000\");\n ir4TextField.setFocusable(false);\n ir4TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir4TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n xTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n xTextField.setText(\"0000\");\n xTextField.setFocusable(false);\n xTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n xTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n yTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n yTextField.setText(\"0000\");\n yTextField.setFocusable(false);\n yTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n yTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n aTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n aTextField.setText(\"0000\");\n aTextField.setFocusable(false);\n aTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n aTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bTextField.setText(\"0000\");\n bTextField.setFocusable(false);\n bTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pswTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pswTextField.setText(\"0000000000000000\");\n pswTextField.setFocusable(false);\n pswTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pswTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n imrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n imrTextField.setText(\"0000\");\n imrTextField.setFocusable(false);\n imrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n imrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n sbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n sbusTextField.setText(\"0000\");\n sbusTextField.setFocusable(false);\n sbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n sbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dbusTextField.setText(\"0000\");\n dbusTextField.setFocusable(false);\n dbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemABUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemABUSTextField.setText(\"0000\");\n systemABUSTextField.setFocusable(false);\n systemABUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemABUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemDBUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemDBUSTextField.setText(\"0000\");\n systemDBUSTextField.setFocusable(false);\n systemDBUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemDBUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel30.setText(\"interne \\nmagistrale\");\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel31.setText(\"sistemske magistrale\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bxTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(axTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(siTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(diTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(spTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bpTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(pcTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(mbrTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(marTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jLabel15)\n .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ir1TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir2TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir3TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir4TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(xTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(yTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(aTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel30)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)\n .addComponent(jLabel24)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dbusTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel31)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel26)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator4)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pcTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(marTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(mbrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(siTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(diTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(axTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(bxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel29)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(dbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(okButton))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(xTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(yTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(aTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(bTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(ir1TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(ir2TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(ir3TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(ir4TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(71, 71, 71)\n .addComponent(jLabel23))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 760, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 446, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 638, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSeparator1 = new javax.swing.JSeparator();\n jLabel4 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jPasswordField1 = new javax.swing.JPasswordField();\n jPasswordField2 = new javax.swing.JPasswordField();\n jButton4 = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Settings\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jSeparator1.setForeground(new java.awt.Color(102, 0, 153));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Tux TV 1280-1024.jpg\"))); // NOI18N\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton2.setForeground(new java.awt.Color(51, 51, 255));\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Blue-young-icon.png\"))); // NOI18N\n jButton2.setText(\"Search\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jLabel3.setForeground(new java.awt.Color(51, 51, 255));\n jLabel3.setText(\"<html>Logged In <font color=green>●\");\n\n jLabel2.setBackground(new java.awt.Color(204, 204, 255));\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 18));\n jLabel2.setOpaque(true);\n\n jButton1.setBackground(new java.awt.Color(255, 153, 153));\n jButton1.setFont(new java.awt.Font(\"Arial\", 1, 14));\n jButton1.setForeground(new java.awt.Color(255, 0, 0));\n jButton1.setText(\"Log Out\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel5.setForeground(new java.awt.Color(153, 0, 153));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"<html><u>Home\");\n jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel5MouseClicked(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel7.setForeground(new java.awt.Color(153, 0, 153));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"<html><u>Friends\");\n jLabel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel7MouseClicked(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel8.setForeground(new java.awt.Color(153, 0, 153));\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"<html><u>Messages\");\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel9.setForeground(new java.awt.Color(153, 0, 153));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"<html><u>Notifications\");\n jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel9MouseClicked(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel10.setForeground(new java.awt.Color(153, 0, 153));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"<html><u>Profile\");\n jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel10MouseClicked(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel6.setForeground(new java.awt.Color(0, 0, 255));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"<html><u>Settings\");\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel14.setText(\"E-Mail:\");\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel15.setText(\"Phone Number:\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel12.setText(\"Name:\");\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel13.setText(\"UserName:\");\n\n jTextField3.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField3.setForeground(new java.awt.Color(102, 0, 102));\n jTextField3.setEnabled(false);\n\n jTextField2.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField2.setForeground(new java.awt.Color(102, 0, 102));\n jTextField2.setEnabled(false);\n\n jTextField4.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField4.setForeground(new java.awt.Color(102, 0, 102));\n jTextField4.setEnabled(false);\n\n jTextField5.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField5.setForeground(new java.awt.Color(102, 0, 102));\n jTextField5.setEnabled(false);\n\n jLabel27.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel27.setForeground(new java.awt.Color(0, 0, 255));\n jLabel27.setText(\"<html><u>Edit\");\n jLabel27.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel27MouseClicked(evt);\n }\n });\n\n jLabel26.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel26.setForeground(new java.awt.Color(0, 0, 255));\n jLabel26.setText(\"<html><u>Edit\");\n jLabel26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel26MouseClicked(evt);\n }\n });\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel25.setForeground(new java.awt.Color(0, 0, 255));\n jLabel25.setText(\"<html><u>Edit\");\n jLabel25.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel25MouseClicked(evt);\n }\n });\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel24.setForeground(new java.awt.Color(0, 0, 255));\n jLabel24.setText(\"<html><u>Edit\");\n jLabel24.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel24MouseClicked(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 2, 18)); // NOI18N\n jButton3.setForeground(new java.awt.Color(0, 153, 51));\n jButton3.setText(\"Update Info\");\n jButton3.setEnabled(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jSeparator2.setForeground(jSeparator1.getForeground());\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel16.setText(\"Old Password:\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel17.setText(\"New Password:\");\n\n jTextField7.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField7.setForeground(new java.awt.Color(102, 0, 102));\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel18.setText(\"ReType New Password:\");\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 3, 18));\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/3.png\"))); // NOI18N\n jButton4.setText(\"Change\");\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel11.setForeground(new java.awt.Color(0, 0, 255));\n jLabel11.setText(\"<html><u>Wanna See Your Security Code?\");\n jLabel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel11MouseClicked(evt);\n }\n });\n\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton5.setForeground(new java.awt.Color(255, 51, 51));\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagesFCG7ZZJL.jpg\"))); // NOI18N\n jButton5.setText(\"Delete My Account\");\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 437, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 352, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(78, 78, 78)\n .addComponent(jLabel19)\n .addGap(40, 40, 40)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField3)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(103, 103, 103)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField5)\n .addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27)\n .addComponent(jLabel26)\n .addComponent(jLabel25))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton5))\n .addComponent(jLabel24))\n .addGap(2, 2, 2))\n .addGroup(layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jButton3))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPasswordField2)\n .addComponent(jPasswordField1)\n .addComponent(jTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jLabel20)\n .addGap(73, 73, 73))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel21)\n .addGap(21, 21, 21))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(199, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(162, 162, 162))\n .addGroup(layout.createSequentialGroup()\n .addGap(271, 271, 271)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(261, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, Short.MAX_VALUE))\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 5, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26)\n .addComponent(jLabel14))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel27)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jPasswordField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel11))\n .addGroup(layout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addComponent(jLabel21)))\n .addContainerGap(47, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 475, Short.MAX_VALUE)\n );\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public Magasin() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public soal2GUI() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public PatientUI() {\n initComponents();\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 muveletek() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public Soru1() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public ValidFrequencyForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jTextField9 = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jTextField12 = new javax.swing.JTextField();\n jTextField13 = new javax.swing.JTextField();\n jTextField14 = new javax.swing.JTextField();\n jTextField16 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jButton1 = new javax.swing.JButton();\n jLabel18 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jFormattedTextField1 = new javax.swing.JFormattedTextField();\n jFormattedTextField2 = new javax.swing.JFormattedTextField();\n jFormattedTextField3 = new javax.swing.JFormattedTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jFormattedTextField4 = new javax.swing.JFormattedTextField();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Personal Profile\");\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel1.setText(\"Personal Information\");\n\n jLabel2.setText(\"Name\");\n\n jLabel3.setText(\"Address\");\n\n jLabel4.setText(\"Date of Birth\");\n jLabel4.setToolTipText(\"\");\n\n jLabel5.setText(\"Contact\");\n\n jLabel6.setText(\"Fax Number\");\n\n jLabel7.setText(\"Email\");\n\n jLabel8.setText(\"SSN\");\n\n jLabel9.setText(\"Medical Record No\");\n\n jLabel10.setText(\"Health Plan No\");\n\n jLabel11.setText(\"Bank Acc No\");\n\n jLabel12.setText(\"License No\");\n\n jLabel13.setText(\"Vehicle Identifiers\");\n\n jLabel14.setText(\"Device Identifiers\");\n jLabel14.setToolTipText(\"\");\n\n jLabel15.setText(\"LinkedIn\");\n\n jLabel16.setText(\"IP Address\");\n\n jLabel17.setText(\"Identifier\");\n\n jButton2.setText(\"Submit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jTextArea1.setBounds(new java.awt.Rectangle(0, 0, 240, 120));\n jScrollPane1.setViewportView(jTextArea1);\n\n jButton1.setText(\"Clear\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel18.setText(\"Image\");\n\n jButton3.setText(\"Upload\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(java.text.DateFormat.getDateInstance(java.text.DateFormat.SHORT))));\n\n try {\n jFormattedTextField2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###-###-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n try {\n jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###-##-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabel22.setText(\"Biometrics\");\n\n jButton4.setText(\"Upload\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n try {\n jFormattedTextField4.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###.###.###.###\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22))\n .addComponent(jLabel18)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel11)\n .addComponent(jLabel12)\n .addComponent(jLabel13)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1)\n .addComponent(jTextField2)\n .addComponent(jFormattedTextField1)\n .addComponent(jFormattedTextField2)\n .addComponent(jTextField5)\n .addComponent(jTextField6)\n .addComponent(jFormattedTextField3)\n .addComponent(jTextField8)\n .addComponent(jTextField9)\n .addComponent(jTextField10)\n .addComponent(jTextField11)\n .addComponent(jTextField12)\n .addComponent(jTextField13)\n .addComponent(jTextField14)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)\n .addComponent(jTextField16))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 440, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(24, 24, 24))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(146, 146, 146)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addGap(423, 423, 423)\n .addComponent(jLabel1)))\n .addContainerGap(566, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel14)\n .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15)\n .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17)\n .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jScrollPane1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jButton3)\n .addComponent(jLabel20))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(jButton4)\n .addComponent(jLabel24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public HW3() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 PatientRegForm() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n formKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"public p0() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n 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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 278, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jTextField1 = new javax.swing.JTextField();\r\n jButton1 = new javax.swing.JButton();\r\n jTextField2 = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n jTextField3 = new javax.swing.JTextField();\r\n jTextField4 = new javax.swing.JTextField();\r\n jTextField5 = new javax.swing.JTextField();\r\n jTextField6 = new javax.swing.JTextField();\r\n jTextField7 = new javax.swing.JTextField();\r\n jTextField8 = new javax.swing.JTextField();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n lbhora = new javax.swing.JLabel();\r\n jButton5 = new javax.swing.JButton();\r\n jLabel8 = new javax.swing.JLabel();\r\n jButton6 = new javax.swing.JButton();\r\n jLabel9 = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem4 = new javax.swing.JMenuItem();\r\n jMenuItem5 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenuItem9 = new javax.swing.JMenuItem();\r\n jMenuItem10 = new javax.swing.JMenuItem();\r\n jMenuItem11 = new javax.swing.JMenuItem();\r\n jMenuItem13 = new javax.swing.JMenuItem();\r\n jMenuItem14 = new javax.swing.JMenuItem();\r\n jMenu3 = new javax.swing.JMenu();\r\n jMenuItem15 = new javax.swing.JMenuItem();\r\n jMenuItem16 = new javax.swing.JMenuItem();\r\n jMenuItem17 = new javax.swing.JMenuItem();\r\n jMenu4 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField1ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 12, 490, 30));\r\n\r\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/search-icon-60x60.png\"))); // NOI18N\r\n jButton1.setBorderPainted(false);\r\n jButton1.setContentAreaFilled(false);\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 0, -1, -1));\r\n\r\n jTextField2.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField2ActionPerformed(evt);\r\n }\r\n });\r\n jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField2KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 80, 340, 30));\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel1.setText(\"NOMBRE\");\r\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 90, 72, -1));\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel2.setText(\"DOMICILIO\");\r\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 150, 70, -1));\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel3.setText(\"CIUDAD\");\r\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 290, 60, -1));\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel4.setText(\"TELEFONO\");\r\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 240, 70, -1));\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel5.setText(\"C.P.\");\r\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 360, -1, -1));\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel6.setText(\"R.F.C.\");\r\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 190, -1, -1));\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel7.setText(\"E-MAIL\");\r\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 410, 50, -1));\r\n\r\n jTextField3.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField3ActionPerformed(evt);\r\n }\r\n });\r\n jTextField3.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField3KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 130, 510, 30));\r\n\r\n jTextField4.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField4ActionPerformed(evt);\r\n }\r\n });\r\n jTextField4.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField4KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, 250, 30));\r\n\r\n jTextField5.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField5ActionPerformed(evt);\r\n }\r\n });\r\n jTextField5.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField5KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 340, 250, 30));\r\n\r\n jTextField6.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField6ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 400, 250, 30));\r\n\r\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField7ActionPerformed(evt);\r\n }\r\n });\r\n jTextField7.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField7KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 180, 250, 30));\r\n\r\n jTextField8.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField8.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField8ActionPerformed(evt);\r\n }\r\n });\r\n jTextField8.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField8KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField8, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 230, 250, 30));\r\n\r\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/add-icon.png\"))); // NOI18N\r\n jButton2.setBorderPainted(false);\r\n jButton2.setContentAreaFilled(false);\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 540, 70, 80));\r\n\r\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/edit_60_328965.png\"))); // NOI18N\r\n jButton3.setBorderPainted(false);\r\n jButton3.setContentAreaFilled(false);\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 550, 80, 70));\r\n\r\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/delete_action_discard.png\"))); // NOI18N\r\n jButton4.setBorderPainted(false);\r\n jButton4.setContentAreaFilled(false);\r\n jButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton4ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 550, 70, 70));\r\n\r\n lbhora.setFont(new java.awt.Font(\"SansSerif\", 1, 24)); // NOI18N\r\n lbhora.setForeground(new java.awt.Color(240, 240, 240));\r\n lbhora.setText(\"00:00:00\");\r\n getContentPane().add(lbhora, new org.netbeans.lib.awtextra.AbsoluteConstraints(1180, 10, -1, 44));\r\n\r\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/logout.png\"))); // NOI18N\r\n jButton5.setBorder(null);\r\n jButton5.setBorderPainted(false);\r\n jButton5.setContentAreaFilled(false);\r\n jButton5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton5ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(1280, 10, -1, -1));\r\n\r\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/giphy.gif\"))); // NOI18N\r\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(1110, 90, -1, -1));\r\n\r\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/CLEAN-AIR-ICON2.png\"))); // NOI18N\r\n jButton6.setBorderPainted(false);\r\n jButton6.setContentAreaFilled(false);\r\n jButton6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton6ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 550, -1, -1));\r\n\r\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/fondo gris.jpg\"))); // NOI18N\r\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1350, 760));\r\n\r\n jMenuBar1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"PLANTAS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12))); // NOI18N\r\n\r\n jMenu1.setText(\"CAPTURA DE DATOS\");\r\n jMenu1.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem4.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem4.setText(\"CLIENTES\");\r\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem4ActionPerformed(evt);\r\n }\r\n });\r\n jMenu1.add(jMenuItem4);\r\n\r\n jMenuItem5.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem5.setText(\"USUARIOS\");\r\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem5ActionPerformed(evt);\r\n }\r\n });\r\n jMenu1.add(jMenuItem5);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"PRODUCTOS\");\r\n jMenu2.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem9.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem9.setText(\"COMPONENTES\");\r\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem9ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem9);\r\n\r\n jMenuItem10.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem10.setText(\"MATERIALES\");\r\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem10ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem10);\r\n\r\n jMenuItem11.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem11.setText(\"FORMULA\");\r\n jMenuItem11.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem11ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem11);\r\n\r\n jMenuItem13.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem13.setText(\"PROCESO\");\r\n jMenuItem13.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem13ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem13);\r\n\r\n jMenuItem14.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem14.setText(\"OPB\");\r\n jMenuItem14.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem14ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem14);\r\n\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"PRODUCCION\");\r\n jMenu3.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem15.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem15.setText(\"ORDENES\");\r\n jMenuItem15.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem15ActionPerformed(evt);\r\n }\r\n });\r\n jMenu3.add(jMenuItem15);\r\n\r\n jMenuItem16.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem16.setText(\"OPERACION\");\r\n jMenu3.add(jMenuItem16);\r\n\r\n jMenuItem17.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem17.setText(\"DATOS DESPUES DE LA OPERACION\");\r\n jMenu3.add(jMenuItem17);\r\n\r\n jMenuBar1.add(jMenu3);\r\n\r\n jMenu4.setText(\"REPORTES\");\r\n jMenu4.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuBar1.add(jMenu4);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n pack();\r\n }",
"private void initComponents() {//GEN-BEGIN:initComponents\n\n FormListener formListener = new FormListener();\n\n addMouseListener(formListener);\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n addSponsorLogoLabel = new javax.swing.JLabel();\n addSponsorLabel = new javax.swing.JLabel();\n addSponsorNameInput = new javax.swing.JTextField();\n addSponsorNameLabel = new javax.swing.JLabel();\n addSponsorFnameInput = new javax.swing.JTextField();\n addSponsorFnameLabel = new javax.swing.JLabel();\n addSponsorLnameInput = new javax.swing.JTextField();\n addSponsorLnameLabel = new javax.swing.JLabel();\n addSponsorPhoneInput = new javax.swing.JTextField();\n addSponsorPhoneLabel = new javax.swing.JLabel();\n addSponsorPledgeInput = new javax.swing.JTextField();\n addSponsorPledgeLabel = new javax.swing.JLabel();\n addSponsorBackButton = new javax.swing.JButton();\n addSponsorSubmitButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n addSponsorLogoLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/eventplanner/horizonlogoTiny.png\"))); // NOI18N\n\n addSponsorLabel.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n addSponsorLabel.setText(\"Add Sponsor\");\n\n addSponsorNameLabel.setText(\"Name of Sponsor:\");\n\n addSponsorFnameLabel.setText(\"First Name:\");\n\n addSponsorLnameLabel.setText(\"Last Name:\");\n\n addSponsorPhoneLabel.setText(\"Phone:\");\n\n addSponsorPledgeLabel.setText(\"Pledge:\");\n\n addSponsorBackButton.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n addSponsorBackButton.setText(\"Back\");\n addSponsorBackButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSponsorBackButtonActionPerformed(evt);\n }\n });\n\n addSponsorSubmitButton.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n addSponsorSubmitButton.setText(\"Submit\");\n addSponsorSubmitButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSponsorSubmitButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(71, 71, 71)\n .addComponent(addSponsorLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addSponsorLogoLabel))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(143, 143, 143)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(addSponsorNameLabel)\n .addComponent(addSponsorFnameLabel)\n .addComponent(addSponsorLnameLabel)\n .addComponent(addSponsorPhoneLabel)\n .addComponent(addSponsorPledgeLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(addSponsorNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorFnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorLnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPhoneInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPledgeInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(152, 152, 152)\n .addComponent(addSponsorSubmitButton)\n .addGap(33, 33, 33)\n .addComponent(addSponsorBackButton)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(42, 42, 42))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(addSponsorLogoLabel))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(addSponsorLabel)\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorNameLabel)\n .addComponent(addSponsorNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorFnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorFnameLabel))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(addSponsorLnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorLnameLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorPhoneInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPhoneLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorPledgeInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPledgeLabel))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorSubmitButton)\n .addComponent(addSponsorBackButton))\n .addContainerGap(47, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n businessNameJLabel = new javax.swing.JLabel();\n enterpriseNameJLabel = new javax.swing.JLabel();\n networkNameJLabel = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n organizationNameJLabel = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n titleJLabel = new javax.swing.JLabel();\n drugNameJLabel = new javax.swing.JLabel();\n drugNameJTextField = new javax.swing.JTextField();\n backJButton = new javax.swing.JButton();\n addToCatalogJButton = new javax.swing.JButton();\n statusJLabel = new javax.swing.JLabel();\n statusJTextField = new javax.swing.JTextField();\n\n businessNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n businessNameJLabel.setText(\"Drug Tracking System\");\n\n enterpriseNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n enterpriseNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n enterpriseNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n enterpriseNameJLabel.setPreferredSize(new java.awt.Dimension(170, 24));\n\n networkNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n networkNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n networkNameJLabel.setMaximumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setMinimumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setPreferredSize(new java.awt.Dimension(195, 24));\n\n organizationNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n organizationNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n organizationNameJLabel.setPreferredSize(new java.awt.Dimension(190, 24));\n\n titleJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 26)); // NOI18N\n titleJLabel.setText(\"Drug Details\");\n\n drugNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n drugNameJLabel.setText(\"Drug Name\");\n\n drugNameJTextField.setEditable(false);\n drugNameJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n drugNameJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n drugNameJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\n\n backJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n backJButton.setText(\"Back\");\n backJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n backJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n backJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJButtonActionPerformed(evt);\n }\n });\n\n addToCatalogJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n addToCatalogJButton.setText(\"Add To Catalog\");\n addToCatalogJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addToCatalogJButton.setEnabled(false);\n addToCatalogJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n addToCatalogJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addToCatalogJButtonActionPerformed(evt);\n }\n });\n\n statusJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n statusJLabel.setText(\"Status\");\n\n statusJTextField.setEditable(false);\n statusJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n statusJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n statusJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(businessNameJLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 211, Short.MAX_VALUE)\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(273, 273, 273)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(titleJLabel))\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(statusJLabel)\n .addGap(18, 18, 18)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(drugNameJLabel)\n .addGap(18, 18, 18)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(311, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(businessNameJLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(titleJLabel)\n .addGap(75, 75, 75)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(drugNameJLabel)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(statusJLabel)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(201, Short.MAX_VALUE))\n );\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ScheduleForm() {\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 }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \r\n private void initComponents() {\r\n \r\n setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createLineBorder(Color.black), javax.swing.BorderFactory.createBevelBorder(BevelBorder.LOWERED)));\r\n \r\n setEnabled(false);\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 396, Short.MAX_VALUE));\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 324, Short.MAX_VALUE));\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mouseClickedHandler(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n mouseExitedHandler(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n mouseEnteredHandler(evt);\n }\n });\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 intrebarea() {\n initComponents();\n }"
] | [
"0.7392533",
"0.7392533",
"0.7392533",
"0.7352533",
"0.7332257",
"0.7330854",
"0.7295613",
"0.7266173",
"0.7225978",
"0.721564",
"0.7159253",
"0.71552503",
"0.71511376",
"0.71417224",
"0.7137128",
"0.71343374",
"0.7121387",
"0.7119814",
"0.7113422",
"0.7111982",
"0.70884943",
"0.7086096",
"0.7064487",
"0.7058381",
"0.7033323",
"0.70308906",
"0.7023197",
"0.7022689",
"0.701844",
"0.7011735",
"0.70041716",
"0.69657445",
"0.6959287",
"0.69591635",
"0.6957759",
"0.6957451",
"0.6957451",
"0.6951389",
"0.6951264",
"0.6938691",
"0.6933804",
"0.69302106",
"0.69292545",
"0.6928299",
"0.6925409",
"0.6922007",
"0.6918543",
"0.6916054",
"0.69158626",
"0.69113535",
"0.69113535",
"0.69113535",
"0.69085574",
"0.69043505",
"0.6899496",
"0.6896878",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.6895814",
"0.68951017",
"0.6892347",
"0.6887642",
"0.6887642",
"0.6887642",
"0.6887642",
"0.6887642",
"0.6887642",
"0.6887642",
"0.6887642",
"0.6887642",
"0.68850994",
"0.6884552",
"0.6872472",
"0.6872028",
"0.6868656",
"0.68633956",
"0.686022",
"0.68559813",
"0.685288",
"0.6849653",
"0.68483216",
"0.6847011",
"0.6840413",
"0.6839375",
"0.6839155",
"0.68299013",
"0.6829192",
"0.6827425",
"0.6819294",
"0.6816292",
"0.68121773"
] | 0.0 | -1 |
POST /suggestions : Create a new suggestion. | @PostMapping("/suggestions")
public ResponseEntity<Suggestion> createSuggestion(@Valid @RequestBody Suggestion suggestion) throws URISyntaxException {
log.debug("REST request to save Suggestion : {}", suggestion);
if (suggestion.getId() != null) {
throw new BadRequestAlertException("A new suggestion cannot already have an ID", ENTITY_NAME, "idexists");
}
Suggestion result = suggestionService.save(suggestion);
return ResponseEntity.created(new URI("/api/suggestions/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))
.body(result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testNewSuggestionPage() {\n\t\tdriver.get(suggestionsUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Home\", \"Suggestions\", \"New suggestion\", \"Logged as generic user\",\r\n\t\t\t\t\"No suggestions\");\r\n\t\tassertThat(driver.getPageSource()).doesNotContain(\"ID\");\r\n\t\t// go to \"/suggestions/new\"\r\n\t\tdriver.get(newSuggestionUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Home\", \"Edit suggestion\", \"Suggestion:\", \"Save\");\r\n\t\tdriver.findElement(By.name(\"suggestionText\")).sendKeys(\"firstSuggestion1\");\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t\t// go to \"/suggestions\"\r\n\t\tdriver.get(suggestionsUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Home\", \"New suggestion\", \"Logged as generic user\");\r\n\t\tassertThat(driver.findElement(By.id(\"suggestions_table\")).getText()).contains(\"ID\", \"Suggestions\", \"Suggestion\",\r\n\t\t\t\t\"firstSuggestion1\");\r\n\t\tassertThat(suggestionRepository.findAll().get(0).getSuggestionText()).isEqualTo(\"firstSuggestion1\");\r\n\t}",
"public Suggestion (Text text, String[] suggestions) {\n\t\tthis.text = text;\n\t\tthis.suggestions = suggestions;\n\t}",
"@Token(save = true, validate = false)\n @Execute\n public HtmlResponse createpage(final SuggestBadWordEditForm form) {\n form.initialize();\n form.crudMode = CrudMode.CREATE;\n return asHtml(path_AdminSuggestbadword_EditJsp);\n }",
"public Suggestion (CCombo combo, String[] suggestions) {\n\t\tthis.combo = combo;\n\t\tthis.suggestions = suggestions;\n\t}",
"public void setSuggestion(String value) {\n setAttributeInternal(SUGGESTION, value);\n }",
"private void createSuggestionsList() {\r\n\t\tmListView = new LabeledListViewElement(this);\r\n\t\tmInputBar.addView(mListView);\r\n\r\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int pos, long id) {\r\n\t\t\t\tString query = adapter.getItemAtPosition(pos).toString();\r\n\t\t\t\tif(query.contains(\" \"))\r\n\t\t\t\t\tsearch(query);\r\n\t\t\t\telse{\r\n\t\t\t\t\tmInputBar.setInputText(query + \" \");\r\n\t\t\t\t\tmInputBar.setCursorAtEnd();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}",
"public void requestSuggestions(SuggestOracle.Request req, SuggestOracle.Callback callback) {\n fetchTags(req, callback);\n }",
"@GetMapping(\"/suggestions/{id}\")\r\n public ResponseEntity<Suggestion> getSuggestion(@PathVariable Long id) {\r\n log.debug(\"REST request to get Suggestion : {}\", id);\r\n Optional<Suggestion> suggestion = suggestionService.findOne(id);\r\n return ResponseUtil.wrapOrNotFound(suggestion);\r\n }",
"void AddSuggestion(String babyName) {\n\r\n\tT.insert(babyName);\r\n\t\r\n\r\n }",
"public SuggestedTerm(String term, int editDistance){\n this.term = term;\n this.editDistance = editDistance;\n }",
"@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);",
"public void requestSuggestions(SuggestOracle.Request req, SuggestOracle.Callback callback) {\n fetchPostalCodes(req, callback);\n }",
"public static boolean sendSuggestion(final Context context, final ShopSuggested shopSuggested)\r\n {\r\n try\r\n {\r\n final String fixedURL = Utils.fixUrl(\r\n Properties.SERVER_URL + \":\" + Properties.SERVER_SPRING_PORT + \"/suggested\");\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Conectando con: \" + fixedURL + \" para enviar una tienda sugerida\");\r\n\r\n final JSONObject jsonObject = new JSONObject();\r\n\r\n jsonObject.put(\"name\", shopSuggested.getShop());\r\n jsonObject.put(\"link\", shopSuggested.getLink());\r\n\r\n // Creamos una peticion\r\n final StringRequest jsonObjReq = new StringRequest(Request.Method.POST\r\n , fixedURL\r\n , new Response.Listener<String>()\r\n {\r\n @Override\r\n public void onResponse(String response) {}\r\n }\r\n , new Response.ErrorListener()\r\n {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {}\r\n })\r\n {\r\n @Override\r\n public byte[] getBody() throws AuthFailureError\r\n {\r\n return jsonObject.toString().getBytes();\r\n }\r\n\r\n @Override\r\n public String getBodyContentType()\r\n {\r\n return \"application/json\";\r\n }\r\n };\r\n\r\n // La mandamos a la cola de peticiones\r\n VolleySingleton.getInstance(context).addToRequestQueue(jsonObjReq);\r\n\r\n } catch (Exception e) {\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n }\r\n\r\n return true;\r\n }",
"@RequestMapping(value = \"/word/\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Void> createWord(@RequestBody Word word, UriComponentsBuilder ucBuilder) {\r\n System.out.println(\"Creating Word \" + word.getWordInEnglish());\r\n \r\n if (WordService.isWordExist(word)) {\r\n System.out.println(\"A Word with name \" + word.getWordInEnglish() + \" already exist\");\r\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\r\n }\r\n \r\n WordService.saveWord(word);\r\n \r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setLocation(ucBuilder.path(\"/word/{language}\").buildAndExpand(word.getWordInEnglish()).toUri());\r\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\r\n }",
"@DeleteMapping(\"/suggestions/{id}\")\r\n public ResponseEntity<Void> deleteSuggestion(@PathVariable Long id) {\r\n log.debug(\"REST request to delete Suggestion : {}\", id);\r\n suggestionService.delete(id);\r\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\r\n }",
"@RequestMapping(\"/suggestions\")\n public SuggestionWrapper greeting(@RequestParam(value=\"q\", defaultValue=\"\") String strQuery,\n \t\t @RequestParam(value=\"latitude\", defaultValue=\"\") String strLatitude,\n \t\t @RequestParam(value=\"longitude\", defaultValue=\"\") String strLongitude)\n {\n \tList<City> lstCity = m_citiesHandler.findCitiesStartsWith(strQuery);\n\n // Calculate the score for each city\n m_citiesHandler.calculateScore(lstCity, strQuery, strLatitude, strLongitude);\n \n \t// Convert the City class into suggestions\n List<Suggestion> lstSuggestions = m_citiesHandler.convertToSuggestions(lstCity);\n \n // Sort the list by score \n Collections.sort(lstSuggestions, Suggestion.SuggestionScoreComparator);\n \n // Keep 5 best options\n lstSuggestions = lstSuggestions.subList(0, Math.min(5, lstSuggestions.size()));\n \n // Return the suggestions\n SuggestionWrapper cWrapper = new SuggestionWrapper();\n cWrapper.setSuggestions(lstSuggestions);\n return cWrapper;\n }",
"public void sendTextSuggestion(View v) {\n // Toast.makeText(Suggestion_box_suggest.this, editText.getText().toString(), Toast.LENGTH_SHORT).show();\n }",
"public void addSuggestion(String title, String message, Chat chat) {\n\n Suggestion suggestion = new Suggestion(chat,title,message);\n\n if(exists(chatSuggestions,suggestion)){\n Log.i(TAG,\"This suggestion already exists\");\n return;\n }\n\n chatSuggestions.add(suggestion);\n\n /*Returns the notification to the listener*/\n if(suggestionListener != null) suggestionListener.onSuggestionAdded(suggestion);\n }",
"void addTerm(String name, String startDate, String endDate) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"name\", name);\n contentValues.put(\"start_date\", startDate);\n contentValues.put(\"end_date\", endDate);\n db.insert(\"term\", null, contentValues);\n updateTermsArray();\n }",
"@PostMapping(\"/feedbacks\")\n @Timed\n public ResponseEntity<Feedback> createFeedback(@RequestBody Feedback feedback) throws URISyntaxException {\n log.debug(\"REST request to save Feedback : {}\", feedback);\n if (feedback.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new feedback cannot already have an ID\")).body(null);\n }\n Feedback result = feedbackRepository.save(feedback);\n return ResponseEntity.created(new URI(\"/api/feedbacks/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"private void suggestCategory() {\n String[] allCat = {\"Pizza\", \"Pasta\", \"Dessert\", \"Salad\", \"SoftDrinks\"};\n// for (ItemDTO i : allDetails) {\n// names.add(i.getName());\n// }\n\n TextFields.bindAutoCompletion(txtCat, allCat);\n }",
"public void setSuggestedValues (String suggestedValues) {\n this.suggestedValues = suggestedValues;\n }",
"void suggest(T value);",
"@RequestMapping(\n method = {RequestMethod.POST },\n consumes = MediaType.APPLICATION_JSON_VALUE\n )\n public Teacher createUser(@Valid @RequestBody Teacher teacher) {\n return teachersRep.save(teacher);\n }",
"private void loadSuggestions(final ArrayList<MutualFund_CustomClass> mSuggestionArrayList) {\n new VolleyClass(MainActivity.this, \"MainActivity\").volleyPostData(\"<YOUR_WEBSERVICE_URL>\", /*\"<YOUR_JSON_OBJECT>\"*/, new VolleyResponseListener() {\n @Override\n public void onResponse(JSONObject response) throws JSONException {\n for (int i = 0; i < response.getJSONArray(\"data\").length(); i++) {\n mutualFundHouseObj = new MutualFund_CustomClass();\n mutualFundHouseObj.setFundId(response.getJSONArray(\"data\").optJSONObject(i).optString(\"fundid\"));\n mutualFundHouseObj.setFundName(response.getJSONArray(\"data\").optJSONObject(i).optString(\"fundname\"));\n mSuggestionArrayList.add(mutualFundHouseObj);\n }\n //INSTANTIATING CUSTOM ADAPTER\n mMutualFundAdapter = new MutualFund_CustomAdapter(MainActivity.this, mSuggestionArrayList);\n mAutoCompleteTextView.setThreshold(1);//will start working from first character\n mAutoCompleteTextView.setAdapter(mMutualFundAdapter);//setting the adapter data into the AutoCompleteTextView\n\n }\n\n @Override\n public void onError(String message, String title) {\n\n }\n });\n }",
"@RequestMapping(method = RequestMethod.POST)\r\n public ResponseObject insert(@Validated @RequestBody Candidate candidate) {\r\n return candidateService.insert(candidate);\r\n }",
"@PostMapping(\"/reasonlist\")\r\n\tpublic ResponseEntity<CodeLangCodeAndRsnCatCodeID> createReasonLists(@Valid@RequestBody RequestDto<ReasonListDto> requestDto) {\r\n \r\n\t\treturn new ResponseEntity<>(reasonService.createReasonList(requestDto),HttpStatus.CREATED);\r\n\t}",
"public void showSuggestionsFromServer() {\n \t\tsuggestionReadyCallback.onSuggestionsReady();\n \t}",
"@PostMapping(\"/def-relations\")\n @Timed\n public ResponseEntity<DefRelation> createDefRelation(@Valid @RequestBody DefRelation defRelation) throws URISyntaxException {\n log.debug(\"REST request to save DefRelation : {}\", defRelation);\n if (defRelation.getId() != null) {\n throw new BadRequestAlertException(\"A new defRelation cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DefRelation result = defRelationService.save(defRelation);\n return ResponseEntity.created(new URI(\"/api/def-relations/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@PostMapping(\"{id}\")\n public Book addComments (@RequestBody String text, @PathVariable Long id) {\n return bookService.addComments(text, id);\n }",
"public ActionForward doInsertSuggestion(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response) {\n\t\tOtherSuggestionForm otherSuggestionForm = (OtherSuggestionForm) form;// TODO Auto-generated method stub\n\t\tTotherSuggestion item=otherSuggestionForm.getItem();\n\t\tTuser user=(Tuser)request.getSession().getAttribute(\"logineduser\");\n\t\titem.setSuggestionDate(new Date());\n\t\titem.setDepartmentName(user.getEmp().getTdepartment().getName());\n\t\titem.setApproveName(user.getEmp().getName());\n\t\t//更新otherSug\n\t\tList<TotherSuggestion> rs=this.getOtherSugBiz().doSelectByConditions(item);\n\t\tif(rs!=null&&!rs.isEmpty())\n\t\t{\n\t\t\tthis.getOtherSugBiz().doUpdate(item);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.getOtherSugBiz().doInsert(item);\n\t\t}\n\t\tTproposal tp= new Tproposal();\t\t\n\t\ttp.setId(item.getTproposal().getId());\n\t\tboolean flag=true;\n\t\ttp.setState(Tproposal.COMPANY);\n\t\trs=this.getOtherSugBiz().doSelectByConditions(item);\n\t\tfor(TotherSuggestion otherSug:rs)\n\t\t{\n\t\t\tif(otherSug.getSuggestionType()==null||otherSug.getSuggestionType().equals(\"\"))\n\t\t\t{\n\t\t\t\tflag=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(!otherSug.getSuggestionType().equals(\"推荐实施\"))\n\t\t\t{\n\t\t\t\ttp.setState(Tproposal.DEPARTMENT);\n\t\t\t\t//flag=false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t/*\n\t\t * 如果全部审批过了,才更新proposal。state\n\t\t */\n\t\tif(flag)\n\t\t{\n\t\t\tif(tp.getState()==1)\n\t\t\t{\n\t\t\t\tthis.doUpdateProposalState(tp);\n\t\t\t\t\n\t\t\t\tString implementDepartments=this.getMainSugBiz().doSelectByProposalID(tp.getId()).getImplementationPartment();\n\t\t\t\tString[] targets=implementDepartments.split(\",\");\n\t\t\t\tfor(int i=0;i<targets.length;i++)\n\t\t\t\t{\n\t\t\t\t\t//String mamangerID=this.getDepartBiz().doSelectManagerByDepartID(Integer.parseInt(targets[i])).getPmangerid();\n\t\t\t\t\tString[] vaves=this.getDepartBiz().doSelectVaves(Integer.parseInt(targets[i]));\n\t\t\t\t\tfor(int j=0;j<vaves.length;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.getProposalStateBiz().doDelete(new VaveProposalStateId(tp,vaves[j]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.doInsertProposalState(tp,1);\n\t\t\t}\n\t\t\tthis.getProposalBiz().doUpdateState(tp);\n\t\t\t\n\t\t}\n\t\t//更新计算附表\n\t\tString expectSaving=request.getParameter(\"expectSaving\");\n\t\tif(expectSaving!=null&&!expectSaving.equals(\"\"))\n\t\t{\n\t\t\tthis.doInsertSchedule(request, response, tp.getId());\n\t\t}\t\n\t\treturn mapping.findForward(\"doSearchOutside\");\n\t}",
"public void addSuggestionSelection(String cardName) {\n SuspectCard suspect = findSuspectCard(cardName);\n RoomCard room = findRoomCard(currentPlayersTurn.getPiece().getLocation().getBelongsTo().getName());\n WeaponCard weapon = findWeaponCard(cardName);\n\n this.suggestionChoices.setRoom(room);\n if (findRoomCard(cardName) != null) {\n logMessage(\"The room for a suggestion can only be the room you are currently in.\");\n return;\n }\n if (suspect != null) {\n this.suggestionChoices.setSuspect(suspect);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their suggestion.\");\n return;\n }\n if (weapon != null) {\n this.suggestionChoices.setWeapon(weapon);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their suggestion.\");\n return;\n }\n }",
"void findSuggestions(String query) {\n \t\tif (suggestionsLoaderClient != null) {\n \t\t\tif (query.length() == 0) {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(\"default-query\",\n \t\t\t\t\t\tlimit);\n \t\t\t} else {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(query, limit);\n \t\t\t}\n \t\t}\n \t}",
"@PostMapping(value=\"/add\")\n\tpublic Question addQuestion(@RequestBody Question question) throws EmptyInputException{\n\t\t Question t = questionObj.addQuestion(question);\n\t\t LOGGER.info(\"Adding Questions\");\n\t\t return t;\n\t}",
"@RequestMapping(value = \"/food/add\", method = RequestMethod.POST)\n\tpublic String add(HttpServletRequest request, Map<String, Object> model) throws JsonProcessingException {\n\t\tFood food = new Food(request.getParameter(\"name\"), request.getParameter(\"brand\"),\n\t\t\t\trequest.getParameter(\"quality\"), request.getParameter(\"type\"));\n\t\tList<Food> foods = foodService.findAll();\n\t\tfoodService.add(food);\n\n\t\tmodel.put(\"foods\", foods);\n\n\t\tmodel.put(\"types\", Food.TYPE.values());\n\t\tmodel.put(\"qualities\", Food.QUALITY.values());\n\t\tmodel.put(\"qualitycounts\", mapper.writeValueAsString(foodService.qualityCounts(foods)));\n\n\t\treturn \"index\";\n\t}",
"@PostMapping(\"/jpa/users/{username}/suppliers\")\n public ResponseEntity<Void> createSupplier(@PathVariable String username,\n @RequestBody Supplier supplier){\n supplier.setUsername(username);\n Supplier createdSupplier = supplierJpaRepo.save(supplier);\n\n URI uri = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\")\n .buildAndExpand(createdSupplier.getId()).toUri();\n\n\n return ResponseEntity.created(uri).build();\n\n }",
"@Test\r\n\tpublic void testEditSuggestionButNoMorePresent() {\n\t\tWebDriver driver2 = new HtmlUnitDriver();\r\n\t\tadminLogin();\r\n\t\tSuggestion suggestion = suggestionRepository.save(new Suggestion(null, \"suggestion\", true));\r\n\t\t// go to \"/suggestions\"\r\n\t\tdriver.get(suggestionsUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Home\", \"New suggestion\", \"Logged as Admin\", \"Logout\");\r\n\t\tassertThat(driver.findElement(By.id(\"suggestions_table\")).getText()).contains(\"ID\", \"Suggestions\",\r\n\t\t\t\tsuggestion.getId().toString(), suggestion.getSuggestionText());\r\n\t\t// go to \"/suggestions/edit/{id}\"\r\n\t\tdriver.findElement(By.linkText(\"Edit\")).click();\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"suggestionText\")).clear();\r\n\t\tdriver.findElement(By.name(\"suggestionText\")).sendKeys(\"new\");\r\n\r\n\t\t// user number 2 log himself\r\n\t\t// go to login page\r\n\t\tdriver2.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver2.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver2.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\t// go to suggestions page\r\n\t\tdriver2.get(suggestionsUrl);\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver2.findElement(By.linkText(\"Delete\")).click();\r\n\t\t// delete by clicking the button\r\n\t\tassertThat(suggestionRepository.findAll().size()).isEqualTo(1);\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(suggestionRepository.findAll().size()).isZero();\r\n\t\tdriver2.quit();\r\n\r\n\t\t// user 1 try to edit but the suggestion does not exist anymore\r\n\t\t// submit the edit\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(driver.getCurrentUrl()).isEqualTo(errorUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Error\", \"Home\",\r\n\t\t\t\t\"It is not possible to update a suggestion with the id: \" + suggestion.getId());\r\n\t}",
"public void updateNewSuggestDefineOracle() {\n\t\tif (searchSuggestDefineTextBox != null) {\n\t\t\tCQLSuggestOracle cqlSuggestOracle = new CQLSuggestOracle(defineNameMap.values());\n\t\t}\n\t}",
"void create(Feedback entity);",
"@GetMapping(\"/suggestions\")\r\n public ResponseEntity<List<Suggestion>> getAllSuggestions(Pageable pageable) {\r\n log.debug(\"REST request to get a page of Suggestions\");\r\n Page<Suggestion> page = suggestionService.findAll(pageable);\r\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/suggestions\");\r\n return ResponseEntity.ok().headers(headers).body(page.getContent());\r\n }",
"public interface ISimpleSuggestionPluginProvider extends ISuggestionPluginProvider {\n\n Collection<String> getSuggestions(String input, SuggestionRequestContext context);\n\n}",
"@GetMapping(\"/createLike\")\n public void createLike(@RequestBody Likes newLike) {\n likeRepo.insertLike(newLike);\n }",
"private void doCreateSuggestedWorkout(ExercisePlanSuggested exercisePlanSuggested) {\n if (getMobileClientService() == null) {\n Log.w(TAG, \"Service is still not bound\");\n creatingExercisePlanSuggestedOperationResult(false, \"Not bound to the service\", null);\n return;\n }\n\n try {\n boolean isCreating = getMobileClientService().createSuggestedWorkout(exercisePlanSuggested);\n if (!isCreating) {\n creatingExercisePlanSuggestedOperationResult(false, \"No Network Connection\", null);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n creatingExercisePlanSuggestedOperationResult(false, \"Error sending message\", null);\n }\n }",
"@ApiOperation(value = \"Creates a new todo list item.\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"The todo list item has been successfully created.\"),\n @ApiResponse(code = 400, message = \"The data describing the new todo list item is invalid.\"),\n @ApiResponse(code = 500, message = \"An internal error occured while processing the create item request.\")\n })\n @PostMapping(path = \"/items\", consumes = MediaType.APPLICATION_JSON_VALUE)\n public Future<Void> createItem(@ApiParam(value = \"NewItem\", required = true) @RequestBody @Valid final NewItemRepr newItemRepr) {\n final String itemId = IdentifierFactory.getInstance().generateIdentifier();\n final CreateItemCommand createItemCommand = new CreateItemCommand(itemId, newItemRepr.getDescription());\n return commandGateway.send(createItemCommand);\n }",
"@RequestMapping(value = \"/adresses\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<AdresseDTO> createAdresse(@Valid @RequestBody AdresseDTO adresseDTO) throws URISyntaxException {\n log.debug(\"REST request to save Adresse : {}\", adresseDTO);\n if (adresseDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"adresse\", \"idexists\", \"A new adresse cannot already have an ID\")).body(null);\n }\n AdresseDTO result = adresseService.save(adresseDTO);\n return ResponseEntity.created(new URI(\"/api/adresses/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"adresse\", result.getId().toString()))\n .body(result);\n }",
"public void updateNewSuggestParamOracle() {\n\t\tif (searchSuggestDefineTextBox != null) {\n\t\t\tCQLSuggestOracle cqlSuggestOracle = new CQLSuggestOracle(parameterNameMap.values());\n\t\t}\n\t}",
"@ResponseStatus(HttpStatus.CREATED)\n\t@RequestMapping(value = \"\", method = RequestMethod.POST)\n\tpublic FriendsList createRequest(@Valid @RequestBody NewFriendRequestDTO friendRequestDTO, Principal principal) {\n\t\tFriendsList friendsList = buildRequestFromRequestDTO(friendRequestDTO);\n\t\t\n\t\tfriendsList = friendListDAO.newRequest(friendsList);\n\t\tif(friendsList.isApproved()) {\n\t\t\treturn friendsList;\n\t\t}\n\t\treturn friendsList;\n\t}",
"@PostMapping(\"/reasoncategory\")\r\n\tpublic ResponseEntity<CodeAndLanguageCodeID> createReasonCategories(@Valid@RequestBody RequestDto<PostReasonCategoryDto> requestDto) {\r\n \r\n\t\treturn new ResponseEntity<>(reasonService.createReasonCategories(requestDto),HttpStatus.CREATED);\r\n\t}",
"@PostMapping(path=\"/category/add\")\n\tpublic @ResponseBody String addNewCategory(@RequestBody Category n) {\n\t\tcategoryRepository.save(n);\n\t\treturn \"Saved\";\n\t}",
"@PostMapping(\"/books\")\n\tpublic Book createBook(@RequestBody Book book)\n\t{\n\t\treturn bookRepository.save(book);\n\t}",
"void putSuggestions(Context context, @NonNull List<BaseMovie> suggestions) {\n Log.d(Constants.TAG, \"[FirestorePersistentCache]::putSuggestions: adding new suggestions\");\n\n // Add missing suggestions to the SharedPreferences\n PersistentCache<BaseMovie> cache = new PersistentCache<>(context);\n Map<String, BaseMovie> missingMovies = new HashMap<>();\n for (BaseMovie suggestion : suggestions) {\n String key = SUGGESTIONS_PREFIX + suggestion.getId();\n if (cache.get(key, BaseMovie.class) == null) {\n Log.d(Constants.TAG,\n \"[FirestorePersistentCache]::putSuggestions: suggestion misssing, adding movie (\" + suggestion.getTitle() + \")\");\n missingMovies.put(key, suggestion);\n\n } else {\n Log.d(Constants.TAG,\n \"[FirestorePersistentCache]::putSuggestions: suggestion already present, skipping movie (\" + suggestion.getTitle() + \")\");\n }\n }\n\n cache.putObjects(missingMovies);\n }",
"public Builder addAdGroupKeywordSuggestions(\n int index, com.google.ads.googleads.v13.services.AdGroupKeywordSuggestion value) {\n if (adGroupKeywordSuggestionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdGroupKeywordSuggestionsIsMutable();\n adGroupKeywordSuggestions_.add(index, value);\n onChanged();\n } else {\n adGroupKeywordSuggestionsBuilder_.addMessage(index, value);\n }\n return this;\n }",
"@Test\r\n\tpublic void testDeleteSuggestionButNoSuggestionToDelete() {\n\t\tWebDriver driver2 = new HtmlUnitDriver();\r\n\t\tadminLogin();\r\n\t\tSuggestion suggestion = suggestionRepository.save(new Suggestion(null, \"suggestion\", true));\r\n\t\t// go to \"/suggestions\"\r\n\t\tdriver.get(suggestionsUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Home\", \"New suggestion\", \"Logged as Admin\", \"Logout\");\r\n\t\tassertThat(driver.findElement(By.id(\"suggestions_table\")).getText()).contains(\"ID\", \"Suggestions\",\r\n\t\t\t\tsuggestion.getId().toString(), suggestion.getSuggestionText());\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver.findElement(By.linkText(\"Delete\")).click();\r\n\r\n\t\t// user number 2 log himself\r\n\t\t// go to login page\r\n\t\tdriver2.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver2.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver2.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\t// go to suggestions page\r\n\t\tdriver2.get(suggestionsUrl);\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver2.findElement(By.linkText(\"Delete\")).click();\r\n\t\t// delete by clicking the button\r\n\t\tassertThat(suggestionRepository.findAll().size()).isEqualTo(1);\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(suggestionRepository.findAll().size()).isZero();\r\n\t\tdriver2.quit();\r\n\t\t// user 1 try to delete but the suggestion does not exist anymore\r\n\t\t// submit the edit\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(driver.getCurrentUrl()).isEqualTo(errorUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Error\", \"Home\",\r\n\t\t\t\t\"It is not possible to delete a suggestion with the id: \" + suggestion.getId());\r\n\t}",
"@RequestMapping(value = \"/enquirys\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> create(@Valid @RequestBody Enquiry enquiry) throws URISyntaxException {\n log.debug(\"REST request to save Enquiry : {}\", enquiry);\n if (enquiry.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new enquiry cannot already have an ID\").build();\n }\n enquiryRepository.save(enquiry);\n return ResponseEntity.created(new URI(\"/api/enquirys/\" + enquiry.getId())).build();\n }",
"@PostMapping(path = \"/\", consumes = MediaType.APPLICATION_JSON_VALUE)\n public Shorter createShortUrl(@RequestBody Shorter shorter) {\n\n String hash = codeGenerator.generate(shorterLength);\n logger.info(hash);\n if (shorter != null) {\n String shorterString = URLDecoder.decode(shorter.getOriginalUrl());\n logger.info(shorterString);\n shorter = new Shorter(null, hash, shorterString, ZonedDateTime.now());\n return repository.save(shorter);\n } else {\n return null;\n }\n }",
"int createSurvey(List<Question> questions, String userId);",
"@PostMapping()\n @ApiOperation(value = \"생성\")\n public ApiResult create(@RequestBody SampleDto sampleDto){\n log.info(\"Create\");\n\n return OK(\n sampleService.create(\n sampleDto.getTitle(), sampleDto.getDescription()\n )\n );\n }",
"public void setSuggestedTreatment(String suggestedTreatment) {\n this.suggestedTreatment = suggestedTreatment;\n }",
"@PostMapping(\"/add\")\n public EmptyResponse create(@Valid @RequestBody DiscountAddRequest request){\n discountAddService.createNewDiscount(request);\n\n return new EmptyResponse();\n }",
"@PostMapping(\"/docentes\")\n public ResponseEntity<DocenteDTO> createDocente(@Valid @RequestBody DocenteDTO docenteDTO) throws URISyntaxException {\n log.debug(\"REST request to save Docente : {}\", docenteDTO);\n if (docenteDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new docente cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DocenteDTO result = docenteService.save(docenteDTO);\n return ResponseEntity.created(new URI(\"/api/docentes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@RequestMapping(method = RequestMethod.POST)\n @ResponseStatus(HttpStatus.CREATED)\n public void create(@RequestBody Penalty penalty, HttpServletResponse response) throws Exception {\n Penalty p = rep.save(penalty);\n\n URI location = ServletUriComponentsBuilder\n .fromCurrentRequest().path(\"/{id}\")\n .buildAndExpand(p.getId()).toUri();\n\n response.setHeader(\"location\", location.toString());\n throw new TechnicalException(\"test\");\n }",
"public Autocomplete(Term[] terms) {\r\n if (terms == null) {\r\n throw new java.lang.NullPointerException();\r\n }\r\n this.queries = terms;\r\n Arrays.sort(queries);\r\n }",
"@RequestMapping(value=\"/createBook\",method=RequestMethod.POST,consumes=\"application/json\")\n\tpublic ResponseEntity<Void> createBook (@RequestBody Book bookMap,UriComponentsBuilder uri) throws JsonMappingException, JsonParseException, IOException{\n\t\tbookRepository.save(bookMap);\n\t\tHttpHeaders header = new HttpHeaders();\n\t\treturn new ResponseEntity<Void>(header,HttpStatus.CREATED);\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/friendship/{userId}/suggestions\")\n public ResponseEntity<ArrayList<Person>> getFriendSuggestions(@PathVariable(value = \"userId\") Long userId) {\n if (!isValidIdValue(userId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n ArrayList<Person> friendSuggestions =(ArrayList<Person>) friendshipService.getFriendSuggestions(userId);\n return new ResponseEntity(friendSuggestions, null, HttpStatus.OK);\n\n }",
"public void generateList(SearchAutoCompleteListener searchAutoCompleteListener) {\n RequestQueue queue= RequestQueueSingleton.getInstance(this.context).getRequestQueue();\n queue.cancelAll(\"search\");\n if (this.nameOrCode.length() > 0) {\n StringRequest request = new StringRequest(Request.Method.GET,\n Api.autoCompleteString +\"?q=\"+this.nameOrCode,\n (String response) -> {\n try {\n JSONObject data = new JSONObject(response);\n JSONArray placearray = data.getJSONArray(\"places\");\n\n if (placearray.length() == 0) {\n Log.d(TAG,\"Place Not Found\");\n searchAutoCompleteListener.onFailure(JsonUtils.logError(TAG,response));\n } else {\n ArrayList<Place> searchPlaces = JsonUtils.getPlaces(placearray);\n searchAutoCompleteListener.onPlaceListReceived(searchPlaces);\n }\n } catch (JSONException e) {\n searchAutoCompleteListener.onFailure(JsonUtils.logError(TAG,response));\n }\n },\n error ->{\n Log.d(TAG,JsonUtils.handleResponse(error));\n searchAutoCompleteListener.onFailure(JsonUtils.handleResponse(error));\n }){\n };\n request.setTag(\"search\");\n queue.add(request);\n }\n }",
"public void addQuestion(Question question);",
"@RequestMapping(value = \"/addQuestionToTestTeacher/{testId}\",method = RequestMethod.POST)\n\tpublic Test addQuestionToTest(@PathVariable(\"testId\") int testid ,@RequestBody List<Questions> questionList){\n\t\tTest test = testDao.gettestStatus(testid);\n\t\tif(test!=null) {\n\t\t\tList<Questions> availableQuestions = (List<Questions>) test.getQuestions();\n\t\t\tif(availableQuestions.size()>0) {\n\t\t\t\tavailableQuestions.addAll(questionList);\n\t\t\t}else {\n\t\t\t\ttest.setQuestions(questionList);\n\t\t\t}\n\t\t\ttest = testDao.updateTest(test);\n\t\t}\n\t\t\n\t\treturn test;\n\t}",
"public com.Hotel.model.Hotel create(long hotelId);",
"@PostMapping(\"\")\n public Donut createDonut(@RequestBody Donut donut){\n\n return this.donutRepository.save(donut);\n\n }",
"@PostMapping(\"/expenses{id}\")\n ResponseEntity<Expense> createExpense(@Valid @RequestBody Expense expenses) throws URISyntaxException {\n Expense result = expenseRepository.save(expenses);\n return ResponseEntity.created(new URI(\"/api/expenses\" + result.getId())).body(result);\n }",
"@Override\n public void success(List<String> list, Response arg1) {\n if (list == null || list.size() < 1) {\n return;\n }\n mSuggestListView.setVisibility(View.VISIBLE);\n mSuggestListView.setAdapter(new SuggestDataAdapter(TrimeService.this, list));\n }",
"public void createSurvey(int tid);",
"public com.vportal.portlet.vfaq.model.FAQComment create(long id);",
"public static void associate(final String keyWord, final JHelpSuggestion<String> suggestion)\n {\n final Pair<String, String> association = EditorResources.KEY_WORDS.get(keyWord);\n\n if(association == null)\n {\n suggestion.addSuggestion(keyWord);\n }\n else\n {\n suggestion.addSuggestion(keyWord, association.element1, association.element2);\n }\n }",
"void addQuestions(String surveyId, List<Question> questions);",
"@RequestMapping(value = \"/rest/hikes\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void create(@RequestBody HikeDTO hikeDto) {\n log.debug(\"REST request to save Hike : {}\", hikeDto);\n User currentUser = userRepository.findOne(SecurityUtils.getCurrentLogin());\n \n Hike hike = new Hike();\n hike.setDuration(hikeDto.getDuration());\n hike.setLabel(hikeDto.getLabel());\n hike.setStartingTown(hikeDto.getStartingTown());\n hikeRepository.save(hike);\n }",
"@PostMapping\n public Lesson saveLesson(@RequestBody Lesson lesson) {\n //code\n return null;\n }",
"private void searchSuggestionListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchSuggestionListMouseClicked\n String selectedWord = this.getSearchSuggestionList().getSelectedValue();\n \n // find the definiiton of the word\n for(int i = 0 ; i < queryResult.size() ; i++)\n {\n if(queryResult.get(i).getWord().equals(selectedWord))\n {\n String definition = queryResult.get(i).getDefinition();\n definitionTextArea.setText(definition);\n i = queryResult.size();\n }\n }\n \n // select the same word in the all word list \n ListModel<String> modelList = getAllWordsList().getModel();\n \n for(int i = 0 ; i < modelList.getSize() ; i++)\n {\n if(modelList.getElementAt(i).equals(selectedWord))\n {\n getAllWordsList().setSelectedIndex(i);\n i = modelList.getSize();\n }\n }\n }",
"void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);",
"@RequestMapping(method=RequestMethod.POST,consumes=MediaType.APPLICATION_JSON_VALUE)\r\n\t\tpublic void insert(@RequestBody Doctor doctor){\r\n\t\t\r\n\t\t\tdoctorService.insert(doctor);\r\n\t\t\r\n\t\t}",
"@Test\n\tpublic void testSearchBasedOnRequest1() {\n\t\tsearchBasedOnRequestSetup();\n\t\t\n\t\tPreference prefs = prefManager.getUserPreference();\n\t\tprefs.setThreshold(10000);\n\t\t\n\t\tList<Suggestion> sugg = dm.searchBasedOnRequest(\"Flavorful\", prefs, true);\n\t\tassertTrue(sugg.size() > 0);\n\t\tassertTrue(sugg.get(0).getType() == Suggestion.SENTENCE);\n\t}",
"@Override\n public void createSuggestedWorkout(ExercisePlanSuggested exercisePlanSuggested) {\n getView().disableUI();\n\n // save suggested exercise plan record in web service\n doCreateSuggestedWorkout(exercisePlanSuggested);\n }",
"@Headers({\"Content-Type: application/json\", \"Cache-Control: no-cache\"})\n @POST(\"/userpreference/create\")\n Call<Void> createUserPreference(@Body List<Preference> preferences);",
"@RequestMapping(value = \"/teacher\", method = RequestMethod.POST)\n public ModelAndView addTeacher(HttpServletRequest request,\n @RequestParam(name = \"fio\") String fio,\n @RequestParam(name = \"priority\") String priority) {\n\n return new ModelAndView(\"teacher\");\n }",
"@PostMapping(\"/add\")\n public Traveller addTraveller(@RequestBody Traveller theTraveller) {\n\n\n travelService.save(theTraveller);\n\n return theTraveller;\n }",
"@RequestMapping(value = \"/supplier/add\", method = RequestMethod.POST)\n\t\tpublic String addSupplier(@ModelAttribute(\"suppliers\") Suppliers suppliers) {\n\t\t\tSystem.out.println(\"Hello.. I'm inside /suppliers add\");\n\t\t\tString newID = Util.removeComma(suppliers.getId());\n\t\t\tsuppliers.setId(newID);\n\t\t\tsuppliersDAO.saveOrUpdate(suppliers);\n\n\t\t\treturn \"redirect:/suppliers\";\n\n\t\t}",
"@PostMapping(\"/types\")\n\t@Timed\n\tpublic ResponseEntity<TypesDTO> createTypes(@RequestBody TypesDTO typesDTO)\n\t\t\tthrows URISyntaxException {\n\t\tthis.log.debug(\"REST request to save Types : {}\", typesDTO);\n\t\tif (typesDTO.getId() != null) {\n\t\t\treturn ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(TypesResource.ENTITY_NAME,\n\t\t\t\t\t\"idexists\", \"A new types cannot already have an ID\")).body(null);\n\t\t}\n\t\tTypesDTO result = this.typesService.save(typesDTO);\n\t\treturn ResponseEntity\n\t\t\t\t.created(new URI(\"/api/types/\" + result.getId())).headers(HeaderUtil\n\t\t\t\t\t\t.createEntityCreationAlert(TypesResource.ENTITY_NAME, result.getId().toString()))\n\t\t\t\t.body(result);\n\t}",
"@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }",
"@PostMapping\n public ResponseEntity<IngredientDTO> createIngredient(@RequestBody IngredientDTO ingredientDTO) throws URISyntaxException{\n if (ingredientDTO.getId() != null){\n return ResponseEntity.badRequest().headers(HttpHeadersUtil.createEntityFailureAlert(ENTITY_NAME,\n \"A new ingredient can not be created. Ingredient ID is present.\")).body(null);\n }\n IngredientDTO savedIngredient = ingredientService.saveOrUpdateIngredient(ingredientDTO);\n return ResponseEntity.created(new URI(\"/api/ingredient/\" + savedIngredient.getId()))\n .headers(HttpHeadersUtil.createdEntityAlert(ENTITY_NAME, savedIngredient.getId().toString()))\n .body(savedIngredient);\n }",
"@Override\n\tpublic boolean create(TagsReq entity) {\n\t\tTags tags = new Tags();\n\t\ttags.setTagName(entity.getTagName());\n\t\tTagsRes.save(tags);\n\t\treturn true;\n\t}",
"private void addSpell(Bundle bundle) {\n Toast.makeText(getContext(), \"Not yet implemented\", Toast.LENGTH_SHORT).show();\n }",
"private void configureSuggestion(final boolean requestedExplicitly) {\n myView.removeSuggestions();\n final RangeInfo rangeInfo = findNearestRangeInfo();\n final String text = getTextByRange(rangeInfo);\n\n final SuggestionInfo suggestionInfo = rangeInfo.getSuggestions();\n if (suggestionInfo == null || (!suggestionInfo.isShowSuggestionsAutomatically() && !requestedExplicitly)) {\n return;\n }\n final List<String> suggestions = new ArrayList<String>(suggestionInfo.getSuggestions());\n if (text != null && !requestedExplicitly) {\n filterLeaveOnlyMatching(suggestions, text);\n }\n // TODO: Place to add history\n if (!suggestions.isEmpty()) {\n // No need to display empty suggestions\n myView\n .displaySuggestions(new SuggestionsBuilder(suggestions), suggestionInfo.isShowAbsolute(), text);\n }\n }",
"@RequestMapping(value = \"/newFact/{fact}\", method = { RequestMethod.GET, RequestMethod.POST })\n\tpublic void newFact(HttpServletRequest req, HttpServletResponse resp, @PathVariable String fact, Model model) throws IOException, ServletException {\n\t\tfactDao.addNewFact(fact);\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent arg0) {\r\n UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();\r\n if (provider != null) {\r\n provider.addWord(word);\r\n }\r\n Dictionary dictionary = SpellChecker.getCurrentDictionary();\r\n dictionary.add(word);\r\n dictionary.trimToSize();\r\n AutoSpellChecker.refresh(jText);\r\n }",
"@PostMapping(\"/employee\")\r\n\tpublic Employee createEmployee(@RequestBody Employee emp)\r\n\t{\r\n\t\treturn empdao.save(emp);\t\r\n\t}",
"@PostMapping(value=\"/insert/hotel\", consumes=MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseClient insertNewRoom(@RequestBody Hotel hotel){\r\n\t\thotelSer.save(hotel);\r\n\t\tResponseClient res = new ResponseClient();\r\n\t\tres.setResponse(\"successfull hotel_id: \");\r\n\t\treturn res;\r\n\t}",
"private void sendResultToQSB(int type, String title, String suggestion, Uri uri) {\n\t}",
"@PostMapping // /products (POST)\n public ResponseEntity<Technologies> createTechnologies(@RequestBody Technologies technologies){\n Technologies newTechnologies = technologiesDAO.save(technologies);\n return ResponseEntity.ok(newTechnologies);\n }",
"@PostMapping(\"/opportunities\")\n @Timed\n public ResponseEntity<OpportunityDTO> createOpportunity(@Valid @RequestBody OpportunityDTO opportunityDTO) throws URISyntaxException {\n log.debug(\"REST request to save Opportunity : {}\", opportunityDTO);\n if (opportunityDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new opportunity cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n OpportunityDTO result = opportunityService.save(opportunityDTO);\n return ResponseEntity.created(new URI(\"/api/opportunities/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public void createNewSkateSpot(){\n \t\tEditText skatespot_name = (EditText) findViewById(R.id.new_skatespot_name);\n \t\tString name = skatespot_name.getText().toString();\n \t\t\n \t\t//Finds the description of the SkateSpot\n \t\tEditText skatespot_description = (EditText) findViewById(R.id.new_skatespot_description);\n \t\tString description = skatespot_description.getText().toString();\n \t\t\n \t\t//Finds the chosen type from the spinner\n \t\tSpinner spinner = (Spinner) findViewById(R.id.new_skatespot_spinner);\n \t\tString type = spinner.getSelectedItem().toString();\n \t\t\n \t\t//Finds the current location\n \t\tLocation loc = app.getLocation();\n \t\tdouble latitude = loc.getLatitude();\n \t\tdouble longitude = loc.getLongitude();\n \n \t\tJsonObject obj = new JsonObject();\n \t\tobj.add(\"key\", new JsonPrimitive(\"ourKey\")); // TODO create a secret key\n \t\tobj.add(\"type\", new JsonPrimitive(4));\n \t\tobj.add(\"name\", new JsonPrimitive(name));\n \t\tobj.add(\"description\", new JsonPrimitive(description));\n \t\tobj.add(\"spottype\", new JsonPrimitive(type));\n \t\tobj.add(\"latitude\", new JsonPrimitive(latitude));\n \t\tobj.add(\"longitude\", new JsonPrimitive(longitude));\n \n \t\tAsyncHttpResponseHandler responseHandler = new AsyncHttpResponseHandler();\t\n \t\tSkateSpotsHttpClient.post(getApplicationContext(), obj, responseHandler);\n \t}"
] | [
"0.5962069",
"0.58463997",
"0.5482561",
"0.5430666",
"0.54066014",
"0.5371965",
"0.5357876",
"0.53438026",
"0.53300095",
"0.52674454",
"0.51088864",
"0.5068408",
"0.5046869",
"0.5008323",
"0.49499083",
"0.48514178",
"0.46820962",
"0.46678513",
"0.46589628",
"0.46588197",
"0.464168",
"0.46412843",
"0.46144322",
"0.4612253",
"0.4596686",
"0.45815906",
"0.4579727",
"0.45194426",
"0.45082885",
"0.44961798",
"0.44832715",
"0.44807515",
"0.44784558",
"0.4476516",
"0.44649813",
"0.4438083",
"0.4435765",
"0.44104066",
"0.43988279",
"0.43938845",
"0.43873414",
"0.4387327",
"0.43812522",
"0.4361472",
"0.4348608",
"0.43472433",
"0.43462005",
"0.43444052",
"0.43413883",
"0.43374726",
"0.4331066",
"0.43307737",
"0.43244773",
"0.431899",
"0.43130264",
"0.43072566",
"0.43062133",
"0.42985976",
"0.4282441",
"0.4280228",
"0.42767438",
"0.42692152",
"0.4267823",
"0.42663732",
"0.42539507",
"0.42526677",
"0.42517585",
"0.42255187",
"0.42172134",
"0.42163816",
"0.42080113",
"0.4202363",
"0.41957065",
"0.41873446",
"0.4172596",
"0.41648984",
"0.4159424",
"0.41590297",
"0.41540396",
"0.41516832",
"0.4151278",
"0.41501093",
"0.4144933",
"0.41421112",
"0.41394374",
"0.41322675",
"0.41306677",
"0.41277522",
"0.412548",
"0.41249073",
"0.41245157",
"0.41238606",
"0.4118078",
"0.41173416",
"0.41164896",
"0.41159979",
"0.41129467",
"0.41118875",
"0.41103676",
"0.4107228"
] | 0.74331003 | 0 |
GET /suggestions : get all the suggestions. | @GetMapping("/suggestions")
public ResponseEntity<List<Suggestion>> getAllSuggestions(Pageable pageable) {
log.debug("REST request to get a page of Suggestions");
Page<Suggestion> page = suggestionService.findAll(pageable);
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/suggestions");
return ResponseEntity.ok().headers(headers).body(page.getContent());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);",
"void findSuggestions(String query) {\n \t\tif (suggestionsLoaderClient != null) {\n \t\t\tif (query.length() == 0) {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(\"default-query\",\n \t\t\t\t\t\tlimit);\n \t\t\t} else {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(query, limit);\n \t\t\t}\n \t\t}\n \t}",
"@GetMapping(\"/suggestions/{id}\")\r\n public ResponseEntity<Suggestion> getSuggestion(@PathVariable Long id) {\r\n log.debug(\"REST request to get Suggestion : {}\", id);\r\n Optional<Suggestion> suggestion = suggestionService.findOne(id);\r\n return ResponseUtil.wrapOrNotFound(suggestion);\r\n }",
"@RequestMapping(\"/suggestions\")\n public SuggestionWrapper greeting(@RequestParam(value=\"q\", defaultValue=\"\") String strQuery,\n \t\t @RequestParam(value=\"latitude\", defaultValue=\"\") String strLatitude,\n \t\t @RequestParam(value=\"longitude\", defaultValue=\"\") String strLongitude)\n {\n \tList<City> lstCity = m_citiesHandler.findCitiesStartsWith(strQuery);\n\n // Calculate the score for each city\n m_citiesHandler.calculateScore(lstCity, strQuery, strLatitude, strLongitude);\n \n \t// Convert the City class into suggestions\n List<Suggestion> lstSuggestions = m_citiesHandler.convertToSuggestions(lstCity);\n \n // Sort the list by score \n Collections.sort(lstSuggestions, Suggestion.SuggestionScoreComparator);\n \n // Keep 5 best options\n lstSuggestions = lstSuggestions.subList(0, Math.min(5, lstSuggestions.size()));\n \n // Return the suggestions\n SuggestionWrapper cWrapper = new SuggestionWrapper();\n cWrapper.setSuggestions(lstSuggestions);\n return cWrapper;\n }",
"List<Company> getSuggestionsToFollow();",
"@RequestMapping(method = RequestMethod.GET, value = \"/friendship/{userId}/suggestions\")\n public ResponseEntity<ArrayList<Person>> getFriendSuggestions(@PathVariable(value = \"userId\") Long userId) {\n if (!isValidIdValue(userId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n ArrayList<Person> friendSuggestions =(ArrayList<Person>) friendshipService.getFriendSuggestions(userId);\n return new ResponseEntity(friendSuggestions, null, HttpStatus.OK);\n\n }",
"public void showSuggestionsFromServer() {\n \t\tsuggestionReadyCallback.onSuggestionsReady();\n \t}",
"public void requestSuggestions(SuggestOracle.Request req, SuggestOracle.Callback callback) {\n fetchTags(req, callback);\n }",
"@GET(\"search.ashx?num_of_results=5\")\n Observable<AutoCompleteApiResponse> getTop5Suggestions(@Query(\"q\") String query);",
"@Nullable\r\n public static JSONArray retrieveSuggestions(final Context context, String word)\r\n {\r\n JSONArray content;\r\n\r\n try\r\n {\r\n RequestFuture<JSONArray> future = RequestFuture.newFuture();\r\n\r\n SharedPreferencesManager sharedPreferencesManager = new SharedPreferencesManager(context);\r\n\r\n User user = sharedPreferencesManager.retrieveUser();\r\n\r\n final String fixedURL = Utils.fixUrl(\r\n Properties.SERVER_URL + \":\" + Properties.SERVER_SPRING_PORT + \"/suggest/\" + user.getId() + \"/\" + word);\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Conectando con: \" + fixedURL + \" para traer las sugerencias\");\r\n\r\n // Creamos una peticion\r\n final JsonArrayRequest jsonObjReq = new JsonArrayRequest(Request.Method.GET\r\n , fixedURL\r\n , null\r\n , future\r\n , future);\r\n\r\n // La mandamos a la cola de peticiones\r\n VolleySingleton.getInstance(context).addToRequestQueue(jsonObjReq);\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Petición creada y recibida\");\r\n\r\n try\r\n {\r\n content = future.get(20, TimeUnit.SECONDS);\r\n\r\n } catch (InterruptedException e) {\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n\r\n return null;\r\n }\r\n\r\n // Si content es vacio, es que han fallado todas las conexiones.\r\n if (content == null)\r\n {\r\n Log.e(Properties.TAG, \"[REST_CLIENT_SINGLETON] No se ha recibido nada\");\r\n\r\n return null;\r\n }\r\n\r\n } catch (Exception e) {\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n\r\n return null;\r\n }\r\n\r\n return content;\r\n }",
"@GetMapping(value=\"/getAll\")\n\tpublic List<Question> getAll(){\n\t\tLOGGER.info(\"Viewing all questions\");\n\t\treturn questionObj.viewAllQuestions();\n\t}",
"public void requestSuggestions(SuggestOracle.Request req, SuggestOracle.Callback callback) {\n fetchPostalCodes(req, callback);\n }",
"@UnsupportedAppUsage\n public Cursor getSuggestions(SearchableInfo searchable, String query) {\n return getSuggestions(searchable, query, -1);\n }",
"@GetMapping(\"/_search/def-relations\")\n @Timed\n public List<DefRelation> searchDefRelations(@RequestParam String query) {\n log.debug(\"REST request to search DefRelations for query {}\", query);\n return defRelationService.search(query);\n }",
"@GetMapping(\"/feedbacks\")\n @Timed\n public List<Feedback> getAllFeedbacks() {\n log.debug(\"REST request to get all Feedbacks\");\n return feedbackRepository.findAll();\n }",
"@RequestMapping(value = \"/answers\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Answer>getAllAnswers(){\n\t\treturn (List<Answer>)answerRepository.findAll();\n\t}",
"private Response getAddressList( String term )\n {\n\n ReferenceList list = null;\n try\n {\n if ( \"RestAddressService\".equals( AddressServiceProvider.getInstanceClass( ) ) )\n {\n list = AddressServiceProvider.searchAddress( null, term );\n }\n\n }\n catch( RemoteException e )\n {\n AppLogService.error( e );\n }\n\n if ( list == null )\n {\n _logger.error( Constants.ERROR_NOT_FOUND_RESOURCE );\n return Response.status( Response.Status.NOT_FOUND )\n .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), MSG_ERROR_GET_ADDRESSES ) ) ).build( );\n }\n\n return Response.status( Response.Status.OK ).entity( JsonUtil.buildJsonResponse( new JsonResponse( list ) ) ).build( );\n }",
"@GetMapping(\"/def-relations\")\n @Timed\n public List<DefRelation> getAllDefRelations() {\n log.debug(\"REST request to get all DefRelations\");\n return defRelationService.findAll();\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/search\")\n public List<String> search(@RequestParam(name = \"query\") String query) {\n return searchService.search(query);\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/friendship/{userId}/suggestions/bylocation\")\n public ResponseEntity<Map<String, ArrayList<Person>>> getFriendSuggestionsByLocation(@PathVariable(value = \"userId\") Long userId) {\n if (!isValidIdValue(userId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n Map<String, ArrayList<Person>> friendSuggestionsByLocation = friendshipService.getFriendSuggestionsByLocation(userId);\n return new ResponseEntity(friendSuggestionsByLocation, null, HttpStatus.OK);\n }",
"public void generateList(SearchAutoCompleteListener searchAutoCompleteListener) {\n RequestQueue queue= RequestQueueSingleton.getInstance(this.context).getRequestQueue();\n queue.cancelAll(\"search\");\n if (this.nameOrCode.length() > 0) {\n StringRequest request = new StringRequest(Request.Method.GET,\n Api.autoCompleteString +\"?q=\"+this.nameOrCode,\n (String response) -> {\n try {\n JSONObject data = new JSONObject(response);\n JSONArray placearray = data.getJSONArray(\"places\");\n\n if (placearray.length() == 0) {\n Log.d(TAG,\"Place Not Found\");\n searchAutoCompleteListener.onFailure(JsonUtils.logError(TAG,response));\n } else {\n ArrayList<Place> searchPlaces = JsonUtils.getPlaces(placearray);\n searchAutoCompleteListener.onPlaceListReceived(searchPlaces);\n }\n } catch (JSONException e) {\n searchAutoCompleteListener.onFailure(JsonUtils.logError(TAG,response));\n }\n },\n error ->{\n Log.d(TAG,JsonUtils.handleResponse(error));\n searchAutoCompleteListener.onFailure(JsonUtils.handleResponse(error));\n }){\n };\n request.setTag(\"search\");\n queue.add(request);\n }\n }",
"public List<Suggestion> searchByTag(String tag) {\n List<Suggestion> sugs = libraryDao.getSuggestionsByTag(tag);\n if (sugs == null) {\n return new ArrayList<Suggestion>();\n }\n return sugs;\n }",
"public List<String> suggestions(FacesContext pContext,\n UIComponent pComponent, String pPrefix) {\n \n if (StringUtil.isEmptyOrNull(pPrefix)) {\n pPrefix = \"*\";\n }\n \n List<String> suggestionList = new ArrayList<String>();\n List<Software> softResults = Collections.emptyList();\n List<PN> PNResults = Collections.emptyList();\n List<TypePC> lTypePCResults = Collections.emptyList();\n \n if (!StringUtil.isEmptyOrNull(pPrefix)) {\n \n switch (getReferenceTypeChosen()) {\n \n case SOFTWARE:\n softResults = softBean.suggestionListSoftware(pPrefix);\n for (Software s : softResults) {\n suggestionList.add(s.getCompleteName());\n }\n break;\n \n case MANUFACTURERPN_TYPEARTICLE:\n PNResults = articleBean.suggestionListManufacturerPN(pPrefix);\n for (PN pn : PNResults) {\n suggestionList.add(pn.getIdentifier());\n }\n break;\n \n case AIRBUSPN_TYPEARTICLE:\n PNResults = articleBean.suggestionListAirbusPN(pPrefix);\n for (PN pn : PNResults) {\n suggestionList.add(pn.getIdentifier());\n }\n break;\n \n case TYPEPC:\n lTypePCResults = articleBean.suggestionListTypePC(pPrefix);\n for (TypePC lType : lTypePCResults) {\n suggestionList.add(lType.getLabel());\n }\n break;\n \n default:\n \n }\n }\n \n Collections.sort(suggestionList);\n return suggestionList;\n \n }",
"private String getSuggestions() {\r\n\t\tDbHandler dbHandler = new DbHandler(new AndroidFileIO(this));\r\n\t\tTable data;\r\n\t\ttry {\r\n\t\t\tdata = dbHandler.generateDataTable(\"mentalrate\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tRulesFinder finder = new RulesFinder(data);\r\n\t\tIterator<Rule> rulesIter = finder.findRules().iterator();\r\n\r\n\t\tString msg = \"\";\r\n\t\twhile (rulesIter.hasNext()) {\r\n\t\t msg += RuleTranslator.humanReadable(rulesIter.next())+\"\\n\";\r\n\t\t}\r\n\t System.out.println(msg);\r\n\t\treturn msg;\r\n\t}",
"List<Athlete> getAll();",
"@RequestMapping(value=\"suggestion\",method=RequestMethod.GET)\n @ResponseBody\n public Map<String, Object> getSuggestion(Long classId){\n try {\n return evaluateService.getAdviceAndDataForClass(classId);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"@GET(Url.END_POINT)\n Call<ArrayList<Recipe>> getRecipes();",
"@Override\n\tpublic HERO_STK_RESPONSEINFO getCategorySuggestions() {\n\t\tString selectQuery = \"select * from hero_admin_category\";\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object> categoryList = jdbcTemplate.query(selectQuery, new RowMapper() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t/*List<HashMap<String, String>> detail = new ArrayList<HashMap<String,String>>();*/\n\t\t\t\t\n\t\t\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\t\tmap.put(\"data\", rs.getString(\"CATEGORY_ID\"));\n\t\t\t\tmap.put(\"value\", rs.getString(\"CATEGORY_NAME\"));\n\t\t\t\t\n\t\t\t\t/*detail.add(map);*/\n\t\t\n\t\t\t\tlog.info(\"Category Suggestion List \"+map);\n\t\t\t\t\n\t\t\t\treturn map;\n\t\t\t}\n\t\t});\n\t\t\n\t\tresponse.setResponseType(\"S\");\n\t\tresponse.setResponseObj((categoryList));\n\t\t\n\t\tresponseInfo.setInventoryResponse(response);\n\t\t\n\t\treturn responseInfo;\n\t}",
"@Override\n public List<String> getSuggestions(CommandSource arg0, String arg1, Location<World> arg2) throws CommandException {\n return Collections.emptyList();\n }",
"@GetMapping(\"/locations\")\n public List<Location> getLocations(){\n return service.getAll();\n }",
"@GetMapping(\"/administrator/replies\")\n\tpublic List<ReactReply> getAllRepliesa() {\n\t\tSystem.out.println(\"get all replies (employee) request received\");\n\t\t\treturn replyService.getAllReplies(); //no logic here, just a call to service when the request is received.\n\n\t}",
"List<Recipe> getAllRecipes();",
"public interface SuggestApi {\n\n String API_TYPES = \"geocode\";\n String API_KEY = \"AIzaSyB93d9Y2I-UWEFEQGLdWUfHCjF7cFmlUm8\";\n\n @GET(\"autocomplete/json\")\n Single<SuggestionResponseModel> obtainSuggestedCities(@Query(\"input\") String input,\n @Query(\"types\") String types,\n @Query(\"key\") String apiKey);\n\n @GET(\"details/json\")\n Single<CityResponseModel> obtainCity(@Query(\"placeid\") String placeId,\n @Query(\"key\") String apiKey);\n}",
"public List<Contact> getAllContacts();",
"@GetMapping(\"/list\")\n public List<Traveller> listTraveller() {\n List<Traveller> theTraveller = travelService.findAll();\n return theTraveller;\n }",
"private List<ICompletionProposal> getSuggestions(ITextViewer viewer,\n \t\t\tint offset, String prefix) throws BadLocationException {\n \n \t\tProperties properties = loadProposalFile();\n \n \t\tMap<String, String> filteredSuggestions = new HashMap<String, String>();\n \n \t\tfor (Entry<Object, Object> property : properties.entrySet()) {\n \t\t\tif (((String) property.getValue()).startsWith(prefix)) {\n \t\t\t\tfilteredSuggestions.put((String) property.getKey(),\n \t\t\t\t\t\t(String) property.getValue());\n \t\t\t}\n \t\t}\n \n \t\tList<ICompletionProposal> suggestions = createProposals(viewer,\n \t\t\t\tfilteredSuggestions, offset, prefix);\n \n \t\treturn suggestions;\n \t}",
"@GetMapping(\"/findAllSurveys\")\n\tpublic List<Survey> getAllSurveys(){\n\t\treturn repository.findAll(); \n\t}",
"@RequestMapping(method = RequestMethod.GET)\r\n public Callable<ResponseObject> findAll() {\r\n return new Callable<ResponseObject>() {\r\n @Override\r\n public ResponseObject call() throws Exception {\r\n return candidateService.findAll();\r\n }\r\n };\r\n }",
"private void loadSuggestions(final ArrayList<MutualFund_CustomClass> mSuggestionArrayList) {\n new VolleyClass(MainActivity.this, \"MainActivity\").volleyPostData(\"<YOUR_WEBSERVICE_URL>\", /*\"<YOUR_JSON_OBJECT>\"*/, new VolleyResponseListener() {\n @Override\n public void onResponse(JSONObject response) throws JSONException {\n for (int i = 0; i < response.getJSONArray(\"data\").length(); i++) {\n mutualFundHouseObj = new MutualFund_CustomClass();\n mutualFundHouseObj.setFundId(response.getJSONArray(\"data\").optJSONObject(i).optString(\"fundid\"));\n mutualFundHouseObj.setFundName(response.getJSONArray(\"data\").optJSONObject(i).optString(\"fundname\"));\n mSuggestionArrayList.add(mutualFundHouseObj);\n }\n //INSTANTIATING CUSTOM ADAPTER\n mMutualFundAdapter = new MutualFund_CustomAdapter(MainActivity.this, mSuggestionArrayList);\n mAutoCompleteTextView.setThreshold(1);//will start working from first character\n mAutoCompleteTextView.setAdapter(mMutualFundAdapter);//setting the adapter data into the AutoCompleteTextView\n\n }\n\n @Override\n public void onError(String message, String title) {\n\n }\n });\n }",
"public List getReplyList(int id) {\n\t\tString HQL = \"\";\r\n\t\tHQL += \" from XzfyOtherSuggest x\";\r\n\t\tHQL += \" where 1 = 1 and x.parentId =\"+id+\"order by id asc\";\t\r\n\t\treturn super.find(HQL);\r\n\t}",
"@GET(\"search.ashx?num_of_results=3\")\n Observable<AutoCompleteApiResponse> getCity(@Query(\"q\") String query);",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"private void populateAutoComplete() {\n if (!mayRequestContacts()) {\n return;\n }\n\n getLoaderManager().initLoader(0, null, this);\n }",
"@GetMapping\n public ResponseEntity<List<Food>> getAllFoods(){\n List<Food> foods = foodDao.findAll();\n return new ResponseEntity<>(foods, HttpStatus.OK);\n }",
"List<FAQModel> getFAQs();",
"@SuppressWarnings({\"checkstyle:WhitespaceAround\", \"checkstyle:DesignForExtension\", \"checkstyle:MissingJavadocMethod\"})\n @GetMapping(\"/findAllComplaint\")\n public List<Complaint> findAll() {\n\n return complaintService.findAll();\n }",
"List<AnswerList> findAllAnsList();",
"@GetMapping()\n\t@Override\n\tpublic List<Address> findAll() {\n\t\treturn addressService.findAll();\n\t}",
"public interface ISimpleSuggestionPluginProvider extends ISuggestionPluginProvider {\n\n Collection<String> getSuggestions(String input, SuggestionRequestContext context);\n\n}",
"public static ArrayList<Teacher> getAllDocenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.GET_ALL_TEACHERS;\n\t\t\tReceiveContent rp1 = sendReceive(rp);\n\t\t\tArrayList<Teacher> lis = (ArrayList<Teacher>) rp1.parameters[0];\n\t\t\treturn lis;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new ArrayList<Teacher>();\n\t}",
"@GetMapping(\"/localisations\")\n @Timed\n public List<Localisation> getAllLocalisations() {\n log.debug(\"REST request to get all Localisations\");\n return localisationService.findAll();\n }",
"public List<ProgressionCourrier> getAllUsers() {\n Query q = getEntityManager().createQuery(\"select U from ProgressionCourrier U order by U.nomPrenoms\");\n // set parameters\n List<ProgressionCourrier> suggestions = q.getResultList();\n\n // avoid returing null to managed beans\n if (suggestions == null) {\n suggestions = new ArrayList<>();\n }\n\n // return the suggestions\n return suggestions;\n\n }",
"@GET\n public List<Lehrer> getAllLehrer() {\n Log.d(\"Webservice Lehrer Get:\");\n Query query = em.createNamedQuery(\"findAllTeachers\");\n List<Lehrer> lehrer = query.getResultList();\n return lehrer;\n }",
"@GetMapping(\"/_search/localisations\")\n @Timed\n public List<Localisation> searchLocalisations(@RequestParam String query) {\n log.debug(\"REST request to search Localisations for query {}\", query);\n return localisationService.search(query);\n }",
"@GetMapping(\"/listAll\")\n\tpublic ResponseEntity<?> findAll(){\n\t\treturn new ResponseEntity<>(catService.listAll(),HttpStatus.OK);\n\t}",
"@GetMapping(\"all\")\r\n public List<Resident> getAllResidents() {\r\n\r\n return residentService.findAllResident();\r\n }",
"@RequestMapping(value = \"/_search/lotes\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Lote> searchLotes(@RequestParam String query) {\n log.debug(\"REST request to search Lotes for query {}\", query);\n return loteService.search(query);\n }",
"@RequestMapping(value = \"/countries\", method = RequestMethod.GET)\n public List<Country> countries() {\n return dictionaryService.findAllCountries();\n }",
"@GET\n\t@Path(\"/getallfriends\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List getAllFriends() {\n\t\tList allfrnds = fcs.getAllFriends();\n\n\t\t// for (int i = 0; i < allfrnds.size(); i++) {\n\t\t// Friend f=(Friend)allfrnds.get(i);\n\t\t// System.out.println(f.id+\"===>\"+f.name);\n\t\t// }\n\n\t\treturn allfrnds;\n\t}",
"@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }",
"@GetMapping(\"/hlds\")\n @Timed\n public List<Hld> getAllHlds() {\n log.debug(\"REST request to get all Hlds\");\n return hldRepository.findAll();\n }",
"@RequestMapping(value = \"/_search/temperaturas/{query}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Temperatura> searchTemperaturas(@PathVariable String query) {\n log.debug(\"REST request to search Temperaturas for query {}\", query);\n return StreamSupport\n .stream(temperaturaSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"@ApiOperation(value = \"/get_all_UserNoun\", httpMethod = \"GET\",\n\tnotes = \"special search that gets all values of UserNoun\",\n\tresponse = UserNoun.class)\n @ApiResponses(value = {\n\t\t@ApiResponse(code = 200, message =LoginACTSwaggerUIConstants.SUCCESS),\n\t @ApiResponse(code = 404, message = LoginACTSwaggerUIConstants.NOT_FOUND),\n\t @ApiResponse(code = 500, message = LoginACTSwaggerUIConstants.INTERNAL_SERVER_ERROR),\n\t @ApiResponse(code = 400, message = LoginACTSwaggerUIConstants.BAD_REQUEST),\n\t @ApiResponse(code = 412, message = LoginACTSwaggerUIConstants.PRE_CONDITION_FAILED) })\n\n\n\t@RequestMapping(method = RequestMethod.GET,value = \"/get_all_UserNoun\" ,headers=\"Accept=application/json\")\n @ResponseBody\n\tpublic List<UserNoun> get_all_UserNoun() throws Exception {\n\t\t log.setLevel(Level.INFO);\n\t log.info(\"get_all_UserNoun controller started operation!\");\n\n\t\tList<UserNoun> UserNoun_list = new ArrayList<UserNoun>();\n\n\t\tUserNoun_list = UserNoun_service.get_all_usernoun();\n\t\tlog.info(\"Object returned from get_all_UserNoun method !\");\n\t\treturn UserNoun_list;\n\n\n\t}",
"@GetMapping(\"/restaurants\")\n public ResponseEntity<?> getAllRestaurant() {\n return new ResponseEntity<List<Restaurant>>(restaurantServiceImpl.getAllUsers(), HttpStatus.OK);\n }",
"public Suggestion (Text text, String[] suggestions) {\n\t\tthis.text = text;\n\t\tthis.suggestions = suggestions;\n\t}",
"@RequestMapping(value=\"/getbooks\", method=RequestMethod.GET, produces = \"application/json\")\n\tpublic List<Book> getAll() {\n\t\tList<Book> books = new ArrayList<>();\n\t\tbooks = bookDao.getAllFromDB();\n\t\t\n\t\treturn books;\n\t}",
"public static List<Term> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"List<Question> getQuestions();",
"@RequestMapping(value=\"/locations\", method=RequestMethod.GET)\n\t@ResponseBody\n\tpublic Iterable<Location> getLocations(){\n\t\treturn lr.findAll();\n\t}",
"@GetMapping(\"/employee/replies\")\n\tpublic List<ReactReply> getAllReplies() {\n\t\tSystem.out.println(\"get all replies (employee) request received\");\n\t\t\tList<ReactReply> rreplies = replyService.getAllReplies(); //no logic here, just a call to service when the request is received.\n\t\t\tSystem.out.println(rreplies);\n\t\t\treturn rreplies;\n\t\t\t\n\t}",
"@GetMapping(path=\"/getall\")\r\n\tpublic @ResponseBody Iterable<MyClass> getAllAdmins() {\n\t\treturn classRepository.findAll();\r\n\t}",
"@GetMapping(\"/_search/alarm-definitions\")\n public ResponseEntity<List<AlarmDefinitionDTO>> searchAlarmDefinitions(@RequestParam String query, Pageable pageable) {\n log.debug(\"REST request to search for a page of AlarmDefinitions for query {}\", query);\n Page<AlarmDefinitionDTO> page = alarmDefinitionService.search(query, pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/alarm-definitions\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"@GET(\"movie_suggestions.json\")\n Call<MoviesResponse> getSimilarMovies(@Query(\"movie_id\") String id);",
"@GetMapping(value = \"/getAllLikes\")\n\t@ResponseBody\n\tpublic List<Likes> getAllLikes() {\n\t\treturn likeRepo.selectAll();\n\t}",
"@Override\r\n\tpublic List getAllOtherList() {\n\t\tString HQL = \"\";\r\n\t\tHQL += \" from XzfyOtherSuggest x\";\r\n\t\tHQL += \" where 1 = 1 \";\t\r\n\t\treturn super.find(HQL);\r\n\t}",
"private void createSuggestionsList() {\r\n\t\tmListView = new LabeledListViewElement(this);\r\n\t\tmInputBar.addView(mListView);\r\n\r\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int pos, long id) {\r\n\t\t\t\tString query = adapter.getItemAtPosition(pos).toString();\r\n\t\t\t\tif(query.contains(\" \"))\r\n\t\t\t\t\tsearch(query);\r\n\t\t\t\telse{\r\n\t\t\t\t\tmInputBar.setInputText(query + \" \");\r\n\t\t\t\t\tmInputBar.setCursorAtEnd();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}",
"public void refreshSuggestions() {\n resetSections(/* alwaysAllowEmptySections = */false);\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/recipes\", produces = MediaType.APPLICATION_JSON_VALUE)\n public RecipesDescriptor getRecipes() {\n final Stream<Recipe> stream = StreamSupport.stream(this.recipeRepository.findAll().spliterator(), false);\n\n final List<Recipe> recipes = stream.collect(Collectors.toList());\n return new RecipesDescriptor(recipes);\n }",
"@GetMapping(\"/requesters\")\n public List<ResponseEntity<Object>> getAllRequesters() {\n List<ResponseEntity<Object>> responses = new ArrayList<>();\n List<User> users = repo.findAll();\n for(User u : users) {\n if(u.getIntent() == Intent.SEEKING) {\n setLinks(u);\n responses.add(new ResponseEntity<>(u, HttpStatus.FOUND));\n }\n }\n return responses;\n }",
"@RequestMapping(value = \"/lotes\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Lote> getAllLotes() {\n log.debug(\"REST request to get all Lotes\");\n return loteService.findAll();\n }",
"@GET\r\n public AbstractCommonList getList(@Context UriInfo ui) {\r\n MultivaluedMap<String, String> queryParams = ui.getQueryParameters();\r\n String keywords = queryParams.getFirst(IQueryManager.SEARCH_TYPE_KEYWORDS_KW);\r\n AbstractCommonList list;\r\n if (keywords != null) {\r\n list = search(queryParams, keywords);\r\n } else {\r\n list = getList(queryParams);\r\n }\r\n return list;\r\n }",
"public String getSuggestedValues () {\n return suggestedValues;\n }",
"public List<String> getAutoComplete(String prefix) {\r\n List<String> words = dict.getAutoComplete(prefix); //get list of words from prefix\r\n System.out.println();\r\n System.out.println(\"Autocomplete words : \");\r\n for (String s : words) {\r\n System.out.println(s);\r\n }\r\n return words;\r\n }",
"List<RouteBean> findAll();",
"List<LectureDTO> search(String query);",
"public List<Ejemplar> getAll();",
"@GetMapping(\"/all\")\n public List<CityInfo> getAll(){\n return service.getAll();\n }",
"public void refreshSuggestionList() {\n \t\tif (isAttached()) {\n \t\t\trefreshSuggestions();\n \t\t}\n \t}",
"public List<String> trendsClosest() {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.trends.closest\") + \"?lat=37.7749&long=122.4194\";\r\n\r\n\t\t\tHttpResponse apiResponse = executeHttpGet(apiUrl);\r\n\r\n\t\t\tif (200 == apiResponse.getStatusLine().getStatusCode()) {\r\n\t\t\t\tJSONArray jsonArray = new JSONArray(EntityUtils.toString(apiResponse.getEntity()));\r\n\t\t\t\tfor (int i = 0; i < jsonArray.length() && i < 10; i++) {\r\n\t\t\t\t\tJSONObject object = (JSONObject) jsonArray.get(i);\r\n\t\t\t\t\tString displayText = (String) object.get(\"country\") + \" : \" + (String) object.get(\"url\");\r\n\t\t\t\t\ttwitterResponseList.add(displayText);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn twitterResponseList;\r\n\t}",
"@RequestMapping(value = \"\", method = RequestMethod.GET)\r\n public ArrayList<Bonus> getAllBonus() {\r\n return DatabaseBonus.getBonusDatabase();\r\n }",
"@GET(\"v1/competitions/\")\n Call<List<Leagues>> getAllData();",
"List<BaseMovie> getSuggestions(Context context, @NonNull List<String> ids) {\n Log.d(Constants.TAG, \"[FirestorePersistentCache]::getSuggestions: getting suggestions\");\n\n List<BaseMovie> suggestions = new ArrayList<>();\n PersistentCache<BaseMovie> cache = new PersistentCache<>(context);\n for (String id : ids) {\n BaseMovie movie = cache.get(SUGGESTIONS_PREFIX + id, BaseMovie.class);\n if (movie != null) {\n Log.d(Constants.TAG,\n \"[FirestorePersistentCache]::getSuggestions: cache hit, getting movie (\" + movie.getTitle() + \")\");\n suggestions.add(movie);\n\n } else {\n Log.d(Constants.TAG,\n \"[FirestorePersistentCache]::getSuggestions: cache miss, id (\" + id + \") is not present\");\n }\n }\n\n return suggestions;\n }",
"@GetMapping(\"/findAll\")\n public List<LabTest> findAll(){\n return labTestService.getLabTests();\n }",
"@GetMapping()\n @ResponseBody\n public List<UserResult> findAll() {\n return userService.findAll();\n }",
"@GetMapping(\"/all\")\n public List<Admin> getAll(){\n return adminService.getAll();\n }",
"@CrossOrigin(origins = \"http://localhost:4200\", methods = { RequestMethod.GET })\n\t@GetMapping(path = \"/listarAbono\")\n\tpublic List<Abono> getAllAbono() {\n\t\treturn abonoService.obtenerTodos();\n\t}"
] | [
"0.655209",
"0.6389889",
"0.61496836",
"0.6136232",
"0.6114904",
"0.6086102",
"0.59199005",
"0.57528925",
"0.5701125",
"0.55869496",
"0.5565645",
"0.55221635",
"0.5402285",
"0.5372361",
"0.536616",
"0.5359987",
"0.5301759",
"0.5268057",
"0.5266926",
"0.52653813",
"0.52487016",
"0.5223274",
"0.5181529",
"0.5179465",
"0.5177562",
"0.51283777",
"0.5090524",
"0.50757015",
"0.5059621",
"0.50396425",
"0.50073516",
"0.49968708",
"0.49897313",
"0.4987334",
"0.49842343",
"0.49824086",
"0.49711707",
"0.49699435",
"0.4964061",
"0.4963809",
"0.495718",
"0.49542812",
"0.49542812",
"0.49542812",
"0.49542812",
"0.49542812",
"0.4953615",
"0.49503827",
"0.49481508",
"0.4945375",
"0.49384245",
"0.4933333",
"0.49305373",
"0.4921552",
"0.49204186",
"0.4883782",
"0.48831135",
"0.4864687",
"0.4863153",
"0.48577145",
"0.48571962",
"0.48549497",
"0.48538503",
"0.4848747",
"0.48439705",
"0.48368272",
"0.48362216",
"0.48348632",
"0.48295033",
"0.48294473",
"0.48268384",
"0.4826413",
"0.48232174",
"0.48178035",
"0.48147786",
"0.48081368",
"0.48042008",
"0.4791509",
"0.4789893",
"0.4780994",
"0.47809488",
"0.47722387",
"0.47654012",
"0.47653988",
"0.47621354",
"0.4755266",
"0.47500095",
"0.4746705",
"0.4741958",
"0.4739463",
"0.4731818",
"0.47313896",
"0.47290036",
"0.47247937",
"0.4723372",
"0.4723151",
"0.47195846",
"0.47193676",
"0.4718672",
"0.47032407"
] | 0.6984977 | 0 |
GET /suggestions/:id : get the "id" suggestion. | @GetMapping("/suggestions/{id}")
public ResponseEntity<Suggestion> getSuggestion(@PathVariable Long id) {
log.debug("REST request to get Suggestion : {}", id);
Optional<Suggestion> suggestion = suggestionService.findOne(id);
return ResponseUtil.wrapOrNotFound(suggestion);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value=\"suggestion\",method=RequestMethod.GET)\n @ResponseBody\n public Map<String, Object> getSuggestion(Long classId){\n try {\n return evaluateService.getAdviceAndDataForClass(classId);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"@DeleteMapping(\"/suggestions/{id}\")\r\n public ResponseEntity<Void> deleteSuggestion(@PathVariable Long id) {\r\n log.debug(\"REST request to delete Suggestion : {}\", id);\r\n suggestionService.delete(id);\r\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\r\n }",
"public KnowledgeDocumentSuggestionResultDocument id(String id) {\n this.id = id;\n return this;\n }",
"@GET(\"movie_suggestions.json\")\n Call<MoviesResponse> getSimilarMovies(@Query(\"movie_id\") String id);",
"@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);",
"public List getReplyList(int id) {\n\t\tString HQL = \"\";\r\n\t\tHQL += \" from XzfyOtherSuggest x\";\r\n\t\tHQL += \" where 1 = 1 and x.parentId =\"+id+\"order by id asc\";\t\r\n\t\treturn super.find(HQL);\r\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/friendship/{userId}/suggestions\")\n public ResponseEntity<ArrayList<Person>> getFriendSuggestions(@PathVariable(value = \"userId\") Long userId) {\n if (!isValidIdValue(userId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n ArrayList<Person> friendSuggestions =(ArrayList<Person>) friendshipService.getFriendSuggestions(userId);\n return new ResponseEntity(friendSuggestions, null, HttpStatus.OK);\n\n }",
"TrackerSearches getTrackerSearches(final Integer id);",
"@GetMapping (\"/getOneAnswer\")\n @ResponseBody\n public Answer getOneAnswer(long id){\n Optional<Answer> oanswer = this.answerRepository.findById(id);\n if(oanswer.isPresent()){\n return oanswer.get();\n }\n return null;\n }",
"@GetMapping(\"/person/{id}\")\n public Person findById(@PathVariable(\"id\") Long id) {\n Person person = elasticsearchOperations.get(id.toString(), Person.class);\n return person;\n }",
"@GetMapping(\"/def-relations/{id}\")\n @Timed\n public ResponseEntity<DefRelation> getDefRelation(@PathVariable Long id) {\n log.debug(\"REST request to get DefRelation : {}\", id);\n Optional<DefRelation> defRelation = defRelationService.findOne(id);\n return ResponseUtil.wrapOrNotFound(defRelation);\n }",
"String get(String id);",
"@GetMapping(\"/suggestions\")\r\n public ResponseEntity<List<Suggestion>> getAllSuggestions(Pageable pageable) {\r\n log.debug(\"REST request to get a page of Suggestions\");\r\n Page<Suggestion> page = suggestionService.findAll(pageable);\r\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/suggestions\");\r\n return ResponseEntity.ok().headers(headers).body(page.getContent());\r\n }",
"@GetMapping(\"/feedbacks/{id}\")\n @Timed\n public ResponseEntity<Feedback> getFeedback(@PathVariable Long id) {\n log.debug(\"REST request to get Feedback : {}\", id);\n Feedback feedback = feedbackRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(feedback));\n }",
"@GetMapping(\"/findbyid/{id}\")\n public Greeting findGreetingById(@PathVariable int id){\n return greetingService.findGreetingById(id);\n }",
"void findSuggestions(String query) {\n \t\tif (suggestionsLoaderClient != null) {\n \t\t\tif (query.length() == 0) {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(\"default-query\",\n \t\t\t\t\t\tlimit);\n \t\t\t} else {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(query, limit);\n \t\t\t}\n \t\t}\n \t}",
"@GET\n\t@Path(\"/{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Friend getFriendById(@PathParam(\"id\") int idToSearch) {\n\t\tFriend searchedfrnd=\tfcs.getFriendById(idToSearch);\n\t\treturn searchedfrnd;\n\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\r\n public Callable<ResponseObject> findById(@PathVariable(\"id\") Long id) {\r\n return new Callable<ResponseObject>() {\r\n @Override\r\n public ResponseObject call() throws Exception {\r\n return candidateService.findById(id);\r\n }\r\n };\r\n }",
"public Word getWord(int id);",
"@Nullable\r\n public static JSONArray retrieveSuggestions(final Context context, String word)\r\n {\r\n JSONArray content;\r\n\r\n try\r\n {\r\n RequestFuture<JSONArray> future = RequestFuture.newFuture();\r\n\r\n SharedPreferencesManager sharedPreferencesManager = new SharedPreferencesManager(context);\r\n\r\n User user = sharedPreferencesManager.retrieveUser();\r\n\r\n final String fixedURL = Utils.fixUrl(\r\n Properties.SERVER_URL + \":\" + Properties.SERVER_SPRING_PORT + \"/suggest/\" + user.getId() + \"/\" + word);\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Conectando con: \" + fixedURL + \" para traer las sugerencias\");\r\n\r\n // Creamos una peticion\r\n final JsonArrayRequest jsonObjReq = new JsonArrayRequest(Request.Method.GET\r\n , fixedURL\r\n , null\r\n , future\r\n , future);\r\n\r\n // La mandamos a la cola de peticiones\r\n VolleySingleton.getInstance(context).addToRequestQueue(jsonObjReq);\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Petición creada y recibida\");\r\n\r\n try\r\n {\r\n content = future.get(20, TimeUnit.SECONDS);\r\n\r\n } catch (InterruptedException e) {\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n\r\n return null;\r\n }\r\n\r\n // Si content es vacio, es que han fallado todas las conexiones.\r\n if (content == null)\r\n {\r\n Log.e(Properties.TAG, \"[REST_CLIENT_SINGLETON] No se ha recibido nada\");\r\n\r\n return null;\r\n }\r\n\r\n } catch (Exception e) {\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n\r\n return null;\r\n }\r\n\r\n return content;\r\n }",
"TrackerSearches loadTrackerSearches(final Integer id);",
"@ResponseBody\n @RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public Message retrieve(@PathVariable(\"id\") Integer id)\n {\n Place bean = placeService.findById(id);\n return Message.successMessage(CommonMessageContent.GET_PLACE, bean);\n }",
"@GetMapping(\"/hlds/{id}\")\n @Timed\n public ResponseEntity<Hld> getHld(@PathVariable Long id) {\n log.debug(\"REST request to get Hld : {}\", id);\n Optional<Hld> hld = hldRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(hld);\n }",
"@RequestMapping(\"/suggestions\")\n public SuggestionWrapper greeting(@RequestParam(value=\"q\", defaultValue=\"\") String strQuery,\n \t\t @RequestParam(value=\"latitude\", defaultValue=\"\") String strLatitude,\n \t\t @RequestParam(value=\"longitude\", defaultValue=\"\") String strLongitude)\n {\n \tList<City> lstCity = m_citiesHandler.findCitiesStartsWith(strQuery);\n\n // Calculate the score for each city\n m_citiesHandler.calculateScore(lstCity, strQuery, strLatitude, strLongitude);\n \n \t// Convert the City class into suggestions\n List<Suggestion> lstSuggestions = m_citiesHandler.convertToSuggestions(lstCity);\n \n // Sort the list by score \n Collections.sort(lstSuggestions, Suggestion.SuggestionScoreComparator);\n \n // Keep 5 best options\n lstSuggestions = lstSuggestions.subList(0, Math.min(5, lstSuggestions.size()));\n \n // Return the suggestions\n SuggestionWrapper cWrapper = new SuggestionWrapper();\n cWrapper.setSuggestions(lstSuggestions);\n return cWrapper;\n }",
"@GetMapping(\"{id}\")\n public Lesson getLessonById(@PathVariable Long id) {\n //code\n return null;\n }",
"@GetMapping(\"/{id}\")\n public ResponseEntity<Opportunity> findById(@PathVariable(value = \"id\") Long id) {\n Optional<Opportunity> opportunity = opportunityRepository.findById(id);\n if (opportunity.isPresent()) {\n return new ResponseEntity<>(opportunity.get(), HttpStatus.OK);\n }\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }",
"public Pregunta getPregunta(int id);",
"@Override\n\t\tpublic void onGetSuggestionResult(MKSuggestionResult arg0, int arg1) {\n\t\t\t\n\t\t}",
"AceMention findMention (String id) {\n\t\tfor (int i=0; i<values.size(); i++) {\n\t\t\tAceValue value = (AceValue) values.get(i);\n\t\t\tAceValueMention mention = value.findMention(id);\n\t\t\tif (mention != null) {\n\t\t\t\treturn mention;\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<timeExpressions.size(); i++) {\n\t\t\tAceTimex timex = (AceTimex) timeExpressions.get(i);\n\t\t\tAceTimexMention mention = timex.findMention(id);\n\t\t\tif (mention != null) {\n\t\t\t\treturn mention;\n\t\t\t}\n\t\t}\n\t\treturn findEntityMention (id);\n\t}",
"@GetMapping(\"/restaurant/{id}\")\n public ResponseEntity<Restaurant> GetRestaurantByID(@PathVariable String id) {\n Optional<Restaurant> getRestaurant = restaurantServiceImpl.getById(id);\n return new ResponseEntity<Restaurant>(getRestaurant.get(), HttpStatus.OK);\n }",
"AceEntityMention findEntityMention (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tAceEntityMention mention = entity.findMention(id);\n\t\t\tif (mention != null) {\n\t\t\t\treturn mention;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity mention with id \" + id);\n\t\treturn null;\n\t}",
"@Override\n\tpublic Answer findById(String id) {\n\t\treturn answerRepository.findById(id).get();\n\t}",
"@RequestMapping(value = \"/adresses/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<AdresseDTO> getAdresse(@PathVariable Long id) {\n log.debug(\"REST request to get Adresse : {}\", id);\n AdresseDTO adresseDTO = adresseService.findOne(id);\n return Optional.ofNullable(adresseDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@Override\n\t\tpublic void onGetSuggestionResult(MKSuggestionResult arg0, int arg1) {\n\n\t\t}",
"private static String getSuggestion(String s) {\r\n // Find suggestion\r\n String titlePattern = \"(?i)class=p><b><i>([^<]+)\";\r\n Pattern pt = Pattern.compile(titlePattern);\r\n Matcher mt = pt.matcher(ConnectHelper.Connect(connection, server,\r\n file + s, port, maxContentLength));\r\n\r\n if (mt.find()) {\r\n return mt.group(1);\r\n }\r\n return null;\r\n }",
"CfgSearchRecommend selectByPrimaryKey(Long id);",
"@Override\n\tpublic Recipe getRecipe(int id) {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<Recipe> rateResponse =\n\t\t restTemplate.exchange(BASE_URL + RECIPE_URL + id, HttpMethod.GET, \n\t\t \t\tnull, new ParameterizedTypeReference<Recipe>() {\n\t\t });\n\t\tRecipe recipe = rateResponse.getBody();\n\t\tlogger.debug(\"RECIPE Info :\" + recipe);\n\t\treturn recipe;\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/friendship/{userId}/suggestions/bylocation\")\n public ResponseEntity<Map<String, ArrayList<Person>>> getFriendSuggestionsByLocation(@PathVariable(value = \"userId\") Long userId) {\n if (!isValidIdValue(userId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n Map<String, ArrayList<Person>> friendSuggestionsByLocation = friendshipService.getFriendSuggestionsByLocation(userId);\n return new ResponseEntity(friendSuggestionsByLocation, null, HttpStatus.OK);\n }",
"public String getSearchHint();",
"@GetMapping (\"/getOneQuestion\")\n @ResponseBody\n public Question getOneQuestion(long id){\n Optional<Question> oquestion = this.questionRepository.findById(id);\n if(oquestion.isPresent()){\n return oquestion.get();\n }\n return null;\n }",
"public People getPeopleById(Long id);",
"@GetMapping(\"/{id}\")\n\tpublic Song getById(@PathVariable(\"id\") int id) {\n\t\tSystem.out.println(\"Searching by id: \" + id);\n\t\tSong song = songService.findById(id);\n\t\tif (song == null) {\n\t\t\tSystem.out.println(\"ID song: \" + id + \" not found\");\n\t\t}\n\t\treturn song;\n\t}",
"@GetMapping(\"getans/{id}\")\n public ResponseEntity<List<Answer>> getAnswer(@PathVariable Long id) {\n\n List<Answer> a = this.userServices.getAnswer(id);\n\n if (a.size() <= 0) {\n\n return ResponseEntity.status(HttpStatus.NOT_FOUND).build();\n }\n\n return ResponseEntity.status(HttpStatus.CREATED).body(a);\n\n }",
"@RequestMapping(value = \"/agent/enrollment/viewHelpItem\", method = RequestMethod.GET)\n public ModelAndView getHelpItem(@RequestParam(\"helpItemId\") long id) throws PortalServiceException {\n String signature = \"EnrollmentController#getHelpItem(long id)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\" }, new Object[] { id });\n\n try {\n HelpItem helpItem = helpService.get(id);\n ModelAndView model = new ModelAndView(\"admin/help_detail\");\n model.addObject(\"helpItem\", helpItem);\n\n return LogUtil.traceExit(getLog(), signature, model);\n } catch (PortalServiceException e) {\n LogUtil.traceError(getLog(), signature, e);\n throw e;\n }\n }",
"@Override\n\t\t\tpublic void onGetSuggestionResult(MKSuggestionResult arg0, int arg1) {\n\t\t\t\t\n\t\t\t}",
"@GetMapping(\"consumer/find/{id}\")\n public User findby (@PathVariable(\"id\") Integer id) {\n return restTemplate.getForObject(\"http://provider-user/provider/find/\" + id, User.class);\n }",
"@Override\n @Transactional(readOnly = true)\n public Optional<DSCorrespondence> findOne(Long id) {\n log.debug(\"Request to get DSCorrespondence : {}\", id);\n return dSCorrespondenceRepository.findById(id);\n }",
"Recipe getRecipe(CharSequence query);",
"@GET\n @Path(\"{id}\")\n @Produces({ \"application/json\" })\n public abstract Response find(@PathParam(\"id\") Long id);",
"@GetMapping(\"/lectures/{id}\")\n public ResponseEntity<Lecture> getLecture(@PathVariable(\"id\") Integer id){\n Optional <Lecture> lectureData = lectureService.findLecture(id);\n if(lectureData.isPresent()){\n return new ResponseEntity<>(lectureData.get(), HttpStatus.OK);\n } else{\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n }",
"@RequestMapping(value = \"{id}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> get(@PathVariable long id) {\n Todo result = getTodoOrThrow(id);\n\n return ResponseEntity.ok(dtoConverter.convert(result));\n }",
"public static FAQ find(int id){\n\t\treturn find.byId(id);\n\t}",
"public String getSuggestion() {\n return (String)getAttributeInternal(SUGGESTION);\n }",
"public Recipe getRecipeAt(Long id) {\r\n \t\tfor (Recipe recipe : recipeList)\r\n \t\t\tif (recipe.getId() == id)\r\n \t\t\t\treturn recipe;\r\n \t\treturn null;\r\n \t}",
"@GraphQLQuery(name = \"food\")\n public Optional<Food> getFoodById(@GraphQLArgument(name = \"id\") Long id) {\n return foodRepository.findById(id);\n }",
"@Override\n\tpublic Optional<Chitietdonhang> findById(Integer id) {\n\t\treturn chiTietDonHangRepository.findById(id);\n\t}",
"public PreferenciasEntity find(Long id)\n {\n LOGGER.log(Level.INFO, \"Consultando Preferencias con id={0}\", id);\n return em.find(PreferenciasEntity.class, id);\n }",
"@PostMapping(\"/suggestions\")\r\n public ResponseEntity<Suggestion> createSuggestion(@Valid @RequestBody Suggestion suggestion) throws URISyntaxException {\r\n log.debug(\"REST request to save Suggestion : {}\", suggestion);\r\n if (suggestion.getId() != null) {\r\n throw new BadRequestAlertException(\"A new suggestion cannot already have an ID\", ENTITY_NAME, \"idexists\");\r\n }\r\n Suggestion result = suggestionService.save(suggestion);\r\n return ResponseEntity.created(new URI(\"/api/suggestions/\" + result.getId()))\r\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\r\n .body(result);\r\n }",
"@RequestMapping(value = \"/{id}\", method=RequestMethod.GET)\n public ResponseEntity<?> findById(@PathVariable final Integer id) {\n Team team = this.teamService.findById(id);\n return ResponseEntity.ok().body(team);\n }",
"@RequestMapping(value=\"/api/books/{id}\", method=RequestMethod.GET)\n public Book get(@PathVariable(\"id\") Long id) {\n return this.bookService.findBook(id);\n }",
"public final ItemScroll getSpell(int id) {\n\t\treturn spellmap.get(Integer.valueOf(id - Config.scrollStartIndex()));\n\t}",
"@GetMapping(\"/getById/{id}\")\n public Book getBookById(@PathVariable(\"id\") Long id) throws BookNotFoundException {\n return bookService.getBookById(id);\n }",
"@GetMapping(\"/findSurvey/{id}\")\n\tpublic Optional<Survey> getSurvey(@PathVariable String id){\n\t\treturn repository.findById(id);\n\t}",
"@GetMapping(\"/{id}/recipe/{recipeId}\")\n public ResponseEntity<IngredientDTO> getIngredient(@PathVariable Long recipeId, @PathVariable Long id){\n IngredientDTO ingredient = ingredientService.findByRecipeIdAndIngredientId(recipeId, id);\n return new ResponseEntity<>(ingredient, HttpStatus.OK);\n }",
"List<Company> getSuggestionsToFollow();",
"public Recipe getRecipe(int id) {\n int i = id - 1000;\n if(i < 0 || i > recipes.get(recipes.size() - 1).getID()-1000){\n //throw new IndexOutOfBoundsException();\n Recipe r = null;\n return r;\n }\n return recipes.get(i);\n }",
"@RequestMapping(value = \"/schools/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<School> getSchool(@PathVariable Long id) {\n log.debug(\"REST request to get School : {}\", id);\n School school = schoolService.findOne(id);\n return Optional.ofNullable(school)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@RequestMapping(value = \"/get/{id}\", method = RequestMethod.GET)\n public Song getSongById(@PathVariable(\"id\") long id) {\n String message = messageSource.getMessage(\"song.get.id\", null,\"locale not found\", Locale.getDefault());\n logger.info(message);\n return songService.findById(id);\n }",
"Concept getConcept(String id);",
"@GetMapping(value=\"/getQuestion/{questionId}\")\n\tpublic Question getQuestion(@PathVariable(\"questionId\") int id) throws QuestionException{\n\t\tLOGGER.info(\"Viewing Question By Id\");\n\t\treturn questionObj.viewQuestionById(id);\n\t}",
"void suggest(T value);",
"public Restaurant getRestaurant(Long id) {\n\t\treturn restaurantRepository.findOne(id);\n\t}",
"@Override\n\tpublic ClientResponse get(Integer id) {\n\t\tWebResource webResource = this.webResource.path(\"/location/\" + id);\n\t\treturn get(webResource);\n\t}",
"public Recipe findById(Long id) {\n\t\tOptional<Recipe> findRecipe = recipeRepository.findById(id);\n\t\tif(findRecipe.isPresent()) {\n\t\t\treturn findRecipe.get();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"private void getPlace(String _id) {\n this.binding.main.setVisibility(View.GONE);\n this.binding.loading.setVisibility(View.VISIBLE);\n\n ParseQuery<Place> query = ParseQuery.getQuery(Place.class);\n query.whereEqualTo(Place.KEY_OBJECT_ID, _id);\n query.include(Place.KEY_CATEGORY);\n query.include(Place.KEY_USER);\n query.getFirstInBackground(new GetCallback<Place>() {\n @Override\n public void done(Place object, ParseException e) {\n if(e == null) {\n place = object;\n bindInformation();\n enterReveal();\n } else {\n Toast.makeText(PlaceDetailActivity.this, \"Place not found\", Toast.LENGTH_LONG).show();\n finish();\n }\n }\n });\n\n // Set up elements visibility\n binding.fabCall.setVisibility(View.INVISIBLE);\n binding.fabLike.setVisibility(View.INVISIBLE);\n binding.main.setVisibility(View.VISIBLE);\n binding.loading.setVisibility(View.GONE);\n }",
"@GetMapping(\"/docentes/{id}\")\n public ResponseEntity<DocenteDTO> getDocente(@PathVariable Long id) {\n log.debug(\"REST request to get Docente : {}\", id);\n Optional<DocenteDTO> docenteDTO = docenteService.findOne(id);\n return ResponseUtil.wrapOrNotFound(docenteDTO);\n }",
"private String getSuggestions() {\r\n\t\tDbHandler dbHandler = new DbHandler(new AndroidFileIO(this));\r\n\t\tTable data;\r\n\t\ttry {\r\n\t\t\tdata = dbHandler.generateDataTable(\"mentalrate\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tRulesFinder finder = new RulesFinder(data);\r\n\t\tIterator<Rule> rulesIter = finder.findRules().iterator();\r\n\r\n\t\tString msg = \"\";\r\n\t\twhile (rulesIter.hasNext()) {\r\n\t\t msg += RuleTranslator.humanReadable(rulesIter.next())+\"\\n\";\r\n\t\t}\r\n\t System.out.println(msg);\r\n\t\treturn msg;\r\n\t}",
"@Override\n\tpublic List<Person> search(Integer id) {\n\t\treturn null;\n\t}",
"List<String> getList(String id);",
"public void requestSuggestions(SuggestOracle.Request req, SuggestOracle.Callback callback) {\n fetchTags(req, callback);\n }",
"TrackerListResolution getTrackerListResolution(final Integer id);",
"@Override\n\tpublic T findTrendsInfoById(int id) {\n\t\treturn (T) trendsDao.findTrendsInfoById(id);\n\t}",
"T getById(Long id);",
"public static List<FeedbackRoute> searchFeedbackRoute(int id){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tList<FeedbackRoute> feedbacks = FeedbackManager.searchFeedbackRoute(id);\r\n\t\t\treturn feedbacks;\r\n\t\t} catch (SQLException | DBException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@GET(\"search.ashx?num_of_results=5\")\n Observable<AutoCompleteApiResponse> getTop5Suggestions(@Query(\"q\") String query);",
"@GetMapping(\"/opportunities/{id}\")\n @Timed\n public ResponseEntity<Opportunity> getOpportunity(@PathVariable String id) {\n log.debug(\"REST request to get Opportunity : {}\", id);\n Opportunity opportunity = opportunityService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(opportunity));\n }",
"public Object lookup(String id) {\n return null;\n }",
"public abstract Optional<Object> getByID(@PathVariable(\"id\") int id);",
"Optional<T> find(long id);",
"@GetMapping(value = \"/consultarByID\")\n public ResponseEntity consultar(@RequestParam Long id) {\n return empleadoService.consultar(id);\n }",
"@Override\n\tdefault Optional<Locations> findById(Integer id) {\n\t\treturn null;\n\t}",
"public Researcher getResearcherByID(int id);",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Optional<Pedido>> find(@PathVariable Integer id) {\n\t\t\tOptional<Pedido> obj = service.find(id);\n\t\t\treturn ResponseEntity.ok().body(obj);\n\t\t}",
"@GetMapping(\"/{id}\")\n public TelephoneEntry getEntry(@PathVariable Long id) {\n return telephoneEntryService.findById(id).orElseThrow(() -> new EntryNotFoundException(id));\n }",
"public Ingredient getById(Long id) {\n return ingredientRepository.getOne(id);\n }",
"TrackerListResolution loadTrackerListResolution(final Integer id);",
"@GetMapping(\"/doctors/{id}\")\n @Timed\n public ResponseEntity<Doctor> getDoctor(@PathVariable String id) {\n log.debug(\"REST request to get Doctor : {}\", id);\n Doctor doctor = doctorRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(doctor));\n }",
"@GetMapping(path=\"/getone\")\r\n\tpublic @ResponseBody Optional<MyClass> getOneAdmin(@RequestParam Integer id) {\n\t\treturn classRepository.findById(id);\r\n\t}",
"T getById(int id);",
"public String getSuggestedText() {\n return suggestedText;\n }"
] | [
"0.6678231",
"0.63406193",
"0.6201944",
"0.61422914",
"0.6022517",
"0.58546346",
"0.58172446",
"0.55625933",
"0.5557041",
"0.5541042",
"0.5530785",
"0.5524688",
"0.55099875",
"0.55019385",
"0.5500596",
"0.54911387",
"0.5490574",
"0.5445714",
"0.5412802",
"0.5398752",
"0.5339783",
"0.53364164",
"0.53128266",
"0.5301555",
"0.52970415",
"0.5284617",
"0.526448",
"0.52387494",
"0.5229082",
"0.52248675",
"0.52010906",
"0.51992404",
"0.51932245",
"0.51802665",
"0.5169348",
"0.5168179",
"0.5166191",
"0.5150609",
"0.5138653",
"0.5134296",
"0.51182216",
"0.5107033",
"0.51031905",
"0.51031685",
"0.51020765",
"0.5098472",
"0.504223",
"0.5040688",
"0.5034142",
"0.50324106",
"0.50284296",
"0.50244814",
"0.5019125",
"0.50188005",
"0.5018417",
"0.5017945",
"0.5013829",
"0.50119007",
"0.50082064",
"0.5003464",
"0.50017256",
"0.4997867",
"0.49963993",
"0.49901253",
"0.49892452",
"0.4987867",
"0.49871707",
"0.49847025",
"0.4984392",
"0.49842533",
"0.49818614",
"0.4974275",
"0.49652258",
"0.49616528",
"0.4960089",
"0.49599528",
"0.49540758",
"0.49476397",
"0.494211",
"0.4940836",
"0.4940085",
"0.4939679",
"0.49366713",
"0.4934199",
"0.4932841",
"0.49321583",
"0.4931031",
"0.49275616",
"0.49274665",
"0.49190593",
"0.49133816",
"0.4911897",
"0.49024847",
"0.49004543",
"0.48922822",
"0.488469",
"0.4882392",
"0.4881574",
"0.48815486",
"0.48796535"
] | 0.8650579 | 0 |
DELETE /suggestions/:id : delete the "id" suggestion. | @DeleteMapping("/suggestions/{id}")
public ResponseEntity<Void> deleteSuggestion(@PathVariable Long id) {
log.debug("REST request to delete Suggestion : {}", id);
suggestionService.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteTrackerSearches(final Integer id);",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\")\r\n public ResponseObject delete(@PathVariable(\"id\") Long id) {\r\n return candidateService.delete(id);\r\n }",
"@GetMapping(\"/suggestions/{id}\")\r\n public ResponseEntity<Suggestion> getSuggestion(@PathVariable Long id) {\r\n log.debug(\"REST request to get Suggestion : {}\", id);\r\n Optional<Suggestion> suggestion = suggestionService.findOne(id);\r\n return ResponseUtil.wrapOrNotFound(suggestion);\r\n }",
"@DeleteMapping(\"/feedbacks/{id}\")\n @Timed\n public ResponseEntity<Void> deleteFeedback(@PathVariable Long id) {\n log.debug(\"REST request to delete Feedback : {}\", id);\n feedbackRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(\"/recipe/delete/{id}\")\n public String deleteRecipe(@PathVariable String id){\n recipeService.deleteById(new Long(id));\n \n return \"redirect:/\";\n }",
"@DeleteMapping(\"{id}\")\n public Lesson deleteLesson(@PathVariable long id) {\n //code\n return null;\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete DSCorrespondence : {}\", id);\n dSCorrespondenceRepository.deleteById(id);\n }",
"public void deleteById(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"@Test\r\n\tpublic void testDeleteSuggestionButNoSuggestionToDelete() {\n\t\tWebDriver driver2 = new HtmlUnitDriver();\r\n\t\tadminLogin();\r\n\t\tSuggestion suggestion = suggestionRepository.save(new Suggestion(null, \"suggestion\", true));\r\n\t\t// go to \"/suggestions\"\r\n\t\tdriver.get(suggestionsUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Home\", \"New suggestion\", \"Logged as Admin\", \"Logout\");\r\n\t\tassertThat(driver.findElement(By.id(\"suggestions_table\")).getText()).contains(\"ID\", \"Suggestions\",\r\n\t\t\t\tsuggestion.getId().toString(), suggestion.getSuggestionText());\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver.findElement(By.linkText(\"Delete\")).click();\r\n\r\n\t\t// user number 2 log himself\r\n\t\t// go to login page\r\n\t\tdriver2.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver2.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver2.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\t// go to suggestions page\r\n\t\tdriver2.get(suggestionsUrl);\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver2.findElement(By.linkText(\"Delete\")).click();\r\n\t\t// delete by clicking the button\r\n\t\tassertThat(suggestionRepository.findAll().size()).isEqualTo(1);\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(suggestionRepository.findAll().size()).isZero();\r\n\t\tdriver2.quit();\r\n\t\t// user 1 try to delete but the suggestion does not exist anymore\r\n\t\t// submit the edit\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(driver.getCurrentUrl()).isEqualTo(errorUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Error\", \"Home\",\r\n\t\t\t\t\"It is not possible to delete a suggestion with the id: \" + suggestion.getId());\r\n\t}",
"@PreAuthorize(\"hasAuthority('ADMIN')\")\n // curl -i --request DELETE -u tim:Dial0gicRots! http:/localhost:8080/dist/delete/425\n // @PreAuthorize(\"hasAuthority('ROLE_ADMIN')\")\n @DeleteMapping(\"delete/{id}\")\n public ResponseEntity<Void> deleteDistance(@PathVariable(\"id\") Integer id) {\n log.info(\"deleteDistance\");\n distanceService.deleteDistance(id);\n return new ResponseEntity<Void>(HttpStatus.NO_CONTENT);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete StatusCandidates : {}\", id);\n statusCandidatesRepository.deleteById(id);\n statusCandidatesSearchRepository.deleteById(id);\n }",
"void deleteById(final String id);",
"@DeleteMapping(\"/{id}\")\n public void deleteById(@PathVariable Long id, Locale locale) {\n teacherService.deleteById(id, locale);\n }",
"@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"@DeleteMapping(value = \"/{id}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void deleteExam(@PathVariable long id) {\n examsService.delete(examsService.findById(id));\n }",
"public void deleteById(Long id);",
"public void delete(Long id);",
"public void delete(Long id);",
"public void delete(Long id);",
"public void delete(Long id);",
"public void delete(Long id);",
"@DeleteMapping(\"/def-relations/{id}\")\n @Timed\n public ResponseEntity<Void> deleteDefRelation(@PathVariable Long id) {\n log.debug(\"REST request to delete DefRelation : {}\", id);\n defRelationService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@GetMapping(\"/delete/{id}\")\n public String deletegetRestaurant(@PathVariable String id) {\n restaurantServiceImpl.delete(id);\n return \"data deleted\";\n }",
"@Override\n\tpublic void deleteanswer(Integer id) throws Exception {\n\t\t\n\t}",
"@DeleteMapping(value = \"/delete\", produces = \"application/json\")\n void delete(@RequestParam int id);",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Recipe : {}\", id);\n recipeRepository.deleteById(id);\n }",
"@DeleteMapping(value = \"/deletegreeting\")\n public String deleteGreeting(@RequestParam int id) {\n return greetingService.deleteGreeting(id);\n }",
"@Override\r\n\tpublic int delete(long id) {\n\t\treturn keywordMapper.deleteByPrimaryKey(id);\r\n\t}",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete AdChoise : {}\", id);\n adChoiseRepository.delete(id);\n adChoiseSearchRepository.delete(id);\n }",
"void deleteChallengeById(int id);",
"@RequestMapping(value=\"/delete/{id}\")\n\tpublic String delete(@PathVariable(\"id\") Integer id)\n\t{\n\t\tItemMap.remove(id);\n\t\tSystem.out.println(\"Item number \"+id+\" is Removed\");\n\t\t\n\t\treturn \"Item number \"+ id+\" is Removed\";\n\t}",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete College : {}\", id);\n collegeRepository.deleteById(id);\n collegeSearchRepository.deleteById(id);\n }",
"@DeleteMapping(path = \"{id}\")\n public ResponseEntity<?> deleteById(@PathVariable Long id) {\n prescriptionService.deleteById(id);\n\n return ResponseEntity.ok().body(\"Prescription with id: \" + id + \" deleted!\");\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Proposal : {}\", id);\n proposalRepository.deleteById(id);\n proposalSearchRepository.deleteById(id);\n }",
"@DeleteMapping(\"/hlds/{id}\")\n @Timed\n public ResponseEntity<Void> deleteHld(@PathVariable Long id) {\n log.debug(\"REST request to delete Hld : {}\", id);\n\n hldRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/{id}\")\n public void deleteEntry(@PathVariable Long id) {\n telephoneEntryService.findById(id).orElseThrow(() -> new EntryNotFoundException(id));\n telephoneEntryService.delete(id);\n }",
"public void deleteRefactoring(String refactoringId);",
"@DeleteMapping(\"{id}\")\n public ResponseEntity<PersonResponse> delete(@PathVariable(name = \"id\") String id) {\n personService.delete(id);\n return ResponseEntity.status(HttpStatus.NO_CONTENT).build();\n }",
"@RequestMapping(path = \"/{id}\", method = RequestMethod.DELETE)\n public void delete(@PathVariable long id) {\n service.delete(id);\n }",
"void deleteTrackerListResolution(final Integer id);",
"@RequestMapping(value = \"/enquirys/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Enquiry : {}\", id);\n enquiryRepository.delete(id);\n }",
"@DeleteMapping(\"{id}\")\n public void deleteBlog(@PathVariable Long id) {\n }",
"@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }",
"void deleteByIdWithResponse(String id, Context context);",
"void deleteByIdWithResponse(String id, Context context);",
"void deleteByIdWithResponse(String id, Context context);",
"void deleteByIdWithResponse(String id, Context context);",
"void deleteByIdWithResponse(String id, Context context);",
"void delete(final Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"@RequestMapping(value = \"/rest/hikes/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Hike : {}\", id);\n hikeRepository.delete(id);\n }",
"@DeleteMapping(path=\"{id}\")\n public void deleteUserById(@PathVariable(\"id\") int id){\n ReviewDAOService.deleteUserById(id);\n }",
"public String deleteResearcher(int id);",
"@RequestMapping( value = \"/{id}\", method = RequestMethod.DELETE )\n public void delete(@PathVariable(value=\"id\") int id){\n classService.delete(id);\n }",
"@Override\n public void delete(String id) {\n log.debug(\"Request to delete Aluno : {}\", id);\n alunoRepository.delete(id);\n alunoSearchRepository.delete(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete Recipe : {}\", id);\n recipeRepository.deleteById(id);\n }",
"@CrossOrigin(origins = \"http://localhost:8081\")\n @DeleteMapping(path=\"/{id}\") // path name after '/option'\n public @ResponseBody ResponseEntity<?> deleteOption(@PathVariable(\"id\") Integer id) {\n // check if the option exists, then delete it if exists\n final Optional<MenuOp> menuOp = menuOpRepository.findById(id);\n if (!menuOp.isPresent()) {\n return ResponseEntity.notFound().build();\n }\n menuOpRepository.delete(menuOp.get());\n return ResponseEntity.ok().build();\n }",
"@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete DisabilityType : {}\", id);\n disabilityTypeRepository.deleteById(id);\n }",
"@DeleteMapping(\"/statuts/{id}\")\n public void deletStatut(@PathVariable(\"id\") int id) {\n \tserviceStatut.deletStatut(id);\n }",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"public void delete(Long id) {\n log.debug(\"Request to delete SolicitacaoExame : {}\", id);\n solicitacaoExameRepository.deleteById(id);\n solicitacaoExameSearchRepository.deleteById(id);\n }",
"public void removeSuggestion(Suggestion suggestion) {\n\n chatSuggestions.remove(suggestion);\n }",
"public void delete(Long id) {\n\r\n\t}",
"@DeleteMapping(\"/opportunities/{id}\")\n @Timed\n public ResponseEntity<Void> deleteOpportunity(@PathVariable String id) {\n log.debug(\"REST request to delete Opportunity : {}\", id);\n opportunityService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete Exam : {}\", id);\n examRepository.deleteById(id);\n }",
"@DeleteMapping(\"/delete/{id}\")\n\tpublic void deleteById(@PathVariable(\"id\") int id) {\n\t\tSong song = songService.findById(id);\n\t\tif (song == null) {\n\t\t\tSystem.out.println(\"Not exsit ID! Don't delete!\");\n\t\t\treturn;\n\t\t}\n\t\tsongService.delete(id);\n\t\tSystem.out.println(\"Deleted id: \" + id);\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete TipoSituacao : {}\", id);\n tipoSituacaoRepository.delete(id);\n }",
"void deleteTrackerListCategory(final Integer id);",
"@Override\n public void delete(String id) {\n log.debug(\"Request to delete Allergy : {}\", id);\n allergyRepository.delete(id);\n }",
"@DeleteMapping(\"/docentes/{id}\")\n public ResponseEntity<Void> deleteDocente(@PathVariable Long id) {\n log.debug(\"REST request to delete Docente : {}\", id);\n docenteService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"void deleteTrackerListTasktype(final Integer id);",
"@Override\n\tpublic void delete(String id) {\n\n\t}",
"void deleteTrackerVotes(final Integer id);",
"void deleteTrackerLocationGetType(final Integer id);",
"@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}",
"public void deleteDefectEntity(Long id);"
] | [
"0.6642384",
"0.6445906",
"0.64362746",
"0.6368895",
"0.6355952",
"0.63297206",
"0.63061565",
"0.6299734",
"0.6273185",
"0.6273185",
"0.6273185",
"0.6273185",
"0.6273185",
"0.6250686",
"0.6216473",
"0.62139404",
"0.6155079",
"0.6153591",
"0.61464137",
"0.61455035",
"0.61455035",
"0.61455035",
"0.61455035",
"0.61455035",
"0.61455035",
"0.61455035",
"0.61455035",
"0.61455035",
"0.61455035",
"0.61310726",
"0.610804",
"0.6104112",
"0.6104112",
"0.6104112",
"0.6104112",
"0.6104112",
"0.6100899",
"0.60844314",
"0.6076154",
"0.6074433",
"0.60682595",
"0.6056508",
"0.6025495",
"0.6018922",
"0.6007315",
"0.59846675",
"0.59790725",
"0.5978179",
"0.59727705",
"0.5964969",
"0.5959211",
"0.5958382",
"0.5957694",
"0.59569526",
"0.5956745",
"0.59507245",
"0.59489906",
"0.59469414",
"0.59465677",
"0.59465677",
"0.59465677",
"0.59465677",
"0.59465677",
"0.5932655",
"0.5929888",
"0.5929888",
"0.5929888",
"0.5929888",
"0.5927786",
"0.59268886",
"0.59194094",
"0.59169924",
"0.5911999",
"0.58991593",
"0.58975816",
"0.5896407",
"0.589481",
"0.58946973",
"0.58890766",
"0.58890766",
"0.58890766",
"0.58890766",
"0.58890766",
"0.58890766",
"0.588418",
"0.58803886",
"0.5870594",
"0.58656895",
"0.58633083",
"0.5859518",
"0.5851465",
"0.5850134",
"0.5834309",
"0.5828524",
"0.5827789",
"0.5826938",
"0.5824769",
"0.58219886",
"0.5821163",
"0.58190054"
] | 0.875027 | 0 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_actionbar, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
ResponseEntity class's Member Integer code, String message, Object data. For response format. | @Override
public Response toResponse(Exception e) {
ResponseEntity<Exception> re = new ResponseEntity<>(e, HttpStatus.INTERNAL_SERVER_ERROR);
logger.error("errorResponse", e); // logging stack trace.
return this.errorResponse(HttpStatus.INTERNAL_SERVER_ERROR.value(), re, e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ResponseEntity<Object> failBusiness(String code, String message) {\n GeneralResponse<Object> responseObject = new GeneralResponse<>();\n ResponseStatus responseStatus = new ResponseStatus();\n responseStatus.setCode(code);\n responseStatus.setMessage(message);\n responseObject.setStatus(responseStatus);\n return ResponseEntity.status(HttpStatus.OK).body(responseObject);\n }",
"public Message getResponseData();",
"public ResponseResource(final Integer code, final String message) {\n\n\t\tthis.message = message == null ? ResponseResource.R_MSG_EMPTY : message;\n\t\tthis.responseCode = code == null ? ResponseResource.R_CODE_OK : code;\n\t\t//this.setData(data);\n\t}",
"public CodeMessage(HttpStatus code, T message) {\n this.code = code.value();\n this.message = message;\n }",
"public ResponseEntity<Object> successMessage(ResponseStatusCode responseStatusCode ,Object data, Class<?> clazz) {\n GeneralResponse<Object> responseObject = new GeneralResponse<>();\n ResponseStatus responseStatus = new ResponseStatus(responseStatusCode);\n responseObject.setStatus(responseStatus);\n if (data instanceof Collection) {\n responseObject.setData(((Collection) data).stream().collect(Collectors.toList()));\n } else {\n responseObject.setData(clazz.cast(data));\n }\n return ResponseEntity.ok(responseObject);\n }",
"private ResponseStatus(int code) {\n this.code = code;\n this.formatted = format(code, \"???\");\n this.symbolicName = String.format(\"0x%04x\", code);\n }",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"public BadRequestResponse()\n {\n super();\n codeSubfield = 0;\n payload = \"Bad Request\";\n }",
"public CodeMessage(Integer code, T message) {\n this.code = code;\n this.message = message;\n }",
"public StatusMessage(int code, String message) {\n _code = code;\n _message = message;\n }",
"com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType getCode();",
"public MetadataResponse() {\n data = new HashMap<String, Object>();\n }",
"public TransactionResponse(String statusMessage) {\n this.statusMessage = statusMessage;\n }",
"public interface IEnumResponseCode {\n\t/**\n\t * Returns the code of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getCode();\n\t\n\t/**\n\t * Returns the description of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getDescription();\n\t\n}",
"public JsonResponse(String status, String[] message) {\n this.status = status;\n this.message = message;\n }",
"public Message(){\n super();\n this.status = RETURN_OK;\n put(\"status\",this.status.getCode());\n put(\"message\", this.status.getMessage());\n }",
"com.google.protobuf.ByteString getResponseMessage();",
"protected ResultEntity ok(Object data) {\n resultEntity.setData(data);\n return resultEntity;\n }",
"public MessageResponse(String message) {\r\n\t\tsetMessage(message);\r\n\t}",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"public EventResponse(boolean success, String message) {\n this.success = success;\n this.message = message;\n }",
"public void errorResponse(int code, String msg){\n msg = errorMessage(code, msg);\n StringReader inputStream = new StringReader( msg );\n\n Content ct = new crc.content.text.html( inputStream, this );\n Transaction response = new HTTPResponse( Pia.instance().thisMachine,\n\t\t\t\t\t toMachine(), ct, false);\n response.setStatus( code );\n response.setContentType( \"text/html\" );\n response.setContentLength( msg.length() );\n Pia.debug(this, \"The header : \\n\" + response.headersAsString() );\n response.startThread();\n }",
"public String message()\n {\n return rawResponse.message();\n }",
"public HttpResponseCode getCode() {\n return code;\n }",
"public String getResponseMessage();",
"public String getResponseMessage() { return responseMessage; }",
"interface EntityUpdateResponse extends EntityUpdateRequest {\n\n /**\n * Returns true if this PI entity was written successfully, false\n * otherwise.\n *\n * @return true if this PI entity was written successfully, false\n * otherwise\n */\n boolean isSuccess();\n\n /**\n * Returns the status for this PI entity. If {@link #isSuccess()}\n * returns {@code true}, then this method is expected to return {@link\n * EntityUpdateStatus#OK}. If {@link EntityUpdateStatus#OTHER_ERROR} is\n * returned, further details might be provided in {@link #explanation()}\n * and {@link #throwable()}.\n *\n * @return status\n */\n EntityUpdateStatus status();\n\n /**\n * If the PI entity was NOT written successfully, this method returns a\n * message explaining the error occurred. Returns an empty string if\n * such message is not available, or {@code null} if no errors\n * occurred.\n *\n * @return error explanation or empty string or null\n */\n String explanation();\n\n /**\n * If the PI entity was NOT written successfully, this method returns\n * the internal throwable instance associated with the error (e.g. a\n * {@link io.grpc.StatusRuntimeException} instance). Returns null if\n * such throwable instance is not available or if no errors occurred.\n *\n * @return throwable instance associated with this PI entity\n */\n Throwable throwable();\n }",
"public AuthorizationResponse(AuthorizationResponseCode responseCode,\n String reason)\n {\n this.reason = reason;\n this.responseCode = responseCode;\n }",
"private void responseMsg(Map<String, Object> data, ResponseStatus status, HttpServletRequest request, HttpServletResponse response, String msgKey) {\n\t\tif (data == null) {\n\t\t\tdata = new HashMap<String, Object>();\n\t\t}\n\t\tdata.put(CODE, status.toString());\n\t\tresponse.setContentType(\"text/plain;charset=UTF-8\");\n\t\tresponse.addHeader(\"Accept-Encoding\", \"gzip, deflate\");\n\t\tString jsonReturn = EcUtil.toJson(data);\n\t\tString callback = request.getParameter(\"callback\");\n\n\t\tif (callback != null) {\n\t\t\tif (data != null && data instanceof Map) {\n\t\t\t\tjsonReturn = callback + \"(\" + jsonReturn + \");\";\n\t\t\t} else {\n\t\t\t\t// 不返回任何数据\n\t\t\t\tjsonReturn = callback + \"();\";\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tresponse.getWriter().write(jsonReturn);\n\t\t} catch (IOException e) {\n\t\t\tlogger.fatal(\"Write response data to client failed!\", e);\n\t\t}\n\n\t}",
"@Override\r\n\tpublic SampleResponse getSomedata() {\r\n\r\n\t\tsampleResponse.setMoney(SampleConstants.MONEY);\r\n\t\t\r\n\t\tMap<String, String> hashmap = new HashMap<String, String>();\r\n\t\thashmap.put(\"testkey\", \"testValue\");\r\n\t\thashmap.put(\"testkey1\", \"testValue1\");\r\n\t\tsampleResponse.setAdditionalPorperties(hashmap);\r\n\r\n\t\treturn sampleResponse;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"responseCode:\" + responseCode + \", dataType:\" + dataType + \", responseData.toString():\"\n\t\t\t\t+ responseData.toString();\n\t}",
"@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }",
"public MessageResponse() {\r\n\t}",
"@Override\n public String toString()\n {\n String str = getType() + \": \";\n if (code != 0)\n {\n str += String.valueOf(code) + \": \";\n }\n return str + message;\n }",
"public JsonResponse(String status, String[] message, String userid, String password, String name, String school, BigDecimal edollar) {\n this.status = status;\n this.message = message;\n this.userid = userid;\n this.password = password;\n this.name = name;\n this.school = school;\n this.edollar = edollar;\n }",
"@Test\r\n\tpublic void getDataFromMessageEntityPositiveTest() {\r\n\r\n\t\tint messageID = 1;\r\n\t\tString messageText = \"Some text\";\r\n\t\tint messageGrID = 1;\r\n\r\n\t\tMessageEntity message = new MessageEntity();\r\n\r\n\t\tmessage.setMesId(new Long(messageID));\r\n\t\tmessage.setText(messageText);\r\n\t\tmessage.setGrId(new Long(messageGrID));\r\n\t\tmessage.setDate();\r\n\r\n\t\tString expectedResponseString = \"\";\r\n\r\n\t\texpectedResponseString += \"Message with id \" + message.getMesId() + \":\\n\";\r\n\t\texpectedResponseString += \"Text of a message: \\n\";\r\n\t\texpectedResponseString += \"\\t\" + message.getText() + \"\\n\";\r\n\t\texpectedResponseString += \"Date of posting message: \\n\";\r\n\t\texpectedResponseString += \"\\t \" + message.getDate().toString() + \"\\n\\n\";\r\n\r\n\t\tString actualResponseString = mesServ.getDataFromMessageEntity(message);\r\n\r\n\t\tassertThat(actualResponseString)\r\n\t\t\t\t.describedAs(\"Actual response String returned from tested method is different from the expected one.\")\r\n\t\t\t\t.isEqualTo(expectedResponseString);\r\n\t}",
"public SuccessResponse() {\r\n super(HttpStatus.OK, \"Successfully processed the request.\");\r\n }",
"public ReturnInfo(String returnMsg, ReturnCode returnCode)\r\n\t{\r\n\t\tsuper();\r\n\t\tthis.returnMessage = returnMsg;\r\n\t\tthis.returnCode = returnCode.getCode();\r\n\t\tthis.result = null;\r\n\t}",
"private CallResponse() {\n initFields();\n }",
"trinsic.services.common.v1.CommonOuterClass.ResponseStatus getStatus();",
"public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }",
"public ResponseEntity<Object> success(Object data, Class<?> clazz) {\n GeneralResponse<Object> responseObject = new GeneralResponse<>();\n ResponseStatus responseStatus = new ResponseStatus(ResponseStatusCode.SUCCESS);\n responseObject.setStatus(responseStatus);\n if (data instanceof Collection) {\n responseObject.setData(((Collection) data).stream().collect(Collectors.toList()));\n } else {\n responseObject.setData(clazz.cast(data));\n }\n return ResponseEntity.ok(responseObject);\n }",
"public Response getResponse(Code otherCode) {\n char des[] = Integer.toString(code).toCharArray();\n char src[] = Integer.toString(otherCode.code).toCharArray();\n\n int hits = 0;\n int strikes = 0;\n int none = 0;\n\n // process strikes\n for (int i = 0; i < 4; i++) {\n if (src[i] == des[i]) {\n strikes++;\n des[i] = 'a';\n src[i] = 'a';\n }\n }\n // process hits\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n if (src[i] != 'a') {\n if (src[i] == des[j]) {\n hits++;\n des[j] = 'a';\n break;\n }\n }\n }\n }\n return new Response(strikes, hits);\n }",
"public interface Response extends Message\n\t{\n public static final String RESPONSE_TO = \"aether.response.response-to\";\n\t}",
"void onSuccess(int responseCode, int requestCode, Response<JsonElement> response);",
"public String response() {\n\t\treturn message;\n\t}",
"public int statusCode(){\n return code;\n }",
"long getInnerStatusCode();",
"public void setResponseCode(java.lang.CharSequence value) {\n this.ResponseCode = value;\n }",
"public int getResponseCode()\r\n {\r\n return this.responseCode;\r\n }",
"public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }",
"public AuthorizationResponseCode getResponseCode()\n {\n return responseCode;\n }",
"@Test\n\tpublic void requestDataForCustomer12212_checkResponseCode_expect200() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}",
"public ErrorResponse(int errNo, String errMessage) {\n\t\tsuper();\n\t\tthis.errNo = errNo;\n\t\tthis.errMessage = errMessage;\n\t}",
"@Nonnull\n @Nonempty\n public static String getHttpResponseMessage (final int nResponseCode)\n {\n final String sMsg;\n switch (nResponseCode)\n {\n // 1XX\n case HTTP_CONTINUE:\n sMsg = \"Continue\";\n break;\n case HTTP_SWITCHING_PROTOCOLS:\n sMsg = \"Switching Protocols\";\n break;\n case HTTP_EARLY_HINTS:\n sMsg = \"Early Hints\";\n break;\n // 2XX\n case HTTP_OK:\n sMsg = \"OK\";\n break;\n case HTTP_CREATED:\n sMsg = \"Created\";\n break;\n case HTTP_ACCEPTED:\n sMsg = \"Accepted\";\n break;\n case HTTP_NON_AUTHORITATIVE_INFORMATION:\n sMsg = \"Non-Authoritative Information\";\n break;\n case HTTP_NO_CONTENT:\n sMsg = \"No Content\";\n break;\n case HTTP_RESET_CONTENT:\n sMsg = \"Reset Content\";\n break;\n case HTTP_PARTIAL_CONTENT:\n sMsg = \"Partial Content\";\n break;\n // 3XX\n case HTTP_MULTIPLE_CHOICES:\n sMsg = \"Multiple Choices\";\n break;\n case HTTP_MOVED_PERMANENTLY:\n sMsg = \"Moved Permanently\";\n break;\n case HTTP_MOVED_TEMPORARY:\n sMsg = \"Moved Temporary\";\n break;\n case HTTP_SEE_OTHER:\n sMsg = \"See Other\";\n break;\n case HTTP_NOT_MODIFIED:\n sMsg = \"Not Modified\";\n break;\n case HTTP_USE_PROXY:\n sMsg = \"Use Proxy\";\n break;\n case HTTP_SWITCH_PROXY:\n sMsg = \"Switch Proxy\";\n break;\n case HTTP_TEMPORARY_REDIRECT:\n sMsg = \"Temporary Redirect\";\n break;\n case HTTP_PERMANENT_REDIRECT:\n sMsg = \"Permanent Redirect\";\n break;\n // 4xx\n case HTTP_BAD_REQUEST:\n sMsg = \"Bad Request\";\n break;\n case HTTP_UNAUTHORIZED:\n sMsg = \"Unauthorized\";\n break;\n case HTTP_PAYMENT_REQUIRED:\n sMsg = \"Payment Required\";\n break;\n case HTTP_FORBIDDEN:\n sMsg = \"Forbidden\";\n break;\n case HTTP_NOT_FOUND:\n sMsg = \"Not Found\";\n break;\n case HTTP_METHOD_NOT_ALLOWED:\n sMsg = \"Method Not Allowed\";\n break;\n case HTTP_NOT_ACCEPTABLE:\n sMsg = \"Not Acceptable\";\n break;\n case HTTP_PROXY_AUTH_REQUIRED:\n sMsg = \"Proxy Authentication Required\";\n break;\n case HTTP_REQUEST_TIMEOUT:\n sMsg = \"Request Time-out\";\n break;\n case HTTP_CONFLICT:\n sMsg = \"Conflict\";\n break;\n case HTTP_GONE:\n sMsg = \"Gone\";\n break;\n case HTTP_LENGTH_REQUIRED:\n sMsg = \"Length Required\";\n break;\n case HTTP_PRECONDITION_FAILED:\n sMsg = \"Precondition Failed\";\n break;\n case HTTP_ENTITY_TOO_LARGE:\n sMsg = \"Request Entity Too Large\";\n break;\n case HTTP_REQUEST_URI_TOO_LONG:\n sMsg = \"Request-URI Too Large\";\n break;\n case HTTP_UNSUPPORTED_MEDIA_TYPE:\n sMsg = \"Unsupported Media Type\";\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n sMsg = \"Requested Range not satisfiable\";\n break;\n case HTTP_EXPECTATION_FAILED:\n sMsg = \"Expectation Failed\";\n break;\n case HTTP_IM_A_TEAPOT:\n sMsg = \"I'm a teapot\";\n break;\n case HTTP_UNPROCESSABLE_ENTITY:\n sMsg = \"Unprocessable Entity\";\n break;\n case HTTP_UPGRADE_REQUIRED:\n sMsg = \"Upgrade Required\";\n break;\n case HTTP_PRECONDITION_REQUIRED:\n sMsg = \"Precondition Required\";\n break;\n case HTTP_TOO_MANY_REQUESTS:\n sMsg = \"Too Many Requests\";\n break;\n case HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE:\n sMsg = \"Request Header Fields Too Large\";\n break;\n case HTTP_UNAVAILABLE_FOR_LEGAL_REASONS:\n sMsg = \"Unavailable For Legal Reasons\";\n break;\n // 5xx\n case HTTP_INTERNAL_SERVER_ERROR:\n sMsg = \"Internal Server Error\";\n break;\n case HTTP_NOT_IMPLEMENTED:\n sMsg = \"Not Implemented\";\n break;\n case HTTP_BAD_GATEWAY:\n sMsg = \"Bad Gateway\";\n break;\n case HTTP_SERVICE_UNAVAILABLE:\n sMsg = \"Service Unavailable\";\n break;\n case HTTP_GATEWAY_TIMEOUT:\n sMsg = \"Gateway Time-out\";\n break;\n case HTTP_VERSION_NOT_SUPPORTED:\n sMsg = \"HTTP Version not supported\";\n break;\n case HTTP_VARIANT_ALSO_NEGOTIATES:\n sMsg = \"Variant Also Negotiates\";\n break;\n case HTTP_INSUFFICIENT_STORAGE:\n sMsg = \"Insufficient Storage\";\n break;\n case HTTP_LOOP_DETECTED:\n sMsg = \"Loop Detected\";\n break;\n case HTTP_NETWORK_AUTHENTICATION_REQUIRED:\n sMsg = \"Network Authentication Required\";\n break;\n default:\n sMsg = \"Unknown (\" + nResponseCode + \")\";\n break;\n }\n return sMsg;\n }",
"public MetadataResponse() {\n }",
"protected static ResponseDataHolder getResponseDataHolder( String pMessage ) {\n\n // Holder for the ResponseData\n ResponseDataHolder responseDataHolder = new ResponseDataHolder();\n\n // Enter only meaningful data this object will contain\n responseDataHolder.setMessage( pMessage );\n\n // Return the ResponseData holder\n return( responseDataHolder );\n }",
"public static ResponseParams createResponseParamObj(ResponseCode code) {\n ResponseParams params = new ResponseParams();\n if (code.getResponseCode() != 200) {\n params.setErr(code.getErrorCode());\n params.setErrmsg(code.getErrorMessage());\n }\n params.setMsgid(ExecutionContext.getRequestId());\n params.setStatus(ResponseCode.getHeaderResponseCode(code.getResponseCode()).name());\n return params;\n }",
"public PersonResult(String message){\n super(message);\n }",
"private MsgStoreCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public sparqles.avro.discovery.DGETInfo.Builder setResponseCode(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.ResponseCode = value;\n fieldSetFlags()[5] = true;\n return this; \n }",
"@Override\n\tpublic Object handleDataException(DataException exc) {\n\t\tGenericResponsePayload grp = new GenericResponsePayload();\n\t\tString msg = DEFAULT_INTERNAL_SERVER_ERROR_MESSAGE;\n\t\tHttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;\n\t\tgrp.setMessage(msg);\n\t\treturn new ResponseEntity<>(grp, status);\n\t}",
"public int getResponseCode() {\n return responseCode;\n }",
"public int getResponseCode() {\n return responseCode;\n }",
"public int getResponseCode() {\n return responseCode;\n }",
"@Override\r\n\t\t\t\t\t\tpublic void result(ResposneBundle b) {\n\t\t\t\t\t\t\tLog.e(\"result\", b.getContent());\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tJSONObject job = new JSONObject(b.getContent());\r\n\t\t\t\t\t\t\t\tif (job.getInt(\"code\") == -1) {\r\n\t\t\t\t\t\t\t\t\tact.showToast(job.getString(\"msg\"));\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tf.refreshFriendList();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}",
"public AuditDataBuilder responseCode(final String responseCode) {\n this.responseCode = responseCode;\n return this;\n }",
"public static TaskResponse<?> getInstance(int statusCode, String message, Object response) {\r\n \tif (null == taskResponse) {\r\n \t\ttaskResponse = new TaskResponse<>();\r\n \t}\r\n \ttaskResponse.setStatusCode(statusCode);\r\n \ttaskResponse.setMessage(message);\r\n \ttaskResponse.setResponse(response);\r\n \treturn taskResponse;\r\n }",
"public int getStatusCode() {\n return code;\n }",
"public ReturnInfo(ReturnCode returnCode)\r\n\t{\r\n\t\tsuper();\r\n\t\tthis.returnMessage = returnCode.getMessage();\r\n\t\tthis.returnCode = returnCode.getCode();\r\n\t\tthis.result = null;\r\n\t}",
"public int getResponseCode() {\n return this.responseCode;\n }",
"public static Response createFailureResponse(\n Request request, ResponseCode code, ResponseCode headerCode) {\n\n Response response = new Response();\n response.setVer(getApiVersion(request.path()));\n response.setId(ResponseIdUtil.getApiResponseId(request.path(), request.method()));\n response.setTs(ProjectUtil.getFormattedDate());\n response.setResponseCode(headerCode);\n response.setParams(createResponseParamObj(code));\n return response;\n }",
"@Override\r\n\tpublic Response error(String message) {\r\n\t\tJSONObject json = new JSONObject();\r\n\r\n\t\ttry {\r\n\t\t\tjson.put(STAT, FAIL);\r\n\t\t\tjson.put(MESSAGE, message);\r\n\t\t} catch (JSONException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn buildResponse(json);\r\n\t}",
"private String getResponse(Object responseData, String shortName) {\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\ttry {\n\t\t\tString responseCode = responseData.getClass().getMethod(\"getResponseCode\").invoke(responseData).toString();\n\n\t\t\tString msg = Constants.getResponseMessage(responseCode);\n\t\t\tString response = \"\";\n\t\t\tif (responseCode.equals(\"00\"))\n\t\t\t\tresponse = getResultSet(responseData, \"NESingleResponse\");\n\n\t\t\tresult.add(msg);\n\t\t\tresult.add(response);\n\n\t\t\tSystem.out.println(responseCode);\n\t\t\tSystem.out.println(result.get(0));\n\t\t\tSystem.out.println(result.get(1));\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\treturn gson.toJson(result);\n\t}",
"public MessageResponseAction(Message message) {\n this(message, 0);\n }",
"public ExceptionResponse(String message, HttpStatus httpStatus) {\n this.message = message;\n this.httpStatus = httpStatus;\n }",
"public String getResponseCode() {\n return responseCode;\n }",
"private String getRespDesc(String _code)\r\n {\r\n int resultCode = -1;\r\n\r\n try\r\n {\r\n resultCode = Integer.valueOf(_code);\r\n } catch (NumberFormatException e)\r\n {\r\n // just in case the code isn't a number\r\n return \"Format of RESULT code unexpected\";\r\n }\r\n\r\n if (resultCode < 0)\r\n {\r\n return \"Communication error\";\r\n }\r\n\r\n String ret = \"unknown\";\r\n switch (resultCode)\r\n {\r\n case 0:\r\n ret = \"Approved\";\r\n break;\r\n case 1:\r\n ret = \"User authentication failed\";\r\n break;\r\n case 2:\r\n ret = \"Invalid tender type\";\r\n break;\r\n case 3:\r\n ret = \"Invalid transaction type\";\r\n break;\r\n case 4:\r\n ret = \"Invalid amount format\";\r\n break;\r\n case 5:\r\n ret = \"Invalid merchant information\";\r\n break;\r\n case 6:\r\n ret = \"Invalid or unsupported currency code\";\r\n break;\r\n case 7:\r\n ret = \"Field format error\";\r\n break;\r\n case 8:\r\n ret = \"Not a transaction server\";\r\n break;\r\n case 9:\r\n ret = \"Too many parameters or invalid stream\";\r\n break;\r\n case 10:\r\n ret = \"Too many line items\";\r\n break;\r\n case 11:\r\n ret = \"Client time-out waiting for response\";\r\n break;\r\n case 12:\r\n ret = \"Declined\";\r\n break;\r\n case 13:\r\n ret = \"Referral\";\r\n break;\r\n case 19:\r\n ret = \"Original transaction ID not found\";\r\n break;\r\n case 20:\r\n ret = \"Cannot find the customer reference number\";\r\n break;\r\n case 22:\r\n ret = \"Invalid ABA number\";\r\n break;\r\n case 23:\r\n ret = \"Invalid account number\";\r\n break;\r\n case 24:\r\n ret = \"Invalid expiration date\";\r\n break;\r\n case 25:\r\n ret = \"Invalid Host Mapping\";\r\n break;\r\n case 26:\r\n ret = \"Invalid vendor account\";\r\n break;\r\n case 27:\r\n ret = \"Insufficient partner permissions\";\r\n break;\r\n case 28:\r\n ret = \"Insufficient user permissions\";\r\n break;\r\n case 29:\r\n ret = \"Invalid XML document\";\r\n break;\r\n case 30:\r\n ret = \"Duplicate transaction\";\r\n break;\r\n case 31:\r\n ret = \"Error in adding the recurring profile\";\r\n break;\r\n case 32:\r\n ret = \"Error in modifying the recurring profile\";\r\n break;\r\n case 33:\r\n ret = \"Error in canceling the recurring profile\";\r\n break;\r\n case 34:\r\n ret = \"Error in forcing the recurring profile\";\r\n break;\r\n case 35:\r\n ret = \"Error in reactivating the recurring profile\";\r\n break;\r\n case 36:\r\n ret = \"OLTP Transaction failed\";\r\n break;\r\n case 37:\r\n ret = \"Invalid recurring profile ID\";\r\n break;\r\n case 50:\r\n ret = \"Insufficient funds available in account\";\r\n break;\r\n case 51:\r\n ret = \"Exceeds per transaction limit\";\r\n break;\r\n case 99:\r\n ret = \"General error. See RESPMSG.\";\r\n break;\r\n case 100:\r\n ret = \"Transaction type not supported by host\";\r\n break;\r\n case 101:\r\n ret = \"Time-out value too small\";\r\n break;\r\n case 102:\r\n ret = \"Processor not available\";\r\n break;\r\n case 103:\r\n ret = \"Error reading response from host\";\r\n break;\r\n case 104:\r\n ret = \"Timeout waiting for processor response\";\r\n break;\r\n case 105:\r\n ret = \"Credit error\";\r\n break;\r\n case 106:\r\n ret = \"Host not available\";\r\n break;\r\n case 107:\r\n ret = \"Duplicate suppression time-out\";\r\n break;\r\n case 108:\r\n ret = \"Void error\";\r\n break;\r\n case 109:\r\n ret = \"Time-out waiting for host response\";\r\n break;\r\n case 110:\r\n ret = \"Referenced auth (against order) Error\";\r\n break;\r\n case 111:\r\n ret = \"Capture error\";\r\n break;\r\n case 112:\r\n ret = \"Failed AVS check\";\r\n break;\r\n case 113:\r\n ret = \"Merchant sale exceeds the sales cap\";\r\n break;\r\n case 114:\r\n ret = \"Card Security Code (CSC) Mismatch.\";\r\n break;\r\n case 115:\r\n ret = \"System busy, try again later\";\r\n break;\r\n case 116:\r\n ret = \"VPS Internal error\";\r\n break;\r\n case 117:\r\n ret = \"Failed merchant rule check\";\r\n break;\r\n case 118:\r\n ret = \"Invalid keywords found in string fields\";\r\n break;\r\n case 120:\r\n ret = \"Attempt to reference a failed transaction\";\r\n break;\r\n case 121:\r\n ret = \"Not enabled for feature\";\r\n break;\r\n case 122:\r\n ret = \"Merchant sale exceeds the credit cap\";\r\n break;\r\n case 125:\r\n ret = \"Declined by filters\";\r\n break;\r\n case 126:\r\n ret = \"Authorized but triggered a Fraud Filter\";\r\n break;\r\n case 127:\r\n ret = \"Not processed by filters\";\r\n break;\r\n case 128:\r\n ret = \"Declined by merchant\";\r\n break;\r\n case 132:\r\n ret = \"Card has not been submitted for update\";\r\n break;\r\n case 133:\r\n ret = \"Data mismatch in HTTP retry request\";\r\n break;\r\n case 150:\r\n ret = \"Issuing bank timed out\";\r\n break;\r\n case 151:\r\n ret = \"Issuing bank unavailable\";\r\n break;\r\n case 201:\r\n ret = \"Order error\";\r\n break;\r\n case 1000:\r\n ret = \"Generic host error\";\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n\r\n return ret;\r\n }",
"public DataException(String message, String code){\r\n super(message, code);\r\n }",
"private ResponseStatus(int code, String symbolicName, String description) {\n this.code = code;\n this.formatted = format(code, description);\n this.symbolicName = requireNonNull(symbolicName);\n\n if (code == MALFORMED_RESPONSE_CODE) {\n // skip further processing of the \"malformed response\" status\n return;\n }\n\n if (values[code] != null) {\n throw new IllegalStateException(\"already initialized status \" + values[code]);\n }\n\n values[code] = this;\n }",
"@Override\n\t\t\t\t\tpublic void onResponse(BaseBean arg0) {\n\t\t\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\t\tif (\"1\".equals(arg0.getCode())) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSharePerfUtil.saveLinkMan(edt_name.getText().toString());\n//\t\t\t\t\t\t\t\tSharePerfUtil.savePersonHead(url)\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this,\n\t\t\t\t\t\t\t\t\t\targ0.getMsg(), 1000).show();\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this,\n\t\t\t\t\t\t\t\t\t\targ0.getMsg(), 1000).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this, \"暂无数据!\",\n\t\t\t\t\t\t\t\t\t1000).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n public void onResponseSuccess(final String resp) {\n }",
"public void setResponseMessage(String responseMessage) { this.responseMessage = responseMessage; }",
"public ErrorHeader(final MslContext ctx, final EntityAuthenticationData entityAuthData, final String recipient, final long messageId, final ResponseCode errorCode, final int internalCode, final String errorMsg, final String userMsg) throws MslEncodingException, MslCryptoException, MslEntityAuthException, MslMessageException {\n // Message ID must be within range.\n if (messageId < 0 || messageId > MslConstants.MAX_LONG_VALUE)\n throw new MslInternalException(\"Message ID \" + messageId + \" is out of range.\");\n \n // Message entity must be provided.\n if (entityAuthData == null)\n throw new MslMessageException(MslError.MESSAGE_ENTITY_NOT_FOUND);\n \n // Only include the recipient if the message will be encrypted.\n final EntityAuthenticationScheme scheme = entityAuthData.getScheme();\n final boolean encrypted = scheme.encrypts();\n \n this.entityAuthData = entityAuthData;\n this.recipient = (encrypted) ? recipient : null;\n this.timestamp = ctx.getTime() / MILLISECONDS_PER_SECOND;\n this.messageId = messageId;\n this.errorCode = errorCode;\n this.internalCode = (internalCode >= 0) ? internalCode : -1;\n this.errorMsg = errorMsg;\n this.userMsg = userMsg;\n \n // Construct the JSON.\n final JSONObject errorJO = new JSONObject();\n try {\n if (this.recipient != null) errorJO.put(KEY_RECIPIENT, this.recipient);\n errorJO.put(KEY_TIMESTAMP, this.timestamp);\n errorJO.put(KEY_MESSAGE_ID, this.messageId);\n errorJO.put(KEY_ERROR_CODE, this.errorCode.intValue());\n if (this.internalCode > 0) errorJO.put(KEY_INTERNAL_CODE, this.internalCode);\n if (this.errorMsg != null) errorJO.put(KEY_ERROR_MESSAGE, this.errorMsg);\n if (this.userMsg != null) errorJO.put(KEY_USER_MESSAGE, this.userMsg);\n } catch (final JSONException e) {\n throw new MslEncodingException(MslError.JSON_ENCODE_ERROR, \"errordata\", e).setEntityAuthenticationData(entityAuthData).setMessageId(messageId);\n }\n\n try {\n // Create the crypto context.\n final EntityAuthenticationFactory factory = ctx.getEntityAuthenticationFactory(scheme);\n if (factory == null)\n throw new MslEntityAuthException(MslError.ENTITYAUTH_FACTORY_NOT_FOUND, scheme.name());\n final ICryptoContext cryptoContext = factory.getCryptoContext(ctx, entityAuthData);\n \n // Encrypt and sign the error data.\n final byte[] plaintext = errorJO.toString().getBytes(MslConstants.DEFAULT_CHARSET);\n this.errordata = cryptoContext.encrypt(plaintext);\n this.signature = cryptoContext.sign(this.errordata);\n } catch (final MslCryptoException e) {\n e.setEntityAuthenticationData(entityAuthData);\n e.setMessageId(messageId);\n throw e;\n } catch (final MslEntityAuthException e) {\n e.setEntityAuthenticationData(entityAuthData);\n e.setMessageId(messageId);\n throw e;\n }\n }",
"private static HttpResponseMessage extractResponseInformation(HttpMethod method) {\n // Create and return HttpResponseMethod\n HttpResponseMessage responseMessage = new HttpResponseMessage();\n responseMessage.setStatusCode(method.getStatusCode());\n try {\n responseMessage.setResponseBody(method.getResponseBodyAsString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return responseMessage;\n }",
"public int getResponse() {return response;}",
"public SmartCredentialsResponse(@Nullable final V data) {\n mData = data;\n mError = null;\n }",
"@Override\n void parseOAuthResponse(String data) {\n }",
"private Builder(String code, String message) {\r\n this.innerCode = code;\r\n this.innerMessage = message;\r\n }",
"@Override\n\tpublic void onResp(BaseResp arg0) {\n\t\tswitch (arg0.getType()) {\n\t\t\tcase ConstantsAPI.COMMAND_SENDAUTH: {\n\t\t\t\tswitch (arg0.errCode) {\n\t\t\t\tcase BaseResp.ErrCode.ERR_OK: {\n\t\t\t\t\tSendAuth.Resp result = (SendAuth.Resp) arg0;\n\t\t\t\t\t// call jni\n\t\t\t\t\tSetAccountInfo(result.code);\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BaseResp.ErrCode.ERR_USER_CANCEL:\n\t\t\t\tdefault: {\n\t\t\t\t\t// �����版�剧ず��诲��������\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ConstantsAPI.COMMAND_SENDMESSAGE_TO_WX:\n\t\t\t\t//SetMessaegRespInfo();\n\t\t\t\tSendMessageToWX.Resp result = (SendMessageToWX.Resp)arg0;\n\t\t\t\t\n\t\t\t\tif(BaseResp.ErrCode.ERR_OK == arg0.errCode){\n\t\t\t\t\t SetMessaegRespInfo( result.transaction );\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t\n\t\t}\n\t\tfinish();\n\t}",
"public interface TransactionEndpointResponse {\n \n /**\n * Returns the status of the Response from the server.\n * By default \"no-error\" is returned.\n * \n * @return status of the Response from the server\n */\n public String error();\n}",
"abstract Integer getStatusCode();",
"java.lang.String getResponse();",
"protected T getResponse() {\n return responseData;\n }",
"public String getResponseMessage() {\n return responseMessage;\n }",
"fintech.HistoryResponse.Data getData();",
"ResponseEntity<Response> me(String token);",
"public EndTurnResponse(String username, String message){\n //single player end game\n super(username, MessageType.ENDTURNUPDATE);\n this.message = message;\n this.gameOver=true;\n this.isSinglePlayer = true;\n }",
"public interface IResponse {\n\n // abstract method for returning a String message in JSON format\n String getJSON();\n\n // abstract method to initialize code JSON property\n void setCode(String code);\n\n // abstract method to initialize message JSON property\n void setMessage(String message);\n}",
"public static LoginMessageResponse parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n LoginMessageResponse object = new LoginMessageResponse();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"LoginMessageResponse\".equals(type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (LoginMessageResponse) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Error\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setError(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"User\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setUser(null);\n reader.next();\n\n reader.next();\n } else {\n object.setUser(UserModel.Factory.parse(reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"UserToken\").equals(reader.getName())) {\n object.setUserToken(Guid.Factory.parse(reader));\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"private Response() {\n initFields();\n }"
] | [
"0.62888074",
"0.6192637",
"0.61780906",
"0.60734165",
"0.5998122",
"0.5952756",
"0.58868355",
"0.57773876",
"0.5736533",
"0.5693289",
"0.5673206",
"0.56680655",
"0.5623689",
"0.5609657",
"0.5577202",
"0.557518",
"0.555895",
"0.5539766",
"0.5532409",
"0.5483592",
"0.54758817",
"0.54724896",
"0.54642665",
"0.54559684",
"0.5449195",
"0.54464275",
"0.5446372",
"0.53598225",
"0.5347151",
"0.534564",
"0.532632",
"0.5303077",
"0.528076",
"0.5243201",
"0.5241257",
"0.52331316",
"0.522739",
"0.51891387",
"0.51860523",
"0.51653594",
"0.5164834",
"0.51454353",
"0.51375234",
"0.5136667",
"0.51338255",
"0.5132651",
"0.5130225",
"0.51298326",
"0.5128156",
"0.5103607",
"0.51003945",
"0.5099658",
"0.5096166",
"0.50925446",
"0.5084577",
"0.50829685",
"0.5076709",
"0.506609",
"0.50656664",
"0.5064892",
"0.5062141",
"0.5059294",
"0.5058027",
"0.5058027",
"0.5058027",
"0.50574666",
"0.5051758",
"0.5051667",
"0.50485253",
"0.50433135",
"0.50408745",
"0.5040755",
"0.50396395",
"0.5034409",
"0.50333184",
"0.50147504",
"0.5011384",
"0.50111675",
"0.5010105",
"0.50096786",
"0.5004483",
"0.5003343",
"0.5003322",
"0.49933767",
"0.49869698",
"0.49865064",
"0.49861097",
"0.4983186",
"0.4974921",
"0.49691862",
"0.49657467",
"0.49599633",
"0.49564475",
"0.4950463",
"0.49454486",
"0.49450475",
"0.49444836",
"0.4943846",
"0.49414635",
"0.49305627",
"0.49224406"
] | 0.0 | -1 |
Update information of a user. | void update(User user); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateUser(User user) {\n\t\t\r\n\t}",
"public void update(User user);",
"public void updateUser(Person user) {\n\t\t\n\t}",
"void updateUser(@Nonnull User user);",
"void updateUserById(String username, User userData);",
"@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}",
"@Override\n\tpublic void updateUser(user theUser) {\n\t}",
"ResponseMessage updateUser(final User user);",
"@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}",
"public User update(User updatedInfo);",
"public void update(User obj) {\n\t\t\n\t}",
"public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}",
"public void update(User u) {\n\r\n\t}",
"public User updateUser(User user);",
"public boolean update(User u);",
"public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}",
"public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}",
"public void updateUser(int uid, String name, String phone, String email, String password, int money, int credit);",
"ManageUserResponse updateUser(UserUpdateRequest user, Long userId);",
"public void updateUser() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"update users set first_name='\" + firstName + \"', \";\n query += \"last_name='\" + lastName + \"', \";\n query += \"phone_number='\" + phoneNumber + \"', \";\n query += \"email='\" + email + \"', \";\n query += \"address='\" + address + \"', \";\n query += \"id_city='\" + idCity + \"' \";\n query += \"where id_user = \" + id;\n stmt.executeUpdate(query);\n\n User updatedUser = findUser(id);\n updatedUser.setFirstName(firstName);\n updatedUser.setLastName(lastName);\n updatedUser.setPhoneNumber(phoneNumber);\n updatedUser.setEmail(email);\n updatedUser.setIdCity(idCity);\n updatedUser.setAddress(address);\n\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n }",
"@Override\n\tpublic void updateOne(User u) {\n\t\tdao.updateInfo(u);\n\t}",
"@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}",
"public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}",
"UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);",
"String updateUserInfo(String usernameToUpdate, UserInfo userInfo);",
"private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }",
"@Override\n\tpublic void updateUser(UserInfo ui) {\n\n\t}",
"public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}",
"public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"public void update() throws Exception {\n\t HaUserDao.getInstance().updateUser(this);\n\t}",
"public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }",
"private void updateUser() {\n if (\"\".equals(txtFirstname.getText()) || \"\".equals(txtLastname.getText()) || \"\".equals(txtEmail.getText())) {\n JOptionPane.showMessageDialog(null, \"Select a user to update\");\n } else {\n try {\n //Updates record of selected user\n System.out.println(User);\n String sql = \"UPDATE Accounts SET Firstname = '\" + txtFirstname.getText() + \"', Lastname = '\" + txtLastname.getText() + \"', Email = '\" + txtEmail.getText() + \"' WHERE Username = '\" + User + \"'\";\n\n ps = con.prepareStatement(sql);\n ps.executeUpdate();\n showUserData();\n JOptionPane.showMessageDialog(null, User + \" Your information has been updated\");\n\n } catch (SQLException ex) {\n System.out.println(\"Error: \" + ex);\n Logger.getLogger(myAccount.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void updateUser(long userID) {\n \t}",
"public void updateUser(User oldUser, User newUser) ;",
"@Override\r\n\tpublic void update(User user) {\n\t\tuserDao.update(user);\r\n\t}",
"void update(String userName, String password, String userFullname,\r\n\t\tString userSex, int userTel, String role);",
"public void update(User user) {\n repository.update(user);\n }",
"@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}",
"void updateUser(UserDTO user);",
"int updateUserById( User user);",
"@Override\n\tpublic void update(User user)\n\t{\n\t\tuserDAO.update(user);\n\t}",
"void editUser(String uid, User newUser);",
"public void updateUser(User updatedUser){\n ProfileSharedPreferencesRepository.getInstance(application).updateUser(updatedUser);\n }",
"public void update(User user){\n this.enabled = user.isEnabled();\n this.firstName = user.getFirstName();\n this.lastName = user.getLastName();\n this.telephone = user.getTelephone();\n this.email = user.getEmail();\n this.gender = user.getGender();\n this.roleEnum = user.getRoleEnum();\n if(!this.password.equals(user.getPassword())){\n //If a password has been changed, update timestamp\n lastPasswordResetDate = new Timestamp((new Date()).getTime());\n }else{\n lastPasswordResetDate = user.getLastPasswordResetDate();\n }\n this.password = user.getPassword();\n this.address = user.getAddress();\n this.authorities = user.authorities;\n }",
"@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}",
"@Override\n public boolean updateUser(User user) {\n return controller.updateUser(user);\n }",
"public int updateUser(User user) {\n\t\t\n\t\treturn 1;\n\t}",
"@Override\n\tpublic void updateUserProfile(User user) throws Exception {\n\n\t}",
"@Override\n public void updateUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.update(u);\n logger.info(\"User updated successfully, User Details=\"+u);\n }",
"public void updateUser(IndividualUser u) {\n updateUser(u.getId(), u.getFirstName(), u.getLastName(), u.getFriends());\n }",
"public Account update(Account user);",
"@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}",
"void update(User user) throws SQLException;",
"@Override\r\n\tpublic void update(User user) {\n\t\tint iRet = dao.update(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"修改失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"修改成功\");\r\n\t}",
"public void update(User user) {\n\t\tuserDao.update(user);\n\t}",
"public void updateUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().update(user);\r\n\t\t\r\n\t}",
"private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }",
"private void updateProfile() {\n usuario.setEmail(usuario.getEmail());\n usuario.setNome(etName.getText().toString());\n usuario.setApelido(etUsername.getText().toString());\n usuario.setPais(etCountry.getText().toString());\n usuario.setEstado(etState.getText().toString());\n usuario.setCidade(etCity.getText().toString());\n\n showLoadingProgressDialog();\n\n AsyncEditProfile sinc = new AsyncEditProfile(this);\n sinc.execute(usuario);\n }",
"@Override\n\tpublic ApplicationResponse updateUser(String id, UserRequest request) {\n\t\tUserEntity user = null;\n\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\tif (userEntity.isPresent()) {\n\t\t\tuser = userEntity.get();\n\t\t\tif (!StringUtils.isEmpty(request.getFirstName())) {\n\t\t\t\tuser.setFirstName(request.getFirstName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getSurName())) {\n\t\t\t\tuser.setSurName(request.getSurName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getDob())) {\n\t\t\t\tuser.setDob(request.getDob());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getTitle())) {\n\t\t\t\tuser.setTitle(request.getTitle());\n\t\t\t}\n\t\t\tuser = repository.save(user);\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(user));\n\t\t} else {\n\t\t\tthrow new UserNotFoundException(\"User not found\");\n\t\t}\n\t}",
"void updateUserPassword(User user);",
"private void updateUserDetails() {\n \tUser user=CurrentSession.getCurrentUser();\n \tjLabel1.setText(\"Name:\");\n jLabel2.setText(user.getFirstName()+\" \"+user.getLastName());\n jLabel3.setText(\"Card Number:\");\n jLabel4.setText(user.getCardNumber());\n jLabel5.setText(\"Daily Calorie Intake\");\n FoodPreference fp=new FoodPreference(user.getCardNumber());\n jLabel6.setText(\"\"+fp.getUserCalories());\n jLabel7.setText(\"Monthly Expenses\");\n jLabel8.setText(\"\"+user.getExpenses());\n\n\t\t\n\t}",
"void updateUser(User entity) throws UserDaoException;",
"@Override\n\tpublic int update(TbUser user) {\n\t\treturn new userDaoImpl().update(user);\n\t}",
"@Override\n\tpublic void updateUser(SpaceUserVO spaceUserVO) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic int updateUserInfo(UserManageEntity info) {\n\t\treturn userManageDao.updateUserInfo(info);\n\t}",
"private void updateUserLogin() {\n\t\tSessionManager sessionManager = new SessionManager(\n\t\t\t\tMyApps.getAppContext());\n\n\t\tRequestParams params = new RequestParams();\n\t\tparams.add(\"user_id\", sessionManager.getUserDetail().getUserID());\n\n\t\tLog.d(\"EL\", \"userID: \" + sessionManager.getUserDetail().getUserID());\n\n\t\tKraveRestClient.post(WebServiceConstants.AV_UPDATE_USER_PROFILE_DATA_1,\n\t\t\t\tparams, new JsonHttpResponseHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tJSONObject response) {\n\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLog.d(\"EL\", \"response: \" + response.toString(2));\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}",
"@Override\n public void onUpdate(User user) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n final AlertDialog dialog = builder.create();\n LayoutInflater layoutInflater = LayoutInflater.from(getContext());\n final CustomDialogUpdateBinding binding = DataBindingUtil.inflate(layoutInflater,\n R.layout.custom_dialog_update, null, false);\n dialog.setView(binding.getRoot());\n binding.edtUsername.setText(user.getUsername());\n binding.edtPassword.setText(user.getPassword());\n binding.edtPhone.setText(user.getPhone());\n dialog.show();\n\n // get profile and update\n binding.imgUpdate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String UserName = binding.edtUsername.getText().toString().trim();\n String PassWord = binding.edtPassword.getText().toString().trim();\n String Phone = binding.edtPhone.getText().toString().trim();\n user.setUsername(UserName);\n user.setPassword(PassWord);\n user.setPhone(Phone);\n viewModel.update(user);\n dialog.dismiss();\n }\n });\n }",
"UserEntity updateUser(UserEntity userEntity);",
"@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}",
"public void editUser(User user) {\n\t\t\n\t}",
"@Override\n\tpublic void updateUser(User user) {\n\t\tiUserDao.updateUser(user);\n\t}",
"@Override\r\n\tpublic void updateUser(User user) {\n\t\tuserReposotory.save(user);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void editUser(ERSUser user) {\n\t\tuserDao.updateUser(user);\n\t}",
"public void update(User user) {\n\t\tmapper.update(user);\n\t}",
"public void updateUser(EOSUser user) throws EOSForbiddenException, EOSUnauthorizedException, EOSNotFoundException,\n\t\t\tEOSValidationException;",
"public void update() throws NotFoundException {\n\tUserDA.update(this);\n }",
"public void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }",
"@Override\n\tpublic int update(Users user) {\n\t\treturn userDAO.update(user);\n\t}",
"public void updateUser(int id, User user) {\n\t\tEntityManager entityManager = HandleConnectionToDB.getEntityManager();\n\t\tUser userFind = entityManager.find(User.class, id);\n\n\t\tentityManager.getTransaction().begin();\n\t\tuserFind.setPicture(user.getPicture());\n\t\tuserFind.setPassword(user.getPassword());\n\t\tuserFind.setUsername(user.getUsername());\n\t\tentityManager.getTransaction().commit();\n\t}",
"@Override\n public User update(User user) {\n return dao.update(user);\n }",
"public void updateUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_NAME, user.getName());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n if (user.getImage() != null){\n values.put(COLUMN_USER_IMAGE, getBitmapAsByteArray(user.getImage()));\n }else {\n values.put(COLUMN_USER_IMAGE, \"\");\n }\n values.put(COLUMN_USER_CURRMONTH_ID, user.getCurrMonth());\n // updating row\n db.update(TABLE_USER, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n Log.i(\"updateUser\", user.toString());\n db.close();\n }",
"@Override\r\n\tpublic void apiUpdateUser(User user) {\n\t\tUser a = findByIdUser(user.getId());\r\n\t\tif (StringUtils.hasText(user.getUserName()))\r\n\t\t{\r\n\t\t\ta.setUserName(user.getUserName());\r\n\t\t}\r\n\t\tif (StringUtils.hasText(user.getPassWord()))\r\n\t\t{\r\n\t\t\ta.setPassWord(user.getPassWord());\r\n\t\t}\r\n\t\tuserReposotory.save(a);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void updateUserProfileInfo(String name) throws Exception {\n\n\t}",
"public User UpdateUser(User user){\n\t\t\treturn user;\n\t\t}",
"private void updateName(FirebaseUser user) {\n UserProfileChangeRequest profile = new UserProfileChangeRequest.Builder()\n .setDisplayName(name.getText().toString())\n .build();\n\n user.updateProfile(profile)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(Profile.this, \"Name Updated\", Toast.LENGTH_SHORT).show();\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Profile.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }",
"@Override\n\tpublic int modifyUser(User user) {\n\t\tuser.setUpdateTime(new Date());\n\t\treturn userDao.updateUserById(user);\n\t}",
"public void updateUser(User detachedUser) throws Exception;",
"void updateTask(UserDto user);",
"@Override\n\tpublic int updateUser(User user) {\n\t\treturn userDao.updateUser(user);\n\t}",
"public void updateUser(Bundle userData) {\n Bitmap profilePic = userData.getParcelable(\"userProfilePic\"); //reads in bitmap image\n setProfileImageData(profilePic); //converts bitmap image to byte[]\n firstName = userData.getString(\"userFirstName\");\n lastName = userData.getString(\"userLastName\");\n fullName = firstName + \" \" + lastName;\n sex = userData.getString(\"userSex\");\n activityLevel = userData.getString(\"userActivityLevel\");\n city = userData.getString(\"userCity\");\n country = userData.getString(\"userCountry\");\n\n userID = userData.getInt(\"userID\");\n age = userData.getInt(\"userAge\");\n heightInches = userData.getInt(\"userHeight\");\n weightLBS = userData.getInt(\"userWeight\");\n\n BMR = userData.getDouble(\"userBMR\");\n BMI = userData.getDouble(\"userBMI\");\n weightChangeGoal = userData.getDouble(\"userGoal\");\n recommendedDailyCalorieIntake = userData.getDouble(\"userCalories\");\n }",
"@Override\n public void updateUser(User user){\n try {\n runner.update(con.getThreadConnection(),\"update user set username=?,address=?,sex=?,birthday=? where id=?\"\n ,user.getUsername(),user.getAddress(),user.getSex(),user.getBirthday(),user.getId());\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic boolean updateInfo(User user) {\n\t\tString sql = \"update user set user_name = ?,user_tel = ?,user_email = ?,user_date = NOW() where user_id = ?\";\r\n\t\tlist.clear();\r\n\t\tlist.add(user.getUser_name());\r\n\t\tlist.add(user.getUser_tel());\r\n\t\tlist.add(user.getUser_email());\r\n\t\tlist.add(user.getUser_id());\r\n\t\treturn BaseDaoImpl.updateInfo(sql, list);\r\n\t}",
"public void update(User user) {\n\t\tString sql=\"update SCOTT.USERS set USERNAME='\"+user.getUsername()+\"',PASSWORD='\"+user.getPassword()+\"',NICKNAME='\"+user.getNickname()+\"',EMAIL='\"+user.getEmail()+\"',STATE='\"+user.getState()+\"',CODE='\"+user.getCode()+\"' where ID='\"+user.getUid()+\"'\";\n\t\t\n\t\tJdbcUtils jdbcutils=new JdbcUtils();\n\t\tjdbcutils.executeUpdate(sql);\n\t\t\n\t}",
"void updateUser(Integer id, Long version, UserBuilder userBuilder);",
"public void updateUser(User user) {\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_USERNAME, user.getUsername());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n values.put(COLUMN_USER_PASSWORD, user.getPassword());\n values.put(COLUMN_USER_NUME, user.getNume());\n values.put(COLUMN_USER_PRENUME, user.getPrenume());\n values.put(COLUMN_USER_AGE, user.getAge());\n db.update(TABLE_USER, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"@Override\n\tpublic void update(Connection conn, User user,Long id) throws SQLException {\n\t\tString updateSql=\"update tbl_user set name=?,password=?,email=?where id=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(updateSql);\n\t\tps.setString(1, user.getName());\n\t\tps.setString(2, user.getPassword());\n\t\tps.setString(3, user.getEmail());\n\t\tps.setLong(4, id);\n\t\tps.execute();\n\t}"
] | [
"0.8363444",
"0.8280603",
"0.81133723",
"0.81133133",
"0.7986808",
"0.79436815",
"0.79026294",
"0.7900156",
"0.7896484",
"0.78898686",
"0.78317887",
"0.7824176",
"0.7796876",
"0.77901745",
"0.77165675",
"0.768214",
"0.7668369",
"0.7656946",
"0.76510334",
"0.7646377",
"0.76103014",
"0.7541754",
"0.7526427",
"0.7520857",
"0.75107944",
"0.7497454",
"0.74944186",
"0.7477286",
"0.7439278",
"0.741679",
"0.740329",
"0.7388646",
"0.7383344",
"0.73814434",
"0.73808974",
"0.7379818",
"0.7368923",
"0.73626363",
"0.7331619",
"0.7326553",
"0.7306558",
"0.73004305",
"0.7289753",
"0.72880155",
"0.72862566",
"0.724853",
"0.7236707",
"0.72147787",
"0.72004515",
"0.7193233",
"0.7177616",
"0.7171413",
"0.7170797",
"0.71672285",
"0.715948",
"0.71525824",
"0.71453404",
"0.7144572",
"0.7133776",
"0.71233743",
"0.71046484",
"0.71032125",
"0.7099043",
"0.7085998",
"0.70851564",
"0.70834976",
"0.70680577",
"0.70651066",
"0.70486456",
"0.7043434",
"0.7034164",
"0.7032082",
"0.7023921",
"0.7014489",
"0.7010408",
"0.6999443",
"0.6991666",
"0.6984977",
"0.6980403",
"0.6971659",
"0.69600403",
"0.6959853",
"0.6939671",
"0.6936596",
"0.692807",
"0.6927713",
"0.6899301",
"0.6890092",
"0.68848854",
"0.6883295",
"0.68830436",
"0.68744045",
"0.6864127",
"0.6862614",
"0.68556565",
"0.6851751",
"0.6847552",
"0.6837757",
"0.68367475"
] | 0.8213185 | 2 |
Find a user by user_id. | User findUserById(int id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic User findUser(int id) {\n\n\t\tUser user = em.find(User.class, id);\n\n\t\treturn user;\n\t}",
"@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}",
"@Override\n\tpublic User findUserByUserId(long id) {\n\t\treturn userDao.getUserByUserId(id);\n\t}",
"@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}",
"@Override\n\tpublic User findUserById(int id) {\n\t\treturn userDao.findUserById(id);\n\t}",
"@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}",
"@Override\r\n\tpublic User findById(int id) {\n\t\treturn userDAO.findById(id);\r\n\t}",
"public User findUser(int id)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (id == (users.get(i).getId()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"@RequestMapping(value = \"/find/{id}\", method = RequestMethod.GET)\n @ResponseBody\n public ResponseEntity findUser(@PathVariable long id) {\n User user = userService.findById(id);\n if (user == null) {\n return new ResponseEntity(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity(user, HttpStatus.OK);\n }",
"public static User findUser(int id) {\r\n return null;\r\n }",
"public User findUser(int id) {\n for (int i = 0; i < allUsers.size(); i++) {\n if (allUsers.get(i).getId() == id) {\n return allUsers.get(i);\n }\n }\n return null;\n }",
"@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n return em.find(User.class, id);\r\n }\r\n finally\r\n {\r\n em.close();\r\n }\r\n }",
"public User findUserById(Long id) {\n \tOptional<User> u = userRepository.findById(id);\n \t\n \tif(u.isPresent()) {\n return u.get();\n \t} else {\n \t return null;\n \t}\n }",
"User findUser(String userId);",
"User findUserById(Long id) throws Exception;",
"User find(long id);",
"public User findUser(int id) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where id = ?\");\n\t\t\tps.setInt(1, id);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(id, rs.getString(2), rs.getString(3), rs.getString(5),\n\t\t\t\t\t\trs.getDate(6));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}",
"public User findById(int id) {\n\t\treturn userRepository.findOne(id);\n\t}",
"public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}",
"public User findUserById (long id){\n if(userRepository.existsById(id)){\n return this.userRepository.findById(id);\n }else{\n throw new UnknownUserException(\"This user doesn't exist in our database\");\n }\n }",
"@Override\n\tpublic User findByUserid(Serializable id) {\n\t\treturn this.userDao.findById(id);\n\t}",
"public User findById(Long id){\n return userRepository.findOne(id);\n }",
"public User findById(Long id) {\n return genericRepository.find(User.class, id);\n }",
"public User findOneUser(int id) {\n\t\treturn userMapper.findOneUser(id);\r\n\t}",
"@Override\r\n\tpublic TbUser findUserById(Long id) {\n\t\tTbUser tbUser = tbUserMapper.selectByPrimaryKey(id);\r\n\t\treturn tbUser;\r\n\t}",
"public User findById(String id) {\n\t\treturn userDao.findById(id);\n\t}",
"public User getUser(long id){\n User user = userRepository.findById(id);\n if (user != null){\n return user;\n } else throw new UserNotFoundException(\"User not found for user_id=\" + id);\n }",
"Optional<User> findUser(int id) throws ServiceException;",
"@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }",
"public User findById ( int id) {\n\t\t return users.stream().filter( user -> user.getId().equals(id)).findAny().orElse(null);\n\t}",
"public User findUserById(int id);",
"public static User findById(final String id) {\n return find.byId(id);\n\n }",
"@Override\n\tpublic User findById(int userid) {\n\t\tSystem.out.println(\"Inside findOne of UserService\");\n\t\tOptional<User> user = userdao.findById(userid);\n//\t\treturn dao.findById(id);\n\t\treturn user.get();\n\t}",
"@Override\n public User findById(long id) {\n return dao.findById(id);\n }",
"@Override\n\tpublic User findById(String id) {\n\t\tUser u= em.find(User.class, id);\n\t\tSystem.out.println(u);\n\t\treturn u;\n\t}",
"private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }",
"public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }",
"@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }",
"User findById(Long id);",
"@GetMapping(\"/findbyid\")\n\tpublic Optional<User> findUserById (@RequestParam int userId) {\n\t\treturn userRepo.findById(userId);\n\t}",
"public User findById(Long id);",
"public User findUserById(Long id) throws DBException {\n\t\tUser user = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = DBManager.getInstance().getConnection();\n\t\t\tpstmt = con.prepareStatement(SQL_FIND_USER_BY_ID);\n\t\t\tpstmt.setLong(1, id);\n\t\t\trs = pstmt.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tuser = extractUser(rs);\n\t\t\t}\n\t\t\tcon.commit();\n\t\t} catch (SQLException ex) {\n\t\t\tDBManager.getInstance().rollback(con);\n\t\t\tLOG.error(Messages.ERR_CANNOT_FIND_USER_BY_ID, ex);\n\t\t\tthrow new DBException(Messages.ERR_CANNOT_FIND_USER_BY_ID, ex);\n\t\t} finally {\n\t\t\tDBManager.getInstance().close(con, pstmt, rs);\n\t\t}\n\t\treturn user;\n\n\t}",
"User findOne(Long id);",
"public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}",
"@RequestMapping(method=RequestMethod.GET, value=\"{id}\")\n\tpublic User getUser(@PathVariable Long id) {\n\t\treturn RestPreconditions.checkFound(repo.findByUserId(id));\n\t}",
"public User findUser(String userid) {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n\n User user = realm.where(User.class)\n .equalTo(\"UserId\", userid)\n .findFirst();\n\n if (mRealm == null)\n realm.close();\n\n return user;\n }",
"User getUserById(Long id);",
"User getUserById(Long id);",
"@Override\n\tpublic User getUser(int id) {\n\t\treturn userRepository.findById(id);\n\t}",
"@Override\n public Optional<User> find(long userId) throws ServiceException {\n Optional<User> user;\n try {\n manager.beginTransaction(userDao);\n user = userDao.findEntity(userId);\n manager.endTransaction();\n } catch (DaoException exception) {\n try {\n manager.rollback();\n } catch (DaoException rollbackException) {\n logger.error(rollbackException);\n }\n throw new ServiceException(exception);\n }\n return user;\n }",
"public User getSingleUser(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from User as user where user.userId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (User) results.get(0);\n }\n\n }",
"User findById(long id);",
"@Override\r\n public User userfindById(Integer u_id) {\n return userMapper.userfindById(u_id);\r\n }",
"public User findById(int id) {\n\t\treturn this.getHibernateTemplate().load(User.class, id);// session.load()\r\n\t}",
"public UserEntity findByPrimaryKey(String userId) throws FinderException;",
"User getUserById(int id);",
"@Override\n public TechGalleryUser getUser(final Long id) throws NotFoundException {\n TechGalleryUser userEntity = userDao.findById(id);\n // if user is null, return a not found exception\n if (userEntity == null) {\n throw new NotFoundException(i18n.t(\"No user was found.\"));\n } else {\n return userEntity;\n }\n }",
"@Override\r\n\tpublic SpUser findById(String id) {\n\t\treturn null;\r\n\t}",
"public User getUserById(int id) {\n\t\treturn em.find(User.class, id);\n\t}",
"public User getUserById(String id) {\n // return userRepo.findById(id);\n\n return null;\n }",
"public User findUserByName(String id) {\n return em.find(User.class, id);\n }",
"public Users findByUserid(String id) {\n\tthis.createConnection();\n\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(\"select * from user where id=?;\");\n stmnt.setString(1, id);\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQLException: \");\n return new Users();\n }\n }",
"@Override\r\n\tpublic User findById(int id) {\n\t\treturn null;\r\n\t}",
"public User getUserFromId(final long id) {\n LOG.info(\"Getting user with id {}\", id);\n return userRepo.get(id);\n }",
"public User getUser(Integer id)\n\t{\n\t\t// Create an user -1 for when it isn't in the list\n\t\tUser searchUser = new User();\n\t\t// Index: User's position in the list\n\t\tint index = this.getUserById(id.intValue());\n\t\t// If the user is in the list execute the action\n\t\tif(index != -1)\n\t\t{\n\t\t\tsearchUser = this.usersList.get(index);\n\t\t}\n\t\t\n\t\treturn searchUser;\n\t}",
"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 }",
"public User getUser(Long id) {\n\t\treturn userRepo.findByUserId(id);\n\t}",
"User getUser(Long id);",
"public User findById(int userId);",
"@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public User findById(long id) {\n return store.findById(id);\n }",
"@Override\n\tpublic User findUserById(User user) {\n\t\tUser user1=userMapper.findUserById(user);\n\t\treturn user1;\n\t}",
"@Override\n public User findById(Integer id) {\n try {\n return runner.query(con.getThreadConnection(),\"select *from user where id=?\",new BeanHandler<User>(User.class),id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }",
"@Transactional\n\tpublic User findUserById(long id) {\n\t\treturn userDao.findUserById(id);\n\t}",
"public UserDTO getUserById(long id) {\n return Optional.of(ObjectMapperUtility.map(dao.findById(id), UserDTO.class))\n .orElseThrow(() -> new UserNotFoundException(\"No users with matching id \" + id));\n // return Optional.of(dao.findById(id)).get().orElseThrow(()-> new UserNotFoundException(\"No users with\n // match\"));\n }",
"public Users findOne(String userid) {\n\t\tQuery query = new Query();\r\n\t\tquery.addCriteria(Criteria.where(\"id\").is(userid));\r\n\t\treturn mongoTemplate.findOne(query,Users.class);\r\n\t}",
"public User findById(int id) {\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORES.USERS WHERE ID=\" +id;\n\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\treturn new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\"));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}",
"public User getById(String id){\n List<User> users = userRepo.findAll();\n for (User user : users){\n if(user.getGoogleId().equals(id)){\n return user;\n }\n }\n throw new UserNotFoundException(\"\");\n }",
"User findOneById(long id);",
"User getOne(long id) throws NotFoundException;",
"public PrototypeUser getUserById(Long id) {\n\t\treturn userDao.findById(id);\r\n\t}",
"@Override\n\tpublic Integer findUser(User user) {\n\t\treturn userMapper.findUser(user);\n\t}",
"@Override\n\tpublic User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\n\t}",
"Optional<User> findUserById(Long id);",
"@Override\n\tpublic User findById(String id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic User findNeedById(int id) {\n\t\treturn userdao.findNeedById(id);\n\t}",
"public String findUser(String id) throws UserNotFoundException{\n\t\tString userFound = \"\";\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(id)) {\n\t\t\t\tuserFound = \"\\n-------USER-------\\n\"+users.get(i).toString();\n\t\t\t}\n\t\t}\n\t\tif (userFound.equals(\"\")) {\n\t\t\tthrow new UserNotFoundException(id);\n\t\t}\n\t\telse {\n\t\t\treturn userFound;\n\t\t}\n\t}",
"public Usuario findUserById(Integer id){\n\t\treturn usuarios.findById(id);\n\t}",
"public User getUserById(Integer id) {\n\t\treturn userMapper.selectByPrimaryKey(id);\n\t}",
"@Override\r\n\tpublic SysUser findUserById(String userid) {\n\t\treturn sysUserMapper.findUserById(userid);\r\n\t}",
"public User getUserById(Long userId);",
"public Optional<User> retrieveUser(Long id) {\n\t\treturn userRepository.findById(id);\n\t}",
"@Override\n\tpublic User findOne(long id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic SmbmsUser findById(int id) {\n\t\treturn sud.findById(id);\n\t}",
"@Override\n public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId);\n }",
"public User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\r\n\t}",
"public Optional<User> findById(Integer id);",
"private User getUser(Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = mgr.find(User.class, id);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}",
"@GetMapping(\"/users/{id}\")\n\tpublic User retrieveUser(@PathVariable int id) {\n\t\tUser user = userService.findById(id).get();\n\t\tif (user == null) {\n\t\t\tthrow new UserNotFoundException(\"id - \" + id);\n\t\t}\n\t\treturn user;\n\t}"
] | [
"0.80609196",
"0.7956252",
"0.79257476",
"0.78917974",
"0.7886413",
"0.7814875",
"0.7810865",
"0.77894324",
"0.7788833",
"0.7788544",
"0.7780274",
"0.77407956",
"0.7732287",
"0.7722151",
"0.7719006",
"0.77162063",
"0.76918477",
"0.76834816",
"0.7683177",
"0.76616615",
"0.7658441",
"0.76074827",
"0.76008064",
"0.75722",
"0.75710124",
"0.7564099",
"0.7545998",
"0.7537204",
"0.75296074",
"0.75263953",
"0.75118375",
"0.7508557",
"0.74802256",
"0.74761474",
"0.74715495",
"0.7452659",
"0.74389017",
"0.74258614",
"0.7411654",
"0.74063563",
"0.73892844",
"0.7383765",
"0.737819",
"0.7376775",
"0.7352355",
"0.7350644",
"0.7348507",
"0.7348507",
"0.73175013",
"0.73086596",
"0.73033184",
"0.72882265",
"0.7286392",
"0.7275806",
"0.7273108",
"0.7269732",
"0.726207",
"0.72619176",
"0.7256396",
"0.72536904",
"0.7250909",
"0.7249233",
"0.7249154",
"0.72448224",
"0.7236685",
"0.7232776",
"0.7228204",
"0.7227431",
"0.722606",
"0.72251076",
"0.7221544",
"0.72169846",
"0.7212136",
"0.7203078",
"0.7196437",
"0.7192879",
"0.7173323",
"0.7169563",
"0.7160756",
"0.7135988",
"0.71335775",
"0.7131273",
"0.7121594",
"0.71213657",
"0.7118113",
"0.7106394",
"0.7092786",
"0.708328",
"0.70766413",
"0.7072807",
"0.7063582",
"0.7063203",
"0.7062395",
"0.70591885",
"0.7058273",
"0.7050051",
"0.7049212",
"0.7045319",
"0.70444244",
"0.7027278"
] | 0.75419486 | 27 |
Find a user by user_name which is unique in database table. | User findUserByName(String name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean findUserBYName(String name);",
"public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}",
"public User findUser(String name) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}",
"@Override\n\tpublic User findUserByName(String name) {\n\t\treturn dao.findUserByName(name);\n\t}",
"public static User findUserByName(String username) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByName = \"SELECT * FROM public.member \"\n + \"WHERE name = '\" + username + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByName);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n\n return user;\n }",
"@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}",
"User getUserByUsername(String name) throws InvalidUserException;",
"public User findUser(String name) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where name = ?\");\n\t\t\tps.setString(1, name);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4),\n\t\t\t\t\t\trs.getDate(5));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\treturn null;\n\t}",
"public User getSingleUserRealName(String name) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from User as user where CONCAT_WS(' ',user.firstName, user.lastName) = ? \",\n new Object[]{name},\n new Type[]{Hibernate.STRING});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (User) results.get(0);\n }\n\n }",
"@Override\n public User getUserByName(final String name){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where username = :name\");\n query.setParameter(\"name\", name);\n return (User) query.uniqueResult();\n }",
"private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }",
"User findOneByName(String name);",
"User findByUserName(String userName);",
"User findByUserName(String userName);",
"private int checkUserExists(String name)\r\n\t{\r\n\t\tfor (int i = 0; i < numOfUsers; i++)\r\n\t\t{\r\n\t\t\tif (name.equals(userAccounts[0][i]))\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public boolean isExistingUsername(String username) {\n boolean isExistingUser = false; \n \n List<User> retrievedUsersList = new LinkedList<User>(); \n retrievedUsersList = repo.returnAllUsers(); \n \n User aUser = null; \n for(var user : retrievedUsersList) {\n aUser = (User)user; \n \n if(aUser.username.equals(username)) {\n isExistingUser = true; \n }\n }\n \n return isExistingUser; \n }",
"public User findUserName(String name)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (name.equals(users.get(i).getUsername()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"User findByUsername(String userName);",
"public User whoIsTheUser(String name){\n boolean space5 = false;\n User userPrivate = null;\n for(int i = 0; i<MAX_USER && !space5; i++){\n userPrivate = user[i];\n if(userPrivate.getUserName().equals(name)){\n space5 = true;\n }\n }\n return userPrivate;\n }",
"public User findByUserName(String userName) {\n logger.log(Level.INFO, \"suppp it works\");\n List<User> users = entityManager.createNamedQuery(User.FIND_BY_USERNAME)\n .setParameter(\"userName\", userName)\n .getResultList();\n if (users.isEmpty()) {\n return null;\n }\n return users.get(0);\n }",
"boolean isUniqueUsername(String username) throws SQLException;",
"UserModel findByName(String name);",
"public AgtUser findUserByName(String username);",
"private User findByName(String username) {\r\n\t\tCriteriaBuilder cb = entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery cq = cb.createQuery(User.class);\r\n\t\tRoot<User> user = cq.from(User.class);\r\n\t\tcq.where(user.get(User_.username).in(username));\r\n\r\n\t\tTypedQuery<User> tq = entityManager.createQuery(cq);\r\n\t\t\r\n\t\treturn tq.getSingleResult();\r\n\t}",
"public User getUserByName(String name) {\n return getDbContext().select().from(USER).where(USER.USER_NAME.eq(name)).fetchOneInto(User.class);\n }",
"public boolean userDuplicateCheck(String username){\n ArrayList<User> users = new ArrayList<>(db.getAllUsers());\n\n for(User user : users){\n if(user.getUsername().equals(username)){\n return false;\n }\n }\n return true;\n }",
"User findByUsername(String username) throws UserDaoException;",
"public User getUserByName(String name) {\n \t\tfor (User user : users) {\n \t\t\tif (user.getName().equals(name))\n \t\t\t\treturn user;\n \t\t}\n \t\treturn null;\n \t}",
"public boolean userExists(String user){\n boolean answer = false;\n //look into the database\n try{\n statement = connection.createStatement();\n //execute SQL query and get the data from the database\n ResultSet myResult = statement.executeQuery(\"SELECT name FROM members WHERE name = '\" + user +\"'\");\n while (myResult.next()) {\n if (myResult.getString(\"name\")!= null)\n //name exists so answer = true\n answer = true;\n }\n\n }catch (SQLException ex){ex.printStackTrace();}\n return answer;\n }",
"@Override\n\tpublic User findUserByUserName(String userName) throws Exception {\n\t\treturn userDao.findUserByUserName(userName);\n\t}",
"public static String userNameValid(String name){\n return \"select u_name from users having u_name = '\" + name + \"'\";\n }",
"public SecurityUser findByName(String username);",
"public User findUser(String uname) {\n\t\treturn userRepository.searchByUname(uname);\n\t}",
"public User getByUserName(String username) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tString hql = \"from User WHERE emailid = :userame\";\n\t\tUser user = (User)session.createQuery(hql).setParameter(\"userame\", username).getSingleResult();\n\t\treturn user;\n\t}",
"public User findByUserName(String username) throws Exception;",
"@Override\n\tpublic Users findUserByUniqueId(String uniqueId) {\n\t\treturn iUserDao.findUserByUniqueId(uniqueId);\n\t}",
"@Test\n\tpublic void FindUserByUsername() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\t\t\n\t\tString username = user.getUsername();\n\t\tUser user4 = userRepository.findByUsername(username);\n\t\n\t\tassertThat(user4).isNotNull();\n\t\tassertThat(user4).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t\t\n\t}",
"@Override\n\tpublic User findByName(String username) {\n\t\treturn userDao.findByName(username);\n\t}",
"public static Optional<User> findUserByUniqueName(String accountName) {\n\t\tString searchFilter = \"(uid=\" + accountName + \")\";\n\t\t// String searchFilter = \"(& (uid=\" + accountName +\n\t\t// \")(objectClass=user))\";\n\t\tString ldapSearchBase = \"\";\n\t\t// String[] returningAttrs = {\n\t\t// \"givenname\", \"memberOf\", \"samaccountname\",\n\t\t// \"userPrincipalName\", \"objectGUID\"\n\t\t// };\n\n\t\tSearchControls searchControls = new SearchControls();\n\t\tsearchControls.setSearchScope(SearchControls.SUBTREE_SCOPE);\n\t\t// searchControls.setReturningAttributes(returningAttrs);\n\n\t\ttry {\n\t\t\tLdapContext ctx = new InitialLdapContext(setDefaultCtxEnv(), null);\n\t\t\tNamingEnumeration<SearchResult> results = ctx.search(ldapSearchBase, searchFilter, searchControls);\n\t\t\tSearchResult searchResult = null;\n\t\t\tif (results.hasMoreElements()) {\n\t\t\t\tsearchResult = (SearchResult) results.nextElement();\n\n\t\t\t\t// make sure there is not another item available, there should\n\t\t\t\t// be only 1 match\n\t\t\t\tif (results.hasMoreElements()) {\n\t\t\t\t\tSystem.err.println(\"Matched multiple users for the accountName: \" + accountName);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn createUser(searchResult);\n\t\t} catch (NamingException e) {\n\t\t\treturn Optional.absent();\n\t\t}\n\t}",
"public int search_userid(String user_name);",
"@Override\n public User getUserByUsername(String name) {\n \tSession session = this.sessionFactory.getCurrentSession(); \n \tQuery query = session.createQuery(\"from User where username=:username\");\n\t\tquery.setParameter(\"username\", name);\n\t\tUser u = (User) query.uniqueResult();\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }",
"User getByName(String name);",
"public Usuarios findByName(String name) throws javax.persistence.NoResultException {\r\n return (Usuarios)EM.createNamedQuery(Usuarios.FIND_USER_BY_EMAIL)\r\n .setParameter(\"p1\", name)\r\n .getSingleResult();\r\n }",
"User findByExternalId(String externalId) throws UsernameNotFoundException;",
"public boolean checkUserName(TextField userName) {\n String userNameSQL = \"SELECT * FROM user WHERE user_name = ? \";\n ResultSet rsUser;\n boolean username_exists = false;\n\n\n try {\n\n PreparedStatement userPST = connection.prepareStatement(userNameSQL);\n userPST.setString(1, userName.getText());\n rsUser = userPST.executeQuery();\n\n if (rsUser.next()) {\n username_exists = true;\n outputText.setStyle(\"-fx-text-fill: #d33232\");\n outputText.setText(\"Username Already Exists\");\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n return username_exists;\n\n }",
"public boolean userExists(String userName) {\r\n String qr = \"from UserCredsTbl where userName like '%\" + userName + \"%'\"\r\n + \"or userName like '%\" + userName + \"%'\";\r\n List userList = crud.getObject(qr);\r\n\r\n if (userList.size() > 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"UUID getUserId(String userName) throws UserNotFoundException;",
"@Override\r\n\tpublic User findUserByName(String userName) {\n\t\treturn null;\r\n\t}",
"public boolean checkUser(String user) {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(new StringBuilder().append(\"SELECT id FROM \" + TABLE_USERS + \" WHERE username = '\").append(user).append(\"'\").toString(), null);\n\n int count = cursor.getCount();\n cursor.moveToFirst();\n\n cursor.close();\n\n if (count > 0) {\n return true;\n } else {\n return false;\n }\n }",
"User findUserByUsername(String username);",
"public Users findUser (String userName) {\n String queryStr = \"select * from users where username = '\" + userName + \"'\";\r\n try {\r\n Users result = (Users) em.createNativeQuery(queryStr, Users.class).getSingleResult();\r\n return result;\r\n } catch (Exception e) {\r\n //log.error(e);\r\n return null;\r\n }\r\n }",
"private boolean isNameUnique(String name) {\n boolean isUnique = true;\n for (User user : this.users) {\n if (user.getName().equals(name)) {\n isUnique = false;\n break;\n }\n }\n return isUnique;\n }",
"User findUser(String userId);",
"public User retrieveUser(String name)\r\n\t{\r\n\t\t\r\n\t\treturn users.get(name);\r\n\t}",
"public boolean isUnique(String userName) {\n return userRepository.findByLogin(userName) == null ? true : false;\n }",
"public boolean isUsernameExist(String un) {\n\n boolean exist = false;\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collection = db.getCollection(\"registeredUser\");\n\n // ----- get document of given username from registeredData -----\n System.out.println(\"\\nVerifying if username already exists or not\\n--------------------\\n\");\n String colUsername = \"username\"; // set key and value to look for in document\n FindIterable<Document> docOne = collection.find(Filters.eq(colUsername, un)); // find document by filters\n MongoCursor<Document> cursor1 = docOne.iterator(); // set up cursor to iterate rows of documents\n try {\n // cursor1 will only have 1 data if we found a match\n if (cursor1.hasNext()) {\n System.out.println(\"Username already exists\");\n exist = true;\n }\n else {\n System.out.println(\"Username is available to register\");\n }\n } finally {\n cursor1.close();\n }\n\n return exist;\n }",
"public boolean existsUser(String username);",
"public boolean existUser(String id);",
"public tbl_user CheckUserHave(String user) {\n\t\treturn userRepository.findByUsername(user);\n\t}",
"public boolean isThereSuchAUser(String username, String email) ;",
"User loadUserByUserName(String userName);",
"public boolean checkUserExists(String username) {\n boolean exists = false;\n try {\n conn = dao.getConnection();\n ps = conn.prepareStatement(\"SELECT * FROM USERS WHERE USERNAME=?\");\n ps.setString(1, username);\n\n ResultSet rs = ps.executeQuery();\n\n // rs.next() is false if the set is empty\n exists = rs.next();\n\n // close stuff\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return exists;\n }",
"public static DSUser existedUser(DSUsers dsUsers, DSUser user) {\n\t\tList<DSUser> existedUsers = dsUsers.getUsers();\n\t\tString name = user.getName();\n\t\tfor (DSUser dsUser : existedUsers) {\n\t\t\tif (dsUser.getName().equals(name)) {\n\t\t\t\treturn dsUser;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public User findUser(String username) {\n if (userList.containsKey(username)) {\n return userList.get(username);\n } else {\n throw new NoSuchElementException(\"User Not Found.\");\n }\n }",
"public String getUser(String userName){\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor=database.query(\"admin\", null, \" username=?\", new String[]{userName}, null, null, null);\n if(cursor.getCount()<1) // UserName Not Exist\n {\n cursor.close();\n return \"NOT EXIST\";\n }\n cursor.moveToFirst();\n String username= cursor.getString(cursor.getColumnIndex(\"username\"));\n cursor.close();\n return username;\n}",
"public User getUserFromUname(String u_Name){\n return userDao.getUserFromUsername(u_Name).get(0); \n }",
"@Override\n public User getByName(String name) {\n return ChainWrappers.lambdaQueryChain(userMapper)\n .eq(User::getName, name).one();\n }",
"public User findUser(String username){\n\t\t\n\t\t\n boolean found = false;\t\t\t\t\t\t\t\t\t\t/* ====> Boolean controls while loop */\n User correct = new User();\t\t\t\t\t\t\t\t\t/* ====> Create instance of the correct user*/\n\t\tUser marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n\t\tmarker = this.head;\t\t\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n\t\t\n\t\t// Loop keeps on going until the correct User is not found or until the next User is null\n while(!found){ \n \tif (marker.getUsername().equals(username)){\t\t\t\t/* ====> If the marker found the right user based on its username */ \n \t\tfound = true;\t\t\t\t\t\t\t\t\t\t/* ====> Set found true, end loop*/\n correct = marker;\t\t\t\t\t\t\t\t\t/* ====> Make correct point to the same User as marker */\n \t}\n \n else if (marker.getNext() == null){\t\t\t\t/* ====> If the marker reaches end of the list */ \n \tfound = true;\t\t\t\t\t\t\t\t/* ====> Set found true, end loop */\n \tcorrect = head;\t\t\t\t\t\t\t\t/* ====> Make correct point to the head */\n }\n \n else {\t\t\t\t\t\t\n \tmarker = marker.getNext();\t\t\t\t\t/* ====> Move marker to the next element of the list */\n }\n }\n \n return correct;\t\t\t\t\t\t\t\t\t\t/* ====> Return correct User */\n \n\t}",
"public User findUserByNickname(final String nickname);",
"@Override\n\tpublic User getByName(String name) {\n\t\treturn userDao.getByName(name);\n\t}",
"@Override\n\tpublic User getuserId(String name) {\n\t\treturn userdao.getuserId(name);\n\t}",
"public static User getUser(String username) {\r\n\t\tfor(User user : userList) {\r\n\t\t\tif(user.getName().equals(username)) {\r\n\t\t\t\treturn user;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new IllegalArgumentException(\"User does not exist\");\r\n\t}",
"public String searchName(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, name from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, name;\n name = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n name = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return name;\n }",
"private boolean userExists(Utente checkUser) {\n\t\tDB db = getDB();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente && (((Utente)user.getValue()).getUsername().equals(checkUser.getUsername())))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"public SystemUser findByUserName(String userName);",
"public User search_userinfo(String user_name);",
"public User getUserByUserName(String userName);",
"private void testUserName(){\r\n\t\t//get user with the 'test' userName\r\n\t\tString command = \"SELECT userName FROM users \"\r\n\t\t\t\t+ \"WHERE userName = \\\"\" + commandList.get(1) + \"\\\";\";\r\n\t\tSystem.out.println(command);//print command\r\n\t\ttry {//send command\r\n\t\t\trs = stmt.executeQuery(command);\r\n\t\t\t\r\n\t\t\tif(rs.next()){//if it returns user, userName exists\r\n\t\t\t\tout.println(\"exists\");\r\n\t\t\t} else {//no results returned, empty\r\n\t\t\t\tout.println(\"free\");\r\n\t\t\t}\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\tout.println(e.getMessage());//send back error message\r\n\t\t}\r\n\t\t\r\n\r\n\t}",
"@Override\r\n\tpublic User findByUsername(String username) throws SQLException {\n\t\tUserDao userDao = (UserDao) BeanFactory.getBean(\"userDao\");\r\n\t\treturn userDao.findByUsername(username);\r\n\t}",
"private boolean isExistUserName(String userName, String userId) {\n User user = userService.findByUserNameAndStatus(userName, Constant.Status.ACTIVE.getValue());\n if (user != null && !user.getUserId().equals(userId)) {\n return true;\n }\n return false;\n }",
"@Override\n public User findUserByName(String name) {\n User user = new User();\n user.setName(\"admin\");\n user.setPassword(\"00b3187384f2708025074f28764a4a30\");\n return user;\n }",
"User findByUsername(String username);",
"User findByUsername(String username);",
"User findByUsername(String username);",
"User findByUsername(String username);",
"User findByUsername(String username);",
"User findByUsername(String username);",
"@Override\n public User getUserByName(String userName) {\n return userRepository.findUserByUserName(userName);\n }",
"public boolean checkUsername(String name) {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(\"SELECT count(*) FROM users where username = '\" + name + \"'\");\r\n\t\t\treturn rs.first();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic User selectUserByName(String userName) {\n\t\treturn userDao.selectUserByName(userName);\n\t}",
"public Boolean user_exists (UserWS user) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail = :login\"); \r\n\t\t\t\t i.setString(\"login\", user.getLogin());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}",
"@Query(value = \"SELECT * FROM Users where user_name = :user_name\", nativeQuery = true) // jpql\n\tUser findUserByUserName(@Param(\"user_name\") String user_name);",
"public User getUser(String userName) {\n for (User u : users) {\n if (u.getName().equals(userName)) {\n return u;\n }\n\n }\n return null;\n }",
"User getUser(String userName) throws UserNotFoundException;",
"@Override\r\n\tpublic user selectByName(String name) {\n\t\treturn userM.selectByName(name);\r\n\t\r\n\t}",
"@Override\r\n\tpublic Users findByName(String username) {\n\t\t\r\n\t\tCriteria criteria=sessionFactory.getCurrentSession().createCriteria(Users.class);\r\n\t\t\r\n\t\tcriteria.add(Restrictions.eqOrIsNull(\"username\", username));\r\n\t\t\r\n\t\treturn (Users) criteria.uniqueResult();\r\n\t}",
"public Person findPersonByUsername(String name) {\n Person person = personRepository.findByUsername(name);\n Optional<Person> byId = personRepository.findById(2L);\n return person;\n }",
"private boolean checkUserame(String name) throws SQLException {\n\t\tcheckUserameStatement.clearParameters();\n\t\tcheckUserameStatement.setString(1, name);\n\t\tResultSet result = checkUserameStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkUserame: \"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}",
"@Override\n\tpublic User findUserByUsername(String username) throws SQLException {\n User user = null;\n String sql = \"SELECT * FROM user WHERE username = ?\";\n \n connect();\n \n PreparedStatement statement = jdbcConnection.prepareStatement(sql);\n statement.setString(1, username);\n \n \n ResultSet resultSet = statement.executeQuery();\n \n while (resultSet.next()) {\n String usrname = resultSet.getString(\"username\");\n String pwd = resultSet.getString(\"password\");\n \n user = new User(usrname, pwd);\n }\n \n resultSet.close();\n statement.close();\n \n return user;\n\t}"
] | [
"0.73270774",
"0.71640915",
"0.7050234",
"0.6983268",
"0.6880525",
"0.68680984",
"0.68615484",
"0.6853779",
"0.68407965",
"0.684074",
"0.6835107",
"0.6808258",
"0.6732918",
"0.6718588",
"0.6718588",
"0.6681137",
"0.66499794",
"0.66499597",
"0.66343844",
"0.6608891",
"0.6604654",
"0.6599761",
"0.6599262",
"0.658851",
"0.65851796",
"0.6565947",
"0.65636027",
"0.65571606",
"0.6552392",
"0.65503836",
"0.65350974",
"0.6516755",
"0.64813143",
"0.6479524",
"0.64675623",
"0.6459157",
"0.6453989",
"0.6451651",
"0.6449059",
"0.64461434",
"0.6443757",
"0.6417186",
"0.6395042",
"0.63947",
"0.6389481",
"0.63741803",
"0.63669026",
"0.6366891",
"0.63615876",
"0.6352444",
"0.63481563",
"0.63476384",
"0.6338753",
"0.63385516",
"0.6335789",
"0.6321516",
"0.6319581",
"0.63143295",
"0.6294962",
"0.6293741",
"0.6290645",
"0.62835556",
"0.6265039",
"0.6263471",
"0.6257838",
"0.62535995",
"0.6250577",
"0.6249059",
"0.6247521",
"0.62413615",
"0.62298906",
"0.62247604",
"0.6218032",
"0.62141335",
"0.6213139",
"0.6210273",
"0.62083757",
"0.6206458",
"0.62012637",
"0.6184012",
"0.61811495",
"0.617986",
"0.61718994",
"0.61718994",
"0.61718994",
"0.61718994",
"0.61718994",
"0.61718994",
"0.61615473",
"0.6150543",
"0.61505365",
"0.6147927",
"0.61477333",
"0.614387",
"0.61413586",
"0.6135653",
"0.6126292",
"0.6125924",
"0.6124373",
"0.61226207"
] | 0.70677525 | 2 |
Get some users in random. | List<User> getRandomUsers(List<User> uList, int num); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getRandom () {\n\t\treturn User.find(\n\t\t \"user_id != ? and online = ? order by rand()\", this.user_id, true\n\t\t).first();\n\t}",
"public String getRandomUser(TreeMap<String, Double> userlist)\r\n \t{\r\n \t\t//TODO key und value tauschen und bei gleicher punktzahl vorauswahltreffen\r\n \t\tTreeMap<Double, String> randomTreeMap = createRandomTreeMap(createPreselectionMap(userlist));\r\n \t\tfindRandomItem(randomTreeMap);\r\n \t\treturn randomTreeMap.firstEntry().getValue();\r\n \t}",
"private Trouser getRandomTrouser() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME + \" ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // Extract shirt details\n if (c.moveToFirst()) {\n int trouserId = c.getInt((c.getColumnIndex(TrouserEntry._ID)));\n String trouserPath = c.getString(c.getColumnIndex(TrouserEntry.IMG_PATH));\n\n c.close();\n return new Trouser(trouserId, trouserPath);\n } else {\n return null;\n }\n }",
"public ArrayList<SimUser> generateUsers(){\n simUserFact = new SimUserFactory();\r\n simUserStateFact = new SimUserStateFactory();\r\n \r\n ArrayList<SimUser> su = new ArrayList<SimUser>();\r\n\r\n // Generate a set amount of each type of user with their state set to shopping\r\n for(int x =0; x < COMPANYUSERS; x++)\r\n su.add(simUserFact.createUser(\"Company\", simUserStateFact.getUserState(\"Shopping\"), simUserStateFact));\r\n \r\n for(int x = 0; x < INDIVIDUALUSERS; x++)\r\n su.add(simUserFact.createUser(\"Person\", simUserStateFact.getUserState(\"Shopping\"), simUserStateFact));\r\n \r\n return su;\r\n }",
"@Override\n public Future<Seq<TUser>> getUsers() {\n return futurePool.apply(new BlockingUserRetriever(\"user1\", false))\n .join(futurePool.apply(new BlockingUserRetriever(\"user2\", false)))\n .transformedBy(\n new FutureTransformer<Tuple2<User, User>, List<TUser>>() {\n @Override\n public List<TUser> map(Tuple2<User, User> value) {\n List<TUser> list = new ArrayList<TUser>(2);\n list.add(value._1().toTObject());\n list.add(value._2().toTObject());\n return list;\n }\n\n // if we call BlockingUserRetriever with useRandom=true then\n // one of the users of maybe both can fail because don't exist so\n // we catch the exception and return an empty list instead\n @Override\n public List<TUser> handle(Throwable throwable) {\n return new ArrayList<TUser>();\n }\n }\n ).transformedBy(\n new FutureTransformer<List<TUser>, Seq<TUser>>() {\n @Override\n public Seq<TUser> map(List<TUser> value) {\n return ScalaSupport.toScalaSeq(value);\n }\n }\n );\n }",
"Randomizer getRandomizer();",
"public List getAllUsers();",
"public ArrayList<RandomItem> getRandomItems();",
"public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}",
"List<User> getUsers();",
"List<User> getUsers();",
"List<KingdomUser> getUsers();",
"public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }",
"RampUpUsers getRampUpUsers();",
"Iterable<User> getAllUsers();",
"public Vector<String> getRandom(){\n\t\t\n\t\tAssert.pre(size()>0, \"data must be initialized\");\n\t\t\n\t\tint n = r.nextInt(size());\n\t\t\n\t\treturn get(n);\n\t}",
"List<User> fetchAllUSers();",
"public int getRandom() {\n return _list.get( rand.nextInt(_list.size()) );\n }",
"public List<Utilizator> listUsers();",
"com.heroiclabs.nakama.api.User getUsers(int index);",
"public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()));\r\n }",
"@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}",
"com.rpg.framework.database.Protocol.User getUsers(int index);",
"com.rpg.framework.database.Protocol.User getUsers(int index);",
"public List<User> getUsers();",
"public List getUsers(User user);",
"public void getAllUsers() {\n\t\t\n\t}",
"public int getLoggedInUsers();",
"private ArrayList<ServerInfo> getRandomPeers(Set<ServerInfo> serverInfoSet) {\n if (serverInfoSet.size() < 5) {\n return new ArrayList<>(serverInfoSet);\n }\n\n // Shuffle the serverInfo list and add the first one to the targets list; Repeat for 5 times\n ArrayList<ServerInfo> targets = new ArrayList<>();\n ArrayList<ServerInfo> allPeers = new ArrayList<>(serverInfoSet);\n\n for (int i = 0; i < 5; i++) {\n Collections.shuffle(allPeers);\n targets.add(allPeers.remove(0));\n }\n\n return targets;\n }",
"private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}",
"public Random getRandom() {\n\t\treturn (rand);\n\t}",
"RampDownUsers getRampDownUsers();",
"@Override\r\n\tpublic void getAllUser() {\n\t\tSystem.out.println(users);\r\n\t\t\r\n\t}",
"public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }",
"private void getTeam() {\n Set<Integer> set = getRandomNumberSet();\n // clear new team list each time to allow for serial clicks on \"Generate New Random Team\"\n team.clear();\n for (Integer i : set) {\n getPokemon(i);\n }\n }",
"public List<User> getAllUsers();",
"@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }",
"public static int getRandomAmount(){\n return rand.nextInt(1000);\n }",
"Boolean getRandomize();",
"@Test\n public void getAllUsers() {\n IUser userOne = new User(\"UserOne\", \"password\");\n IUser userTwo = new User(\"UserTwo\", \"password\");\n channel.join(userOne);\n channel.join(userTwo);\n\n Collection<IRecognizable> users = channel.getAllUsersInfo();\n assertEquals(2,users.size());\n\n\n\n }",
"People getUser(int index);",
"private Random rand()\n\t{\n\t\treturn new Random();\n\t}",
"private IUnit getRandomListUnit(){\n\t\treturn unitList.get(rnd.nextInt(unitListSize()));\n\t}",
"List<User> findUsers(long max, int count);",
"public void selectAllUser() {\n String sql = \"SELECT id, user, publickey, password, salt FROM users\";\n\n try (Connection conn = this.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n System.out.println(rs.getInt(\"id\") + \"\\t\" + rs.getString(\"user\") + \"\\t\" + rs.getDouble(\"publickey\")\n + \"\\t\" + rs.getString(\"password\") + \"\\t\" + rs.getString(\"salt\"));\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public static String generateRandomUsername() {\n final String randomFirst = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomSecond = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomThird = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n String userName = randomFirst + randomSecond + randomThird;\n\n userName = userName.substring(0, 10) + \"@ngetestmail.com\";\n\n return userName;\n }",
"@Override\n\tpublic List<User> selectAllUser() {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectAllUser\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}",
"public int getRandom() {\n int idx;\n Random rand;\n \n rand = new Random();\n idx = rand.nextInt(set.size());\n return set.get(idx);\n }",
"public void getRecentUsers(View view){\n SharedPreferences sharedPref = getContext().getSharedPreferences(\"recentVisited\", Context.MODE_PRIVATE);\n int size = sharedPref.getInt(\"size\", 0);\n\n // clears the variables.\n userName.clear();\n uid.clear();\n for (int i = size+1; i >0 ; i--) {\n String name= sharedPref.getString(\"name_\"+i,\"deleted\");\n String userId= sharedPref.getString(\"uid_\"+i,\"deleted\");\n if (!Objects.equals(name, \"deleted\")){\n userName.add(name);\n uid.add(userId);\n }\n\n }\n\n setList(view);\n }",
"public int getRandom() {\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}",
"List<User> getAllUsers();",
"List<User> getAllUsers();",
"public List<User> getUserList();",
"java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();",
"public DataSetMember<t> getRandomMember()\n\t{\n\t\tRandom R = new Random();\n\t\tint i = R.nextInt(_data.size());\n\t\treturn _data.get(i);\n\t}",
"public int getRandom() {\n Random rand = new Random();\n return list.get(rand.nextInt(linklist.size()));\n }",
"List<KingdomUser> getAllUsers();",
"private void getRandom(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\tString rate = \"0\";\n\t\ttry {\n\t\t\tRandom random = new Random();\n\t\t\tlong contentId;\n\t\t\tnoticiasList.clear();\n\t\t\tint num = ContentDB.getNumContents();\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tLong userId = Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER));\n\t\t\tfor (int k = Constants.NUM_RESULTS - 50; k < Constants.NUM_RESULTS; k++) {\n\t\t\t\tcontentId = (long) (random.nextDouble() * num);\n\t\t\t\twhile (ContentDB.getTitleOfContent(contentId) == \"\") {\n\t\t\t\t\tcontentId = (long) (random.nextDouble() * num);\n\t\t\t\t}\n\t\t\t\tif (myRecommender.getPreferenceValue(userId, contentId) != null)\n\t\t\t\t\trate = \"1\";\n\n\t\t\t\tNoticia not = new Noticia(Long.toString(contentId), ContentDB.getTitleOfContent(contentId),\n\t\t\t\t\t\tContentDB.getVideoOfContent(contentId), ContentDB.getCaptureOfContent(contentId),\n\t\t\t\t\t\tContentDB.getDateOfContent(contentId), ContentDB.getContent(contentId),\n\t\t\t\t\t\tContentDB.getAuthorOfContent(contentId), rate, \"\");\n\n\t\t\t\tnoticiasList.add(not);\n\n\t\t\t}\n\t\t\tconjunto = new Conjunto(noticiasList);\n\t\t\tString ans = (String) gson.toJson(conjunto).subSequence(12, gson.toJson(conjunto).length() - 1);\n\t\t\tout.print(ans);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private String getRandomName(){\n return rndString.nextString();\n }",
"public void getUsers(String[] tokens) {\n\n }",
"private double getRandom() {\n return 2*Math.random() - 1;\n }",
"public static Fruit getRandom(List<Fruit> fruits) {\r\n return fruits.get(new Random().nextInt(fruits.size()));\r\n }",
"List<User> loadAll();",
"@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}",
"public int getMetaUsers();",
"public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }",
"private ArrayList<String> getRandQuestion() \n\t{\t\n\t\tquestionUsed = true;\n\t\t\n\t\tRandom randomizer = new Random();\n\t\tint randIdx = 0;\n\t\t\n\t\tif(questionsUsed.isEmpty())\n\t\t\trandIdx = randomizer.nextInt(allQuestions.size());\n\t\telse\n\t\t{\n\t\t\twhile(questionUsed)\n\t\t\t{\n\t\t\t\trandIdx = randomizer.nextInt(allQuestions.size());\n\t\t\t\tcheckIfQuestionUsed(randIdx);\n\t\t\t}\n\t\t}\n\t\t\n\t\tquestionsUsed.add(randIdx);\n\t\t\n\t\treturn allQuestions.get(randIdx);\n\t}",
"public int getRandom() {\n int x=rand.nextInt(li.size());\n return li.get(x);\n }",
"@GetMapping(\"random-list/{id}\")\n\tpublic List<Movie> getRandomList(@PathVariable(\"id\") int limit){\n\t\tRandom rand = new Random();\n\t\tList<Movie> list1 = repo.findAll();\n\t\tList<Movie> list = new ArrayList<Movie>();\n\t\tfor (int i = 0; i <= limit; i++) {\n\t\t\tint num1 = rand.nextInt(list1.size()) + 1;\n\t\t\tlist.add(repo.findById(num1));\n\t\t\t\n\t\t}\n\t\treturn list;\n\t}",
"public User[] usersRestricted(int[] indexs){\n User[] usersRestrictedPlayLists = new User[5];\n for(int i = 0; i<5; i++){\n usersRestrictedPlayLists[i] = user[indexs[i]];\n }\n return usersRestrictedPlayLists;\n }",
"public People getUser(int index) {\n return user_.get(index);\n }",
"public double getRandom() {\n return 20*Math.random() - 10;\n }",
"@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}",
"private void random() {\n\n\t}",
"private void selectRandomPlayer() {\n Random rand = new Random();\n // Restrict random number range to available indexes in the players list.\n // - 1 to offset zero-based index numbering.\n int random = rand.nextInt(players.size());\n activePlayer = players.get(random);\n }",
"People getUser();",
"public static TradeGood getRandom() {\n TradeGood[] options = new TradeGood[] {WATER, FURS, ORE, FOOD, GAMES, FIREARMS,\n MEDICINE, NARCOTICS, ROBOTS, MACHINES};\n int index = GameState.getState().rng.nextInt(10);\n return options[index];\n }",
"public Collection<String> getUsers() {\r\n \t\tCollection<String> users = new TreeSet<>();\r\n \t\tusers.addAll(this.dataLayer.getUser());\r\n \r\n \t\treturn users;\r\n \t}",
"public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;",
"@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n public ResponseEntity getUsers() {\n logger.debug(\"HTTP GET /users called\");\n List<User> userList = userService.getUsers(0.00, 4000.00);\n\n return new ResponseEntity(new UserResponse(userList), HttpStatus.OK);\n }",
"public int getRandom() {\n Integer ans = null;\n while (ans == null) {\n int r = random.nextInt(size);\n ans = allSet[r];\n if (!realSet.contains(ans)) {\n ans = allSet[r] = null;\n }\n }\n return ans;\n }",
"public static ArrayList<User> selectUsers() {\n \n ArrayList<User> users = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n String query = \"SELECT * FROM users \";\n \n try {\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n User user = null;\n \n for (int i = 0; i < colCount; i++) {\n if (rs.next()) {\n user = new User();\n user.setUserID(rs.getInt(\"userID\"));\n user.setFirstName(rs.getString(\"firstName\"));\n user.setLastName(rs.getString(\"lastName\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddr1(rs.getString(\"addr1\"));\n user.setAddr2(rs.getString(\"addr2\"));\n user.setCity(rs.getString(\"city\"));\n user.setStateRegion(rs.getString(\"state\"));\n user.setZipcode(rs.getInt(\"zip\"));\n user.setCountry(rs.getString(\"country\"));\n user.setRoleName(rs.getString(\"roleName\"));\n System.out.println(user.getFirstName());\n users.add(user);\n }\n }\n return users;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }",
"private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }",
"public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }",
"public int getRandom() {\n Random random = new Random();\n return list.get(random.nextInt(list.size()));\n }",
"private static long getRandAccount() {\n int bid = rand.nextInt(noOfBranches);\n return getRandAccountFromBranch(bid);\n }",
"public List<UserModel> getAllUsers()\n {\n List<UserModel> userModels =new ArrayList<>();\n //user.findAll().forEach(topics::add);\n for(UserModel userModel : userRepository.findAll())\n {\n userModels.add(userModel);\n }\n return userModels;\n }",
"public int getRandom() {\n Random random = new Random();\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"@Override\n\tpublic List<User> get() {\n\t\tList<User> result = new ArrayList<>();\n\t\tfor (String key : userlist.keySet()) {\n\t\t\tUser user = userlist.get(key);\n\t\t\tint dni = user.getDni();\n\t\t\tString name = user.getName();\n\t\t\tString secondName = user.getSecondName();\n\t\t\tString username = user.getUser();\n\t\t\tString pass = user.getPass();\n\t\t\tresult.add(new User(dni, name, secondName, username, pass));\n\t\t}\n\t\treturn result;\n\t}",
"public void printAllUsers() {\n\t\tfor (User u : getUserSet()) {\n\t\t\tSystem.out.println(u);\n\t\t}\n\t}",
"private Client getNextRandomClient() {\n\t\treturn clients.get(random.nextInt(clients.size()));\n\t}",
"public void setWhoGoesFirstRandom() {\n Random ran = new Random();\n int i = ran.nextInt(2) + 1;\n if(i == 1) {\n setWhoGoesFirst(humanPlayer);\n } else {\n setWhoGoesFirst(aiPlayer);\n }\n }",
"private int randomWeight()\n {\n return dice.nextInt(1000000);\n }",
"public int getRandom() {\n int index = (int) Math.round(Math.random()*(list.size()-1));\n return list.get(index);\n }",
"public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;",
"public int getRandom() {\n int index = rnd.nextInt(list.size());\n return list.get(index).val;\n }",
"public int getRandom() {\n return elementsList.get(rand.nextInt(elementsList.size()));\n }",
"@Override\n public void onComplete() {\n callback.getRandomUserResponse(randomUserResponse);\n }"
] | [
"0.75693524",
"0.6431957",
"0.63686585",
"0.6307791",
"0.6253337",
"0.5908931",
"0.58864766",
"0.58817214",
"0.58556527",
"0.58367014",
"0.58367014",
"0.5832504",
"0.5822325",
"0.58213156",
"0.581842",
"0.5808879",
"0.57995576",
"0.57982427",
"0.5791735",
"0.5787123",
"0.5784752",
"0.576588",
"0.5762975",
"0.5762595",
"0.5735503",
"0.57175606",
"0.5687156",
"0.5685214",
"0.5666179",
"0.5662571",
"0.56606257",
"0.5630507",
"0.56298584",
"0.56287354",
"0.5620159",
"0.56111497",
"0.5608597",
"0.5608295",
"0.56068385",
"0.56023926",
"0.55846035",
"0.55771065",
"0.55759203",
"0.55718666",
"0.5569561",
"0.5567792",
"0.55644125",
"0.5557334",
"0.5552274",
"0.5548051",
"0.5547077",
"0.5544944",
"0.55437005",
"0.55437005",
"0.55383414",
"0.55381775",
"0.5537296",
"0.5524802",
"0.5523018",
"0.551687",
"0.5514595",
"0.55094534",
"0.5505581",
"0.55048287",
"0.5501101",
"0.5499665",
"0.54955935",
"0.5495288",
"0.5492751",
"0.5491648",
"0.5475495",
"0.547546",
"0.54691315",
"0.5463988",
"0.5461223",
"0.54594374",
"0.54566944",
"0.54521567",
"0.5451145",
"0.5449146",
"0.5441364",
"0.543969",
"0.5438521",
"0.54362",
"0.54266894",
"0.5425459",
"0.5425107",
"0.5422901",
"0.5421434",
"0.5420028",
"0.54191136",
"0.5415288",
"0.5414673",
"0.54037124",
"0.5400265",
"0.5393998",
"0.5392399",
"0.53890926",
"0.5388422",
"0.53856087"
] | 0.78144056 | 0 |
Judge whether user exists. | boolean isUserExist(String username, String password); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}",
"public boolean existsUser(String username);",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"public boolean existUser(String id);",
"boolean isUserExists(Username username);",
"boolean exists(User user);",
"public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}",
"private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveAisId)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n valid = rs.next() != false;\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return valid;\n }",
"Boolean checkUserExists(String userName) throws AppException;",
"boolean userExists(HttpServletRequest request, String userId);",
"@Override\r\n\tpublic Boolean userExist(String username) {\n\t\treturn null;\r\n\t}",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"public boolean existsUser(String userId) {\n\t\treturn true;\n\t}",
"boolean hasUserName();",
"boolean exists(String username);",
"public boolean doesTheUserExist(String user)\r\n\t {\r\n\t\t if (!users.get(user).equals(null))\r\n\t\t return true;\r\n\t\t return false;\r\n\t }",
"public boolean isExistingUser() {\r\n return isExistingUser;\r\n }",
"Boolean checkUserExists(Integer userId) throws AppException;",
"private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }",
"boolean isUserExists(RegisterData data) throws DuplicateUserException;",
"@Override\n\tpublic boolean userExists(String user) {\n\t\tLogin login = fetchUser(user);\n\t\treturn (login != null);\n\t}",
"boolean hasUserId();",
"boolean hasUserId();",
"boolean hasUserId();",
"public boolean isThereSuchAUser(String username, String email) ;",
"@Override\n\tpublic boolean userExists(String email) {\n\t\treturn (searchIndex(email) >= 0);\n\t}",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"private boolean userExists(Utente checkUser) {\n\t\tDB db = getDB();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente && (((Utente)user.getValue()).getUsername().equals(checkUser.getUsername())))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"boolean exists(String userName);",
"@Override\n public boolean userExists(User user) {\n return DATABASE.getUsers().stream()\n .anyMatch(currentUser -> user.equals(currentUser));\n }",
"public boolean checkUserExists(String username) {\n boolean exists = false;\n try {\n conn = dao.getConnection();\n ps = conn.prepareStatement(\"SELECT * FROM USERS WHERE USERNAME=?\");\n ps.setString(1, username);\n\n ResultSet rs = ps.executeQuery();\n\n // rs.next() is false if the set is empty\n exists = rs.next();\n\n // close stuff\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return exists;\n }",
"public User userExists(IDatabase db) {\n\t\tUser doesExist = db.userExists(model);\n\t\treturn doesExist;\n\t}",
"private boolean existsUser(Connection con) throws SQLException {\n\t\tlog.entry();\n\t\tboolean userExists = false;\n\t\tPreparedStatement ps = con.prepareStatement(\"SELECT COUNT(*) FROM Users \"\n\t\t + \"WHERE `id`=?;\");\n\t\ttry {\n\t\t\tps.setInt(1, id);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.first() && rs.getInt(1) > 0) {\n\t\t\t\tuserExists = true;\n\t\t\t}\n\t\t} finally {\n\t\t\tcloseStatement(ps);\n\t\t}\n\t\tthrowSqlException();\n\t\tlog.exit();\n\t\treturn userExists;\n\t}",
"public boolean hasUser() {\n return user_ != null;\n }",
"public boolean hasUser() {\n return user_ != null;\n }",
"boolean hasObjUser();",
"public Boolean isUsernameExist(String username);",
"public boolean isUserExist(String email, String Password);",
"public static boolean userExists(String username) throws IOException, SQLException {\n ArrayList<String> user = retrieveUser(username);\n if (!user.isEmpty()) {\n if (user.get(0).equals(username)) {\n System.out.println(\"Username exists in database.\");\n return true;\n }\n }\n System.out.println(\"The user: \" + username + \" does not exist\");\n return false;\n }",
"public boolean userExists(String user){\n boolean answer = false;\n //look into the database\n try{\n statement = connection.createStatement();\n //execute SQL query and get the data from the database\n ResultSet myResult = statement.executeQuery(\"SELECT name FROM members WHERE name = '\" + user +\"'\");\n while (myResult.next()) {\n if (myResult.getString(\"name\")!= null)\n //name exists so answer = true\n answer = true;\n }\n\n }catch (SQLException ex){ex.printStackTrace();}\n return answer;\n }",
"public boolean hasUser() {\n return user_ != null;\n }",
"public boolean exists(int userId) {\n return this.mInjector.getUserManager().exists(userId);\n }",
"public boolean isUserExisted(String _fbEmail);",
"public boolean userExists(String user) {\r\n return userInfo.containsKey(user);\r\n }",
"public boolean isExistingUsername(String username) {\n boolean isExistingUser = false; \n \n List<User> retrievedUsersList = new LinkedList<User>(); \n retrievedUsersList = repo.returnAllUsers(); \n \n User aUser = null; \n for(var user : retrievedUsersList) {\n aUser = (User)user; \n \n if(aUser.username.equals(username)) {\n isExistingUser = true; \n }\n }\n \n return isExistingUser; \n }",
"boolean existsByUsername(String username);",
"public Boolean user_exists (UserWS user) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail = :login\"); \r\n\t\t\t\t i.setString(\"login\", user.getLogin());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}",
"private boolean checkExistingUsername(String username) {\n boolean existingUsername = false;\n User user = userFacade.getUserByUsername(username);\n if (user != null) {\n existingUsername = true;\n }\n return existingUsername;\n }",
"@Override\n\tpublic boolean isUserExist(StudentForm student) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean checkUser(String username) {\n\t\tboolean result = false;\n\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query = (Query) session.createQuery(\"from Member where username=?\");\n\n\t\tMember member = (Member) query.setString(0, username).uniqueResult();\n\t\tif (member != null) {\n\t\t\tresult = true;\n\t\t\tlogger.info(\"Member Exists\");\n\t\t} \n\n\t\treturn result;\n\n\t}",
"boolean isUsernameExist(String username);",
"public boolean userExists(TIdentifiable user) {\r\n return (m_users.getIndex(user) >= 0);\r\n }",
"public User userExist(User user);",
"public boolean userNameExist(String username);",
"public boolean existsByUsername(String username);",
"public boolean isUser(String userName) throws Exception;",
"public boolean hasUser(){\n return numUser < MAX_USER;\n }",
"private boolean isUserExist(String friendName)\r\n\t{\r\n\t\tlogger.debug(\"->->->->-> Inside isUserExist method ->->->->->\");\r\n\t\tif(userDAO.getParticularUserbyUserName(friendName)==null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public boolean exists(final Long id) {\n return userRepository.existsById(id);\n }",
"public boolean doesUserExist(String userID) {\n String[] columns = {\n USERS_ID_COLUMN\n };\n SQLiteDatabase db = this.getReadableDatabase();\n String selection = USERS_LASTNAME_COLUMN + \" = ?\";\n String[] selectionArgs = {userID};\n\n Cursor cursor = db.rawQuery(\n \"SELECT count(*)\" +\n \" FROM \" + USERS_TABLE_NAME +\n \" WHERE \" + USERS_ID_COLUMN + \"=\" + userID,\n null\n );\n cursor.moveToFirst();\n int count = cursor.getInt(0);\n cursor.close();\n db.close();\n\n return count > 0;\n }",
"private void checkForUser(){\n if(mUserId != -1){\n return;\n }\n\n if(mPreferences == null) {\n getPrefs();\n }\n\n mUserId = mPreferences.getInt(USER_ID_KEY, -1);\n\n if(mUserId != -1){\n return;\n }\n\n //do we have any users at all?\n List<User> users = mUserDAO.getAllUsers();\n if(users.size() <= 0 ){\n User defaultUser = new User(\"din_djarin\",\"baby_yoda_ftw\");\n mUserDAO.insert(defaultUser);\n }\n }",
"@Override\n\tpublic boolean hasUser(Account acccount) {\n\n\n\n\n\n\n\n\n\n\t\t\n\t\treturn (usersHashtable.containsKey(acccount));\n\t}",
"public boolean hasUser() {\n return instance.hasUser();\n }",
"public boolean doesUserExist(String username) {\n\t\t\n\t\tfor(User u : users) {\n\t\t\tif(u.getUsername().equals(username)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"boolean isUser(String username);",
"public boolean userNameExists(){\r\n boolean userNameExists = false;\r\n //reads username and password\r\n String user = signup.getUsername();\r\n String pass = signup.getFirstPassword();\r\n try{\r\n //creates statement\r\n //connects to database\r\n \r\n Connection myConn = DriverManager.getConnection(Main.URL); \r\n \r\n //creates statement\r\n Statement myStmt = myConn.createStatement();\r\n System.out.println(\"statement initiated\");\r\n //SQL query\r\n ResultSet myRs = myStmt.executeQuery(\"select * from LISTOFUSERS \");\r\n System.out.println(\"query initiated\");\r\n //process result set\r\n //checks to see if the username already exists in the database\r\n while (myRs.next()){\r\n System.out.println(\"check\");\r\n if(user.equals(myRs.getString(\"USERNAME\"))){\r\n \r\n userNameExists = true;\r\n break;\r\n }\r\n }\r\n myConn.close();\r\n \r\n \r\n \r\n } catch (Exception e) \r\n {\r\n System.err.println(e.getMessage());\r\n } \r\n return userNameExists; \r\n }",
"public boolean hasUser(String username) {\n return users.containsKey(username);\n }",
"public boolean exists(gw_show gh) throws Exception {\n\t\treturn this.dao.checkUserExistsWithName(gh.getName());\n\t}",
"private void isUserExist() {\n\n if (firebaseAuth.getCurrentUser() != null) {\n\n final String user_id = firebaseAuth.getCurrentUser().getUid();\n users_database_reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.hasChild(user_id)) {\n // sign in the user and go to main activity\n // Intent intent = new Intent(StartActivity.this, MainActivity.class);\n // intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(intent);\n } else {\n // go to profile page\n Intent intent = new Intent(MainActivity.this, Profile.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }",
"private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }",
"public boolean hasUser() {\n return userBuilder_ != null || user_ != null;\n }",
"public boolean hasUser() {\n return userBuilder_ != null || user_ != null;\n }"
] | [
"0.83447886",
"0.82914",
"0.8118913",
"0.8118913",
"0.8118913",
"0.8118913",
"0.8118913",
"0.8118913",
"0.8118913",
"0.80376995",
"0.7998642",
"0.79527074",
"0.786238",
"0.78411734",
"0.7783564",
"0.7716957",
"0.7695472",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76904726",
"0.76768607",
"0.76734924",
"0.7638265",
"0.76350474",
"0.7629477",
"0.7625141",
"0.761525",
"0.76000667",
"0.7579713",
"0.7576401",
"0.7576401",
"0.7576401",
"0.7574882",
"0.75746584",
"0.75642455",
"0.75642455",
"0.75642455",
"0.75642455",
"0.75642455",
"0.75642455",
"0.75153303",
"0.750963",
"0.75047874",
"0.7496462",
"0.74692523",
"0.7420925",
"0.74136174",
"0.74136174",
"0.7382433",
"0.737199",
"0.7342888",
"0.73427856",
"0.7339613",
"0.7331289",
"0.7325839",
"0.7316171",
"0.73030627",
"0.7275259",
"0.72745955",
"0.726413",
"0.72560334",
"0.7251931",
"0.7247105",
"0.72415847",
"0.7232715",
"0.7231818",
"0.72232074",
"0.72003585",
"0.71742004",
"0.7172497",
"0.7168285",
"0.7152031",
"0.7147552",
"0.7144237",
"0.71269464",
"0.7124602",
"0.7087216",
"0.70868665",
"0.7071221",
"0.7057042",
"0.70527184",
"0.7049507",
"0.704435",
"0.7010745",
"0.7010745"
] | 0.76001406 | 42 |
Judge whether username exists. | boolean isUsernameExist(String username); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean isUsernameExist(String username);",
"public boolean userNameExist(String username);",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean exists(String username);",
"boolean hasUserName();",
"public boolean existsUser(String username);",
"boolean isUserExists(Username username);",
"private boolean checkExistingUsername(String username) {\n boolean existingUsername = false;\n User user = userFacade.getUserByUsername(username);\n if (user != null) {\n existingUsername = true;\n }\n return existingUsername;\n }",
"boolean existsByUsername(String username);",
"public boolean existsByUsername(String username);",
"public boolean validateUsernameExist(String username) {\n return userRepository.findUsername(username);\n }",
"boolean exists(String userName);",
"public boolean checkUsername(String user) {\n\n }",
"@Override\n public boolean isUserNameExists(String userName) {\n User user = getUserInfo(userName);\n return user != null && user.getUserName() != null && !user.getUserName().equals(\"\");\n }",
"public static boolean checkRegisteredUsername(String username){\n \tboolean found = false;\n \ttry {\n\t\t\tfound = DBHandler.isUsernameTaken(username, 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 \treturn found;\n }",
"boolean isUser(String username);",
"boolean isUserExist(String username, String password);",
"public boolean checkUsername(String username) {\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(\"username\", username);\r\n\r\n // Returns whether at least one user with the given username exists\r\n return users.countDocuments(query) > 0;\r\n }",
"@Override\r\n\tpublic Boolean userExist(String username) {\n\t\treturn null;\r\n\t}",
"public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}",
"public boolean isThereSuchAUser(String username, String email) ;",
"public static boolean userExists(String username) throws IOException, SQLException {\n ArrayList<String> user = retrieveUser(username);\n if (!user.isEmpty()) {\n if (user.get(0).equals(username)) {\n System.out.println(\"Username exists in database.\");\n return true;\n }\n }\n System.out.println(\"The user: \" + username + \" does not exist\");\n return false;\n }",
"public boolean checkUsername(String name) {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(\"SELECT count(*) FROM users where username = '\" + name + \"'\");\r\n\t\t\treturn rs.first();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isExistingUsername(String username) {\n boolean isExistingUser = false; \n \n List<User> retrievedUsersList = new LinkedList<User>(); \n retrievedUsersList = repo.returnAllUsers(); \n \n User aUser = null; \n for(var user : retrievedUsersList) {\n aUser = (User)user; \n \n if(aUser.username.equals(username)) {\n isExistingUser = true; \n }\n }\n \n return isExistingUser; \n }",
"public abstract boolean checkUser(String username);",
"public boolean checkUserName(TextField userName) {\n String userNameSQL = \"SELECT * FROM user WHERE user_name = ? \";\n ResultSet rsUser;\n boolean username_exists = false;\n\n\n try {\n\n PreparedStatement userPST = connection.prepareStatement(userNameSQL);\n userPST.setString(1, userName.getText());\n rsUser = userPST.executeQuery();\n\n if (rsUser.next()) {\n username_exists = true;\n outputText.setStyle(\"-fx-text-fill: #d33232\");\n outputText.setText(\"Username Already Exists\");\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n return username_exists;\n\n }",
"private boolean checkUsername() {\n if(getUsername.getText().compareTo(\"\") != 0) { return true; }\n else {\n errorMessage.setText(\"Please enter a username.\");\n return false;\n }\n }",
"private boolean usernameAvailable(String username) throws ParseException {\n ParseQuery<TipperUser> query = ParseQuery.getQuery(\"TipperUser\");\n query.whereEqualTo(\"username\", username);\n List<TipperUser> result = query.find();\n if (result.isEmpty()) {\n return true;\n } else return false;\n }",
"public boolean checkUserExists(String username) {\n boolean exists = false;\n try {\n conn = dao.getConnection();\n ps = conn.prepareStatement(\"SELECT * FROM USERS WHERE USERNAME=?\");\n ps.setString(1, username);\n\n ResultSet rs = ps.executeQuery();\n\n // rs.next() is false if the set is empty\n exists = rs.next();\n\n // close stuff\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return exists;\n }",
"Boolean checkUserExists(String userName) throws AppException;",
"public boolean usernameExists(String username){\r\n\t\tCursor mCursor =\r\n \t this.mDb.query(true, DATABASE_TABLE, new String[] {USERNAME,PASSWORD,FIRSTNAME,FAMILYNAME,\r\n \t \t\tMAIL,RELIABILITY,POSITION,CITY,BIRTHDATE, ROW_ID, IMGPATH}, \r\n \t \t\tUSERNAME + \"= '\" + username+ \"'\", null, null, null, null, null);\r\n \t if (mCursor != null ) {\r\n \t mCursor.moveToFirst();\r\n \t }\r\n \tboolean res = mCursor.isAfterLast();\r\n \tmCursor.close();\r\n \treturn res;\r\n\t}",
"public boolean isUsernameTaken(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname;\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if(uname.equals(username)) {\n return true;\n }\n } while (cursor.moveToNext());\n }\n\n return false;\n }",
"public boolean isUser(String userName) throws Exception;",
"public boolean isRegisteredUserName(String userName);",
"private static boolean checkUsernameAvailable(String username) {\n if (username.length() <= 6) {\n return false; // Username too short.\n } else {\n if (!patients.isEmpty()) {\n for (Patient patient : patients\n ) {\n if (patient.getUserName().equals(username)) {\n return false; // Username already added for patient.\n }\n }\n for (Medic medic : medics\n ) {\n if (medic.getUserName().equals(username)) {\n return false; // Username already added for patient.\n }\n }\n }\n\n }\n return true;\n }",
"boolean isUniqueUsername(String username) throws SQLException;",
"public synchronized boolean hasUser(String username) {\r\n\t\tif (!mapping.containsKey(username)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isUsernameExist(String un) {\n\n boolean exist = false;\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collection = db.getCollection(\"registeredUser\");\n\n // ----- get document of given username from registeredData -----\n System.out.println(\"\\nVerifying if username already exists or not\\n--------------------\\n\");\n String colUsername = \"username\"; // set key and value to look for in document\n FindIterable<Document> docOne = collection.find(Filters.eq(colUsername, un)); // find document by filters\n MongoCursor<Document> cursor1 = docOne.iterator(); // set up cursor to iterate rows of documents\n try {\n // cursor1 will only have 1 data if we found a match\n if (cursor1.hasNext()) {\n System.out.println(\"Username already exists\");\n exist = true;\n }\n else {\n System.out.println(\"Username is available to register\");\n }\n } finally {\n cursor1.close();\n }\n\n return exist;\n }",
"public boolean doesUserExist(String username) {\n\t\t\n\t\tfor(User u : users) {\n\t\t\tif(u.getUsername().equals(username)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"boolean duplicatedUsername(String username);",
"public boolean checkUsername(String username){\n\t\tFile userData = new File(\"Settings//\" + username + \".yml\");\n\n\t\t// If the players file exists.\n\t\tif(!userData.exists()){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}",
"boolean isUserExist(String username) throws ErrorConnectionException, TException;",
"private boolean validateUsername() {\n // Get doctor's username\n EditText doctorUsername = (EditText) rootView.findViewById(R.id.doctorField);\n String doctorUsernameString = doctorUsername.getText().toString();\n // Query on server using that username\n try {\n String query = String.format(\"select `username` from `user` inner join `doctor` on user.id=doctor.userid where username='%s'\", doctorUsernameString); // query to check username existence\n Document document = Jsoup.connect(Constants.SERVER + query).get();\n String queryJson = document.body().html();\n if (queryJson.equals(\"0\")) { // Username not existed\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Get patient's username\n EditText patientUsername = (EditText) rootView.findViewById(R.id.patientField);\n String patientUsernameString = patientUsername.getText().toString();\n // Query on server using that username\n try {\n String query = String.format(\"select `username` from `user` inner join `patient` on user.id=patient.userid where username='%s'\", patientUsernameString); // query to check username existence\n Document document = Jsoup.connect(Constants.SERVER + query).get();\n String queryJson = document.body().html();\n if (queryJson.equals(\"0\")) { // Username not existed\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return true;\n }",
"private boolean isOneUserName(String username){\r\n\t\tfor(int i = 0; i < users.size(); i++){\r\n\t\t\tif(users.get(i).username.equalsIgnoreCase(username)){\r\n\t\t\t\tSystem.out.println(\"Sorry the Username is already taken\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean checkUser(String username) {\n\t\tboolean result = false;\n\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query = (Query) session.createQuery(\"from Member where username=?\");\n\n\t\tMember member = (Member) query.setString(0, username).uniqueResult();\n\t\tif (member != null) {\n\t\t\tresult = true;\n\t\t\tlogger.info(\"Member Exists\");\n\t\t} \n\n\t\treturn result;\n\n\t}",
"public boolean hasUser(String username) {\n return users.containsKey(username);\n }",
"@PreAuthorize(\"hasRole('ROLE_USER')\")\r\n\tpublic boolean isUsernameAvailable(String username);",
"public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }",
"private static boolean verificaUser(String username) {\n String user = null;\r\n try {\r\n PreparedStatement stmt = c.prepareStatement(\"SELECT * FROM utilizador where nome=?;\");\r\n stmt.setString(1, username);\r\n ResultSet rs = stmt.executeQuery();\r\n rs.next();\r\n user = rs.getString(\"nome\");\r\n if (user.equals(username)) {\r\n return true;\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n return false;\r\n }",
"public boolean userNameExists(){\r\n boolean userNameExists = false;\r\n //reads username and password\r\n String user = signup.getUsername();\r\n String pass = signup.getFirstPassword();\r\n try{\r\n //creates statement\r\n //connects to database\r\n \r\n Connection myConn = DriverManager.getConnection(Main.URL); \r\n \r\n //creates statement\r\n Statement myStmt = myConn.createStatement();\r\n System.out.println(\"statement initiated\");\r\n //SQL query\r\n ResultSet myRs = myStmt.executeQuery(\"select * from LISTOFUSERS \");\r\n System.out.println(\"query initiated\");\r\n //process result set\r\n //checks to see if the username already exists in the database\r\n while (myRs.next()){\r\n System.out.println(\"check\");\r\n if(user.equals(myRs.getString(\"USERNAME\"))){\r\n \r\n userNameExists = true;\r\n break;\r\n }\r\n }\r\n myConn.close();\r\n \r\n \r\n \r\n } catch (Exception e) \r\n {\r\n System.err.println(e.getMessage());\r\n } \r\n return userNameExists; \r\n }",
"public String checkUsername() {\n String username = \"\"; // Create username\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n username = checkEmpty(\"Account\"); // Call method to check input of username\n boolean isExist = false; // Check exist username\n for (Account acc : accounts) {\n // If username is exist, print out error\n if (username.equals(acc.getUsername())) {\n System.out.println(\"This account has already existed\");\n System.out.print(\"Try another account: \");\n isExist = true;\n }\n }\n // If username not exist then return username\n if (!isExist) {\n return username;\n }\n }\n return username; // Return username\n }",
"public static Boolean checkUsername(String username){\n\t\t//String username = txtUsername.getText();\n\t\t//System.out.println(username);\n\t\treturn (username.equals(\"Admin\"));\n\t}",
"public boolean hasUsername() {\n return fieldSetFlags()[1];\n }",
"private boolean isUserNameValid(String username) {\n if (username == null) {\n return false;\n } else {\n return !username.trim().isEmpty();\n }\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean existsPlayer(String username) {\r\n return ctrlDomain.existsPlayer(username);\r\n }",
"public boolean playerExists(String username) {\n return getPlayer(username) != null;\n }",
"public boolean isUsernameAvailable(String username) {\r\n\t\treturn utilisateurControlleur.isUsernameAvailable(username);\r\n\t}",
"@Override\n public boolean checkUsername (User user) {\n String username = user.getUsername();\n User userEx = findByUserName(username);\n return userEx != null;\n }",
"public boolean exists(String username) {\n\t\tfor(User user : users) {\n\t\t\tif(user.getUsername().equals(username)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean findValidUsername(String username) {\n if (allUserNames.isEmpty()) {\n return true;\n }\n for (String s: allUserNames) {\n if(s.equals(username)) {\n return false;\n }\n }\n return true;\n }",
"private boolean checkNameExistAdd(String userName) {\n\n\t\tUser user = this.userDAO.getUserByName(userName);\n\t\tif (null != user) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean isSetUsername() {\n\t\treturn this.username != null;\n\t}",
"public boolean usernameMatches(Username username) {\n return this.credential.usernameEquals(username);\n }",
"@RequestMapping(value = \"is_exist_user\", method = { RequestMethod.GET })\n\tpublic boolean isExistUser(@RequestParam(\"username\") String username) throws IOException {\n\t\tSystem.out.println(username);\n\t\tboolean result = true;\n\t\tMongoClient mongoClient = null;\n\t\ttry {\n\t\t\t// Create Mongo client\n\t\t\tmongoClient = new MongoClient(\"localhost\", 27017);\n\t\t\tMongoDatabase db = mongoClient.getDatabase(\"projectDB\");\n\n\t\t\t// Create Users collection and user document\n\t\t\tMongoCollection<Document> collection = db.getCollection(\"USERS\");\n\t\t\tDocument myDoc = collection.find(eq(\"username\", username)).first();\n\n\t\t\t//In case no document in the collection match the condition, the user not exist in the DB\n\t\t\tif (myDoc == null) {\n\t\t\t\tmongoClient.close();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t//Close DB connection\n\t\t\tmongoClient.close();\n\n\t\t} catch (Exception e) {\n\t\t\tmongoClient.close();\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn result;\n\t}",
"@Test\n public void userExist() {\n String username = argument.substring(0, 15);\n boolean found = false;\n\n for(int i = 0; i<users.size(); i++){\n if(users.get(i).substring(0, 15).trim().toLowerCase().contains(username.trim().toLowerCase())){\n found = true;\n }\n }\n assertTrue(\"User Not Found\", found);\n }",
"@Override\n\tpublic boolean checkUsername(String userName) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tStatement userCheck = connectionService.getConnection().createStatement();\n\t\t\t//userCheck.executeQuery(\"SELECT name FROM players WHERE name='\" + userName + \"';\");\n\t\t\t\n\t\t\tResultSet rs = userCheck.executeQuery(\"SELECT username FROM players WHERE username='\" + userName + \"';\");\n\t\t\t\n\t\t\tif (rs.next()) {\n\t\t\t\t\n\t\t\t\t//if (!rs.getString(\"\")\n\t\t\t\t\t\n\t\t\t\t\t//connectionService.finalize();\n\t\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t//connectionService.finalize();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Exception: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t}",
"boolean hasUserDN();",
"public boolean isUsernameAvailable(String i_userName) throws Exception\n\t{\n\t\treturn !(doesCustVendExist((short) -1, i_userName, k_doesCustomerExistByName)) || !(doesCustVendExist((short) -1, i_userName, k_doesVendorExistByName));\n\t}",
"private void userNameErrorMessage(boolean exists, String userName){\n if(exists){\n System.out.println(\"\\nUserName: \" + userName + \" Already Exists In Database!\\n\");\n }\n }",
"private void testUserName(){\r\n\t\t//get user with the 'test' userName\r\n\t\tString command = \"SELECT userName FROM users \"\r\n\t\t\t\t+ \"WHERE userName = \\\"\" + commandList.get(1) + \"\\\";\";\r\n\t\tSystem.out.println(command);//print command\r\n\t\ttry {//send command\r\n\t\t\trs = stmt.executeQuery(command);\r\n\t\t\t\r\n\t\t\tif(rs.next()){//if it returns user, userName exists\r\n\t\t\t\tout.println(\"exists\");\r\n\t\t\t} else {//no results returned, empty\r\n\t\t\t\tout.println(\"free\");\r\n\t\t\t}\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\tout.println(e.getMessage());//send back error message\r\n\t\t}\r\n\t\t\r\n\r\n\t}",
"public boolean userExists(String userName) {\r\n String qr = \"from UserCredsTbl where userName like '%\" + userName + \"%'\"\r\n + \"or userName like '%\" + userName + \"%'\";\r\n List userList = crud.getObject(qr);\r\n\r\n if (userList.size() > 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean isUserNameValid(String username) {\n return TextUtils.isEmpty(username);\n }",
"public boolean checkUsername(String username) {\n for(int i=0; i<listOfUsers.size(); i++) {\n if(listOfUsers.get(i).compareTo(username)==0)\n return false;\n }\n return true;\n }",
"private int checkUserExists(String name)\r\n\t{\r\n\t\tfor (int i = 0; i < numOfUsers; i++)\r\n\t\t{\r\n\t\t\tif (name.equals(userAccounts[0][i]))\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public static boolean userExist(String username){\n boolean exist = false;\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n connection = DriverManager.getConnection(\"RDS_HOST\",\"RDS_USERNAME\",\"RDS_PASSWORD\");\n String query = \"SELECT username FROM users WHERE username = ?\";\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n preparedStatement.setString(1,username);\n resultSet = preparedStatement.executeQuery();\n if(resultSet.next()){\n exist = true;\n }\n\n }\n finally {\n close();\n return exist;\n }\n }",
"public boolean nameValidation(String username){\n return !(username.isEmpty() || !username.matches(\"[a-zA-Z0-9_-]+\"));\n }",
"public Boolean checkusername( String username){\n SQLiteDatabase sdb = this.getReadableDatabase();\n Cursor cursor = sdb.rawQuery(\"Select * from user where username=?\",new String[]{username});\n if(cursor.getCount()>0) {\n return false;\n }\n else {\n return true;\n }\n }",
"@PreAuthorize(\"permitAll()\")\n @GetMapping(\"/users/username-available\")\n public ResponseEntity<Boolean> isUsernameAvailable(@RequestParam(value = \"username\") String username) {\n return new ResponseEntity<>(userService.getUserByUsername(username) == null, HttpStatus.OK);\n }",
"public static boolean CheckUsernameAvailable(String username) {\n JSONObject obj = new JSONObject();\n try {\n obj.put(\"type\", \"checkUsernameAvailable\");\n obj.put(\"username\", username);\n outWriter.println(obj);\n return Boolean.parseBoolean(inReader.readLine().toString());\n } catch (Exception exc) {\n //TODO: Raise exceptions through the ExceptionHandler class.\n System.out.println(\"Connection check username available error: \" + exc.toString());\n }\n return false;\n }",
"public boolean doesTheUserExist(String user)\r\n\t {\r\n\t\t if (!users.get(user).equals(null))\r\n\t\t return true;\r\n\t\t return false;\r\n\t }",
"public Map<Boolean, Set<String>> checkUsername(String username) throws UserNameException;",
"private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}",
"public boolean isUsernameValid(String username) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tUser user=(User)session.get(User.class, username);//select * from user where username=?\n\t\tif(user!=null)\n\t\t\treturn false; //duplicate username, invalid\n\t\telse\n\t\t\treturn true;\n\t}",
"public boolean isUsernameTaken(String username) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n boolean taken = dbb.isUsernameTaken(username);\n dbb.commit();\n dbb.closeConnection();\n return taken;\n }",
"public boolean existsByUsername(String username) {\n return userRepository.existsByUsername(username);\n }",
"@Override\n\tpublic int validateUsername(User u) {\n\t\treturn 0;\n\t}"
] | [
"0.8773806",
"0.87459457",
"0.8580703",
"0.8580703",
"0.8580703",
"0.8580703",
"0.8580703",
"0.8580703",
"0.83789915",
"0.8365309",
"0.83504885",
"0.8286903",
"0.81041396",
"0.8072686",
"0.7951141",
"0.7904971",
"0.78932875",
"0.7747772",
"0.77089924",
"0.7670245",
"0.7623531",
"0.7605638",
"0.76006144",
"0.75928956",
"0.75870156",
"0.75843143",
"0.75603974",
"0.7518243",
"0.75044435",
"0.7496216",
"0.74592096",
"0.7446921",
"0.7410529",
"0.7407026",
"0.7395549",
"0.7394503",
"0.73704195",
"0.73616475",
"0.7319689",
"0.7294944",
"0.7291006",
"0.72908723",
"0.72839373",
"0.72623634",
"0.72423744",
"0.7224891",
"0.72243804",
"0.7205508",
"0.7193809",
"0.718963",
"0.71867186",
"0.7176301",
"0.71733165",
"0.7169189",
"0.7159934",
"0.715372",
"0.71481556",
"0.7145478",
"0.71289647",
"0.71206844",
"0.71206844",
"0.71159434",
"0.71159434",
"0.71033126",
"0.7100687",
"0.7100687",
"0.7098222",
"0.7098222",
"0.7096071",
"0.70950735",
"0.70867324",
"0.7052843",
"0.70408607",
"0.7038396",
"0.700438",
"0.69724345",
"0.69603926",
"0.69488966",
"0.6940605",
"0.6937463",
"0.6934592",
"0.6925749",
"0.692099",
"0.69203824",
"0.6915409",
"0.69024575",
"0.6893333",
"0.6891009",
"0.6881911",
"0.6854867",
"0.6849187",
"0.6836023",
"0.6835107",
"0.6825276",
"0.6797614",
"0.67921257",
"0.67839235",
"0.6779992",
"0.6767105",
"0.6762039"
] | 0.8772719 | 1 |
Judge whether email exists. | boolean isEmailExist(String email); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasEmail();",
"boolean hasEmail();",
"boolean hasEmail();",
"boolean hasEmail();",
"boolean hasEmail();",
"Boolean checkEmailAlready(String email);",
"@Override\n public boolean isUserEmailExists(String email) {\n User user = getUserByEmail(email);\n return user != null && user.getEmail() != null && !user.getEmail().equals(\"\");\n }",
"boolean existsByEmail(String email);",
"private void emailExistCheck() {\n usernameFromEmail(email.getText().toString());\n }",
"private boolean check_email_available(String email) {\n // Search the database for this email address\n User test = UserDB.search(email);\n // If the email doesn't exist user will be null so return true\n return test == null;\n }",
"public boolean existsByEmail(String email);",
"public boolean existsByEmail(String email);",
"boolean checkEmailExistsForClient(String email) throws RuntimeException;",
"@Override\n\tpublic boolean userExists(String email) {\n\t\treturn (searchIndex(email) >= 0);\n\t}",
"private boolean checkEmail() throws IOException {\n String email = getEmail.getText();\n \n if(email.contains(\"@\")) { \n UserDatabase db = new UserDatabase();\n \n if(db.emailExists(email)) {\n errorMessage.setText(\"This email address has already been registered.\");\n return false;\n }\n \n return true;\n }\n else {\n errorMessage.setText(\"Please enter a valid email. This email will be \"+\n \"used for verification and account retrieval.\");\n return false;\n }\n }",
"boolean hasUserEmail();",
"public boolean isRegisteredEmail(String email);",
"public Boolean existsByEmail(String email);",
"public boolean findEmail(String email);",
"public static boolean emailAlreadyExists(String email) throws ParseException {\n ParseQuery<TipperUser> query = ParseQuery.getQuery(\"TipperUser\");\n query.whereEqualTo(\"email\", email);\n List<TipperUser> result = query.find();\n if (result.isEmpty()) {\n return false;\n } else return true;\n }",
"boolean emailExistant(String email, int id) throws BusinessException;",
"@Override\n public boolean isUserEmailExists(String email, String exludeUserName) {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_EMAIL_EXCLUDE_USERNAME);\n params.put(User.PARAM_EMAIL, email);\n params.put(User.PARAM_USERNAME, exludeUserName);\n User user = getRepository().getEntity(User.class, params);\n\n return user != null && user.getEmail() != null && !user.getEmail().equals(\"\");\n }",
"public boolean checkIfEmailExist(String email){\n // create query to get user with asked email\n TypedQuery<UsersEntity> findUser = entityManager.createQuery(\n \"SELECT user FROM UsersEntity user WHERE user.email=:email\",\n UsersEntity.class);\n\n // set query email parameter\n findUser.setParameter(\"email\", email);\n\n try {\n findUser.getSingleResult();\n FacesMessage msg = new FacesMessage(\"User: \" + email + \" - already exist\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n return true;\n } catch (NoResultException e) {\n return false;\n }\n }",
"public boolean checkThisEmailAlreadyExist(String email) {\n\t\tquery = \"select id from guru where email=?\";\n\t\tList<GuruModel> list = this.jdbcTemplate.query(query,new Object[]{email},BeanPropertyRowMapper.newInstance(GuruModel.class));\n\t\t\n\t\tif(list.size() == 0)\n\t\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public Boolean checkEmail(String email){\n return databaseManager.CheckIsDataAlreadyInDBorNot(email);\n }",
"public boolean existeEmail(String email) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT email FROM usuario WHERE usuario.email = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, email);\n rs = ps.executeQuery();\n if (rs.next()) {\n return true;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }",
"public boolean checaExisteEmail(String email){\r\n\t\tfor (Usuario UsuarioTemp : listaDeUsuarios) {\r\n\t\t\tif(UsuarioTemp.getEmail().equals(email)){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn false;\r\n\t}",
"public boolean checkUser(String email) {\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(\"email\", email);\r\n\r\n // Returns whether at least one user with the given email exists\r\n return users.countDocuments(query) > 0;\r\n }",
"public static boolean checkUserEmail(String email)\n\t{\n\t\tSearchResponse response = client.prepareSearch(\"projektzespolowy\")\n\t\t\t\t.setTypes(\"user\")\n\t\t\t\t.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)\n\t\t\t\t.setQuery(QueryBuilders.matchPhraseQuery(\"EMAIL\", email))\n\t\t\t\t.setSize(0).setFrom(0)\n\t\t\t\t.execute()\n\t\t\t\t.actionGet();\n\t\t\n\t\tif(response.getHits().getTotalHits() > 0)\n\t\t\treturn false;\n\t\telse \n\t\t\treturn true;\n\t}",
"public Boolean checkEmailAvailability(String email) {\n\t\tBoolean res;\n\n\t\tUserTO user = getByEmail(email);\n\t\tif (user != null) {\n\t\t\tres = false;\n\t\t}\n\t\telse {\n\t\t\tres = true;\n\t\t}\n\n\t\treturn res;\n\t}",
"public boolean isThereSuchAUser(String username, String email) ;",
"public String checkEmail(String email) {\n\t\t//TODO check passed in email and return it if correct, or an error message if no email exists\n\t\treturn email;\n\t}",
"public boolean isUserExisted(String _fbEmail);",
"@Override\n\tpublic Boolean existsByEmail(String email) {\n\t\treturn null;\n\t}",
"public boolean checkEmail(TextField email) {\n String emailSQL = \"SELECT * FROM user WHERE email = ?\";\n ResultSet rsEmail;\n boolean email_exists = false;\n\n\n try {\n\n PreparedStatement emailPST = connection.prepareStatement(emailSQL);\n emailPST.setString(1, email.getText());\n rsEmail = emailPST.executeQuery();\n\n if (rsEmail.next()) {\n email_exists = true;\n outputText.setStyle(\"-fx-text-fill: #d33232\");\n outputText.setText(\"Email Already Used\");\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n return email_exists;\n\n }",
"public static boolean email(String email) {\r\n\t\tboolean resul = false;\r\n\r\n\t\tif (email != null) {\r\n\t\t\tMatcher matcher = VALID_EMAIL_ADDRESS_REGEX.matcher(email);\r\n\t\t\tresul = matcher.find();\r\n\t\t}\r\n\r\n\t\treturn resul;\r\n\t}",
"boolean checkEmailExist(String email){\n boolean isEmailExists = false;\n dbConnection();\n try{\n stmt = con.prepareStatement(\"SELECT * FROM users ORDER BY email\");\n rs = stmt.executeQuery();\n while(rs.next()){\n String checkEmail = rs.getString(\"email\");\n if(checkEmail.equals(email)){\n isEmailExists = true;\n }\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n return isEmailExists;\n }",
"@Override\r\n\tpublic int emailcheck(String email) {\n\t\treturn dao.idcheck(email);\r\n\t}",
"boolean isEmailRequired();",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }",
"public boolean isExistingUser(String email){\n Long count = userRepository.countByEmail(email);\n\n return count > 0;\n }",
"private boolean isEmailValid(String email) {\n return true;\r\n }",
"public static boolean userExists(String email)\n\t{\n\t\tString sql = \"SELECT COUNT(*) FROM UserInfo u WHERE u.email = ?;\";\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setString(1, email);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tint count = 0;\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\tcount = rs.getInt(1);\n\t\t\t}\n\t\t\tif(count > 0)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}",
"public boolean confirmEmail(String email) {\n return database.emailExists(email);\n }",
"@Test\n\tpublic void emailExistsAuth() {\n\t\tassertTrue(service.emailExists(\"[email protected]\"));\n\t}",
"public boolean emailAlreadyUsed(String email){\n \n StringBuilder query = new StringBuilder();\n \n query.append(\"SELECT id FROM userr WHERE email ='\");\n query.append(email);\n query.append(\"';\");\n \n try{\n PreparedStatement sql = conn.prepareStatement(query.toString());\n ResultSet results = sql.executeQuery();\n\n while (results.next()){\n return true;\n } \n\n\n } catch (SQLException e){\n e.printStackTrace();\n }\n \n return false;\n \n }",
"private boolean isExistUserEmail(String email, String userId) {\n User user = userService.findByEmailAndStatus(email, Constant.Status.ACTIVE.getValue());\n if (user != null && !user.getUserId().equals(userId)) {\n return true;\n }\n return false;\n }",
"public static boolean checkEmail(String email) {\r\n\t\tboolean result = false;\r\n\t\tif (check(email) && email.matches(CommandParameter.REG_EXP_EMAIL)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public synchronized boolean isUser(String email) {\r\n return (email != null) && email2user.containsKey(email);\r\n }",
"private boolean isEmailValid(String email){\n return email.contains(\"@\");\n }",
"private boolean checkEmail(String email) {\n\n\t\tString patternStr = \"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\\\.[A-Z]{2,6}$\";\n\t\tPattern pattern = Pattern.compile(patternStr, Pattern.CASE_INSENSITIVE);\n\t\tMatcher matcher = pattern.matcher(email);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\n\t}",
"public boolean isEmailAvailable(String email) {\r\n\t\treturn utilisateurControlleur.isEmailAvailable(email);\r\n\t}",
"public boolean checkEmail(String email) {\n\t\t return EMAIL_ADDRESS_PATTERN.matcher(email).matches();\n\t\t}",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }",
"@Override\n\tpublic boolean isEmailAlreadyUsed(final String email) {\n\t\treturn null != this.getUserId(email);\n\t}",
"private boolean isEmailValid(String email) {\n return true;\n }",
"private boolean isEmailValid(String email) {\n return true;\n }",
"private boolean isEmailValid(String email) {\n return true;\n }",
"private boolean isEmailValid(String email) {\n return true;\n }",
"@Override\n\tpublic boolean emailisValid(String email) \n\t{\n\t\treturn false;\n\t}",
"@Test\n\tpublic void emailNotExistsAuth() {\n\t\tassertFalse(service.emailExists(\"[email protected]\"));\n\t}",
"public static boolean isEmailExist(User user) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n \n String query = \"SELECT email FROM auttc_users.users \"\n + \"WHERE email = ?\";\n \n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, user.getEmail());\n rs = ps.executeQuery();\n return rs.next();\n } catch (SQLException e) {\n System.out.println(e);\n return false;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }",
"public boolean checkEmail() {\n return !this.emailAddress.isEmpty() && validEmail(this.emailAddress);\n }",
"public boolean emailAvailability (String desiredEmail) {\n\t\t\n\t\tArrayList<User> companyMembers = myCompany.getCompanyMembers();\n\t\tfor(User companyMember: companyMembers) {\n\t\t\tif (companyMember.myAccount.getEmail().equalsIgnoreCase(desiredEmail))\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public static boolean email(String email) throws UserRegistrationException {\n\t\tboolean resultEmail = validateEmail.validator(email);\n\t\tif(true) {\n\t\t\treturn Pattern.matches(patternEmail, email);\n\t\t}else\n\t\t\tthrow new UserRegistrationException(\"Enter correct Email\");\n\t}",
"public String checkEmail() {\n String email = \"\"; // Create email\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n email = checkEmpty(\"Email\"); // Call method to check input of email\n // Pattern for email\n String emailRegex = \"^[a-zA-Z0-9_+&*-]+(?:\\\\.\" + \"[a-zA-Z0-9_+&*-]+)*@\"\n + \"(?:[a-zA-Z0-9-]+\\\\.)+[a-z\" + \"A-Z]{2,7}$\";\n boolean isContinue = true; // Condition loop\n\n while (isContinue) {\n // If pattern not match, the print out error\n if (!Pattern.matches(emailRegex, email)) {\n System.out.println(\"Your email invalid!\");\n System.out.print(\"Try another email: \");\n email = checkEmpty(\"Email\");\n } else {\n isContinue = false;\n }\n }\n\n boolean isExist = false; // Check exist email\n for (Account acc : accounts) {\n if (email.equals(acc.getEmail())) {\n // Check email if exist print out error\n System.out.println(\"This email has already existed!\");\n System.out.print(\"Try another email: \");\n isExist = true;\n }\n }\n\n // If email not exist then return email\n if (!isExist) {\n return email;\n }\n }\n return email; // Return email\n }",
"public boolean usercheck(String email_address)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"select email_address from users where email_address = ?\";\r\n\t\t\tpreparedStatement = connect.prepareStatement(query);\r\n\t\t\tpreparedStatement.setString(1, email_address);\r\n\t\t\tresultSet = preparedStatement.executeQuery();\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * if there's a returned value for the selected column of the query would be able to be used and passed to other classes\r\n\t\t\t * Here we display a warning message that the current username/email is already registered or taken\r\n\t\t\t */\r\n\t\t\tif(resultSet.next())\r\n\t\t\t{\r\n\t\t\t\tif(resultSet.getString(\"email_address\").equals(email_address))\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"User already exists\", \"Error\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"private boolean isEmailValid(String email) {\r\n //TODO: Replace this with your own logic\r\n return email.contains(\"@\");\r\n }",
"public static boolean isRegisteredEmail(String email) throws SQLException{\n Connection connect = null;\n ResultSet set = null;\n String isRegisteredEmailSQL = \"SELECT email FROM users where email = ?\";\n\n // Check Email Try Block:\n try {\n // Set Connection:\n connect = DBConfig.getConnection();\n // Prepare SQL Statement:\n PreparedStatement statement = connect.prepareStatement(isRegisteredEmailSQL);\n // Set Attributes / Parameters:\n statement.setString(1, email);\n // Execute Statement:\n set = statement.executeQuery();\n // check for results:\n while (set.next()){\n return true;\n }\n }catch (Exception e){\n e.printStackTrace();\n }finally {\n if(set != null){\n set.close();\n }\n if (connect != null){\n connect.close();\n System.out.println(\"Closing DB Connection!\");\n }\n }\n // End Of Check Email Try Block.\n return false;\n }",
"private boolean isEmailValid(String email) {\n return email.equals(\"[email protected]\");\n }",
"public boolean validateEmail() {\n\t\tString emailString = emailValidity.getText();\n\t\tString errorMsg = \"Email in use.\";\n\t\tboolean result = emailString.contains(errorMsg);\n\t\tif (result) {\n\t\t\tstoreVerificationResults(true, \"Email in use\");\n\t\t\tresult = true;\n\t\t} else {\n\t\t\tstoreVerificationResults(false, \"User able to reuse email id\");\n\t\t}\n\t\treturn result;\n\t}",
"public boolean isUserExist(String email, String Password);",
"public boolean isUserExist(String emailId) {\n\t\tboolean exists = false;\n\n\t\tfor (User user : userVO.getUsers()) {\n\n\t\t\tif (user.getEmail().equals(emailId)) {\n\t\t\t\texists = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\treturn exists;\n\t}",
"public boolean checkEmail(String Email) {\n SQLiteDatabase db = DatabaseHelper.this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from Users where Email=?\", new String[]{Email});\n if (cursor.getCount() > 0) {\n\n return false;\n } else {\n return true;\n }\n }",
"public boolean checkEmail(String email){\r\n boolean check = true;\r\n if(!email.matches(\"^[a-zA-Z0-9]+@[a-zA-Z0-9]+(.[a-zA-Z]{2,})$\")){\r\n check = false;\r\n }\r\n return check;\r\n }",
"private boolean isEmailValid(String email) {\n //TODO: Replace this with your own logic\n return email.contains(\"@\");\n }",
"private boolean isValidEmail(final String theEmail) {\n return theEmail.contains(\"@\");\n }",
"private boolean isEmailValid(String email) {\n if(Patterns.EMAIL_ADDRESS.matcher(email).matches()){\n\n return true;\n }else {\n return false;\n }\n// return email.contains(\"@\");\n }",
"public boolean isEmailValid(String email) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tQuery query=session.createQuery(\"from Customer where email=?\");\n\t\tquery.setString(0, email);\t\n\t\tCustomer customer=(Customer)query.uniqueResult();\n\t\tif(customer!=null)//duplicate email address, invalid\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t\t\n\t}",
"private boolean isEmailValid(String email) {\n //TODO: Replace this with your own logic\n return email.length() > 0;\n }"
] | [
"0.8265403",
"0.8265403",
"0.8265403",
"0.8265403",
"0.8265403",
"0.8239534",
"0.8057976",
"0.7999893",
"0.79895836",
"0.7947837",
"0.7934075",
"0.7934075",
"0.78521717",
"0.7839827",
"0.7823469",
"0.78186744",
"0.7789408",
"0.7743284",
"0.77052194",
"0.7680001",
"0.7644749",
"0.7628536",
"0.76181036",
"0.7582605",
"0.75723374",
"0.7486242",
"0.74830735",
"0.74355096",
"0.743093",
"0.74289215",
"0.7406105",
"0.7394652",
"0.73830116",
"0.7379569",
"0.7306236",
"0.7278835",
"0.72757304",
"0.7238853",
"0.72297156",
"0.7208793",
"0.7208793",
"0.7208793",
"0.7208793",
"0.71957934",
"0.71953",
"0.71876746",
"0.7177915",
"0.7162253",
"0.71599853",
"0.71568376",
"0.713451",
"0.7092796",
"0.7089824",
"0.7059274",
"0.7048164",
"0.7037837",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.70290387",
"0.7019845",
"0.70166886",
"0.70166886",
"0.70166886",
"0.70166886",
"0.70084137",
"0.70029575",
"0.69837856",
"0.6967929",
"0.6966763",
"0.6966381",
"0.69646144",
"0.69617593",
"0.69564456",
"0.6954153",
"0.69492126",
"0.6947224",
"0.69263846",
"0.6913359",
"0.69045645",
"0.68921876",
"0.6888189",
"0.6867958",
"0.68579084",
"0.6856111",
"0.68485254"
] | 0.87201107 | 0 |
Judge whether user has collected this video. | boolean isCollected(User user, String video_id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasVideo();",
"public boolean hasVideo() {\n\t\treturn this.recordingProperties.hasVideo();\n\t}",
"public boolean isChiefCaptured(){\n Chief chief = establishChief();\n return chief == null;\n }",
"public boolean hasBeenAcquired(){\r\n\t\treturn !(acquiredBy == null);\r\n\t}",
"public boolean isSetVideo() {\n return EncodingUtils.testBit(__isset_bitfield, __VIDEO_ISSET_ID);\n }",
"public boolean isVideoCoverPresent(){\r\n\t\t return isElementPresent(videoCover(), MEDIUMWAIT);\r\n\t}",
"boolean hasFairplay();",
"boolean hasPlayready();",
"public boolean taken() {\n return pawn.getLives() != 0;\n }",
"public synchronized boolean canWatch() {\n\t\t//boolean to keep track of theater vacancy \n\t\tboolean enterStatus;\n\t\t//when the movie is in session or the theater is full we can't enter\n\t\tif(Clock.isInSession ||Driver.currentVisitors == 8) { \n\t\t\tenterStatus = false;\n\t\t}else {\n\t\t\tenterStatus = true;\n\t\t}\n\t\treturn enterStatus;\n\t}",
"boolean hasCollectEndTime();",
"public boolean isSetIsvideo() {\n return __isset_bit_vector.get(__ISVIDEO_ISSET_ID);\n }",
"public boolean isStopOnceCollected() {\n return stopOnceCollected;\n }",
"public boolean userStillInGame() {\n return playersInGame.contains(humanPlayer);\n }",
"public boolean isCollected(News news){\n SQLiteDatabase db = getWritableDatabase();\n return isExist(db, TABLE_FAV_NAME, news, MODE_NO_OP);\n }",
"public boolean hasCaptured() {\n //YOUR CODE HERE\n\t return pieceCaptured;\n }",
"boolean hasVotingEndTime();",
"boolean hasFaceUp();",
"boolean isPlayable();",
"public boolean hasBeenShot(){\n return this.hasBeenShot;\n }",
"public Boolean waitingUser(){\n\t\tif (currentPlayer == 0){\n\t\t\tSystem.out.println(\"You are the first player, changing waitingUser to true\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"boolean hasWaitTime();",
"boolean hasFeedback();",
"public boolean hasUser(){\n return numUser < MAX_USER;\n }",
"public boolean isCollected(final Location agent) {\r\n return Location.distance(agent, mLocation) < 1;\r\n }",
"@java.lang.Override\n public boolean hasFairplay() {\n return fairplay_ != null;\n }",
"boolean hasCollectResult();",
"private boolean canResumeGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && isGamePaused();\n }",
"public synchronized boolean proceed() {\n if (started && !stopped && pause.availablePermits() == 0) {\n pause.release();\n return true;\n }\n return false;\n }",
"boolean hasUserMessage();",
"boolean hasJoinGameRequest();",
"public boolean isVideo()\n {return false;\n }",
"@java.lang.Override\n public boolean hasPlayready() {\n return playready_ != null;\n }",
"public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }",
"public synchronized boolean HaveWon() {\n if (maxScore <= score) {\n return true;\n }\n return false;\n }",
"void onUserAttentionGone() {\n if (isPlaying()) { //If video is playing pause it.\n mPauseTime = getCurrentPosition(); //mPauseTime is an int\n super.pause();\n }\n }",
"boolean hasVotingStartTime();",
"boolean hasSubmitTime();",
"public boolean completed(){\n return !activeAttackers() && !attackersLeft();\n }",
"boolean isAccepting();",
"public boolean isHasAlreadyReviewed() {\r\n boolean result = false;\r\n if (ui.isIsUserAuthenticated() && professionalStatus.isIsProfessional()) {\r\n Users user = ui.getUser();\r\n if (recipe != null) {\r\n for (Review rev : recipe.getReviews()) {\r\n if (rev.getReviewer().getUserName().equals(user.getUserName())) {\r\n result = true;\r\n break;\r\n }\r\n }//end for\r\n }\r\n }// end value != null\r\n return result;\r\n }",
"public abstract boolean hasBeenPickedUp();",
"boolean hasUseTime();",
"boolean hasUseTime();",
"public boolean didUserClick(){\n return userClick;\n }",
"boolean hasCaptureProbabilities();",
"public boolean isFinished() { \n // Check how much time has passed\n int passedTime = millis()- savedTime;\n if (passedTime > totalTime) {\n return true;\n } else {\n return false;\n }\n }",
"boolean hasSelectedUser();",
"protected boolean isFinished() {\n \tboolean distanceTarget = Robot.driveDistancePID.onRawTarget();\n \t\n \tdouble timeNow = timeSinceInitialized();\n \t\n \treturn (distanceTarget || (timeNow >= expireTime));\n }",
"boolean hasCampaignExperiment();",
"protected boolean isFinished()\n {\n return timer.get() > driveDuration;\n }",
"public boolean videoEnabled();",
"public boolean isShotDown(){\n return this.shotDown;\n }",
"public boolean hasPlayList(){\n return numPlayList < MAX_PLAYLIST;\n }",
"boolean hasEvent();",
"public boolean isCaptured(){\n\t\treturn isCaptured;\n\t}",
"boolean isTurnedFaceUp();",
"public boolean isCounting() {\n assert startTime != -1;\n return System.currentTimeMillis() - startTime <= durationMillis;\n }",
"boolean hasYoutubeChannel();",
"boolean isGameComplete();",
"boolean hasUsage();",
"public boolean hasReachedGoal(List<Integer> collectTime);",
"private boolean isUserVisibleEvent(int eventType) {\n return eventType != UsageEvents.Event.SYSTEM_INTERACTION\n && eventType != UsageEvents.Event.STANDBY_BUCKET_CHANGED;\n }",
"private boolean canPauseGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && gameStateManager.getState().equals(GameState.PLAY);\n }",
"boolean hasJoinGameResponse();",
"public boolean isDuringSportsActivity() {\n return (mStatus == 1);\n }",
"boolean hasIsRedeemed();",
"public boolean shouldPause(){\n for(int i:pauses){\n if(stageNum == i){\n return true;\n }\n }\n return false;\n }",
"boolean hasPlayerBag();",
"public Boolean getPlayerAwaitingAuthy () {\n\t\treturn this.playerAwaitingAuthy;\n\t}",
"public boolean statsRecorded() {\n\t\treturn !handStats.isEmpty();\n\t}",
"protected boolean isFinished() {\n \tif(timeSinceInitialized() >= 1.75){\n \t\treturn true;\n \t}\n return false;\n }",
"public boolean canStartMoreUsers() {\n boolean z;\n synchronized (this.mLock) {\n z = getRunningUsersLU().size() < this.mMaxRunningUsers;\n }\n return z;\n }",
"private boolean m11885j() {\n IUser a = ((C3592a) C3596c.m13172a(C3592a.class)).user().mo22165a();\n if (!C9290a.f25466a && a != null && a.isEnableShowCommerceSale()) {\n if (this.f9687p == LiveMode.VIDEO) {\n return true;\n }\n LiveMode liveMode = this.f9687p;\n LiveMode liveMode2 = LiveMode.THIRD_PARTY;\n }\n return false;\n }",
"public boolean hasGameEnded() {\n return winner != 0;\n }",
"@Override\n\tprotected boolean needUser(String eventName)\n\t{\n\t\treturn false;\n\t}",
"public boolean isAbleToClaim() {\n if (!isActive()) {\n return false;\n }\n\n ZonedDateTime now = ZonedDateTime.now();\n return now.toEpochSecond() >= claimFromDate.toEpochSecond();\n }",
"protected boolean hasGameStarted() {\r\n return super.hasGameStarted();\r\n }",
"boolean hasCampaignAudienceView();",
"boolean hasVisitEndtime();",
"boolean hasVisitEndtime();",
"public boolean hasBeenStarted() {\n return getLastAnswer() != null;\n }",
"public boolean isDecided() {\n return decided;\n }",
"public boolean isUploading(double clock);",
"public boolean isDisplayed() {\n return isValid() && (getLastSeen() > System.currentTimeMillis() - DAYS_30);\n }",
"boolean hasCampaign();",
"public boolean didStudentVote() {\n\t\treturn voted;\n\t}",
"boolean isLocalVideoAllowed(Call call);",
"public boolean Lost()\n {\n return this.numLives <= 0;\n }",
"boolean isPause();",
"public boolean isSetClickcount() {\n return __isset_bit_vector.get(__CLICKCOUNT_ISSET_ID);\n }",
"public boolean isMyTurn() {\n if (gameStatus == null || userId == null) return false;\n return userId.equals(gameStatus.getActivePlayer());\n }",
"public boolean hasUseTime() {\n return useTime_ != null;\n }",
"public boolean hasUseTime() {\n return useTime_ != null;\n }",
"private boolean checkIfFavorite() {\n if (favoriteIds.contains(movie.getId())) {\n movie.setFavorite(true);\n return true;\n }\n movie.setFavorite(false);\n return false;\n }",
"public static boolean isUserPassed() {\n return isUserPassed(user);\n }",
"public boolean isVideoStabilizationEnabled() {\n return Keys.isVideoStabilizationEnabled(this.mAppController.getSettingsManager());\n }",
"private boolean isOverReviewLimit(UUID theConferenceID) {\r\n\t\t// check to see if conference exists within reviewer list of confs or not\r\n\t\tif(this.isReviewerAssignedToConference(theConferenceID)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tboolean isOver = false;\r\n\t\tif (this.myConferencesAndAssignedManuscriptsList.get(theConferenceID).size() >= MAX_REVIEWS) {\r\n\t\t\tisOver = true;\r\n\t\t} \r\n\t\tSystem.out.println(isOver);\r\n\t\treturn isOver;\r\n\t}",
"public static boolean canVideoPause(Call call) {\n return isVideoCall(call) && call.getState() == Call.State.ACTIVE;\n }"
] | [
"0.6842876",
"0.6554807",
"0.62965727",
"0.6200545",
"0.6174175",
"0.60725623",
"0.6058568",
"0.6039393",
"0.603376",
"0.60231286",
"0.5993365",
"0.5948703",
"0.5930046",
"0.5881015",
"0.58621114",
"0.5856962",
"0.58380955",
"0.5791107",
"0.5780442",
"0.57780725",
"0.5767097",
"0.57309294",
"0.571502",
"0.5711155",
"0.5699715",
"0.56965476",
"0.5684945",
"0.56668",
"0.5660088",
"0.5641827",
"0.5620044",
"0.5606729",
"0.5588519",
"0.5579524",
"0.55770814",
"0.55738443",
"0.5569532",
"0.5568604",
"0.55591935",
"0.5554776",
"0.55545485",
"0.55358005",
"0.5531666",
"0.5531377",
"0.5531377",
"0.5527998",
"0.55130124",
"0.5503778",
"0.54876345",
"0.5486618",
"0.5485895",
"0.5474116",
"0.5468368",
"0.54674786",
"0.54614097",
"0.5459248",
"0.5456121",
"0.54546076",
"0.545328",
"0.5446737",
"0.5443864",
"0.5440955",
"0.54301184",
"0.5429572",
"0.5427584",
"0.54269993",
"0.5416116",
"0.5415789",
"0.54062074",
"0.5402535",
"0.54007125",
"0.5399768",
"0.53944284",
"0.53942287",
"0.5393732",
"0.5393233",
"0.53910697",
"0.5382133",
"0.5380915",
"0.53807443",
"0.53701776",
"0.53701776",
"0.53649503",
"0.536166",
"0.5357225",
"0.53546923",
"0.535409",
"0.53496826",
"0.53476524",
"0.53468394",
"0.534582",
"0.5343318",
"0.5341453",
"0.5338509",
"0.5338509",
"0.5337752",
"0.5336383",
"0.53273934",
"0.53272027",
"0.53256446"
] | 0.8063417 | 0 |
Add a video to video_collection. | void addVideoCollection(User user, String video_id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void addVideo(String videoId) {\n\t\taddVideo(videoId, -1, -1);\n\t}",
"Builder addVideo(VideoObject value);",
"public boolean addVideo(Video newVideo)throws NullPointerException;",
"@Override\n public Media addVideo(Media media) {\n try {\n return mediaDao.addVideo(media);\n } catch (FailedOperationException e) {\n LOG.error(e.getMessage(), e);\n throw new RuntimeException(e.getMessage());\n }\n }",
"public MentorConnectRequestCompose addVideo()\n\t{\n\t\tmentorConnectRequestObjects.videoButton.click();\n\t\tmentorConnectRequestObjects.videoURLField.sendKeys(mentorConnectRequestObjects.videoURL);\n\t\tmentorConnectRequestObjects.postVideoButton.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}",
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.POST)\n\tpublic @ResponseBody Video addVideo(@RequestBody Video v){\n\t\tcheckAndSetId(v);\n\t\tv.setDataUrl(getDataUrl(v.getId()));\n\t\tvideos.add(v);\n\t\t\n\t\treturn v;\n\t}",
"Builder addVideo(String value);",
"@RequestMapping(value = VideoSvcApi.VIDEO_SVC_PATH, method = RequestMethod.POST)\n\tpublic @ResponseBody Video addVideo(@RequestBody Video v) {\n\t\tvideos.save(v);\n\t\treturn v;\n\t}",
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.POST)\n\tpublic Video addVideo(Video v) {\n\t\t// TODONE Implement the logic to store the meta data.\n\t\tassert(v != null);\n\t\tv = mVideoRepository.save(v);\n\t\t\n\t\tassert(v != null);\n\t\t// TODO Fix filename & path\n\t\tv.setDataUrl(getUrlBaseForLocalServer() \n\t\t\t\t+ VideoSvcApi.VIDEO_DATA_PATH.replace(\n\t\t\t\t\t\t\"{\" + VideoSvcApi.ID_PARAMETER + \"}\",\n\t\t\t\t\t\t\"\" + v.getId()));\n\t\t\n\t\treturn v;\n\t}",
"public void addVideo(Video video, User user) throws SQLException {\n\t\tConnection con = DBManager.getInstance().getConnection();\r\n\t\tPreparedStatement st;\r\n\t\t\r\n\t\t\tst = con.prepareStatement(\"INSERT INTO videos (name, path, views,date,description) VALUES (?,?,?,?,?);\");\r\n\t\t\tst.setString(1, video.getName());\r\n\t\t\tst.setString(2, video.getName());\r\n\t\t\tst.setInt(3, video.getViews());\r\n\t\t\t// TODO st.setTimestamp(4, video.getDate());\r\n\t\t\t// st.setPublisher(.....,video.getPublisher());\r\n\t\t\tst.setString(5, video.getDescription());\r\n\t\t\tst.executeUpdate();\r\n\t\t\r\n\r\n\t}",
"@Override\n\tpublic boolean addCourseVideo(CourseVideo courseVideo) {\n\t\tSession session = DataBaseHelper.getSession();\n\t\tsession.clear();\n\t\tTransaction transaction = session.beginTransaction();\n\t\ttry {\n\t\t\tsession.save(courseVideo);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\ttransaction.commit();\n\t\treturn true;\n\t}",
"public abstract void addReceivedVideo(Video video) throws UnsuportedOperationException;",
"public abstract void addReceivedVideo(Video video) throws UnsuportedOperationException;",
"@Override\n public void addVideo(String videoId, long startTime, long endTime) {\n\n\t\ttry {\n\t\t\tJSONObject allVids = super.getJSONObject(VIDEO_LIST);\n\t\t\tJSONObject vidTimes = new JSONObject();\n\t\t\tvidTimes.put(START_TIME, startTime);\n\t\t\tvidTimes.put(END_TIME, endTime);\n\t\t\tallVids.put(videoId, vidTimes);\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public DocumentBodyBlock video(DocumentBodyVideo video) {\n this.video = video;\n return this;\n }",
"@RequestMapping(value=VideoSvcApi.VIDEO_DATA_PATH, method=RequestMethod.POST)\n\tpublic @ResponseBody VideoStatus addVideo(@PathVariable long id, \n\t\t\t@RequestParam(\"data\") MultipartFile videoFile, \n\t\t\tHttpServletResponse response) {\n\t\t// TODONE Implement the logic to store the video data.\n\t\tassert(videos != null);\n\t\t\n\t\tLong longId = new Long(id);\n\t\tif (videos.containsKey(longId)) {\n\t\t\tVideo v = videos.get(longId);\n\t\t\tassert(v != null);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tVideoFileManager.get().saveVideoData(v, \n\t\t\t\t\t\tvideoFile.getInputStream());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tresponse.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n\t\t\t}\n\t\t\t//return new VideoStatus(VideoState.READY);\n\t\t} else {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_NOT_FOUND);\n\t\t}\n\t\t//return null;\n\t\treturn new VideoStatus(VideoState.READY);\n\t}",
"Builder addVideo(VideoObject.Builder value);",
"public abstract void addSentVideo(Video video) throws UnsuportedOperationException;",
"public abstract void addSentVideo(Video video) throws UnsuportedOperationException;",
"public ContentCard video(String video) {\n this.video = video;\n return this;\n }",
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.POST)\n\tpublic @ResponseBody Video addVideoMetadata(@RequestBody Video v, \n\t\t\tHttpServletResponse response) {\n\t\t// TODONE Implement the logic to store the meta data.\n\t\tassert(v != null);\n\t\t\n\t\tLong id = initializeVideo(v);\n\t\tif (id == null) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t\t\n\t\treturn videos.get(id);\n\t}",
"Movie addMovie(final Movie movie);",
"void addPlayRecord(User user, String video_id);",
"@Override\n\tpublic void addActivity_video(String periodId, String fileVideoName,\n\t\t\tString fileUrlVideo, String typeVideo, HttpServletRequest request,\n\t\t\tModelMap map) {\n\t\tUsers user = (Users) request.getAttribute(Constants.USER_IN_REQUEST);\n\t\tString videoUrl[]=fileUrlVideo.split(\",\");\n\t\tString videoName[]=fileVideoName.split(\",\");\n\t\tString videoType[]=typeVideo.split(\",\");\n\t\tString str_videoId=\"\";\n\t\tfor (int i = 0; i < videoUrl.length; i++) {\n\t\t\tFiles files=new Files();\n\t\t\tfiles.setType(videoType[i]);\n\t\t\tfiles.setFileUrl(videoUrl[i]);\n\t\t\tfiles.setFileName(videoName[i]);\n\t\t\tfiles.setCreateDate(new Date());\n\t\t\tfiles.setCreateId(user.getUserName());\n\t\t\tfiles.setBusinessType(\"activity\");\n\t\t\tfilesService.save(files);\n\t\t\tstr_videoId+=files.getFileId()+\",\";\n\t\t}\n\t\tActivitiesPeriod ap=aperiodService.findById(Integer.parseInt(periodId));\n\t\tif(ap.getFileId()!=null)\n\t\t{\n\t\t\tstr_videoId+=ap.getFileId()+\",\";\n\t\t}\n\t\taperiodService.update(\"update ActivitiesPeriod set fileId=? where activitiesPeriodId=?\", str_videoId.substring(0, str_videoId.length()-1),Integer.parseInt(periodId));\n\t}",
"public void setVideo(String video) {\n this.video = video;\n }",
"private void updateVideo() {\n ArrayList<String> movieVideoArrayList = new ArrayList<String>();\n videoRecyclerView = findViewById(R.id.trailer_recycler_view);\n videoRecyclerView.setLayoutManager(new GridLayoutManager(this, 4));\n movieVideoAdapter = new MovieVideoAdapter(movieVideoArrayList, MovieDetailActivity.this);\n videoRecyclerView.setAdapter(movieVideoAdapter);\n }",
"@Override\n\tpublic MovieBean addMovie(MovieBean bean) {\n\n\t\treturn dao.addMovie(bean);\n\t}",
"public boolean removeVideo(Video video)throws NullPointerException;",
"void removeVideoFromCollection(User user, String video_id);",
"@GetMapping(\"/cartItemVideos/addNew/{id}\")\r\n\tpublic RedirectView addVideo(@PathVariable(\"id\") Integer videoId, @AuthenticationPrincipal Authentication authentication, RedirectAttributes redir) {\r\n\t\tBuyer buyer = buyerService.findBuyerByEmail(SecurityContextHolder.getContext().getAuthentication().getName());\r\n\t\t\r\n\t\tCart currentCart = cartService.findCurrentByBuyer(buyer);\r\n\t\tif(currentCart == null) {\r\n\t\t\tcurrentCart = new Cart();\r\n\t\t\tcurrentCart.setCreatedDate(new Date());\r\n\t\t\tcurrentCart.setSubmitted(false);\r\n\t\t\tcurrentCart.setBuyer(buyer);\r\n\t\t\tcurrentCart.setBooksLink(new ArrayList<>());\r\n\t\t\tcurrentCart.setMusicsLink(new ArrayList<>());\r\n\t\t\tcurrentCart.setVideosLink(new ArrayList<>());\r\n\t\t}\r\n\t\t\r\n\t\tList<Integer> videoIds = currentCart.getVideosLink().stream().map(CartVideoLink::getVideo).map(Video::getId).collect(Collectors.toList());\r\n\t\tif(videoIds.contains(videoId)) {\r\n\t\t\tCartVideoLink currentVideo = currentCart.getVideosLink().stream().filter(b -> b.getVideo().getId().equals(videoId)).findFirst().get(); //quabtity\r\n\t\t\tcurrentVideo.setQuantity(currentVideo.getQuantity() + 1);\r\n\t\t} else {\r\n\t\t\tCartVideoLink newCartVideoLink = new CartVideoLink();\r\n\t\t\tnewCartVideoLink.setVideo(videoService.findVideoById(videoId));\r\n\t\t\tnewCartVideoLink.setCart(currentCart);\r\n\t\t\tCartVideoLinkId id = new CartVideoLinkId();\r\n\t\t\tid.setVideoId(videoId);\r\n\t\t\tid.setCartId(currentCart.getId());\r\n\t\t\tnewCartVideoLink.setId(id); \r\n\t\t\tnewCartVideoLink.setQuantity(1);\r\n\t\t\tcurrentCart.getVideosLink().add(newCartVideoLink);\r\n\t\t}\r\n\t\t\r\n\t\tcartService.saveCart(currentCart);\r\n\t\t\r\n\t\tRedirectView redirectView= new RedirectView(\"/videos\",true);\r\n\t redir.addFlashAttribute(\"messageAddVideoToCart\", \"You successfully added video to cart\");\r\n\t \r\n\t return redirectView;\r\n\t\t\r\n//\t\treturn \"redirect:/videos\";\r\n\t}",
"public void setVideo(File video){\n\t\tthis.video = video;\n\t}",
"@POST\n\t@Path(\"addtocollec\")\n\tpublic Response addToCollection(JsonMyMovie movie) {\n\t\tUsermovie um = new Usermovie();\n\t\tUsermoviePK umid = new UsermoviePK();\n\t\tumid.setMovie(movie.getMovieId().intValue());\n\t\tumid.setUser(movie.getUserId().intValue());\n\t\tum.setId(umid);\n\t\tum.setMovieBean(movieDao.getMovie(movie.getMovieId()));\n\t\tum.setUserBean(userDAO.getUser(movie.getUserId()));\n\t\tum.setComment(movie.getComment());\n\t\tum.setRating(movie.getRating());\n\t\tusermovieDAO.saveUsermovie(um);\n\t\treturn Response.ok(new JsonSimpleResponse(true),\n\t\t\t\tMediaType.APPLICATION_JSON).build();\n\t}",
"public static void registerVideoEntity(com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager manager) {\n manager\n .videos()\n .define(\"video1\")\n .withExistingVideoAnalyzer(\"testrg\", \"testaccount2\")\n .withTitle(\"Sample Title 1\")\n .withDescription(\"Sample Description 1\")\n .create();\n }",
"private void addMovieToDb() {\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(MovieColumns.ADULT,mMovie.getAdult());\n contentValues.put(MovieColumns.BACKDROP_PATH,mMovie.getBackdropPath());\n contentValues.put(MovieColumns.GENRE,Utils.arrayToString(mMovie.getGenreIds()));\n contentValues.put(MovieColumns.MOV_ID,mMovie.getMovieId());\n contentValues.put(MovieColumns.ORIGINAL_LANGUAGE,mMovie.getOrigLanguage());\n contentValues.put(MovieColumns.ORIGINAL_TITLE,mMovie.getOrigTitle());\n contentValues.put(MovieColumns.OVERVIEW,mMovie.getOverview());\n contentValues.put(MovieColumns.RELEASE_DATE,mMovie.getReleaseDate());\n contentValues.put(MovieColumns.POSTER_PATH,mMovie.getPosterPath());\n contentValues.put(MovieColumns.POPULARITY,mMovie.getPopularity());\n contentValues.put(MovieColumns.TITLE,mMovie.getTitle());\n contentValues.put(MovieColumns.VIDEO, mMovie.getVideo());\n contentValues.put(MovieColumns.VOTE_AVERAGE, mMovie.getVoteAverage());\n contentValues.put(MovieColumns.VOTE_COUNT, mMovie.getVoteCount());\n\n try {\n getActivity().getContentResolver().insert(MoviesProvider.Movies.MOVIES_URI, contentValues);\n Toast.makeText(getContext(),getString(R.string.movie_added_as_favorite),Toast.LENGTH_SHORT).show();\n }catch (Exception ex){\n if(ex instanceof SQLiteConstraintException){\n Toast.makeText(getContext(), getString(R.string.movie_already_added_as_favorite), Toast.LENGTH_SHORT).show();\n }else {\n Toast.makeText(getContext(), getString(R.string.movie_added_as_favorite_problem), Toast.LENGTH_SHORT).show();\n }\n }\n }",
"public void setVideo(Video video) {\r\n this.video = video;\r\n\r\n nameField.setText(video.getName());\r\n urlField.setText(video.getUrl());\r\n }",
"int insert(TVideo record);",
"public void addSimilarMovie(Movie movie){\n\t \tsimilarMovies.add(movie);\n\t }",
"com.google.ads.googleads.v6.resources.VideoOrBuilder getVideoOrBuilder();",
"public Video toVideo(VideoParam videoParam) {\r\n Video video = new Video();\r\n if (null == videoParam) return video;\r\n video.setId(videoParam.getId());\r\n video.setTitle(videoParam.getTitle());\r\n video.setShortTitle(videoParam.getShortTitle());\r\n video.setDesc(videoParam.getDesc());\r\n video.setShareDesc(videoParam.getShareDesc());\r\n video.setChannel(videoParam.getChannel());\r\n video.setSubChannel(videoParam.getSubChannel());\r\n video.setCid(videoParam.getCid());\r\n if (null != videoParam.getVideoType()) {\r\n VideoContentType videoContentType = VideoContentType.findByValue(videoParam.getVideoType());\r\n video.setVideoType(null == videoContentType ? VideoContentType.OTHER : videoContentType);\r\n }\r\n video.setDrmFlag(videoParam.getDrmFlag());\r\n video.setIsOverView(videoParam.getIsOverView());\r\n video.setPublishSetting(videoParam.getPublishSetting());\r\n video.setShieldAreaType(videoParam.getShieldAreaType());\r\n video.setShieldCountries(this.getCountrySubdivisionCodeSet(videoParam.getShieldCountries()));\r\n video.setRecommend2Homepage(videoParam.getRecommend2Homepage());\r\n video.setAid(null == videoParam.getAid() ? 0L : videoParam.getAid());\r\n video.setRelatedIds(this.getLongSet(videoParam.getRelatedIds()));\r\n video.setDeleted(videoParam.getDeleted());\r\n video.setPlayPlatforms(this.getPlatformSet(videoParam.getPlayPlatforms()));\r\n video.setVrsPlayPlatforms(this.getPlatformSet(videoParam.getVrsPlayPlatforms()));\r\n if (!StringUtils.isEmpty(videoParam.getImages())) {\r\n Type type = new TypeReference<Map<String, ImageUrlExt>>() {\r\n }.getType();\r\n Map<String, ImageUrlExt> coverImage = JSONObject.parseObject(videoParam.getImages(), type);\r\n video.setImages(coverImage);\r\n }\r\n video.setIsClone(videoParam.getClone());\r\n video.setDuration(videoParam.getDuration());\r\n video.setRelatedIds(this.getLongSet(videoParam.getRelatedIds()));\r\n video.setPeriod(videoParam.getPeriod());\r\n if (null != videoParam.getContentRating()) {\r\n ContentRating contentRating = ContentRating.findByValue(videoParam.getContentRating());\r\n video.setContentRating(null == contentRating ? ContentRating.ALL : contentRating);\r\n }\r\n video.setIsPay(videoParam.getIsPay());\r\n video.setPayPlatforms(this.getPlatformSet(videoParam.getPayPlatforms()));\r\n video.setPublishTime(videoParam.getPublishTime());\r\n// video.setMarkCountry(this.getCountrySubdivisionCodeSet(videoParam.getMarkCountry()));\r\n video.setReasonOfExReview(videoParam.getReasonOfExReview());\r\n video.setStarLevel(videoParam.getStarLevel());\r\n video.setSource(videoParam.getSource());\r\n video.setVideoAuthor(videoParam.getVideoAuthor());\r\n video.setStatements(Arrays.asList(new String[]{videoParam.getStatement(), videoParam.getStatement2()}));\r\n video.setCommentFlag(videoParam.isCommentFlag());\r\n video.setDownloadPlatforms(this.getPlatformSet(videoParam.getDownloadPlatforms()));\r\n video.setRecordId(videoParam.getPlaybackId());\r\n video.setHighlightId(videoParam.getHighlightId());\r\n video.setSelfProducedProgramId(videoParam.getSelfProducedProgramId());\r\n video.setCloneAids(new ArrayList<>(this.getLongSet(videoParam.getCloneAids())));\r\n video.setMatchIds(Sets.newHashSet(LeStringUtils.commaString2LongList(videoParam.getMatchIds())));\r\n video.setRelatedContents(LeStringUtils.commaString2LongList(videoParam.getRelatedContents()));\r\n video.setAllImages(LeStringUtils.commaString2StringList(videoParam.getAllImages()));\r\n return video;\r\n }",
"@Override\n public void onResponse(JSONObject response) {\n try {\n JSONObject videoJson = response;\n JSONArray videoArray = videoJson.getJSONArray(\"items\");\n for (int i = 0; i < videoArray.length(); i++) {\n JSONObject videoObject = videoArray.getJSONObject(i);\n JSONObject snippet = videoObject.getJSONObject(TAG_SNIPPET);\n JSONObject contentDetails = videoObject.getJSONObject(TAG_CONTENTDETAILS);\n JSONObject thumbnails = snippet.getJSONObject(TAG_THUMB).getJSONObject(TAG_THUMB_MEDIUM);\n\n String title = snippet.getString(TAG_TITLE);\n String description = snippet.getString(TAG_DESCRIPTION);\n String id = contentDetails.getString(TAG_ID);\n String thumbnailUrl = thumbnails.getString(TAG_THUMB_MEDIUM_URL);\n\n videoContent.addItem(videoContent.createVideoItem(id,title,description,thumbnailUrl));\n }\n\n progressBar.setVisibility(View.GONE);\n videoRecyclerViewAdapter.notifyDataSetChanged();\n\n\n }\n // Try and catch are included to handle any errors due to JSON\n catch (JSONException e) {\n // If an error occurs, this prints the error to the log\n e.printStackTrace();\n }\n }",
"com.google.ads.googleads.v6.resources.Video getVideo();",
"public void addFilm(Film film){\r\n this.cinema_film_list.add(film);\r\n }",
"public boolean add(Movie a)\n\t{\n\t\tfor (Movie b:this){\n\t\t\tif(a.equals(b)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn super.add(a);\n\t}",
"public void setVideoUrl(String newVideoUrl) {\n this.videoUrl = newVideoUrl;\n }",
"private void addYoutubePlayerFragment() {\n YouTubePlayerSupportFragment youtubePlayerFragment = new YouTubePlayerSupportFragment();\n //TODO: figure out a better way to store API keys\n String apiKey = ((GlobalApplicationState) this.getApplication()).getYoutubeApiKey();\n youtubePlayerFragment.initialize(apiKey, new YouTubePlayer.OnInitializedListener() {\n @Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n //TODO: peek first and then cue video\n // and find some way to peek every xx seconds if\n // the queue is empty\n mYoutubePlayer = youTubePlayer;\n Log.v(LOG_TAG, \"Successfully initialized Youtube player\");\n\n GetNextMediaTask getNextMediaTask = new GetNextMediaTask();\n getNextMediaTask.execute();\n setPlayerEventListeners();\n }\n\n @Override\n public void onInitializationFailure(YouTubePlayer.Provider provider,\n YouTubeInitializationResult youTubeInitializationResult) {\n //TODO: Figure out what to actually do if it fails...\n String toastMessage = \"): Failed to initialize Youtube player.\";\n Toast toast = Toast.makeText(getApplicationContext(),\n toastMessage, Toast.LENGTH_SHORT);\n toast.show();\n }\n });\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fragment_media, youtubePlayerFragment)\n .commit();\n ((LinearLayout) findViewById(R.id.guest_layout)).setVisibility(View.GONE);\n }",
"MovieVideo getMovieVideoByVideoid(String videoid);",
"public void setVideoGuid(java.lang.String videoGuid) {\n this.videoGuid = videoGuid;\n }",
"int insertSelective(TVideo record);",
"public Html5Video(String id, IModel<List<MediaSource>> model)\n\t{\n\t\tsuper(id, model);\n\t}",
"private void addVideoChapter(ChapterThumbnail chapterThumbnail) {\n YuvImage yuvImage;\n ByteArrayOutputStream byteArrayOutputStream;\n RecordingIndicator recordingIndicator = this.getBaseLayout().getRecordingIndicator();\n if (!(recordingIndicator.getVisibility() == 0 && (yuvImage = new YuvImage(chapterThumbnail.yuvData, chapterThumbnail.format.intValue(), chapterThumbnail.rect.width(), chapterThumbnail.rect.height(), null)).compressToJpeg(chapterThumbnail.rect, 80, (OutputStream)(byteArrayOutputStream = new ByteArrayOutputStream())))) {\n return;\n }\n recordingIndicator.addChapter(byteArrayOutputStream.toByteArray(), chapterThumbnail.orientation());\n }",
"public void setMovieArrayList(MovieClass newMovieObject)\n {\n movieArrayList.add(newMovieObject);\n }",
"public static void add(Collection collection) {\n\t\t\n\t}",
"public void uploadvideo(View view) {\n Helper.hideSoftKeyboard(getActivity());\n //getting name for the image\n String name = hashtag.getText().toString().trim();\n\n //getting the actual path of the image\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n uploadReceiver.setDelegate(this);\n uploadReceiver.setUploadID(uploadId);\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, Constants.UPLOAD_VIDEO)\n .addFileToUpload(file, \"file\") //Adding file\n .addParameter(\"category_id\", category_id) //Adding text parameter to the request//Adding text parameter to the request\n .addParameter(\"name\", name) //Adding text parameter to the request\n .addHeader(\"Authorization\", token)\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n showToast(view);\n } catch (Exception exc) {\n\n }\n }",
"public void addMovie(m value) {\r\n\t\t//Empty List Case\r\n\t\tif (head == null) {\r\n\t\t\thead = tail = new MovieListNode<>(value, null, null);\t//first node added to list\r\n\t\t}\r\n\t\t//if list already has a head - add to tail\r\n\t\telse {\r\n\t\t\ttail.next = new MovieListNode<>(value, tail, null);\t//adds another node directly after the previous node\r\n\r\n\t\t\t//\t\t\tSystem.out.println(\"Previous Movie: \" + tail);\t\r\n\t\t\t//^^^^TEST: checks the previous tail to make sure it's pointed to by current\r\n\t\t\ttail = tail.next;\r\n\t\t}\r\n\t}",
"public long addMovieToWatchlist(long movieId) {\n if (!isMovieInWatchlist(movieId)) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = insertMovieInWatchlist(movieId);\n long rowId = database.insert(WatchlistMoviesEntry.TABLE_NAME, null, values);\n database.close();\n return rowId;\n } else return 0;\n }",
"public void insertBig2VideoNode(Big2VideoSchemaBean value){\r\n\t\tdbDataAccess.initTransaction();\r\n\r\n\t\tdbDataAccess.insertBig2Video(value, TextAnalytics.Text);\r\n\r\n\t\tdbDataAccess.commit();\r\n\t\tdbDataAccess.closeTransaction();\r\n\t}",
"public static boolean addMovie(SQLiteDatabase db, ContentValues cv){\n long _id;\n try{\n _id = db.insert(\"MOVIE\", null, cv);\n //Log.v(TAG, \"Movie Added with ID \"+_id);\n /*\n if(context != null){\n Toast.makeText(context, \"Movie added to Favorites\", Toast.LENGTH_SHORT).show();\n }\n */\n return true;\n }catch (Exception e){\n Log.e(TAG, e.getMessage());\n return false;\n }\n }",
"int insert(Videoinfo record);",
"private void addItem(Movie item) {\n mDataset.add(item);\n notifyItemInserted(mDataset.size() );\n notifyDataSetChanged();\n }",
"public long insert(MovieUrl movieUrl){\n ContentValues initialValues = new ContentValues();\n initialValues.put(DbMediaContract.VideoColumns.TITLE_VIDEO, movieUrl.getTitleMovie());\n initialValues.put(DbMediaContract.VideoColumns.URL_VIDEO, movieUrl.getUrlMovie());\n return database.insert(DATABASE_TABLE, null, initialValues);\n }",
"public static void addMovie(String id, String title, MovieCode code) {\n\t\tif (movieList.stream().noneMatch(movie -> movie.getId().equals(id))) {\n\t\t\tmovieList.add(new Movie(id, title, code));\n\t\t}\n\t}",
"public ArcEntryDescriptor findVideo(String videoQueryString) throws Exception {\n SolrQuery solrQuery = new SolrQuery();\n solrQuery.setQuery(videoQueryString);\n SolrUtils.setSolrParams(solrQuery);\n solrQuery.setRows(1); // Just get one result\n\n solrQuery.set(\"facet\", \"false\"); // Very important. Must overwrite to false. Facets are very slow and expensive.\n solrQuery.add(\"fq\", \"content_type_norm:video\"); // only videos\n solrQuery.add(\"fq\", SolrUtils.NO_REVISIT_FILTER);\n solrQuery.add(\"fl\", SolrUtils.indexDocFieldList);\n\n QueryResponse response = solrServer.query(solrQuery, METHOD.POST);\n\n SolrDocumentList queryResults = response.getResults();\n if (queryResults.getNumFound() == 0) {\n return null;\n } else {\n return SolrUtils.solrDocument2ArcEntryDescriptor(queryResults.get(0));\n }\n }",
"public Video(String nombre) {\n super(nombre);\n }",
"public Video() {\n\t}",
"void addVideoListener(CallPeer peer, VideoListener listener);",
"public void addMovieToFavorites(Movie movie) {\n movie.setFavorite(true);\n isFavorite = true;\n //change the star from gray to yellow\n star.setImageResource(R.drawable.ic_grade_yellow_36px);\n //save the poster in local storage\n String imageName = saveMoviePoster();\n\n //load the necessary movie fields into the ContentValues object\n ContentValues values = new ContentValues();\n values.put(FavoriteMoviesContract.MovieEntry.MOVIEDB_ID, movie.getId());\n values.put(FavoriteMoviesContract.MovieEntry.AVERAGE_VOTE, movie.getVoteAverage());\n values.put(FavoriteMoviesContract.MovieEntry.ORIGINAL_TITLE, movie.getOriginalTitle());\n values.put(FavoriteMoviesContract.MovieEntry.RELEASE_YEAR, movie.getReleaseYear());\n values.put(FavoriteMoviesContract.MovieEntry.RUNTIME, movie.getRuntime());\n values.put(FavoriteMoviesContract.MovieEntry.SYNOPSIS, movie.getSynopsis());\n values.put(FavoriteMoviesContract.MovieEntry.POSTER_IMAGE_NAME, imageName);\n\n //insert the movie into the Favorites db\n Uri uri = getActivity().getContentResolver().\n insert(FavoriteMoviesContract.MovieEntry.CONTENT_URI, values);\n\n if (uri != null) {\n String successMessage = \"You have successfully added \" + movie.getOriginalTitle() +\n \" to the Favorites collection\";\n Toast.makeText(getActivity(), successMessage, Toast.LENGTH_LONG).show();\n }\n }",
"public String insertMovie(Movie movie)\r\n\t{\n\t\tthis.mongo.insert(movie);\r\n\t\treturn null;\r\n\t}",
"private Long initializeVideo(Video v) {\n\t\tLong id = new Long(v.getId());\n\t\tif (id == 0 && !videos.containsKey(id)) {\n\t\t\tid = new Long(idGenerator.incrementAndGet());\n\t\t\tv.setId(id.longValue());\n\t\t\tv.setDataUrl(getUrlBaseForLocalServer() \n\t\t\t\t\t+ VideoSvcApi.VIDEO_DATA_PATH.replaceFirst(\n\t\t\t\t\t\t\t\"\\\\{id\\\\}\", id.toString()));\n\t\t\tvideos.put(id, v);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t\treturn id;\n\t}",
"public void addMovie(final Movie movie) {\n if (!this.getMovieNames().contains(movie.getName())) {\n this.movies.add(movie);\n }\n }",
"public Video(long id,\n String title,\n long duration,\n String contentType,\n String dataUrl) {\n this.id = id;\n this.title = title;\n this.duration = duration;\n this.contentType = contentType;\n this.dataUrl = dataUrl;\n }",
"public void addVirtualMachine(VirtualMachine vm){\n\t\tvms.add(vm);\n\t}",
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.PUT)\n\tpublic @ResponseBody Video updateVideoMetadata(@RequestBody Video v, \n\t\t\tHttpServletResponse response) {\n\t\t// TODONE Implement the logic to store the meta data.\n\t\tassert(v != null);\n\t\t\n\t\tLong id = new Long(v.getId());\n\t\tif (id != 0 && videos.containsKey(id)) {\n\t\t\tvideos.replace(id, v);\n\t\t} else{\n\t\t\tresponse.setStatus(HttpServletResponse.SC_NOT_FOUND);\n\t\t}\n\t\treturn videos.get(id);\n\t}",
"public boolean addTomediaCatalogueList(Media media)\r\n { \r\n if (this.findMediaByTitle(media.getMediaName()) == null)\r\n {\r\n this.mediaCatalogueList.add(media);\r\n this.catalogueDAO.save(this.mediaCatalogueList);\r\n return true;\r\n }\r\n \r\n return false;\r\n }",
"@Override\n\tpublic List<CourseVideo> getCourseVideo(int courseid) {\n\t\tSession session = DataBaseHelper.getSession();\n\t\tsession.clear();\n\t\tList list = session.createSQLQuery(\"select * from coursevideo where courseid=\"+courseid).list();\n\t\tList<CourseVideo> courseVideos;\n\t\tif (list.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tcourseVideos = new ArrayList<>();\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tObject[] obj = (Object[]) list.get(i);\n\t\t\t\tCourseVideo courseVideo = new CourseVideo();\n\t\t\t\tcourseVideo.setId((Integer)obj[0]);\n\t\t\t\tcourseVideo.setCourseid((Integer)obj[1]);\n\t\t\t\tcourseVideo.setCoursename((String)obj[2]);\n\t\t\t\tcourseVideo.setCourseurl((String)obj[3]);\n\t\t\t\tcourseVideos.add(courseVideo);\n\t\t\t}\n\t\t\treturn courseVideos;\n\t\t}\n\t}",
"@Override\n\tpublic void addFilm(com.dutproject.cinemaproject.model.bean.Film film) {\n\t\t\n\t}",
"public Video(String title,\n long duration,\n String contentType) {\n this.title = title;\n this.duration = duration;\n this.contentType = contentType;\n }",
"private void populateVideos(Bundle savedInstanceState) {\n LinearLayoutManager layoutManager =\n new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\n mBinding.movieVideos.videosList.setLayoutManager(layoutManager);\n mBinding.movieVideos.videosList.setHasFixedSize(true);\n mBinding.movieVideos.videosList.setNestedScrollingEnabled(false);\n\n RecyclerView.ItemDecoration itemDecoration = new HorizontalItemDecoration(this);\n mBinding.movieVideos.videosList.addItemDecoration(itemDecoration);\n\n mVideoAdapter = new VideoAdapter(this);\n mBinding.movieVideos.videosList.setAdapter(mVideoAdapter);\n\n if (savedInstanceState != null && savedInstanceState.containsKey(BUNDLE_VIDEOS)) {\n mVideoAdapter.addVideosList(savedInstanceState.\n <Video>getParcelableArrayList(BUNDLE_VIDEOS));\n if (mVideoAdapter.getItemCount() == 0) {\n mBinding.movieVideos.videosLabel.setVisibility(View.GONE);\n }\n } else {\n Call<ApiResponse<Video>> call = mApiClient.getVideos(movie.movieId);\n\n call.enqueue(new Callback<ApiResponse<Video>>() {\n @Override\n public void onResponse(Call<ApiResponse<Video>> call,\n Response<ApiResponse<Video>> response) {\n List<Video> result = response.body().results;\n mVideoAdapter.addVideosList(result);\n if (result.size() == 0) {\n mBinding.movieVideos.videosLabel.setVisibility(View.GONE);\n }\n }\n\n @Override\n public void onFailure(Call<ApiResponse<Video>> call, Throwable t) {\n Toast.makeText(DetailActivity.this,\n getString(R.string.connection_error), Toast.LENGTH_LONG).show();\n }\n });\n }\n }",
"public void addMovie(String t, int r) throws IllegalArgumentException\n\t{\n\t\tif(this.containsMovie(t))\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif( r < 0 || r > 100)\n\t\t{\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\t\n\t\tlist_of_movies.add(new Movie(t,r));\n\t}",
"String getVideoId() {\r\n return videoId;\r\n }",
"public void addCollection(Collection<E> coll) {\n collectionList.add(coll);\n }",
"@Override\n public void onListItemClick(Video clickedVideo) {\n }",
"private void navigateToVideoFragment(\n FragmentTransaction fragmentTransaction, int view_id) {\n final Fragment videoFragment = new VideoFragment();\n Bundle args = new Bundle();\n args.putString(\"text\", text);\n args.putString(\"caption\", caption);\n args.putParcelableArrayList(\"allStories\", allStories);\n videoFragment.setArguments(args);\n fragmentTransaction.replace(view_id, videoFragment)\n .commit();\n }",
"String getVideoId() {\n return videoId;\n }",
"public Video getVideoById(Long id) {\n log.info(\"Retrieved video with id \" + id);\n return videoRepository.findById(id)\n .orElseThrow(\n () -> new IllegalArgumentException(MessageFormat.format(\"Video with id {0} not found\", id)\n )\n );\n }",
"private void parseJsonAndReturnUrl(String jsonData){\n String videoUri, videoName;\n videos = new ArrayList<>();\n Video video = null;\n try {\n JSONObject root = new JSONObject(jsonData);\n JSONArray topicsArray = root.getJSONArray(\"topic_data\");\n if(topicsArray.length() == 0){\n return;\n }\n for(int i=0; i< topicsArray.length(); i++){\n JSONArray topics = topicsArray.getJSONArray(i);\n videoUri = topics.getString(3);\n\n Log.d(TAG, \"video path: \"+videoUri);\n\n videoName = topics.getString(0);\n\n Log.d(TAG, \"video name: \"+videoUri);\n\n video = new Video();\n\n video.setmVideoName(videoName);\n video.setmVideoUrl(videoUri);\n\n videos.add(video);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }",
"public void setVideoName(java.lang.String videoName) {\n this.videoName = videoName;\n }",
"Call createVideoCall(String uri)\n throws OperationFailedException, ParseException;",
"@NonNull\n public String getVideoUrl() {\n return videoUrl;\n }",
"public synchronized void addFrame(float duration, File image)\n\t\t\tthrows IOException {\n\t\tif (closed)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"this writer has already been closed\");\n\n\t\tint relativeTime = (int) (duration * DEFAULT_TIME_SCALE + .5);\n\t\tvideoTrack.addFrame(relativeTime, image);\n\t}",
"public boolean hasVideo() {\n\t\treturn this.recordingProperties.hasVideo();\n\t}",
"@Override\n\tpublic void addMovieNews(MovieNews movieNews) {\n\t\tif(this.moviesNews == null) {\n\t\t\tthis.moviesNews = new ArrayList<MovieNews>();\n\t\t}\n\t\tthis.moviesNews.add(movieNews);\n\t}",
"public String getVideoUrl() {\n return videoUrl;\n }",
"public void merge(YoutubeVideo video) {\n streamOptions.addAll(video.streamOptions);\n }",
"@Override\n public Video getVideo(String videoId) {\n Video video = videoRepository.findByVideoId(videoId);\n if (video == null) {\n video = youtubeService.getVideo(videoId);\n videoRepository.save(video);\n cacheAll.put(videoId, video);\n } else {\n \tLOG.info(\"Retrieved video '\" + videoId + \"' from cache.\");\n }\n return video;\n }",
"private void addRemoteView(String remotePeerId) {\n SurfaceViewRenderer videoView = getVideoView(remotePeerId);\n if (videoView == null) {\n return;\n }\n\n // Remove video from previous parent, if any.\n Utils.removeViewFromParent(videoView);\n\n // Remove any existing VideoView of this remote Peer.\n removePeerView(remotePeerId);\n // Add peer view into 1st remote Peer frame layout that's empty (if any)\n for (FrameLayout peerFrameLayout : videoViewLayouts) {\n if (peerFrameLayout.getChildCount() == 0) {\n peerFrameLayout.addView(videoView);\n break;\n }\n }\n }",
"public void addMovieListing(MovieListing listing) {\n movieListings.add(listing);\n notifyItemInserted(movieListings.size() - 1);\n if (MoviesApplication.getApp().isLargeLayout() && movieListings.size() == 1) {\n selectMovie(0);\n }\n }",
"public GetVideoRequest(UUID requestUUID, Video video) {\n super(requestUUID, video.getVidUrl());\n this.video = video;\n getVideoRequestCount += 1;\n }",
"public YouTubeVideo(\n String channelTitle,\n String title,\n String description,\n String thumbnail,\n String videoId,\n String channelId,\n int currentIndex,\n int videosDisplayedPerPage,\n int currentPage,\n int totalPages) {\n this.channelTitle = channelTitle;\n this.title = title;\n this.description = description;\n this.thumbnail = thumbnail;\n this.videoId = videoId;\n this.currentIndex = currentIndex;\n this.videosDisplayedPerPage = videosDisplayedPerPage;\n this.currentPage = currentPage;\n this.totalPages = totalPages;\n videoURL += videoId;\n channelURL += channelId;\n }",
"public YouTubeVideo(\n String userId,\n String channelTitle,\n String title,\n String description,\n String thumbnail,\n String videoId,\n String channelId,\n int currentIndex,\n int videosDisplayedPerPage,\n int currentPage,\n int totalPages) {\n this.userId = userId;\n this.channelTitle = channelTitle;\n this.title = title;\n this.description = description;\n this.thumbnail = thumbnail;\n this.videoId = videoId;\n this.currentIndex = currentIndex;\n this.videosDisplayedPerPage = videosDisplayedPerPage;\n this.currentPage = currentPage;\n this.totalPages = totalPages;\n videoURL += videoId;\n channelURL += channelId;\n }",
"void setVideoUri(@Nullable Uri uri);"
] | [
"0.7204205",
"0.71368176",
"0.68295246",
"0.67709064",
"0.6699789",
"0.66843176",
"0.6603902",
"0.65484405",
"0.6430092",
"0.6342106",
"0.62397707",
"0.62296665",
"0.62296665",
"0.61915123",
"0.6189416",
"0.617332",
"0.6098756",
"0.6077697",
"0.6077697",
"0.6076762",
"0.59808123",
"0.58249015",
"0.5740697",
"0.56558293",
"0.5606315",
"0.5581317",
"0.556599",
"0.5518936",
"0.54971635",
"0.5401071",
"0.5385449",
"0.5317843",
"0.5208069",
"0.52062017",
"0.5205588",
"0.5190269",
"0.51856685",
"0.51634085",
"0.5149835",
"0.5118542",
"0.5088654",
"0.50382966",
"0.5028997",
"0.5028867",
"0.50115216",
"0.5005858",
"0.50027734",
"0.49854764",
"0.49617082",
"0.495857",
"0.49509928",
"0.49468964",
"0.49391037",
"0.49363875",
"0.49304467",
"0.49206883",
"0.49127635",
"0.4903642",
"0.49015373",
"0.48968765",
"0.48878354",
"0.4874107",
"0.48706883",
"0.48667726",
"0.48661706",
"0.48449385",
"0.48445863",
"0.48379332",
"0.4814873",
"0.48007885",
"0.4787519",
"0.47854036",
"0.4772059",
"0.47692284",
"0.47673815",
"0.47615418",
"0.47604638",
"0.47485238",
"0.47451055",
"0.47440082",
"0.4737286",
"0.47333658",
"0.47241437",
"0.47192222",
"0.47138292",
"0.47079742",
"0.4703573",
"0.47032365",
"0.47026572",
"0.4701794",
"0.46935606",
"0.46935347",
"0.46898028",
"0.4687035",
"0.467875",
"0.46777517",
"0.4674378",
"0.4671976",
"0.467018",
"0.46701002"
] | 0.7587911 | 0 |
Remove a video form user's collection. | void removeVideoFromCollection(User user, String video_id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void dropCollection() {\n\t\tif (mongoTemplate.collectionExists(User.class)) {\n\t\t\tmongoTemplate.dropCollection(User.class);\n\t\t}\n\t}",
"@POST\n\t@Path(\"removefromcollec\")\n\tpublic Response removeFromCollection(JsonMyMovie movie) {\n\t\tUsermovie um = new Usermovie();\n\t\tUsermoviePK umid = new UsermoviePK();\n\t\tumid.setMovie(movie.getMovieId().intValue());\n\t\tumid.setUser(movie.getUserId().intValue());\n\t\tum.setId(umid);\n\t\tum.setMovieBean(movieDao.getMovie(movie.getMovieId()));\n\t\tum.setUserBean(userDAO.getUser(movie.getUserId()));\n\t\tum.setComment(movie.getComment());\n\t\tum.setRating(movie.getRating());\n\t\tusermovieDAO.removeUsermovie(um);\n\t\treturn Response.ok(new JsonSimpleResponse(true),\n\t\t\t\tMediaType.APPLICATION_JSON).build();\n\t}",
"void addVideoCollection(User user, String video_id);",
"public boolean removeVideo(Video video)throws NullPointerException;",
"CratePrize removeEditingUser(Player player);",
"public void supprimerCollection(){\r\n collection.clear();\r\n }",
"public void removeUser(Customer user) {}",
"void remove(User user) throws AccessControlException;",
"public void removeResourceCollection()\r\n {\r\n getSemanticObject().removeProperty(swb_resourceCollectionInv);\r\n }",
"private void removeAlbumFromCollection() {\n //\n }",
"void removeUser(Long id);",
"void removeUser(String uid);",
"private void removeRemoteVideo() {\n if (mRemoteView != null) {\n mRemoteContainer.removeView(mRemoteView);\n }\n mRemoteView = null;\n }",
"public void removeUser(long id) {\n\troomMembers.remove(id);\n }",
"public void removeByUserId(long userId);",
"public void removeByUserId(long userId);",
"@Override\n\tpublic void removeUser(int id) {\n\t\t\n\t}",
"void removeFromMyCommunities(String userId,\n String communityGUID) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;",
"public boolean clearRating(User theUser, Video theVideo) throws IllegalArgumentException, NullPointerException;",
"public void removeUser(String username);",
"private void removeMovie() throws MovieDAOException {\n String movieToRemove = null;\n\n // Find remove movie\n try {\n movieToRemove = displayNameAndGetTitle();\n service.removeMovie(movieToRemove);\n // Print confirmation message\n view.confirmMovieDeleted(movieToRemove);\n } catch (MovieDAOException e) {\n displayErrorMessage(e);\n }\n\n }",
"int removeUser(User user);",
"@Override\n public void removeAddedBy(CsldUser toRemove) {\n }",
"public void removeDownlodedObject(String removeVideoID){\n String removeFilmID = removeVideoID+\"-\"+appCMSPresenter.getLoggedInUser();\n DownloadService.sendRemoveDownload(context, OfflineDownloadService.class, removeFilmID, /* foreground= */ false);\n }",
"public static Task<Void> removeUserTrip(String userId, String tripId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_TRIPS_COLLECTION)\n .document(tripId)\n .delete();\n }",
"public void remover(Usuario u) {\n listaUse.remove(u);\n\n }",
"void dropCollection( String name);",
"@PreRemove\n private void removeRolesFromUsers() {\n for (User user : users) {\n user.getRoles().remove(this);\n }\n }",
"private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }",
"private void removeUser(int index) {\n ensureUserIsMutable();\n user_.remove(index);\n }",
"public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }",
"public void remove()\n {\n domain.removeParticipant(participant);\n }",
"private void removeLocalVideo() {\n if (mLocalView != null) {\n mLocalContainer.removeView(mLocalView);\n }\n mLocalView = null;\n }",
"public void removeByDataCollectionId(long dataCollectionId);",
"void removePhoto(User user, String photoId);",
"void removeCollectionName(Object oldCollectionName);",
"private void removeUser(HttpServletRequest req) throws PolygonException {\n int id = Integer.parseInt(req.getParameter(\"id\"));\n try {\n UsersMapper.removeUser(id);\n } catch (PolygonException ex) {\n String msg = \"UsersMapper.removeUser() fails\";\n throw new PolygonException(msg);\n }\n }",
"public void removePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].removeOccupant(user);\r\n\t}",
"public void delPlayer(final Integer user_id) {\n if (Objects.equals(user_id, current_id)) {\n playersOnGame.clear();\n\n }\n else {\n // Search and remove a player from list\n for ( Player p : playersOnGame) {\n if (p.getUserId() == user_id) {\n playersOnGame.remove(p);\n break;\n }\n }\n }\n\n // Check if the current client is deleted\n if (Objects.equals(user_id, current_id)) {\n playerListLay.removeAllViews();\n playerCards.clear();\n Log.v(\"Del\", String.valueOf(user_id));\n }\n else {\n // Search and remove a player from list\n for (LinearLayout lay : playerCards) {\n if (lay.getTag() == user_id) {\n playerListLay.removeView(lay);\n playerCards.remove(lay);\n break;\n }\n }\n }\n\n // Update number of players\n playerNum.setText(String.valueOf(playersOnGame.size()));\n }",
"void remove(User user) throws SQLException;",
"Integer removeUserByUserId(Integer user_id);",
"private void removeUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tPreferenceDB.removePreferencesUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tif (UserDB.getnameOfUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER))) == null)\n\t\t\t\tout.print(\"ok\");\n\t\t\tUserDB.removeUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tout.print(\"ok\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}",
"public void removeCurrentUser() {\n currentUser.logout();\n currentUser = null;\n indicateUserLoginStatusChanged();\n }",
"public void run() {\n main.removeUser(location);\n }",
"@FXML\r\n\tpublic void remove()\r\n\t{\r\n\t\tString name=user.getText().split(\": \")[1];\r\n\t\tStudent temp=null;\r\n\t\tfor(int i=0;i<Main.IIITD.getUsers().size();++i) {\r\n\t\t\tif(Main.IIITD.getUsers().get(i).getCredentials().getName().equals(name)) {\r\n\t\t\t\tif(Main.IIITD.getUsers().get(i).getCredentials().getUserType().equals(\"Student\")) {\r\n\t\t\t\t\ttemp=(Student) Main.IIITD.getUsers().get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tCourses temp2=null;\r\n\t\tString course_name=mycourses.getValue();\r\n\t\tfor(int i=0;i<temp.getPersonalizedTimetable().getCourses().size();++i) {\r\n\t\t\tif(temp.getPersonalizedTimetable().getCourses().get(i).getCoursename().equals(course_name)) {\r\n\t\t\t\ttemp2=temp.getPersonalizedTimetable().getCourses().get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\ttemp.getPersonalizedTimetable().getCourses().remove(temp2);\r\n\t\t\r\n//\t\tallcourselist.add(mycourses.getValue());\r\n\t\tmycourselist.remove(mycourses.getValue());\r\n\t\tallcourselist=FXCollections.observableArrayList();\r\n\t\tfor(int i=0;i<Main.IIITD.getCourses().size();i++)\r\n\t\t{\r\n\t\t\tif(!hascourse(Main.IIITD.getCourses().get(i).getCoursename()) && !check_clash(Main.IIITD.getCourses().get(i).getCoursename())) {\r\n\t\t\t\tallcourselist.add(Main.IIITD.getCourses().get(i).getCoursename());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tallcourses.setItems(allcourselist);\r\n\t\tmycourses.setItems(mycourselist);\r\n\t\t\r\n\t\tallcourses.setValue(null);\r\n\t\tmycourses.setValue(null);\r\n\t\t\r\n\t\tif(mycourselist.size()<6)\r\n\t\t{\r\n\t\t\tadd_course.setDisable(false);\r\n\t\t}\r\n\t}",
"private void removeFriend(String userId, String ownId) {\n String error = \"Failed to remove friend\";\n UserDatabase userDb = new UserDatabase(ownId);\n userDb.getChildCollection(\"friends\")\n .document(userId)\n .delete()\n .addOnSuccessListener(success -> {\n userDb.getChildCollection(\"messages\").document(userId).delete();\n UserDatabase userDb1 = new UserDatabase(userId);\n userDb1.getChildCollection(\"friends\")\n .document(ownId)\n .delete()\n .addOnSuccessListener(success1 -> {\n userDb.getChildCollection(\"messages\").document(ownId).delete();\n buttonAddFriend(userId, ownId);\n updateFriendsCount(userId, ownId, false);\n })\n .addOnFailureListener(fail -> handleError(error, fail));\n })\n .addOnFailureListener(fail -> handleError(error, fail));\n }",
"void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}",
"@Override\n\tpublic void removeMember(User user) throws Exception {\n\n\t}",
"private void removeYourCar(Car user) {\r\n\r\n cars.removeCar(user);\r\n checkCarIsListed(user);\r\n }",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"@Override\n\tpublic Collect removeCollect(String loginname,Integer book_id) {\n\t\tcollectMapper.removeCollect(loginname,book_id);\n\t\treturn collectMapper.findCollect(loginname,book_id);\n\t}",
"@Override\r\n public void clientRemoveUser(User user) throws RemoteException, SQLException\r\n {\r\n gameListClientModel.clientRemoveUser(user);\r\n }",
"@ResponseStatus(value = HttpStatus.NO_CONTENT)\n\t@RequestMapping(value=\"/v1/scenarios/{id}/users/{userId}\", method=RequestMethod.DELETE)\n\t@PreAuthorize(\"hasRole('ROLE_TEACHER') and hasPermission(#id, 'Scenario', 'MODERATOR')\")\n\tpublic void removeOneStudent(@PathVariable String id, @PathVariable String userId) throws MongoException, BadRequestException, ForbiddenException{\n\t\t\n\t\tscenarioService.removeUserFromScenario(id,userId);\n\t}",
"public void deleteUserMovieById(Long movie) throws IllegalOperationException;",
"public void remove () {}",
"public void remove(ObjectId id) {\n\t_filesCollection.remove(new BasicDBObject(\"_id\", id));\n\t_chunkCollection.remove(new BasicDBObject(\"files_id\", id));\n }",
"public static void Remover(ChatSkeleton user) {\n for (Grupo b : ListaOnline.getGrupos()) {\r\n for (Usuario u : b.getGrupo()) {\r\n if (u.equals(user.getUser())) {\r\n b.getGrupo().remove(user.getUser());\r\n }\r\n }\r\n }\r\n\r\n for (ChatSkeleton u : ListaOnline.getTodos()) {\r\n if (u.equals(user)) {\r\n ListaOnline.getTodos().remove(user);\r\n }\r\n }\r\n }",
"public void removeUser(int index) {\n //Remove user from our list\n users.remove(index);\n\n //Update the listview\n ArrayAdapter<User> arrayAdapter = new ArrayAdapter<User>(\n this,\n android.R.layout.simple_list_item_1,\n users\n );\n\n listView.setAdapter(arrayAdapter);\n }",
"private void clearUser() { user_ = null;\n \n }",
"public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }",
"void removeUserListener(String uid);",
"public void removeUser(User user) throws UserManagementException;",
"@Before\n public void beforeTest() {\n collection = mongoDB.getCollection(\"assets\");\n collection.remove(new BasicDBObject());\n\n }",
"private void removePrivilegedUser(ActionEvent actionEvent) {\n if (removeUserMenu.getSelectionModel().getSelectedItem() != null) {\n for (User user : server.getUser()) {\n if (user.getName().equals(removeUserMenu.getSelectionModel().getSelectedItem())) {\n selectedRemoveUser = user;\n }\n }\n // remove selected user from channel as privileged\n channel.withoutPrivilegedUsers(selectedRemoveUser);\n // update removeMenu\n removeUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (user.getPrivileged().contains(channel)) {\n removeUserMenu.getItems().add(user.getName());\n }\n }\n // update addMenu\n addUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (!user.getPrivileged().contains(channel)) {\n addUserMenu.getItems().add(user.getName());\n }\n }\n channelPrivilegedUserUpdate();\n }\n }",
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.DELETE)\n\tpublic void deleteVideos() {\n\t\tassert(videos != null);\n\t\t\n\t\tfor (Video v : videos.values()) {\n\t\t\ttry {\n\t\t\t\tVideoFileManager.get().deleteVideoData(v);\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\tvideos.clear();\n\t}",
"public void removeUser(String username) {\n userList.remove(username);\n }",
"public void remove() {\n\n }",
"public void destroy(User user);",
"public static void signOut(String name, Session user) {\n playerList.remove(name);\n user.removeAttribute(\"player\");\n }",
"public void removedetails(){\n SharedPreferences.Editor editor = userDetails.edit();\n editor.clear();\n editor.commit();\n\n }",
"@Override\n public void onClick(View v) {\n\n getRef(viewHolder.getAdapterPosition()).removeValue();\n\n adapter.notifyDataSetChanged();\n\n toastMessage(\"Movie removed\");\n }",
"void removeFromMyProjects(String userId,\n String projectGUID) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;",
"protected void remove(User<PERM> user) {\n\t\tuserMap.remove(user.principal.getName());\n\t}",
"private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }",
"public boolean removePlayer(String user){ \r\n\t\t//TODO //What does this mean in the context of the game? do we stop the game? do we check if \r\n\t\t//there is the right number of players...\r\n\t\tif(userToRole.containsKey(user)){\r\n\t\t\tString rid = userToRole.get(user);\r\n\t\t\troleToUser.remove(rid,user);\r\n\t\t\tlog.info(\"removed \" + user + \" from roleToUser\");\r\n\t\t\tInteger x = roleCount.get(rid);\r\n\t\t\troleCount.put(rid,x - 1);\r\n\t\t\tlog.info(\"removed \" + user + \" from roleCount\");\r\n\t\t\tuserReady.remove(user);\r\n\t\t\tlog.info (\"removed \" + user + \" from userReady\");\r\n\t\t\t//Do we want to stop the game, pause the game...\t\r\n\t\t\tsetGameState(GAMESTATE.STOP);\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void remove(){\n }",
"public void removeUser(User user) {\n for (ChatContext chatContext: chatContexts) {\n if (chatContext.removeUser(user)) {\n //Dissolve the chat\n removeContext(chatContext);\n break;\n }\n }\n }",
"public void deleteCard(String user_id, String card_id) throws IOException {\n\t\t\n\t\tBasicDBObject document = new BasicDBObject();\n\t\tdocument.put(\"card_id\", card_id);\n\t\tcoll2.remove(document);\n\t\t\n\t\t\t\t\n\t}",
"public void deleteUserRequest(UserRequest request){\n userRequests.remove(request);\n }",
"public synchronized void collectionRemoved(int collectionNum) {\n\n\t}",
"@Override\n\tpublic void delete(UserRole vo) {\n\n\t}",
"@RequestMapping(value=VIDEO_ID_PATH, method=RequestMethod.DELETE)\n\tpublic void deleteVideo(@PathVariable long id) {\n\t\tassert(videos != null);\n\t\t\n\t\tLong longId = new Long(id);\n\t\tif (videos.containsKey(longId)) {\n\t\t\tVideo v = videos.get(longId);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tVideoFileManager.get().deleteVideoData(v);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tvideos.remove(longId);\n\t\t}\n\t}",
"public void removeUser(String userName) {\n\t\tUser userToBeDeleted = new User(userName,\"\",false);\n\t\tusers.remove(userToBeDeleted);\t\n\t}",
"public void remove() {\r\n //\r\n }",
"public void removeUserFromRoom(String username)\r\n\t{\r\n\t\ttheGridView.removeCharacterFromRoom(username);\r\n\t}",
"void remove();",
"void remove();",
"void remove();",
"void remove();",
"void remove();",
"@Override\n\tpublic boolean deleteCourseVideo(int id) {\n\t\treturn false;\n\t}",
"private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }",
"public abstract CalendarEvent removeEvent(User user, String id);",
"@Override\n public void delete(Context context, Item item) throws SQLException, IOException, AuthorizeException {\n //TODO: HIBERNATE CHECK COLLECTION REMOVE ?\n // Check authorisation here. If we don't, it may happen that we remove the\n // collections leaving the database in an inconsistent state\n authorizeService.authorizeAction(context, item, Constants.REMOVE);\n item.getCollections().clear();\n rawDelete(context, item);\n }",
"public void remove(String userName) {\n LOG.info(\"Removed \" + userName + \" from the database at \" + System.nanoTime());\n }",
"void removeFromMyAssets(String userId,\n String assetGUID) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;"
] | [
"0.6647765",
"0.6595808",
"0.657547",
"0.6083721",
"0.5966173",
"0.594107",
"0.5871198",
"0.58388054",
"0.58185786",
"0.58080304",
"0.5796367",
"0.5707999",
"0.57071954",
"0.57009196",
"0.56723917",
"0.56723917",
"0.56713516",
"0.5626858",
"0.5626611",
"0.5618135",
"0.56165224",
"0.560336",
"0.55956054",
"0.5583231",
"0.5576481",
"0.55721897",
"0.55193067",
"0.55180085",
"0.5511398",
"0.55028176",
"0.54898596",
"0.5448869",
"0.5429523",
"0.54268396",
"0.5407264",
"0.53670824",
"0.53646266",
"0.5356803",
"0.53508186",
"0.5350366",
"0.53432035",
"0.533797",
"0.5332232",
"0.5329211",
"0.53190655",
"0.5318094",
"0.53069717",
"0.53011423",
"0.5283737",
"0.5273315",
"0.5273315",
"0.5273315",
"0.5273315",
"0.5273315",
"0.5264449",
"0.52626705",
"0.525909",
"0.52559024",
"0.52541816",
"0.52540815",
"0.5247183",
"0.52300334",
"0.52187693",
"0.52153623",
"0.52097774",
"0.52063805",
"0.5205775",
"0.5191021",
"0.5185893",
"0.517699",
"0.51732945",
"0.5161143",
"0.516051",
"0.5152674",
"0.5147736",
"0.5144569",
"0.5142884",
"0.51403064",
"0.51382935",
"0.5138195",
"0.5120956",
"0.5119559",
"0.5115568",
"0.5111703",
"0.51106477",
"0.5103683",
"0.50954574",
"0.5094913",
"0.508896",
"0.50884235",
"0.50884235",
"0.50884235",
"0.50884235",
"0.50884235",
"0.5086649",
"0.50728685",
"0.50632286",
"0.5062518",
"0.5060755",
"0.5058067"
] | 0.8589425 | 0 |
Add play record of a user. | void addPlayRecord(User user, String video_id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addPlaylist(int id, int user_id, String name) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_ID, id);\n values.put(KEY_HOST, host);\n values.put(KEY_USER_ID, user_id);\n values.put(KEY_NAME, name);\n\n long insertedId = db.insert(TABLE_PLAYLIST, null, values);\n db.close(); // Closing database connection\n }",
"void addPlay(BowlingPlayVO play) throws IllegalPlayException;",
"public void addUser(User user) {\n\t\t\r\n\t}",
"public void addUser(User user);",
"void addUser(User user);",
"void addUser(User user);",
"public void addUser(User user){\r\n users.add(user);\r\n }",
"public void addRecord();",
"public void add(User user) {\r\n this.UserList.add(user);\r\n }",
"public void addPlayer(Player player, UserGroup userGroup) {\n addPlayer(player, userGroup.getTeamName(), userGroup.getUserGroupPrefix(), null);\n }",
"public void addUser(UserModel user);",
"ResponseMessage addUser(User user);",
"public void addUser() {\n\t\tthis.users++;\n\t}",
"@Override\r\n\tpublic void add(User user) {\n\r\n\t}",
"public void addUser(User user) {\n\t\tSystem.out.println(\"adding user :\"+user.toString());\n\t\tuserList.add(user);\n\t}",
"public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}",
"public Participant add(ShoppingList shoppingList, User user) {\n Participant entry = new Participant();\n entry.setShoppingListId(shoppingList.getId());\n entry.setId(user.getId());\n\n if (user != null) {\n entry.setEntryName(user.getEntryName());\n }\n\n add(entry);\n\n return entry;\n }",
"public void PlayerJoinsGame(String user)\n\t\t{\n\t\t\tplayer_queue.add(user);\n\t\t}",
"@Override\n\tpublic int insert(User record) {\n\t\treturn userMapper.insert(record);\n\t}",
"private void addNewUser(User user) {\n\t\tSystem.out.println(\"BirdersRepo. Adding new user to DB: \" + user.getUsername());\n\t\tDocument document = Document.parse(gson.toJson(user));\n\t\tcollection.insertOne(document);\n\t}",
"@Override\r\n\tpublic int insert(User record) {\n\t\treturn userDao.insert(record);\r\n\t}",
"public void addUser(User user) {\n \t\tuser.setId(userCounterIdCounter);\n \t\tusers.add(user);\n \t\tuserCounterIdCounter++;\n \t}",
"@Override\n\tpublic int insert(User record) {\n\t\treturn 0;\n\t}",
"public static void addRecord() {\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter name: \");\r\n\t\tString name = in.nextLine();\r\n\t\tSystem.out.println(\"Enter number: \");\r\n\t\tString number = in.nextLine();\r\n\t\ttd.addRecord(name,number);\r\n\t\t\r\n\t\tSystem.out.println(\"Added record for \" + name + \" along with their number \" + number);\r\n\t}",
"public void addPlayer(Player player){\n players.add(player);\n }",
"private void saveUserPlayerId(UserPlayerId userPlayerId) {\n new SaveUserPlayerId(userPlayerId, new SaveUserPlayerId.InvokeOnCompleteAsync() {\n @Override\n public void onComplete(List<UserPlayerId> userPlayerIds) {\n LoggerHelper.showDebugLog(\"===> Save user player id successfully\" + userPlayerId.toString());\n }\n\n @Override\n public void onError(Throwable e) {\n LoggerHelper.showErrorLog(\"Error 329: \", e);\n }\n });\n }",
"@RequiresApi(api = Build.VERSION_CODES.N)\n public long AddRecord(SHUBORecord EventRecord) {\n return model.AddRecord(EventRecord);\n }",
"public void addUser(User user) {\n\t\tuserList.addUser(user);\n\t}",
"@Override\r\n\tpublic void add(User1 user) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.save(user);\r\n\t}",
"public void addRecord(Record record) {\n if (records.add(record)) {\n // if record has been added, then changing balance\n if (record.getType() == RecordType.WITHDRAW)\n balance -= record.getAmount();\n else if (record.getType() == RecordType.DEPOSIT)\n balance += record.getAmount();\n }\n }",
"public void addEvent() {\n TimetableUserItem event;\n try {\n String description = getDescription();\n String date = getDate();\n String startTime = getStartTime();\n String endTime = getEndTime();\n verifyCorrectTime(startTime, endTime);\n String location = getLocation();\n event = new TimetableUserItem(description, date, startTime, endTime, location);\n verifyNoConflict(event);\n timetable.addEvent(event.getDayOfWeek(), event);\n timetable.addToEvents(event);\n addUI.printEventMessage(event);\n } catch (AddException e) {\n e.printMessage();\n logger.log(Level.WARNING, \"Invalid event created, event has not been added to timetable\");\n }\n }",
"public void addPlayer(Player player) {\n //int id = Repository.getNextUniqueID();\n this.player = player;\n }",
"public void addUser() {\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tframeManager.addUser(user);\r\n\t\t\tpesquisar();\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}",
"@Override\n public boolean addUser(User user) {\n return controller.addUser(user);\n }",
"public void addParticipant(String uid) {\n\r\n if (!participants.contains(uid))\r\n participants.add(uid);\r\n }",
"void addItem(DataRecord record);",
"public void addToPlaylist(Song song){\n playlist.add(song);\n playlistTime = playlistTime + song.getLength();\n }",
"public void addPlayer(Player player) {\n playerList.add(player);\n }",
"public static void addUser(String u) throws TwitterException, ClassNotFoundException, SQLException {\n\n\t\t//create a timeline from the user's name\n\t\tPublicTimeline pt = new PublicTimeline(u);\n\t\tpt.getTimeline();\n\n\t\t//connect to the database for insertion\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\t\n\t\t//call the user/status building classes that will transform and insert the data into the DB\n\t\tDB_Interface.insertUser(conn, pt.status.get(0).getUser());\n\t\tDB_Interface.insertStatus(conn, pt);\n\t\t\n\t\t//close all connections when a transaction is completed\n\t\tconn.close();\n\n\t}",
"@Override\n public int insert(User record) {\n return 0;\n }",
"@Override\n\tpublic void addUser(User user) {\n mapper.addUser(user);\n\t}",
"public void createAndAddUser(String fName, String lName){\n ModelPlayer user = new ModelPlayer(fName, lName);\n user.setUserID(this.generateNewId());\n userListCtrl.addUser(user);\n }",
"public void add(User user) {\n\t\tuserDao.add(user);\n\t}",
"void addParticipant(Participant participant);",
"@Override\n\tpublic boolean addUser(User user) {\n\t\tObject object = null;\n\t\tboolean flag = false;\n\t\ttry {\n\t\t\tobject = client.insert(\"addUser\", user);\n\t\t\tSystem.out.println(\"添加学生信息的返回值:\" + object);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (object != null) {\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}",
"public String addPlayerRecord(PlayerRecord playerRecord){\n String str = \"Player record has been saved\";\n Collections.sort(this.topPlayers);\n if (topPlayers.size() < MAX_LIST_SIZE)\n topPlayers.add(playerRecord);\n else{\n if(topPlayers.get(MAX_LIST_SIZE-1).getScore() < playerRecord.getScore()){\n topPlayers.remove(MAX_LIST_SIZE-1);\n topPlayers.add(playerRecord);\n }\n else\n str = \"Player's score is too low to be added\";\n }\n Collections.sort(this.topPlayers);\n return str;\n }",
"public void addUserToFirestore() {\n if (isSignedIn()) {\n getUserTask().addOnCompleteListener(\n new OnCompleteListener<DocumentSnapshot>()\n {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if (task.isSuccessful() && !task.getResult().exists()) {\n setUser(userMap(false));\n setAnalysis(analysisMap(new ArrayList<String>()));\n setSlouches(slouchMap(new ArrayList<Date>(), new ArrayList<Double>()));\n }\n }\n });\n }\n }",
"public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}",
"public void addUserRequest(UserRequest request){\n userRequests.add(request);\n }",
"public void add(BindRecord record) {\n map.put(record.getPeptide(), record);\n }",
"private void addPlayerToGroup(Scoreboard board, Player player) {\n String playername = player.getName();\n board.registerNewTeam(playername);\n board.getTeam(playername).addPlayer(player);\n }",
"void addPlayer(Player newPlayer);",
"public void addUser(String userId) {\n addUser(new IndividualUser(userId));\n }",
"@Override\n\tpublic void addUser(ERSUser user) {\n\t\tuserDao.insertUser(user);\n\t}",
"public void add(User user) {\n\t\tmapper.add(user);\n\t}",
"public User add(User u) {\n LOGGER.debug(\"adding user to db\");\n getSession().save(u);\n return u;\n }",
"void addPlayer(IPlayer player);",
"@Override\n\tpublic boolean save(User user) {\n\t\tif (get(user.getId()) == null) {\n\t\t\tuserList.add(user);\n\t\t\treturn true;\n\t\t}\n\t\t// if the record already exist\n\t\treturn false;\n\t}",
"public String toSQLPlaylist(int user) {\n return \"INSERT INTO playlists (user, song) values (\" + user + \", \" + this.id + \")\";\n }",
"public void addUser() {\r\n PutItemRequest request = new PutItemRequest().withTableName(\"IST440Users\").withReturnConsumedCapacity(\"TOTAL\");\r\n PutItemResult response = client.putItem(request);\r\n }",
"public void addUser(Profile profile) throws JSONException {\n\t\tofy().save().entity(profile).now();\n\t}",
"public void addPlayer(Player player) {\n this.add(player);\n this.players.add(player);\n }",
"public void addUser(User tmpUser, User user) {\n\t\t\n\t}",
"void addVideoCollection(User user, String video_id);",
"public static void addUser(String name)\n {\n userList.add(name);\n }",
"@Override\r\n\tpublic int insert(PmUserrole record) {\n\t\treturn userrole.insert(record);\r\n\t}",
"boolean addPlayer(String player);",
"public void addPlayer(Player inPlayer) {\n\t\tgetPlayersInRoom().add(inPlayer);\n\t}",
"@Override\n\tpublic void addPerson(User pUser) {\n\t\t\n\t}",
"public boolean addPlayerItem(PlayerItem playerItem);",
"public void addStudent(User user) {\n\t\t\r\n\t}",
"public boolean addMember(AccessUser obj)\n {\n if (isValid(obj))\n {\n if (obj.getUserID() != null)\n {\n uuid_to_profile.put(obj.getUserID(), obj);\n }\n username_to_profile.put(obj.username.toLowerCase(), obj);\n obj.setGroup(this);\n return true;\n }\n return false;\n }",
"public void addUser(User user) {\n\t\tuserDao.addUser(user);\r\n\r\n\t}",
"public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}",
"@Override\n\tpublic User addUser(User user) {\n\t\treturn userDatabase.put(user.getEmail(), user);\n\t}",
"public void addPlays(MappingType mapping, PlaysType plays) {\n\t\tmapping.getPlays().add(plays);\n\t}",
"public void adds(Speaker speaker) {\n\t\tdao.adds(speaker);\r\n\t}",
"public void record() {\n\t\tif (isRecord) {\n\t\t\tisRecord = false;\n\n\t\t\t// Generates a unique filename.\n\t\t\tString currenttime = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t\tfilename = recordingsPath + currenttime + \".ogg\";\n\n\t\t\t// The pipe.\n\t\t\tString[] rec = new String[] { \"alsasrc\", \"!\", \"audioconvert\", \"!\", \"audioresample\", \"!\", \"vorbisenc\", \"!\", \"oggmux\", \"!\",\n\t\t\t\t\t\"filesink location = \" + filename };\n\n\t\t\trec = Gst.init(\"AudioRecorder\", rec);\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\tfor (String s : rec) {\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(s);\n\t\t\t}\n\n\t\t\t// Start recording\n\t\t\taudiopipe = Pipeline.launch(sb.substring(1));\n\t\t\taudiopipe.play();\n\n\t\t} else {\n\t\t\t// Stop recording and add file to the list.\n\t\t\taudiopipe.stop();\n\t\t\tgui.addNewFiletoList(filename);\n\t\t\tisRecord = true;\n\t\t}\n\n\t}",
"void addRealmToUserAccount(final String userId, final String realm);",
"public void addUser(String name)\r\n\t{\r\n\t\tperson= new User(name);\r\n\t\tusers.put(name, person);\r\n\t}",
"void addPerson(Player player);",
"User addMember(final User user, GroupAssociation groupAssociation);",
"@Override\n\tpublic void addItem(User entity) {\n\t\tuserRepository.save(entity);\n\t\t\n\t}",
"public PlayList[] addPlayList(String namePlayList, User userName1){\n boolean space3 = false;\n for(int i = 0; i<MAX_PLAYLIST && !space3; i++){\n if(thePlayLists[i] == null){\n PlayList privatePlayList = new PrivateP(namePlayList, userName1);\n thePlayLists[i] = privatePlayList;\n numPlayList++;\n space3 = true;\n }\n }\n return thePlayLists;\n }",
"public void addRecord(ListGridRecord record) {\r\n\t\tthis.addData(record);\r\n\t}",
"public boolean addReadyUser(User user) {\r\n\t\tif (playerState.get(user) == ENTERED) {\r\n\t\t\tplayerState.remove(user);\r\n\t\t\tplayerState.put(user, READY);\r\n\t\t\treadyUser++;\r\n\t\t\tbroadCast(\"before_notify\", String.valueOf(user.getNickname()) + \" 님이 READY\");\r\n\t\t\tif (readyUser == users.size()) {\r\n\t\t\t\tbroadCast(\"GAME_PLAY_START\", \"\");\r\n\t\t\t\tthis.status = LOAD;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.print(\"somthing wrong\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"int insert(UUser record);",
"@Override\n\tpublic void addUser(User user) {\n\t\tuserMapper.addUser(user);\n\t}",
"public void addPlayerToTable(Player player){\n\t\tgamePlayers.add(player);\n\t}",
"public void addUser(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimPlayer(U,F,G,0,0,\"Human\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}",
"int insert(OfUserWechat record);",
"public void addUser(TIdentifiable user) {\r\n\t // make sure that the user doesn't exists already\r\n\t if (userExists(user)) return;\r\n\t \r\n\t // check to see if we need to expand the array:\r\n\t if (m_current_users_count == m_current_max_users) expandTable(2, 1);\t \r\n\t m_users.addID(user);\r\n\t m_current_users_count++;\r\n }",
"@PostMapping(path=\"/addRecord\")\n public ResponseEntity<Record> addRecord(@RequestBody Record record) {\n return ResponseEntity.ok().body(this.recordService.addRecord(record));\n }",
"public static AddPlaybackProfileBuilder add(PlaybackProfile playbackProfile) {\n\t\treturn new AddPlaybackProfileBuilder(playbackProfile);\n\t}",
"private Player addNewPlayer(String username) {\n if (!playerExists(username)) {\n Player p = new Player(username);\n System.out.println(\"Agregado jugador \" + username);\n players.add(p);\n return p;\n }\n return null;\n }",
"int insert(ROmUsers record);",
"public boolean addUser(User someUser){\n\t\tArrayList<Integer> ai = someUser.getActiveSessionIDList();\n\t\t\n\t\tSystem.out.println(\"SESSION: Adding User: \"+someUser.getUsername()+\" to session: \"+this.sessionID);\n\t\t\n\t\t/* add this session id */\n\t\t\n\t\tif(ai==null){\n\t\t\t// create new array list\n\t\t\tai = new ArrayList<Integer> ();\n\t\t\tai.add(this.sessionID);\n\t\t}\n\t\telse{\n\t\t\t// check if user is already in this session\n\t\t\tif (!someUser.containsSession(this.sessionID))\n\t\t\t\tai.add(this.sessionID);\n\t\t}\n\t\t\n\t\t/* store list of session ids back */\n\t\tsomeUser.setActiveSessionIDList(ai);\n\t\t\n\t\t/* add user object to this session */\n\t\treturn this.userList.add(someUser);\n\t}",
"public void addFriend(String userId, String friendUserId, String sourceGameId, Date date){\n\n BasicDBObject obj = new BasicDBObject();\n obj.put(DBConstants.F_FRIENDID, new ObjectId(friendUserId));\n obj.put(DBConstants.F_CREATE_DATE, date);\n obj.put(DBConstants.F_TYPE, relationType);\n obj.put(DBConstants.F_MEMO, null);\n obj.put(DBConstants.F_SOURCE, sourceGameId);\n\n insertObject(userId, obj, DBConstants.F_CREATE_DATE, false, false);\n }",
"public boolean add(User user)\n\t\t{\n\t\t\t\treturn users.add(user);\n\t\t}",
"public synchronized void addUser(String user, HttpSession session) {\n\t\tif (!userSessions.containsKey(user))\n\t\t\tuserSessions.put(user, session);\n\t}"
] | [
"0.6373324",
"0.6232763",
"0.5922624",
"0.58439",
"0.58366275",
"0.58366275",
"0.5824821",
"0.58236337",
"0.58069956",
"0.5801636",
"0.57492095",
"0.5720555",
"0.5706237",
"0.57043254",
"0.5663328",
"0.56549066",
"0.5634149",
"0.55655944",
"0.55570006",
"0.5527463",
"0.55198634",
"0.55177814",
"0.5504215",
"0.54815984",
"0.54790294",
"0.5473752",
"0.5468425",
"0.543987",
"0.5425135",
"0.54203457",
"0.541997",
"0.54193354",
"0.5411526",
"0.53847903",
"0.538356",
"0.5372213",
"0.5350911",
"0.5347676",
"0.53331506",
"0.53296596",
"0.53254205",
"0.5322489",
"0.5317926",
"0.5312719",
"0.5308711",
"0.5308636",
"0.53003967",
"0.5294609",
"0.5281324",
"0.52799547",
"0.52651423",
"0.5265033",
"0.5262226",
"0.52578807",
"0.5250783",
"0.52462256",
"0.52452767",
"0.5234959",
"0.52285236",
"0.52260137",
"0.52247393",
"0.5212986",
"0.52108145",
"0.52076",
"0.5205594",
"0.52018636",
"0.5198434",
"0.5188724",
"0.51883876",
"0.51866865",
"0.5184767",
"0.51715267",
"0.5157481",
"0.5149987",
"0.51469964",
"0.5141586",
"0.5136695",
"0.5136307",
"0.51289696",
"0.51275766",
"0.5115256",
"0.5113698",
"0.511103",
"0.51036114",
"0.50946033",
"0.509401",
"0.5093856",
"0.5088687",
"0.5088651",
"0.5087815",
"0.5087761",
"0.50841016",
"0.5076669",
"0.5065983",
"0.50650615",
"0.50647837",
"0.50641346",
"0.50599027",
"0.50592136",
"0.505874"
] | 0.80386096 | 0 |
say if the bounded shape will be fill or not construct a new bounded Shape | public MyBoundedShape(Point point1 , Point point2 , Color myColor , boolean myFill) throws IllegalArgumentException{
super(point1, point2, myColor);
if((point1.getX() >= point2.getX()) || (point1.getY() >= point2.getY())){
throw new IllegalArgumentException();
}
isFill = myFill;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EpsShape(Shape shape, boolean filled) {\n\t\tsuper();\n\t\tthis.shape=shape;\n\t\tthis.filled=filled;\n\t}",
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"protected abstract boolean isShapeSimple();",
"public void fillShape(Shape shape);",
"boolean hasFillBehavior();",
"protected boolean isShapeFilled(Plot plot, int series, int item, double x, double y) {\n return false;\n }",
"public void fillRectangle(RectangleShape rectangle);",
"Shape createShape(BorderType borderType);",
"public Square(Point start, Point end, Boolean fill){ //constructor for class Rectangle\r\n this.origin = start;\r\n this.start = start;\r\n this.end = end;\r\n this.fill = fill;\r\n }",
"public abstract boolean initNoFill(int width, int height);",
"protected Shape() {}",
"public void buildShape(Shape shape, boolean ghost) {\n\t\tbuildShape(shape, -1, ghost, 0);\n\t}",
"public abstract boolean getFilled();",
"@Override\n\tpublic void createCollisionShape() {\n\t\t\n\t}",
"boolean isDrawInterior(DrawContext dc, Object shape);",
"public NewShape() {\r\n\t\tsuper();\r\n\t}",
"public boolean isFillArea() {\n\t\treturn fillArea;\n\t}",
"public void assignShape() {\n\t\t\n\t}",
"public boolean overlaps(Shape2D s)\r\n {\r\n if (isPhasing)\r\n return false;\r\n \r\n return super.overlaps(s);\r\n }",
"@Override\n\tpublic boolean canResizeShape(IResizeShapeContext context) {\n\t\treturn false;\n\t}",
"public EpsShape(Shape shape) {\n\t\tthis(shape,false);\n\t}",
"boolean isIncludeBounds();",
"@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}",
"boolean hasIsBoundaryNodeOf();",
"void addShape(IShape shape, int appear, int disappear);",
"@java.lang.Override\n public boolean hasFillBehavior() {\n return fillBehavior_ != null;\n }",
"public void setShape1(boolean b)\n\t{\n\t\tthis.shape1 = b;\n\t}",
"public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }",
"public abstract void setFilled(boolean filled);",
"public void fill(Shape s)\r\n\t{\r\n\t\t// draw a rectangle with these proportions\r\n\t\tif (s instanceof RectangularShape)\r\n\t\t{\r\n\t\t\tRectangularShape rect = (RectangularShape) s;\r\n\t\t\tg.fillRect((int) rect.getX(), (int) rect.getY(), (int) rect.getWidth(),\r\n\t\t\t\t\t(int) rect.getHeight());\r\n\t\t}\r\n\t\t// else\r\n\t\t// System.out.println(\"fill for this shape not supported\");\r\n\t}",
"public void buildShape(Shape shape) {\n\t\tbuildShape(shape, -1, false, 0);\n\t}",
"@Override\r\n public boolean isKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && (shape != Shape.NOISE);\r\n }",
"public boolean isShapeMasked() {\n return this.shapeMasked;\n }",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public interface CompositeShapeInt\n{\n /**\n Add a shape to this composite shape.\n @param aShape the shape to add\n */\n void add(Shape aShape);\n\n /**\n Returns an integer Rectangle that completely encloses the Shape.\n Note that there is no guarantee that the returned Rectangle is the\n smallest bounding box that encloses the Shape, only that the Shape\n lies entirely within the indicated Rectangle.\n */\n Rectangle getBounds();\n\n /**\n Draws this CompositeShape at the relative position to the top left corner of the bounding box.\n @param g2 the graphics context\n */\n void draw (Graphics2D g);\n\n}",
"public void setShouldFillShape(boolean shouldFillShape) {\n boolean oldShouldFillShape = this.shouldFillShape;\n this.shouldFillShape = shouldFillShape;\n propertyChangeSupport.firePropertyChange(\"shouldFillShape\", oldShouldFillShape, shouldFillShape);\n }",
"BaseBounds computeShapeBounds(BaseBounds bounds, BaseTransform tx,\n com.sun.javafx.geom.Shape s)\n {\n if (impl_mode == NGShape.Mode.EMPTY) {\n return bounds.makeEmpty();\n }\n\n float[] bbox = {\n Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY,\n Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY,\n };\n boolean includeShape = (impl_mode != NGShape.Mode.STROKE);\n boolean includeStroke = (impl_mode != NGShape.Mode.FILL);\n if (includeStroke && (getStrokeType() == StrokeType.INSIDE)) {\n includeShape = true;\n includeStroke = false;\n }\n\n if (includeStroke) {\n final StrokeType type = getStrokeType();\n double sw = Utils.clampMin(getStrokeWidth(), MIN_STROKE_WIDTH);\n StrokeLineCap cap = getStrokeLineCap();\n StrokeLineJoin join = convertLineJoin(getStrokeLineJoin());\n float miterlimit =\n (float) Utils.clampMin(getStrokeMiterLimit(), MIN_STROKE_MITER_LIMIT);\n // Note that we ignore dashing for computing bounds and testing\n // point containment, both to save time in bounds calculations\n // and so that animated dashing does not keep perturbing the bounds...\n Toolkit.getToolkit().accumulateStrokeBounds(\n s,\n bbox, type, sw,\n cap, join, miterlimit, tx);\n // Account for \"minimum pen size\" by expanding by 0.5 device\n // pixels all around...\n bbox[0] -= 0.5;\n bbox[1] -= 0.5;\n bbox[2] += 0.5;\n bbox[3] += 0.5;\n } else if (includeShape) {\n com.sun.javafx.geom.Shape.accumulate(bbox, s, tx);\n }\n\n if (bbox[2] < bbox[0] || bbox[3] < bbox[1]) {\n // They are probably +/-INFINITY which would yield NaN if subtracted\n // Let's just return a \"safe\" empty bbox..\n return bounds.makeEmpty();\n }\n bounds = bounds.deriveWithNewBounds(bbox[0], bbox[1], 0.0f,\n bbox[2], bbox[3], 0.0f);\n return bounds;\n }",
"private boolean isEmpty(RMShape aShape)\n{\n // If shape timeline is non-null and not-empty, return false\n if(aShape.getTimeline()!=null && !aShape.getTimeline().isEmpty())\n return false;\n \n // Iterate over children and return false if any are not empty\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n if(!isEmpty(aShape.getChild(i)))\n return false;\n \n // Return true since shape anim and children are all empty\n return true;\n}",
"public ShapeTest(Shape shape) {\r\n\t\t\r\n\t\tthis.shape = shape;\r\n\t}",
"boolean isBound();",
"Shape getShape();",
"@Test\n public void testRectangleConstructor() {\n defaultShape1 = new Rectangle(defaultColor1, defaultPosition1, defaultSize1);\n // If successful the type should be rectangle.\n assertEquals(TypeOfShape.RECTANGLE, defaultShape1.getType());\n assertNotEquals(defaultShape1.getType(), TypeOfShape.OVAL);\n }",
"public void setFillArea(boolean b)\r\n/* 34: */ {\r\n/* 35: 26 */ this.fillArea = b;repaint();\r\n/* 36: */ }",
"protected Shape getShape()\n {\n return null;\n }",
"public abstract boolean isInterior();",
"Shape newShape(GraphicalObject g) throws RemoteException;",
"@Override public byte isBitShape(Type t) { throw AA.unimpl(); }",
"public Fill() { }",
"private void createShape() {\n if (shape == null) {\n float firstItemMargin = noxConfig.getNoxItemMargin();\n float firstItemSize = noxConfig.getNoxItemSize();\n int viewHeight = getMeasuredHeight();\n int viewWidth = getMeasuredWidth();\n int numberOfElements = noxItemCatalog.size();\n ShapeConfig shapeConfig =\n new ShapeConfig(numberOfElements, viewWidth, viewHeight, firstItemSize, firstItemMargin);\n shape = ShapeFactory.getShapeByKey(defaultShapeKey, shapeConfig);\n } else {\n shape.setNumberOfElements(noxItemCatalog.size());\n }\n shape.calculate();\n }",
"void addShape(IShape shape);",
"@Test(expected = IllegalArgumentException.class)\n public void invalidShapeDisappearsBeforeAppearing() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), 1, 0, 50, 100));\n }",
"void addIsBoundaryNodeOf(Boundary newIsBoundaryNodeOf);",
"Shape1(){\n\t\tSystem.out.println(\"Shape is constructed\");\n\t}",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"public interface SVGMutableShapeDef<W, F> extends SVGShapeDef<W, F>,\n MutableShapeDef<W> {\n\n /**\n * The width of the SVG view's bounding box.\n * The way shape views are being updated to achieve new width\n * is up to each implementations.\n * @param element The model instance.\n * @return The shape's width.\n */\n double getWidth(final W element);\n\n /**\n * The height of the SVG view's bounding box.\n * The way shape views are being updated to achieve new height\n * is up to each implementations.\n * @param element The model instance.\n * @return The shape's height.\n */\n double getHeight(final W element);\n\n /**\n * If the SVGShape is composed by some\n * SVGShapeView instances, this method allows\n * to display or make not visible each of\n * the inner views as from the <code>element</code>\n * instance's state at runtime.\n * @param viewName The name of the inner SVGSHapeVie.\n * @param element The definition instance.\n * @return Whether the <code>viewName</code> inner SVGShapeView, which\n * the shape is composed by, has to be displayed.\n */\n boolean isSVGViewVisible(final String viewName,\n final W element);\n}",
"public boolean isFilled ( ) {\r\n\t\treturn fill_flag;\r\n\t}",
"protected boolean mustDrawInterior()\n {\n return this.getActiveAttributes().isDrawInterior();\n }",
"@Override\r\n public boolean isClef ()\r\n {\r\n return ShapeSet.Clefs.contains(getShape());\r\n }",
"public boolean isBounded() {\n\t\treturn true;\n\t}",
"public Shape()\n\t{\n\t\tinitShape();\n\t}",
"public interface Shape {\n\t/**\n\t * Calculates and returns the area of the object\n\t * @return\n\t */\n\tpublic abstract double getArea();\n\t\n\t/**\n\t * Returns the Color of the object.\n\t * @return\n\t */\n\tpublic abstract Color getColor();\n\t\n\t/**\n\t * Sets the Color of the object.\n\t * @param color\n\t */\n\tpublic abstract void setColor(Color color);\n\t\n\t/**\n\t * Returns true if the object is filled with color, otherwise false.\n\t * @return\n\t */\n\tpublic abstract boolean getFilled();\n\t\n\t/**\n\t * Sets the filled state of the object.\n\t * @param filled\n\t */\n\tpublic abstract void setFilled(boolean filled);\n\t\n\t/**\n\t * Moves the shape by the x and y amounts specified in the Point.\n\t * @param point\n\t */\n\tpublic abstract void move(Point point);\t\n}",
"@Test(expected = IllegalArgumentException.class)\n public void testMakingShapeWithNullColor() {\n model1.addShape(Oval.createOval(\"C\", new Point.Double(500, 100),\n null, 6, 100, 60.0, 30.0));\n }",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"void drawShape(Shape s) {\n }",
"public void setFreeShape(boolean freeShape) {\r\n this.freeShape = freeShape;\r\n }",
"public Shape() { this(X_DEFAULT, Y_DEFAULT); }",
"@Override\r\n public boolean isWellKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isWellKnown();\r\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testMakingShapeWithNullLocation() {\n model1.addShape(Oval.createOval(\"C\", null,\n new Color(0, 0, 1), 6, 100, 60.0, 30.0));\n }",
"private void createEdgeForShape(Shape shape) {\n\t\tcurrentShape = shape;\n\t\tif (holdAltKey && !(shape instanceof JoinPoint)) {\n\t\t\tShape edge = createEdge();\n\t\t\t((Edge)edge).setSource(currentShape);\n\t\t\taddShape(edge);\n\t\t\tcurrentShape.setDrawing(false);\n\t\t\tcurrentShape = edge;\n\t\t}\n\t}",
"public abstract Shape clone() throws CloneNotSupportedException;",
"public abstract Shape create(Point2D press, Point2D release);",
"@Test(expected = IllegalArgumentException.class)\n public void invalidShapeAppearsBefore0() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), -1, 100, 50, 100));\n }",
"public abstract void visit(FilledCircle filledCircle);",
"@Override\r\n public boolean isManualShape ()\r\n {\r\n return getGrade() == Evaluation.MANUAL;\r\n }",
"@Test\n public void testOvalConstructor() {\n defaultShape2 = new Oval(defaultColor2, defaultPosition2, defaultSize2);\n // if successful the type should be oval.\n assertEquals(TypeOfShape.OVAL, defaultShape2.getType());\n assertNotEquals(defaultShape2.getType(), TypeOfShape.RECTANGLE);\n }",
"private boolean hasValidBounds() {\n\n\n\n return false;\n }",
"public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}",
"public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"boolean getFill();",
"public Shape getClipShape() { return null; }",
"public interface IncrementalShapeAggregator {\n\n /**\n * Returns coordinates which if occupied complete the shape.\n * @return\n */\n Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();\n\n /**\n * Add update to the aggregate.\n *\n * @param cell cells to be updated\n * @param newPlayerId new player ID\n */\n Integer update(BoardCell cell, int newPlayerId);\n\n /**\n * True if tracks a row.\n *\n * @return\n */\n default boolean isHorizontalLineSegment() {\n return false;\n }\n\n /**\n * True if track a vertical segment.\n * @return\n */\n default boolean isVerticalLineSegment() {\n return false;\n }\n\n /**\n * True if track all corners.\n * @return\n */\n default boolean isAllCorners() {\n return false;\n }\n\n /**\n * True if this aggregator tracks a diagonal.\n * @return\n */\n default boolean isDiagonalLineSegment() {\n return false;\n }\n\n /**\n *\n * @return winning player id\n */\n Integer getWinner();\n\n /**\n * Register cell.\n * @param cell\n */\n void addCell(BoardCell cell);\n\n /**\n * Any vacant cells?\n * @return if there is any free slots\n */\n boolean isCompletable();\n\n /**\n * Suggests a move for the given player and length of the segment.\n * @param player who is the guy\n * @param desiredLength size required to win\n * @return\n */\n PrioritizedMove getBestMoveFor(int player, int desiredLength);\n}",
"@Test(expected = IllegalArgumentException.class)\n public void invalidShapeDispersantAppearsBefore0() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), -10, -1, 50, 100));\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testMakingShapeWithNullName() {\n model1.addShape(Oval.createOval(null, new Point.Double(500, 100),\n new Color(0, 0, 1), 6, 100, 60.0, 30.0));\n }",
"boolean hasRect();",
"void add(Shape aShape);",
"@Test(expected = IllegalArgumentException.class)\n public void invalidRectangleWidthNotGreaterThan0() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), 1, 0, -50, 100));\n }",
"@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"public interface Shape {\n\n double size();\n Color color();\n\n\n}",
"protected abstract void setShapes();",
"IShape getCurrentShape();",
"void add(Shape shape) throws IllegalArgumentException\n {\n // Checking if the shape is already part of the children list or if the\n // shape already has a parent\n if(contains(shape) || shape.parent()!=null)\n {\n // Then throw an error\n throw new IllegalArgumentException();\n }\n\n // If the shape to add is outside of the CarrierShape bounds\n // then throw an error\n if(shape._width+shape._x>_width || shape._height+shape._x>_height)\n {\n throw new IllegalArgumentException();\n }\n\n // Otherwise the shape is added to the children list\n children.add(shape);\n\n // The parent of the shape is set to this CarrierShape\n // to establish a two-way connection\n shape.setParent(this);\n }",
"public Shape getShape() { return shape; }",
"public void interface1(){\n noStroke();\n fill(10,100);//light gray\n rect(0,60,600,590);\n fill(220);//gray\n noStroke();\n beginShape();\n vertex(365,40);\n vertex(600,40);\n vertex(600,80);\n vertex(365,80);\n vertex(345,60);\n endShape(CLOSE);\n fill(19,70,100,100);//dark blue\n rect(0,110,600,215);\n rect(0,380,600,215);\n}",
"public abstract boolean ableToReshape(Point p);",
"public boolean isFilled() {\r\n return this.filled;\r\n }",
"@Override\n\tpublic void getShape() {\n\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testNoShapeWithSameName() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addShape(Oval.createOval(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n }"
] | [
"0.69782376",
"0.68064684",
"0.67533237",
"0.6640691",
"0.63842344",
"0.6364451",
"0.6293179",
"0.6063399",
"0.6006978",
"0.59054583",
"0.59008706",
"0.58590364",
"0.57899624",
"0.5781911",
"0.57382363",
"0.5723572",
"0.5698368",
"0.5687997",
"0.56712186",
"0.56628335",
"0.5638549",
"0.56339955",
"0.5627367",
"0.5623602",
"0.5615909",
"0.5613371",
"0.56077635",
"0.56062466",
"0.55964786",
"0.55953145",
"0.55897814",
"0.55758345",
"0.5556634",
"0.5547392",
"0.55185556",
"0.55083257",
"0.55072916",
"0.54969054",
"0.54892",
"0.54764646",
"0.54728144",
"0.5468275",
"0.5461442",
"0.5459991",
"0.5456344",
"0.544816",
"0.5443824",
"0.54364",
"0.5428911",
"0.5428096",
"0.5424374",
"0.5418691",
"0.5413524",
"0.54132766",
"0.5413004",
"0.54085875",
"0.5390672",
"0.5388977",
"0.5381656",
"0.5378201",
"0.5376695",
"0.53708607",
"0.5353267",
"0.53471076",
"0.53438616",
"0.53321797",
"0.53277916",
"0.53209895",
"0.5317336",
"0.53165674",
"0.53058165",
"0.53013456",
"0.5300013",
"0.5296725",
"0.5294476",
"0.5283474",
"0.52824986",
"0.52824986",
"0.5281412",
"0.52791345",
"0.5278258",
"0.52770793",
"0.5275896",
"0.5273862",
"0.526983",
"0.5264072",
"0.52561414",
"0.52557975",
"0.525351",
"0.52399385",
"0.5239866",
"0.5236579",
"0.5235851",
"0.5230064",
"0.52289385",
"0.52288604",
"0.52257216",
"0.5218252",
"0.52182305",
"0.52160466"
] | 0.61278147 | 7 |
Return boolean that say if shape is fill or not | public boolean getIsFill(){
return isFill;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"boolean hasFillBehavior();",
"protected boolean isShapeFilled(Plot plot, int series, int item, double x, double y) {\n return false;\n }",
"public boolean isFillArea() {\n\t\treturn fillArea;\n\t}",
"boolean getFill();",
"public boolean isFilled ( ) {\r\n\t\treturn fill_flag;\r\n\t}",
"boolean isDrawInterior(DrawContext dc, Object shape);",
"@java.lang.Override\n public boolean hasFillBehavior() {\n return fillBehavior_ != null;\n }",
"protected abstract boolean isShapeSimple();",
"public boolean isShapeMasked() {\n return this.shapeMasked;\n }",
"public boolean isFilled() {\n return filled;\n }",
"public boolean isFillEnabled() {\n return mFillEnabled;\n }",
"public boolean isFilled() \n\t{\n\t\treturn filled;\n\t}",
"public boolean getFill(){\n\t\treturn this.fill;\n\t}",
"public boolean isFilled() {\r\n return this.filled;\r\n }",
"boolean isDrawOutline(DrawContext dc, Object shape);",
"protected boolean mustDrawInterior()\n {\n return this.getActiveAttributes().isDrawInterior();\n }",
"public abstract boolean isInterior();",
"public abstract boolean getFilled();",
"private static Boolean isFilled() \n\t{\n\t\tfor(Cells[] cellList : board)\n\t\t{\n\t\t\tfor(Cells cell : cellList)\n\t\t\t{\n\t\t\t\tif(cell==Cells.VOID)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public EpsShape(Shape shape, boolean filled) {\n\t\tsuper();\n\t\tthis.shape=shape;\n\t\tthis.filled=filled;\n\t}",
"public void setShouldFillShape(boolean shouldFillShape) {\n boolean oldShouldFillShape = this.shouldFillShape;\n this.shouldFillShape = shouldFillShape;\n propertyChangeSupport.firePropertyChange(\"shouldFillShape\", oldShouldFillShape, shouldFillShape);\n }",
"@Override\r\n public boolean isClef ()\r\n {\r\n return ShapeSet.Clefs.contains(getShape());\r\n }",
"public boolean fill() {\n boolean modified = false;\n for (int i = 0; i < gameBoard.getSize(); i++) {\n for (int j = gameBoard.getSize() - 1; j >= 0; j--) {\n Coordinates actualCoordinates = new Coordinates(i, j);\n if (gameBoard.getValue(actualCoordinates) == 0) {\n if (j == 0) {\n gameBoard.setValue(actualCoordinates, DiamondColor.getRandomColor());\n } else {\n Coordinates topCoordinates = new Coordinates(i, j - 1);\n gameBoard.setValue(actualCoordinates, gameBoard.getValue(topCoordinates));\n gameBoard.setValue(topCoordinates, 0);\n }\n modified = true;\n }\n }\n }\n return modified;\n }",
"public boolean isFilled() {\n return isFilled;\n }",
"public void fillShape(Shape shape);",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"static boolean isFilled (int[][] G){\n for(int i=1; i<G.length; i++){\n for (int j=1; j<G[i].length; j++){\n if (G[i][j]==0) {\n return false;\n }\n }\n }\n return true;\n }",
"public void setFill(boolean fill) {\n isFilled = fill;\n }",
"@Override\r\n public boolean isKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && (shape != Shape.NOISE);\r\n }",
"private boolean isEmpty(RMShape aShape)\n{\n // If shape timeline is non-null and not-empty, return false\n if(aShape.getTimeline()!=null && !aShape.getTimeline().isEmpty())\n return false;\n \n // Iterate over children and return false if any are not empty\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n if(!isEmpty(aShape.getChild(i)))\n return false;\n \n // Return true since shape anim and children are all empty\n return true;\n}",
"public boolean drawingIsClear(){\n boolean clear=true;\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()&&clear) {\r\n clear= ((TShape) iter.next())instanceof TInterpretationBoard;\r\n\r\n }\r\n }\r\n return\r\n clear;\r\n\r\n}",
"public boolean isCircle();",
"void setFill(boolean fill);",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"public void setFillArea(boolean b)\r\n/* 34: */ {\r\n/* 35: 26 */ this.fillArea = b;repaint();\r\n/* 36: */ }",
"public void setFillArea(boolean fillArea) {\n\t\tthis.fillArea = fillArea;\n\t}",
"public boolean isFullyExplored();",
"boolean isEnableDepthOffset(DrawContext dc, Object shape);",
"public boolean isDraw() {\n for (int row = 0; row < ROWS; ++row) {\n for (int col = 0; col < COLS; ++col) {\n if (cells[row][col].getContent() == Seed.EMPTY) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean getHorizontalFill() {\n return hfill;\n }",
"public boolean hasFillBehavior() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public boolean isConnectedWith(Shapes shape){\n if(this.endShapes.length == 2){\n if(endShapes[0].equals(shape) || endShapes[1].equals(shape)){\n return true;\n }\n return false; \n }else{\n return false;\n }\n }",
"public boolean noFill(){\n return fillCharacter == EMPTY_CHAR;\n }",
"boolean hasRadius();",
"boolean hasRadius();",
"public static boolean isEveryTileFilled() {\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (tiles.get(new Coordinates(i, j)).getTextFromTile().getText().equals(\"\")) {\n return false;\n }\n }\n }\n return true;\n }",
"boolean hasRect();",
"public boolean canFill(@Nullable Fluid fl) {\n if (fl == null || !canFillFluidType(new FluidStack(fl, 1))) {\n return false;\n } else if (fluid != null) {\n return FluidUtil.areFluidsTheSame(fluid.getFluid(), fl);\n } else {\n return true;\n }\n }",
"boolean isSolid();",
"boolean hasGrid();",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public boolean isFilled(){\n\t\tfor(int i=0;i<size;i++){\n\t\t\tfor(int j=0;j<size;j++){\n\t\t\t\tif(board[i][j] == '\\u0000')\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean getVerticalFill() {\n return vfill;\n }",
"private boolean isGoodState() {\n\t resetMask();\n\t checkHorizontal();\n\t checkVertical();\n\n\t for(int i = 0; i < maskArray.length; i++){\n\t for (int j = 0; j < maskArray[i].length; j++){\n\n\t if (maskArray[i][j] == 1){\n\t return false;\n\t }\n\n\t }\n\t }\n\n\t return true;\n }",
"public boolean isInterior() {\n\t\tif (this.eltZero != null && this.eltOne != null && this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isDraw(){\n String config = gameBoardToString();\n\n // Checks to see if there any more empty squares in the gameBoard. Returns -1 if 'g' not found in String config,\n // meaning there are no more empty squares in the gameBoard\n int val = config.indexOf('g');\n\n // Return true if no more empty squares. Otherwise, false.\n if (val == -1){\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean isInterior() {\n return true;\n }",
"public boolean isValid() {\n boolean isvalid = true;\n\n if (java.lang.Double.isInfinite(x) || java.lang.Double.isNaN(x) || java.lang.Double.isInfinite(y) || java.lang.Double.isNaN(y) || java.lang.Double.isInfinite(width) || java.lang.Double.isNaN(width) || java.lang.Double.isInfinite(height)\n || java.lang.Double.isNaN(height)) {\n isvalid = false;\n }\n\n return isvalid;\n }",
"public boolean isFull() {\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tif (!isRowFull(r)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tover = true;\n\t\treturn true;\n\t}",
"public void setFill(boolean b){\n\t\tthis.fill = b;\n\t}",
"public boolean isAccessibilityComputationAreaFromShapeFile() {\n return accessibilityComputationAreaFromShapeFile;\n }",
"public boolean isDraw() {\n for (int row = 0; row < ROWS; ++row) {\n for (int col = 0; col < COLUMNS; ++col) {\n if (board[row][col] == Seed.EMPTY) {\n return false; // an empty cell found, not draw, exits\n }\n }\n }\n return true; // no more empty cell, it's a draw\n }",
"public void setFilled ( boolean flag ) {\r\n\t\tfill_flag = flag;\r\n\t}",
"public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}",
"public void setFilled(boolean filled) {\r\n this.filled = filled;\r\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }",
"public boolean isDrawn();",
"boolean hasRect2Value();",
"protected boolean mustDrawOutline()\n {\n return this.getActiveAttributes().isDrawOutline();\n }",
"public abstract boolean initNoFill(int width, int height);",
"public void setFilled(boolean filled) {\n this.filled = filled;\n }",
"private boolean checkFloodFill(int[][] map, int x, int y, int xTarget, int yTarget, int rows, int columns) {\n\t\tfinal int FILL_COLOUR = 5;\n\t\tif (x < 0 || x > rows || y < 0 || y > columns) {\n\t\t\treturn false;\n\t\t}\n\t\tif (x == xTarget && y == yTarget) {\n\t\t\treturn true;\n\t\t}\n\t\tmap[x][y] = FILL_COLOUR;\n\t\tif (map[x][y + 1] == 0) {\n\t\t\tif (checkFloodFill(map, x, y + 1, xTarget, yTarget, rows, columns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif (map[x + 1][y] == 0) {\n\t\t\tif (checkFloodFill(map, x + 1, y, xTarget, yTarget, rows, columns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif (map[x][y - 1] == 0) {\n\t\t\tif (checkFloodFill(map, x, y - 1, xTarget, yTarget, rows, columns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif (map[x - 1][y] == 0) {\n\t\t\tif (checkFloodFill(map, x - 1, y, xTarget, yTarget, rows, columns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean isDrawOnChartArea();",
"boolean hasCoordinates();",
"boolean hasCoordinates();",
"boolean hasCoordinates();",
"private static boolean isFilled(int[][] sudoku) {\r\n for (int i = 0; i < 16; i++) {\r\n for (int j = 0; j < 16; j++) {\r\n if (sudoku[i][j] == -1) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"public boolean floodCheck() {\r\n return true;\r\n }",
"public boolean isSetColor() {\n return this.color != null;\n }",
"private boolean isFull() {\n for (int i = 0; i < 6; i++)\n for (int j = 0; j < 7; j++)\n if (cell[i][j] == ' ')\n return false; // At least one cell is not filled\n\n // All cells are filled\n return true;\n }",
"public boolean isFilled(int y, int x){\n\t\tif(tile[y][x] != 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public void setFilled(boolean filled) \n\t{\n\t\tthis.filled = filled;\n\t}",
"public boolean isSquare()\n {\n return width == height;\n }",
"public boolean isInterior() {\n return false;\n }",
"public boolean isSetColor() {\r\n return this.color != null;\r\n }",
"public boolean isXray();",
"public abstract void setFilled(boolean filled);",
"public boolean isFillWidth() { return _scroller.isFillWidth(); }",
"private boolean updateShape(Position p){\n\t\t// only change when the cell is not end or start pos\n\t\tif (!m.getSixEndPos()[p.getX()][p.getY()] && !m.getSixStartPos()[p.getX()][p.getY()]){\n\t\t\tif (m.getShape()[p.getX()][p.getY()]){\n\t\t\t\tm.getShape()[p.getX()][p.getY()] = false;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm.getShape()[p.getX()][p.getY()] = true;\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public void paintShape(RMShapePainter aPntr)\n{\n // If fill/stroke present, have them paint\n if(getFill()!=null)\n getFill().paint(aPntr, this);\n if(getStroke()!=null && !getStrokeOnTop())\n getStroke().paint(aPntr, this);\n}",
"@Override\n\tpublic boolean canFill(ForgeDirection from, Fluid fluid) {\n\t\treturn false;\n\t}",
"public boolean checkGradient() {\r\n boolean temp = true;\r\n for (int i = 0; i<clusters.length; i++) {\r\n for (int j = 0; j<clusters[i].length; j++) {\r\n try {\r\n if (this.data.getProbeColor(this.experiment.getGeneIndexMappedToData(clusters[i][j])) != null) {\r\n temp = false;\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n }\r\n return temp;\r\n }",
"protected static boolean outOfFrame(@NotNull Shape shape) {\n\t\tif (shape.position.x + shape.size.x / 2 < Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.x - shape.size.x / 2 > Display.getWidth() + Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.y - shape.size.y / 2 > Display.getHeight() + Camera.getPosition().y)\n\t\t\treturn (true);\n\t\treturn shape.position.y + shape.size.y / 2 < Camera.getPosition().y;\n\t}",
"public boolean isSetSmallCircle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SMALLCIRCLE$2) != 0;\n }\n }",
"private boolean isNxNShape() {\n return this.matrix.size() == this.n &&\n this.matrix.stream()\n .allMatch(row -> row.size() == this.n);\n }",
"private boolean isBoardFilled() {\n for (char[] y : board) {\n for (char xy : y) {\n if (xy == 0) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean isFull(int i, int j) throws Exception {\n validation(i, j);\n if (isOpen(i, j) && ufTrue.connected(0, xyTo1D(i, j)))\n return true;\n return false;\n }",
"public boolean overlaps(Shape2D s)\r\n {\r\n if (isPhasing)\r\n return false;\r\n \r\n return super.overlaps(s);\r\n }",
"@Override\r\n public boolean isWellKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isWellKnown();\r\n }"
] | [
"0.8429954",
"0.7930161",
"0.7922565",
"0.76332587",
"0.72480243",
"0.72019315",
"0.71165144",
"0.70256716",
"0.6993169",
"0.68147117",
"0.67540187",
"0.67233217",
"0.67166346",
"0.6713804",
"0.665263",
"0.6647226",
"0.6584226",
"0.6550518",
"0.64794505",
"0.6465034",
"0.64248174",
"0.6419285",
"0.6385599",
"0.637265",
"0.63342464",
"0.632996",
"0.63110256",
"0.6284582",
"0.62843555",
"0.62816197",
"0.6276292",
"0.6255002",
"0.6235109",
"0.6233312",
"0.6229677",
"0.6201853",
"0.62000763",
"0.61465234",
"0.6146048",
"0.6128913",
"0.609452",
"0.6085738",
"0.60815114",
"0.60275614",
"0.6024685",
"0.6024685",
"0.59941554",
"0.5989109",
"0.59852135",
"0.598406",
"0.5981111",
"0.5976257",
"0.5960973",
"0.596003",
"0.59581596",
"0.5956603",
"0.5955602",
"0.5953066",
"0.59498125",
"0.5938338",
"0.59187824",
"0.5907029",
"0.59054047",
"0.58963114",
"0.58903795",
"0.5890208",
"0.58760864",
"0.58702826",
"0.5859313",
"0.58536166",
"0.5845829",
"0.5841333",
"0.58407736",
"0.5835571",
"0.5832259",
"0.5832259",
"0.5832259",
"0.58281165",
"0.58231395",
"0.58203334",
"0.5805183",
"0.5801157",
"0.57962817",
"0.5784867",
"0.57833153",
"0.5778697",
"0.5776079",
"0.5775036",
"0.5772509",
"0.5769296",
"0.57683647",
"0.5765918",
"0.5760295",
"0.5755573",
"0.5755464",
"0.57499087",
"0.5741126",
"0.5740588",
"0.5736164",
"0.57243973"
] | 0.6903424 | 9 |
set p1 use method of class point to check x and y of the point | public void setP1(Point point){
if((point.getX() >= getP2().getX()) || (point.getY() >= getP2().getY())){
throw new IllegalArgumentException();
}
super.setP1(point);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setP1( Point p1 ){\n this.p1=p1;\n }",
"public Point getPoint1() {\r\n return p1;\r\n }",
"public Point getP1(){\n return this.p1;\n }",
"public MyPoint1(double x, int y) {\n this.x = x;\n this.y = y;\n }",
"public MyPoint1 (double x, double y) {}",
"public abstract void setPoint(Point p);",
"public void setP2(Point point){\n\t\tif((point.getX() <= getP1().getX()) || (point.getY() <= getP1().getY())){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tsuper.setP2(point);\n\t}",
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"public void set(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}",
"public void setPoint(Integer point) {\n this.point = point;\n }",
"public void setPoint(double point){\r\n this.point = point;\r\n }",
"public void setPoint1(Point3D point1) {\r\n this.point1 = point1;\r\n }",
"public Point2D getPoint1() {\n return this.point1;\n }",
"private void setP2( Point p2 ){\n this.p2=p2;\n }",
"void pointCheck(LatLng point, boolean valid);",
"public void setPoint(Integer point) {\n\t\tthis.point = point;\n\t}",
"public Point(Point other) {\n super(other);\n this.x = other.x;\n this.y = other.y;\n this.activity = other.activity;\n this.frame = other.frame;\n this.trajectoryid = other.trajectoryid;\n }",
"public Point2D(Point2D point){\n \n //on peut faire point.x et point.y puisqu'on est dans la classe\n this.x = point.x;\n this.y = point.y;\n }",
"public GPoint getFirstPoint() {\n return(point1);\n }",
"Point(int x_, int y_){\n x = x_;\n y = y_;\n }",
"public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }",
"public Point getPoint(){\n\t\treturn _point;\n\t}",
"public Point(double x, double y){\n this.x = x;\n this.y = y;\n }",
"public void setPoint(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public Point(int x, int y){\n this.x = x;\n this.y = y;\n }",
"public Point getPoint() {\n return point;\n }",
"Point(Double x, Double y) {\n\t\tthis.setX(x);\n\t\tthis.setY(y);\n\t}",
"private Viewpoint(int type,Float c1x,Float c1y,Float c2x,Float c2y,Float ex,Float ey){\n\t\tthis.type=type;\n\t\tthis.c1x=c1x;\n\t\tthis.c1x=c1y;\n\t\tthis.c2x=c2x;\n\t\tthis.c2y=c2y;\n\t\tthis.ex=ex;\n\t\tthis.ey=ey;\n\t}",
"public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }",
"public Point3D getPoint1() {\r\n return point1;\r\n }",
"public int getP1Points() {\n return p1Points;\n }",
"boolean equals(Point other) {\n //System.out.println(\"Calling our equals method now!\");\n return (this.x == other.x) && (this.y == other.y);\n }",
"public Point(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}",
"public int getPoint(){\n return point;\n }",
"public Point getPoint()\n\t{\n\t\treturn point;\n\t}",
"public void setPoint( Float point ) {\n this.point = point;\n }",
"public Point(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public Point(int x, int y){\n\t\tthis.x=x; this.y=y;\n\t}",
"public int setPoint(float x, float y, int gnum);",
"public Integer getPoint() {\n return point;\n }",
"public void setLocation( Point p ) {\r\n this.x = p.x;\r\n this.y = p.y;\r\n }",
"public Point(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public Point(Point obj)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = obj.x;\t\t\t\t\t\t\t\t\t\t\t\t// Shallow copy point's x-coordinate\t\n\t\tthis.y = obj.y;\t\t\t\t\t\t\t\t\t\t\t\t// Shallow copy point's y-coordinate\n\t}",
"public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }",
"public Point(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public Point getP2(){\n return this.p2;\n }",
"Point createPoint();",
"public Point(int x, int y)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public Point(int x,int y){\r\n\t\tthis.pos = x;\r\n\t\tthis.id = y;\r\n\t}",
"public double getPoint() {\r\n return point;\r\n }",
"public double getPoint() {\r\n return point;\r\n }",
"private GoodPoint(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(float x, float y)\n {\n this.x = x;\n this.y = y;\n }",
"public Point(){\n this.x = 0;\n this.y = 0;\n }",
"public void setPoint(double value) {\r\n this.point = value;\r\n }",
"public void setX(double point) {\n this.x = point;\n }",
"public Point(int x, int y)\r\n\t{\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void setLocation(Point2D p);",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n SLOPE_ORDER = new SlopeOrder();\n }",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n }",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n }",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y){\n\t\tsuper();\n\t\tthis.x = x; \n\t\tthis.y = y;\n\t}",
"public Point getPoint() {\n return this.mPoint;\n }",
"public int getPointX() {\n return pointX;\n }",
"public Point(int x, int y){\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public Point2D(int x1,int y1) {\n\t\tx= x1;\n\t\ty=y1;\n\t}",
"public void setXY(Point2D aPoint) { setXY(aPoint.getX(), aPoint.getY()); }",
"@Before\n\tpublic void before() {\n\t\tpoint = new Point(-200, 150);\n\t\tpoint1 = new Point(-400, -150);\n\t}",
"protected boolean isPoint( SimpleFeature feature )\n \t{\n \t\t// A better way to do this ?\n \t\treturn( feature.getType().getGeometryDescriptor().getType().getBinding() == com.vividsolutions.jts.geom.Point.class );\n \t}",
"public Point(double x, double y) {\r\n\t\t//Constructors\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public PrecisePoint(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"void test2() {\r\n\t\t\t\t\tPoint3D p = new Point3D(32.103315,35.209039,670);\r\n\t\t\t\t\tassertEquals(true,myCoords.isValid_GPS_Point(p));\r\n\t\t\t\t}",
"public Point(int x, int y) {\r\n\t\tthis.x = x;\tthis.y = y;\r\n\t}",
"public Point(double x, double y) {\n this.xPosition = x;\n this.yPosition = y;\n }",
"public boolean equals(Point other) {\n if (other == null) {\n return false;\n }\n return this.x == other.x && this.y == other.y;\n }",
"public GPoint getSecondPoint(){\n return(point2);\n }",
"public double getX1() {\n\t\treturn p1.x;\n\t}",
"private Point(Point p) {\n\t\tthis.name = p.name;\n\t\tthis.position = p.position.copy();\n\t\tthis.collisionRadius = p.collisionRadius;\n\t}",
"public static void printPoint(Point<? extends Number> point)\r\n {\r\n System.out.println(\"X Coordinate: \" + point.getX());\r\n System.out.println(\"Y Coordinate: \" + point.getY());\r\n }",
"private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }",
"public Point(String name, int x, int y) {\n setName(name);\n setX(x);\n setY(y);\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (super.equals(obj)) return true;\r\n\t\tif (!obj.getClass().equals(this.getClass())) return false;\r\n\t\tPoint p = (Point) obj;\r\n\t\tif ((this.x == p.x) && (this.y == p.y)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public MyOverlay(GeoPoint P1,GeoPoint P2){\n\t \t\n\t \t goeP1=P1;\n\t \t geoP2=P2;\n\t \t \n\t }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof PPoint)) {\n\t\t\treturn false;\n\t\t}\n\t\tPPoint other = (PPoint) obj;\n\t\treturn Double.compare(getX(), other.getX()) == 0 && Double.compare(getY(), other.getY()) == 0;\n\t}",
"public abstract Point2D getPosition();",
"public Point getPosition();",
"public T setPoint(float x, float y) {\n this.startX = x;\n this.startY = y;\n return self();\n }",
"public boolean equals(Object p) {\r\n return this.id == ((Point) p).id;\r\n }",
"public void setPointX(int pointX) {\n this.pointX = pointX;\n }",
"Point getPosition();",
"Point getPosition();",
"public void setSetpoint(double setpoint);",
"void setPosition(Point point);",
"public Point getPointA() {\n return pointA;\n }"
] | [
"0.800689",
"0.7517842",
"0.7349548",
"0.72427166",
"0.69724643",
"0.6965503",
"0.6906672",
"0.68560386",
"0.6817478",
"0.6766763",
"0.67528576",
"0.67524034",
"0.6750588",
"0.6746079",
"0.6655167",
"0.6627406",
"0.6617752",
"0.6612724",
"0.66079986",
"0.66013235",
"0.6568114",
"0.654093",
"0.6515844",
"0.65068614",
"0.65045226",
"0.64984775",
"0.64835215",
"0.6482718",
"0.6468836",
"0.64679915",
"0.64570034",
"0.6430024",
"0.6420688",
"0.6410904",
"0.64028",
"0.63910526",
"0.63797003",
"0.6343634",
"0.6330932",
"0.63164186",
"0.6315519",
"0.63005424",
"0.6296728",
"0.6296005",
"0.62901425",
"0.6263079",
"0.62546307",
"0.6252977",
"0.625165",
"0.62409186",
"0.62409186",
"0.6227418",
"0.62209195",
"0.6216187",
"0.6206117",
"0.6200376",
"0.6200346",
"0.61963254",
"0.61896235",
"0.61896235",
"0.61896235",
"0.61896235",
"0.61896235",
"0.61816835",
"0.61778384",
"0.61778384",
"0.61778384",
"0.6177274",
"0.61718863",
"0.61716306",
"0.6170808",
"0.6168537",
"0.6160052",
"0.61581933",
"0.61278695",
"0.61201006",
"0.6115267",
"0.61123306",
"0.61116594",
"0.61023676",
"0.610017",
"0.6097805",
"0.60921836",
"0.60821545",
"0.60585403",
"0.6053778",
"0.60517216",
"0.6048367",
"0.60483253",
"0.60479623",
"0.60478646",
"0.6043427",
"0.6041764",
"0.60381603",
"0.6036875",
"0.6036145",
"0.6036145",
"0.6027392",
"0.6024832",
"0.6020071"
] | 0.7872134 | 1 |
set p2 use method of class point to check x and y of the point | public void setP2(Point point){
if((point.getX() <= getP1().getX()) || (point.getY() <= getP1().getY())){
throw new IllegalArgumentException();
}
super.setP2(point);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setP2( Point p2 ){\n this.p2=p2;\n }",
"public Point getP2(){\n return this.p2;\n }",
"public Point2D(Point2D point){\n \n //on peut faire point.x et point.y puisqu'on est dans la classe\n this.x = point.x;\n this.y = point.y;\n }",
"public GPoint getSecondPoint(){\n return(point2);\n }",
"public void setP1(Point point){\n\t\tif((point.getX() >= getP2().getX()) || (point.getY() >= getP2().getY())){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tsuper.setP1(point);\n\t}",
"public Point2D getPoint2() {\n return this.point2;\n }",
"public static Point2D.Double findPositionGeneralizationMember(Point2D.Double point, Point2D.Double point2){\r\n\r\n\t\tPoint2D.Double newpoint = new Point2D.Double();\r\n\t\tnewpoint.y=point2.y;\r\n\t\tif(point.getX()>point2.getX()){\t\r\n\t\t\tnewpoint.x=point.getX()+150;\r\n\t\t}else{\r\n\t\t\tnewpoint.x=point.getX()-150;\r\n\t\t}\r\n\t\treturn newpoint;\r\n\t}",
"public Point getPoint1() {\r\n return p1;\r\n }",
"public abstract Point2D getPosition();",
"public void setLocation(Point2D p);",
"private void setP1( Point p1 ){\n this.p1=p1;\n }",
"public Point3D getPoint2() {\r\n return point2;\r\n }",
"public void setPoint2(Point3D point2) {\r\n this.point2 = point2;\r\n }",
"public Point2D(double x, double y){\n this.x = x;\n this.y = y;\n }",
"public Point(Point other) {\n super(other);\n this.x = other.x;\n this.y = other.y;\n this.activity = other.activity;\n this.frame = other.frame;\n this.trajectoryid = other.trajectoryid;\n }",
"void test2() {\r\n\t\t\t\t\tPoint3D p = new Point3D(32.103315,35.209039,670);\r\n\t\t\t\t\tassertEquals(true,myCoords.isValid_GPS_Point(p));\r\n\t\t\t\t}",
"public Point getP1(){\n return this.p1;\n }",
"boolean equals(Point other) {\n //System.out.println(\"Calling our equals method now!\");\n return (this.x == other.x) && (this.y == other.y);\n }",
"public void setXY(Point2D aPoint) { setXY(aPoint.getX(), aPoint.getY()); }",
"private Point methodTwo(BigInteger xp, BigInteger xq, BigInteger yp,\n\t\t\tBigInteger yq) {\n\t\tPoint res = new Point();\n\t\tBigInteger s = (THREE.multiply(xp.multiply(xp)).add(a)).mod(zp)\n\t\t\t\t.multiply(yp.add(yp).modInverse(zp)).mod(zp);\n\t\tres.setX(s.multiply(s).subtract(xp).subtract(xq).mod(zp));\n\t\tres.setY(s.multiply(xp.subtract(res.getX())).subtract(yp).mod(zp));\n\t\treturn res;\n\t}",
"boolean between(tPoint p2)\n {\n if (! this.collinear(p2))\n return false;\n \n //check to see if line is vertical\n if (this.p0.x != this.p1.x)\n {\n //if not vertical, check to see if point overlaps in x\n return (((this.p0.x < p2.x) && (p2.x < this.p1.x)) |\n ((this.p0.x > p2.x) && (p2.x > this.p1.x)));\n }\n else\n {\n //if vertical, check to see if point overlaps in y\n return (((this.p0.y < p2.y) && (p2.y < this.p1.y)) |\n ((this.p0.y > p2.y) && (p2.y > this.p1.y)));\n }\n }",
"public VariablePoint2(double x, double y){\n super(x, y);\n this.x = x;\n this.y = y;\n }",
"public abstract void setPoint(Point p);",
"public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }",
"public Point2D getPoint1() {\n return this.point1;\n }",
"public Point2Dd (double x, double y){\r\n this.x = x;\r\n this.y = y;\r\n }",
"void setP2p(int p2p);",
"public static Point2D.Double findPositionGeneralization(Point2D.Double point, Point2D.Double point2){\r\n\r\n\t\tPoint2D.Double newpoint = new Point2D.Double();\r\n\t\tif(Math.abs(point.getX()-point2.getX())>Math.abs(point.getY()-point2.getY())){\t\r\n\t\t\tif(point.getX()>point2.getX())\r\n\t\t\t\tnewpoint.x=(point.getX()+point2.getX())/2;\r\n\t\t\telse\r\n\t\t\t\tnewpoint.x=(point2.getX()+point.getX())/2;\r\n\r\n\t\t\tif(point.getY()<point2.getY())\r\n\t\t\t\tnewpoint.y=point.getY()-110;\r\n\t\t\telse\r\n\t\t\t\tnewpoint.y=point2.getY()-110;\r\n\t\t}else{\r\n\t\t\tif(point.getY()>point2.getY())\r\n\t\t\t\tnewpoint.y=(point.getY()+point2.getY())/2;\r\n\t\t\telse\r\n\t\t\t\tnewpoint.y=(point2.getY()+point.getY())/2;\r\n\r\n\t\t\tif(point.getX()<point2.getX())\r\n\t\t\t\tnewpoint.x=point.getX()+150;\r\n\t\t\telse\r\n\t\t\t\tnewpoint.x=point2.getX()+150;\r\n\r\n\t\t}\r\n\t\treturn newpoint;\r\n\t}",
"public Point2D getLocation();",
"public MyPoint1(double x, int y) {\n this.x = x;\n this.y = y;\n }",
"public int getP2Points() {\n return p2Points;\n }",
"public void set(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}",
"public Point2D(int x1,int y1) {\n\t\tx= x1;\n\t\ty=y1;\n\t}",
"public Point2d(double x, double y) {\r\n\t\t this.xCoord = x;\r\n\t\t this.yCoord = y;\r\n\t }",
"public double getX2() {\n\t\treturn p2.x;\n\t}",
"void pointCheck(LatLng point, boolean valid);",
"public MyPoint1 (double x, double y) {}",
"public static void main(String[] args) {\n Point point = new Point(2,3);\n test2(point);\n System.out.println(point.getX());\n System.out.println(point.getY());\n }",
"public Point2Dd () {\r\n x = 0;\r\n y = 0;\r\n }",
"public double comparePoints(KdTreeST<Value>.Node node, Point2D p, boolean test) {\n\t\tif (test) {\n\t\t\treturn Double.compare(p.x(), node.point.x());\n\t\t} else {\n\t\t\treturn Double.compare(p.y(), node.point.y());\n\t\t}\n\n\t}",
"public abstract void setPosition(Point2D position);",
"public Point2D()\n {\n this.x = this.y = 0f;\n }",
"public Point2D(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void setPoint(double point){\r\n this.point = point;\r\n }",
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"private Viewpoint(int type,Float c1x,Float c1y,Float c2x,Float c2y,Float ex,Float ey){\n\t\tthis.type=type;\n\t\tthis.c1x=c1x;\n\t\tthis.c1x=c1y;\n\t\tthis.c2x=c2x;\n\t\tthis.c2y=c2y;\n\t\tthis.ex=ex;\n\t\tthis.ey=ey;\n\t}",
"public Point2D setPoint(int i, double x, double y);",
"public double getY2() {\n\t\treturn p2.y;\n\t}",
"public boolean getBit(Point2D.Double p) {\n// System.out.println(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\");\n// System.out.println(\"Getting Point x=\"+p.x+ \", y=\"+p.y);\n// System.out.println(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\");\n return get((int) ((int)x * ((int)p.y - 1) + (int)p.y));\n \n }",
"public Point getPoint(){\n\t\treturn _point;\n\t}",
"public Point(double x, double y){\n this.x = x;\n this.y = y;\n }",
"private GoodPoint(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"private void findPoints(int[] xPoints,int[]yPoints,int x,int y,int x2,int h){\r\n xPoints[0]=x;\r\n xPoints[1]=x2;\r\n xPoints[2]=x;\r\n yPoints[0]=y;\r\n yPoints[1]=y+h/2;\r\n yPoints[2]=y+h; \r\n }",
"public void setPoint(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public Point getPoint(final Point otherPoint)\n\t\t{\n\n\t\t\t//to get the edge point on the shape\n\t\t\tif(shape.equals(\"poly\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn getCentrePoint();\n\n\t\t\tfinal Point cp = getCentrePoint();\n\t\t\tfinal int rise = otherPoint.y-cp.y;\n\t\t\tfinal int run = otherPoint.x-cp.x;\n\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tif(rise == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.x >= cp.x)\n\t\t\t\t\t\treturn new Point(coords[0]+coords[2]+4,coords[1]+(coords[3]/2));\n\t\t\t\t\treturn new Point(coords[0]-2,coords[1]+(coords[3]/2));\n\t\t\t\t}\n\t\t\t\telse if(run == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.y >= cp.y)\n\t\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]+coords[3]+4);\n\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]-2);\n\t\t\t\t}else\n\t\t\t\t{\n\n\t\t\t\t\tfinal double m = (double)rise / (double)run;\n\t\t\t\t\tfinal double mx = (double)run / (double)rise;\n\n\t\t\t\t\tif(otherPoint.x >= cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\n\t\t\t\t\t}else if(otherPoint.x < cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else if(otherPoint.x < cp.x)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}else if(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tif(rise != 0 && run != 0)\n\t\t\t\t{\n\t\t\t\t\tfinal double ratio = (coords[2] / Math.sqrt(rise*rise+run*run));\n\n\t\t\t\t\treturn new Point(cp.x+(int)(run*ratio),cp.y+(int)(rise*ratio));\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif(rise == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(run > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x+coords[2],cp.y);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x-coords[2],cp.y);\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(rise > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y+coords[2]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y-coords[2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t\t//return cp;\n\t\t}",
"public boolean equals(Point other) {\n if (other == null) {\n return false;\n }\n return this.x == other.x && this.y == other.y;\n }",
"public Point2Dd (int x, int y){\r\n this.x = (double)x;\r\n this.y = (double)y;\r\n }",
"private double findYByX(double x, Point2D p1, Point2D p2) {\n \t\tdouble x1 = p1.getX();\n \t\tdouble y1 = p1.getY();\n \t\tdouble x2 = p2.getX();\n \t\tdouble y2 = p2.getY();\n \t\tdouble k = (y2-y1)/(x2-x1);\n \t\tdouble b = y1-k*x1;\n \t\treturn k*x+b;\n }",
"public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }",
"public boolean locatePoint(Point2D p, VisualItem item) {\n Shape s = getShape(item);\n if ( s == null ) {\n return false;\n } else {\n double width = Math.max(2, getLineWidth(item));\n double halfWidth = width/2.0;\n \n EdgeItem edge = (EdgeItem)item;\n CallEdge callEdge = ReacherDisplay.Instance.getCallEdge(item);\n \n boolean retVal;\n //if (callEdge.isBranching())\n //{\n \tretVal = line1.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width) || \n \t\t\tline2.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width);\n /*}\n else\n {\n \tretVal = curve.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width);\n } */ \n return retVal;\n }\n }",
"public Point getPoint() {\n return point;\n }",
"public void setX2(Double x2) {\n\t\tthis.x2 = x2;\n\t}",
"Point(Double x, Double y) {\n\t\tthis.setX(x);\n\t\tthis.setY(y);\n\t}",
"public Point2d() {\r\n\t // Call two-argument constructor and specify the origin.\r\n\t\t this(0, 0);\r\n\t\t System.out.println(\"Point2d default initiializing\");\r\n\t }",
"public MyOverlay(GeoPoint P1,GeoPoint P2){\n\t \t\n\t \t goeP1=P1;\n\t \t geoP2=P2;\n\t \t \n\t }",
"public LineXY( final PointXY p1, final PointXY p2 ) {\n\t\tthis.p1 = p1;\n\t\tthis.p2\t= p2;\n\t}",
"public Point(int x, int y){\n this.x = x;\n this.y = y;\n }",
"private static int comparePoints(Point p1, Point p2, int idx) {\n double p1Pos = p1.getX();\n double p2Pos = p2.getX();\n if (idx == 1) {\n p1Pos = p1.getY();\n p2Pos = p2.getY();\n }\n return Double.compare(p1Pos, p2Pos);\n }",
"public void setPoint(Integer point) {\n this.point = point;\n }",
"private boolean isVerticalLines2points(Point p1, Point p2) {\n if (abs(p1.x - p2.x ) < 70 && p1.y != p2.y ) {\n\n return true;\n }\n return false;\n }",
"public int getPoint(){\n return point;\n }",
"public Point(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}",
"public int getPointsP2() {\r\n\r\n pointsP2 = pointsP + getPointsPlayer3();\r\n\r\n if (pointsP2 >= 10) {\r\n pointsP2 -= 10;\r\n }\r\n return pointsP2;\r\n }",
"public Point(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public IPoint getSecondPoint()\n {\n\n Set<IPoint> vertices = this.getVertices();\n Object[] verticesArray = vertices.toArray();\n IPoint secondPoint = (IPoint)verticesArray[1];\n\n return secondPoint;\n }",
"public Point(int x, int y){\n\t\tthis.x=x; this.y=y;\n\t}",
"public Point(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"private void defineLinePoints(int x1, int y1,int x2,int y2){\n Line line1 = new Line(x1, y1, x2, y2);\n for(int i = 0; i < line1.points.size(); i++){\n super.points.add(line1.points.get(i));\n }\n }",
"@org.junit.Test\n public void getPointTestCurve2() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(20, 20));\n assertEquals(new Vector(10, 20), curve.getPoint(0));\n assertEquals(new Vector(15, 20), curve.getPoint(0.5));\n assertEquals(new Vector(20, 20), curve.getPoint(1));\n }",
"@Test\n\tpublic void subPPTest(){\n\t\tPoint p1 = new Point(5,5);\n\t\tPoint p2 = new Point(2,2);\n\t\tXY r = p1.sub(p2);\n\t\tassertTrue(r.isOffs());\n\t\tassertFalse(r.isAbs());\n\t}",
"public boolean equals(Object other) {\r\n if (other == this) return true;\r\n if (other == null) return false;\r\n if (other.getClass() != this.getClass()) return false;\r\n Point2D that = (Point2D) other;\r\n return this.x == that.x && this.y == that.y;\r\n }",
"public Point getPoint()\n\t{\n\t\treturn point;\n\t}",
"public Point(int a, int b)\n\t{\n\t\t\n\tint x2 = a;\n\tint y2 = b;\t\n\tdouble D_x = x2;\n\tdouble D_y = y2;\n\t;\n\t\t\n\t\tif (!(Double.isNaN(D_x)) && !(Double.isNaN(D_y))){\n\t\t//if ( (!D_x.equals(null)) && (!D_y.equals(null))){\n\t\t\tif(a==(int)x2) this.x = a;\n\t\t\tif(b==(int)y2) this.y = b;\n\t\t\t\n\t\t\t\n\t\t\t//\tthis.x=0;\n\t\t\t//\tthis.y=0;\n\t\t\t\n\t\t}\n\t\tif (Double.isNaN(D_x)) this.x=0;\n\t\tif (Double.isNaN(D_y)) this.y=0;\t\n\t\t\n\t}",
"public double getPoint() {\r\n return point;\r\n }",
"public double getPoint() {\r\n return point;\r\n }",
"public AltBn128Fq2Point(final Fq2 x, final Fq2 y) {\n super(x, y);\n }",
"private static final int[] getPoint(int point) {\n int[] ret = new int[2];\n if (point >= firstPoint && point <= endPoint) {\n ret = getPoint(ruteData[point + 2]);//ruteData[point + 2]);\n }\n return ret;\n }",
"Point(int x_, int y_){\n x = x_;\n y = y_;\n }",
"private void setMinMaxPoints(BlockVector pt1, BlockVector pt2) {\r\n List<Vector> points = new ArrayList<Vector>();\r\n points.add(pt1);\r\n points.add(pt2);\r\n setMinMaxPoints(points);\r\n }",
"public double getY2()\n {\n return m_Y2;\n }",
"public int getY2() {\n\t\treturn y2;\n\t}",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n SLOPE_ORDER = new SlopeOrder();\n }",
"public void setLocation( Point p ) {\r\n this.x = p.x;\r\n this.y = p.y;\r\n }",
"public boolean checkX2()\n {\n if(this.getX()>495) {\n return true;\n }\n else\n return false;\n\n }",
"public abstract boolean containsPoint(int x, int y);",
"public String toString() {\n return \"<VariablePoint2: (\"+getX()+\", \"+getY()+\")>\";\n }",
"public Point(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public double getX2()\n {\n return m_X2;\n }",
"static Boolean pointInPgm(int x, int y) {\n return (x >= 0 ) && (y >= 0) && (x <= pgmInf.width) && (y <= pgmInf.height);\n }",
"public int getPointY() {\n return pointY;\n }"
] | [
"0.7827229",
"0.7392833",
"0.7242746",
"0.7140987",
"0.707805",
"0.6923418",
"0.6873705",
"0.6849709",
"0.6826338",
"0.6813389",
"0.6781208",
"0.67276996",
"0.66738886",
"0.6662422",
"0.6644368",
"0.6608876",
"0.65605944",
"0.6553061",
"0.655177",
"0.654406",
"0.65334046",
"0.6528838",
"0.6522629",
"0.6509748",
"0.6489147",
"0.6462988",
"0.6462679",
"0.64539725",
"0.6442351",
"0.6439184",
"0.64228743",
"0.6417494",
"0.63831264",
"0.6377954",
"0.6364194",
"0.6363728",
"0.633351",
"0.6318322",
"0.6315807",
"0.62865704",
"0.6285695",
"0.626475",
"0.6264225",
"0.62277734",
"0.62232274",
"0.62091386",
"0.62042594",
"0.61973774",
"0.6193528",
"0.61810964",
"0.6178322",
"0.61727846",
"0.6171303",
"0.6164197",
"0.6160944",
"0.6160002",
"0.61439025",
"0.61415005",
"0.6137831",
"0.61365986",
"0.6126361",
"0.6126208",
"0.6125819",
"0.61015993",
"0.6086464",
"0.6063076",
"0.6056385",
"0.6025772",
"0.6025644",
"0.60227644",
"0.60184187",
"0.6016641",
"0.60163665",
"0.6001522",
"0.599422",
"0.5987552",
"0.598626",
"0.59856844",
"0.59780204",
"0.5976998",
"0.59767",
"0.597253",
"0.5967492",
"0.59607965",
"0.59607965",
"0.5955061",
"0.59501404",
"0.5949936",
"0.5948183",
"0.59431726",
"0.5941343",
"0.59380937",
"0.59310764",
"0.5930708",
"0.59251297",
"0.59231323",
"0.5921753",
"0.5917617",
"0.5914668",
"0.59121406"
] | 0.776914 | 1 |
abstract method selfPaint(Graphics g) | public abstract void selfPaint(Graphics g); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void paint(Graphics g);",
"public abstract void paint(Graphics2D g);",
"abstract public void draw(Graphics g);",
"public abstract void draw(Graphics g);",
"public abstract void draw(Graphics g);",
"public abstract void draw(Graphics g);",
"public abstract void draw(Graphics g);",
"public void paint(Graphics g) {\n\t\t\n\t}",
"public void paint(Graphics g){\n\t\t\n\t}",
"public void paint(Graphics g) {\n }",
"public void paint(Graphics g) {\n }",
"public void paint (Graphics g)\r\n {\n }",
"@Override\n public void paintComponent(Graphics g) \n {\n super.paintComponent(g);\n doDrawing(g);\n }",
"public abstract void paint(Graphics2D g2d);",
"@Override\r\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t\r\n\t\r\n\t}",
"protected void paintComponent(Graphics g)\n\t{\n\t}",
"protected abstract void paint(Graphics g, Object iDrawSurfaceID);",
"public abstract void draw(Graphics g, Color color);",
"public void paintComponent(Graphics g)\r\n\t\t{\t\t\t\r\n\t\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t}",
"public void paintComponent(Graphics g)\r\n\t\t{\t\t\t\r\n\t\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t}",
"@Override\r\n\t\tpublic void paint(Graphics g) {\n\t\t\tsuper.paint(g);\r\n\t\t}",
"public void paint(Graphics g) {\n super.paint(g);\n\n }",
"public abstract void paint(Graphics g, int width, int height);",
"abstract public void draw(Graphics2D g);",
"@Override\n public void paint(Graphics g) {\n }",
"public void paintComponent(Graphics g)\r\n\t{\n\t}",
"public void paint (Graphics g){\n \r\n }",
"protected abstract void render(Graphics g);",
"protected abstract void paint(Painter painter);",
"private void paintPainter(Graphics g)\n/* */ {\n/* 165 */ if (this.painter == null) { return;\n/* */ }\n/* */ \n/* */ \n/* 169 */ Graphics2D scratch = (Graphics2D)g.create();\n/* */ try {\n/* 171 */ this.painter.paint(scratch, this, getWidth(), getHeight());\n/* */ }\n/* */ finally {\n/* 174 */ scratch.dispose();\n/* */ }\n/* */ }",
"@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}",
"protected void paint(Graphics g) {\n mymidlet.paint(g);\n }",
"@Override //paint component is overridden to allow super.paintCompnent to be called\r\n public void paintComponent(Graphics g) {\n \tsuper.paintComponent(g); //The super.paintComponent() method calls the method of the parent class, prepare a component for drawing\r\n doDrawing(g); //The drawing is delegated inside the doDrawing() method\r\n }",
"public void paint(Graphics g)\n/* */ {\n/* 100 */ Graphics2D g2d = (Graphics2D)g.create();\n/* */ try\n/* */ {\n/* 103 */ this.painter.paint(g2d, this.c, this.c.getWidth(), this.c.getHeight());\n/* */ } finally {\n/* 105 */ g2d.dispose();\n/* */ }\n/* */ }",
"public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n draw(g);\n }",
"public void draw(Graphics g){\n\t}",
"public void paint(Graphics g){\n g.setColor(Color.LIGHT_GRAY);\n g.drawRoundRect(0, 0, getWidth()-1, getHeight()-1, 20, 20);\n try{\n super.paint(g);}\n catch(Exception e){\n ij.IJ.showMessage(\"Paint Error\");\n }\n }",
"public void draw(Graphics g) {\n\t\t\n\t}",
"public abstract void render(Graphics g);",
"public void draw(Graphics g) {\r\n\t\t\r\n\t}",
"public void draw(Graphics g) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t\trender(g);\r\n\t}",
"public void paint(Graphics g)\r\n\t{\r\n\t\t// First call the base class paint method to do a one time\r\n\t\t// Initialization - specific to the JoglCanvas class\r\n\t\tsuper.paint(g);\r\n\t\t//System.out.println(\"Call to paint\");\r\n\t\tdisplay();\r\n\t}",
"public void paintComponent(Graphics g);",
"abstract void draw(Graphics g, int xoff, int yoff,\n int x, int y, int width, int height);",
"public void paint(Graphics g) {\n\tupdate(g);\n }",
"public void draw(Graphics g);",
"public void draw(Graphics g);",
"protected void doPaint(Graphics2D g, T component, int width, int height)\n/* */ {\n/* 353 */ for (Painter p : getPainters()) {\n/* 354 */ Graphics2D temp = (Graphics2D)g.create();\n/* */ try\n/* */ {\n/* 357 */ p.paint(temp, component, width, height);\n/* 358 */ if (isClipPreserved()) {\n/* 359 */ g.setClip(temp.getClip());\n/* */ }\n/* */ } finally {\n/* 362 */ temp.dispose();\n/* */ }\n/* */ }\n/* */ }",
"public void drawOn(Graphics g);",
"public abstract void draw( Graphics2D gtx );",
"public void draw(Graphics2D g)\r\n\t{\r\n\t\t//Draw this Pedestrian\r\n\t\tsuper.draw(g);\r\n\t}",
"public void drawMe(Graphics g){\r\n\t\t\tg.setColor(color);\r\n\t\t\tg.fillRect(x, y, sizeX, sizeY);\r\n\t\t}",
"public void paint(Graphics g) {\n super.paint(g);\n update(g);\n }",
"public abstract void draw(java.awt.Graphics canvas);",
"public void paint(Graphics g) {\n\t\tupdate(g);\n\t}",
"@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }",
"public void paint (Graphics g) {\n genReport();\n super.paint(g);\n }",
"public abstract void draw(Graphics2D graphics);",
"@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}",
"void paintOverall(Graphics g);",
"protected abstract void draw();",
"@Override\n\tpublic void draw(Graphics canvas) {}",
"@Override\n\tpublic void draw(Graphics g, JPanel panel) {\n\t\t\n\t}",
"@Override\n\tpublic void render(Graphics g)\n\t{\n\t}",
"public void paint(Graphics g) {\n\n \t\n \tsuper.paint(g);\n \n \tg.drawRect(0, 0, \n \t\t getSize().width - 1,\n \t\t getSize().height - 1); \t\n \t\n\n }",
"void paintComponent(Graphics g);",
"public void paint (Graphics g) {\n updateReport();\n super.paint(g);\n }",
"public void paint (Graphics g) {\n super.paint(g);\n genReport();\n }",
"@Override\n public void paintComponent(Graphics g) {\n g.setColor(Color.WHITE);\n g.fillRect(0,0,super.getWidth(),super.getHeight());\n\n for (DrawableVector instruction : instructions){\n instruction.draw(g, getWidth(), getHeight());\n }\n if (currentInstruction != null){\n currentInstruction.draw(g, getWidth(), getHeight());\n }\n }",
"public void paint (Graphics g) {\n updateReport();\n super.paint(g);\n }",
"public void paint (Graphics g)\r\n {\r\n \t\r\n \tgame.draw((Graphics2D)g);\r\n \t\r\n }",
"abstract void draw();",
"abstract void draw();",
"public void paint (Graphics g) {\n super.paint(g);\n // g.setColor(Color.BLUE);\n // g.drawRect(0, 0, 100, 100);\n }",
"@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}",
"@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}",
"protected final void paintPeer(final Graphics g) {\n final D delegate = getDelegate();\n if (delegate != null) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new InternalError(\"Painting must be done on EDT\");\n }\n synchronized (getDelegateLock()) {\n // JComponent.print() is guaranteed to not affect the double buffer\n getDelegate().print(g);\n }\n }\n }",
"@Override\n public void onPaint(Graphics2D g) {\n\n }",
"public void paintComponent(Graphics arg0) {\n\t\tsuper.paintComponent(arg0);\n\t\targ0.setColor(Color.BLACK); \n\t\tboard(arg0); \n\t\tdrawStone(arg0);\n\t}",
"public void paint(Graphics g) {\r\n\t\tcloud.paint(g);\r\n\t\tg1.paint(g);\r\n\t\tteacher.paint(g);\r\n\t\tjustin.paint(g);\r\n\t\tbutt.paint(g);\r\n\t\t//justin2.paint(g);\r\n\t\t//justin3.paint(g);\r\n\t\t\r\n\t}",
"public void paint(Graphics2D g)\n {\n g.drawImage(this, 0, 0, null);\n }",
"@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.orange);\n\t\tg.fillRect(getX(), getY(), getW(), getH());\n\t}",
"@Override\r\n\tpublic void paint(Graphics g, JComponent c) {\n\t\tsuper.paint(g, c);\r\n\t}",
"public void paintComponent(Graphics myGraphic) \n\t{\n\t\tsuper.paintComponent(myGraphic);\t\n\t}",
"protected abstract void paintGrid(Graphics2D g);",
"public void paint(Graphics g )\n {\n super.paint(g); // is no super.paint(), then lines stay on screen \n \n for ( int i=0; i<allTheShapesCount; i++ )\n {\n allTheShapes[ i ] . drawMe(g);\n }\n }",
"public void render(Graphics g) {\n\t}",
"@Override \n\tpublic void update(Graphics g) \n\t{\n\t\tpaint(g); \n\t}",
"public abstract void drawPiece(int x, int y, Graphics g);",
"public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tg2 = (Graphics2D) g;\n\t\tdibujar(g);\n\t\tactualizar();\n\t}",
"@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\tg.fillOval(0,0, this.getWidth(),this.getHeight());\r\n }",
"public abstract void draw( );",
"public void paint(Graphics g) {\r\n\t\tsuper.paint(g);\r\n\t\t// add code below\r\n\t\tGraphics g1 = drawingPanel.getGraphics();\r\n\t\tif (myLine != null && myLine.getIsAPerpendicular() == false) {\r\n\t\t\tShapes.add(myLine);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1);\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t\tif (myOval != null) {\r\n\t\t\tShapes.add(myOval);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1); // To make this legal an abstract method named draw which accepted graphics g need to be added to the shapes class\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t}",
"public void paint(Graphics g) {\n setViewWindow(myCurrentLeftX, 0, DISP_WIDTH, DISP_HEIGHT);\n paint(g, CANVAS_X, CANVAS_Y);\n }",
"public void paint(Graphics g){\n\t\tsuper.paint(g);\n\t\t\n\t\t//Mapa\n\t\tthis.mapa.paint(g);\n\t\t\n\t\t//Avatar\n\t\tthis.av.paint(g);\n\t\n\t\t//painel de Score\n\t\tthis.sp.paint(g);\n\t\tthis.sp.ScoreText(g);\n\n\t\t//lixo\n\t\tfor(int i=0;i<10;i++){\n\t\t\tthis.lixo[i].paint(g);;\n\t\t}\n\t\t\n\t\t//A partir de 15 segundos o lixo especial ir� aparecer\n\t\tif(TimerGameplay.tempo <= 15){\n \t\tthis.lixoEspecial.paint(g);\n \t}\n\t}",
"@Override\n public void paint(Graphics g) {\n\n g2d = (Graphics2D) g; //Casting the Grahpics object to an Graphics2D object.\n\n /**\n * Setting RenderingHints.\n */\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);\n g2d.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_DEFAULT);\n\n /**\n * Initializing of board.\n * Call to method drawGrid().\n * Drawing all Grids from 0 to 15 in a for()-loop.\n */\n paintGrid();\n\n /**\n * Call to method drawNumbers().\n * Writing numbers in field for easier recognition.\n */\n paintNumbers();\n\n /**\n * Checks if a game is initialized.\n * If it is, it will paint the tokens, if not, it won't paint the tokens.\n */\n if(game != null) {\n\n game.paint(g2d);\n }\n }",
"protected void paintComponent(Graphics g)\n/* */ {\n/* 126 */ if ((this.painter != null) || (isNimbus()))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 131 */ if (isOpaque())\n/* */ {\n/* 133 */ paintComponentWithPainter((Graphics2D)g);\n/* */ }\n/* */ else {\n/* 136 */ paintPainter(g);\n/* 137 */ super.paintComponent(g);\n/* */ }\n/* */ }\n/* */ else {\n/* 141 */ super.paintComponent(g);\n/* */ }\n/* */ }",
"public abstract void draw();"
] | [
"0.8558608",
"0.8232047",
"0.8196786",
"0.8115902",
"0.8115902",
"0.8115902",
"0.8115902",
"0.80977696",
"0.80673885",
"0.8056289",
"0.8056289",
"0.79763424",
"0.7899732",
"0.7855841",
"0.78534883",
"0.78513926",
"0.7798422",
"0.77788645",
"0.77569795",
"0.77569795",
"0.77467436",
"0.7732551",
"0.7725891",
"0.7723205",
"0.7694403",
"0.7677555",
"0.76705885",
"0.76564497",
"0.76494884",
"0.76426196",
"0.7638333",
"0.7638333",
"0.7633614",
"0.76225454",
"0.7618913",
"0.7605206",
"0.76050997",
"0.7604157",
"0.75971276",
"0.7589096",
"0.758043",
"0.756301",
"0.75133705",
"0.75032187",
"0.74924314",
"0.7488402",
"0.74870366",
"0.7481576",
"0.7481576",
"0.74483657",
"0.7445208",
"0.74328387",
"0.73976403",
"0.7383978",
"0.73820174",
"0.73801935",
"0.7351403",
"0.7344262",
"0.7325728",
"0.731297",
"0.73019665",
"0.72870904",
"0.7286702",
"0.7264311",
"0.7261992",
"0.72606534",
"0.72603303",
"0.7259361",
"0.72587836",
"0.7258368",
"0.72537404",
"0.72514725",
"0.724576",
"0.72360986",
"0.72360986",
"0.7219821",
"0.7191676",
"0.7191676",
"0.7189123",
"0.7173917",
"0.71726876",
"0.7164166",
"0.7162118",
"0.71537954",
"0.7145209",
"0.71418357",
"0.7134818",
"0.7120499",
"0.71203",
"0.71134424",
"0.710225",
"0.7088388",
"0.70852876",
"0.7084268",
"0.7080105",
"0.7069942",
"0.7063764",
"0.70603913",
"0.70580786",
"0.705566"
] | 0.954482 | 0 |
A manager that collects votes and tallies them. | public interface VoteManager<USER, ITEM, VOTE, TIME, ENTRY extends VoteEntry<USER, ITEM, VOTE, TIME>, RESPONSE> extends AbstractInputManager<ENTRY, RESPONSE> {
/**
* A wrapper around {@link #putEntry(Object)} to give a more meaningful name
* in context.
*
* @param entry the vote entry to put into the manager
* @return the response created as a result of the operation
* @see #putEntry(Object)
*/
default RESPONSE castVote(final ENTRY entry) {
return this.putEntry(entry);
}
/**
* Tallies the result of the collected votes.
*
* @return the response created as a result of the tally
*/
RESPONSE tally();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void doVote() {\n }",
"public VotingSystem() {\n votingList=new ArrayList<>();\n }",
"public void addVote() {\n this.votes++;\n }",
"public VotingSystem(){\n votingList = new ArrayList<Voting>();\n }",
"void votedOnPoll(String pollId);",
"public interface VoteService {\n\n\tvoid addVote(Vote contact);\n\n\tList<Vote> listVote();\n\n\tvoid removeVote(String id);\n\n\tvoid closeVote(String id);\n\n\tVote getVote(String id);\n\n\tvoid firstCounterIncrementer(String id);\n\n\tvoid secondCounterIncrementer(String id);\n}",
"public interface VoteRepository {\n List<Vote> searchVotes(VoteSearchCriteria searchCriteria);\n\n Vote getVoteById(int voteId);\n\n List<Vote> getActiveVotes();\n\n void saveVote(Vote vote);\n\n void deleteVote(int voteId);\n\n List<Subject> getSubjectsByVote(int voteId);\n\n void addSubjectToVote(int voteId, List<Subject> subjects);\n\n List<Vote> getVotesBySubject(int subjectId);\n\n void shutDown();\n\n int countVotes();\n}",
"private void postVote() {\n if ( unvotedParties() == 0 )\n TransactionManager.getTransactionManager().resolveTransaction(txId);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < 2 /* rounds */; i++) {\n\t\t\t\t\tfor (Delegate delegate : votes.keySet()) {\n\t\t\t\t\t\tif (votes.get(delegate) != null) {\n\t\t\t\t\t\t\t// Already voted.\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentlyVoting = delegate;\n\t\t\t\t\t\tlblCurrentVoter.setText(delegate.getName());\n\t\t\t\t\t\tlblCurrentVoter.setIcon(delegate.getSmallIcon());\n\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tfinal List<Map<Vote, JButton>> maplist = Arrays.asList(\n\t\t\t\t\t\t\t\tbuttons_roundOne, buttons_roundTwo);\n\t\t\t\t\t\tfor (Map<Vote, JButton> map : maplist) {\n\t\t\t\t\t\t\tfor (Vote vote : map.keySet()) {\n\t\t\t\t\t\t\t\tmap.get(vote)\n\t\t\t\t\t\t\t\t\t\t.setText(\n\t\t\t\t\t\t\t\t\t\t\t\tdelegate.getStatus().hasVetoPower ? vote.vetoText\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: vote.normalText);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsynchronized (votingThread) {\n\t\t\t\t\t\t\t\tvotingThread.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal Vote cast = votes.get(delegate);\n\t\t\t\t\t\tif (cast == Vote.PASS) {\n\t\t\t\t\t\t\tvotes.put(delegate, null);\n\t\t\t\t\t\t\t// So he goes again.\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\t\tbutton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlayout.show(pnlVoting, pnlSecondRound.getName());\n\t\t\t\t}\n\t\t\t\t// When done, disable again.\n\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t}\n\t\t\t\tcurrentlyVoting = null;\n\t\t\t\tlblCurrentVoter.setText(null);\n\t\t\t\tlblCurrentVoter.setIcon(null);\n\t\t\t\tpnlVoting.setVisible(false);\n\t\t\t}",
"public int getVotes() {\n return votes;\n }",
"public int getVotes() {\n return votes;\n }",
"public interface VotingConfigManager {\n\n byte getVoteWithdrawalPenaltyPercentage();\n\n void setVoteWithdrawalPenaltyPercentage(byte newValue);\n\n long getVoteCostToCreatePolicy();\n\n void setVoteCostToCreatePolicy(long voteCost);\n\n long getUserVoteSalaryIncrement();\n\n void setUserVoteSalaryIncrement(long voteSalaryIncrement);\n\n short getUserVoteSalaryFrequencyDays();\n\n void setUserVoteSalaryFrequencyDays(short voteSalaryFrequencyDays);\n\n /**\n * Get the day of week on which vote salary should be paid IF frequency is set to 7 days\n *\n * @see #getUserVoteSalaryFrequencyDays()\n */\n DayOfWeek getUserVoteSalaryWeeklyDayOfWeek();\n\n /**\n * Set the day of week on which vote salary should be paid IF frequency is set to 7 days\n *\n * @see #getUserVoteSalaryFrequencyDays()\n */\n void setUserVoteSalaryWeeklyDayOfWeek(DayOfWeek voteSalaryDayOfWeek);\n\n /**\n * Set amount of time to wait before assuming current vote records are final and no late-write conflicts can occur.\n *\n * @return number of seconds, always >0\n */\n long getVoteFinalizeDelaySeconds();\n\n /**\n * Set amount of time to wait before assuming current vote records are final and no late-write conflicts can occur.\n *\n * @param voteFinalizeDelaySeconds must be >0; normally the same as cassandra GC_GRACE_SECONDS.\n */\n void setVoteFinalizeDelaySeconds(long voteFinalizeDelaySeconds);\n}",
"public synchronized void beginVoting() {\n\t\tvotingThread = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// votes should be filled with [each delegate] -> `null`\n\t\t\t\tfor (int i = 0; i < 2 /* rounds */; i++) {\n\t\t\t\t\tfor (Delegate delegate : votes.keySet()) {\n\t\t\t\t\t\tif (votes.get(delegate) != null) {\n\t\t\t\t\t\t\t// Already voted.\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentlyVoting = delegate;\n\t\t\t\t\t\tlblCurrentVoter.setText(delegate.getName());\n\t\t\t\t\t\tlblCurrentVoter.setIcon(delegate.getSmallIcon());\n\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tfinal List<Map<Vote, JButton>> maplist = Arrays.asList(\n\t\t\t\t\t\t\t\tbuttons_roundOne, buttons_roundTwo);\n\t\t\t\t\t\tfor (Map<Vote, JButton> map : maplist) {\n\t\t\t\t\t\t\tfor (Vote vote : map.keySet()) {\n\t\t\t\t\t\t\t\tmap.get(vote)\n\t\t\t\t\t\t\t\t\t\t.setText(\n\t\t\t\t\t\t\t\t\t\t\t\tdelegate.getStatus().hasVetoPower ? vote.vetoText\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: vote.normalText);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsynchronized (votingThread) {\n\t\t\t\t\t\t\t\tvotingThread.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal Vote cast = votes.get(delegate);\n\t\t\t\t\t\tif (cast == Vote.PASS) {\n\t\t\t\t\t\t\tvotes.put(delegate, null);\n\t\t\t\t\t\t\t// So he goes again.\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\t\tbutton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlayout.show(pnlVoting, pnlSecondRound.getName());\n\t\t\t\t}\n\t\t\t\t// When done, disable again.\n\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t}\n\t\t\t\tcurrentlyVoting = null;\n\t\t\t\tlblCurrentVoter.setText(null);\n\t\t\t\tlblCurrentVoter.setIcon(null);\n\t\t\t\tpnlVoting.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tvotingThread.start();\n\t}",
"public void setVotes(int votes) {\n this.votes = votes;\n }",
"public Ratio getVotes() {\n return votes;\n }",
"public static void doVoteAndComment() {\n }",
"TrackerVotes getTrackerVotes(final Integer id);",
"public int getVotes() {\n return this.votes;\n }",
"public int calculateVotes() {\n return 1;\n }",
"public interface VotingService {\n\n public String deploy(List<String> list) throws Exception;\n\n\n public TransactionReceipt voteForCandidate(String candidateName) throws Exception;\n\n public BigInteger totalVotesFor(String candidateName) throws Exception;\n\n}",
"public Integer getVotes();",
"public void sendVoteRequests() {\n for(int i = 1; i <= mConfig.getNumServers(); i++) {\n this.remoteRequestVote(i, mConfig.getCurrentTerm(), mID, mLog.getLastIndex(), mLog.getLastTerm());\n }\n //Initiate count vote timer\n voteCountTimer = scheduleTimer((long) 5, 2);\n }",
"public void countVotes() {\n int[] voteResponses = RaftResponses.getVotes(mConfig.getCurrentTerm());\n int numVotes = 0;\n if(voteResponses == null) {\n //System.out.println(mID + \" voteResponses null\");\n //System.out.println(\"cur \" + mConfig.getCurrentTerm() + \" RR: \" + RaftResponses.getTerm());\n }\n else {\n for(int i = 1; i <= mConfig.getNumServers(); i++) {\n //If vote has not been received yet, resend request\n //if(voteResponses[i] == -1)\n //this.remoteRequestVote(i, mConfig.getCurrentTerm(), mID, mLog.getLastIndex(), mLog.getLastTerm());\n if(voteResponses[i] == 0)\n numVotes++;\n }\n }\n //If election is won, change to leader\n if(numVotes >= (mConfig.getNumServers()/2.0)) {\n electionTimer.cancel();\n voteCountTimer.cancel();\n RaftServerImpl.setMode(new LeaderMode());\n }\n else {\n voteCountTimer = scheduleTimer((long) 5, 2);\n }\n }",
"public void setVotes(Set<Vote> arg0) {\n \n }",
"void handle(VoteMessage vote);",
"public ArrayList<Voting> getVotingList() {\n return votingList;\n }",
"private synchronized void delegateVoted(Vote voteType) {\n\t\tvotes.put(currentlyVoting, voteType);\n\t\tif (currentlyVoting.getStatus().hasVetoPower && voteType.isVoteAgainst) {\n\t\t\t// A delegate with veto power voted against.\n\t\t\tvetoed = true;\n\t\t}\n\t\tsynchronized (votingThread) {\n\t\t\tvotingThread.notify();\n\t\t}\n\t}",
"void castVote(Peer candidate) {\n votedFor = candidate;\n }",
"public void vote(int index,Person voter,ArrayList<String> choices){\n votingList.get(index).vote(voter,choices);\n\n }",
"TrackerVotes loadTrackerVotes(final Integer id);",
"@Override\n public void processElection() {\n if (context.getState().equals(LEADER) || !context.getActive()) {\n return;\n }\n\n log.info(\"Peer #{} Start election\", context.getId());\n\n context.setState(CANDIDATE);\n Long term = context.incCurrentTerm();\n context.setVotedFor(context.getId());\n\n List<Integer> peersIds = context.getPeers().stream().map(Peer::getId).collect(Collectors.toList());\n long voteGrantedCount = 1L;\n long voteRevokedCount = 0L;\n\n //while didn't get heartbeat from leader or new election started\n while (checkCurrentElectionStatus(term)) {\n List<AnswerVoteDTO> answers = getVoteFromAllPeers(term, peersIds);\n peersIds = new ArrayList<>();\n for (AnswerVoteDTO answer : answers) {\n if (answer.getStatusCode().equals(OK)) {\n if (answer.getTerm() > context.getCurrentTerm()) {\n //• If RPC request or response contains term T > currentTerm: set currentTerm = T, convert to follower (§5.1)\n context.setTermGreaterThenCurrent(answer.getTerm());\n return;\n }\n if (answer.isVoteGranted()) {\n log.info(\"Peer #{} Vote granted from {}\", context.getId(), answer.getId());\n context.getPeer(answer.getId()).setVoteGranted(true);\n voteGrantedCount++;\n } else\n log.info(\"Peer #{} Vote revoked from {}\", context.getId(), answer.getId());\n voteRevokedCount++;\n } else {\n log.info(\"Peer #{} No vote answer from {}\", context.getId(), answer.getId());\n peersIds.add(answer.getId());\n }\n }\n if (voteGrantedCount >= context.getQuorum()) {\n winElection(term);\n return;\n } else if (voteRevokedCount >= context.getQuorum()) {\n loseElection(term);\n return;\n } //else retry\n delay();\n }\n }",
"public Response<Poll> votePoll(String id, long[] choices);",
"int getVotes(QuestionId questionId);",
"public void addVote(String token);",
"public void createVoting(String question , int type,ArrayList<String> choices){\n Voting voting = new Voting(type,question);\n for (String choice : choices){\n voting.createChoice(choice);\n }\n votingList.add(voting);\n }",
"void addVote(UserId userId, QuestionId questionId, int vote);",
"public Float getVote() {\n return vote;\n }",
"@Test\n public void vote() {\n System.out.println(client.makeVotes(client.companyName(0), \"NO\"));\n }",
"public interface VoteHandler {\n\n /**\n * Handle the user's vote to alter the media's score\n *\n * @param vote User's vote\n */\n void handle(VoteMessage vote);\n\n}",
"public void addVoter(Employee voter) {\n voters.add(voter);\n voter.getVotes().add(this);\n }",
"private void vote(Vote whichVoteButton, MenuItem item, PostData p) {\n if (!RedditLoginInformation.isLoggedIn()) {\n Toast.makeText(this, R.string.you_must_be_logged_in_to_vote, Toast.LENGTH_SHORT).show();\n return;\n }\n\n Intent intent = new Intent(Consts.BROADCAST_UPDATE_SCORE);\n intent.putExtra(Consts.EXTRA_PERMALINK, p.getPermalink());\n\n switch (whichVoteButton) {\n case DOWN:\n switch (p.getVote()) {\n case DOWN:\n RedditService.vote(this, p.getName(), Vote.NEUTRAL);\n item.setIcon(R.drawable.ic_action_downvote);\n p.setVote(Vote.NEUTRAL);\n p.setScore(p.getScore() + 1);\n break;\n\n case NEUTRAL:\n case UP:\n RedditService.vote(this, p.getName(), Vote.DOWN);\n item.setIcon(R.drawable.ic_action_downvote_highlighted);\n p.setVote(Vote.DOWN);\n mUpvoteMenuItem.setIcon(R.drawable.ic_action_upvote);\n p.setScore(p.getScore() - 1);\n break;\n }\n break;\n\n case UP:\n switch (p.getVote()) {\n case NEUTRAL:\n case DOWN:\n RedditService.vote(this, p.getName(), Vote.UP);\n item.setIcon(R.drawable.ic_action_upvote_highlighted);\n p.setVote(Vote.UP);\n p.setScore(p.getScore() + 1);\n mDownvoteMenuItem.setIcon(R.drawable.ic_action_downvote);\n break;\n\n case UP:\n RedditService.vote(this, p.getName(), Vote.NEUTRAL);\n item.setIcon(R.drawable.ic_action_upvote);\n p.setVote(Vote.NEUTRAL);\n p.setScore(p.getScore() - 1);\n break;\n }\n\n break;\n\n default:\n break;\n }\n\n // Broadcast the intent to update the score in the ImageDetailFragment\n intent.putExtra(Consts.EXTRA_SCORE, p.getScore());\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }",
"public void upVote(Post p) {\n p.upvote();\n }",
"public void createVoting(String question,int type,ArrayList<String> choices){\n Voting newVoting=new Voting(type,question);\n votingList.add(newVoting);\n for (String s:choices)\n newVoting.createChoice(s);\n }",
"protected SyncedLearnerTracker getVoteTracker(Map<Long, Vote> votes, Vote vote) {\n SyncedLearnerTracker voteSet = new SyncedLearnerTracker();\n voteSet.addQuorumVerifier(self.getQuorumVerifier());\n if (self.getLastSeenQuorumVerifier() != null\n && self.getLastSeenQuorumVerifier().getVersion() > self.getQuorumVerifier().getVersion()) {\n voteSet.addQuorumVerifier(self.getLastSeenQuorumVerifier());\n }\n\n /*\n * First make the views consistent. Sometimes peers will have different\n * zxids for a server depending on timing.\n */\n for (Map.Entry<Long, Vote> entry : votes.entrySet()) {\n if (vote.equals(entry.getValue())) {\n voteSet.addAck(entry.getKey());\n }\n }\n\n return voteSet;\n }",
"public void addKickVote()\n\t{\n\t\tthis.numberOfKickVotes++;\n\t}",
"public DemographicVote()\n\t{\n\t\t//initialize the votes to zero\n\t\tliberal=0;\n\t\tndp=0;\n\t\tgreen=0;\n\t}",
"public Vote(int id, int v) {\n candidate_id = id;\n priority = v;\n }",
"public VotingService(DataStoreInterface ds) {\r\n this.dataStore = ds;\r\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdoVote(getIntent().getStringExtra(\"aid\"), getIntent().getStringExtra(\"id\"));\n\t\t\t\t\t\n\t\t\t\t}",
"private void initValets(){\n //valet in charge of getting movie database data\n mMovieValet = new MovieValet(this);\n //request favorite movie list from database\n mMovieValet.requestMovies(PosterHelper.NAME_ID_FAVORITE);\n\n //valet in charge of getting poster refresh database data\n mRefreshValet = new RefreshValet(this);\n }",
"public Set<Vote> getVotes() {\n return null;\n }",
"public Voting getVoting(int index){\n return votingList.get(index);\n }",
"public static void main(String[] args)\r\n{\r\n\tresetVotes();\r\n\tVoteRecorder voter1 = new VoteRecorder();\t\r\n\tvoter1.getAndConfirmVotes();\r\n\tSystem.out.println(\"President: \" + getCurrentVotePresident());\r\n\tSystem.out.println(\"Vice President: \" + getCurrentVoteVicePresident());\r\n\tSystem.out.println(votesCandidatePresident1);\r\n\r\n}",
"private void results() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\t// when the election is closed,\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\t\t\tSystem.out.println(\"Current election results for all polling places.\");\n\t\t\tSystem.out.println(\"NAME PARTY VOTES %\");\n\t\t\tprintResultsHelper(results,totalVotes);\n\n\t\t}catch(UnsupportedOperationException uoe){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before viewing results.\");\n\t\t}\n\t}",
"public SubjectVotePhase(@NotNull Arena arena) {\n super(arena, 10);\n\n this.startTimer();\n }",
"public void addVote(String vote){\r\n\t\tif(allVotes.get(vote) == null){\r\n\t\t\tallVotes.put(vote, 1);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tallVotes.put(vote, allVotes.get(vote) + 1);\r\n\t\t}\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(\"vote\");\r\n\t}",
"@GET(\"/{interaction-id}/votes\")\n List<GetGlueInteraction> votes(\n @EncodedPath(\"interaction-id\") String interactionId\n );",
"public static void main(String[] args){\n\t\tBallotBox aBallotBox = new BallotBox();\n\t\tBagInterface<Ballot> ballots = aBallotBox.getBallots();\n\t\tboolean isDone = false;\n\t\tSystem.out.println(\"Welcome to the election! What would you like to do?\");\n\t\tSystem.out.println(\"1: Vote for a candidate\");\n\t\tSystem.out.println(\"2: Count the number of votes for a candidate\");\n\t\tSystem.out.println(\"3: Remove a vote\");\n\t\tSystem.out.println(\"4: Get number of votes in the ballot box\");\n\t\tSystem.out.println(\"5: Empty ballot box\");\n\t\tSystem.out.println(\"6: Print all votes\");\n\t\tSystem.out.println(\"7: Quit\");\n\t\twhile (isDone == false){ \n\t\tSystem.out.println(\"Enter your choice here:\");\n\t\tScanner keyboard = new Scanner(System.in); //assume the input will be an integer\n\t\tint i = keyboard.nextInt();\n\t\tswitch (i) {\n\t\tcase 1: \n\t\t\t//add a ballot\n\t\t\tSystem.out.println(\"Please type in the name of the candidate you would like to vote for: \");\n\t\t\tScanner keyboardName = new Scanner(System.in);\n\t\t\tString name = keyboardName.next();\n\t\t\tSystem.out.println(\"Please type in bribe amount: \");\n\t\t\tScanner keyboardBribeAmount = new Scanner(System.in);\n\t\t\tdouble bribeAmount = keyboardBribeAmount.nextDouble();\n\t\t\tballots.add(new Ballot(name, bribeAmount));\n\t\t\tSystem.out.println(\"Vote added successfully\");\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\t// count the votes for a particular candidate\n\t\t\tSystem.out.println(\"Please type in the name of the candidate for whom the votes you would like to count: \");\n\t\t\tkeyboardName = new Scanner(System.in);\n\t\t\tname = keyboardName.next();\n\t\t\tint frequency = ballots.getFrequencyOf(new Ballot(name,1));\n\t\t\tSystem.out.println(\"The number is \" + frequency);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t//remove a vote\n\t\t\tSystem.out.println(\"1: to remove a random one\");\n\t\t\tSystem.out.println(\"2: to remove a specific one\");\n\t\t\tScanner keyboardRemove = new Scanner(System.in);\n\t\t\tint m = keyboardRemove.nextInt();\n\t\t\tif (m==1) {\n\t\t\t\t\tBallot ballotRemoved = ballots.remove();\n\t\t\t\t\tSystem.out.println(\"You have removed the vote: \" + ballotRemoved);\n\t\t\t}\n\t\t\telse if (m==2){\n\t\t\t\t\tSystem.out.println(\"Please enter the name of the person whose vote you want to remove\");\n\t\t\t\t\tScanner keyboardNameRemove = new Scanner(System.in);\n\t\t\t\t\tString nameRemove = keyboardNameRemove.next();\n\t\t\t\t\tboolean done = false; \n\t\t\t\t\tint q = 0;\n\t\t\t\t\tObject[] arr = ballots.toArray();\n\t\t\t\t\twhile ( done == false){\n\t\t\t\t\t\tif (arr[q].equals(new Ballot(nameRemove, 1)))\n\t\t\t\t\t\t\t\tballots.remove((Ballot) arr[q]);\n\t\t\t\t\t\t\t\tSystem.out.println(\"A vote for \" + arr[q] + \" has been removed\");\t\n\t\t\t\t\t\t\t\tdone = true;}\n\t\t\t}\n\t\t\telse System.out.println(\"Sorry your input is not valid\");\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t//getCurrentSize()\n\t\t\tSystem.out.println(\"We have \" + ballots.getCurrentSize() + \" votes right now\");\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t//clear();\n\t\t\tballots.clear();\n\t\t\tSystem.out.println(\"The ballot box is empty now\");\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t//print; \n\t\t\tObject[] ballotArray = ballots.toArray();\n\t\t\tfor (Object occur:ballotArray){\n\t\t\t\tSystem.out.println(occur);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 7: \n\t\t\t//quit\n\t\t\tisDone = true;\n\t\t\tSystem.out.println(\"Thank you!\");\n\t\t\tbreak;\t\n\t\tdefault: System.out.println(\"Please enter a valid number:\");\n\t\t}}\n\t}",
"@FXML\n public void start_vote(ActionEvent e)\n {\n //calling functions to get ballot count and candidate count\n can_counter();\n ball_counter();\n //checks there are any candidates and ballots\n if((candidate_count!=0)&&(ballot_count!=0))\n {\n //if candidates and voters available, voting will start\n voting_state=1;\n a=new Alert(Alert.AlertType.INFORMATION);\n a.setContentText(\"Voting Has Been Started !\");\n a.show();\n }\n //for 0 candidate count with ballots\n else if ((candidate_count==0)&&(ballot_count!=0))\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Candidates !\");\n a.show();\n }\n //for 0 ballots with candidates\n else if ((ballot_count==0)&&(candidate_count!=0))\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Ballots !\");\n a.show();\n }\n else\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Candidates And 0 Ballots !\");\n a.show();\n }\n }",
"public Map<String, Integer> getVotes(){\r\n\t\treturn allVotes;\r\n\t}",
"Vote get(int id, int userId);",
"public void voteCommit() {\n boolean b = preVote();\n synchronized ( this ) {\n if ( b == true ) \n commitVotes++; \n else {\n rbVotes++;\n votedCommit = false;\n }\n }\n postVote();\n }",
"public DefaultDataDistribution<CategoryType> evaluateAsVotes(\n final InputType input)\n {\n // Create the counters to store the votes.\n final DefaultDataDistribution<CategoryType> votes =\n new DefaultDataDistribution<CategoryType>(\n this.getCategories().size());\n\n // Compute the votes.\n for (MemberType member : this.getMembers())\n {\n // Compute the estimate of the member.\n final CategoryType category = member.evaluate(input);\n\n if (category != null)\n {\n // Update the vote information for the voted category.\n votes.increment(category);\n }\n // else - The member had no vote.\n }\n\n // Return the vote distribution.\n return votes;\n }",
"private ValorantManager() {\n this.resourceHandler = new ResourceHandler();\n\n JSONObject agentsData = getAssetJson(\"agents.json\");\n\n // Agents require roles so read them first\n this.roles = readRoles(agentsData.getJSONArray(\"roles\"));\n\n this.agents = readAgents(agentsData.getJSONObject(\"agents\"));\n this.weapons = readWeapons();\n this.ranks = createRankMap();\n }",
"private int[] collectVotes()\n {\n int[] votes = new int[ 6 ];\n double centerX = (double) xCoord + 0.5;\n double centerY = (double) yCoord + 0.5;\n double centerZ = (double) zCoord + 0.5;\n\n // For each player:\n List players = worldObj.playerEntities;\n for( int i = 0; i < players.size(); ++i )\n {\n // Determine whether they're looking at the block:\n EntityPlayer player = (EntityPlayer) players.get( i );\n if( player != null )\n {\n // Check the player can see:\n if( QCraft.isPlayerWearingGoggles( player ) )\n {\n continue;\n }\n else\n {\n ItemStack headGear = player.inventory.armorItemInSlot( 3 );\n if( headGear != null && headGear.getItem() == Item.getItemFromBlock( Blocks.pumpkin ) )\n {\n continue;\n }\n }\n\n // Get position info:\n double x = player.posX - centerX;\n double y = player.posY + 1.62 - (double) player.yOffset - centerY;\n double z = player.posZ - centerZ;\n\n // Check distance:\n double distance = Math.sqrt( x * x + y * y + z * z );\n if( distance < 96.0 )\n {\n // Get direction info:\n double dx = x / distance;\n double dy = y / distance;\n double dz = z / distance;\n\n // Get facing info:\n float pitch = player.rotationPitch;\n float yaw = player.rotationYaw;\n float f3 = MathHelper.cos( -yaw * 0.017453292f - (float) Math.PI );\n float f4 = MathHelper.sin( -yaw * 0.017453292f - (float) Math.PI );\n float f5 = -MathHelper.cos( -pitch * 0.017453292f );\n float f6 = MathHelper.sin( -pitch * 0.017453292f );\n float f7 = f4 * f5;\n float f8 = f3 * f5;\n double fx = (double) f7;\n double fy = (double) f6;\n double fz = (double) f8;\n\n // Compare facing and direction (must be close to opposite):\n double dot = fx * dx + fy * dy + fz * dz;\n if( dot < -0.4 )\n {\n if( QCraft.enableQBlockOcclusionTesting )\n {\n // Do some occlusion tests\n Vec3 playerPos = Vec3.createVectorHelper( centerX + x, centerY + y, centerZ + z );\n boolean lineOfSightFound = false;\n for( int side = 0; side < 6; ++side )\n {\n // Only check faces that are facing the player\n Vec3 sideNormal = Vec3.createVectorHelper(\n 0.49 * Facing.offsetsXForSide[ side ],\n 0.49 * Facing.offsetsYForSide[ side ],\n 0.49 * Facing.offsetsZForSide[ side ]\n );\n Vec3 blockPos = Vec3.createVectorHelper(\n centerX + sideNormal.xCoord,\n centerY + sideNormal.yCoord,\n centerZ + sideNormal.zCoord\n );\n Vec3 playerPosLocal = playerPos.addVector(\n -blockPos.xCoord,\n -blockPos.yCoord,\n -blockPos.zCoord\n );\n //if( playerPosLocal.dotProduct( sideNormal ) > 0.0 )\n {\n Vec3 playerPos2 = playerPos.addVector( 0.0, 0.0, 0.0 );\n if( checkRayClear( playerPos2, blockPos ) )\n {\n lineOfSightFound = true;\n break;\n }\n }\n }\n if( !lineOfSightFound )\n {\n continue;\n }\n }\n\n // Block is being observed!\n\n // Determine the major axis:\n int majoraxis = -1;\n double majorweight = 0.0f;\n\n if( -dy >= majorweight )\n {\n majoraxis = 0;\n majorweight = -dy;\n }\n if( dy >= majorweight )\n {\n majoraxis = 1;\n majorweight = dy;\n }\n if( -dz >= majorweight )\n {\n majoraxis = 2;\n majorweight = -dz;\n }\n if( dz >= majorweight )\n {\n majoraxis = 3;\n majorweight = dz;\n }\n if( -dx >= majorweight )\n {\n majoraxis = 4;\n majorweight = -dx;\n }\n if( dx >= majorweight )\n {\n majoraxis = 5;\n majorweight = dx;\n }\n\n // Vote for this axis\n if( majoraxis >= 0 )\n {\n if( getSubType() == BlockQBlock.SubType.FiftyFifty )\n {\n boolean flip = s_random.nextBoolean();\n if( flip )\n {\n majoraxis = Facing.oppositeSide[ majoraxis ];\n }\n }\n votes[ majoraxis ]++;\n }\n }\n }\n }\n }\n\n return votes;\n }",
"public void printVottingQuestion(){\n for (Voting voting : votingList){\n System.out.println(\"question : \"+voting.getQuestion());\n }\n\n }",
"@Override\n\tpublic void action() {\n\n\t\tif(this.step.equals(STATE_INIT))\n\t\t{\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.nbAsynchronousPlayers = 0;\n\t\t\tthis.globalResults = new VoteResults();\n\t\t\tthis.agentSender = null;\n\t\t\tthis.request = null;\n\t\t\tthis.currentTime = -1;\n\t\t\tthis.results = new VoteResults();\n\t\t\tthis.nextStep = STATE_RECEIVE_REQUEST;\n\n\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RECEIVE_REQUEST))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_REQUEST\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\t\t\t\tthis.agentSender = message.getSender();\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\n\t\t\t\t\t//System.err.println(\"[RQST INITIAL] \"+message.getContent());\n\n\t\t\t\t\tthis.request = mapper.readValue(message.getContent(), VoteRequest.class);\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\n\t\t\t\t\tFunctions.newActionToLog(\"Début vote \"+this.request.getRequest(),this.myAgent, this.controllerAgent.getGameid());\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tthis.nextStep = SEND_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\n\t\t}\n\t\telse if(this.step.equals(SEND_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\tif(!agents.isEmpty())\n\t\t\t{\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.REQUEST);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tfor(AID aid : agents)\n\t\t\t\t{\n\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t}\n\t\t\t\tmessage.setConversationId(\"GLOBAL_VOTE_RESULTS\");\n\n\t\t\t\tthis.myAgent.send(message);\n\t\t\t}\n\n\t\t\tthis.nextStep = RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t}\n\t\telse if(this.step.equals(RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GLOBAL_VOTE_RESULTS\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\n\t\t\t\t//System.out.println(\"CTRL Reception de global results\");\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tthis.globalResults = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t\tthis.request.setGlobalCitizenVoteResults(this.globalResults);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tthis.nextStep = STATE_GET_SIMPLE_SUSPICION;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\t\t\n\t\telse if(this.step.equals(STATE_SEND_REQUEST))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"VOTE_REQUEST\");\n\n\t\t\tint reste = this.request.getAIDVoters().size()-this.nbVoters;\n\t\t\tif(false )// reste >= Data.MAX_SYNCHRONOUS_PLAYERS)\n\t\t\t{\n\t\t\t\t/** hybrid synchronous mode **/\n\t\t\t\tthis.nbAsynchronousPlayers = (int) (Math.random()*Math.min(Data.MAX_SYNCHRONOUS_PLAYERS-1, (reste-1)))+1;\n\t\t\t\t//System.err.println(\"HYDBRID ASYNCRHONOUS ENABLED BECAUSE TOO MANY PARTICIPANTS \"+this.nbAsynchronousPlayers+\" in //\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nbAsynchronousPlayers = 1;\n\t\t\t}\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\n\t\t\t\tSystem.err.println(\"[RQST] \"+json);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(int i = 0; i<this.nbAsynchronousPlayers; ++i)\n\t\t\t{\n\t\t\t\t//System.err.println(\"DK ENVOI REQUEST \"+this.request.getAIDVoters().get(this.nbVoters+i).getLocalName());\n\t\t\t\tmessageRequest.addReceiver(this.request.getAIDVoters().get(this.nbVoters+i));\t\n\t\t\t}\n\n\t\t\tthis.myAgent.send(messageRequest);\n\n\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t}\n\t\telse if(this.step.equals(STATE_RECEIVE_INFORM))\n\t\t{\n\t\t\tif(this.currentTime == -1)\n\t\t\t{\n\t\t\t\tthis.currentTime = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\tif(System.currentTimeMillis() - this.currentTime > 3000)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\tACLMessage wakeup = new ACLMessage(ACLMessage.UNKNOWN);\n\t\t\t\twakeup.setSender(this.myAgent.getAID());\n\t\t\t\tif(nbVoters < this.request.getVoters().size())\n\t\t\t\t{\n\t\t\t\t\twakeup.addReceiver(this.request.getAIDVoters().get(nbVoters));\n\t\t\t\t\twakeup.setConversationId(\"WAKEUP\");\n\t\t\t\t\tthis.myAgent.send(wakeup);\n\n\t\t\t\t\tSystem.out.println(\"Relance du joueur \"+this.request.getAIDVoters().get(nbVoters).getLocalName()+\" ...\");\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_INFORM\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\t++this.nbVoters;\n\t\t\t\t--this.nbAsynchronousPlayers;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tVoteResults res = new VoteResults();\n\t\t\t\ttry {\n\t\t\t\t\tres = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\n\t\t\t\tthis.results.add(res);\n\n\t\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\")&&\n\t\t\t\t\t\tDFServices.containsGameAgent(aidPlayer, \"PLAYER\", \"MAYOR\", this.myAgent, this.controllerAgent.getGameid()))\n\t\t\t\t{\n\t\t\t\t\t/** poids double **/\n\t\t\t\t\tthis.results.add(res);\n\t\t\t\t\tthis.globalResults.add(res);\n\t\t\t\t}\n\n\n\t\t\t\t//envoi du resultat partiel \n\t\t\t\tString json = \"\";\n\t\t\t\tmapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage msg = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmsg.setContent(json);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setConversationId(\"NEW_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmsg.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(msg);\n\t\t\t\t}\n\n\t\t\t\t///\tSystem.err.println(\"\\nSV : \"+this.nbVoters+\"/\"+this.request.getAIDVoters().size());\n\n\t\t\t\tif(this.nbVoters >= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\t//System.err.println(\"SV next step\");\n\t\t\t\t\tthis.nextStep = STATE_RESULTS;\n\t\t\t\t}\n\t\t\t\telse if(this.nbAsynchronousPlayers > 0)\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(\"SV waiting other\");\n\t\t\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"SV send request to other\");\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\t\n\t\t\t}\n\t\t}\n\n\n\t\telse if(this.step.equals(STATE_GET_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"GET_SIMPLE_SUSPICION\");\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(AID aid : this.request.getAIDVoters()){\n\t\t\t\tmessageRequest.addReceiver(aid);\t\n\t\t\t}\n\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.myAgent.send(messageRequest);\n\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t}\n\t\telse if(this.step.equals(STATE_ADD_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GET_SIMPLE_SUSPICION\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\t++this.nbVoters;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tSuspicionScore suspicionScore = new SuspicionScore();\n\t\t\t\ttry {\n\t\t\t\t\tsuspicionScore = mapper.readValue(message.getContent(), SuspicionScore.class);\n\t\t\t\t\t//System.err.println(\"ADD PARTIAL SUSPICION \\n\"+message.getContent());\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\t\t\t\tthis.request.getCollectiveSuspicionScore().addSuspicionScoreGrid(aidPlayer.getName(), suspicionScore);\n\n\t\t\t\tif(this.nbVoters>= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tSystem.err.println(\"SUSPICION COLLECTIVE \\n \"+this.request.getCollectiveSuspicionScore().getScore());\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RESULTS))\n\t\t{\n\t\t\tthis.finalResults = this.results.getFinalResults();\n\n\t\t\t/** equality ? **/\n\t\t\tif(this.finalResults.size() == 1)\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//defavorisé le bouc emmissaire\n\t\t\t\tList<AID> scapegoats = DFServices.findGamePlayerAgent(Roles.SCAPEGOAT, this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tList<String> nameScapegoats = new ArrayList<String>();\n\t\t\t\tfor(AID scapegoat : scapegoats)\n\t\t\t\t{\n\t\t\t\t\tnameScapegoats.add(scapegoat.getName());\n\t\t\t\t}\n\t\t\t\tfor(String scapegoat : nameScapegoats)\n\t\t\t\t{\n\t\t\t\t\tif(this.finalResults.contains(scapegoat))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(this.request.isVoteAgainst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults = nameScapegoats;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.finalResults.size()>1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults.remove(scapegoat);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(this.lastResults != null && this.lastResults.equals(this.finalResults))\n\t\t\t\t{\n\t\t\t\t\t/** interblocage **/\n\t\t\t\t\tArrayList<String> tmp = new ArrayList<String>();\n\n\t\t\t\t\t//System.err.println(\"INTERBLOCAGE\");\n\n\t\t\t\t\t/** random choice **/\n\t\t\t\t\ttmp.add(this.finalResults.get((int)Math.random()*this.finalResults.size()));\t\t\t\t\n\t\t\t\t\tthis.finalResults = tmp;\n\n\t\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// new vote with finalists\n\t\t\t\t\tthis.request.setChoices(this.finalResults);\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\n\t\t\t\t\tthis.results = new VoteResults();\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.lastResults = this.finalResults;\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(this.step.equals(STATE_SEND_RESULTS))\n\t\t{\n\t\t\tif(this.finalResults.isEmpty())\n\t\t\t{\n\t\t\t\tSystem.err.println(\"ERROR\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"RESULTS => \"+this.finalResults.get(0));\n\t\t\t}\n\n\t\t\t//envoi resultat final + maj global vote\n\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\"))\n\t\t\t{\n\t\t\t\tString json = \"\";\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmessage.setContent(json);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tmessage.setConversationId(\"NEW_CITIZEN_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(message);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tACLMessage message = new ACLMessage(ACLMessage.INFORM);\n\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\tmessage.addReceiver(this.agentSender);\n\t\t\tmessage.setConversationId(\"VOTE_RESULTS\");\n\t\t\tmessage.setContent(this.finalResults.get(0));\n\n\n\t\t\tString name = this.finalResults.get(0);\n\n\t\t\tif(!this.request.isAskRequest()){\n\t\t\t\tint index = name.indexOf(\"@\");\n\t\t\t\tname = name.substring(0, index);\n\t\t\t\tFunctions.newActionToLog(\"Vote : \"+name, this.getAgent(), this.controllerAgent.getGameid());\n\t\t\t}\n\t\t\t\n\n\t\t\tthis.myAgent.send(message);\t\n\t\t\tthis.nextStep = STATE_INIT;\n\t\t}\n\n\n\n\t\tif(!this.nextStep.isEmpty())\n\t\t{\n\t\t\tthis.step = this.nextStep;\n\t\t\tthis.nextStep =\"\";\n\t\t}\n\n\n\t}",
"List<AlgorithmResult> count(final String pollId, final List<byte[]> votesArr);",
"public int getNumVotes() {\n return numVotes;\n }",
"public void setAllGeneratorVariables(int voters, byte ratings, int parties, ElectionType type, int districts){\n this.voters = voters;\n this.ratings = ratings;\n this.parties = parties;\n this.type = type;\n this.districts = districts;\n recalculateVotes(new ActionEvent());\n }",
"public interface UpvoteDownvoteListener {\n public void onUpvoteClicked(UpvoteDownvoteView v);\n public void onDownvoteClicked(UpvoteDownvoteView v);\n}",
"private void vote(Connection connection, Matcher matcher) {\n\n final EventBus bus = getEventBus();\n if (!matcher.matches()) {\n bus.publish(new ConnectionMessageCommandEvent(connection, \"Invalid command!\"));\n return;\n }\n\n long pollID = Long.parseLong(matcher.group(1));\n int optionID = Integer.parseInt(matcher.group(2));\n\n try {\n StrawpollAPI.vote(pollID, optionID);\n bus.publish(new ConnectionMessageCommandEvent(connection, System.lineSeparator() + \"You voted successfully\"));\n }\n catch (Exception e) {\n bus.publish(new ConnectionMessageCommandEvent(connection, System.lineSeparator() + \"Whoops, it looks like we did not find a poll with the given id or index\"));\n e.printStackTrace();\n }\n\n }",
"@Override\n public List<VoteAnswer> findAllVotesFromUserId(int id) {\n return template.query(\"SELECT * FROM \" + tableName + \" WHERE user = ?\", rowMapper, id);\n }",
"public String tally (List<String> votes){\n\n int mostVotes = 0;\n String winner = \"\";\n\n //iterate each voting option\n for (String x : votes){\n //get frequency of each item.\n int freq = Collections.frequency(votes, x);\n // if greater, assign new winner and count\n if (freq > mostVotes) {\n mostVotes = freq;\n winner = x;\n }\n }\n //format output\n String output = winner + \" received the most votes!\";\n return output;\n }",
"public void setNumVotes(int value) {\n this.numVotes = value;\n }",
"@Override\n\tpublic void execute() {\n\t\tSystem.out.println(\"==STATISTICS FOR THE RESTAURANT==\");\n\t\tSystem.out.println(\"Most used Ingredients:\");\n\t\tmanager.printIngredients();\n\t\tSystem.out.println(\"Most ordered items:\");\n\t\tmanager.printMenuItems();\n\t\tSystem.out.println(\"==END STATISTICS==\");\n\t}",
"ScoreManager createScoreManager();",
"public interface SurveyVoteListener {\n void voteListener(int yes, int no);\n void editListener(String newQuestion, String newOptionOne, String newOptionTwo);\n }",
"public List getResults() {\r\n List<Candidate> list = new ArrayList<>();\r\n list = getCurrentVoting().getCandidates();\r\n list.sort(Comparator.comparingInt(Candidate::getVoices));\r\n return list;\r\n }",
"public void vote(int rating) {\n\t\tnew WebTraceTask(this, String.valueOf(rating)).execute(WebTraceTask.VOTE);\n\t}",
"public void checkVotes() {\r\n\t\tnew Timer().scheduleAtFixedRate(new TimerTask() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tURLConnection connection = new URL(\"https://glowning.dev/discordminer/webhook/votes.txt\").openConnection();\r\n\t\t\t\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\r\n\t\t\t\t\tconnection.connect();\r\n\r\n\t\t\t\t\tBufferedReader r = new BufferedReader(new InputStreamReader(connection.getInputStream(), Charset.forName(\"UTF-8\")));\r\n\r\n\t\t\t\t\tString line = \"\";\r\n\t\t\t\t\twhile ((line = r.readLine()) != null) {\r\n\t\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t\t\tUser u = getShards().getUserById(line);\r\n\t\t\t\t\t\tif (u != null) {\r\n\t\t\t\t\t\t\tint crate;\r\n\r\n\t\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\t\t\t\tcal.setTimeInMillis(System.currentTimeMillis());\r\n\t\t\t\t\t\t\tcal.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n\r\n\t\t\t\t\t\t\tif (cal.get(Calendar.DAY_OF_WEEK) == Calendar.FRIDAY || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\r\n\t\t\t\t\t\t\t\tcrate = 2;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcrate = 1;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tMiner miner = new Miner(u.getIdLong());\r\n\t\t\t\t\t\t\tif (miner.exists()) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Crates given to \" + u.getName() + \" (\" + u.getIdLong() + \")\");\r\n\t\t\t\t\t\t\t\tu.openPrivateChannel().complete().sendMessage(\"Hey! Thank you for your vote.\\nAs a reward, I give you **\" + crate + \" crate\" + (crate == 2 ? \"s\" : \"\") + \"**.\").queue();\r\n\r\n\t\t\t\t\t\t\t\tminer.addCrates(\"vote\", crate);\r\n\t\t\t\t\t\t\t\tminer.getStats().put(\"votes\", miner.getStats().getInt(\"votes\") + 1);\r\n\t\t\t\t\t\t\t\tminer.update();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tHttpClient httpclient = HttpClients.createDefault();\r\n\t\t\t\t\t\tHttpPost httppost = new HttpPost(\"https://glowning.dev/discordminer/webhook/discordbots.php\");\r\n\t\t\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>(2);\r\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"Authorization\", \"DiscordMiner\"));\r\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"user\", line));\r\n\t\t\t\t\t\thttppost.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\r\n\t\t\t\t\t\thttpclient.execute(httppost);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}, 0, 1000);\r\n\t}",
"public void toilette() {\n if (!autoriseOperation()) {\n return;\n }\n incrSale(-3);\n incrHumeur(1);\n incrXp(1);\n\n setChanged();\n notifyObservers();\n }",
"public synchronized void reportVotes() {\n StringBuilder voteReport = new StringBuilder(\"\");\n for (Player player : playerVotes.keySet()) {\n voteReport.append(player.getUserName()).append(\": \").append(\n playerVotes.get(player) ? \"yes\\n\" : \"no\\n\");\n }\n sendPublicMessage(\"The votes were:\\n\" + voteReport.toString());\n }",
"@OnClick(R.id.upvote)\n public void onUpvoteClicked() {\n upvoted.setEnabled(false);\n downvoted.setEnabled(true);\n dataItem.setUpvoted();\n points++;\n upvoted.setBackgroundColor(Color.parseColor(\"#666bff\"));\n downvoted.setBackgroundColor(Color.parseColor(\"#ffffff\"));\n a.setText(points + \" points\");\n }",
"public void addVote(int n)\n\t{\n\t\t//if statements to determine where vote will be placed\n\t\tif(n==1)\n\t\t\tliberal++;\n\t\tif(n==2)\n\t\t\tndp++;\n\t\tif(n==3)\n\t\t\tgreen++;\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t\tloadprofiletinfo(MainActivity.website+\"/video/search?ss=artist&so=most_voted&sp=\"+uid);\n\t\t\tMessage msglvpro= new Message();\n\t msglvpro.what=1;\n\t handlerlvpro.sendMessage(msglvpro);\n \t \n }",
"public void vote(int index,Person personName,ArrayList<String> choices){\n if (votingList.get(index).getType()==0 && choices.size()==1 && choices.get(0).equals(\"random\")){\n\n Random random = new Random();\n int rand = random.nextInt(votingList.get(index).getPolls().size());\n choices.remove(0);\n choices.add(votingList.get(index).getPolls().get(rand));\n }\n\n votingList.get(index).vote(personName,choices);\n\n }",
"@Override\n public void onThirdVote(String arg0) {\n\n }",
"public int getVotesSum() {\n\t\tint sum = 0;\n\t\tfor (Iterator<PollOptionBean> i = getOptions().iterator(); i.hasNext();) {\n\t\t\tsum += ((PollOptionBean) i.next()).getVotes();\n\t\t}\n\t\treturn sum;\n\t}",
"private void createControls() {\n JScrollPane votesScroller = new JScrollPane(votesTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel bottomPanel = new JPanel();\n JPanel buttonsPanel = new JPanel();\n JLabel votesLabel = new JLabel(\"<html><div style='text-align: center; width: \" + PANEL_SIZE.width + \";'><h3>Votes</h3></html>\");\n \n // Enables/disables buttons.\n enableAdding();\n \n // Hooks up the controller on the action listeners.\n loadButton.addActionListener((e) -> controller.loadVotes());\n addButton.addActionListener((e) -> {\n // Uses the selected indexes of the combo boxes to determine the candidate IDs.\n ArrayList<Integer> candidateIds = new ArrayList<>();\n comboBoxes.forEach((comboBox) -> candidateIds.add(comboBox.getSelectedIndex() - 1));\n \n // Requests that the controller adds a vote with the given candidate IDs.\n controller.addVote(candidateIds);\n });\n \n // Lays out the components.\n panel.setLayout(new BorderLayout());\n panel.add(votesLabel, BorderLayout.PAGE_START);\n panel.add(votesScroller, BorderLayout.CENTER);\n panel.add(bottomPanel, BorderLayout.PAGE_END);\n \n bottomPanel.setLayout(new BorderLayout());\n bottomPanel.add(createComboBoxes(), BorderLayout.PAGE_START);\n bottomPanel.add(buttonsPanel, BorderLayout.PAGE_END);\n \n buttonsPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n buttonsPanel.add(addButton);\n buttonsPanel.add(loadButton);\n \n \n panel.setPreferredSize(PANEL_SIZE);\n }",
"public interface IAnswerManager {\n\n /**\n *Makes an answer eligible for selection to be played and counted as \n *a correct response.\n */\n public void add( IAnswer possibleAnswer );\n\n /**\n *Removes an answer from the selection group so that it wil no longer \n *be chosen for playing.\n */\n public void remove( IAnswer answerToRemove );\n\n /**\n *Removes all answers from this answer manager.\n */\n public void removeAll();\n\n /**\n *Picks the IAnswer that will be the correct response to the next exercise \n *according to the current IAnswerSelectionPolicy\n */\n public IAnswer select() throws NoPossibleAnswersException;\n\n /**\n *Returns an array of all the currently enabled answers\n */\n public IAnswer[] getAnswers();\n\n /**\n *This accessor method can be used to set the strategy\n *used to select the next answer\n */\n public void setSelectionStrategy( IAnswerSelectionStrategy iass );\n}",
"private void receiveVote() {\n\t\t//Se la postazione termina la connessione informiamo lo staff con un messaggio di errore\n\t\tif(!link.hasNextLine()) {\n\t\t\tcontroller.printError(\"Errore di Comunicazione\", \"La postazione \"+ ip.getHostAddress() + \" non ha inviato i pacchetti di voto.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Vengono recuperati i voti cifrati\n\t\tMessage request;\n\t\tWrittenBallot[] encryptedBallots;\n\t\ttry {\n\t\t\trequest = (Message) Message.fromB64(link.read(), \"postazione \" + ip.getHostAddress());\n\t\t\tString[] required = {\"encryptedBallots\"};\n\t\t\tClass<?>[] types = {WrittenBallot[].class};\n\t\t\t\n\t\t\trequest.verifyMessage(Protocol.sendVoteToStation, required, types, \"postazione \" + ip.getHostAddress());\n\t\t\tencryptedBallots = request.getElement(\"encryptedBallots\");\n\t\t\t\n\t\t\t//I voti vengono memorizzati nel seggio in attesa dell'invio all'urna\n\t\t\tif(((Controller) controller).storeVoteLocally(encryptedBallots, ip))\n\t\t\t\tlink.write(Protocol.votesReceivedAck);\n\t\t\telse\n\t\t\t\tlink.write(Protocol.votesReceivedNack);\n\t\t\t\n\t\t} catch (PEException e) {\n\t\t\tlink.write(Protocol.votesReceivedNack);\n\t\t\tcontroller.printError(e);\n\t\t}\n\t}",
"public RollCallVotePanel(Committee committee)\n\t\t\tthrows IllegalArgumentException {\n\t\tsuper(new BorderLayout());\n\n\t\tfinal ArrayList<Delegate> delegates = new ArrayList<Delegate>(\n\t\t\t\tcommittee.getPresentDelegates());\n\t\tIterator<Delegate> it = delegates.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tDelegate d = it.next();\n\t\t\tif (!d.getStatus().canVoteSubstantive) {\n\t\t\t\t// If it can't vote, we don't need to show it.\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\tif (delegates.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\tMessages.getString(\"RollCallVotePanel.NoPresentDelegatesWithVotingRights\")); //$NON-NLS-1$\n\t\t}\n\t\tCollections.sort(delegates); // just in case\n\n\t\tvotes = new LinkedHashMap<Delegate, Vote>();\n\t\tfor (Delegate delegate : delegates) {\n\t\t\tvotes.put(delegate, null);\n\t\t}\n\n\t\tadd(pnlVoting, BorderLayout.CENTER);\n\n\t\tpnlFirstRound = new JPanel(new GridLayout(3, 2, 5, 5));\n\t\tpnlFirstRound.setName(Messages.getString(\"RollCallVotePanel.VotingFirstRound\")); //$NON-NLS-1$\n\t\tpnlVoting.add(pnlFirstRound, pnlFirstRound.getName());\n\t\tfor (final Vote vote : Vote.values()) {\n\t\t\tJButton btn = new JButton(vote.vetoText);\n\t\t\tbtn.setFocusable(false);\n\t\t\tbtn.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\t\t// Prevent hyperclicking glitches\n\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t\tdelegateVoted(vote);\n\t\t\t\t}\n\t\t\t});\n\t\t\tvotingButtons.add(btn);\n\t\t\tpnlFirstRound.add(btn);\n\t\t\tbuttons_roundOne.put(vote, btn);\n\t\t}\n\n\t\tpnlSecondRound = new JPanel(new GridLayout(1, 2, 5, 5));\n\t\tpnlSecondRound.setName(Messages.getString(\"RollCallVotePanel.VotingSecondRound\")); //$NON-NLS-1$\n\t\tpnlVoting.add(pnlSecondRound, pnlSecondRound.getName());\n\t\tfor (final Vote vote : Vote.values()) {\n\t\t\tif (!vote.inSecondRound) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tJButton btn = new JButton(Character.toString(' '));\n\t\t\tbtn.setFocusable(false);\n\t\t\tbtn.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\t\t// Prevent hyperclicking glitches\n\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t\tdelegateVoted(vote);\n\t\t\t\t}\n\t\t\t});\n\t\t\tvotingButtons.add(btn);\n\t\t\tpnlSecondRound.add(btn);\n\t\t\tbuttons_roundTwo.put(vote, btn);\n\t\t}\n\n\t\tlblCurrentVoter = new JLabel(Character.toString(' '));\n\t\tlblCurrentVoter.setIcon(new ImageIcon(new BufferedImage(\n\t\t\t\tDelegateIcon.IconSet.SMALL_SIZE,\n\t\t\t\tDelegateIcon.IconSet.SMALL_SIZE, BufferedImage.TYPE_INT_ARGB))); // blank\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// size\n\t\tlblCurrentVoter.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(lblCurrentVoter, BorderLayout.NORTH);\n\t}",
"private void setVoteOrder() {\n\t\tfor (int i = 1; i < temp.size(); i++) {\n\t\t\t// deleting the comma from the name\n\t\t\tString s = temp.elementAt(i).replaceAll(\",\", \"\");\n\t\t\t// creating a vector \"tempVoteOrder\" to store the preferences of\n\t\t\t// each voter\n=======\n\t\t\tCandidats.add(candidat);\n\t\t\ttempCandidats = tempCandidats.replaceFirst(\n\t\t\t\t\ttempCandidats.substring(0, tempCandidats.indexOf(\",\") + 1),\n\t\t\t\t\t\"\");// delete the first candidat in the String\n\t\t}\n\t\tfor (int j = 0; j < Candidats.size(); j++)\n\t\t\tCandidats.elementAt(j).setVowsPerRound(Candidats.size());// fill the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// vector\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// size\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"candidats\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0's\n\t}",
"@Override\n public void onClick(View view) {\n mVoteListener.editListener(\"newQuestion\",\n \"newOptionOne\", \"newOptionTwo\");\n }",
"private void handleRequestVote(RequestVote requestVote) {\n\n RequestVoteReply reply;\n\n do {\n\n try {\n reply = (RequestVoteReply) this.sendRPCHandler(() -> this.outbound.requestVote(this.targetServerName, requestVote));\n } catch (InterruptedException e) {\n return;\n }\n\n } while (reply == null);\n\n RequestVoteReply finalReply = reply;\n this.taskExecutor.execute(() -> this.consensusModule.requestVoteReply(finalReply));\n\n }",
"@Override\n\n public void run() {\n\n fetchTickets();\n\n }",
"@POST\n @Path(\"/{requirementId}/votes\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method creates a vote for the given requirement in the name of the current user.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response addVote(@PathParam(\"requirementId\") int requirementId,\n @ApiParam(value = \"Vote direction\", allowableValues = \"up, down\") @DefaultValue(\"up\") @QueryParam(\"direction\") String direction) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n if (!(direction.equals(\"up\") || direction.equals(\"down\"))) {\n Vtor vtor = service.bazaarService.getValidators();\n vtor.addViolation(new Violation(\"Direction can only be \\\"up\\\" or \\\"down\\\"\", direction, direction));\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Create_VOTE, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.vote.create\"));\n }\n dalFacade.vote(internalUserId, requirementId, direction.equals(\"up\"));\n if (direction.equals(\"up\")) {\n dalFacade.followRequirement(internalUserId, requirementId);\n }\n Requirement requirement = dalFacade.getRequirementById(requirementId, internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, new Date(), Activity.ActivityAction.VOTE, requirement.getId(),\n Activity.DataType.REQUIREMENT, requirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n Gson gson = new Gson();\n return Response.status(Response.Status.CREATED).entity(gson.toJson(requirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"public ElectionTextUI() {\n\t\tSystem.out.println(\"Election Vote Counter\");\n\n\t\t// TODO: initialization code can go here\n\t\t//crash(\"TODO: implement initialization code\");\n\t\telection = Election.getInstance();\n\t\telection.readInCandidates(\"candidates.txt\");\n\n\t}",
"private void vote(ActionEvent x) {\n\t\tProject p = this.list.getSelectedValue();\n\t\tif (p != null) {\n\t\t\tif (this.controller.vote(p.getName())) {\n\t\t\t\tfield3.addSupported(p);\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.6392579",
"0.6266983",
"0.62654996",
"0.6252993",
"0.5951707",
"0.59251636",
"0.59004766",
"0.5806384",
"0.5784998",
"0.5714741",
"0.5714741",
"0.5692461",
"0.56660056",
"0.5559696",
"0.55546755",
"0.55362564",
"0.5526997",
"0.5519806",
"0.5512858",
"0.54557383",
"0.5452846",
"0.54406714",
"0.5418462",
"0.5382969",
"0.5356685",
"0.5321627",
"0.5317635",
"0.5308272",
"0.52967983",
"0.5287224",
"0.52792066",
"0.52501285",
"0.52198744",
"0.5194562",
"0.5149805",
"0.5136176",
"0.5126428",
"0.51198906",
"0.51153696",
"0.51102996",
"0.5108978",
"0.5058761",
"0.50561005",
"0.50553745",
"0.5047086",
"0.50394773",
"0.5033367",
"0.50282973",
"0.4991553",
"0.49582693",
"0.4935513",
"0.49124694",
"0.4883845",
"0.48671466",
"0.48591518",
"0.48583877",
"0.48089415",
"0.478526",
"0.47572452",
"0.47365344",
"0.4729246",
"0.47289243",
"0.47225338",
"0.47070736",
"0.467913",
"0.46614638",
"0.46541888",
"0.46506765",
"0.46275476",
"0.46244884",
"0.46243328",
"0.4609933",
"0.45990643",
"0.4588427",
"0.45848355",
"0.45744765",
"0.4569248",
"0.45586798",
"0.4548671",
"0.45477912",
"0.45178106",
"0.4500347",
"0.4496535",
"0.44962084",
"0.44746354",
"0.44589797",
"0.44550025",
"0.44527218",
"0.444997",
"0.44497216",
"0.4441823",
"0.44370908",
"0.4419446",
"0.43980548",
"0.43930286",
"0.43831703",
"0.43817547",
"0.43768898",
"0.4369029",
"0.43536445"
] | 0.6459487 | 0 |
Tallies the result of the collected votes. | RESPONSE tally(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void results() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\t// when the election is closed,\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\t\t\tSystem.out.println(\"Current election results for all polling places.\");\n\t\t\tSystem.out.println(\"NAME PARTY VOTES %\");\n\t\t\tprintResultsHelper(results,totalVotes);\n\n\t\t}catch(UnsupportedOperationException uoe){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before viewing results.\");\n\t\t}\n\t}",
"public void printResult(int index){\n votingList.get(index).printVotes();\n }",
"public void printResult(int index){\n votingList.get(index).printVotes();\n }",
"public int calculateVotes() {\n return 1;\n }",
"public int getVotes() {\n return votes;\n }",
"public int getVotes() {\n return votes;\n }",
"public List getResults() {\r\n List<Candidate> list = new ArrayList<>();\r\n list = getCurrentVoting().getCandidates();\r\n list.sort(Comparator.comparingInt(Candidate::getVoices));\r\n return list;\r\n }",
"public void printVottingQuestion(){\n for (Voting voting : votingList){\n System.out.println(\"question : \"+voting.getQuestion());\n }\n\n }",
"public Integer getVotes();",
"public int getVotes() {\n return this.votes;\n }",
"public String vote5(){\n String vote5MovieTitle = \" \";\n for(int i = 0; *i < results.length; i++){\n if(results[i].voteAve()) {\n vote5MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(vote5MovieTitle);\n return vote5MovieTitle;\n }",
"public static void doVote() {\n }",
"private void perPollingPlaceResults() {\n\t\tif (election.pollsStatus()){\n\t\t\t// when the election is not closed,\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before viewing results.\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry{\n\t\t\tString pollingPlaceName = ValidInputReader.getValidString(\"Name of polling place:\", \"^[a-zA-Z0-9 ]+$\");\n\t\t\tMap<String,Integer> results = election.resultsForSpecficPollingPlace(pollingPlaceName);\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\n\t\t\t// when the polling place exists,\n\t\t\tSystem.out.println(\"Current election results for \" + pollingPlaceName + \".\");\n\t\t\tSystem.out.println(\"NAME PARTY VOTES %\");\n\t\t\tprintResultsHelper(results,totalVotes);\n\n\t\t}catch(UnsupportedOperationException uoeError){\n\n\n\t\t}catch(IllegalArgumentException iaeError){\n\t\t\t// when the polling place doesn't exist,\n\t\t\tSystem.out.println(\"No such polling place was found.\");\n\t\t}\n\t}",
"public synchronized void reportVotes() {\n StringBuilder voteReport = new StringBuilder(\"\");\n for (Player player : playerVotes.keySet()) {\n voteReport.append(player.getUserName()).append(\": \").append(\n playerVotes.get(player) ? \"yes\\n\" : \"no\\n\");\n }\n sendPublicMessage(\"The votes were:\\n\" + voteReport.toString());\n }",
"public Ratio getVotes() {\n return votes;\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < 2 /* rounds */; i++) {\n\t\t\t\t\tfor (Delegate delegate : votes.keySet()) {\n\t\t\t\t\t\tif (votes.get(delegate) != null) {\n\t\t\t\t\t\t\t// Already voted.\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentlyVoting = delegate;\n\t\t\t\t\t\tlblCurrentVoter.setText(delegate.getName());\n\t\t\t\t\t\tlblCurrentVoter.setIcon(delegate.getSmallIcon());\n\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tfinal List<Map<Vote, JButton>> maplist = Arrays.asList(\n\t\t\t\t\t\t\t\tbuttons_roundOne, buttons_roundTwo);\n\t\t\t\t\t\tfor (Map<Vote, JButton> map : maplist) {\n\t\t\t\t\t\t\tfor (Vote vote : map.keySet()) {\n\t\t\t\t\t\t\t\tmap.get(vote)\n\t\t\t\t\t\t\t\t\t\t.setText(\n\t\t\t\t\t\t\t\t\t\t\t\tdelegate.getStatus().hasVetoPower ? vote.vetoText\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: vote.normalText);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsynchronized (votingThread) {\n\t\t\t\t\t\t\t\tvotingThread.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal Vote cast = votes.get(delegate);\n\t\t\t\t\t\tif (cast == Vote.PASS) {\n\t\t\t\t\t\t\tvotes.put(delegate, null);\n\t\t\t\t\t\t\t// So he goes again.\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\t\tbutton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlayout.show(pnlVoting, pnlSecondRound.getName());\n\t\t\t\t}\n\t\t\t\t// When done, disable again.\n\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t}\n\t\t\t\tcurrentlyVoting = null;\n\t\t\t\tlblCurrentVoter.setText(null);\n\t\t\t\tlblCurrentVoter.setIcon(null);\n\t\t\t\tpnlVoting.setVisible(false);\n\t\t\t}",
"public void printVoting(int index){\n System.out.println(\"vote question : \"+votingList.get(index).getQuestion());\n for (int i = 0;i<votingList.get(index).getPolls().size();i++){\n System.out.println(\"poll \"+(i+1)+\" : \"+votingList.get(index).getPolls().get(i));\n }\n }",
"int getVotes(QuestionId questionId);",
"public void countVotes() {\n int[] voteResponses = RaftResponses.getVotes(mConfig.getCurrentTerm());\n int numVotes = 0;\n if(voteResponses == null) {\n //System.out.println(mID + \" voteResponses null\");\n //System.out.println(\"cur \" + mConfig.getCurrentTerm() + \" RR: \" + RaftResponses.getTerm());\n }\n else {\n for(int i = 1; i <= mConfig.getNumServers(); i++) {\n //If vote has not been received yet, resend request\n //if(voteResponses[i] == -1)\n //this.remoteRequestVote(i, mConfig.getCurrentTerm(), mID, mLog.getLastIndex(), mLog.getLastTerm());\n if(voteResponses[i] == 0)\n numVotes++;\n }\n }\n //If election is won, change to leader\n if(numVotes >= (mConfig.getNumServers()/2.0)) {\n electionTimer.cancel();\n voteCountTimer.cancel();\n RaftServerImpl.setMode(new LeaderMode());\n }\n else {\n voteCountTimer = scheduleTimer((long) 5, 2);\n }\n }",
"public String tally (List<String> votes){\n\n int mostVotes = 0;\n String winner = \"\";\n\n //iterate each voting option\n for (String x : votes){\n //get frequency of each item.\n int freq = Collections.frequency(votes, x);\n // if greater, assign new winner and count\n if (freq > mostVotes) {\n mostVotes = freq;\n winner = x;\n }\n }\n //format output\n String output = winner + \" received the most votes!\";\n return output;\n }",
"private void printResultsHelper(Map<String,Integer> results,int totalVotes){\n\t\tList<Map.Entry<String,Integer>> entryList = new ArrayList(results.entrySet());\n\t\tfor (int i = entryList.size()-1; i >= 0; i--) {\n\t\t\tMap.Entry me = entryList.get(i);\n\n\t\t\tString name = (String) me.getKey();\n\t\t\tString party = Candidates.getInstance().getCandidateWithName(name).getParty();\n\t\t\tint votes = results.getOrDefault(name,0);\n\t\t\tdouble percentage = (votes/(double)totalVotes)*100;\n\t\t\tif (name.equals(\"Ralph Nader\")){\n\t\t\t\tSystem.out.print(\"\");\n\t\t\t}\n\t\t\tif(!(party.equals(\"???\") && votes == 0)) {\n\t\t\t\tSystem.out.printf(\"%-30s%-8s%5d%9.1f\\n\", name, party, votes, percentage);\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void vote() {\n System.out.println(client.makeVotes(client.companyName(0), \"NO\"));\n }",
"public void printVotingQuestions(){\n int i=0;\n System.out.println(\"Question\");\n for (Voting v:votingList) {\n System.out.println(i+\":\"+v.getQuestion());\n i++ ;\n }\n }",
"public double getResult()\n { \n return answer;\n }",
"public void results(View view)\n {\n database = FirebaseDatabase.getInstance().getReference();\n database.addListenerForSingleValueEvent(new ValueEventListener()\n {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot)\n {\n int counter = 0;\n String countString;\n for (DataSnapshot child : dataSnapshot.child(\"Answers\").getChildren())\n {\n countPeople++;\n for (int i = 0; i < questArr.size(); i++)\n {\n question = questArr.get(i).getQuestion();\n answer = (String) child.child(question).getValue();\n if(!allAnswer.containsKey(answer))\n {\n counter = 0;\n counter++;\n allAnswer.put(answer, counter);\n }\n else\n {\n counter = allAnswer.get(answer);\n counter++;\n allAnswer.replace(answer, counter);\n }\n database.child(\"Statistic\").child(question).child(answer).setValue(String.valueOf(counter));\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError)\n {\n }\n });\n showStat.setVisibility(View.VISIBLE);\n computeStat.setVisibility(View.GONE);\n\n }",
"public void setVotes(int votes) {\n this.votes = votes;\n }",
"private static void outputVotes() {\n Iterator<Map.Entry<Character, ArrayList>> it = candidateVotes.entrySet().iterator();\n\n while (it.hasNext()) {\n\n Map.Entry<Character, ArrayList> next = it.next();\n System.out.println(next.getKey() +\"->\"+\n Integer.parseInt(next.getValue().toString().replace(\"[\",\"\").replace(\"]\",\"\")));\n }\n }",
"public Float getVote() {\n return vote;\n }",
"public String getElectoralVotes(String state) {\r\n result = table.get(state);//storing the data related to a state in a array list called result\r\n String ElectoralVotes = result.get(0);//getting the first of electoral votes from the list\r\n \r\n return ElectoralVotes ;\r\n }",
"private void showResults() {\n if (!sent) {\n if(checkAnswerOne()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerTwo()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerThree()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerFour()) {\n nbOfCorrectAnswers++;\n }\n\n showResultAsToast(nbOfCorrectAnswers);\n\n } else {\n showResultAsToast(nbOfCorrectAnswers);\n }\n }",
"public static void main(String[] args)\r\n{\r\n\tresetVotes();\r\n\tVoteRecorder voter1 = new VoteRecorder();\t\r\n\tvoter1.getAndConfirmVotes();\r\n\tSystem.out.println(\"President: \" + getCurrentVotePresident());\r\n\tSystem.out.println(\"Vice President: \" + getCurrentVoteVicePresident());\r\n\tSystem.out.println(votesCandidatePresident1);\r\n\r\n}",
"public synchronized void beginVoting() {\n\t\tvotingThread = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// votes should be filled with [each delegate] -> `null`\n\t\t\t\tfor (int i = 0; i < 2 /* rounds */; i++) {\n\t\t\t\t\tfor (Delegate delegate : votes.keySet()) {\n\t\t\t\t\t\tif (votes.get(delegate) != null) {\n\t\t\t\t\t\t\t// Already voted.\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentlyVoting = delegate;\n\t\t\t\t\t\tlblCurrentVoter.setText(delegate.getName());\n\t\t\t\t\t\tlblCurrentVoter.setIcon(delegate.getSmallIcon());\n\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tfinal List<Map<Vote, JButton>> maplist = Arrays.asList(\n\t\t\t\t\t\t\t\tbuttons_roundOne, buttons_roundTwo);\n\t\t\t\t\t\tfor (Map<Vote, JButton> map : maplist) {\n\t\t\t\t\t\t\tfor (Vote vote : map.keySet()) {\n\t\t\t\t\t\t\t\tmap.get(vote)\n\t\t\t\t\t\t\t\t\t\t.setText(\n\t\t\t\t\t\t\t\t\t\t\t\tdelegate.getStatus().hasVetoPower ? vote.vetoText\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: vote.normalText);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsynchronized (votingThread) {\n\t\t\t\t\t\t\t\tvotingThread.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal Vote cast = votes.get(delegate);\n\t\t\t\t\t\tif (cast == Vote.PASS) {\n\t\t\t\t\t\t\tvotes.put(delegate, null);\n\t\t\t\t\t\t\t// So he goes again.\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\t\tbutton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlayout.show(pnlVoting, pnlSecondRound.getName());\n\t\t\t\t}\n\t\t\t\t// When done, disable again.\n\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t}\n\t\t\t\tcurrentlyVoting = null;\n\t\t\t\tlblCurrentVoter.setText(null);\n\t\t\t\tlblCurrentVoter.setIcon(null);\n\t\t\t\tpnlVoting.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tvotingThread.start();\n\t}",
"public Map<String, Integer> getVotes(){\r\n\t\treturn allVotes;\r\n\t}",
"public void printVoting(int index){\n System.out.print(\"Question : \"+votingList.get(index).getQuestion()+\" Choices: \");\n int i=0;\n for (String s:votingList.get(index).getChoices()) {\n System.out.print(i + \": \" + s + \" \");\n i++;\n }\n System.out.println();\n }",
"private int[] collectVotes()\n {\n int[] votes = new int[ 6 ];\n double centerX = (double) xCoord + 0.5;\n double centerY = (double) yCoord + 0.5;\n double centerZ = (double) zCoord + 0.5;\n\n // For each player:\n List players = worldObj.playerEntities;\n for( int i = 0; i < players.size(); ++i )\n {\n // Determine whether they're looking at the block:\n EntityPlayer player = (EntityPlayer) players.get( i );\n if( player != null )\n {\n // Check the player can see:\n if( QCraft.isPlayerWearingGoggles( player ) )\n {\n continue;\n }\n else\n {\n ItemStack headGear = player.inventory.armorItemInSlot( 3 );\n if( headGear != null && headGear.getItem() == Item.getItemFromBlock( Blocks.pumpkin ) )\n {\n continue;\n }\n }\n\n // Get position info:\n double x = player.posX - centerX;\n double y = player.posY + 1.62 - (double) player.yOffset - centerY;\n double z = player.posZ - centerZ;\n\n // Check distance:\n double distance = Math.sqrt( x * x + y * y + z * z );\n if( distance < 96.0 )\n {\n // Get direction info:\n double dx = x / distance;\n double dy = y / distance;\n double dz = z / distance;\n\n // Get facing info:\n float pitch = player.rotationPitch;\n float yaw = player.rotationYaw;\n float f3 = MathHelper.cos( -yaw * 0.017453292f - (float) Math.PI );\n float f4 = MathHelper.sin( -yaw * 0.017453292f - (float) Math.PI );\n float f5 = -MathHelper.cos( -pitch * 0.017453292f );\n float f6 = MathHelper.sin( -pitch * 0.017453292f );\n float f7 = f4 * f5;\n float f8 = f3 * f5;\n double fx = (double) f7;\n double fy = (double) f6;\n double fz = (double) f8;\n\n // Compare facing and direction (must be close to opposite):\n double dot = fx * dx + fy * dy + fz * dz;\n if( dot < -0.4 )\n {\n if( QCraft.enableQBlockOcclusionTesting )\n {\n // Do some occlusion tests\n Vec3 playerPos = Vec3.createVectorHelper( centerX + x, centerY + y, centerZ + z );\n boolean lineOfSightFound = false;\n for( int side = 0; side < 6; ++side )\n {\n // Only check faces that are facing the player\n Vec3 sideNormal = Vec3.createVectorHelper(\n 0.49 * Facing.offsetsXForSide[ side ],\n 0.49 * Facing.offsetsYForSide[ side ],\n 0.49 * Facing.offsetsZForSide[ side ]\n );\n Vec3 blockPos = Vec3.createVectorHelper(\n centerX + sideNormal.xCoord,\n centerY + sideNormal.yCoord,\n centerZ + sideNormal.zCoord\n );\n Vec3 playerPosLocal = playerPos.addVector(\n -blockPos.xCoord,\n -blockPos.yCoord,\n -blockPos.zCoord\n );\n //if( playerPosLocal.dotProduct( sideNormal ) > 0.0 )\n {\n Vec3 playerPos2 = playerPos.addVector( 0.0, 0.0, 0.0 );\n if( checkRayClear( playerPos2, blockPos ) )\n {\n lineOfSightFound = true;\n break;\n }\n }\n }\n if( !lineOfSightFound )\n {\n continue;\n }\n }\n\n // Block is being observed!\n\n // Determine the major axis:\n int majoraxis = -1;\n double majorweight = 0.0f;\n\n if( -dy >= majorweight )\n {\n majoraxis = 0;\n majorweight = -dy;\n }\n if( dy >= majorweight )\n {\n majoraxis = 1;\n majorweight = dy;\n }\n if( -dz >= majorweight )\n {\n majoraxis = 2;\n majorweight = -dz;\n }\n if( dz >= majorweight )\n {\n majoraxis = 3;\n majorweight = dz;\n }\n if( -dx >= majorweight )\n {\n majoraxis = 4;\n majorweight = -dx;\n }\n if( dx >= majorweight )\n {\n majoraxis = 5;\n majorweight = dx;\n }\n\n // Vote for this axis\n if( majoraxis >= 0 )\n {\n if( getSubType() == BlockQBlock.SubType.FiftyFifty )\n {\n boolean flip = s_random.nextBoolean();\n if( flip )\n {\n majoraxis = Facing.oppositeSide[ majoraxis ];\n }\n }\n votes[ majoraxis ]++;\n }\n }\n }\n }\n }\n\n return votes;\n }",
"public void vote(int index,Person voter,ArrayList<String> choices){\n votingList.get(index).vote(voter,choices);\n\n }",
"@Override\n public void tabulateResult(QaQuiz quiz) {\n List<QaGradebook> gradebooks = gradebookDao.find(quiz); // todo chunking\n for (QaGradebook gradebook : gradebooks) {\n Integer result = 0;\n QaParticipant participant = gradebook.getParticipant();\n List<QaGradebookItem> items = gradebook.getItems();\n for (QaGradebookItem item : items) {\n QaQuestion question = item.getQuestion();\n switch (question.getQuestionType()) {\n case MULTIPLE_CHOICE:\n log.debug(\"answer:\" + question.getAnswerIndex());\n log.debug(\"response:\" + item.getAnswerIndex());\n\n if (null != item.getAnswerIndex() &&\n null != question.getAnswerIndex() && // just in case\n item.getAnswerIndex().equals(question.getAnswerIndex())) {\n result += 1;\n }\n break;\n case BOOLEAN:\n if (null != item.getAnswerIndex() &&\n null != question.getAnswerIndex() && // just in case\n item.getAnswerIndex().equals(question.getAnswerIndex())) {\n result += 1;\n }\n break;\n case SUBJECTIVE:\n participant.setAnswerResponse(item.getAnswerResponse());\n break;\n }\n }\n log.debug(\"result: \" + result);\n participant.setResult(result);\n participantDao.update(participant, Utils.getCurrentUser());\n sessionFactory.getCurrentSession().flush();\n }\n }",
"public void addVote() {\n this.votes++;\n }",
"TrackerVotes getTrackerVotes(final Integer id);",
"private void updateActualAndDisplayedResult() {\n\t\tresultTipValue = calculateTip( amountValue, percentValue, splitValue);\n\t\ttvResult.setText( \"Tip: $\" + String.format(\"%.2f\", resultTipValue) + \" per person.\" );\t\n\t}",
"void votedOnPoll(String pollId);",
"public ArrayList<Voting> getVotingList() {\n return votingList;\n }",
"public void Result (View v) {\n try {\n if (mIsTyping) {\n expressionView.setText(expressionView.getText() + \" \" + resultView.getText());\n calculate();\n mIsTyping = false;\n mIsCalculating = false;\n if (!mIsError) {\n savekq kq;\n kq = new savekq(expressionView.getText().toString(), Double.valueOf(resultView.getText().toString()));\n Writehistory(list, kq);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }",
"public Result getResults()\r\n {\r\n return result;\r\n }",
"private void postVote() {\n if ( unvotedParties() == 0 )\n TransactionManager.getTransactionManager().resolveTransaction(txId);\n }",
"public String toString() {\n return this.name + \": \" + this.votes;\n }",
"public int getNumVotes() {\n return numVotes;\n }",
"@Override\n public String getDescription() {\n return \"Vote casting\";\n }",
"private int getObservationResult( long currentTime )\n {\n int[] votes = new int[ 6 ];\n //[copied to the readFromNBT method]\n if( m_entanglementFrequency >= 0 )\n {\n List<TileEntityQBlock> twins = getEntanglementRegistry().getEntangledObjects( m_entanglementFrequency );\n if( twins != null )\n {\n Iterator<TileEntityQBlock> it = twins.iterator();\n while( it.hasNext() )\n {\n TileEntityQBlock twin = it.next();\n if( twin != this )\n {\n //[/copied]\n if( twin.m_currentlyObserved && twin.m_timeLastUpdated == currentTime )\n {\n // If an entangled twin is already up to date, use its result\n if( twin.m_currentlyForcedSide >= 0 )\n {\n return twin.m_currentlyForcedSide + 6;\n }\n else\n {\n return twin.m_currentDisplayedSide;\n }\n }\n else\n {\n // Otherwise, add its votes to the pile\n if( twin.m_currentlyForcedSide >= 0 && twin.m_forceObserved[ m_currentlyForcedSide ] )\n {\n return twin.m_currentlyForcedSide + 6;\n }\n else\n {\n for( int i=0; i<6; ++i )\n {\n if( twin.m_forceObserved[ i ] )\n {\n return i + 6;\n }\n }\n }\n votes = addVotes( votes, twin.collectVotes() );\n }\n }\n }\n }\n }\n\n // Get local observer votes\n if( m_currentlyForcedSide >= 0 && m_forceObserved[ m_currentlyForcedSide ] )\n {\n return m_currentlyForcedSide + 6;\n }\n else\n {\n for( int i=0; i<6; ++i )\n {\n if( m_forceObserved[ i ] )\n {\n return i + 6;\n }\n }\n }\n votes = addVotes( votes, collectVotes() );\n\n // Tally the votes\n return tallyVotes( votes );\n }",
"void castVote(Peer candidate) {\n votedFor = candidate;\n }",
"public void onResultClick (View v){\n try {\n savekq kq = new savekq(expressionView.getText().toString(), Double.valueOf(resultView.getText().toString()));\n Writehistory(list, kq);\n calculate();\n expressionView.setText(resultView.getText());\n result = Double.valueOf(resultView.getText().toString());\n resultView.setText(\"\");\n } catch (Exception e) {\n resultView.setText(\"0\");\n expressionView.setText(\"Cannot Divide\");\n result = 0;\n }\n\n }",
"@Override\n public void onGetResult(VoiceRecognizerResult result) {\n mResultTv.setText(\"(\" + result.text + \")\");\n\n if (result.isEnd) {\n mRecoState = 0;\n updateBtn(mRecoState);\n }\n }",
"public Object calculateElectionWinner(ArrayList<String> votes) {\n\t\tint pf =0;\n\t\tint es=0;\n\t\tfor(int i = 0; i<votes.size();i++) {\n\t\t\t\n\t\t\t\n\tif(votes.get(i).toLowerCase().contains(\"pope francis\")) {\n\tpf++;\n\t\n\t}\n\tif(votes.get(i).toLowerCase().contains(\"edward snowden\")) {\n\t\tes++;\n\t\t\n\t\t}\n\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\tif(pf>es) {\n\t\t\treturn \"pope francis\";\n\t\t}\n\t\t\n\t\telse if (es>pf) {\n\t\treturn \"edward snowden\";\n\t\t\n\t\n\t\t}\n\t\t\n\t\telse {\n\t\t\treturn \"TIE\";\n\t\t}\n\t\t\n\t}",
"@Override\n public List<VoteAnswer> findAllVotesFromUserId(int id) {\n return template.query(\"SELECT * FROM \" + tableName + \" WHERE user = ?\", rowMapper, id);\n }",
"public int getTotal_votos() {\n return total_votos;\n }",
"public Set<Vote> getVotes() {\n return null;\n }",
"public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void populateResultsUI(){\n\n totalPayTextView.setText(Double.toString(totalPay));\n totalTipTextView.setText(Double.toString(totalTip));\n totalPerPersonTextView.setText(Double.toString(totalPerPerson));\n }",
"public Voting getVoting(int index){\n return votingList.get(index);\n }",
"private void checkResults() {\n\n if (Dealer.calcTotal() == p1.calcTotal()) {\n System.out.println(\"You and the dealer Tie, Here is your money back.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (p1.calcTotal() > Dealer.calcTotal() && !bust) {\n System.out.println(\"You win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.calcTotal() > 31) {\n System.out.println(\"Dealer busts. You Win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.getTotal() > p1.calcTotal() && Dealer.getTotal() < 32) {\n System.out.println(\"Dealer Wins.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n p1.subPointCount(betNum);\n }\n }",
"public void setResults(ArrayList<Integer> results){\n this.results = results;\n }",
"public void showResults(){\n customerCount = simulation.getCustomerCount();\n phoneCount = simulation.getPhoneCount();\n doorCount = simulation.getDoorCount();\n unhelpedCount = simulation.getUnhelped();\n totalCus.setText(\"Total number of Customers: \"+customerCount+\"\\t\\t\");\n doorCus.setText(\"Number of Door Customers: \"+doorCount+\"\\t\\t\");\n phoneCus.setText(\"Number of Phone Customers: \"+phoneCount+\"\\t\\t\");\n unhelped.setText(\"Number of Customers left unhelped at the end: \"+unhelpedCount);\n }",
"private void showResult() {\n int i = 0;\n matchList.forEach(match -> match.proceed());\n for (Match match : matchList) {\n setTextInlabels(match.showTeamWithResult(), i);\n i++;\n }\n }",
"public void trigger()\r\n\t{\r\n\t\tif(!this.inProgress && this.round >= Config.RoundLimit)\r\n\t\t{\r\n\t\t\tthis.sendMessages(new String[]{\"The game has already ended.\"});\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint count = this.playerCount();\r\n\t\t\tif(count > 1 && count - this.readyCount() == 0)\r\n\t\t\t{\r\n\t\t\t\tList<String> messages = new LinkedList<>();\r\n\t\t\t\tif(this.inProgress)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Config.Phases[this.phase].equals(Config.VotePhaseName))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmessages.add(\"Voting ended. Counting votes.\");\r\n\t\t\t\t\t\t// Sum all the votes from each player.\r\n\t\t\t\t\t\tint[] votes = new int[Config.TableCards];\r\n\t\t\t\t\t\tfor(Player player : this.players)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(player != null)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tint[] playerVotes = player.getVotes();\r\n\t\t\t\t\t\t\t\tint i = 0;\r\n\t\t\t\t\t\t\t\twhile(i < playerVotes.length)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(playerVotes[i] != 0)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tvotes[i] += playerVotes[i];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t++i;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tplayer.resetVotes();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Pick the cards with more yes votes than no votes.\r\n\t\t\t\t\t\tList<Card> picked = new LinkedList<>();\r\n\t\t\t\t\t\tint pos = 0;\r\n\t\t\t\t\t\twhile(pos < this.onTable.size())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(votes[pos] > 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tCard card = this.onTable.get(pos);\r\n\t\t\t\t\t\t\t\tpicked.add(card);\r\n\t\t\t\t\t\t\t\tfor(Share price : this.prices)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(price.getStock().equals(card.stock))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tprice.addShares(card.effect);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t++pos;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Prepare the output string for the picked cards.\r\n\t\t\t\t\t\tString message = \"\";\r\n\t\t\t\t\t\tboolean isNotFirst = false;\r\n\t\t\t\t\t\tfor(Card card : picked)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isNotFirst)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmessage += \", \";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tisNotFirst = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmessage += card.stock;\r\n\t\t\t\t\t\t\tif(card.effect > 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmessage += \"+\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmessage += card.effect;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.dealToTable();\r\n\t\t\t\t\t\tmessages.add(\"Picked influence cards: \" + message);\r\n\t\t\t\t\t\tmessages.add(\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t++this.phase;\r\n\t\t\t\t\tif(this.phase >= Config.Phases.length)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.phase = 0;\r\n\t\t\t\t\t\t++this.round;\r\n\t\t\t\t\t\tif(this.round >= Config.RoundLimit)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tthis.stopGame();\r\n\t\t\t\t\t\t\tShare[] prices = this.prices.toArray(new Share[0]);\r\n\t\t\t\t\t\t\tfor(Player player : this.players)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(player != null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tplayer.sellAll(prices);\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\tmessages.add(\"Game over. Scores:\");\r\n\t\t\t\t\t\t\t// Copy and sort the players list by total money.\r\n\t\t\t\t\t\t\tPlayer[] winners = Arrays.copyOf(this.players, this.players.length);\r\n\t\t\t\t\t\t\tArrays.sort(winners, (Player o1, Player o2) -> {\r\n\t\t\t\t\t\t\t\tif(o1 == null && o2 == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(o1 == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(o2 == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn o2.getMoney() - o1.getMoney();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tint lastScore = winners[0].getMoney();\r\n\t\t\t\t\t\t\tint num = 0;\r\n\t\t\t\t\t\t\tint i = 0;\r\n\t\t\t\t\t\t\twhile(i < winners.length)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(winners[i] == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(lastScore > winners[i].getMoney())\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tnum = i;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tmessages.add(Config.PlayerPositions[num] + \": Player \" + winners[i].getPlayerNumber() + \", \" + winners[i].getName() + \" - \" + Config.Currency + winners[i].getMoney());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t++i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmessages.add(\"Round \" + (this.round + 1) + \" of \" + Config.RoundLimit + \".\");\r\n\t\t\t\t\t\t\tmessages.add(Config.Phases[this.phase] + \" phase started.\");\r\n\t\t\t\t\t\t}\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\tmessages.add(Config.Phases[this.phase] + \" phase started.\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.inProgress = true;\r\n\t\t\t\t\tmessages.add(\"Game started. Round \" + (this.round + 1) + \" of \" + Config.RoundLimit + \".\");\r\n\t\t\t\t\tmessages.add(Config.Phases[this.phase] + \" phase started.\");\r\n\t\t\t\t}\r\n\t\t\t\tthis.sendMessages(messages.toArray(new String[0]));\r\n\t\t\t\tfor(Player player : this.players)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(player != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tplayer.setReady(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void printResults() {\n\t\tdouble percentCorrect = (double)(correctAnswers/numberAmt) * 100;\n\t\tSystem.out.println(\"Amount of number memorized: \" + numberAmt +\n\t\t\t\t \"\\n\" + \"Amount correctly answered: \" + correctAnswers +\n\t\t\t\t \"\\n\" + \"Percent correct: \" + (int)percentCorrect);\n\t}",
"@GET(\"/{interaction-id}/votes\")\n List<GetGlueInteraction> votes(\n @EncodedPath(\"interaction-id\") String interactionId\n );",
"public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }",
"public void calculateToll(Vehicles v, ArrayList<Places> p){\n for(Places p1: p){\n if(p1.getToll() && p1.getPId()>= start && p1.getPId() <= end){\n tollbooths.add(p1.getPId());\n FeeForEachTollandTrip tt = new FeeForEachTollandTrip(isVip);\n tolltrips.add(tt);\n total += tt.calculateToll(v, p1.getPId());\n }\n }\n \n //printint the output\n /*\n Toll booths : B Amount : 20 Discount : 4 Total : 16\n */\n System.out.print(\"Tollbooths were: \");\n for(int i =0; i<tollbooths.size();i++){\n System.out.print(\" \" + tollbooths.get(i));\n }\n\n\n System.out.println();\n int amount;\n if(isVip)\n amount = (int) (total/0.8);\n else \n amount = (int)total;\n System.out.println(\"Amount is \" + amount);\n double discount = 0;\n if(isVip)\n discount = 0.2 * amount;\n System.out.println(\"Discount is \" + discount);\n System.out.println(\"Total is: \" +total);\n\n //checking if vehicle has already passed the toll before\n //if yes, nothing to be done.\n //if not, add the vehicle to the toll\n for(Places p1: p){\n if(p1.getToll() && tollbooths.contains(p1.getPId())){\n for(Vehicles v1: p1.getVehicles()){\n if(v1.getVehicleId() == v.getVehicleId()){\n break;\n }\n }\n p1.vehicles.add(v);\n }\n }\n }",
"public int getVotesSum() {\n\t\tint sum = 0;\n\t\tfor (Iterator<PollOptionBean> i = getOptions().iterator(); i.hasNext();) {\n\t\t\tsum += ((PollOptionBean) i.next()).getVotes();\n\t\t}\n\t\treturn sum;\n\t}",
"public static void doVoteAndComment() {\n }",
"@Override\n\tpublic void execute() {\n\t\tSystem.out.println(\"==STATISTICS FOR THE RESTAURANT==\");\n\t\tSystem.out.println(\"Most used Ingredients:\");\n\t\tmanager.printIngredients();\n\t\tSystem.out.println(\"Most ordered items:\");\n\t\tmanager.printMenuItems();\n\t\tSystem.out.println(\"==END STATISTICS==\");\n\t}",
"private void warResult() {\r\n // Get number of survivors alive\r\n int survivorCount = safeCount(survivors);\r\n if (survivorCount == 0) {\r\n System.out.println(\"None of the survivors made it.\");\r\n\t\t}\r\n else {\r\n System.out.println(\"It seems \" + survivorCount + \" have made it to safety.\");\r\n\t\t}\r\n }",
"public void setResults(ArrayList results) {\n this.results = results;\n }",
"public void evaluate() {\r\n Statistics.evaluate(this);\r\n }",
"@Override\n\tpublic int getEVotesRep(ArrayList<InfoTemp> copy) {\n\t\tint twoPercent=0;\n\t\tint total=0;\n\t\tfor (InfoTemp e: copy){\n\t\t\ttwoPercent=(int)(e.pVoteRep*.02);\n\t\t\te.pVoteRep-=twoPercent;\n\t\t\te.pVoteDem+=twoPercent;\n\t\t\tif (e.pVoteRep>e.pVoteDem){\n\t\t\t\ttotal+=e.eVote;\n\t\t\t}\n\t\t}\n\t\treturn total; \n\t}",
"private void printAnswerResults(){\n\t\tSystem.out.print(\"\\nCorrect Answer Set: \" + q.getCorrectAnswers().toString());\n\t\tSystem.out.print(\"\\nCorrect Answers: \"+correctAnswers+\n\t\t\t\t\t\t \"\\nWrong Answers: \"+wrongAnswers);\n\t}",
"List<AlgorithmResult> count(final String pollId, final List<byte[]> votesArr);",
"@Override\n public List<VoteAnswer> findAllVotesTowardsUserId(int userId) {\n return template.query(\"SELECT * FROM \" + tableName + \" WHERE vote_recipient = ?\", rowMapper, userId);\n }",
"private void showFinalResults(){\r\n\r\n System.out.println(\"Player\\t\\t:\\t\\tPoints\");\r\n for(Player player : this.sortedPlayers){\r\n System.out.println(player.toString());\r\n }\r\n System.out.println();\r\n }",
"public int result() {\n\t\treturn total;\n\t}",
"public void deliverResult(ArrayList<Reviews> reviews) {\n mReviews = reviews;\n super.deliverResult(reviews);\n }",
"public void printAllResults(){\n String round = \"Rounds: \\t\\t\";\n String team1 = fight_list.get(0).t1.name + \"\\t\\t\"; //note: We assume that all the FightResults in 1 DataBag all have the same 2 teams. Gotta write that better later.\n String team2 = fight_list.get(0).t2.name + \"\\t\\t\";\n\n for(FightResult fig : this.fight_list){\n round += fig.final_round + \"\\t\";\n team1 += fig.t1_deaths + \"\\t\";\n team2 += fig.t2_deaths + \"\\t\";\n }\n\n System.out.println(round);\n System.out.println(team1);\n System.out.println(team2);\n\n //System.out.println(\"\\n--------\\n\");\n }",
"@Override\n public void run() {\n result.setText(\"\"+res);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\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}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\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}",
"@Override\n\tpublic int getEVotesDem(ArrayList<InfoTemp> copy) {\n\t\tint twoPercent=0;\n\t\tint total=0;\n\t\tfor (InfoTemp e: copy){\n\t\t\ttwoPercent=(int)(e.pVoteRep*.02);\n\t\t\te.pVoteRep-=twoPercent;\n\t\t\te.pVoteDem+=twoPercent;\n\t\t\tif (e.pVoteDem>e.pVoteRep){\n\t\t\t\ttotal+=e.eVote;\n\t\t\t}\n\t\t}\n\t\treturn total; \n\t}",
"private void getResults(GetResultRequestEvent e){\n\t\ttable.generateTable(tf.getItemIDList(),\n\t\t\t\te.getBuySystem(), e.getBuyType(),\n\t\t\t\te.getSellSystem(), e.getSellType(),\n\t\t\t\te.getMinimumMargin());\n\t}",
"public void ExperimentResults() {\n\t\t/*\n\t\t * Creating a ScreenPresenter. To create other ResultsPresenter, the\n\t\t * better idea is to create a Factory.\n\t\t */\n\t\tResultPresenter presenter = new ScreenPresenter();\n\t\tpresenter.setText(evaluator.evalResults.resultsInText());\n\n\t}",
"@Override\n\tpublic int electoralRepReport(int[] data) {\n\t\tfor(int i=0; i < data.length; i++){\n\t\t\trepVotes+= (data[i] - (data[i]*0.02));\n\t\t\tdemVotes+= data[i]*0.02;\n\t\t}\n\t\treturn repVotes;\n\t}",
"public void returnResult() {\n\t\tSystem.out.printf(\"Result of your Numbers are: %d\", result());\n\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdoVote(getIntent().getStringExtra(\"aid\"), getIntent().getStringExtra(\"id\"));\n\t\t\t\t\t\n\t\t\t\t}",
"private synchronized void delegateVoted(Vote voteType) {\n\t\tvotes.put(currentlyVoting, voteType);\n\t\tif (currentlyVoting.getStatus().hasVetoPower && voteType.isVoteAgainst) {\n\t\t\t// A delegate with veto power voted against.\n\t\t\tvetoed = true;\n\t\t}\n\t\tsynchronized (votingThread) {\n\t\t\tvotingThread.notify();\n\t\t}\n\t}",
"private void updateResultOnScreen() {\n teamAScoreTv.setText(Integer.toString(teamAScoreInt));\n teamBScoreTv.setText(Integer.toString(teamBScoreInt));\n\n if (teamAFoulScoreInt > 1)\n teamAFoulScoreTv.setText(teamAFoulScoreInt + \" fouls\");\n else\n teamAFoulScoreTv.setText(teamAFoulScoreInt + \" foul\");\n\n if (teamBFoulScoreInt > 1)\n teamBFoulScoreTv.setText(teamBFoulScoreInt + \" fouls\");\n else\n teamBFoulScoreTv.setText(teamBFoulScoreInt + \" foul\");\n }",
"@Override\n\t\tpublic void onResults(ArrayList<RecognizerResult> arg0, boolean arg1) {\n\t\t\ttext+=arg0.get(0).text.toString();\n\t\t}",
"int getVoteValue(UserId userId, QuestionId questionId);",
"private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }",
"public void displayResult(View view){\n countPoints();\n String quantity;\n String player;\n boolean checked = ((CheckBox) findViewById(R.id.nickname)).isChecked();\n\n if (checked == true) {\n player = \"Anonymous\";\n } else {\n player = ((EditText) findViewById(R.id.name)).getText().toString();\n }\n /*\n method to show toast message with result\n */\n if (points > 1) {\n quantity = \" points!\";\n } else {\n quantity = \" point!\";\n }\n Toast.makeText(FlagQuiz.this, player + \", your score is: \" + points + quantity, Toast.LENGTH_LONG).show();\n }",
"void getGivenUserRating(String uidRater, final RatingListResult result);",
"public static void printResults() {\n System.out.println(\" Results: \");\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> System.out.println(keyWord + \" : \" + hitsNumber + \";\"));\n System.out.println(\" Total hits: \" + Crawler.getTotalHits());\n\n }",
"public void vote(int rating) {\n\t\tnew WebTraceTask(this, String.valueOf(rating)).execute(WebTraceTask.VOTE);\n\t}"
] | [
"0.66945565",
"0.66608626",
"0.66608626",
"0.60932475",
"0.6033276",
"0.6033276",
"0.5960732",
"0.5951467",
"0.59459805",
"0.5911426",
"0.5882529",
"0.58801067",
"0.5864221",
"0.5746771",
"0.57100105",
"0.56775594",
"0.5673077",
"0.5623544",
"0.561543",
"0.55793375",
"0.5562023",
"0.54767865",
"0.5441874",
"0.543833",
"0.5418165",
"0.5412422",
"0.54019934",
"0.53488266",
"0.53144026",
"0.5275057",
"0.52705616",
"0.5217122",
"0.52157366",
"0.51827693",
"0.5173631",
"0.5161448",
"0.51547384",
"0.5146537",
"0.51312387",
"0.5129994",
"0.5128926",
"0.512089",
"0.5096152",
"0.509564",
"0.5082971",
"0.5079296",
"0.5077464",
"0.5075228",
"0.5057686",
"0.5034285",
"0.502354",
"0.5015284",
"0.50046974",
"0.49983302",
"0.49964356",
"0.49876854",
"0.4977967",
"0.49769008",
"0.49717587",
"0.49709898",
"0.49666354",
"0.49555612",
"0.4953763",
"0.494768",
"0.49439988",
"0.4935298",
"0.49302924",
"0.49290884",
"0.49168754",
"0.4913545",
"0.49102983",
"0.49101937",
"0.48875904",
"0.48848218",
"0.48812503",
"0.48764342",
"0.4872509",
"0.48719382",
"0.4859091",
"0.48470104",
"0.48460495",
"0.4842993",
"0.48384875",
"0.48373854",
"0.48373854",
"0.48316482",
"0.48306748",
"0.48286787",
"0.4828057",
"0.48242703",
"0.48228508",
"0.48172376",
"0.48122802",
"0.48007953",
"0.4797689",
"0.47904074",
"0.47879642",
"0.47835997",
"0.47807467",
"0.47784293"
] | 0.50000346 | 53 |
Creates new form DashboardFrame | public DashboardFrame() {
WebLookAndFeel.install ();
Controller = new Controller();
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Frame createFrame();",
"Dashboard createDashboard();",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"public void createAndShowGUI(JFrame frame) {\n providerSideBar(frame.getContentPane(), pat);\n topBarPatientInformation(frame.getContentPane(), pat);\n patientReferralPanel(frame.getContentPane());\n\n }",
"private JInternalFrame createInternalFrame() {\n\n initializeChartPanel();\n\n chartPanel.setPreferredSize(new Dimension(200, 100));\n final JInternalFrame frame = new JInternalFrame(\"Frame 1\", true);\n frame.getContentPane().add(chartPanel);\n frame.setClosable(true);\n frame.setIconifiable(true);\n frame.setMaximizable(true);\n frame.setResizable(true);\n return frame;\n\n }",
"public Dashboard() {\n initComponents();\n// initComponents();\n build_GUI();\n }",
"FRAME createFRAME();",
"public frmDashBoard() {\n initComponents();\n }",
"private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"public NewFrame() {\n initComponents();\n }",
"public NewRoomFrame() {\n initComponents();\n }",
"public void createframe(String cid) {\n\t\tviewframe = new JFrame();\n\t\tviewconsumer(cid);\n\t\tviewframe.setTitle(\"Search result\");\n\t\tviewframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tviewframe.setLayout(new BorderLayout()); \n\t\tviewframe.add(viewpage);\n\t\tviewframe.setVisible(true); \n\t\tviewframe.setSize(500, 400);\n\t\tviewframe.setResizable(true);\n\t}",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public NewJFrame() {\n Connect();\n initComponents();\n }",
"public Dashboard() {\n initComponents();\n }",
"void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }",
"public NewJFrame() {\n initComponents();\n \n }",
"public FrameForm() {\n initComponents();\n }",
"public void buildFrame();",
"private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\tDashboard cmpdt = new Dashboard();\n\t\t\t\tcmpdt.setVisible(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }",
"public NewJFrame() {\r\n initComponents();\r\n }",
"public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }",
"public void createButtonFrame()\n {\n JFrame createFrame = new JFrame();\n createFrame.setSize(560,200);\n Container pane2;\n pane2 = createFrame.getContentPane();\n JPanel createPanel = new JPanel(null);\n createEvent = new JTextArea(\"MM/DD/YYYY\");\n timeField1 = new JTextArea(\"00:00\");\n timeField2 = new JTextArea(\"00:00\");\n EventNameField = new JTextArea(\"UNTILED NAME\");\n JLabel EnterEventLabel = new JLabel(\"Enter Event Name:\");\n JLabel EnterDateLabel = new JLabel(\"Date:\");\n JLabel EnterStartLabel = new JLabel(\"Start:\");\n JLabel EnterEndLabel = new JLabel(\"End:\");\n JLabel toLabel = new JLabel(\"to\");\n pane2.add(createPanel);\n createPanel.add(createEvent);\n createPanel.add(timeField1);\n createPanel.add(EventNameField);\n createPanel.add(timeField2);\n createPanel.add(create);\n createPanel.add(EnterEventLabel);\n createPanel.add(EnterDateLabel);\n createPanel.add(EnterStartLabel);\n createPanel.add(EnterEndLabel);\n createPanel.add(toLabel);\n\n createPanel.setBounds(0, 0, 400, 200); //panel\n createEvent.setBounds(20, 90, 100, 25); //Date field\n timeField1.setBounds(150, 90, 80, 25); //Time field\n timeField2.setBounds(280, 90, 80, 25); //Time field 2\n create.setBounds(380, 100, 150, 50); //Create Button\n\n EnterStartLabel.setBounds(150, 65, 80, 25);\n EnterEndLabel.setBounds(280, 65, 80, 25);\n toLabel.setBounds(250, 90, 80, 25);\n EnterDateLabel.setBounds(20, 65, 80, 25);\n EventNameField.setBounds(20, 30, 300, 25); //Event Name Field\n EnterEventLabel.setBounds(20, 5, 150, 25);\n\n\n\n\n createFrame.setVisible(true);\n createFrame.setResizable(false);\n }",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public FrameInsert() {\n initComponents();\n }",
"private void createReportForm(Composite aParent) {\n\t\tSashForm reportSashForm = new SashForm(aParent, SWT.HORIZONTAL);\n\n\t\tComposite comp = new Composite(reportSashForm, SWT.CENTER | SWT.BORDER);\n\t\tGridLayout compLayout = new GridLayout();\n\t\tcompLayout.numColumns = 1;\n\t\tcomp.setLayout(compLayout);\n\n\t\tCLabel label = new CLabel(comp, SWT.NONE);\n\t\tlabel.setText(\"HTML results:\");\n\t\tGridData gd = new GridData();\n\t\tgd.horizontalSpan = 1;\n\t\tlabel.setLayoutData(gd);\n\n\t\t// create a browser widget\n\t\tthis.iBrowser = new Browser(comp, SWT.BORDER);\n\n\t\tGridData brLayout = new GridData();\n\t\tbrLayout.grabExcessHorizontalSpace = true;\n\t\tbrLayout.grabExcessVerticalSpace = true;\n\t\tbrLayout.horizontalAlignment = GridData.FILL;\n\t\tbrLayout.verticalAlignment = GridData.FILL;\n\t\tthis.iBrowser.setLayoutData(brLayout);\n\n\t\tComposite comp2 = new Composite(reportSashForm, SWT.CENTER | SWT.BORDER);\n\t\tGridLayout compLayout2 = new GridLayout();\n\t\tcompLayout2.numColumns = 1;\n\t\tcomp2.setLayout(compLayout2);\n\n\t\tCLabel label2 = new CLabel(comp2, SWT.NONE);\n\t\tlabel2.setText(\"Exceptions:\");\n\t\tGridData gd2 = new GridData();\n\t\tgd2.horizontalSpan = 1;\n\t\tlabel2.setLayoutData(gd2);\n\n\t\t// create non editable Text widget for exceptions\n\t\tthis.iException = new Text(comp2, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);\n\t\tthis.iException.setEditable(false);\n\t\tGridData brLayout2 = new GridData();\n\t\tbrLayout2.grabExcessHorizontalSpace = true;\n\t\tbrLayout2.grabExcessVerticalSpace = true;\n\t\tbrLayout2.horizontalAlignment = GridData.FILL;\n\t\tbrLayout2.verticalAlignment = GridData.FILL;\n\t\tthis.iException.setLayoutData(brLayout2);\n\n\t}",
"public NewJFrame()\r\n {\r\n initComponents();\r\n }",
"public FrameCadastro(String tipo[]){\r\n\t\tsuper(\"ApartManager-Cadastro\");\r\n\t\t\r\n\t\tPanelCadastro panelC = new PanelCadastro(tipo);\r\n\t\t\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetSize(700, 700);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t\tsetResizable(false);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tsetContentPane(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\tpanelC.setBounds(0, 0, 700, 700);\r\n\t\tpanel.add(panelC);\r\n\t\tpanel.setVisible(true);\r\n\t}",
"public addStFrame() {\n initComponents();\n }",
"private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.setVisible(true);\n }",
"private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n formDashboardPanelHeader = new javax.swing.JPanel();\n kGradientPanel2 = new keeptoo.KGradientPanel();\n formDashboardHeaderLable = new javax.swing.JLabel();\n formMainMenuPanelMain = new javax.swing.JPanel();\n kGradientPanel4 = new keeptoo.KGradientPanel();\n formDashboardMainLabelFullName = new javax.swing.JLabel();\n formDashboardMainButtonLogout = new javax.swing.JButton();\n formDashboardMainButtonApproval = new javax.swing.JButton();\n formDashboardMainButtonDashboard = new javax.swing.JButton();\n formDashboardMainButtonEmployee = new javax.swing.JButton();\n formDashboardMainButtonPayslip = new javax.swing.JButton();\n formDashboardPanelFooter = new javax.swing.JPanel();\n kGradientPanel3 = new keeptoo.KGradientPanel();\n formDashboardHeaderLabelId = new javax.swing.JLabel();\n formDashboardHeaderLabelNik = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Dashboard\");\n setBackground(new java.awt.Color(255, 255, 255));\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setMinimumSize(new java.awt.Dimension(1280, 720));\n setName(\"frameEmployee\"); // NOI18N\n setPreferredSize(new java.awt.Dimension(1280, 720));\n setResizable(false);\n setSize(new java.awt.Dimension(1280, 720));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n formDashboardPanelHeader.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n formDashboardPanelHeader.setPreferredSize(new java.awt.Dimension(1280, 100));\n\n kGradientPanel2.setkEndColor(new java.awt.Color(255, 255, 255));\n kGradientPanel2.setkGradientFocus(400);\n kGradientPanel2.setkStartColor(new java.awt.Color(255, 255, 255));\n kGradientPanel2.setPreferredSize(new java.awt.Dimension(1280, 100));\n\n formDashboardHeaderLable.setFont(new java.awt.Font(\"Roboto Medium\", 0, 36)); // NOI18N\n formDashboardHeaderLable.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n formDashboardHeaderLable.setIcon(new javax.swing.ImageIcon(\"D:\\\\dev\\\\.project\\\\ecms\\\\lib\\\\logo.png\")); // NOI18N\n formDashboardHeaderLable.setMaximumSize(new java.awt.Dimension(1280, 100));\n formDashboardHeaderLable.setMinimumSize(new java.awt.Dimension(1280, 100));\n formDashboardHeaderLable.setPreferredSize(new java.awt.Dimension(1280, 100));\n\n javax.swing.GroupLayout kGradientPanel2Layout = new javax.swing.GroupLayout(kGradientPanel2);\n kGradientPanel2.setLayout(kGradientPanel2Layout);\n kGradientPanel2Layout.setHorizontalGroup(\n kGradientPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(formDashboardHeaderLable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n kGradientPanel2Layout.setVerticalGroup(\n kGradientPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel2Layout.createSequentialGroup()\n .addComponent(formDashboardHeaderLable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n formDashboardHeaderLable.getAccessibleContext().setAccessibleDescription(\"\");\n\n javax.swing.GroupLayout formDashboardPanelHeaderLayout = new javax.swing.GroupLayout(formDashboardPanelHeader);\n formDashboardPanelHeader.setLayout(formDashboardPanelHeaderLayout);\n formDashboardPanelHeaderLayout.setHorizontalGroup(\n formDashboardPanelHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kGradientPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n formDashboardPanelHeaderLayout.setVerticalGroup(\n formDashboardPanelHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kGradientPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n getContentPane().add(formDashboardPanelHeader, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n formDashboardPanelHeader.getAccessibleContext().setAccessibleName(\"\");\n formDashboardPanelHeader.getAccessibleContext().setAccessibleDescription(\"\");\n\n formMainMenuPanelMain.setPreferredSize(new java.awt.Dimension(1280, 570));\n\n kGradientPanel4.setkEndColor(new java.awt.Color(51, 153, 255));\n kGradientPanel4.setkGradientFocus(400);\n kGradientPanel4.setkStartColor(new java.awt.Color(0, 204, 204));\n kGradientPanel4.setPreferredSize(new java.awt.Dimension(1280, 570));\n\n formDashboardMainLabelFullName.setFont(new java.awt.Font(\"Roboto Light\", 1, 18)); // NOI18N\n formDashboardMainLabelFullName.setText(\"FullName\");\n\n formDashboardMainButtonLogout.setBackground(new java.awt.Color(255, 255, 255));\n formDashboardMainButtonLogout.setFont(new java.awt.Font(\"Roboto Light\", 0, 18)); // NOI18N\n formDashboardMainButtonLogout.setText(\"Logout\");\n formDashboardMainButtonLogout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n formDashboardMainButtonLogoutActionPerformed(evt);\n }\n });\n formDashboardMainButtonLogout.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formDashboardMainButtonLogoutKeyPressed(evt);\n }\n });\n\n formDashboardMainButtonApproval.setBackground(new java.awt.Color(51, 153, 255));\n formDashboardMainButtonApproval.setFont(new java.awt.Font(\"Roboto Light\", 0, 18)); // NOI18N\n formDashboardMainButtonApproval.setIcon(new javax.swing.ImageIcon(\"D:\\\\dev\\\\.project\\\\ecms\\\\lib\\\\approval.png\")); // NOI18N\n formDashboardMainButtonApproval.setToolTipText(\"Approval\");\n formDashboardMainButtonApproval.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n formDashboardMainButtonApprovalActionPerformed(evt);\n }\n });\n formDashboardMainButtonApproval.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formDashboardMainButtonApprovalKeyPressed(evt);\n }\n });\n\n formDashboardMainButtonDashboard.setBackground(new java.awt.Color(51, 153, 255));\n formDashboardMainButtonDashboard.setFont(new java.awt.Font(\"Roboto Light\", 0, 18)); // NOI18N\n formDashboardMainButtonDashboard.setIcon(new javax.swing.ImageIcon(\"D:\\\\dev\\\\.project\\\\ecms\\\\lib\\\\dashboard.png\")); // NOI18N\n formDashboardMainButtonDashboard.setToolTipText(\"Dashboard\");\n formDashboardMainButtonDashboard.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n formDashboardMainButtonDashboardActionPerformed(evt);\n }\n });\n formDashboardMainButtonDashboard.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formDashboardMainButtonDashboardKeyPressed(evt);\n }\n });\n\n formDashboardMainButtonEmployee.setBackground(new java.awt.Color(51, 153, 255));\n formDashboardMainButtonEmployee.setFont(new java.awt.Font(\"Roboto Light\", 0, 18)); // NOI18N\n formDashboardMainButtonEmployee.setIcon(new javax.swing.ImageIcon(\"D:\\\\dev\\\\.project\\\\ecms\\\\lib\\\\employee.png\")); // NOI18N\n formDashboardMainButtonEmployee.setToolTipText(\"Employee\");\n formDashboardMainButtonEmployee.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n formDashboardMainButtonEmployeeActionPerformed(evt);\n }\n });\n formDashboardMainButtonEmployee.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formDashboardMainButtonEmployeeKeyPressed(evt);\n }\n });\n\n formDashboardMainButtonPayslip.setBackground(new java.awt.Color(51, 153, 255));\n formDashboardMainButtonPayslip.setFont(new java.awt.Font(\"Roboto Light\", 0, 18)); // NOI18N\n formDashboardMainButtonPayslip.setIcon(new javax.swing.ImageIcon(\"D:\\\\dev\\\\.project\\\\ecms\\\\lib\\\\payslip.png\")); // NOI18N\n formDashboardMainButtonPayslip.setToolTipText(\"Payslip\");\n formDashboardMainButtonPayslip.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n formDashboardMainButtonPayslipActionPerformed(evt);\n }\n });\n formDashboardMainButtonPayslip.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formDashboardMainButtonPayslipKeyPressed(evt);\n }\n });\n\n javax.swing.GroupLayout kGradientPanel4Layout = new javax.swing.GroupLayout(kGradientPanel4);\n kGradientPanel4.setLayout(kGradientPanel4Layout);\n kGradientPanel4Layout.setHorizontalGroup(\n kGradientPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(formDashboardMainLabelFullName)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(formDashboardMainButtonLogout, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, kGradientPanel4Layout.createSequentialGroup()\n .addContainerGap(339, Short.MAX_VALUE)\n .addGroup(kGradientPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(kGradientPanel4Layout.createSequentialGroup()\n .addComponent(formDashboardMainButtonDashboard, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(formDashboardMainButtonApproval, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(kGradientPanel4Layout.createSequentialGroup()\n .addComponent(formDashboardMainButtonEmployee, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(formDashboardMainButtonPayslip, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(335, 335, 335))\n );\n kGradientPanel4Layout.setVerticalGroup(\n kGradientPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(kGradientPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(formDashboardMainButtonLogout)\n .addComponent(formDashboardMainLabelFullName))\n .addGap(48, 48, 48)\n .addGroup(kGradientPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(formDashboardMainButtonApproval, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(formDashboardMainButtonDashboard, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(kGradientPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(formDashboardMainButtonEmployee, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(formDashboardMainButtonPayslip, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(85, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout formMainMenuPanelMainLayout = new javax.swing.GroupLayout(formMainMenuPanelMain);\n formMainMenuPanelMain.setLayout(formMainMenuPanelMainLayout);\n formMainMenuPanelMainLayout.setHorizontalGroup(\n formMainMenuPanelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kGradientPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n formMainMenuPanelMainLayout.setVerticalGroup(\n formMainMenuPanelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(formMainMenuPanelMainLayout.createSequentialGroup()\n .addComponent(kGradientPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 581, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n getContentPane().add(formMainMenuPanelMain, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 100, -1, -1));\n\n formDashboardPanelFooter.setPreferredSize(new java.awt.Dimension(1280, 50));\n\n kGradientPanel3.setkEndColor(new java.awt.Color(255, 255, 255));\n kGradientPanel3.setkGradientFocus(400);\n kGradientPanel3.setkStartColor(new java.awt.Color(255, 255, 255));\n\n formDashboardHeaderLabelId.setFont(new java.awt.Font(\"Roboto Light\", 0, 8)); // NOI18N\n formDashboardHeaderLabelId.setText(\"Id\");\n formDashboardHeaderLabelId.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n formDashboardHeaderLabelNik.setFont(new java.awt.Font(\"Roboto Light\", 0, 8)); // NOI18N\n formDashboardHeaderLabelNik.setText(\"Nik\");\n formDashboardHeaderLabelNik.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout kGradientPanel3Layout = new javax.swing.GroupLayout(kGradientPanel3);\n kGradientPanel3.setLayout(kGradientPanel3Layout);\n kGradientPanel3Layout.setHorizontalGroup(\n kGradientPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1280, Short.MAX_VALUE)\n .addGroup(kGradientPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel3Layout.createSequentialGroup()\n .addGap(628, 628, 628)\n .addComponent(formDashboardHeaderLabelNik)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(formDashboardHeaderLabelId)\n .addContainerGap(628, Short.MAX_VALUE)))\n );\n kGradientPanel3Layout.setVerticalGroup(\n kGradientPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 60, Short.MAX_VALUE)\n .addGroup(kGradientPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel3Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(kGradientPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(formDashboardHeaderLabelNik)\n .addComponent(formDashboardHeaderLabelId))\n .addContainerGap(25, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout formDashboardPanelFooterLayout = new javax.swing.GroupLayout(formDashboardPanelFooter);\n formDashboardPanelFooter.setLayout(formDashboardPanelFooterLayout);\n formDashboardPanelFooterLayout.setHorizontalGroup(\n formDashboardPanelFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kGradientPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n formDashboardPanelFooterLayout.setVerticalGroup(\n formDashboardPanelFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kGradientPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n getContentPane().add(formDashboardPanelFooter, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 660, -1, 60));\n\n pack();\n setLocationRelativeTo(null);\n }",
"public NewJFrame1() {\n initComponents();\n }",
"protected static void create(String[] userDataInput, String billboardID, String currentName) {\n JFrame frame = new RenameBillboard(\"Billboard Client\", userDataInput, billboardID, currentName);\n frame.setVisible(true);\n }",
"void createMainContent() {\n appContent = new DashboardMain(this);\n }",
"public NewJFrame() {\n initComponents();\n\n }",
"private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }",
"public AcademicDepartmentFrame() {\n initComponents();\n }",
"public Modal(Dashboard dashboard) {\n initComponents();\n this.dashboard = dashboard;\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"FORM createFORM();",
"public FrameDesign() {\n initComponents();\n }",
"public void rebuildFrame(){\n \n // Re-initialize frame with default attributes\n controlFrame.dispose();\n controlFrame = buildDefaultFrame(\"CSCI 446 - A.I. - Montana State University\");\n \n // Initialize header with default attributes\n header = buildDefaultHeader();\n \n // Initialize control panel frame with default attributes\n controlPanel = buildDefaultPanel(BoxLayout.Y_AXIS);\n \n // Combine objects\n controlPanel.add(header, BorderLayout.NORTH);\n controlFrame.add(controlPanel);\n \n }",
"public frameAddDepartments() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }",
"public PanelMainDashboard(BaseJFrame f) {\n this.mainFrame = f;\n initComponents();\n Date now = new Date();\n jLabel2.setText(new SimpleDateFormat(\"yyyy-MM-dd\").format(now));\n try {\n int totalToday = db.getTotalTimeDate(now);\n double hoursToday = totalToday / 60.0;\n String timeText = String.format(\"%.2f\", hoursToday);\n jLabel4.setText(timeText);\n }\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"An error has occured:\\n\" + ex.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public NewJFrame17() {\n initComponents();\n }",
"public void createAndShowGUI() {\n frame= new JFrame(\"TabAdmin\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLocation(200,50);\n //Create and set up the content pane.\n \n addComponentToPane(frame.getContentPane());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n //create admin to operate \n \n }",
"void createGUI(JFrame f) {\n TabbedSplitPanel centrePanel = new TabbedSplitPanel(new JPanel(),TabbedSplitPanel.RIGHT);\n centrePanel.addMenuPanel(new MenuPanel(\"Right Menu\", new JTextArea(\"Menu panel for right tabbed split panel\"),true));\n\n TabbedSplitPanel bottomPanel = new TabbedSplitPanel(centrePanel,SplitPanel.BOTTOM);\n MenuPanel mainBottomMenuPanel = new MenuPanel(\"Main bottom menu\", new JTextArea(\"Contents of bottom menu\"), true);\n bottomPanel.addMenuPanel(mainBottomMenuPanel);\n\n // A panel with a button in it\n JPanel panel = createAMenuView();\n\n TabbedSplitPanel leftPanel = new TabbedSplitPanel(bottomPanel, SplitPanel.LEFT);\n leftPanel.addMenuPanel(new MenuPanel(\"Left1\", panel, true));\n leftPanel.addMenuPanel(new MenuPanel(\"Left2\", new JTextArea(\"Left 2 text area\"),true));\n\n // A nested TabbedSplitPanel\n TabbedSplitPanel nestedPanel = new TabbedSplitPanel(new JTextArea(\"Panel Containing a Nested panel\"),SplitPanel.BOTTOM);\n nestedPanel.addMenuPanel(new MenuPanel(\"Nested bottom menu\",new JTextArea(\"Nested menu panel\"),true));\n centrePanel.addMenuPanel(new MenuPanel(\"Nested\",nestedPanel,true));\n\n f.setContentPane(leftPanel);\n\n }",
"public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }",
"public Frame_Ajouter_Administrateur() {\n initComponents();\n }",
"public holdersframe() {\n initComponents();\n }",
"public DndFrame() {\n initComponents();\n try {\n conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/dnd\", \"root\", \"1234\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(rootPane, \"A kapcsolodás az adatbázishoz nem sikerült, emiatt a program kilép.\", \"Adatbázis hiba!\", JOptionPane.ERROR_MESSAGE);\n System.exit(1);\n }\n \n campaignPanel = new CampaignPanel();\n characterPanel = new CharacterPanel();\n diceThrowPanel = new DiceThrowPanel();\n this.add(campaignPanel);\n this.add(characterPanel);\n this.add(diceThrowPanel);\n }",
"private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }",
"public DashBoardPanel() {\n initComponents();\n }",
"private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }",
"private void initialize() {\r\n\t\tframe = new JFrame(\"Dashboard\");\r\n\t\tframe.getContentPane().setFont(new Font(\"Yu Gothic Medium\", Font.BOLD, 15));\r\n\t\tframe.getContentPane().setForeground(new Color(255, 255, 255));\r\n\t\tframe.getContentPane().setBackground(new Color(255, 255, 255));\r\n\t\tframe.setBackground(new Color(47, 79, 79));\r\n\t\tframe.setBounds(100, 100, 1126, 556);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tBorder blackline = BorderFactory.createLineBorder(Color.red);\r\n\t\t\r\n\t\tJLabel lbl_name = new JLabel(\"Name\");\r\n\t\tlbl_name.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_name.setForeground(new Color(255, 255, 255));\r\n\t\tlbl_name.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlbl_name.setBounds(625, 196, 127, 24);\r\n\t\tframe.getContentPane().add(lbl_name);\r\n\t\t\r\n\t\tJLabel lbl_photo = new JLabel(\"\");\r\n\t\tlbl_photo.setBackground(new Color(255, 255, 255));\r\n\t\tlbl_photo.setBounds(625, 28, 127, 148);\r\n\t\tlbl_photo.setBorder(blackline);\r\n\t\tframe.getContentPane().add(lbl_photo);\r\n\t\t\r\n\t\tJPanel menuPanel = new JPanel();\r\n\t\tmenuPanel.setBounds(0, 0, 278, 517);\r\n\t\tmenuPanel.setBackground(new Color(47, 79, 79));\r\n\t\tframe.getContentPane().add(menuPanel);\r\n\t\tmenuPanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel menuLabel = new JLabel(\"My Dashboard\");\r\n\t\tmenuLabel.setBounds(0, 0, 278, 54);\r\n\t\tmenuLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tmenuLabel.setForeground(new Color(255, 255, 255));\r\n\t\tmenuLabel.setFont(new Font(\"Bell MT\", Font.BOLD, 28));\r\n\t\tmenuLabel.setBackground(new Color(46, 139, 87));\r\n\t\tmenuLabel.setOpaque(true);\r\n\t\tmenuPanel.add(menuLabel);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(new Color(47, 79, 79));\r\n\t\tpanel.setForeground(new Color(255, 255, 255));\r\n\t\tpanel.setBounds(10, 80, 258, 45);\r\n\t\tmenuPanel.add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lbl_1 = new JLabel(\"\");\r\n\t\tlbl_1.setBounds(20, 5, 40, 35);\r\n\t\tlbl_1.setIcon(new ImageIcon(img_home));\r\n\t\tpanel.add(lbl_1);\r\n\t\t\r\n\t\tJButton btn_home = new JButton(\"Home\");\r\n\t\tbtn_home.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_home.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_home.setForeground(new Color(255, 255, 255));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_home.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_home.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Home is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_home.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_home.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_home.setBounds(66, 5, 142, 35);\r\n\t\tbtn_home.setOpaque(false);\r\n\t\tbtn_home.setContentAreaFilled(false);\r\n\t\tbtn_home.setBorderPainted(false);\r\n\t\tbtn_home.setFocusPainted(false);\r\n\t\tpanel.add(btn_home);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1.setLayout(null);\r\n\t\tpanel_1.setBounds(10, 145, 258, 45);\r\n\t\tmenuPanel.add(panel_1);\r\n\t\t\r\n\t\tJLabel lbl_2 = new JLabel(\"\");\r\n\t\tlbl_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_2.setBounds(20, 5, 40, 35);\r\n\t\tlbl_2.setIcon(new ImageIcon(img_leave));\r\n\t\tpanel_1.add(lbl_2);\r\n\t\t\r\n\t\tJButton btn_leave = new JButton(\"Apply Leave\");\r\n\t\tbtn_leave.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_leave.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_leave.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_leave.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Leave is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_leave.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_leave.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_leave.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_leave.setFocusPainted(false);\r\n\t\tbtn_leave.setContentAreaFilled(false);\r\n\t\tbtn_leave.setBorderPainted(false);\r\n\t\tbtn_leave.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1.add(btn_leave);\r\n\t\t\r\n\t\tJPanel panel_1_1 = new JPanel();\r\n\t\tpanel_1_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1_1.setLayout(null);\r\n\t\tpanel_1_1.setBounds(10, 210, 258, 45);\r\n\t\tmenuPanel.add(panel_1_1);\r\n\t\t\r\n\t\tJLabel lbl_3 = new JLabel(\"\");\r\n\t\tlbl_3.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_3.setBounds(20, 5, 40, 35);\r\n\t\tlbl_3.setIcon(new ImageIcon(img_marks));\r\n\t\tpanel_1_1.add(lbl_3);\r\n\t\t\r\n\t\tJButton btn_marks = new JButton(\"Marks\");\r\n\t\tbtn_marks.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_marks.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_marks.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_marks.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Marks is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_marks.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_marks.setOpaque(false);\r\n\t\tbtn_marks.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_marks.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_marks.setFocusPainted(false);\r\n\t\tbtn_marks.setContentAreaFilled(false);\r\n\t\tbtn_marks.setBorderPainted(false);\r\n\t\tbtn_marks.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1_1.add(btn_marks);\r\n\t\t\r\n\t\tJPanel panel_1_1_1 = new JPanel();\r\n\t\tpanel_1_1_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1_1_1.setLayout(null);\r\n\t\tpanel_1_1_1.setBounds(10, 275, 258, 45);\r\n\t\tmenuPanel.add(panel_1_1_1);\r\n\t\t\r\n\t\tJLabel lbl_4 = new JLabel(\"\");\r\n\t\tlbl_4.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_4.setBounds(20, 5, 40, 35);\r\n\t\tlbl_4.setIcon(new ImageIcon(img_attendance));\r\n\t\tpanel_1_1_1.add(lbl_4);\r\n\t\t\r\n\t\tJButton btn_attendance = new JButton(\"Atendance\");\r\n\t\tbtn_attendance.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_attendance.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_attendance.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_attendance.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Attendance is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_attendance.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_attendance.setOpaque(false);\r\n\t\tbtn_attendance.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_attendance.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_attendance.setFocusPainted(false);\r\n\t\tbtn_attendance.setContentAreaFilled(false);\r\n\t\tbtn_attendance.setBorderPainted(false);\r\n\t\tbtn_attendance.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1_1_1.add(btn_attendance);\r\n\t\t\r\n\t\tJLabel lbl_back = new JLabel(\"\");\r\n\t\tlbl_back.setBounds(278, 0, 832, 255);\r\n\t\tlbl_back.setIcon(new ImageIcon(img_background));\r\n\t\tframe.getContentPane().add(lbl_back);\r\n\t\t\r\n\t\tJLabel lbl_logo = new JLabel(\"\");\r\n\t\tlbl_logo.setBounds(308, 255, 278, 100);\r\n\t\tlbl_logo.setIcon(new ImageIcon(img_logo));\r\n\t\tframe.getContentPane().add(lbl_logo);\r\n\t\t\r\n\t\tJLabel lbl_welcome = new JLabel(\"WELCOME\");\r\n\t\tlbl_welcome.setForeground(new Color(47, 79, 79));\r\n\t\tlbl_welcome.setFont(new Font(\"Times New Roman\", Font.BOLD, 25));\r\n\t\tlbl_welcome.setBounds(308, 366, 239, 38);\r\n\t\tframe.getContentPane().add(lbl_welcome);\r\n\t\t\r\n\t\tJLabel lbl_name1 = new JLabel(\"Name\");\r\n\t\tlbl_name1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlbl_name1.setBounds(308, 415, 134, 24);\r\n\t\tframe.getContentPane().add(lbl_name1);\r\n\t\t\r\n\t\tJLabel lbl_id = new JLabel(\"ID : \");\r\n\t\tlbl_id.setForeground(new Color(47, 79, 79));\r\n\t\tlbl_id.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\t\tlbl_id.setBounds(308, 452, 90, 24);\r\n\t\tframe.getContentPane().add(lbl_id);\r\n\t\t\r\n\t\tJLabel lbl_id1 = new JLabel(\"Identification number\");\r\n\t\tlbl_id1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlbl_id1.setBounds(308, 482, 144, 24);\r\n\t\tframe.getContentPane().add(lbl_id1);\r\n\t\t\r\n\t\t\r\n\t}",
"public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }",
"private void 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}",
"private Frame buildFrame() {\n return new Frame(command, headers, body);\n }",
"public DisplayStaffMemberFrame() {\n initComponents();\n }",
"@Override\n\tpublic JPanel createContentPane() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getContentPane(\"MainFrame\", true);\n\t\tpanel.add(createPanelStoredServices(), gbcf.getTableConstraints(0, 1, 1, 1));\n\t\tpanel.add(createPanelEditService(), gbcf.getTableConstraints(0, 2, 1, 1));\n\t\treturn panel;\n\t}",
"public CreateNewEventJPanel() {\n }",
"private void createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\n }",
"public AddStationPanel(JFrame frame) {\n\t\tmainFrame = frame;\n\t\tinitialize();\n\t}",
"private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\n }",
"public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}",
"public AddFrame(MainFrame parent) {\n this.parent = parent;\n initComponents();\n }",
"private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}",
"public FrameOpcoesAgenda() {\n initComponents();\n }",
"@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\thome = new AdminDashboardForm();\r\n\t\t\tRootPanel.get(\"details\").add(home);\r\n\t\t}",
"private void buildFrame() {\n mainFrame = new JFrame();\n header = new JLabel(\"View Contact Information\");\n header.setHorizontalAlignment(JLabel.CENTER);\n header.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));\n \n infoTable.setFillsViewportHeight(true);\n infoTable.setShowGrid(true);\n infoTable.setVisible(true);\n scrollPane = new JScrollPane(infoTable);\n\n mainFrame.add(header, BorderLayout.NORTH);\n mainFrame.add(scrollPane, BorderLayout.CENTER);\n }",
"public JFrame getFrame(GLCapabilities caps) {\n\t\tcanvas = new GLCanvas(caps);\n\n\t\tframe = new JFrame(headerstring);\n\t\tframe.setSize(WINDOW_WIDTH, WINDOW_HEIGHT);\n\t\tframe.setJMenuBar(createbar());\n\t\tframe.add(canvas);\n\t\tframe.setVisible(true);\n\n\t\t// by default, an AWT Frame doesn't do anything when you click\n\t\t// the close button; this bit of code will terminate the program when\n\t\t// the window is asked to close\n\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tanimator = new FPSAnimator(canvas, REFRESH_RATE);\n\n\t\treturn frame;\t\n\t}",
"private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }",
"private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n JFrame frame = new JFrame(\"TablePanel\");\n JPanel contentP = new JPanel();\n Box v = Box.createVerticalBox();\n Box h = Box.createHorizontalBox();\n Box h2 = Box.createHorizontalBox();\n TablePanel tablePanel = new TablePanel();\n tablePanel.setOpaque(true); //content panes must be opaque\n\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setContentPane(contentP);\n contentP.add(tablePanel);\n contentP.add(v);\n v.add(h);\n v.add(h2);\n\n h.add(tablePanel);\n h2.add(new JButton(\"Hello\"));\n //Display the window.\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }",
"public void createAndShowGUI() {\n JFrame frame = new JFrame();\n frame.setSize(500, 500);\n frame.setTitle(\"Face Viewer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n FaceComponent component = new FaceComponent();\n frame.add(component);\n frame.setVisible(true);\n }",
"public Mainframe() {\n initComponents();\n }",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}",
"public VorhabenUebersicht(JFrame frame) {\n this.frame = frame;\n centerPanel = new JTabbedPane();\n centerPanel.setPreferredSize(new Dimension(700, 500));\n dialogBauen();\n }",
"public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}",
"public abstract void createContents(Panel mainPanel);",
"public static MainFrame createNewFrame(Display display, Document doc)\n {\n Shell shell = new Shell(display);\n\n MainFrame frame = new MainFrame(shell, doc);\n frame.initComponents(null);\n\n shell.open();\n\n return frame;\n }",
"@Deprecated\n public void buildTemplateGUI(){\n // Clear the frame\n rebuildFrame();\n \n // Header options in [OBJECT] GUI\n header.setText(\"Descriptive button header: \");\n \n //------Unique panel objects here---------\n \n \n //----------------------------------------\n \n // Display GUI after finished building\n controlFrame.pack();\n controlFrame.setVisible(true);\n }",
"private void createUIComponents() {\n billboardJList = new JList<>();\n model = new DefaultListModel<>();\n\n for (Billboard billboard : billboardList) {\n model.addElement(billboard.getBillboardName());\n }\n\n billboardJList.setModel(model);\n\n previewBillboardContentsFrame = new JFrame();\n previewBillboardContentsFrame.setPreferredSize(new Dimension(500, 500));\n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }",
"private void createContent(final Container container) {\n this.mainPanel = new MainPanel();\n this.mainPanel.setName(\"mainPanel\"); // Fest\n\n if (container != null) {\n // adds the main panel\n container.add(this.mainPanel, BorderLayout.CENTER);\n\n // Handle status bar\n container.add(StatusBar.getInstance(), BorderLayout.SOUTH);\n }\n }",
"private void initialize() {\r\n\t\ttheFrame = new JFrame();\r\n\t\ttheFrame.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDataHandler.save();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// The default setting is (100, 100, 450, 300)\r\n\t\ttheFrame.setBounds(100, 100, 900, 600);\r\n\t\t\r\n\t\t// Centers the frame on the screen\r\n\t\ttheFrame.setLocationRelativeTo(null);\r\n\t\ttheFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttheFrame.setTitle(\"adBase v0.1\");\r\n\r\n\t\ttry {\r\n\t\t\tDataHandler.load();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tmainPanel = new JPanel();\r\n\t\ttheFrame.getContentPane().add(mainPanel, BorderLayout.CENTER);\r\n\t\tmainPanel.setLayout(new CardLayout(0, 0));\r\n\r\n\t\ttoolBar = new ToolBar(mainPanel, this);\r\n\t\ttheFrame.getContentPane().add(toolBar, BorderLayout.NORTH);\r\n\t\ttoolBar.update();\r\n\r\n\t\tpanelBusiness = new PanelBusiness(this);\r\n\t\tmainPanel.add(panelBusiness, \"Business\");\r\n\r\n\t\tpanelMonth = new PanelMonth();\r\n\t\tmainPanel.add(panelMonth, \"Month\");\r\n\r\n\t\tpanelNewBusiness = new PanelNewBusiness(this);\r\n\t\tmainPanel.add(panelNewBusiness, \"New Business\");\r\n\r\n\t\tpanelEditBusiness = new PanelEditBusiness(this);\r\n\t\tmainPanel.add(panelEditBusiness, \"Edit Business\");\r\n\t\t\r\n\t\tinitializeMenu();\r\n\t}",
"@ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n DomainDetailsPanel() {\n initComponents();\n MiniTimelinePanel timelinePanel = new MiniTimelinePanel();\n DiscoveryEventUtils.getDiscoveryEventBus().register(timelinePanel);\n jTabbedPane1.add(Bundle.DomainDetailsPanel_miniTimelineTitle_text(), timelinePanel);\n for (BlackboardArtifact.ARTIFACT_TYPE type : SearchData.Type.DOMAIN.getArtifactTypes()) {\n jTabbedPane1.add(type.getDisplayName(), new DomainArtifactsTabPanel(type));\n }\n }"
] | [
"0.65315145",
"0.65038615",
"0.6409701",
"0.6341354",
"0.6334948",
"0.63040954",
"0.6251489",
"0.6172282",
"0.6145999",
"0.6141369",
"0.610782",
"0.60471606",
"0.60469717",
"0.6045165",
"0.6043762",
"0.60391366",
"0.6028262",
"0.6012977",
"0.60079676",
"0.5992508",
"0.5991233",
"0.5973434",
"0.59532887",
"0.5947745",
"0.5945219",
"0.59069073",
"0.5906248",
"0.5903064",
"0.5903064",
"0.5903064",
"0.5903064",
"0.5903064",
"0.5903064",
"0.5903064",
"0.5901651",
"0.5869056",
"0.5844863",
"0.5841776",
"0.5838229",
"0.5821064",
"0.5809647",
"0.58029056",
"0.57970923",
"0.5785449",
"0.57838935",
"0.57835287",
"0.57730466",
"0.57723564",
"0.5758373",
"0.5756762",
"0.5754886",
"0.5753473",
"0.575085",
"0.5749862",
"0.5748297",
"0.5745363",
"0.5742815",
"0.573579",
"0.57218206",
"0.5721617",
"0.571543",
"0.5691922",
"0.5685437",
"0.5683077",
"0.56826013",
"0.5681501",
"0.56805795",
"0.56785446",
"0.5674795",
"0.566526",
"0.5665114",
"0.5653623",
"0.5643346",
"0.5641774",
"0.5630037",
"0.5624703",
"0.56231457",
"0.5620854",
"0.56071734",
"0.5596879",
"0.5594842",
"0.5590445",
"0.5589998",
"0.5584805",
"0.5583888",
"0.55835253",
"0.5583109",
"0.55825233",
"0.55793023",
"0.55749756",
"0.55516714",
"0.5549928",
"0.55491585",
"0.554791",
"0.55473447",
"0.5539996",
"0.55386865",
"0.5535513",
"0.5534024",
"0.55288047"
] | 0.71266556 | 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() {
jTabbedPane4 = new javax.swing.JTabbedPane();
jPanel2 = new javax.swing.JPanel();
jPanel6 = new javax.swing.JPanel();
btnCreateEvent = new javax.swing.JButton();
jPanel3 = new javax.swing.JPanel();
jPanel7 = new javax.swing.JPanel();
btnEditPlayer = new javax.swing.JButton();
btnDeletePlayer = new javax.swing.JButton();
btnInsertPlayer = new javax.swing.JButton();
btnRefresh = new javax.swing.JButton();
jScrollPane2 = new javax.swing.JScrollPane();
tblPlayer = new javax.swing.JTable();
jPanel4 = new javax.swing.JPanel();
jPanel8 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
tblTeam = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
jPanel9 = new javax.swing.JPanel();
jPanel5 = new javax.swing.JPanel();
jPanel10 = new javax.swing.JPanel();
jPanel11 = new javax.swing.JPanel();
jPanel12 = new javax.swing.JPanel();
jMenuBar2 = new javax.swing.JMenuBar();
jMenu4 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu5 = new javax.swing.JMenu();
jMenu6 = new javax.swing.JMenu();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Application Dashboard");
setBackground(new java.awt.Color(255, 255, 255));
setName("Administrator Dashboard"); // NOI18N
setPreferredSize(new java.awt.Dimension(880, 500));
jPanel6.setBackground(new java.awt.Color(255, 255, 255));
btnCreateEvent.setText("New Event");
btnCreateEvent.setMaximumSize(new java.awt.Dimension(74, 78));
btnCreateEvent.setMinimumSize(new java.awt.Dimension(74, 78));
btnCreateEvent.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnCreateEventActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addComponent(btnCreateEvent, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(774, Short.MAX_VALUE))
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addComponent(btnCreateEvent, javax.swing.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)
.addContainerGap())
);
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 419, Short.MAX_VALUE))
);
jTabbedPane4.addTab("Dashboard", jPanel2);
jPanel7.setBackground(new java.awt.Color(255, 255, 255));
btnEditPlayer.setText("Edit");
btnEditPlayer.setMaximumSize(new java.awt.Dimension(74, 78));
btnEditPlayer.setMinimumSize(new java.awt.Dimension(74, 78));
btnEditPlayer.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnEditPlayerActionPerformed(evt);
}
});
btnDeletePlayer.setText("Delete");
btnDeletePlayer.setMaximumSize(new java.awt.Dimension(74, 78));
btnDeletePlayer.setMinimumSize(new java.awt.Dimension(74, 78));
btnDeletePlayer.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnDeletePlayerActionPerformed(evt);
}
});
btnInsertPlayer.setText("Insert");
btnInsertPlayer.setActionCommand("Insert");
btnInsertPlayer.setMaximumSize(new java.awt.Dimension(74, 78));
btnInsertPlayer.setMinimumSize(new java.awt.Dimension(74, 78));
btnInsertPlayer.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnInsertPlayerActionPerformed(evt);
}
});
btnRefresh.setText("Refresh Data");
btnRefresh.setMaximumSize(new java.awt.Dimension(74, 78));
btnRefresh.setMinimumSize(new java.awt.Dimension(74, 78));
btnRefresh.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnRefreshActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
jPanel7.setLayout(jPanel7Layout);
jPanel7Layout.setHorizontalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel7Layout.createSequentialGroup()
.addContainerGap()
.addComponent(btnEditPlayer, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(btnDeletePlayer, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(btnInsertPlayer, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(btnRefresh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel7Layout.setVerticalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnEditPlayer, javax.swing.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)
.addComponent(btnDeletePlayer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnInsertPlayer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnRefresh, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
Object headerPlayer[]={"No","Player Id","Player Name","Player Team","Player Address","Player No","Player Age"};
DefaultTableModel dataPlayer = new DefaultTableModel(null, headerPlayer);
tblPlayer.setModel(dataPlayer);
try {
ResultSet rst = new Model().getStat().executeQuery("select pl.player_id,pl.player_name,pl.player_address,pl.player_age,pl.player_no,t.team_name "
+ "from tbl_player as pl inner join tbl_team as t on t.team_id = pl.player_team_id");
i = 1;
while(rst.next()){
String kolom[] = {""+i, rst.getString("player_id"), rst.getString("player_name"), rst.getString("team_name"), rst.getString("player_address"), rst.getString("player_no"), rst.getString("player_age")};
dataPlayer.addRow(kolom);
i++;
}
}catch (Exception e){
JOptionPane.showMessageDialog(null,"error:"+e.getMessage());
}
jScrollPane2.setViewportView(tblPlayer);
if (tblPlayer.getColumnModel().getColumnCount() > 0) {
tblPlayer.getColumnModel().getColumn(0).setMaxWidth(50);
}
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 875, Short.MAX_VALUE)
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jTabbedPane4.addTab("Player", jPanel3);
jPanel8.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
jPanel8.setLayout(jPanel8Layout);
jPanel8Layout.setHorizontalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 875, Short.MAX_VALUE)
);
jPanel8Layout.setVerticalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
Object headerTeam[]={"No","Team Name","Team Description"};
DefaultTableModel dataTeam = new DefaultTableModel(null, headerTeam);
tblTeam.setModel(dataTeam);
try {
ResultSet rst = new Model().getStat().executeQuery("select * from tbl_team");
i = 1;
while(rst.next()){
String kolom[] = {""+i, rst.getString("team_name"), rst.getString("team_description")};
dataTeam.addRow(kolom);
i++;
}
}catch (Exception e){
JOptionPane.showMessageDialog(null,"error endi:"+e.getMessage());
}
jScrollPane1.setViewportView(tblTeam);
if (tblTeam.getColumnModel().getColumnCount() > 0) {
tblTeam.getColumnModel().getColumn(0).setMaxWidth(50);
}
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane1)
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 6, Short.MAX_VALUE))
);
jTabbedPane4.addTab("Team", jPanel4);
jPanel9.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
jPanel9.setLayout(jPanel9Layout);
jPanel9Layout.setHorizontalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 875, Short.MAX_VALUE)
);
jPanel9Layout.setVerticalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 419, Short.MAX_VALUE))
);
jTabbedPane4.addTab("Supervisor", jPanel1);
jPanel10.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
jPanel10.setLayout(jPanel10Layout);
jPanel10Layout.setHorizontalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 875, Short.MAX_VALUE)
);
jPanel10Layout.setVerticalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 419, Short.MAX_VALUE))
);
jTabbedPane4.addTab("History", jPanel5);
jPanel12.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
jPanel12.setLayout(jPanel12Layout);
jPanel12Layout.setHorizontalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 875, Short.MAX_VALUE)
);
jPanel12Layout.setVerticalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 419, Short.MAX_VALUE))
);
jTabbedPane4.addTab("Event", jPanel11);
jMenuBar2.setBackground(new java.awt.Color(255, 255, 255));
jMenuBar2.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.gray, null));
jMenuBar2.setForeground(new java.awt.Color(255, 255, 255));
jMenu4.setText("File");
jMenuItem1.setText("Exit");
jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
}
});
jMenu4.add(jMenuItem1);
jMenuBar2.add(jMenu4);
jMenu5.setText("Edit");
jMenuBar2.add(jMenu5);
jMenu6.setText("Setting");
jMenuBar2.add(jMenu6);
setJMenuBar(jMenuBar2);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTabbedPane4)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTabbedPane4)
);
pack();
setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public 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 IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"public Ablak() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.73185146",
"0.7290127",
"0.7290127",
"0.7290127",
"0.7285798",
"0.7247533",
"0.7214021",
"0.720785",
"0.71952385",
"0.71891224",
"0.7184117",
"0.7158779",
"0.7147133",
"0.70921415",
"0.70792264",
"0.7055538",
"0.6986984",
"0.6976409",
"0.6955238",
"0.69525516",
"0.69452786",
"0.6942174",
"0.69350797",
"0.6931285",
"0.69274575",
"0.69249237",
"0.692484",
"0.69119686",
"0.69100493",
"0.6892153",
"0.68909484",
"0.6889482",
"0.6888941",
"0.6888229",
"0.6882907",
"0.68803245",
"0.6880302",
"0.68765897",
"0.68752575",
"0.68742317",
"0.6870695",
"0.6858674",
"0.6855753",
"0.68551505",
"0.6854714",
"0.68536323",
"0.685189",
"0.6851622",
"0.6851622",
"0.6842649",
"0.6836868",
"0.6836041",
"0.68273747",
"0.6827191",
"0.6825861",
"0.68235105",
"0.68233716",
"0.6816636",
"0.6815192",
"0.6808554",
"0.68082917",
"0.6807161",
"0.6807015",
"0.6806047",
"0.6802219",
"0.6794859",
"0.67942643",
"0.6790891",
"0.67889357",
"0.6788571",
"0.67881185",
"0.6787122",
"0.6781127",
"0.67660034",
"0.6764709",
"0.67644566",
"0.6756192",
"0.6754256",
"0.6751128",
"0.6750562",
"0.67440563",
"0.6737466",
"0.6736424",
"0.6734462",
"0.67319155",
"0.6726047",
"0.6725434",
"0.6718776",
"0.67163",
"0.6713416",
"0.6712949",
"0.67079836",
"0.6706704",
"0.67045957",
"0.66995174",
"0.6698836",
"0.66984534",
"0.669626",
"0.6693713",
"0.66902465",
"0.66899353"
] | 0.0 | -1 |
create a new layout from body.xml | @Override
public void createAndAttachView(int id, FrameLayout frame) {
LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.sms_thread_list, frame, true);
smsThreadList = (ListView) view.findViewById(R.id.sms_thread_listview);
smsThreadListHeader = (TextView) view
.findViewById(R.id.sms_thread_list_header);
smsThreadListSendButton = (Button) view
.findViewById(R.id.sms_thread_list_send_button);
smsThreadListSendMessage = (EditText) view
.findViewById(R.id.sms_thread_list_send_message);
senderRowView = null;
senderRowTitle = null;
senderRowDescrip = null;
userRowView = null;
userRowTitle = null;
userRowDescrip = null;
smsThreadListSendButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
String send_message = smsThreadListSendMessage.getText()
.toString();
if (send_message.toString().trim() != "") {
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(senderNumber, null, send_message, null,
null);
ContentValues values = new ContentValues();
values.put("address", senderNumber);
values.put("body", send_message);
getContentResolver().insert(
Uri.parse("content://sms/sent"), values);
fillSMSThreadList();
smsThreadListSendMessage.setText("");
}
}
});
fillSMSThreadList();
final int id_for_close = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createInitialLayout(IPageLayout layout) {\n \n\t}",
"NodeLayout createNodeLayout();",
"@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }",
"protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView v=inflater.inflate(R.layout.notepad_main, container, false);\r\n\t\tbody=(LineEditText) v.findViewById(R.id.body);\r\n\t\tdel=(Button) v.findViewById(R.id.delAll);\r\n\t\tdel.setOnClickListener(this);\r\n\t\treturn v;\r\n\t}",
"BODY createBODY();",
"public Layout() {\n }",
"private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\t// Setzt die Hintergrundfarbe auf Grün\n\t\tmainLayout.addStyleName(\"backgroundErfassung\");\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\n\t\treturn mainLayout;\n\t}",
"private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }",
"private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(false);\n\n\t\t// top-level component properties\n\t\tsetWidth(\"60.0%\");\n\t\tsetHeight(\"60.0%\");\n\n\t\t// lblHeading\n\t\tlblHeading = new Label();\n\t\tlblHeading.setImmediate(false);\n\t\tlblHeading.setWidth(\"-1px\");\n\t\tlblHeading.setHeight(\"-1px\");\n\t\tlblHeading.setValue(\"This is class 4\");\n\t\tmainLayout.addComponent(lblHeading);\n\n\t\t// button_1\n\t\tbutton_1 = new Button();\n\t\tbutton_1.setCaption(\"Button\");\n\t\tbutton_1.setImmediate(false);\n\t\tbutton_1.setWidth(\"-1px\");\n\t\tbutton_1.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(button_1);\n\n\t\treturn mainLayout;\n\t}",
"protected abstract Body newBodyImpl();",
"@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// tablaGestionEvaluaciones\n\t\ttablaGestionEvaluaciones = new Table();\n\t\ttablaGestionEvaluaciones.setImmediate(false);\n\t\ttablaGestionEvaluaciones.setWidth(\"100.0%\");\n\t\ttablaGestionEvaluaciones.setHeight(\"100.0%\");\n\t\tmainLayout.addComponent(tablaGestionEvaluaciones,\n\t\t\t\t\"top:57.0px;right:20.0px;bottom:20.0px;left:20.0px;\");\n\t\t\n\t\t// botonCrearEvaluacion\n\t\tbotonCrearEvaluacion = new Button();\n\t\tbotonCrearEvaluacion.setCaption(\"Crear Evaluación\");\n\t\tbotonCrearEvaluacion.setImmediate(true);\n\t\tbotonCrearEvaluacion.setWidth(\"-1px\");\n\t\tbotonCrearEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(botonCrearEvaluacion, \"top:14.0px;left:20.0px;\");\n\t\t\n\t\t// buttonEditarEvaluacion\n\t\tbuttonEditarEvaluacion = new Button();\n\t\tbuttonEditarEvaluacion.setCaption(\"Editar Evaluación\");\n\t\tbuttonEditarEvaluacion.setImmediate(false);\n\t\tbuttonEditarEvaluacion.setWidth(\"-1px\");\n\t\tbuttonEditarEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(buttonEditarEvaluacion,\n\t\t\t\t\"top:14.0px;left:160.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}",
"@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setStyleName(\"contenido\");\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(true);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// hl_cabecera\n\t\thl_cabecera = buildHl_cabecera();\n\t\tmainLayout.addComponent(hl_cabecera);\n\t\t\n\t\t// horizontalLayout_1\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\n\t\tmainLayout.addComponent(horizontalLayout_1);\n\t\tmainLayout.setComponentAlignment(horizontalLayout_1, new Alignment(20));\n\t\t\n\t\t// l_preferenciasUsuario\n\t\tl_preferenciasUsuario = new Label();\n\t\tl_preferenciasUsuario.setStyleName(\"mih2\");\n\t\tl_preferenciasUsuario.setImmediate(false);\n\t\tl_preferenciasUsuario.setWidth(\"100.0%\");\n\t\tl_preferenciasUsuario.setHeight(\"-1px\");\n\t\tl_preferenciasUsuario.setValue(\"Preferencias de Usuario\");\n\t\tmainLayout.addComponent(l_preferenciasUsuario);\n\t\t\n\t\t// hl_gridContent\n\t\thl_gridContent = new HorizontalLayout();\n\t\thl_gridContent.setImmediate(false);\n\t\thl_gridContent.setWidth(\"100.0%\");\n\t\thl_gridContent.setHeight(\"-1px\");\n\t\thl_gridContent.setMargin(false);\n\t\tmainLayout.addComponent(hl_gridContent);\n\t\t\n\t\t// b_enviar\n\t\tb_enviar = new Button();\n\t\tb_enviar.setCaption(\"Actualizar\");\n\t\tb_enviar.setImmediate(true);\n\t\tb_enviar.setWidth(\"-1px\");\n\t\tb_enviar.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(b_enviar);\n\t\tmainLayout.setComponentAlignment(b_enviar, new Alignment(48));\n\t\t\n\t\treturn mainLayout;\n\t}",
"Board createLayout();",
"@Override\n\tprotected void loadXml() {\n\t\tsetContentView(R.layout.activity_my_message);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) \n {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.main); \n createLayout();\n }",
"@Override\n\tpublic View onMainCreateView(Activity activity) {\n\t\tlayout = new FrameLayout(activity);\n\t\treturn layout;\n\t}",
"public CmsLayoutXmlContentHandler() {\n\n super();\n }",
"protected void onLoadLayout(View view) {\n }",
"@Override\n\tpublic String getLayout() {\n\t\treturn \"main\";\n\t}",
"private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }",
"@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"360px\");\r\n\t\tmainLayout.setHeight(\"440px\");\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"360px\");\r\n\t\tsetHeight(\"440px\");\r\n\t\t\r\n\t\t// userSelect\r\n\t\tuserSelect = new ListSelect();\r\n\t\tuserSelect.setCaption(\"Select User\");\r\n\t\tuserSelect.setImmediate(false);\r\n\t\tuserSelect.setWidth(\"320px\");\r\n\t\tuserSelect.setHeight(\"326px\");\r\n\t\tmainLayout.addComponent(userSelect, \"top:34.0px;left:20.0px;\");\r\n\t\t\r\n\t\t// submitButton\r\n\t\tsubmitButton = new Button();\r\n\t\tsubmitButton.setCaption(\"OK\");\r\n\t\tsubmitButton.setImmediate(true);\r\n\t\tsubmitButton.setWidth(\"-1px\");\r\n\t\tsubmitButton.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(submitButton, \"top:394.0px;left:155.0px;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }",
"@Override\n public void doTag() throws JspException, IOException {\n setAttributes();\n\n String layout = getBodyContent();\n jspContext.getOut().write(layout);\n }",
"@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"682px\");\r\n\t\tmainLayout.setHeight(\"570px\");\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"682px\");\r\n\t\tsetHeight(\"570px\");\r\n\t\t\r\n\t\t// lblTitle\r\n\t\tlblTitle = new Label();\r\n\t\tlblTitle.setStyleName(\"titleLabel\");\r\n\t\tlblTitle.setImmediate(false);\r\n\t\tlblTitle.setWidth(\"-1px\");\r\n\t\tlblTitle.setHeight(\"-1px\");\r\n\t\tlblTitle.setValue(\"Cambiar contraseña\");\r\n\t\tmainLayout.addComponent(lblTitle, \"top:42.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// oldPassword\r\n\t\ttxtOldPassword = new PasswordField();\r\n\t\ttxtOldPassword.setCaption(\"Contraseña actual\");\r\n\t\ttxtOldPassword.setImmediate(true);\r\n\t\ttxtOldPassword.setWidth(\"240px\");\r\n\t\ttxtOldPassword.setHeight(\"-1px\");\r\n\t\ttxtOldPassword.setTabIndex(1);\r\n\t\ttxtOldPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtOldPassword, \"top:120.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// newPassword\r\n\t\ttxtNewPassword = new PasswordField();\r\n\t\ttxtNewPassword.setCaption(\"Contraseña nueva\");\r\n\t\ttxtNewPassword.setImmediate(true);\r\n\t\ttxtNewPassword.setWidth(\"240px\");\r\n\t\ttxtNewPassword.setHeight(\"-1px\");\r\n\t\ttxtNewPassword.setTabIndex(2);\r\n\t\ttxtNewPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtNewPassword, \"top:190.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// confirmPassword\r\n\t\ttxtConfirmPassword = new PasswordField();\r\n\t\ttxtConfirmPassword.setCaption(\"Confirmación de la nueva contraseña\");\r\n\t\ttxtConfirmPassword.setImmediate(true);\r\n\t\ttxtConfirmPassword.setWidth(\"240px\");\r\n\t\ttxtConfirmPassword.setHeight(\"-1px\");\r\n\t\ttxtConfirmPassword.setTabIndex(2);\r\n\t\ttxtConfirmPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtConfirmPassword, \"top:260.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// btnModify\r\n\t\tbtnModify = new Button();\r\n\t\tbtnModify.setCaption(\"Modificar\");\r\n\t\tbtnModify.setImmediate(true);\r\n\t\tbtnModify.setWidth(\"100px\");\r\n\t\tbtnModify.setHeight(\"-1px\");\r\n\t\tbtnModify.setTabIndex(3);\r\n\t\tmainLayout.addComponent(btnModify, \"top:330.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// btnCancel\r\n\t\tbtnCancel = new Button();\r\n\t\tbtnCancel.setCaption(\"Cancelar\");\r\n\t\tbtnCancel.setImmediate(true);\r\n\t\tbtnCancel.setWidth(\"100px\");\r\n\t\tbtnCancel.setHeight(\"-1px\");\r\n\t\tbtnCancel.setTabIndex(4);\r\n\t\tmainLayout.addComponent(btnCancel, \"top:330.0px;left:140.0px;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// lblTitle\n\t\tlblTitle = new Label();\n\t\tlblTitle.setImmediate(false);\n\t\tlblTitle.setWidth(\"-1px\");\n\t\tlblTitle.setHeight(\"-1px\");\n\t\tlblTitle.setValue(\"Song\");\n\t\tmainLayout.addComponent(lblTitle);\n\t\tmainLayout.setComponentAlignment(lblTitle, new Alignment(20));\n\t\t\n\t\t// formLayout\n\t\tformLayout = buildFormLayout();\n\t\tmainLayout.addComponent(formLayout);\n\t\tmainLayout.setComponentAlignment(formLayout, new Alignment(20));\n\t\t\n\t\t// layoutButtons\n\t\tlayoutButtons = buildLayoutButtons();\n\t\tmainLayout.addComponent(layoutButtons);\n\t\tmainLayout.setComponentAlignment(layoutButtons, new Alignment(20));\n\t\t\n\t\treturn mainLayout;\n\t}",
"private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }",
"@Override\r\n\tprotected int layoutId() {\n\t\treturn R.layout.mine_new_huankuan;\r\n\t}",
"@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"540px\");\n\t\tmainLayout.setHeight(\"400px\");\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"540px\");\n\t\tsetHeight(\"400px\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"400px\");\n\t\tcommentField.setHeight(\"140px\");\n\t\tmainLayout.addComponent(commentField, \"top:100.0px;left:20.0px;\");\n\t\t\n\t\t// discountField\n\t\tdiscountField = new TextField();\n\t\tdiscountField.setCaption(\"Descuento\");\n\t\tdiscountField.setImmediate(false);\n\t\tdiscountField.setWidth(\"80px\");\n\t\tdiscountField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(discountField, \"top:140.0px;left:440.0px;\");\n\t\t\n\t\t// invoiceField\n\t\tinvoiceField = new ComboBox();\n\t\tinvoiceField.setCaption(\"Código Factura\");\n\t\tinvoiceField.setImmediate(false);\n\t\tinvoiceField.setWidth(\"200px\");\n\t\tinvoiceField.setHeight(\"-1px\");\n\t\tinvoiceField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceField, \"top:20.0px;left:200.0px;\");\n\t\t\t\t\n\t\t// invoiceLineDateField\n\t\tinvoiceLineDateField = new DateField();\n\t\tinvoiceLineDateField.setCaption(\"Fecha\");\n\t\tinvoiceLineDateField.setImmediate(false);\n\t\tinvoiceLineDateField.setWidth(\"100px\");\n\t\tinvoiceLineDateField.setHeight(\"-1px\");\n\t\tinvoiceLineDateField.setInvalidAllowed(false);\n\t\tinvoiceLineDateField.setRequired(true);\n\t\tinvoiceLineDateField.setResolution(4);\n\t\tmainLayout.addComponent(invoiceLineDateField,\n\t\t\t\t\"top:20.0px;left:420.0px;\");\n\t\t\n\t\t// invoiceLineStatusField\n\t\tinvoiceLineStatusField = new ComboBox();\n\t\tinvoiceLineStatusField.setCaption(\"Estado\");\n\t\tinvoiceLineStatusField.setImmediate(false);\n\t\tinvoiceLineStatusField.setWidth(\"240px\");\n\t\tinvoiceLineStatusField.setHeight(\"-1px\");\n\t\tinvoiceLineStatusField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceLineStatusField, \"top:58.0px;left:281.0px;\");\n\t\t\t\t\n\t\t// ivaField\n\t\tivaField = new ComboBox();\n\t\tivaField.setCaption(\"Iva\");\n\t\tivaField.setImmediate(false);\n\t\tivaField.setWidth(\"80px\");\n\t\tivaField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(ivaField, \"top:176.0px;left:440.0px;\");\n\t\t\n\t\t// numberField\n\t\tnumberField = new TextField();\n\t\tnumberField.setCaption(\"Número\");\n\t\tnumberField.setImmediate(false);\n\t\tnumberField.setWidth(\"80px\");\n\t\tnumberField.setHeight(\"-1px\");\n\t\tnumberField.setRequired(true);\n\t\tmainLayout.addComponent(numberField, \"top:20.0px;left:20.0px;\");\n\t\t\n\t\t// priceField\n\t\tpriceField = new TextField();\n\t\tpriceField.setCaption(\"Precio\");\n\t\tpriceField.setImmediate(false);\n\t\tpriceField.setWidth(\"80px\");\n\t\tpriceField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceField, \"top:100.0px;left:440.0px;\");\n\t\t\n\t\t// priceFinalField\n\t\tpriceFinalField = new TextField();\n\t\tpriceFinalField.setCaption(\"Precio Final\");\n\t\tpriceFinalField.setImmediate(false);\n\t\tpriceFinalField.setWidth(\"80px\");\n\t\tpriceFinalField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceFinalField, \"top:216.0px;left:440.0px;\");\n\t\t\n\t\t// servicesField\n\t\tservicesField = new ServiceCollectionField();\n\t\tservicesField.setImmediate(false);\n\t\tservicesField.setWidth(\"500px\");\n\t\tservicesField.setHeight(\"122px\");\n\t\tmainLayout.addComponent(servicesField, \"top:260.0px;left:20.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}",
"void computeNewLayout();",
"@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"240px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"240px\");\n\t\t\n\t\t// usernameField\n\t\tusernameField = new TextField();\n\t\tusernameField.setCaption(\"Nombre Usuario\");\n\t\tusernameField.setImmediate(false);\n\t\tusernameField.setWidth(\"114px\");\n\t\tusernameField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(usernameField, \"top:16.0px;left:6.0px;\");\n\t\t\n\t\t// passwordField\n\t\tpasswordField = new PasswordField();\n\t\tpasswordField.setCaption(\"Contraseña\");\n\t\tpasswordField.setImmediate(false);\n\t\tpasswordField.setWidth(\"114px\");\n\t\tpasswordField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(passwordField, \"top:60.0px;left:6.0px;\");\n\t\t\n\t\t// btnApplyUser\n\t\tbtnApplyUser = new Button();\n\t\tbtnApplyUser.setCaption(\"Aplicar\");\n\t\tbtnApplyUser.setImmediate(true);\n\t\tbtnApplyUser.setWidth(\"-1px\");\n\t\tbtnApplyUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnApplyUser, \"top:16.0px;left:128.0px;\");\n\t\t\n\t\t// btnRemoveUser\n\t\tbtnRemoveUser = new Button();\n\t\tbtnRemoveUser.setCaption(\"Borrar\");\n\t\tbtnRemoveUser.setImmediate(true);\n\t\tbtnRemoveUser.setWidth(\"-1px\");\n\t\tbtnRemoveUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnRemoveUser, \"top:58.0px;left:128.0px;\");\n\t\t\n\t\t// btnCancelUser\n\t\tbtnCancelUser = new Button();\n\t\tbtnCancelUser.setCaption(\"Cancelar\");\n\t\tbtnCancelUser.setImmediate(true);\n\t\tbtnCancelUser.setWidth(\"-1px\");\n\t\tbtnCancelUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnCancelUser, \"top:16.0px;left:200.0px;\");\n\t\t\n\t\t// passwordConfirmField\n\t\tpasswordConfirmField = new PasswordField();\n\t\tpasswordConfirmField.setCaption(\"Confirmar contraseña\");\n\t\tpasswordConfirmField.setImmediate(false);\n\t\tpasswordConfirmField.setWidth(\"114px\");\n\t\tpasswordConfirmField.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(passwordConfirmField, \"top:102.0px;left:6.0px;\");\n\t\t\n\t\t// defaultLocaleField\n\t\tdefaultLocaleField = new LocaleField();\n\t\tdefaultLocaleField.setImmediate(true);\n\t\tdefaultLocaleField.setWidth(\"260px\");\n\t\tdefaultLocaleField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(defaultLocaleField, \"top:50.0px;left:220.0px;\");\n\t\t\n\t\t// activeField\n\t\tactiveField = new CheckBox();\n\t\tactiveField.setCaption(\"Activa\");\n\t\tactiveField.setImmediate(false);\n\t\tactiveField.setWidth(\"-1px\");\n\t\tactiveField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(activeField, \"top:16.0px;left:427.0px;\");\n\t\t\n\t\t// expirationDateField\n\t\texpirationDateField = new PopupDateField();\n\t\texpirationDateField.setCaption(\"Fecha expiración\");\n\t\texpirationDateField.setImmediate(false);\n\t\texpirationDateField.setWidth(\"105px\");\n\t\texpirationDateField.setHeight(\"-1px\");\n\t\texpirationDateField.setResolution(4);\n\t\tmainLayout.addComponent(expirationDateField,\n\t\t\t\t\"top:106.0px;left:375.0px;\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"474px\");\n\t\tcommentField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(commentField, \"top:143.0px;left:6.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}",
"GeomLayout.IGeomLayoutCreateFromNode geomLayoutCreator();",
"public static Element createBodyElement(ReportDesigner reportDesigner,String type, String title,String xAxisTitle, String yAxisTitle){\r\n\t\tElement bodyNode = doc.createElement(\"body\");\r\n\r\n\t\tElement extendedItemNode = doc.createElement(\"extended-item\");\r\n\t\textendedItemNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_ID,reportDesigner.getNextId());\r\n\t\textendedItemNode.setAttribute(\"extensionName\",\"Chart\");\r\n\t\textendedItemNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"NewChart\");\r\n\t\tbodyNode.appendChild(extendedItemNode);\r\n\r\n\t\tElement xmlPropNode = doc.createElement(\"xml-property\");\r\n\t\txmlPropNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"xmlRepresentation\");\r\n\r\n\t\t//Store document as the following method replaces it.\r\n\t\tDocument prevDoc = doc;\r\n\t\txmlPropNode.appendChild(doc.createCDATASection(createChartCDATASection(type,title,xAxisTitle, yAxisTitle,reportDesigner)));\r\n\r\n\t\t//Restore our doc\r\n\t\tdoc = prevDoc;\r\n\t\textendedItemNode.appendChild(xmlPropNode);\r\n\r\n\t\taddExtendedItemNonXmlProps(extendedItemNode,reportDesigner);\r\n\r\n\t\treturn bodyNode;\r\n\t}",
"@AutoGenerated\r\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"800px\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"800px\");\r\n\t\t\r\n\t\t// verticalLayout_5\r\n\t\tverticalLayout_5 = buildVerticalLayout_5();\r\n\t\tmainLayout.addComponent(verticalLayout_5);\r\n\t\tmainLayout.setComponentAlignment(verticalLayout_5, new Alignment(48));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"@AutoGenerated\r\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"400px\");\r\n\t\tsetHeight(\"340px\");\r\n\t\t\r\n\t\t// menuBar_1\r\n\t\tmenuBar_1 = new MenuBar();\r\n\t\tmenuBar_1.setWidth(\"100.0%\");\r\n\t\tmenuBar_1.setHeight(\"-1px\");\r\n\t\tmenuBar_1.setImmediate(false);\r\n\t\tmainLayout.addComponent(menuBar_1);\r\n\t\t\r\n\t\t// horizontalLayout_1\r\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\r\n\t\tmainLayout.addComponent(horizontalLayout_1);\r\n\t\t\r\n\t\t// tabSheet_1\r\n\t\ttabSheet_1 = buildTabSheet_1();\r\n\t\tmainLayout.addComponent(tabSheet_1);\r\n\t\tmainLayout.setExpandRatio(tabSheet_1, 1.0f);\r\n\t\tmainLayout.setComponentAlignment(tabSheet_1, new Alignment(48));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }",
"private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }",
"public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }",
"public void createPackageContents() {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n kShapeLayoutEClass = createEClass(KSHAPE_LAYOUT);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__XPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__YPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__WIDTH);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__HEIGHT);\r\n createEReference(kShapeLayoutEClass, KSHAPE_LAYOUT__INSETS);\r\n\r\n kEdgeLayoutEClass = createEClass(KEDGE_LAYOUT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__BEND_POINTS);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__SOURCE_POINT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__TARGET_POINT);\r\n\r\n kLayoutDataEClass = createEClass(KLAYOUT_DATA);\r\n\r\n kPointEClass = createEClass(KPOINT);\r\n createEAttribute(kPointEClass, KPOINT__X);\r\n createEAttribute(kPointEClass, KPOINT__Y);\r\n\r\n kInsetsEClass = createEClass(KINSETS);\r\n createEAttribute(kInsetsEClass, KINSETS__TOP);\r\n createEAttribute(kInsetsEClass, KINSETS__BOTTOM);\r\n createEAttribute(kInsetsEClass, KINSETS__LEFT);\r\n createEAttribute(kInsetsEClass, KINSETS__RIGHT);\r\n\r\n kIdentifierEClass = createEClass(KIDENTIFIER);\r\n createEAttribute(kIdentifierEClass, KIDENTIFIER__ID);\r\n\r\n kVectorEClass = createEClass(KVECTOR);\r\n createEAttribute(kVectorEClass, KVECTOR__X);\r\n createEAttribute(kVectorEClass, KVECTOR__Y);\r\n\r\n kVectorChainEClass = createEClass(KVECTOR_CHAIN);\r\n }",
"@Override\r\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\r\n setContentView(layoutId);\r\n }",
"@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"460px\");\n\t\tmainLayout.setHeight(\"260px\");\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"460px\");\n\t\tsetHeight(\"260px\");\n\t\t\n\t\t// popupDateField_2\n\t\tpopupDateField_2 = new PopupDateField();\n\t\tpopupDateField_2.setImmediate(false);\n\t\tpopupDateField_2.setWidth(\"-1px\");\n\t\tpopupDateField_2.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(popupDateField_2, \"top:120.0px;left:120.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"private void loadLayout(final Context context, AttributeSet attrs, int defStyle)\n\t{\n\t\t\n\t\tLayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView view = inflater.inflate(R.layout.reinstallstart, null);\n\t\tTextView l_infoTxtVw = (TextView)view.findViewById(R.id.startBody);\n\t\taddView(view);\n\t\tl_infoTxtVw.setText(context.getString(org.droidtv.ui.strings.R.string.MAIN_WI_SAT_UPDATE_CHANNELS));\n\t\tOnClickListener buttonCancel_Listener = new OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tmSatelliteWizard.launchPreviousScren();\n\t\t\t}\n\t\t};\n\n\t\tOnClickListener buttonSettings_Listener = new OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tLog.i(TAG, \"buttonSettings:onClick called\");\n\t\t\t\tmSatelliteWizard.launchScreen(ScreenRequest.SATELLITESELECTION, getScreenName());\n\t\t\t}\n\t\t};\n\n\t\tOnClickListener buttonUpdate_Listener = new OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tLog.i(TAG, \"buttonUpdate:onClick called\");\n\t\t\t\tmSatelliteWizard.launchScreen(ScreenRequest.UPDATESCAN, getScreenName());\n\t\t\t}\n\t\t};\n\n\t\tsetButton1(context.getString(org.droidtv.ui.strings.R.string.MAIN_BUTTON_CANCEL), buttonCancel_Listener, View.VISIBLE);\n\t\tsetButton2(context.getString(org.droidtv.ui.strings.R.string.MAIN_BUTTON_SETTINGS), buttonSettings_Listener, View.VISIBLE);\n\t\tsetButton3(context.getString(org.droidtv.ui.strings.R.string.MAIN_BUTTON_UPDATE), buttonUpdate_Listener, View.VISIBLE);\n\t\thideHint();\n\t}",
"private void saveRootLayoutInformation(){\n ConstraintLayout mainLayout = (ConstraintLayout) findViewById(R.id.rootLayout);\n int[] coordinates = new int[2];\n mainLayout.getLocationOnScreen(coordinates);\n\n // save offset/origin of the root layout\n TelemetryHandler telemetryHandler = TelemetryHandler.getInstance();\n telemetryHandler.setRootLayoutOrigin(coordinates);\n Device device = Device.getInstance();\n device.setmRootLayoutOrigin(coordinates);\n\n }",
"@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"public void build() throws IOException {\n if (packageWriter == null) {\n //Doclet does not support this output.\n return;\n }\n build(layoutParser.parseXML(ROOT), contentTree);\n }",
"public LinearLayout rootView(){\n buttonIndex = 0;\n buttonPayIndex = 0;\n buttonFunctionIndex = 0;\n\n\n LinearLayout lrl = new LinearLayout(getContext());\n LinearLayout.LayoutParams rlp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n rlp.setMargins(0,5,0,0);\n lrl.setLayoutParams(rlp);\n lrl.setOrientation(LinearLayout.VERTICAL);\n lrl.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n lrl.setWeightSum(rows);\n\n for(int index = 0; index < rows; index++){\n lrl.addView(createLinearLayout());\n }\n return lrl;\n }",
"@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// verticalLayout_1\n\t\tverticalLayout_1 = buildVerticalLayout_1();\n\t\tmainLayout.addComponent(verticalLayout_1);\n\t\t\n\t\t// verticalLayout_2\n\t\tverticalLayout_2 = buildVerticalLayout_2();\n\t\tmainLayout.addComponent(verticalLayout_2);\n\t\tmainLayout.setExpandRatio(verticalLayout_2, 1.0f);\n\t\t\n\t\treturn mainLayout;\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.second_layout);\n\t}",
"private void initBaseLayout() {\n if (topText != null) {\n TextView topicText = new TextView(mainContext);\n topicText.setText(topText);\n dimensionsContainer.setViewStyle(KEY_TOPIC_TEXT, topicText);\n topicText.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_topic));\n topicText.setClickable(true);\n topicText.setOnClickListener(generalClickListener);\n blankLayout.addView(topicText);\n }\n//Add topLayout\n //if (topLayout == null) {\n topLayout = new LinearLayout(mainContext);\n topLayout.setOrientation(LinearLayout.HORIZONTAL);\n topLayout.setLayoutParams(layoutParams_WC_WC);\n topLayout.setBackgroundColor(bgColor_Table);\n blankLayout.addView(topLayout);\n//Add numTop\n TextView numTop = new TextView(mainContext);\n numTop.setText(R.string.symbol_num);\n dimensionsContainer.setViewStyle(KEY_NUM_TOP, numTop);\n numTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_num_top));\n numTop.setClickable(true);\n numTop.setOnClickListener(generalClickListener);\n topLayout.addView(numTop);\n//Add nameTop\n TextView nameTop = new TextView(mainContext);\n nameTop.setText(nameTopTextResId);\n dimensionsContainer.setViewStyle(KEY_NAME_TOP, nameTop);\n nameTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_name_top));\n nameTop.setClickable(true);\n nameTop.setOnClickListener(generalClickListener);\n topLayout.addView(nameTop);\n\n\n\n\n\n\n//Add topHScrollView\n// if (layoutHandler.topHScrollView == null) {\n topHScrollView = new SyncedHorizontalScrollView(mainContext);\n topHScrollView.setLayoutParams(layoutParams_WC_MP);\n topHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor() !=\n null) //OverScrollColor\n {\n topHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor());\n }\n topLayout.addView(topHScrollView);\n\n//Add topScrollLayout\n // if(layoutHandler.topScrollLayout == null) {\n topScrollLayout = new LinearLayout(mainContext);\n topScrollLayout.setBackgroundColor(bgColor_Table);\n topHScrollView.addView(topScrollLayout);\n\n//Add bodyScrollView\n //if(layoutHandler.bodyScrollView == null) {\n bodyScrollView = new ScrollView(mainContext);\n bodyScrollView.setLayoutParams(layoutParams_MP_WC);\n bodyScrollView.setVerticalScrollBarEnabled(false);\n //bodyScrollView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n blankLayout.addView(bodyScrollView);\n//Add bodyLayout\n //if(layoutHandler.bodyLayout == null) {\n bodyLayout = new LinearLayout(mainContext);\n bodyLayout.setOrientation(LinearLayout.HORIZONTAL);\n bodyLayout.setLayoutParams(layoutParams_WC_WC);\n bodyScrollView.addView(bodyLayout);\n\n//Add bodyLeftLayout\n //if(layoutHandler.bodyLeftLayout == null) {\n bodyLeftLayout = new LinearLayout(mainContext);\n bodyLeftLayout.setOrientation(LinearLayout.VERTICAL);\n bodyLeftLayout.setLayoutParams(layoutParams_WC_WC);\n bodyLeftLayout.setBackgroundColor(bgColor_Table);\n bodyLayout.addView(bodyLeftLayout);\n\n//Add bodyHScrollView\n //if(layoutHandler.bodyHScrollView == null) {\n bodyHScrollView = new SyncedHorizontalScrollView(mainContext);\n bodyHScrollView.setLayoutParams(layoutParams_WC_WC);\n bodyHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor() !=\n null)//OverScrollColor\n {\n bodyHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor());\n }\n bodyLayout.addView(bodyHScrollView);\n\n//Add bodyRightLayout\n //if(layoutHandler.bodyRightLayout == null) {\n bodyRightLayout = new LinearLayout(mainContext);\n bodyRightLayout.setOrientation(LinearLayout.VERTICAL);\n bodyRightLayout.setBackgroundColor(bgColor_Table);\n bodyHScrollView.addView(bodyRightLayout);\n\n//Add Scroll Listeners\n\n ScrollManager scrollManager = new ScrollManager();\n scrollManager.setScrollDirection(ScrollManager.SCROLL_HORIZONTAL);\n scrollManager.addScrollClient(topHScrollView);\n scrollManager.addScrollClient(bodyHScrollView);\n\n// bodyScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// bodyHScrollView.getParent().requestDisallowInterceptTouchEvent(false);\n// return false;\n// }\n// });\n// bodyHScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// v.getParent().requestDisallowInterceptTouchEvent(true);\n// return false;\n// }\n// });\n\n //ScrollManager.disallowParentScroll(bodyHScrollView, 100);\n //ScrollManager.disallowChildScroll(bodyHScrollView, bodyLayout, 100);\n //bodyHScrollView.getWidth());\n //Dimensions.dipToPixels(mainContext, 800));\n// ScrollManager\n// .disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 200));\n //TODO: disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 50));\n\n }",
"private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"protected void createContents() {\n\n\t}",
"@Override\n\tpublic Body makeBody(Map<String, String> attributes, Node... nodes) {\n\t\treturn new Body( attributes, nodes );\n\t}",
"public static Layout createAbsoluteLayout() {\n\t\treturn LAYOUT_ABSOLUTE;\n\t}",
"public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}",
"public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n URL url = TwitterFX.class.getClassLoader().getResource(\"twitterfx.fxml\");\n loader.setLocation(url);\n rootLayout = (AnchorPane) loader.load();\n buildLayout();\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout, 600,400);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void initLayouts() {\n mRelativeLayout1WA = findViewById(R.id.history_layout_one_week_ago);\n mRelativeLayout6DA = findViewById(R.id.history_layout_six_days_ago);\n mRelativeLayout5DA = findViewById(R.id.history_layout_five_days_ago);\n mRelativeLayout4DA = findViewById(R.id.history_layout_four_days_ago);\n mRelativeLayout3DA = findViewById(R.id.history_layout_three_days_ago);\n mRelativeLayout2DA = findViewById(R.id.history_layout_two_days_ago);\n mRelativeLayoutY = findViewById(R.id.history_layout_yesterday);\n\n layoutsList.add(mRelativeLayoutY);\n layoutsList.add(mRelativeLayout2DA);\n layoutsList.add(mRelativeLayout3DA);\n layoutsList.add(mRelativeLayout4DA);\n layoutsList.add(mRelativeLayout5DA);\n layoutsList.add(mRelativeLayout6DA);\n layoutsList.add(mRelativeLayout1WA);\n\n }",
"@Override\n public int getLayoutId() {\n return R.layout.activity_main2;\n }",
"@LayoutRes\n protected abstract int getLayoutId();",
"protected abstract void iniciarLayout();",
"public void initRootLayout() {\r\n try {\r\n // Load root layout from fxml file.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(FilmApp.class.getResource(\"view/RootLayout.fxml\"));\r\n rootLayout = (BorderPane) loader.load();\r\n\r\n // Show the scene containing the root layout.\r\n Scene scene = new Scene(rootLayout);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }",
"private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }",
"String getLayout();",
"@AutoGenerated\n\tprivate void buildMainLayout() {\n\t\tmainLayout = new FormLayout();\n\t\t\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\tusername = new TextField(\"Username\");\n\t\tpassword = new TextField(\"Password\");\n\t\tmainLayout.addComponent(username);\n\t\tmainLayout.addComponent(password);\n\n\t\tlogin = new Button(\"Login\");\n\t\tregister = new Button(\"Register\");\n\n\t\tmainLayout.addComponent(login);\n\t\tmainLayout.addComponent(register);\n\t\t\n\t\tlogin.addClickListener(this);\n\t\tregister.addClickListener(this);\n\t\t\n\t}",
"private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"@Override\r\n\tpublic void onCreate(Data data) {\n\t\tSystem.out.println(\"onCreate window \"+data);\r\n\t\tsetWindowLayout(\"layout_main.xml\");\r\n\t}",
"EdgeLayout createEdgeLayout();",
"public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(\"RootLayout.fxml\"));\n rootLayout = (BorderPane) 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 createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}",
"@AutoGenerated\r\n\tprivate VerticalLayout buildMainLayout()\r\n\t{\n\t\tmainLayout = new VerticalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"100.0%\");\r\n\t\t\r\n\t\t// treePanel\r\n\t\ttreePanel = buildTreePanel();\r\n\t\tmainLayout.addComponent(treePanel);\r\n\t\tmainLayout.setExpandRatio(treePanel, 1.0f);\r\n\t\t\r\n\t\t// buttonsLayout\r\n\t\tbuttonsLayout = buildButtonsLayout();\r\n\t\tmainLayout.addComponent(buttonsLayout);\r\n\t\tmainLayout.setComponentAlignment(buttonsLayout, new Alignment(6));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public void layout() {\n // TODO: not implemented\n }",
"@Override\n\tpublic void setLayout(java.lang.String layout) {\n\t\t_scienceApp.setLayout(layout);\n\t}",
"public void mostrarRootLayout() {\n try {\n // Load root layout from fxml file.\n // Carrega o layout raíz do arquivo FXML \"RootLayout\"\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(LivrariaPrincipal.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n // Show the scene containing the root layout.\n // Mostra a cena que contém o layour raíz\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n\n // Dá acesso do controlador para o aplicativo principal\n RootLayoutController controller = loader.getController();\n controller.setMainApp(this);\n\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"-1px\");\n\t\tmainLayout.setHeight(\"29px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"-1px\");\n\t\tsetHeight(\"29px\");\n\t\t\n\t\t// pnToolbar\n\t\tpnToolbar = buildPnToolbar();\n\t\tmainLayout.addComponent(pnToolbar);\n\t\t\n\t\treturn mainLayout;\n\t}",
"public void finishLayout() {\n\t\tsetTypeState(ir_type_state.layout_fixed);\n\t}",
"public testLayout() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public void setBSContentView(int layoutResID) {\n checkBSActivityRunning();\n mDrawer.getParentView().removeAllViews();\n if (mDrawer.getBSLayoutInflater() != null) {\n mDrawer.addViewToBS(getBSDrawer().getBSLayoutInflater().inflate(layoutResID, null));\n }\n }",
"@Override\n public void baseSetContentView() {\n View layout = View.inflate(this,\n R.layout.ac_ext_sharedfilesd_grouphome, mContentLayout);\n // mContentLayout.addView(layout);\n intent1 = getIntent();\n context = this;\n\n }",
"private Component createDateLayout() {\n btnToday.addClickListener(e -> {\n dtpSightingDate.setValue(LocalDate.now());\n });\n\n HorizontalLayout dateLayout = new HorizontalLayout(dtpSightingDate, btnToday);\n dateLayout.setDefaultVerticalComponentAlignment(FlexComponent.Alignment.BASELINE);\n dateLayout.expand(dtpSightingDate);\n\n return dateLayout;\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tCustomLayout layout = new CustomLayout(this);\r\n\t\tsetContentView(layout);\r\n\t}",
"private void createLayout() {\n\t\t\n\t\tmenu = new JMenuBar();\n\t\tfile = new JMenu(\"Arquivo\");\n\t\tedit = new JMenu(\"Editar\");\n\t\tmenu.add(file);\n\t\tmenu.add(edit);\n\n\t\tnewfile = new JMenuItem(\"Novo\");\n\t\tnewfile.addActionListener(new NewFileListener());\n\t\tfile.add(newfile);\n\t\t\n\t\tcopy = new JMenuItem(\"Copiar\");\n\t\tcopy.addActionListener(new CopyListener());\n\t\tedit.add(copy);\n\t\t\n\t\tcut = new JMenuItem(\"Cortar\");\n\t\tcut.addActionListener(new CutListener());\n\t\tedit.add(cut);\n\t\t\n\t\tpaste = new JMenuItem(\"Colar\");\n\t\tpaste.addActionListener(new PasteListener());\n\t\tedit.add(paste);\n\n \n edit.add(undoAction);\n edit.add(redoAction);\n \n \t\topen = new JMenuItem(\"Abrir\");\n\t\topen.addActionListener(new OpenFileListener());\n\t\tfile.add(open);\n\n\t\texit = new JMenuItem(\"Sair\");\n\t\texit.addActionListener(new ExitFileListener());\n\t\tfile.add(exit);\n\t\tframe.setJMenuBar(menu);\n\t\t\n\t\tcaret = new DefaultCaret();\n\t\tarea = new JTextArea(25, 65);\n\t\tarea.setLineWrap(true);\n\t\tarea.setText(documentText);\n\t\tarea.setWrapStyleWord(true);\n\t\t\n\t\t\n\t\tarea.setCaret(caret);\n\t\tdocumentListener = new TextDocumentListener();\n\t\tarea.getDocument().addDocumentListener(documentListener); \n\t\t\n area.getDocument().addUndoableEditListener(new UndoListener());\n \n\t\tscrollpane = new JScrollPane(area);\n\t\tscrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tGroupLayout layout = new GroupLayout(this);\n\t\tsetLayout(layout);\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\n\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t\tlayout.setVerticalGroup(layout.createSequentialGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t}",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.live_layout, null);\r\n\t}",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\n public void requestLayout() {\n super.requestLayout();\n Log.v(Log.SUBSYSTEM.LAYOUT, TAG, \"requestLayout(%s): root layout requested; posting\", getName());\n\n runOnGlThread(mLayoutRunnable);\n }",
"@Override\n protected int getLayoutId() {\n return R.layout.activity_main;\n }",
"@Override\n int getLayout() {\n return R.layout.activity_main;\n }",
"private void setLayout (){\r\n /* define placeholders for content*/\r\n HBox mainFrame= new HBox(); //the Main frame component.\r\n root.getChildren().add(mainFrame); //add it to the scene\r\n \r\n \r\n \r\n mainFrame.getChildren().addAll(leftPane,rightPane);\r\n \r\n Rectangle leftR= new Rectangle(600.0, 900.0);\r\n leftR.setFill(Color.WHITE);\r\n Rectangle rightR= new Rectangle(300.0, 900.0);\r\n rightR.setFill(Color.RED);\r\n rightPane.getChildren().add(rightR);\r\n leftPane.getChildren().add(leftR);\r\n \r\n \r\n }",
"private Component createLogin() {\n CustomLayout custom = new CustomLayout(\"../../sampler/layouts/examplecustomlayout\");\n\n // Create components and bind them to the location tags\n // in the custom layout.\n username = new TextField();\n custom.addComponent(username, \"username\");\n\n password = new PasswordField();\n custom.addComponent(password, \"password\");\n\n Button ok = new Button(\"Login\");\n custom.addComponent(ok, \"okbutton\");\n\n // Add login listener\n ok.addListener(this);\n\n return custom;\n\n }",
"protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}",
"private View createAccountLayout() {\r\n\t\tLinearLayout accountLayout = new LinearLayout(getContext());\r\n\t\tLayoutParams aclp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT, 3);\r\n\t\taccountLayout.setOrientation(VERTICAL);\r\n\t\taccountLayout.setLayoutParams(aclp);\r\n\t\tTextView t = new TextView(getContext());\r\n\t\tLayoutParams tlp = new LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\r\n\t\tt.setLayoutParams(tlp);\r\n\t\tt.setText(account.getName());\r\n\t\tt.setTextSize(16);\r\n\t\tt.setTypeface(Typeface.DEFAULT_BOLD);\r\n\t\tt.setTextColor(getContext().getResources().getColor(R.color.black));\r\n\t\taccountLayout.addView(t);\r\n\r\n\t\tTextView desc = new TextView(getContext());\r\n\t\tif (account.getLastOperation() != null) {\r\n\t\t\tdesc.setText(\"\" + DateUtil.defaultDateFormat.format(account.getLastOperation()));\r\n\t\t}\r\n\t\taccountLayout.addView(desc);\r\n\t\treturn accountLayout;\r\n\t}",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView(C0354R.layout.layout_edit_main);\n loadLayoutFromPref();\n this.mImageView = (LayoutView) findViewById(C0354R.C0356id.layoutview);\n this.mLayoutAdapter = new LayoutAdapter(this, (LayoutItem) this.mLayoutItems.get(this.mCurrentLayout), this.mImageView);\n switchLayout(0);\n setupActionBarDropdown(getIntent().getIntExtra(KEY_INITIAL_LAYOUT, 0));\n registerForContextMenu(this.mImageView);\n this.mImageView.setOnCreateContextMenuListener(new ContextMenuListener(this));\n this.mImageView.setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n SingleView viewFromLastPosition = LayoutEditorActivity.this.mImageView.getViewFromLastPosition();\n if (viewFromLastPosition != null) {\n LayoutEditorActivity.this.addOrEditView(viewFromLastPosition);\n }\n }\n });\n ((Button) findViewById(C0354R.C0356id.btncancel)).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n LayoutEditorActivity.this.finish();\n }\n });\n ((Button) findViewById(C0354R.C0356id.btnsave)).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n LayoutEditorActivity.this.saveLayoutToPref();\n Intent intent = new Intent();\n intent.setClass(LayoutEditorActivity.this, MainActivity.class);\n intent.setAction(Constants.ACTION_EDIT_LAYOUT);\n LayoutEditorActivity.this.startActivity(intent);\n LayoutEditorActivity.this.finish();\n }\n });\n GAHelper.recordScreen(this, TAG);\n }",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tldprojectEClass = createEClass(LDPROJECT);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__NAME);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__LIFECYCLE);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__ROBUSTNESS);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___PUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UNPUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UPDATE);\n\n\t\tlddatabaselinkEClass = createEClass(LDDATABASELINK);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__DATABASE);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__PORT);\n\n\t\tldprojectlinkEClass = createEClass(LDPROJECTLINK);\n\n\t\tldnodeEClass = createEClass(LDNODE);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__NAME);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MONGO_HOSTS);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MAIN_PROJECT);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__ANALYTICS_READ_PREFERENCE);\n\n\t\t// Create enums\n\t\tlifecycleEEnum = createEEnum(LIFECYCLE);\n\t\trobustnessEEnum = createEEnum(ROBUSTNESS);\n\t}",
"private void prepareLayout() {\n\n\t\tm_layouts = new ArrayList<SQLTableLayout>();\n\n\t\t//\n\t\t// construct the table tag\n\t\t//\n\t\tSQLTableLayout layout = new SQLTableLayout(TAG_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"tag id\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_NAME, \"TEXT\", \"tag name\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of tag\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_USAGE, \"INTEGER\",\n\t\t\t\t\"tag usage in repository\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the table file\n\t\t//\n\t\tlayout = new SQLTableLayout(FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"file id\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_PATH, \"TEXT\", \"path of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_TYPE, \"TEXT\", \"type of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the mapping table\n\t\t//\n\t\tlayout = new SQLTableLayout(MAP_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"map id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_FILE, \"INTEGER\", \"file id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_TAG, \"INTEGER\", \"tag id\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the directory table\n\t\t//\n\t\tlayout = new SQLTableLayout(DIRECTORY_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"directory id\");\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of directory\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct pending file table\n\t\t//\n\t\tlayout = new SQLTableLayout(PENDING_FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"pending id\");\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"pending path of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct synchronized table\n\t\t//\n\t\tlayout = new SQLTableLayout(SYNC_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"sync id\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_DATE, \"TEXT\", \"sync date\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_TAGS, \"TEXT\",\n\t\t\t\t\"tags of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of synced file\");\n\t\tm_layouts.add(layout);\n\t}",
"public void setupLayout() {\n // left empty for subclass to override\n }",
"void createMainContent() {\n appContent = new DashboardMain(this);\n }",
"ShipmentPackageContent createShipmentPackageContent();",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_test);\r\n\t\tPullToRefreshScrollView pullToRefreshScrollView=(PullToRefreshScrollView) findViewById(R.id.test);\r\n\t\tScrollView scrollView=pullToRefreshScrollView.getRefreshableView();\r\n\t\t\r\n\t\tView v=getLayoutInflater().inflate(R.layout.commodities_layout, null);\r\n\t\tscrollView.addView(v);\r\n\t\t\r\n\t}",
"public void initRootLayout() {\n try {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApplication.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n \t}\n }"
] | [
"0.6387721",
"0.5922503",
"0.5889811",
"0.5689626",
"0.5637818",
"0.5620979",
"0.5609673",
"0.55220854",
"0.54191136",
"0.5398427",
"0.53596073",
"0.5356157",
"0.5335998",
"0.5330136",
"0.53250843",
"0.5320688",
"0.53105825",
"0.529618",
"0.5260312",
"0.5245262",
"0.5221523",
"0.5220839",
"0.5212681",
"0.52065927",
"0.5193265",
"0.5192095",
"0.5190389",
"0.51834935",
"0.51770836",
"0.51628673",
"0.5162405",
"0.5132971",
"0.5109876",
"0.50943744",
"0.50857717",
"0.50843817",
"0.50775707",
"0.5075214",
"0.5071591",
"0.5063553",
"0.50419146",
"0.50397074",
"0.50374705",
"0.5025992",
"0.5024397",
"0.501868",
"0.5018337",
"0.50182194",
"0.5015603",
"0.50148255",
"0.50098044",
"0.50027823",
"0.5002205",
"0.49991056",
"0.49850807",
"0.49842817",
"0.49825892",
"0.4972374",
"0.4966993",
"0.4964908",
"0.49645168",
"0.49601868",
"0.4954475",
"0.49533343",
"0.49446613",
"0.49425077",
"0.4941014",
"0.4940542",
"0.4939024",
"0.49365613",
"0.4932761",
"0.4929991",
"0.49298877",
"0.49242908",
"0.49169308",
"0.491561",
"0.49138898",
"0.49114046",
"0.49105775",
"0.49081594",
"0.4907957",
"0.49030867",
"0.48913077",
"0.48897588",
"0.48858756",
"0.48843384",
"0.4883493",
"0.48832396",
"0.48817074",
"0.48686767",
"0.48653328",
"0.48646146",
"0.48635733",
"0.4859536",
"0.48544884",
"0.48535812",
"0.4852201",
"0.48385844",
"0.4829647",
"0.4828302",
"0.4828233"
] | 0.0 | -1 |
TODO This is just a temporary solution. | private void fillUsingSingleSMS() {
String temp[] = new String[1];
temp[0] = messageBody;
smsThreadList.setAdapter(new ArrayAdapter<String>(this,
R.layout.sms_thread_list_sender_row_new,
R.id.sms_thread_list_row_descrip, temp));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"@Override\n public int describeContents() { return 0; }",
"private static void cajas() {\n\t\t\n\t}",
"private Util() { }",
"protected boolean func_70814_o() { return true; }",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void prot() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"zzafe mo29840Y() throws RemoteException;",
"protected MetadataUGWD() {/* intentionally empty block */}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private JacobUtils() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"private void test() {\n\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n protected void init() {\n }",
"public void smell() {\n\t\t\n\t}",
"Consumable() {\n\t}",
"public abstract void mo70713b();",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\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 protected void initialize() {\n\n \n }",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"private void level7() {\n }",
"@Override\n public void init() {\n }",
"private ProcessorUtils() { }",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private Unescaper() {\n\n\t}",
"@Override public int describeContents() { return 0; }",
"@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\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private BuilderUtils() {}",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"@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}",
"private test5() {\r\n\t\r\n\t}",
"abstract int pregnancy();",
"public void mo38117a() {\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"protected OpinionFinding() {/* intentionally empty block */}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"private CanonizeSource() {}",
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }",
"@Override\n public void preprocess() {\n }",
"@Override\n public Object preProcess() {\n return null;\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"protected void mo6255a() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"private static void iterator() {\n\t\t\r\n\t}",
"public void mo21877s() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}"
] | [
"0.5462627",
"0.5415558",
"0.53960425",
"0.53011405",
"0.5284442",
"0.5257463",
"0.52316487",
"0.518019",
"0.51735383",
"0.5163741",
"0.51580393",
"0.51214457",
"0.50927454",
"0.5084079",
"0.5061506",
"0.50362456",
"0.5006907",
"0.50020236",
"0.49855462",
"0.4980118",
"0.4980118",
"0.4980118",
"0.4980118",
"0.4980118",
"0.4980118",
"0.49758852",
"0.49555123",
"0.49317148",
"0.49268568",
"0.49234313",
"0.49218747",
"0.4914282",
"0.49080586",
"0.489887",
"0.48946068",
"0.48899218",
"0.48872572",
"0.4887023",
"0.48862946",
"0.48862946",
"0.48821142",
"0.48633265",
"0.4854671",
"0.48524818",
"0.4850811",
"0.4843092",
"0.48411763",
"0.48393682",
"0.4838979",
"0.48339385",
"0.48294502",
"0.48294502",
"0.48278004",
"0.48234496",
"0.4822889",
"0.48196277",
"0.481423",
"0.4812393",
"0.4806556",
"0.4802466",
"0.48005745",
"0.47995892",
"0.47975165",
"0.4797361",
"0.47950673",
"0.4786931",
"0.47858867",
"0.4777746",
"0.4777746",
"0.47774813",
"0.47749785",
"0.47742957",
"0.47729027",
"0.4771195",
"0.4771195",
"0.4771195",
"0.4771195",
"0.4771195",
"0.4762887",
"0.47613505",
"0.4760793",
"0.47480208",
"0.47480208",
"0.474488",
"0.47410393",
"0.4740663",
"0.47373876",
"0.47354922",
"0.47342417",
"0.47317594",
"0.47299808",
"0.4728121",
"0.47263494",
"0.4725867",
"0.47209385",
"0.47202367",
"0.47175837",
"0.47151303",
"0.47135052",
"0.47084033",
"0.47058198"
] | 0.0 | -1 |
//////////////SMSThread functions END///////////////////////////// every window is initially same size | @Override
public StandOutLayoutParams getParams(int id, Window window) {
WindowManager wm = (WindowManager) this
.getSystemService(this.WINDOW_SERVICE);
Display display = wm.getDefaultDisplay();
int width = display.getWidth(); // deprecated
int height = display.getHeight(); // deprecated
// TODO uncomment this code after deubugging
int msg_box_height = (int) (height - .5 * height);
int msg_box_width = (int) (width - 30);
// TODO remove after debugging the touch button
// int msg_box_height = (int) (100);
// int msg_box_width = (int) (100);
return new StandOutLayoutParams(id, msg_box_width, msg_box_height,
StandOutLayoutParams.CENTER, StandOutLayoutParams.TOP+200,
msg_box_width, msg_box_height);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void windowResized();",
"private void setWindowDefaultSize(UserPrefs prefs) {\n primaryStage.setHeight(prefs.getGuiSettings().getWindowHeight());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"165\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setWidth(prefs.getGuiSettings().getWindowWidth());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"166\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n if (prefs.getGuiSettings().getWindowCoordinates() != null) {\n primaryStage.setX(prefs.getGuiSettings().getWindowCoordinates().getX());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"168\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setY(prefs.getGuiSettings().getWindowCoordinates().getY());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"169\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }\n\t\tTemplateClass.instrum(\"LineNumber: \",\"167\", \"Type: \",\"org.eclipse.jdt.core.dom.IfStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }",
"public void calculateWindow()\n {\n Vector2 windowBottomLeftBounds = new Vector2(1000000, 1000000);\n Vector2 windowTopRightBounds = new Vector2(-1000000, -1000000);\n for (Element<?> e : children())\n {\n if (e.id() != null && (e.id().startsWith(id() + \"hBar\") || e.id().startsWith(id() + \"vBar\")))\n {\n continue;\n }\n for (Element<?> child : e)\n {\n Vector2 alignmentVector = child.alignment().alignmentVector();\n Vector2 bottomLeftBounds = new Vector2(child.x() - (alignmentVector.x * child.width()), child.y()\n - (alignmentVector.y * child.height()));\n Vector2 topRightBounds = new Vector2(bottomLeftBounds.x + child.width(), bottomLeftBounds.y + child.height());\n // left\n if (windowBottomLeftBounds.x > bottomLeftBounds.x)\n {\n windowBottomLeftBounds.x = bottomLeftBounds.x;\n }\n // bottom\n if (windowBottomLeftBounds.y > bottomLeftBounds.y)\n {\n windowBottomLeftBounds.y = bottomLeftBounds.y;\n }\n // right\n if (windowTopRightBounds.x < topRightBounds.x)\n {\n windowTopRightBounds.x = topRightBounds.x;\n }\n // top\n if (windowTopRightBounds.y < topRightBounds.y)\n {\n windowTopRightBounds.y = topRightBounds.y;\n }\n }\n }\n \n content = new CRectangle(windowBottomLeftBounds.x, windowBottomLeftBounds.y, windowTopRightBounds.x - windowBottomLeftBounds.x,\n windowTopRightBounds.y - windowBottomLeftBounds.y);\n content.origin = new Vector2(0, 0);\n \n calculateScrollSize();\n }",
"private void updateSizeInfo() {\n RelativeLayout drawRegion = (RelativeLayout)findViewById(R.id.drawWindow);\r\n drawW = drawRegion.getWidth();\r\n drawH = drawRegion.getHeight();\r\n getImageFromStorage();\r\n LinearLayout parentWindow = (LinearLayout)findViewById(R.id.parentWindow);\r\n parentWindow.setPadding((drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2, (drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2);\r\n parentWindow.invalidate();\r\n }",
"public void resize_screen(){\r\n \tstop_scn_updates();\r\n \tscn_font_size = min_font_size+1;\r\n \twhile (scn_font_size < max_font_size){\r\n \t\tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \t\tcalc_screen_size();\r\n \t\tif (scn_image.getWidth() < main_panel_width\r\n \t\t\t&& scn_image.getHeight() < main_panel_height){\r\n \t\t\tscn_font_size++;\r\n \t\t} else {\r\n \t\t scn_font_size--;\r\n \t\t break;\r\n \t\t}\r\n \t} \t\r\n \tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \tcalc_screen_size();\r\n start_scn_updates();\r\n }",
"void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }",
"public void settings() { size(1200, 800); }",
"private void setupWindow() {\n // Some visual tweaks - first, modify window width based on screen dp. Height handled\n // later after the adapter is populated\n WindowManager.LayoutParams params = getWindow().getAttributes();\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n if (isSmallTablet(metrics)) {\n params.width = (metrics.widthPixels * 2 / 3);\n params.height = (metrics.heightPixels * 3 / 5);\n }\n // For phone screens, we won't adjust the window dimensions\n\n // Don't dim the background while the activity is displayed\n params.alpha = 1.0f;\n params.dimAmount = 0.0f;\n\n getWindow().setAttributes(params);\n\n // Set dialog title\n Set<String> preferredLines =\n PreferenceManager.getDefaultSharedPreferences(this).getStringSet(DashTubeExtension.FAVOURITE_LINES_PREF, null);\n setTitle((preferredLines != null && preferredLines.size() > 0)\n ? R.string.expanded_title_filtered\n : R.string.expanded_title);\n\n // Updated time text\n String updatedStr = String.format(getString(R.string.updated_at),\n getIntent().getStringExtra(DashTubeExtension.TUBE_STATUS_TIMESTAMP));\n\n TextView time = (TextView) findViewById(R.id.updated_at);\n time.setText(updatedStr);\n }",
"public void settings() {\n int widthOfWindow = 900;\n int heightOfWindow = 900;\n\n //Size of the program window\n size(widthOfWindow, heightOfWindow);\n //making the movement smooth, i think, comes from processing\n smooth();\n }",
"private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}",
"void update(){\r\n\t\twindowHeight = this.getHeight();\r\n\t}",
"protected final Dimension windowSizeControl () {\n\t\tif (!this.isMaximum && !this.isIcon && !this.isClosed) {\n\t\t\tint height = size.height;\n\t\t\tint width = size.height;\n\t\t\t\n\t\t\t// Gets the current size\n\t\t\tint currentHeight = this.getHeight();\n\t\t\tint currentWidth = this.getWidth();\n\t\t\t\n\t\t\t// Makes a pack() to get the minimum required size\n\t\t\tthis.pack();\n\t\t\t\n\t\t\t// Gets the pack size\n\t\t\tint packHeight = this.getHeight();\n\t\t\tint packWidth = this.getWidth();\n\t\t\t\n\t\t\t// Calculates the ideal height\n\t\t\tif (packHeight > currentHeight) {\n\t\t\t\theight = packHeight;\n\t\t\t} else {\n\t\t\t\theight = currentHeight;\n\t\t\t}\n\t\t\t// Calculates the ideal width\n\t\t\tif (packWidth > currentWidth) {\n\t\t\t\twidth = packWidth;\n\t\t\t} else {\n\t\t\t\twidth = currentWidth;\n\t\t\t}\n\t\t\t\n\t\t\t// It must not be greater than the desktop size\n\t\t\tint desktopHeight = parent.getDesktopPane().getHeight();\n\t\t\tint desktopWidth = parent.getDesktopPane().getWidth();\n\t\t\t\n\t\t\tif (width > desktopWidth){\n\t\t\t\twidth = desktopWidth;\n\t\t\t}\n\t\t\tif (packWidth > desktopWidth){\n\t\t\t\tpackWidth = desktopWidth;\n\t\t\t}\n\t\t\tif (height > desktopHeight){\n\t\t\t\theight = desktopHeight;\n\t\t\t}\n\t\t\tif (packHeight > desktopHeight){\n\t\t\t\tpackHeight = desktopHeight;\n\t\t\t}\n\t\t\t\n\t\t\t// Resizes the window and sets the minimum allowed size\n\t\t\tsize = new Dimension(width, height);\n\t\t\tsetSize(size);\n\t\t\tsetMinimumSize(new Dimension(packWidth, packHeight));\n\t\t}\n\t\treturn size;\n\t}",
"protected void windowSizeMaybeChanged(int newWidth, int newHeight) {\n boolean changed = false;\n if (width != newWidth) {\n width = newWidth;\n changed = true;\n VConsole.log(\"New window width: \" + width);\n }\n if (height != newHeight) {\n height = newHeight;\n changed = true;\n VConsole.log(\"New window height: \" + height);\n }\n if (changed) {\n VConsole.log(\"Running layout functions due to window resize\");\n connection.runDescendentsLayout(VView.this);\n Util.runWebkitOverflowAutoFix(getElement());\n \n sendClientResized();\n }\n }",
"@Override\n protected void windowInit ()\n {\n }",
"public int winSize() { return winSize; }",
"@Override\r\n\tprotected void pack() {\r\n\r\n\t\tRectangle displayarea = shell.getDisplay().getPrimaryMonitor().getBounds();\r\n\t\tRectangle windowarea = shell.getBounds();\r\n\t\tshell.setBounds((displayarea.width - windowarea.width) / 2,\r\n\t\t\t\t(displayarea.height - windowarea.height) / 2,\r\n\t\t\t\twindowarea.width, windowarea.height);\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tDisplay.getCurrent().getActiveShell().setMinimized(true);\n\t}",
"public void layoutAndAssignWindowLayersIfNeeded() {\n this.mWmService.mWindowsChanged = true;\n setLayoutNeeded();\n if (HwPCUtils.isPcCastModeInServer() && HwPCUtils.isValidExtDisplayId(this.mDisplayId)) {\n this.mWmService.updateFocusedWindowLocked(3, false);\n assignWindowLayers(false);\n } else if (!this.mWmService.updateFocusedWindowLocked(3, false)) {\n assignWindowLayers(false);\n }\n this.mInputMonitor.setUpdateInputWindowsNeededLw();\n this.mWmService.mWindowPlacerLocked.performSurfacePlacement();\n this.mInputMonitor.updateInputWindowsLw(false);\n }",
"public void run() {\n\t\t\t\t\t\t\t\t heavyResize();\n\t\t\t\t\t\t\t\t invokeRedraw();\n\t\t\t\t\t\t\t\t }",
"public void initApp() {\n \tint ms = (int) Math.round(1000d / Settings.getFramesPerSecond());\n \ttimer = new Timer(ms, this);\n \ttimer.start();\n setBackground(new Color(35, 35, 35));\n Dimension d = new Dimension(Settings.getGridDimensions());\n d.setSize(d.getWidth() + Settings.getBoxSize() * 4 + 80, d.getHeight());\n setPreferredSize(d);\n setFocusable(true);\n }",
"public void showWindows() {\n\t\t pack();\n\t setResizable(false);\n\t setLocationRelativeTo(null);\n\t setVisible(true);\n\t\t\n\t}",
"public void setupGUIWindow()\n { \n// _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n// exitOnClose(); \n// createButtonGrid(); \n// addButtonPanel(); \n \n\t //setSize(new Dimension(Toolkit.getDefaultToolkit().getScreenSize())); \n \n\t _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t _frame.addComponentListener(new WindowListener());\n\t exitOnClose(); \n\t createShipPlacementButton();\n\t createButtonGrid(_displayPanel, _buttonGrid2, null); // player\n\t createButtonGrid(_buttonPanel, _buttonGrid, new GridListener(_buttonGrid)); // enemy\n\t addButtonPanel(); \n }",
"public void run() {\r\n\t\t\t\tServerChatUI serverChatUI = new ServerChatUI(s);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tserverChatUI.setMinimumSize(new Dimension(588, 500));\r\n\t\t\t\tserverChatUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\t\tserverChatUI.setLocation(dim.width/2-serverChatUI.getSize().width/2, dim.height/2-serverChatUI.getSize().height/2);\r\n \t\t\t\tserverChatUI.pack();\r\n\t\t\t\tserverChatUI.setVisible(true);\r\n\t\t\t\tserverChatUI. setResizable(false);\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t}",
"private void onWindowSizeChange() {\n resizeAnchorPane();\n synchronized (notifiers) {\n for (int i = 0; i < notifiers.size(); i++) { //can't be in for each loop as notifiers might be changed in another thread\n Notifier notifier = notifiers.get(i);\n notifier.notify(scrollPane.getViewportBounds().getWidth(), scrollPane.getViewportBounds().getHeight());\n }\n }\n }",
"@Override\r\n\tprotected void done() {\r\n\t\ttry {\r\n\t\t\tthis.get();\r\n\r\n\t\t\tRunnable run = 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\ttry {\r\n\t\t\t\t\t\tMainFrame mf = GUITools.getMainFrame();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// try to restore the window at the last location\r\n\t\t\t\t\t\tPropertyManager pm = PropertyManager.getManager(mf);\r\n\t\t\t\t\t\tProperties p = pm.read();\r\n\t\t\t\t\t\t// first run, write default values\r\n\t\t\t\t\t\tif (p.isEmpty()){\r\n\t\t\t\t\t\t\tDimension dimScreen = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\t\t\t\t\tint width = (int) dimScreen.getWidth() / 9 * 8;\r\n\t\t\t\t\t\t\tint height = (int) dimScreen.getHeight() / 9 * 8;\r\n\t\t\t\t\t\t\tmf.setLocation(width / 9 * 1 / 2, height / 9 * 1 / 3);\r\n\t\t\t\t\t\t\tmf.setPreferredSize(new Dimension(width, height));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tp.setProperty(\"loc_x\", String.valueOf(mf.getLocation().x));\r\n\t\t\t\t\t\t\tp.setProperty(\"loc_y\", String.valueOf(mf.getLocation().y));\r\n\t\t\t\t\t\t\tp.setProperty(\"width\", String.valueOf(width));\r\n\t\t\t\t\t\t\tp.setProperty(\"height\", String.valueOf(height));\r\n\t\t\t\t\t\t\tp.setProperty(\"extendedState\", String.valueOf(JFrame.MAXIMIZED_BOTH));\r\n\t\t\t\t\t\t\tpm.write();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tmf.setVisible(true);\r\n\t\t\t\t\t\t// start like last time\r\n\t\t\t\t\t\tmf.setLocation(new Point(Integer.valueOf(p.getProperty(\"loc_x\")), Integer.valueOf(p.getProperty(\"loc_y\")))); \r\n\t\t\t\t\t\tmf.setSize(Integer.valueOf(p.getProperty(\"width\")), Integer.valueOf(p.getProperty(\"height\")));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Integer.valueOf(p.getProperty(\"extendedState\")) != JFrame.MAXIMIZED_BOTH){\r\n\t\t\t\t\t\t\tmf.setExtendedState(JFrame.NORMAL);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (Exception e) {\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\t// finally display (from EDT)\r\n\t\t\tSwingUtilities.invokeLater(run);\r\n\r\n\t\t\tSystem.gc();\r\n\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\tSystem.out.println(\"IQM Fatal: \"+ e1);\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e1, true);\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (ExecutionException e1) {\r\n\t\t\tSystem.out.println(\"IQM Fatal: \"+ e1);\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e1, true);\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"IQM Fatal: \"+ e);\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}",
"private void zeichneWindow(int ypos,int xpos, int size)\r\n {\r\n ypos = ypos + size/6;\r\n xpos = xpos + size/6;\r\n size = size/4;\r\n zeichneWand(\"blau\",ypos,xpos,size); \r\n }",
"protected void doResize() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\tdoNew();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, false);\r\n\t\tdlg.widthText.setText(\"\" + renderer.surface.width);\r\n\t\tdlg.heightText.setText(\"\" + renderer.surface.height);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\trenderer.surface.width = dlg.width;\r\n\t\t\trenderer.surface.height = dlg.height;\r\n\t\t\trenderer.surface.computeRenderingLocations();\r\n\t\t}\r\n\t}",
"private void configureWindow() {\n\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n background.setBackground(Color.BLACK);\n setSize(initialWindowWidth, initialWindowHeight);\n setVisible(true);\n }",
"protected void calculateBounds()\r\n {\r\n Toolkit DefaultToolkit = Toolkit.getDefaultToolkit();\r\n Dimension ScreenSize = DefaultToolkit.getScreenSize();\r\n int FrameWidth = ScreenSize.width - 100;\r\n int FrameHeight = ScreenSize.height - 100;\r\n setBounds(50, 50, FrameWidth, FrameHeight);\r\n }",
"public FrmMenuAdmin() {\n initComponents(); \n \n this.setExtendedState(FrmMenuAdmin.MAXIMIZED_BOTH);\n jDesktopPane1.setMaximumSize(this.getMaximumSize()); \n //tester();\n \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n width = (int) screenSize.getWidth();\n height = (int) screenSize.getHeight(); \n this.setSize((int)width,(int)height);\n this.setExtendedState(FrmMenuAdmin.MAXIMIZED_BOTH); \n }",
"private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}",
"private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}",
"public MainWindow() {\n Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();\n this.setBounds(screenSize.width/2-150, screenSize.height/2-75, 300, 150);\n initComponents();\n }",
"private void initProcess(){\n this.getScPanelFriends().getViewport().setOpaque(false);\n this.getScPanelTopics().getViewport().setOpaque(false);\n this.getCenterPanel().setSize(0,0);\n this.getEastPanel().setSize(1700,800);\n //Administrador inhabilitado por defecto hasta implementación\n this.getBtnAdmin().setEnabled(false);\n this.getMenuOption().setLocationRelativeTo(this);\n }",
"void run() {\n pack();\n setVisible(true);\n }",
"public Dimension getPreferredSize() {\n Dimension size = super.getPreferredSize();\n size.width += extraWindowWidth;\n return size;\n }",
"public MySWsDecoderSizesAutoLayoutTests() {\n initComponents();\n \n \n }",
"public void run() {\n\t\t\t heavyResize();\n\t\t\t invokeRedraw();\n\t\t }",
"protected void saveWindowDimensionsIfWindowed() {\n\t\tif(isFullscreen() || isBorderless()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.lastWindowWidth = getWidth();\n\t\tthis.lastWindowHeight = getHeight();\n\t\tthis.lastWindowPosX = getPositionX();\n\t\tthis.lastWindowPosY = getPositionY();\n\t}",
"private static void getWindowHandles() {\n\t\t\r\n\t}",
"private void basicSize(){\n setSize(375,400);\n }",
"public void requestLargeLayout() {\n Dialog dialog = getDialog();\n if (dialog == null) {\n Log.w(getClass().getSimpleName(), \"requestLargeLayout dialog has not init yet!\");\n return;\n }\n Window window = dialog.getWindow();\n if (window == null) {\n Log.w(getClass().getSimpleName(), \"requestLargeLayout window has not init yet!\");\n return;\n }\n FragmentActivity activity = getActivity();\n if (activity != null) {\n float displayWidthInDip = UIUtil.getDisplayWidthInDip(activity);\n float displayHeightInDip = UIUtil.getDisplayHeightInDip(activity);\n int dimensionPixelSize = getResources().getDimensionPixelSize(C4558R.dimen.annotate_dialog_min_width);\n if (displayWidthInDip < displayHeightInDip) {\n displayHeightInDip = displayWidthInDip;\n }\n if (displayHeightInDip < ((float) dimensionPixelSize)) {\n window.setLayout(dimensionPixelSize, -1);\n }\n }\n }",
"void setWindowSize(int s);",
"private WindowManager() \r\n\t{\r\n\t\tinitFrame();\r\n\t}",
"public void resize (int top, int left, int bottom, int right) {\n if ((wrapper instanceof ActiveXComponent) &&\n (clientSite == AX_NO_CLIENT_SITE)) {\n \n } else {\n synchronized (this) {\n messagesWaiting.add\n (new OleThreadRequest(RESIZE,\n top, left, bottom, right));\n message(AX_MORE_DETAIL, messagesWaiting.toString());\n notify();\n }\n }\n }",
"private void extendedSize(){\n setSize(600,400);\n }",
"void windowResized(ResizeEvent e);",
"private void initMainFrame(){\n \n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n this.setSize(MAINFRAMESIZE);\n BoxLayout bl = new BoxLayout(getContentPane(), BoxLayout.Y_AXIS);\n this.getContentPane().setLayout(bl);\n this.setPreferredSize(MAINFRAMESIZE);\n this.setResizable(false);\n this.pack();\n }",
"@Override\n\tpublic void settings() {\n\t\tSystem.out.println(\"settings\");\n\t\tsize(800, 800);\n\t}",
"private void getScreenSize() {\n WindowManager wm = getWindowManager();\n Display disp = wm.getDefaultDisplay();\n Point size = new Point();\n disp.getSize(size);\n screenWidth = size.x;\n screenHeight = size.y;\n }",
"private static void setupWindow() {\n window.setSize((2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n window.add(canvas);\n window.setVisible(true);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n canvas.createBufferStrategy(2);\n }",
"@Override\n public void onResume() {\n ViewGroup.LayoutParams params = getDialog().getWindow().getAttributes();\n // Assign window properties to fill the parent\n params.width = WindowManager.LayoutParams.MATCH_PARENT;\n// params.height = WindowManager.LayoutParams.MATCH_PARENT;\n\n getDialog().getWindow().setAttributes((android.view.WindowManager.LayoutParams) params);\n // Call super onResume after sizing\n super.onResume();\n }",
"private void setupWindow() {\n\t\tgetContentPane().setLayout(null);\t\t\t\t\n\n\t\t// Set title\n\t\tsetTitle(\"Gallhp\");\n\n\t\t// Set location and size\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\t\n\t\tsetSize(800, 600);\n\t\tsetResizable(false);\n\n\t}",
"protected void setWindowDefaultSize(UserPrefs prefs) {\n primaryStage.setHeight(prefs.getGuiSettings().getWindowHeight());\n primaryStage.setWidth(prefs.getGuiSettings().getWindowWidth());\n if (prefs.getGuiSettings().getWindowCoordinates() != null) {\n primaryStage.setX(prefs.getGuiSettings().getWindowCoordinates().getX());\n primaryStage.setY(prefs.getGuiSettings().getWindowCoordinates().getY());\n }\n }",
"public void onWindowResized(int width, int height) {\n this.setHeight(\"\" + (height - TopPanel.HEIGHT));\n }",
"void pack() {\n/* 179 */ Component component = getComponent();\n/* */ \n/* 181 */ if (component instanceof Window) {\n/* 182 */ ((Window)component).pack();\n/* */ }\n/* */ }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tIntent it = new Intent(\r\n\t\t\t\t\t\tMeasureAppWindowSize.this, Main.class);\r\n\t\t\t\tstartActivity(it);\r\n\t\t\t\tfinish();\r\n\t\t\t}",
"public void testGetClientSize() {\n // Get the dimensions without any scroll bars\n Window.enableScrolling(false);\n final int oldClientHeight = Window.getClientHeight();\n final int oldClientWidth = Window.getClientWidth();\n assertTrue(oldClientHeight > 0);\n assertTrue(oldClientWidth > 0);\n \n // Compare to the dimensions with scroll bars\n Window.enableScrolling(true);\n final Label largeDOM = new Label();\n largeDOM.setPixelSize(oldClientWidth + 100, oldClientHeight + 100);\n RootPanel.get().add(largeDOM);\n DeferredCommand.addCommand(new Command() {\n public void execute() {\n int newClientHeight = Window.getClientHeight();\n int newClientWidth = Window.getClientWidth();\n assertTrue(newClientHeight < oldClientHeight);\n assertTrue(newClientWidth < oldClientWidth);\n finishTest();\n }\n });\n delayTestFinish(200);\n }",
"public void resize() {\n\t\tsp.doLayout();\n\t}",
"private void myInit() {\n\n final Dimension d = new Dimension( 1000, 600 );\n this.setPreferredSize( d );\n final Dimension d2 = new Dimension( 600, 400 );\n this.setMinimumSize( d2 );\n\n loadData();\n\n pack();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Display display = getWindowManager().getDefaultDisplay();\n Point point=new Point();\n display.getSize(point);\n final float hieght = point.y; // screen height\n scrnHeight = hieght-250;\n final float width = point.x; // screen width\n scrnWidth = width-60;\n\n initUI();\n\n animateTopBottom(10000);\n\n}",
"private void buildAndShowWindow() {\n SwingUtilities.invokeLater(() -> {\n buildWindow().setVisible(true);\n });\n }",
"int getWindowSize();",
"@Override public void onResume() {\n ViewGroup.LayoutParams params = getDialog().getWindow().getAttributes();\n // Assign window properties to fill the parent\n params.width = WindowManager.LayoutParams.MATCH_PARENT;\n params.height = WindowManager.LayoutParams.MATCH_PARENT;\n getDialog().getWindow().setAttributes((android.view.WindowManager.LayoutParams) params);\n // Call super onResume after sizing\n super.onResume();\n }",
"private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }",
"private void formWindowStateChanged(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowStateChanged\n \n /*Que este máximizado siempre*/\n GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n this.setMaximizedBounds(env.getMaximumWindowBounds());\n this.setExtendedState(this.getExtendedState() | javax.swing.JFrame.MAXIMIZED_BOTH);\n \n }",
"protected double getWindowWidth() {\n\t\treturn m_windowWidth;\n\t}",
"@Override\n public void onGlobalLayout() {\n ll_width.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n WindowManager windowManager = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE);\n int left=ll_width.getLeft()*2;\n int width =(windowManager.getDefaultDisplay().getWidth() - left);\n dePatPopWin = new PopupWindow(view, width, LinearLayout.LayoutParams.WRAP_CONTENT);\n dePatPopWin.setFocusable(true);\n dePatPopWin.setOutsideTouchable(true);\n dePatPopWin.setBackgroundDrawable(new BitmapDrawable());\n }",
"public void waitForAllWindowsDrawn() {\n forAllWindows((Consumer<WindowState>) new Consumer(this.mWmService.mPolicy) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$oqhmXZMcpcvgI50swQTzosAcjac */\n private final /* synthetic */ WindowManagerPolicy f$1;\n\n {\n this.f$1 = r2;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$waitForAllWindowsDrawn$24$DisplayContent(this.f$1, (WindowState) obj);\n }\n }, true);\n }",
"public ToolWindowSelector() {\r\n\t\tfinal ImageStack slices = ImageStack.getInstance();\t\t\r\n\t\t\r\n\r\n\t\t// range_max needs to be calculated from the bits_stored value\r\n\t\t// in the current dicom series\r\n\t\tint window_center_min = 0;\r\n\t\tint window_width_min = 0;\r\n\t\tint window_center_max = 1<<(slices.getDiFile(0).getBitsStored());\r\n\t\tint window_width_max = 1<<(slices.getDiFile(0).getBitsStored());\r\n\t\t_window_center = slices.getWindowCenter();\r\n\t\t_window_width = slices.getWindowWidth();\r\n\t\t\r\n\t\t_window_settings_label = new JLabel(\"Window Settings\");\r\n\t\t_window_center_label = new JLabel(\"Window Center:\");\r\n\t\t_window_width_label = new JLabel(\"Window Width:\");\r\n\t\t\r\n\t\t_window_center_slider = new JSlider(window_center_min, window_center_max, _window_center);\r\n\t\t_window_center_slider.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tJSlider source = (JSlider) e.getSource();\r\n\t\t\t\tif (source.getValueIsAdjusting()) {\r\n\t\t\t\t\t_window_center = (int)source.getValue();\r\n//\t\t\t\t\tSystem.out.println(\"_window_center_slider state Changed: \"+_window_center);\r\n\t\t\t\t\tslices.setWindowCenter(_window_center);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\t\t\r\n\t\t\r\n\t\t_window_width_slider= new JSlider(window_width_min, window_width_max, _window_width);\r\n\t\t_window_width_slider.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tJSlider source = (JSlider) e.getSource();\r\n\t\t\t\tif (source.getValueIsAdjusting()) {\r\n\t\t\t\t\t_window_width = (int)source.getValue();\r\n//\t\t\t\t\tSystem.out.println(\"_window_width_slider state Changed: \"+_window_width);\r\n\t\t\t\t\tslices.setWindowWidth(_window_width);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\t\tc.weighty = 0.3;\r\n\t\tc.fill = GridBagConstraints.BOTH;\r\n\t\tc.insets = new Insets(2,2,2,2); // top,left,bottom,right\r\n\t\tc.weightx = 0.1;\r\n\t\tc.gridwidth = 2;\r\n\t\tc.gridx = 0; c.gridy = 0; this.add(_window_settings_label, c);\r\n\t\tc.gridwidth=1;\r\n\r\n\t\tc.weightx = 0;\r\n\t\tc.gridx = 0; c.gridy = 1; this.add(_window_center_label, c);\r\n\t\tc.gridx = 0; c.gridy = 2; this.add(_window_width_label, c);\r\n\t\tc.gridx = 1; c.gridy = 1; this.add(_window_center_slider, c);\r\n\t\tc.gridx = 1; c.gridy = 2; this.add(_window_width_slider, c);\r\n\t\t\r\n\r\n\t}",
"private void onExit()\n {\n if (settings.window_size_remember)\n {\n settings.window_size_last = html_panel.getSize();\n settings.saveWindowSize();\n }\n \n System.exit(1);\n }",
"public void settings() {\r\n size(750, 550);\r\n }",
"public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }",
"private void calcContentSize() {\n }",
"public void updateWindowsForAnimator() {\n forAllWindows(this.mUpdateWindowsForAnimator, true);\n }",
"private void reCalcularWindows(){\n }",
"public void windowsConfiguration() {\n\t\tthis.setTitle(\"Segaleo\");\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}",
"public static void windowspwcw() {\n\t\tString windowHandle = driver.getWindowHandle();\n\t\tSystem.out.println(\"parent window is: \"+windowHandle);\n\t\tSet<String> windowHandles = driver.getWindowHandles();\n\t\tSystem.out.println(\"child window is \"+windowHandles);\n\t\tfor(String eachWindowId:windowHandles)\n\t\t{\n\t\t\tif(!windowHandle.equals(eachWindowId))\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(eachWindowId);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t}",
"public final void windowResizedOp(int newWidth, int newHeight) {\n super.defaultWindowResizedOp(newWidth, newHeight);\n }",
"@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }",
"private void setCorrectSize() {\n double newHeight = this.getContentPane().getPreferredSize().getHeight() +\n this.getContentPane().getPreferredSize().getHeight()/10 * 7;\n int newHeightInt = (int)Math.round(newHeight);\n \n this.setSize(this.getWidth(),newHeightInt);\n }",
"@Override\n public Builder windowSize(int windowSize) {\n super.windowSize(windowSize);\n return this;\n }",
"public DebuggerWindow() {\r\n initComponents();\r\n loadConfig();\r\n runner = new hc11_thread(board);\r\n runner.start();\r\n bphandler = new debug_breakPtHandler(this,board);\r\n runner.attachBPhandler(bphandler);\r\n tblDissasm.getColumnModel().getColumn(0).setMinWidth(70);\r\n tblDissasm.getColumnModel().getColumn(0).setMaxWidth(90);\r\n tblDissasm.getColumnModel().getColumn(0).setWidth(80);\r\n tblDissasm.getColumnModel().getColumn(1).setMinWidth(120);\r\n tblDissasm.getColumnModel().getColumn(1).setMaxWidth(200);\r\n tblDissasm.getColumnModel().getColumn(1).setWidth(150);\r\n }",
"@Override\n public void run() {\n boolean pvp_net;\n //Start with negative state:\n pvp_net_changed(false);\n \n Window win = null;\n\n while(!isInterrupted()||true) {\n //Check whether window is running\n if(win==null) {\n win = CacheByTitle.initalInst.getWindow(ConstData.window_title_part);\n //if(win==null)\n // Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window from name failed...\");\n }\n else if(!win.isValid()) {\n win = null;\n //Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window is invalid...\");\n }\n else if(\n main.ToolRunning() && \n main.settings.getBoolean(Setnames.PREVENT_CLIENT_MINIMIZE.name, (Boolean)Setnames.PREVENT_CLIENT_MINIMIZE.default_val) &&\n win.isMinimized()) {\n win.restoreNoActivate();\n }\n pvp_net = win!=null;\n //On an change, update GUI\n if(pvp_net!=pvp_net_running) {\n pvp_net_changed(pvp_net);\n }\n \n /*thread_running = main.ToolRunning();\n if(thread_running!=automation_thread_running)\n thread_changed(thread_running);*/\n\n try {\n sleep(900L);\n //Wait some more if paused\n waitPause();\n }\n catch(InterruptedException e) {\n break; \n }\n } \n }",
"@Override\r\n\tprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) \r\n\t{\n\t\tsuper.onMeasure(widthMeasureSpec, heightMeasureSpec);\r\n\t\tSystem.out.println(\"Screen Mesure: \"+getMeasuredWidth()+\" \"+getMeasuredHeight());\r\n\t\twindowW = getMeasuredWidth();\r\n\t\twindowH = getMeasuredHeight();\r\n\t \r\n\t \r\n\t}",
"public MainUI() throws UnknownHostException {\n initComponents();\n //server();\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\nwidth = screenSize.getWidth();\n height = screenSize.getHeight();\n setIcon();\n \n }",
"public static void run(){\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n PlanHomeCoach frame = new PlanHomeCoach();\n frame.init();\n Dimension screenSize =Toolkit.getDefaultToolkit().getScreenSize();\n frame.setLocation(screenSize.width/2-400/2,screenSize.height/2-700/2);\n frame.setResizable(false);\n frame.setVisible(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }",
"@SuppressWarnings(\"UnnecessaryBoxing\")\r\n private void initLayoutDimensions() {\r\n leftPanelWidth = Page.getScreenWidth() * 20 / 100;\r\n leftPanelHeight = Page.getScreenHeight() - 225;\r\n middlePanelWidth = Page.getScreenWidth() / 2;\r\n if (Double.valueOf(middlePanelWidth) % 2.0 > 0.0) {\r\n middlePanelWidth = middlePanelWidth - 1;\r\n }\r\n rightPanelWidth = Page.getScreenWidth() - (leftPanelWidth + 2 + middlePanelWidth + 2);\r\n }",
"public CommonPopWindow setSize(int width, int height) {\n/* 140 */ this.mWidth = width;\n/* 141 */ this.mHeight = height;\n/* 142 */ return this;\n/* */ }",
"private void init(){\r\n\t\tsetLayout(new FlowLayout());\r\n\t\tsetPreferredSize(new Dimension(40,40));\r\n\t\tsetVisible(true);\r\n\t}",
"@Override\n public void settings(){\n size(500, 500);\n }",
"public void renderWindowToFit(int x, int y, String title) {\r\n\t\tSystem.out.printf(\"Setting window size: (%d, %d)\", x, y);\r\n\r\n\t\tthis.setTitle(title);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setSize(x, y);\r\n\t\tthis.repaint();\r\n\t\tthis.revalidate();\r\n\t\tthis.setResizable(false);\r\n\r\n\t\t// Center window on screen\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t}",
"@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}",
"@Override\n public void run() {\n \n Admision main = new Admision();\n main.setExtendedState(MAXIMIZED_BOTH);\n main.setVisible(true);\n\n }",
"protected void createDialogSize ()\n {\n }",
"private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }",
"public frmMain() {\n initComponents();\n setExtendedState(MAXIMIZED_BOTH);\n }",
"private void setWindowWidth(int width) {\n this.width = width;\n }",
"private void inputGridSize() {\n \ttest = new TextField();\n \ttest.setPrefSize(BUTTON_SIZE, TEXT_INPUT_BAR_HEIGHT);\n \tstartScreen.add(test, 2, 2);\n }",
"public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }",
"public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }"
] | [
"0.6893816",
"0.6495823",
"0.64602375",
"0.634007",
"0.63347596",
"0.6315641",
"0.62971145",
"0.6289835",
"0.62789196",
"0.62698853",
"0.62307215",
"0.6230042",
"0.62106603",
"0.6209539",
"0.6187448",
"0.6173021",
"0.61406463",
"0.61297345",
"0.61277163",
"0.6095288",
"0.6093494",
"0.60873795",
"0.60846895",
"0.6082816",
"0.6077141",
"0.60521513",
"0.604085",
"0.6021719",
"0.59903586",
"0.59900486",
"0.59859",
"0.59457505",
"0.59168154",
"0.59163755",
"0.5908169",
"0.5897891",
"0.5889462",
"0.58890766",
"0.5884911",
"0.5878047",
"0.5866763",
"0.58656216",
"0.5864345",
"0.58621776",
"0.5861643",
"0.58330685",
"0.5804704",
"0.5800851",
"0.5793388",
"0.5792117",
"0.578422",
"0.57777",
"0.5773703",
"0.57616717",
"0.57560897",
"0.5754469",
"0.57518643",
"0.5749308",
"0.5742766",
"0.5739679",
"0.5738862",
"0.57333565",
"0.5732324",
"0.57241166",
"0.5716596",
"0.5714263",
"0.57139546",
"0.5711876",
"0.5702373",
"0.56938034",
"0.5688474",
"0.568662",
"0.568501",
"0.5684154",
"0.5683226",
"0.56806433",
"0.56801695",
"0.5678242",
"0.5677235",
"0.566217",
"0.5661639",
"0.5660992",
"0.5660005",
"0.5653637",
"0.56519693",
"0.5651761",
"0.56499416",
"0.5648694",
"0.5647358",
"0.5645301",
"0.5635479",
"0.5633205",
"0.5624163",
"0.56118375",
"0.5610281",
"0.5608975",
"0.56070024",
"0.55980843",
"0.55979",
"0.5593995",
"0.5592378"
] | 0.0 | -1 |
we want the system window decorations, we want to drag the body, we want the ability to hide windows, and we want to tap the window to bring to front | @Override
public int getFlags(int id) {
return StandOutFlags.FLAG_WINDOW_HIDE_ENABLE
| StandOutFlags.FLAG_WINDOW_EDGE_LIMITS_ENABLE
| StandOutFlags.FLAG_WINDOW_BRING_TO_FRONT_ON_TAP;
// return StandOutFlags.FLAG_WINDOW_HIDE_ENABLE
// | StandOutFlags.FLAG_WINDOW_BRING_TO_FRONT_ON_TAP;
// return StandOutFlags.FLAG_DECORATION_SYSTEM
// | StandOutFlags.FLAG_BODY_MOVE_ENABLE
// | StandOutFlags.FLAG_WINDOW_HIDE_ENABLE
// | StandOutFlags.FLAG_WINDOW_BRING_TO_FRONT_ON_TAP
// | StandOutFlags.FLAG_WINDOW_EDGE_LIMITS_ENABLE
// | StandOutFlags.FLAG_WINDOW_PINCH_RESIZE_ENABLE;
// return StandOutFlags.FLAG_DECORATION_MAXIMIZE_DISABLE
// |StandOutFlags.FLAG_DECORATION_SYSTEM
// |StandOutFlags.FLAG_DECORATION_RESIZE_DISABLE
// | StandOutFlags.FLAG_BODY_MOVE_ENABLE
// | StandOutFlags.FLAG_WINDOW_BRING_TO_FRONT_ON_TAP;
// return super.getFlags(id) | StandOutFlags.FLAG_BODY_MOVE_ENABLE
// | StandOutFlags.FLAG_WINDOW_FOCUSABLE_DISABLE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean setWindowToFront() {\n\t\treturn true;\r\n\t}",
"public void windowIconified(WindowEvent arg0)\n {\n ti.setImageAutoSize(true);\n\n try\n {\n SystemTray.getSystemTray().add(ti);\n cms.setVisible(false);\n ti.addMouseListener(new MouseListener()\n {\n public void mouseClicked(MouseEvent arg0)\n {\n SystemTray.getSystemTray().remove(ti);\n cms.setVisible(true);\n cms.setState(JFrame.NORMAL);\n }\n public void mouseEntered(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseExited(MouseEvent arg0)\n {\n // Unused\n }\n public void mousePressed(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseReleased(MouseEvent arg0)\n {\n // Unused\n }\n });\n }\n catch (AWTException e)\n {\n e.printStackTrace();\n }\n }",
"public void windowBecameFront() \n {\n return; \n }",
"private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }",
"static void maximumWindow(View decorView) {\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"public interface User32 extends StdCallLibrary{\n\n\tUser32 INSTANCE = (User32) Native.loadLibrary(\"User32\", User32.class);\n\n\tint SM_CXSCREEN = 0;\n\tint SM_CYSCREEN = 1;\n\n\tint GetSystemMetrics(int nIndex);\n\n\tint SPI_GETWORKAREA = 48;\n\n\tint SystemParametersInfoW(int uiAction, int uiParam, RECT pvParam, int fWinIni);\n\n\tPointer GetForegroundWindow();\n\n\tint GW_HWNDFIRST = 0;\n\tint GW_HWNDNEXT = 2;\n\n\tPointer GetWindow(Pointer hWnd, int uCmd);\n\n\tint IsWindow(Pointer hWnd);\n\tint IsWindowVisible(Pointer hWnd);\n\n\tint GWL_STYLE = -16;\n\tint GWL_EXSTYLE = -20;\n\n\tint GetWindowLongW(Pointer hWnd, int nIndex);\n\tint SetWindowLongW(Pointer hWnd, int nIndex, int dwNewLong);\n\n\tint WS_MAXIMIZE = 0x01000000;\n\tint WS_EX_LAYERED = 0x00080000;\n\n\tint IsIconic(Pointer hWnd);\n\n\tint GetWindowTextW(Pointer hWnd, char[] lpString, int nMaxCount);\n\tint GetClassNameW(Pointer hWnd, char[] lpString, int nMaxCount);\n\n\tint GetWindowRect(Pointer hWnd, RECT lpRect);\n\n\tint ERROR = 0;\n\n\tint GetWindowRgn(Pointer hWnd, Pointer hRgn);\n\n\tint MoveWindow(Pointer hWnd, int X, int Y, int nWidth, int nHeight, int bRepaint);\n\n\tint BringWindowToTop(Pointer hWnd);\n\n\tPointer GetDC(Pointer hWnd);\n\tint ReleaseDC(Pointer hWnd, Pointer hDC);\n\n\tint ULW_ALPHA = 2;\n\n\tint UpdateLayeredWindow(Pointer hWnd, Pointer hdcDst,\n POINT pptDst, SIZE psize,\n Pointer hdcSrc, POINT pptSrc, int crKey,\n BLENDFUNCTION pblend, int dwFlags);\n\n interface WNDENUMPROC extends StdCallCallback {\n /** Return whether to continue enumeration. */\n boolean callback(Pointer hWnd, Pointer arg);\n }\n\n boolean EnumWindows(WNDENUMPROC lpEnumFunc, Pointer arg);\n\n}",
"public void testWindowSystem() {\n final ProjectsTabOperator projectsOper = ProjectsTabOperator.invoke();\n final FavoritesOperator favoritesOper = FavoritesOperator.invoke();\n\n // test attaching\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.AS_LAST_TAB);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.TOP);\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.RIGHT);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.AS_LAST_TAB);\n // wait until TopComponent is in new location and is showing\n final TopComponent projectsTc = (TopComponent) projectsOper.getSource();\n final TopComponent favoritesTc = (TopComponent) favoritesOper.getSource();\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object tc) {\n // run in dispatch thread\n Mode mode1 = (Mode) projectsOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(projectsTc);\n }\n });\n Mode mode2 = (Mode) favoritesOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(favoritesTc);\n }\n });\n return (mode1 == mode2 && favoritesTc.isShowing()) ? Boolean.TRUE : null;\n }\n\n @Override\n public String getDescription() {\n return (\"Favorites TopComponent is next to Projects TopComponent.\"); // NOI18N\n }\n }).waitAction(null);\n } catch (InterruptedException e) {\n throw new JemmyException(\"Interrupted.\", e); // NOI18N\n }\n favoritesOper.close();\n\n // test maximize/restore\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass2Node = new JavaNode(sample1Node, SAMPLE2_FILE_NAME);\n sampleClass2Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE2_FILE_NAME);\n eo.maximize();\n eo.restore();\n EditorOperator.closeDiscardAll();\n }",
"private static void getWindowHandles() {\n\t\t\r\n\t}",
"@Override // com.android.server.wm.WindowContainer\n public boolean isOnTop() {\n return true;\n }",
"@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }",
"public void windowIconified(WindowEvent arg0) {\n //textArea1.append(\"Window is minimized\");\n\n }",
"@Override\n public boolean isActive(W window) {\n return true;\n }",
"private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }",
"private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }",
"private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }",
"public interface WindowFactory {\r\n /**\r\n * Creates and returns NativeWindow with desired\r\n * creation params\r\n *\r\n * @param p - initial window properties\r\n * @return created window\r\n */\r\n NativeWindow createWindow(CreationParams p);\r\n /**\r\n * Create NativeWindow instance connected to existing native resource\r\n * @param nativeWindowId - id of existing window\r\n * @return created NativeWindow instance\r\n */\r\n NativeWindow attachWindow(long nativeWindowId);\r\n /**\r\n * Returns NativeWindow instance if created by this instance of\r\n * WindowFactory, otherwise null\r\n *\r\n * @param id - HWND on Windows xwindow on X\r\n * @return NativeWindow or null if unknown\r\n */\r\n NativeWindow getWindowById(long id);\r\n /**\r\n * Returns NativeWindow instance of the top-level window\r\n * that contains a specified point and was\r\n * created by this instance of WindowFactory\r\n * @param p - Point to check\r\n * @return NativeWindow or null if the point is\r\n * not within a window created by this WindowFactory\r\n */\r\n NativeWindow getWindowFromPoint(Point p);\r\n\r\n /**\r\n * Returns whether native system supports the state for windows.\r\n * This method tells whether the UI concept of, say, maximization or iconification is supported.\r\n * It will always return false for \"compound\" states like Frame.ICONIFIED|Frame.MAXIMIZED_VERT.\r\n * In other words, the rule of thumb is that only queries with a single frame state\r\n * constant as an argument are meaningful.\r\n *\r\n * @param state - one of named frame state constants.\r\n * @return true is this frame state is supported by this Toolkit implementation, false otherwise.\r\n */\r\n boolean isWindowStateSupported(int state);\r\n\r\n /**\r\n * @see org.apache.harmony.awt.ComponentInternals\r\n */\r\n void setCaretPosition(int x, int y);\r\n\r\n /**\r\n * Request size of arbitrary native window\r\n * @param id - window ID\r\n * @return window size\r\n */\r\n Dimension getWindowSizeById(long id);\r\n}",
"boolean isAlwaysOnTop();",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void windowDeiconified(WindowEvent arg0) {\n //textArea1.append(\"Window is in normal state\");\n\n }",
"public interface FormWindow extends FormContainer {\n \n /**\n * Sets the related FormWindow.<br>\n * Related windows are somewhat similar to Owners, but\n * they don't change fg/bg-behaviour of the window-manager.\n * In Swing you can't assign an Owner without forcing its childs\n * to always stay in front of the owning window.\n * Furthermore, some windows don't support Owners, such as Frames.\n * The related window is just a link that will default to\n * the owner but can be set to any other window.\n *\n * @param relatedWindow the related FormWindow\n */\n public void setRelatedWindow(FormWindow relatedWindow);\n \n /**\n * Gets the related window.<br>\n * Falls back to getOwner() if not set and owner is a formwindow.\n *\n * @return the related window, the owner of null if not a FormWindow.\n */\n public FormWindow getRelatedWindow();\n \n \n /**\n * Sets the autoposition feature.<br>\n * Windows with this autoposition enabled will place themselves\n * in a nice manner on the screen when displayed initially.\n * \n * @param autoPosition true to enable autoposition, false if not (default) \n */\n public void setAutoPosition(boolean autoPosition);\n\n /**\n * Returns whether auto position is enabled.\n * \n * @return true if autoposition is enabled\n */\n public boolean isAutoPosition();\n\n \n /** \n * Adss a wrap listener which will be invoked\n * whenever the focus wraps in this window, i.e. from the logically\n * last field to the logically first.\n *\n * @param listener the form wrap listener\n * @see FormFocusTraversalPolicy\n */\n public void addFormWrapListener(FormWrapListener listener);\n \n /**\n * Removes a form wrap listener.\n * \n * @param listener the listener to remove\n */\n public void removeFormWrapListener(FormWrapListener listener);\n \n /** \n * Fires all form wrap listeners for this window.\n * \n * @param evt the form wrap event \n */\n public void fireFormWrappedFocus(FormWrapEvent evt);\n \n \n /**\n * Sets a version number for the current look and feel of this window.\n * Allows to track LookAndFeel changes and automatically update UI if changed.\n * @param version the n-th look and feel version\n */\n public void setUIVersion(int version);\n \n /**\n * Gets the look and feel version for this window.\n * \n * @return the look and feel version\n */\n public int getUIVersion();\n \n \n /**\n * Sets the tooltip display for this window.<br>\n * If a tooltip display is set the component's tooltips will\n * be displayed for each component receiving the keyboard focus\n * (instead of popping up on mouse hover).\n * \n * @param tooltipDisplay the tooltip display, null = none (default)\n */\n public void setTooltipDisplay(TooltipDisplay tooltipDisplay);\n \n /**\n * Gets the tooltip display for this window.\n * \n * @return the tooltip display, null = none (default)\n */\n public TooltipDisplay getTooltipDisplay();\n \n\n /**\n * Sets the behaviour of setFormValues() of FormContainers in this FormWindow. \n * \n * @param keepChanged true if setFormValues() should NOT override values\n * changed by the user. The default is false.\n */\n public void setKeepChangedValues(boolean keepChanged);\n \n /**\n * Gets the behaviour for setFormValues().\n * \n * @return true if keep changed values\n */\n public boolean getKeepChangedValues();\n\n \n /**\n * Aligns the location of this window in order not\n * to cover other windows (best as possible).\n */\n public void alignLocation();\n \n \n /**\n * Set a timer to close the window automatically.<br>\n * FormContainers use this feature to close after a certain\n * time of inactivity and unchanged data.<br>\n * Note: autoClosing must be set before displaying the window (just like setModal()).\n * \n * @param timeout the time in milliseconds, 0 = no autoclose\n */\n public void setAutoClose(long timeout);\n \n /**\n * Gets the autoclose timeout.\n * \n * @return the time in milliseconds, 0 = no autoclose\n */\n public long getAutoClose();\n \n /**\n * Returns whether this window is a candidate for autoClose-monitoring.\n * The method is invoked when displaying the window.\n *\n * @return true if window should be monitored by the autoclose-thread\n */\n public boolean isAutoCloseable();\n \n /**\n * Checks if window should be autoclosed.\n * \n * @return true if window can safely be closed due to autoclosing-rules.\n */\n public boolean checkAutoClose();\n \n \n /**\n * Sets the system-time of last setFormValues() or triggerValuesChanged() \n * for this window in milliseconds.\n * \n * @param millis the time of last values changed\n */\n public void setTimeOfLastValuesChanged(long millis);\n \n /**\n * Gets the system-time of last setFormValues() or triggerValuesChanged() \n * for this window in milliseconds.\n * \n * @return the time of last values changed\n */\n public long getTimeOfLastValuesChanged();\n \n}",
"@Override\n public void windowIconified(WindowEvent e)\n {\n\n }",
"private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tprotected void pack() {\r\n\r\n\t\tRectangle displayarea = shell.getDisplay().getPrimaryMonitor().getBounds();\r\n\t\tRectangle windowarea = shell.getBounds();\r\n\t\tshell.setBounds((displayarea.width - windowarea.width) / 2,\r\n\t\t\t\t(displayarea.height - windowarea.height) / 2,\r\n\t\t\t\twindowarea.width, windowarea.height);\r\n\t}",
"private void createTray(Display display) \n\t{\n Tray tray;\n TrayItem item;\n tray = display.getSystemTray();\n\n if (tray == null) {\n System.out.println(\"The system tray is not available\");\n } else {\n item = new TrayItem(tray, SWT.NONE);\n item.setToolTipText(\"Arper Express\");\n item.addListener(SWT.Show, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"show\");\n }\n });\n\n item.addListener(SWT.Hide, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"hide\");\n }\n });\n\n item.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"selection\");\n }\n });\n\n item.addListener(SWT.DefaultSelection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"default selection\");\n }\n });\n\n final Menu menu = new Menu(shell, SWT.POP_UP);\n\n MenuItem openMenuItem = new MenuItem(menu, SWT.PUSH);\n openMenuItem.setText(\"Mostrar\");\n openMenuItem.addListener(SWT.Selection, new Listener() {\n\n public void handleEvent(Event event) {\n shell.setVisible(true);\n shell.setMaximized(true);\n }\n });\n\n MenuItem exitMenuItem = new MenuItem(menu, SWT.PUSH);\n exitMenuItem.setText(\"Salir\");\n exitMenuItem.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.exit(0);\n }\n });\n\n item.addListener(SWT.MenuDetect, new Listener() {\n public void handleEvent(Event event) {\n menu.setVisible(true);\n }\n });\n\n // image = SWTResourceManager.getImage(MakeBreak.class, \"Backup-Green-Button-icon.png\");\n // image = SWTResourceManager.getImage(WpCommenter.class, \"images/mb4.png\");\n// ImageData imageData = new ImageData(\"lib/impresora.png\");\n ImageData imageData = new ImageData(Home.class.getClassLoader().getResourceAsStream(\"impresora.png\"));\n //ImageData imageData = new ImageData(getClass().getResourceAsStream(\"impresora.png\"));\n\n item.setImage(new Image(display,imageData));\n \n shell.addShellListener(new ShellListener() {\n \tpublic void shellActivated(ShellEvent event) {\n\n \t}\n\n \tpublic void shellClosed(ShellEvent event) {\n \t\tevent.doit = false; //!! for this code i looked long time\n shell.setVisible(false);\n }\n\n public void shellDeactivated(ShellEvent event) {\n \n }\n\n public void shellDeiconified(ShellEvent event) {\n\n }\n\n public void shellIconified(ShellEvent event) {\n //shell.setVisible(false);\n }\n });\n \n }\n }",
"@Override\n public void windowIconified(WindowEvent we) {\n }",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\r\n\t}",
"@Override\n public void setOnTop(boolean arg0)\n {\n \n }",
"void createWindow();",
"public void makeVisible()\n {\n wall.makeVisible();\n roof.makeVisible();\n window.makeVisible();\n }",
"@Override\n\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\n\t\t}",
"public void windowIconified(WindowEvent e) {\n\r\n\t}",
"@Override\r\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public boolean isOnTop()\n {\n return false;\n }",
"@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\n public void windowActivated(WindowEvent e)\n {\n\n }",
"public void windowIconified(WindowEvent event)\n {\n\n }",
"public View setSystemUiVisilityMode() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(5894);\n getWindow().addFlags(1024);\n return decorView;\n }",
"protected void showSystemMenu() {\n windowMenu.doClick(0);\n }",
"@Override\r\npublic void setOnScreen(boolean os) {\n}",
"void setAlwaysOnTop(boolean always);",
"@Override\n public void windowActivated(WindowEvent we) {\n }",
"public void usePreviewWindow(boolean yesno);",
"@Override\r\n\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\r\n\t\t}",
"public void windowIconified(WindowEvent e) {\n\t\t\r\n\t}",
"public void startWindow() {\r\n \r\n \tfirstBorderWindow = new BorderPane();\r\n \tScene scene = new Scene(firstBorderWindow,600,600);\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\t//MenuBar\r\n\t\tMenuBar mb = new MenuBar();\r\n\t\tMenu topMenu = new Menu(\"Impostazioni\");\r\n\t\t\r\n\t\tMenuItem regole = new MenuItem(\"Regole\");\r\n\t\tMenuItem esci = new MenuItem(\"Esci\");\r\n\t\ttopMenu.getItems().addAll(esci, regole);\r\n\t\tmb.getMenus().add(topMenu);\r\n\t\t\r\n\t\tEventHandler<ActionEvent> MEHandler = new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tString nome = ((MenuItem)event.getTarget()).getText();\r\n\t\t\t\tif (nome.equals(\"Esci\")) Platform.exit();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tesci.setOnAction(MEHandler);\r\n\t\t\r\n\t\tfirstBorderWindow.setTop(mb);\r\n\t\t// Show the scene\r\n\t\tstage.show();\r\n }",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\r\n public void windowActivated(WindowEvent e) {\r\n\r\n }",
"private void addApplicationSystemTray()\n {\n // Check if the OS has a system tray\n if (SystemTray.isSupported())\n {\n SystemTray tray = SystemTray.getSystemTray();\n \n // Create the popup menu of the system tray\n GenericPopupMenu.PopupMenuType popupMenuType = (OSUtil.IS_MAC ? GenericPopupMenu.PopupMenuType.AWT : GenericPopupMenu.PopupMenuType.SWING);\n this.popupMenu = new GenericPopupMenu(popupMenuType, \"\");\n GenericMenuItem.MenuItemType menuItemType = (OSUtil.IS_MAC ? GenericMenuItem.MenuItemType.AWT : GenericMenuItem.MenuItemType.SWING);\n GenericMenuItemSeparator.MenuItemSeparatorType menuItemSeparatorType = (OSUtil.IS_MAC ? GenericMenuItemSeparator.MenuItemSeparatorType.AWT : GenericMenuItemSeparator.MenuItemSeparatorType.SWING);\n this.popupMenu_ShowApp = new GenericMenuItem(menuItemType, \"Afficher l'application\");\n this.popupMenu_Blanc1 = new GenericMenuItemSeparator(menuItemSeparatorType);\n this.popupMenu_PauseStart = new GenericMenuItem(menuItemType, \"Pause\");\n this.popupMenu_Blanc2 = new GenericMenuItemSeparator(menuItemSeparatorType);\n this.popupMenu_Profiles = new GenericMenuItem(menuItemType, \"Profils\");\n this.popupMenu_Blanc3 = new GenericMenuItemSeparator(menuItemSeparatorType);\n this.popupMenu_Logs = new GenericMenuItem(menuItemType, \"Consulter les logs\");\n this.popupMenu_Parameters = new GenericMenuItem(menuItemType, \"Paramètres\");\n this.popupMenu_Blanc4 = new GenericMenuItemSeparator(menuItemSeparatorType);\n this.popupMenu_Quit = new GenericMenuItem(menuItemType, \"Quitter\");\n \n // Display the top item in bold only on Windows\n if (OSUtil.IS_WINDOWS)\n this.popupMenu_ShowApp.setFont(new Font(menuProfiles.getFont().getName(), Font.BOLD, menuProfiles.getFont().getSize()));\n \n this.popupMenu_Quit.addActionListener( new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n System.exit(0);\n }\n });\n this.popupMenu_ShowApp.addActionListener( new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n setState(FrmMain.NORMAL);\n setVisible(true);\n }\n });\n this.popupMenu_PauseStart.addActionListener( new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n if (popupMenu_PauseStart.getLabel().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Start\")))\n {\n popupMenu_PauseStart.setLabel(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause\"));\n }\n else if (popupMenu_PauseStart.getLabel().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause\")))\n {\n popupMenu_PauseStart.setLabel(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Start\"));\n }\n }\n });\n this.popupMenu_Parameters.addActionListener( new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n new FrmParameters(FrmMain.this, true).setVisible(true);\n }\n });\n this.popupMenu.addMenuItem(this.popupMenu_ShowApp);\n this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc1);\n this.popupMenu.addMenuItem(this.popupMenu_PauseStart);\n this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc2);\n this.popupMenu.addMenuItem(this.popupMenu_Profiles);\n this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc3);\n this.popupMenu.addMenuItem(this.popupMenu_Logs);\n this.popupMenu.addMenuItem(this.popupMenu_Parameters);\n this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc4);\n this.popupMenu.addMenuItem(this.popupMenu_Quit);\n \n // Create the system tray\n GenericTrayIcon.TrayIconType trayIconType = (OSUtil.IS_MAC ? GenericTrayIcon.TrayIconType.DEFAULT : GenericTrayIcon.TrayIconType.CUSTOM);\n systemTray = new GenericTrayIcon(trayIconType,\n ResourcesUtil.SYSTEM_TRAY_IMAGE_ICON.getImage(),\n FrmMainController.APP_NAME,\n this.popupMenu.getCurrentPopupMenu());\n \n //To catch events on the popup menu\n systemTray.setImageAutoSize(true);\n systemTray.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n // TODO: manage double-click\n }\n });\n \n try\n {\n if (OSUtil.IS_MAC)\n tray.add((TrayIcon)systemTray.getCurrentTrayIcon());\n else\n tray.add((JTrayIcon)systemTray.getCurrentTrayIcon());\n }\n catch (Exception e)\n { }\n }\n else // If there is no system tray, we don't do anything\n { }\n }",
"public static void showSystemUI(Window window) {\n\n int visibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;\n\n window.getDecorView().setSystemUiVisibility(visibility);\n }",
"@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}"
] | [
"0.6553603",
"0.6460027",
"0.64498067",
"0.63615537",
"0.6327623",
"0.6322341",
"0.6261287",
"0.6234709",
"0.60787183",
"0.6047585",
"0.6010701",
"0.60097796",
"0.6001159",
"0.6001159",
"0.6001159",
"0.599604",
"0.5986556",
"0.5986285",
"0.5986285",
"0.5986285",
"0.5986285",
"0.5986285",
"0.597341",
"0.5973271",
"0.59523773",
"0.59467393",
"0.5941727",
"0.5941727",
"0.5941727",
"0.5941727",
"0.5941727",
"0.5924243",
"0.5923545",
"0.59112203",
"0.58996665",
"0.58932215",
"0.5892238",
"0.586818",
"0.58642036",
"0.5863585",
"0.5863585",
"0.58634824",
"0.58605695",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.5849408",
"0.58466274",
"0.58466274",
"0.584483",
"0.584483",
"0.58421385",
"0.58378214",
"0.58378214",
"0.58378214",
"0.58378214",
"0.58378214",
"0.5837079",
"0.58347815",
"0.5825122",
"0.5823966",
"0.581749",
"0.58167124",
"0.58114976",
"0.5811077",
"0.58077323",
"0.5807002",
"0.5799781",
"0.5794814",
"0.5794814",
"0.57925373",
"0.57925373",
"0.57925373",
"0.57925373",
"0.57925373",
"0.57925373",
"0.57925373",
"0.57925373",
"0.57925373",
"0.57924676",
"0.5785807",
"0.5780661",
"0.57795197",
"0.57795197"
] | 0.0 | -1 |
return an Intent that creates a new MultiWindow | @Override
public Intent getPersistentNotificationIntent(int id) {
return StandOutWindow.getShowIntent(this, getClass(), getUniqueId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Intent getOpenInOtherWindowIntent();",
"void startNewActivity(Intent intent);",
"private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }",
"NativeWindow createWindow(CreationParams p);",
"public ICurrentPage openNewWindow(String url);",
"@Test\n @SmallTest\n @Feature(\"MultiWindow\")\n public void testTabbedActivityForIntentWithExtraWindowId() {\n ChromeTabbedActivity activity1 = mActivityTestRule.getActivity();\n createSecondChromeTabbedActivity(activity1);\n\n Intent intent = activity1.getIntent();\n intent.putExtra(IntentHandler.EXTRA_WINDOW_ID, 2);\n\n Assert.assertEquals(\n \"ChromeTabbedActivity2 should be used when EXTRA_WINDOW_ID is set to 2.\",\n ChromeTabbedActivity2.class,\n MultiWindowUtils.getInstance().getTabbedActivityForIntent(intent, activity1));\n }",
"protected abstract Intent createOne();",
"public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }",
"public void changeWindowTo(Class activity){\n Intent guestActivity = new Intent(this,activity);\n startActivity(guestActivity);\n }",
"private Intent createIntent() {\n Intent intent = new Intent(this, GameOverActivity.class);\n intent.putExtra(POINTS, presenter.getPoints() + points);\n intent.putExtra(PASS_USER, user);\n intent.putExtra(CORRECT, correct);\n intent.putExtra(INCORRECT, incorrect);\n intent.putExtra(TIME, time);\n intent.putExtra(EVIL, evil);\n intent.putExtra(FRIENDLY, friendly);\n intent.putExtra(\"from\", \"bonus\");\n return intent;\n }",
"public void startMultiPlayer() {\r\n\t\tmultiplayer.setEnabled(true);\r\n\t\tIntent intent = new Intent(Main.this, DrawingActivityMulti.class);\r\n\t\tstartActivityForResult(intent, DrawingActivityMulti.APPLICATION_ID);\r\n\t}",
"@Override\n public void onClick(View view) {\n Intent workoutIntent = new Intent(MainActivity.this, Workout_Playlist.class);\n // Start the new activity\n startActivity(workoutIntent);\n }",
"void changeWindowTo(Class activity,TypesManager.obsType _type){\n Intent guestActivity = new Intent(this,activity);\n guestActivity.putExtra(\"obsType\",_type.getValue());\n startActivity(guestActivity);\n }",
"public void newGame(View v){\n\n startActivity(new Intent(getApplicationContext(),MainActivity.class)); // same as startActivity(new Intent (this, Main2Activity.class));\n\n }",
"Intent createNewIntent(Class cls);",
"public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}",
"private void moveToMainActivity(){\r\n Intent goToMainActivity = new Intent(workoutActivity.this, BodyGroups.class);\r\n startActivity(goToMainActivity);;\r\n }",
"@Override\r\n public void onNewIntent(Intent intent){\r\n \t\r\n \tthis.activateExamBoard(intent);\r\n }",
"@Override\r\npublic void onClick(View arg0) {\n\tswitch(arg0.getId())\r\n\t{\r\n\t\tcase R.id.bt_other:\r\n\t\t/*Intent i=new Intent();\r\n\t\t\tstartActivity(i);\r\n\t\t\tsetContentView(R.layout.other);*/\r\n\t\t\tIntent Intent=new Intent(MainPage.this,DataSend.class);\r\n\t\t\tIntent.putExtra(\"KEY_LIST\", device);\r\n\t\t\tIntent.putExtra(\"KEY_LISTNUMBER\", count);\r\n\t\t\tstartActivity(Intent);\r\n\t\t\t/*Intent Intent1=new Intent(MainPage.this,AdminPanel.class);\r\n\t\t\tIntent1.putExtra(\"KEY_LIST\", device);\r\n\t\t\tstartActivity(Intent1);*/\r\n \t//setContentView(R.layout.adminhome);\r\n\t\tbreak;\r\n\t}\r\n}",
"public void goToCrearMomentoActivity(int i, Momento momento){\n Intent intent = new Intent(getApplicationContext(),CrearMomentoActivity.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"opcion\",i);\n intent.putExtra(\"opcion\",i);\n intent.putExtra(\"momento\",momento);\n startActivity(intent);\n }",
"public void goToNewThread(View view){\n Intent intent = new Intent(this, newThreadActivity.class);\n startActivity(intent);\n }",
"Bundle getOpenInOtherWindowActivityOptions();",
"Class<? extends Activity> getOpenInOtherWindowActivity();",
"private void addItemScreen() {\n \tIntent intent = new Intent(this, ItemEditor.class);\n \tstartActivity(intent);\n }",
"void ChangeActivity(){\n\n Intent intent = new Intent(this, MainActivity.class);\n\n intent.putExtra(NUMBER, number_of_players);\n\n startActivity(intent);\n finish();\n\n }",
"void createWindow();",
"public void launchMaster()\n {\n \tIntent mIntent = new Intent(MainActivity.this, MasterButtonActivity.class);\n \tstartActivityForResult(mIntent, NEW_MASTER_BUTTON_ACTIVITY);\n }",
"public abstract void newWindow(ReFrame newFrame);",
"public static Intent newIntent(Context packageContext, WallpaperInfo wallpaperInfo) {\n Intent intent = new Intent(packageContext, PreviewActivity.class);\n intent.putExtra(EXTRA_WALLPAPER_INFO, wallpaperInfo);\n return intent;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.new_wo) {\n\t\t\tIntent i = new Intent(this, MainActivity.class);\n\t\t\tstartActivity(i);\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent =new Intent();\r\n\t\t\t\tintent.setAction(\"tijiaodingdan\");\r\n\t\t\t\tintent.putExtra(\"yisheng\", name);\r\n\t\t\t\tintent.putExtra(\"keshi\", keshitxt);\r\n\t\t\t\tintent.putExtra(\"yishengtype\", yisheng_type);\r\n//\t\t\t\tintent.putExtra(\"time\", shijian);\r\n\t\t\t\tintent.putExtra(\"free\", free);\r\n\t\t\t\tintent.putExtra(\"data\", data);\r\n\t\t\t\tintent.putExtra(\"postion\", postion);\r\n\t\t\t\t startActivity(intent);\r\n\t\t\t\t popuWindow.dismiss();\r\n\t\t\t\t WindowManager.LayoutParams params=context.getWindow().getAttributes(); \r\n\t\t\t params.alpha=1f; \r\n\t\t\t context.getWindow().setAttributes(params); \r\n\t\t\t}",
"private void openManagementWindow() {\n\n\t\tWindowManager.getInstance().openManagementWindow();\n\t\t// Close the current window\n\t\tthis.close();\n\t}",
"private void startOneListAndItemsActivity(int whichListPosition){\n ArrayList<String> listToExpand = new ArrayList<String>();\n listToExpand = myList.get(whichListPosition);\n Intent intent = new Intent(this, OneListAndItems.class);\n Bundle bundle = new Bundle();\n bundle.putStringArrayList(\"theList\", listToExpand);\n bundle.putInt(\"theListPosition\", whichListPosition);\n bundle.putInt(\"theItemPosition\", 0);\n intent.putExtras(bundle);\n startActivityForResult(intent, ONELISTRC);\n }",
"private void openMainActivity(int pos) {\n Intent i = new Intent(Launcher.this, MainActivity.class);\n i.putExtra(\"division\", pos);\n startActivity(i);\n }",
"public void btn_new_photo_On_click(View v) {\n Intent i = new Intent(MainActivity.this, NewPhoto.class);\n startActivity(i);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent intent = new Intent(ProfileActivity.this, InviteRoom.class);\n intent.putExtra(\"USERNAME\", userName);\n intent.putExtra(\"MULTI\", \"1\");\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n dialogInterface.dismiss();\n\n }",
"private void startPopupSocialWindowActivity(int selectedFeedId) {\r\n\r\n activity.finish();\r\n Intent intent = new Intent(context,\r\n PopupSocialWindow.class);\r\n intent.putExtra(Constants.FEED_ID, selectedFeedId);\r\n intent.putExtra(InstantMessageFragment.SHOW_KEYBOARD,\r\n true);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\r\n activity.startActivity(intent);\r\n }",
"private void startChildActivity(Intent intent) {\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tString id = intent.getComponent().getClassName();\n\t\tWindow window = getLocalActivityManager().startActivity(id, intent);\n\t\tsetContentView(window.getDecorView());\n\t}",
"public abstract void start(String[] args, Window window);",
"@Override\n public void onNewIntent(Intent intent) {\n }",
"public void onClickNewActivity3 (View view) {\n Intent intent = new Intent(this, PostRecipeActivity.class);\n //intent.putExtra(HTTP_PARAM, mCamelView.getText().toString());\n startActivity(intent);\n }",
"void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }",
"public void openActivity3() {\n //I have an intent, which is called openCubicActivity\n //Make a new Intent that goes from this file to the cubic class file\n Intent openCubicActivity = new Intent(this, Cubic.class);\n startActivity(openCubicActivity);\n }",
"@Override\n protected void onNewIntent(Intent intent) {\n }",
"public void setNewMultiPlayerGameScreen() {\n clearAllContent();\n add(SelectGameScreen.create(controller));\n pack();\n }",
"public void OpenWorkout(String workName){\n Intent openWorkout = new Intent(work_workoutList.this, work_exerciseList.class);\n openWorkout.putExtra(\"wName\", workName);\n startActivity(openWorkout);\n }",
"@Override\n public void startNewActivity(Bundle bundle, Class newClass) {\n if (newClass == DashboardActivity.class) {\n startActivity(DashboardActivity.getIntent(mContext));\n finish();\n }\n\n }",
"private Intent buildIntent(String name) {\n Intent mIntent = new Intent(mContext, PreperationActivity.class);\n mIntent.putExtra(DashboardActivity.ACTIONBAR_TITLE, name);\n mIntent.putExtra(DashboardActivity.ACTIONBAR_ICON,\n DashboardActivity.iconRecipes);\n return mIntent;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tIntent i;\n\t\tswitch (id){\n\t\tcase 1:\n\t\t\ti=new Intent(this, CreateGroup.class);\n\t\t\tstartActivity(i);\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"private void listCreator() {\n String[] title = getResources().getStringArray(R.array.Home);\n String[] description = getResources().getStringArray(R.array.Description);\n\n Adapter adapter = new Adapter(this, title, description);\n lists.setAdapter(adapter);\n\n lists.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //switch case implemented to know which item was clicked\n switch (position) {\n case 0: {//if first section is selected, open new activity -->WeeklyView\n Intent intent = new Intent(MainActivity.this, WeeklyView.class);\n startActivity(intent);\n break;\n }\n case 1: {//if second option is selected, open new activity displaying monthly calendar\n Intent intent = new Intent(MainActivity.this, MonthlyActivity.class);\n startActivity(intent);\n break;\n }\n case 2: {//if third option is selected, it will open to umkc bookstore in new browser\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.umkcbookstore.com/\"));\n startActivity(browserIntent);\n break;\n }\n case 3: {//if fourth option is selected it will open the outlook login in their browser\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://login.microsoftonline.com/\"));\n startActivity(browserIntent);\n break;\n }\n case 4: {//if fifth option is selected, open new activity showing educational resources\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://pitt.libguides.com/openeducation/biglist\"));\n startActivity(browserIntent);\n break;\n }\n case 5: {//if sixth option chosen, open new activity showing youtube playlist. youtube api used here\n Intent wellnessIntent = new Intent(MainActivity.this, YoutubeActivity.class);\n startActivity(wellnessIntent);\n break;\n }\n case 6: {//if seventh option is chosen, open new activity, grid view of options for 2 games, facebook, hulu, netflix, youtube.\n Intent entertainIntent = new Intent(MainActivity.this, EntertainActivity.class);\n startActivity(entertainIntent);\n break;\n }\n default:\n break;\n }\n }\n });\n }",
"public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }",
"public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}",
"private void startNewAcitivity(Intent intent, ActivityOptionsCompat options) {\n ActivityCompat.startActivity(this, intent, options.toBundle());\n }",
"void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }",
"public static Intent getIntent(){\n Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n\tpickIntent.setType(\"image/*\");\n\tpickIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n\tpickIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);\t\n\treturn pickIntent;\n }",
"public boolean openCreateGoal(){\n Intent intent = new Intent(this, GoalNewActivity.class);\n startActivity(intent);\n return true;\n }",
"private Intent setUpBackIntent() {\n Intent intent = new Intent();\n\n intent.putExtra(Nanuda.EXTRA_GROUP, group);\n intent.putParcelableArrayListExtra(Nanuda.EXTRA_EXPENSES, expenses);\n\n return intent;\n }",
"@Override\n public boolean onCreateWindow(WebView view, boolean isDialog,\n boolean isUserGesture, Message resultMsg) {\n\n WebView.HitTestResult result = view.getHitTestResult();\n String url = result.getExtra();\n\n if(url != null && url.indexOf(\"about:blank\")>-1){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n return true;\n }else{\n WebView newWebView = new WebView(MainActivity.this);\n view.addView(newWebView);\n WebView.WebViewTransport transport = (WebView.WebViewTransport) resultMsg.obj;\n\n transport.setWebView(newWebView);\n resultMsg.sendToTarget();\n return true;\n }\n\n }",
"private Intent buildResultIntent() {\n //create result intent and put extras\n Intent resultIntent = new Intent();\n resultIntent.putExtra(EXTRA_PAGER_POSITION, viewPagerPosition);\n resultIntent.putStringArrayListExtra(EXTRA_SELECTED_IDS, new ArrayList<>(selectedIdsMap.keySet()));\n resultIntent.putIntegerArrayListExtra(EXTRA_SELECTED_POSITIONS, new ArrayList<>(selectedIdsMap.values()));\n return resultIntent;\n }",
"public void openActivity2() {\n //I have an intent, which is called openQuadraticActivity\n //Make a new Intent that goes from this file to the quadratic class file\n Intent openQuadraticActivity = new Intent(this, Quadratic.class);\n startActivity(openQuadraticActivity);\n }",
"@Override\n public void onClick(View view) {\n Intent sleepIntent = new Intent(MainActivity.this, Sleep_Playlist.class);\n // Start the new activity\n startActivity(sleepIntent);\n }",
"public static Intent build(Context c, Family family)\n {\n Intent intent = new Intent(c, SurveyActivity.class);\n intent.putExtra(FAMILY_ID_KEY, family.getId());\n\n return intent;\n }",
"public void createNewWindow(String winType) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new RuntimeException(\"createNewWindow: called on non-event thread\");\n }\n\n final Parameters params = (Parameters)parameters.clone();\n if (!windowName.equals(\"\")) params.setWindowName(windowName);\n if (!winType.equals(\"\")) params.setWindowName(winType);\n\n manager.showDisplayUI(params);\n }",
"public static Intent fromMainActivityToNewPubActivity(final MainActivity mainActivity) {\n\n Intent i = new Intent(mainActivity, NewPubActivity.class);\n mainActivity.startActivityForResult(i, NEW_PUB_ACTIVITY_REQUEST_CODE);\n\n return i;\n }",
"public void onNewIntent(Intent intent) {\n }",
"@Override\n public void onClick(View view) {\n Intent focusIntent = new Intent(MainActivity.this, Focus_Playlist.class);\n // Start the new activity\n startActivity(focusIntent);\n }",
"public void createBtn(View view){\n Intent i = new Intent(getApplicationContext(), Create.class);\n // Removes animation\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }",
"public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }",
"public void onClick(View v) {\n Intent newActivity = new Intent(Detail_1.this,TabHostMENU.class);\r\n newActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(newActivity);\r\n }",
"private void buildIntent() {\n ReportLogic.report(this, \"POST\", mInfo.c_rpt, 0, null);\n Intent intent = new Intent();\n Bundle bundle = new Bundle();\n bundle.putString(PKG_NAME, mInfo.href);\n bundle.putString(APP_NAME, mInfo.name);\n intent.putExtra(DetailActivity.DETAIL, bundle);\n intent.setClass(this, DetailActivity.class);\n startActivity(intent);\n }",
"@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) \r\n\t\t\t{\n\t\t\t\tif(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cibernauta\"))\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_cibernauta(canalL.getValue()));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Vista_Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_vista_usuario(canalL.getValue(), contratacion, idModalidad));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contratacion || idModalidad.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\t\tsubWindow.setContent(new Contratar_cliente(canalL.getValue()));\r\n\t\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdoNavigate(Crear_incidencia.VIEW_NAME + \"/\" + \"contratacion\" +\";\" +canalL.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onClick(View arg0)\n {\n\n ExtendedNewController extendedNewController = new ExtendedNewController();\n startNewControllerActivity(extendedNewController, 0, 0);\n }",
"public String switchToNewWindow(WebDriver driver)\n\t{\n\t\t Set<String> ids = driver.getWindowHandles();\n\t\t Iterator<String> it = ids.iterator();\n\t\t \n\t\t String pid = it.next();\n\t\t String cid = it.next();\n\t\t \n\t\t driver.switchTo().window(cid);\n\t\t return pid;\n\t}",
"public void openCreateAccount(){\n Intent intent = new Intent(this, createAccountActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }",
"public void openActivity3(){\n Intent intent = new Intent(this, Favoris.class);\n startActivity(intent);\n }",
"public window get(int i) {\n return getWindow(i);\n }",
"@Listen(\"onClick=#createEntryButton\")\n public void createEntryButtonOnClick(){\n Window window = (Window) Executions.createComponents(\"entry.zul\", phonePageWindow, new HashMap());\n window.doModal();\n }",
"public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}",
"@Override\n public void onNewIntent(Activity activity, Intent data) {\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), HubsActivity.class);\n intent.setData(DatabaseContract.HubEntry.CONTENT_URI);\n startActivity(intent);\n mHubListPopupWindow.dismiss();\n }",
"@Override\n public void run() {\n Intent i = new Intent(ActivityTestStart.this, ActivityTestList.class);\n startActivity(i);\n finish();\n }",
"void openCustomTab(String url) {\n CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();\n // set toolbar color and/or setting custom actions before invoking build()\n builder.setToolbarColor(ContextCompat.getColor(this, R.color.colorPrimary));\n builder.addDefaultShareMenuItem();\n // Once ready, call CustomTabsIntent.Builder.build() to create a CustomTabsIntent\n CustomTabsIntent customTabsIntent = builder.build();\n // and launch the desired Url with CustomTabsIntent.launchUrl()\n customTabsIntent.launchUrl(this, Uri.parse(url));\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(MainActivity.this,createPoll.class);\n startActivity(i);\n\n }",
"protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}",
"public void onClick(DialogInterface dialog, int i) {\n\n Intent intent = new Intent(MainActivity.this, PictureActivity.class);\n intent.putExtra(\"num\",i);\n MainActivity.this.startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(UserDetails.this, ChatWindow.class);\n intent.putExtra(\"user\", user); //pass the user to the ChatWindow activity\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(TeamActivity.this, TeamActivity.class); //If the team number is pressed start a new TeamActivity with information about the selected team\n intent.putExtra(\"Team#\", TeamNumber); //Send the team number into the new activity in order to know which team the new activity should be about\n TeamActivity.this.startActivity(intent); //Start the new activity\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tStandOutWindow.closeAll(this, SimpleWindow.class);\n\t\tStandOutWindow.closeAll(this, MultiWindow.class);\n\t\tStandOutWindow.closeAll(this, WidgetsWindow.class);\n\n\t\t// show a MultiWindow, SimpleWindow\n\n\t\tStandOutWindow\n\t\t\t\t.show(this, SimpleWindow.class, StandOutWindow.DEFAULT_ID);\n\t\tStandOutWindow.show(this, MultiWindow.class, StandOutWindow.DEFAULT_ID);\n\t\tStandOutWindow.show(this, WidgetsWindow.class,\n\t\t\t\tStandOutWindow.DEFAULT_ID);\n\n\t\t// show a MostBasicWindow. It is commented out because it does not\n\t\t// support closing.\n\n\t\t/*\n\t\t * StandOutWindow.show(this, StandOutMostBasicWindow.class,\n\t\t * StandOutWindow.DEFAULT_ID);\n\t\t */\n\n\t\tfinish();\n\t}",
"private void openNewActivity(Class<RegisterActivity> class_argument) {\r\n Intent intent = new Intent(this, class_argument);\r\n startActivity(intent);\r\n }",
"private void launchSingle(String name) {\n Intent sing = new Intent(homeActivity.this, cardsMenu.class);\n Bundle b = new Bundle();\n b.putString(\"key\",\"single\"); //pass along that this will be a single player multigame\n b.putString(\"name\",name); //pass the player's name\n //b.putString(\"State\", State); //pass along the game type\n sing.putExtras(b);\n startActivity(sing);\n }",
"public interface MultiWindowModeStateDispatcher {\n /**\n * An observer to be notified when multi-window mode changes.\n */\n interface MultiWindowModeObserver {\n /**\n * @param isInMultiWindowMode Whether the activity backing this state dispatcher is\n * currently in multi-window mode.\n */\n void onMultiWindowModeChanged(boolean isInMultiWindowMode);\n }\n\n /**\n * Add an observer to the list.\n * @return True if the observer list changed as a result of the call.\n */\n boolean addObserver(MultiWindowModeObserver observer);\n\n /**\n * Remove an observer from the list if it is in the list.\n * @return True if an element was removed as a result of this call.\n */\n boolean removeObserver(MultiWindowModeObserver observer);\n\n /**\n * @return Whether the activity associated with this state dispatcher is currently in\n * multi-window mode.\n */\n boolean isInMultiWindowMode();\n\n /**\n * @return Whether the system currently supports multiple displays.\n */\n boolean isInMultiDisplayMode();\n\n /**\n * @return Whether more than one instance of Chrome activity is running.\n */\n boolean isMultiInstanceRunning();\n\n /**\n * @return Whether a Chrome task is running foreground in the adjacent window.\n */\n boolean isChromeRunningInAdjacentWindow();\n\n /**\n * See {@link MultiWindowUtils#isOpenInOtherWindowSupported(Activity)}.\n * @return Whether open in other window is supported for the activity associated with this\n * state dispatcher.\n */\n boolean isOpenInOtherWindowSupported();\n\n /**\n * See {@link MultiWindowUtils#canEnterMultiWindowMode(Activity)}.\n * @return Whether Chrome can get itself into multi-window mode.\n */\n boolean canEnterMultiWindowMode();\n\n /**\n * Returns the activity to use when handling \"open in other window\" or \"move to other window\".\n * Returns null if the current activity doesn't support opening/moving tabs to another activity.\n */\n Class<? extends Activity> getOpenInOtherWindowActivity();\n\n /**\n * Generates an intent to use when handling \"open in other window\" or \"move to other\n * window\" on a multi-instance capable device.\n * @return An intent with the proper class, flags, and extras for opening a tab or link in\n * the other window.\n */\n Intent getOpenInOtherWindowIntent();\n\n /**\n * Generates the activity options used when handling \"open in other window\" or \"move to other\n * window\" on a multi-instance capable device.\n *\n * @return The ActivityOptions needed to open the content in another display.\n */\n Bundle getOpenInOtherWindowActivityOptions();\n\n /**\n * @return The number of Chrome instances that can switch to or launch.\n */\n int getInstanceCount();\n}",
"private static Intent newFacebookIntent(PackageManager pm, String url) {\n Uri uri = Uri.parse(url);\n try {\n ApplicationInfo applicationInfo = pm.getApplicationInfo(\"com.facebook.katana\", 0);\n if (applicationInfo.enabled) {\n uri = Uri.parse(\"fb://facewebmodal/f?href=\" + url);\n }\n } catch (PackageManager.NameNotFoundException ignored) {\n }\n return new Intent(Intent.ACTION_VIEW, uri);\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\t\r\n\t\tif(v.getId() == R.id.newsopreturn){\r\n\t\t\tfinish();\r\n\t\t}else if(v.getId() == R.id.newsxuanxiang){\r\n\t\t\t//setxuanxiangPopupWindow();\r\n\t\t}else if(v.getId() == R.id.historymessage){\r\n\t\t\tIntent intent = new Intent(NewsOperation.this,NewsHistorylist.class);\r\n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\t\tNewsOperation.this.startActivity(intent);\r\n\t\t}else if(v.getId() == R.id.messageset){\r\n\t\t\tsetPopupWindow();\r\n\t\t}else if(v.getId() == R.id.receivecancel){\r\n\t\t\tpopupShareWindow.dismiss();\r\n\t\t}\r\n\t}",
"NativeWindow attachWindow(long nativeWindowId);",
"private void startMultiPlayerGame() {\n Intent intent = Games.RealTimeMultiplayer.getSelectOpponentsIntent(getApiClient(), 1, 1);\n startActivityForResult(intent, RC_SELECT_PLAYERS);\n }",
"@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), sh1.class);\n startActivity(i);\n }",
"public void open() {\n\t\tthis.createContents();\n\n\t\tWindowBuilder delegate = this.getDelegate();\n\t\tdelegate.setTitle(this.title);\n\t\tdelegate.setContents(this);\n\t\tdelegate.setIcon(this.iconImage);\n\t\tdelegate.setMinHeight(this.minHeight);\n\t\tdelegate.setMinWidth(this.minWidth);\n\t\tdelegate.open();\n\t}",
"public static void main(String[] args) {\n\n int numButtons = Integer.parseInt(args[0]);\n String[] data = new String[numButtons*2];\n for (int i=1; i<(args.length); i++) {\n data[i-1] = args[i];\n }\n\n Window f = new Window(numButtons, data);\n\n }",
"public void myGroupBtn(View view) {\n Intent i = new Intent(getApplicationContext(), MyGroup.class);\n // Removes animation\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }",
"public void onClick2(View v) {\n\n\n PackageManager pm = getPackageManager();\n Intent intent = pm.getLaunchIntentForPackage(\"com.lee.test\");\n\n if (intent != null) {\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }else {\n Toast.makeText(MainActivity.this,\"空intent\",Toast.LENGTH_SHORT).show();\n }\n\n\n }"
] | [
"0.6488416",
"0.5927438",
"0.5839194",
"0.5707757",
"0.5672983",
"0.56087214",
"0.55392194",
"0.55360365",
"0.55054283",
"0.55049187",
"0.5495808",
"0.54249614",
"0.53643537",
"0.5363962",
"0.5350837",
"0.53354806",
"0.53307706",
"0.5320757",
"0.5318749",
"0.5308343",
"0.52838844",
"0.5263546",
"0.526273",
"0.52625453",
"0.52591944",
"0.5235665",
"0.5234897",
"0.5219288",
"0.5212571",
"0.52044827",
"0.5199781",
"0.5195066",
"0.518654",
"0.51836866",
"0.51827353",
"0.5181661",
"0.51791865",
"0.51745075",
"0.5165772",
"0.51647025",
"0.5151765",
"0.5150362",
"0.5150118",
"0.5125893",
"0.5117765",
"0.5116288",
"0.5113488",
"0.511288",
"0.5109217",
"0.5104727",
"0.5102878",
"0.50937426",
"0.5074459",
"0.5073699",
"0.50733",
"0.50645304",
"0.5058336",
"0.5053527",
"0.50472283",
"0.5039904",
"0.50399005",
"0.5036537",
"0.50362825",
"0.5026527",
"0.500209",
"0.49990973",
"0.4996655",
"0.49897504",
"0.49894235",
"0.4988901",
"0.49783397",
"0.4976559",
"0.49746072",
"0.49722227",
"0.49644178",
"0.49562252",
"0.49553627",
"0.49527895",
"0.4950217",
"0.49500856",
"0.49417913",
"0.49415165",
"0.49400368",
"0.49355483",
"0.4933734",
"0.49306136",
"0.4927391",
"0.49271277",
"0.49245226",
"0.49244577",
"0.49178907",
"0.49175838",
"0.49164298",
"0.49160105",
"0.49084496",
"0.49031866",
"0.49014744",
"0.49003333",
"0.48964047",
"0.48963565",
"0.48922402"
] | 0.0 | -1 |
return an Intent that restores the MultiWindow | @Override
public Intent getHiddenNotificationIntent(int id) {
return StandOutWindow.getShowIntent(this, getClass(), id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Intent getOpenInOtherWindowIntent();",
"private Intent setUpBackIntent() {\n Intent intent = new Intent();\n\n intent.putExtra(Nanuda.EXTRA_GROUP, group);\n intent.putParcelableArrayListExtra(Nanuda.EXTRA_EXPENSES, expenses);\n\n return intent;\n }",
"private void refreshScreen(){\n Intent thisIntent = getIntent();\n finish();\n startActivity(thisIntent);\n }",
"private void mystartActivity(Class c){\n Intent intent = new Intent(this,c);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }",
"@Override\n public void onPositive(MaterialDialog dialog) {\n getWindow().clearFlags(\n WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n finish();\n }",
"public void changeWindowTo(Class activity){\n Intent guestActivity = new Intent(this,activity);\n startActivity(guestActivity);\n }",
"public void onClick(DialogInterface dialog, int which) {\n Intent i = new Intent(settingsScr.this,accountScr.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n }",
"private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }",
"@Override\n\tpublic void finish() {\n\t\t\n\t\tIntent i=new Intent();\n\t\tBundle b=new Bundle();\n\t\tb.putString(\"Button\", ReturnString);\n\t\ti.putExtras(b);\n\t\t\n\t\tsetResult(RESULT_OK, i);\n\t\tsuper.finish();\n\t}",
"public void retry(){\n _activity.finish();\n Intent i = _activity.getBaseContext().getPackageManager()\n .getLaunchIntentForPackage(_activity.getBaseContext().getPackageName());\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n _activity.startActivity(i);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent intent = new Intent(ProfileActivity.this, InviteRoom.class);\n intent.putExtra(\"USERNAME\", userName);\n intent.putExtra(\"MULTI\", \"1\");\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n dialogInterface.dismiss();\n\n }",
"public void onClick(DialogInterface dialog, int which) {\n Intent newIntent = new Intent(Settingsprofile.this, LoginActivity.class);\n finishAffinity();\n startActivity(newIntent);\n }",
"public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }",
"protected void onActivityResult(int requestCode, int resultCode, Intent data){\n finish();\n startActivity(getIntent());\n }",
"void startNewActivity(Intent intent);",
"@Override\n public void run() {\n Intent i = new Intent(First.this, Second.class);\n startActivity(i);\n\n // close this activity\n finish();\n }",
"Bundle getOpenInOtherWindowActivityOptions();",
"protected Intent getIntentForChangePresenter() {\n \t// Destino: Presentador H\n \tIntent intent = new Intent(PresentadorV_main.this,\n \t\t\tPresentadorH_main.class);\n\t\tintent.setAction(INTENT_ACTION);\t\n\t\t// Guarda en el intent el contenido de la searchview\n\t\t// ojo: es tipo CharSequence\t\t\n\t\tintent.putExtra(INTENT_CONTENT_WISEARCH, wi_search.getQuery());\n \treturn intent;\n }",
"@Override\r\n public void onClick(View v) {\n switch (v.getId()) {\r\n case R.id.ok:\r\n dismiss();\r\n // c.finishActivity(1);\r\n Intent i = new Intent(SMS1.this, BookingSelection.class);\r\n\r\n //Intent i = new Intent(Bookingconfirmation1.this,BookingSelection.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);\r\n\r\n\r\n break;\r\n\r\n }\r\n\r\n }",
"@Override\n public void displayRatificationActivity() {\n Intent i = new Intent(MainActivity.this, LoginActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n startActivityForResult(i, RC_RATIFY_CONSTITUTION);\n }",
"@Override\n\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\tIntent intent = getIntent();\n\t \tfinish();\n\t \tstartActivity(intent);\t\n\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tIntent intent = getIntent();\n\t\t \tfinish();\n\t\t \tstartActivity(intent);\t\n\t\t\t}",
"@Override\n\tpublic Intent getSupportParentActivityIntent() {\n\t\tfinish();\n\t\treturn super.getSupportParentActivityIntent();\n\t}",
"Class<? extends Activity> getOpenInOtherWindowActivity();",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent myIntent = new Intent();\n myIntent = new Intent(picking.this, pickingquery.class);\n startActivity(myIntent);\n picking.this.finish();\n\n }",
"@Override\n\tpublic Intent getSupportParentActivityIntent() {\n\t\t// TODO Auto-generated method stub\n\t\tfinish();\n\t\treturn super.getSupportParentActivityIntent();\n\t}",
"@Override\n public void onClick(View v) {\n startActivity(finishIntent);\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent =new Intent();\r\n\t\t\t\tintent.setAction(\"tijiaodingdan\");\r\n\t\t\t\tintent.putExtra(\"yisheng\", name);\r\n\t\t\t\tintent.putExtra(\"keshi\", keshitxt);\r\n\t\t\t\tintent.putExtra(\"yishengtype\", yisheng_type);\r\n//\t\t\t\tintent.putExtra(\"time\", shijian);\r\n\t\t\t\tintent.putExtra(\"free\", free);\r\n\t\t\t\tintent.putExtra(\"data\", data);\r\n\t\t\t\tintent.putExtra(\"postion\", postion);\r\n\t\t\t\t startActivity(intent);\r\n\t\t\t\t popuWindow.dismiss();\r\n\t\t\t\t WindowManager.LayoutParams params=context.getWindow().getAttributes(); \r\n\t\t\t params.alpha=1f; \r\n\t\t\t context.getWindow().setAttributes(params); \r\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n\n Intent intent = new Intent(viewplot.this,MainActivity.class);\n\n\n startActivity(intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK));\n\n\n }",
"@Override\r\n public void onClick(DialogInterface dialog, int which) {\n Intent itnt = new Intent(SettingsActivity.this, LoginActivity.class);\r\n itnt.setFlags(itnt.FLAG_ACTIVITY_CLEAR_TASK\r\n | itnt.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(itnt);\r\n }",
"public void restartActivity() {\n finish();\n startActivity(getIntent());\n }",
"private void startChildActivity(Intent intent) {\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tString id = intent.getComponent().getClassName();\n\t\tWindow window = getLocalActivityManager().startActivity(id, intent);\n\t\tsetContentView(window.getDecorView());\n\t}",
"public static Intent getIntent(){\n Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n\tpickIntent.setType(\"image/*\");\n\tpickIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n\tpickIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);\t\n\treturn pickIntent;\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), HubsActivity.class);\n intent.setData(DatabaseContract.HubEntry.CONTENT_URI);\n startActivity(intent);\n mHubListPopupWindow.dismiss();\n }",
"protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}",
"void changeWindowTo(Class activity,TypesManager.obsType _type){\n Intent guestActivity = new Intent(this,activity);\n guestActivity.putExtra(\"obsType\",_type.getValue());\n startActivity(guestActivity);\n }",
"@Override\n\tpublic void finish() {\n\t Intent data = new Intent();\n\t\t data.putExtra(\"returnKey1\",id );\n \t setResult(2, data);\n\t\t super.finish();\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tIntent intent=new Intent(getContext(),MainActivity.class);\n\t\t\t\t\t\tgetContext().startActivity(intent);\n\t\t\t\t\t\t((Activity)getContext()).finish();\n\t\t\t\t\t}",
"private void moveToMainActivity(){\r\n Intent goToMainActivity = new Intent(workoutActivity.this, BodyGroups.class);\r\n startActivity(goToMainActivity);;\r\n }",
"@Override\n public void onBackPressed() {\n \tsetResult(RESULT_OK, getIntent());\n \tfinish();\n }",
"private static Intent getIntent(Context context, Class<?> cls) {\n Intent intent = new Intent(context, cls);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n return intent;\n }",
"public void FinishRemi(View view) {\n Intent intent = new Intent(this, StartRemiActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n }",
"@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tmDialog.cancel();\r\n\t\t\tIntent intent=new Intent();\r\n\t\t\tsetResult(11, intent);\r\n\t\t\tfinish();\r\n\t\t}",
"private void returnToMain() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.putExtra(\"userMail\", \"\");\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n /*int pid = android.os.Process.myPid();=====> use this if you want to kill your activity. But its not a good one to do.\n android.os.Process.killProcess(pid);*/ //(black magic :) )\n }",
"public void onClick(View v) {\n dismiss();\n // backgroundAlpha(1f);\n EXTSharedfilesdGroupHomeActivity.this.finish();\n// startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n finishAffinity();\n } else {\n finish();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n finishAffinity();\n } else {\n finish();\n }\n }",
"@Override\n\t public void onBackPressed() {\n\t\t Intent intent = new Intent(this,MainActivity.class);\n\t //intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t intent.putExtra(\"overlayVisible\", \"noOverlay\");// als vanuit donatiescherm weer terug wil niet opnieuw de uitleg overlay\n\t\t startActivity(intent);\n\n\t }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tIntent intentdia=new Intent(getApplicationContext(),Stage_Activity.class);\n\t\t\t\t\t\tintentdia.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\t\t\tstartActivity(intentdia);\n\t\t\t\t\t}",
"@Override\n public void onClick(View view) {\n int LAUNCH_SECOND_ACTIVITY = 1;\n Intent intent = new Intent(StartActivity.this, AboutActivity.class);\n startActivityForResult(intent, LAUNCH_SECOND_ACTIVITY);\n }",
"void ChangeActivity(){\n\n Intent intent = new Intent(this, MainActivity.class);\n\n intent.putExtra(NUMBER, number_of_players);\n\n startActivity(intent);\n finish();\n\n }",
"private void returnToBrowse()\n {\n Intent intent = new Intent(this, BrowseActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View arg0) {\n Intent i = new Intent(mContext, AddCameraThirdActivity.class);\n startActivity(i);\n finish();//@@8.10\n }",
"public void moveActivityToSunting() {\n Intent intent = new Intent(MainActivity.this, SuntingProfilActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent();\n\t\t\t\tfinish();\n\t\t\t}",
"public void retornaParaTelaAnterior() {\n Intent intentMessage=new Intent();\n setResult(CODE_NOVO_GASTO, intentMessage);\n finish();\n }",
"@Override\r\n public void onNewIntent(Intent intent){\r\n \t\r\n \tthis.activateExamBoard(intent);\r\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //exit the app\n enter.activityList.add(this);\n\n setContentView(R.layout.activity_save);\n bt1 = (Button) findViewById(R.id.save_bt1);\n bt1.setOnClickListener(new Button.OnClickListener() {\n public void onClick(View v) {\n // TODO Auto-generated method stub\n\n Intent intent = new Intent();\n intent.setClass(save_succeed.this, after_beautify.class);\n // 转向添加页面\n startActivity(intent);\n //finish()???\n }\n });\n\n bt2 = (Button) findViewById(R.id.save_bt2);\n bt2.setOnClickListener(new Button.OnClickListener() {\n public void onClick(View v) {\n // TODO Auto-generated method stub\n\n Intent intent = new Intent();\n intent.setClass(save_succeed.this, enter.class);\n // 转向添加页面\n startActivity(intent);\n //finish()???\n }\n });\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetResult(0x717,intent);\n\t\t\t\tfinish();\n\t\t\t}",
"public void backtoMain()\n {\n Intent i=new Intent(this,MainActivity.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n StopMediaPlayer();\n Intent intent = new Intent(ResultActivity.this, ArenaActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n transitionTo(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent myIntent = new Intent();\n myIntent = new Intent(picking.this,home_page.class);\n startActivity(myIntent);\n picking.this.finish();\n }",
"private void returnToPriviousActivityWithoutDevice(){\r\n \tIntent finishIntent = new Intent();\r\n finishIntent.putExtra(EXTRA_DEVICE_ADDRESS, \"finish\");\r\n setResult(Activity.RESULT_CANCELED, finishIntent);\r\n BluetoothActivity.this.finish();\r\n }",
"@Override\n protected void onPostExecute(Void result) {\n Intent intent = new Intent(game_play.this, user_input.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }",
"@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n try {\n\n\n finish();\n Intent i = new Intent(getApplicationContext(), AddReligious.class);\n startActivity(i);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onClick(View view) {\n Intent screenChange = new Intent(getApplicationContext(), settings.class);\n //creating a bundle to store the variables that will be passed into the next\n //activity\n //starting our activity for a result\n startActivity(screenChange);\n }",
"public void onClickBack(View view){\n cam = mMap.getCameraPosition();//saves camara position\r\n Intent intent = new Intent(this,MainWindow.class);//needed to send the user to another screen\r\n startActivity(intent);\r\n }",
"@Override\n public void onClick(View view) {\n isFromResultActivity=false;\n finish();\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setClass(AddPlan.this,Favorite_Site.class);\n// Bundle bundle = new Bundle();\n// bundle.putString(\"myChoice\",\"hello\");\n// intent.putExtras(bundle);\n// startActivityForResult(intent,0);\n startActivity(intent);\n// //AddPlan.this.finish();\n finish();\n\n }",
"public void switchToLastWindow() {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\r\n\t\t\t\t popuWindow.dismiss();\r\n\t\t\t\t WindowManager.LayoutParams params=context.getWindow().getAttributes(); \r\n\t\t\t params.alpha=1f; \r\n\t\t\t context.getWindow().setAttributes(params); \r\n\t\t\t}",
"@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent ( Desiderativas.this, Modulo_5.class );\n startActivity ( intent );\n\n // finaslizar la actividad\n finish ();\n }",
"@Override\n public void onClick(View v) {\n Intent returnIntent = new Intent();\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }",
"public void OnGotoMyRecipes(View View)\n {\n \t\t Intent intent = new Intent(View.getContext(), MyRecipes.class);\n \t\t intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n \t\t EditRecipeActivity.this.finish();\n }",
"public static Intent backFromNewPubActivity(final NewPubActivity newPubActivity,\n @Nullable Pub newPub) {\n\n Intent i = new Intent();\n\n if (newPub != null) {\n\n i.putExtra(NewPubActivity.NEW_PUB_KEY, newPub);\n newPubActivity.setResult(RESULT_OK, i);\n }\n else\n newPubActivity.setResult(RESULT_CANCELED, i); // The operation failed or was canceled\n\n newPubActivity.finish();\n return i;\n }",
"@Override\r\n\tpublic void finish() {\n\t\tIntent it = new Intent();\r\n\t\tit.putExtra(\"ROOM_ID\", roomID);\r\n\t\tit.putExtra(\"NAME_DEVICE\", nameDevice);\r\n\t\tit.putExtra(\"TYPE_DEVICE\", typeDevice);\r\n\t\tit.putExtra(\"PORT_DEVICE\", portDevice);\r\n\t\tit.putExtra(\"STATUS_DEVICE\", statusDevice);\r\n\t\tsetResult(RESULT_OK, it);\r\n\t\tsuper.finish();\r\n\t}",
"public void openCancelReservation(){\n Intent intent = new Intent(this, CancelLogInActivity.class);\n startActivity(intent);\n }",
"@Override\r\n public void onClick(View v) {\n \t Intent intent = new Intent(MenuPrincipal.this, PantallaJugadores.class);\r\n \t finish();\r\n startActivity(intent);\r\n //startActivityForResult(intent, 11);\r\n\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent homeIntent = new Intent();\n homeIntent.setAction(Intent.ACTION_MAIN);\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n homeIntent.addCategory(Intent.CATEGORY_HOME);\n getApplicationContext().startActivity(homeIntent);\n\n dialog.dismiss();\n }",
"private Intent buildResultIntent() {\n //create result intent and put extras\n Intent resultIntent = new Intent();\n resultIntent.putExtra(EXTRA_PAGER_POSITION, viewPagerPosition);\n resultIntent.putStringArrayListExtra(EXTRA_SELECTED_IDS, new ArrayList<>(selectedIdsMap.keySet()));\n resultIntent.putIntegerArrayListExtra(EXTRA_SELECTED_POSITIONS, new ArrayList<>(selectedIdsMap.values()));\n return resultIntent;\n }",
"Activity getRepairBackwardActivity();",
"public void launchMaster()\n {\n \tIntent mIntent = new Intent(MainActivity.this, MasterButtonActivity.class);\n \tstartActivityForResult(mIntent, NEW_MASTER_BUTTON_ACTIVITY);\n }",
"@Override\n\tpublic void onBackPressed()\n\t{\n\t\tUtilidades.Aplicativo.minizarAplicativo(this);\n\t\t\n\t\t\n\t\t\n//\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n//\t\tintent.addCategory(Intent.CATEGORY_HOME);\n//\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n//\t\tstartActivity(intent);\n//\t\tgetApplicationContext().startActivity(intent);\n\t}",
"@Override\r\n public void onNewIntent(Intent intent){\r\n super.onNewIntent(intent);\r\n\r\n //changes the intent returned by getIntent()\r\n setIntent(intent);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.item1:\n finish();\n break;\n }\n return true;\n }",
"void openActivity() {\n Intent intent = new Intent(\"myaction\");\n Bundle bundle = new Bundle();\n bundle.putString(\"name\", \"hui\");\n intent.putExtras(bundle);\n startActivityForResult(intent, 1);\n }",
"@Override\n public void onClick(View view) {\n Intent surveyActivity = new Intent(getApplicationContext(), SurveyActivity.class);\n surveyActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(surveyActivity);\n }",
"public void BackToMain3 (View view) {\n EditText splitterNameInput = (EditText) findViewById(R.id.splitterNameInput3);\n String stringToPassBack = splitterNameInput.getText().toString();\n editor.putString(\"SplitterNameSaved\",stringToPassBack);\n editor.commit();\n // put the String to pass back into an Intent and close this activity\n // Intent intent = new Intent();\n\n\n\n Button btn_back = (Button) findViewById(R.id.backButton3);\n\n\n Intent intent = new Intent(Main3Activity.this, MainActivity.class);\n intent.putExtra(\"KeyName3\", stringToPassBack);\n intent.putExtra(\"Activity3\",true);\n intent.putExtra(\"activityNameCase\",2);\n startActivity(intent);\n finish();\n }",
"public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setClass(save_succeed.this, enter.class);\n // 转向添加页面\n startActivity(intent);\n //finish()???\n }",
"@Override\n public void run() {\n\n Intent starthome = new Intent(SplashScreenActivity.this, WelcomeActivity.class);\n starthome.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(starthome);\n\n finish();\n }",
"void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }",
"@Override\n public void onClick(View v) {\n onBackPressed();\n// Intent intent = new Intent(UnitCardSettingActivity.this, IndexActivity.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n// startActivity(intent);\n// finish();\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, WorkSpace.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.putExtra(\"Close this app\", true);\n startActivity(intent);\n finish();\n }",
"private void restartActivity() {\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n overridePendingTransition(R.anim.fade_in,R.anim.fade_out);\n }",
"@Override\r\npublic void onClick(View arg0) {\n\tswitch(arg0.getId())\r\n\t{\r\n\t\tcase R.id.bt_other:\r\n\t\t/*Intent i=new Intent();\r\n\t\t\tstartActivity(i);\r\n\t\t\tsetContentView(R.layout.other);*/\r\n\t\t\tIntent Intent=new Intent(MainPage.this,DataSend.class);\r\n\t\t\tIntent.putExtra(\"KEY_LIST\", device);\r\n\t\t\tIntent.putExtra(\"KEY_LISTNUMBER\", count);\r\n\t\t\tstartActivity(Intent);\r\n\t\t\t/*Intent Intent1=new Intent(MainPage.this,AdminPanel.class);\r\n\t\t\tIntent1.putExtra(\"KEY_LIST\", device);\r\n\t\t\tstartActivity(Intent1);*/\r\n \t//setContentView(R.layout.adminhome);\r\n\t\tbreak;\r\n\t}\r\n}"
] | [
"0.6555593",
"0.600156",
"0.58451074",
"0.56997865",
"0.56653017",
"0.56590015",
"0.5643385",
"0.56323886",
"0.5623459",
"0.5603275",
"0.55753607",
"0.5541484",
"0.5537282",
"0.54783297",
"0.54698634",
"0.5469666",
"0.5464179",
"0.54601765",
"0.54533005",
"0.54508865",
"0.5439727",
"0.5438726",
"0.5437956",
"0.5433285",
"0.5426599",
"0.5419467",
"0.5402853",
"0.5401625",
"0.53930515",
"0.53929204",
"0.53921807",
"0.53819245",
"0.5375087",
"0.53746533",
"0.5372191",
"0.5359059",
"0.5347963",
"0.53457415",
"0.53425705",
"0.534254",
"0.5341092",
"0.53307533",
"0.53297055",
"0.53161615",
"0.5314051",
"0.52921546",
"0.52890193",
"0.52842593",
"0.5283419",
"0.5283419",
"0.528138",
"0.5278991",
"0.52787215",
"0.5272526",
"0.52692455",
"0.5264224",
"0.526302",
"0.525938",
"0.5256744",
"0.5255922",
"0.52541345",
"0.52413833",
"0.5239351",
"0.5234016",
"0.52332234",
"0.5232677",
"0.52314264",
"0.5227516",
"0.5227516",
"0.5222274",
"0.52215",
"0.52201945",
"0.52195555",
"0.52119815",
"0.5204843",
"0.52022755",
"0.5192094",
"0.5190527",
"0.5186043",
"0.5185764",
"0.5185176",
"0.51848",
"0.5184205",
"0.51739097",
"0.5171929",
"0.5168831",
"0.51625425",
"0.51613754",
"0.5154267",
"0.5153015",
"0.51526344",
"0.5148736",
"0.5144456",
"0.5143081",
"0.51427644",
"0.5140615",
"0.5140296",
"0.51371074",
"0.5135403",
"0.51351136",
"0.5133808"
] | 0.0 | -1 |
receive data from WidgetsWindow's button press to show off the data sending framework | public void onReceiveData(int id, int requestCode, Bundle data,
Class<? extends StandOutWindow> fromCls, int fromId) {
switch (requestCode) {
case ChatHeadWindow.HIDE_INTENT:
if (this.isExistingId(id)) {
this.hide(id);
}
break;
case ChatHeadWindow.CLOSE_INTENT:
if (this.isExistingId(id)) {
this.close(id);
}
break;
case ChatHeadWindow.SHOW_INTENT:
senderId = data.getLong("sender_id");
senderDisplayName = data.getString("sender_display_name");
senderNumber = data.getString("sender_number");
messageThreadId = data.getInt("message_thread_id");
messageBody = data.getString("message_body");
parentChatHeadId = fromId;
// if (this.getWindow(id).visibility == Window.VISIBILITY_GONE) {
// TODO remove the commented exception code for showing window when
// its open (StandOutWindow.java)
this.show(id);
break;
}
/*
* switch (requestCode) { case WidgetsWindow.DATA_CHANGED_TEXT: Window
* window = getWindow(id); if (window == null) { String errorText =
* String.format(Locale.US,
* "%s received data but Window id: %d is not open.", getAppName(), id);
* Toast.makeText(this, errorText, Toast.LENGTH_SHORT).show(); return; }
* String changedText = data.getString("changedText"); TextView status =
* (TextView) window.findViewById(R.id.id); status.setTextSize(20);
* status.setText("Received data from WidgetsWindow: " + changedText);
* break; default: Log.d("MultiWindow", "Unexpected data received.");
* break; }
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getDataButtonClicked() {\n\n //we will get data heree.....>>>\n getdata();\n\n\n }",
"private void setSendDataButton() {\n\t\tsetDataInDB();\n\t\tif (!alreadyPushed)\n\t\t\tsendDataToServer();\n\t\treturnOnWorkoutList();\n\t}",
"public void handleSendBtn(ActionEvent actionEvent) throws IOException {\n Socket socket = ConnSocket.getInstance();\n InputStream inputStream = socket.getInputStream();\n OutputStream outputStream = socket.getOutputStream();\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream, true);\n //String [] userInfo = {textField.getText(), nameLabel.getText()};\n out.println(textField.getText());\n\n }",
"@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_1;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }",
"@FXML\n public final void buttonListener() {\n final String str = GameContext.instance().toStringUniverse();\n Dialogs.create()\n .title(\"Planet list\")\n .message(str)\n .showInformation();\n }",
"@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_HEAD;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }",
"@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_TAIL;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }",
"private void createEvents() {\n\t\tbtnPushTheButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t\n\t\t\tprivate List<String> b;\n\n\t\n\t\t\t//@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tact = true;\n\t\t\t\t\n//\t\t\t\tb = new ArrayList<String>();\n//\t\t\t\t\n//\t\t\t\tthis.b= (List<String>) ((List<Object>) (agent.v.getData())).stream().map(item -> {\n//\t\t\t\t\treturn (String) item;\n//\t\t\t\t});\n//\t\t\t\tString c = String.join(\", \", b);\n//\t\t\t\tclassTextArea.setText(c);\n//\t\t\t\n//\t\t\t\tclassTextArea.setText(b.toString());\n//\t\t\t\t\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n\t}",
"public void getData() {\n if (action.getName() != null) {\n wName.setText(action.getName());\n }\n wServerName.setText(Const.NVL(action.getServerName(), \"\"));\n wUserName.setText(Const.NVL(action.getUserName(), \"\"));\n wPassword.setText(Const.NVL(action.getPassword(), \"\"));\n wCommand.setText(Const.NVL(action.getCommand(), \"\"));\n wProxyHost.setText(Const.NVL(action.getProxyHost(), \"\"));\n wProxyPort.setText(Const.NVL(action.getProxyPort(), \"\"));\n\n wName.selectAll();\n wName.setFocus();\n }",
"void userPressConnectButton();",
"public void showStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == bt1) {\n\t\t\ttry {\n\t\t\t\tString s = tfnhap.getText();\n\t\t\t\tsenddata = new byte[s.length()];\n\t\t\t\treceivedata = new byte[1024];\n\t\t\t\tsenddata = s.getBytes();\n\t\t\t\tDatagramPacket send = new DatagramPacket(senddata, senddata.length, inet, 8892);\n\t\t\t\tmoi.send(send);\n\t\t\t\tDatagramPacket receive = new DatagramPacket(receivedata, receivedata.length);\n\t\t\t\tmoi.receive(receive);\n\t\t\t\tString kq = new String(receive.getData());\n\t\t\t\ttfkq.setText(kq);\n\n\t\t\t} catch (UnknownHostException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tif (e.getSource() == bt2)\n\t\t\tSystem.exit(0);\n\t}",
"void actionButton ( ) throws IOException {\n String textOfField = this.gui.wdgInputText.getText();\n this.gui.widgOutput.append(\"Button1 \" + (++this.ctKeyStroke1) + \" time, text=\" + textOfField + \"\\n\");\n }",
"private void sendSignal(){\n\t\tSystem.out.println(inputLine + \"test\");\n\t\tMessageContent messageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM);\n\t\tif(inputLine.equals(Constants.BUTTON_1_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_BEDROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_1_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_BEDROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_2_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_KITCHEN, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_2_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_KITCHEN, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_3_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_LIVINGROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_3_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_LIVINGROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_4_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_4_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM, \"0\");\n\t\t\tSystem.out.println(\"oh yeah\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_5_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.SHUTTER, Constants.PLACE_LIVINGROOM);\n\t\t}else if(inputLine.equals(Constants.BUTTON_5_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.SHUTTER, Constants.PLACE_LIVINGROOM);\n\t\t}\n\t\t\t\t\n\t\tString json = messageContent.toJSON();\n\t\tDFAgentDescription template = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n if (inputLine.equals(Constants.BUTTON_5_ON) || inputLine.equals(Constants.BUTTON_5_OFF)) {\n\t\tsd.setType(Constants.SHUTTER);\n\t\tsd.setName(Constants.PLACE_LIVINGROOM);\n } else {\n\t\tsd.setType(Constants.AUTO_SWITCH);\n\t\tsd.setName(Constants.AUTO_SWITCH_AGENT);\n }\n template.addServices(sd);\n try {\n DFAgentDescription[] result = DFService.search(myAgent, template);\n if (result.length > 0) {\n ACLMessage request = new ACLMessage(ACLMessage.REQUEST);\n if (inputLine.equals(Constants.BUTTON_5_ON) || inputLine.equals(Constants.BUTTON_5_OFF)) {\n\t\t\t\trequest.setPerformative(ACLMessage.INFORM);\n }\n for (DFAgentDescription receiver : result) {\n if (!receiver.getName().equals(myAgent.getAID())) {\n request.addReceiver(receiver.getName());\n \n }\n }\n request.setContent(json);\n myAgent.send(request);\n }\n } catch(FIPAException fe) {\n fe.printStackTrace();\n }\n\n\n\t}",
"@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\r\n\t\t\t\tString strSelectedDataType = _strMarkerType.replace(\" \", \"\");\r\n\t\t\t\tUploadVariableFieldsDialog uploadVariableFieldsDialog = null;\r\n\t\t\t\tif (strSelectedDataType.equalsIgnoreCase(\"SNPGenotype\") || strSelectedDataType.equalsIgnoreCase(\"AllelicData\") || strSelectedDataType.equalsIgnoreCase(\"ABHData\") ){\r\n\t\t\t\t\tuploadVariableFieldsDialog = new UploadVariableFieldsDialog(_mainHomePage, \"Markers\", true);\r\n\t\t\t\t} else if (strSelectedDataType.equalsIgnoreCase(\"DArTGenotype\")){\r\n\t\t\t\t\tuploadVariableFieldsDialog = new UploadVariableFieldsDialog(_mainHomePage, \"Germplasm-Names\", true);\r\n\t\t\t\t} \r\n\r\n\t\t\t\tif (null != uploadVariableFieldsDialog) {\r\n\t\t\t\t\tWindow messageWindow = new Window(\"Upload Message\");\r\n\t\t\t\t\tmessageWindow.addComponent(uploadVariableFieldsDialog);\r\n\t\t\t\t\tmessageWindow.setWidth(\"500px\");\r\n\t\t\t\t\tmessageWindow.setBorder(Window.BORDER_NONE);\r\n\t\t\t\t\tmessageWindow.setClosable(true);\r\n\t\t\t\t\tmessageWindow.center();\r\n\t\t\t\t\tif (!_mainHomePage.getMainWindow().getChildWindows().contains(messageWindow)) {\r\n\t\t\t\t\t\t_mainHomePage.getMainWindow().addWindow(messageWindow);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmessageWindow.setModal(true);\r\n\t\t\t\t\tmessageWindow.setVisible(true);\r\n\r\n\r\n\t\t\t\t\tuploadVariableFieldsDialog.addListener(new UploadVariableFieldsListener() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void uploadVariableFields(ArrayList<String> theListOfVariableFields) {\r\n\t\t\t\t\t\t\tArrayList<String> listOfVariableColumns = theListOfVariableFields;\r\n\t\t\t\t\t\t\tlistOfVariableDataColumns = listOfVariableColumns;\r\n\t\t\t\t\t\t\tif (null != listOfVariableColumns && 0 != listOfVariableColumns.size()){\r\n\t\t\t\t\t\t\t\tLayout newTabbedComponentForTemplate = buildTabbedComponentForTemplate();\r\n\t\t\t\t\t\t\t\tverticalLayout.replaceComponent(layoutForMarkerTableComponent, newTabbedComponentForTemplate);\r\n\t\t\t\t\t\t\t\tverticalLayout.requestRepaint();\r\n\t\t\t\t\t\t\t\tlayoutForMarkerTableComponent = newTabbedComponentForTemplate;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t}",
"private void createSendArea() {\n\t\tthis.btnSend = new Button(\"Envoyer\");\n\t\tthis.btnSend.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tboolean sent = window.sendMessage(message.getText());\n\t\t\t\tif(sent) {\n\t\t\t\t\tmessage.setText(\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\tnew JFrame(),\n\t\t\t\t\t\t\"Erreur lors de l'envoi du message...\",\n\t\t\t\t\t\t\"Dialog\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void devBtnActionPerformed(ActionEvent evt) {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tclient = new AuctioneerWindow();\n\t\t\t\tsure = client.getSure();\n\t\t\t\tip_text = client.getIp_text();\n\t\t\t\tcontent = client.getContent();\n\t\t\t\tsure.addActionListener(new ActionListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\tIP = ip_text.getText();\n\t\t\t\t\t\tip_text.setEnabled(false);\n\t\t\t\t\t\tsure.setEnabled(false);\n\n\t\t\t\t\t\tcontent.append(\"获取IP成功\");\n\n\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tinitBroadCastClient();\n\t\t\t\t\t\t\t\t\tReceivePublicKey();\n\t\t\t\t\t\t\t\t\tReceiveEncryptPrice();\n\t\t\t\t\t\t\t\t\tgenerateEProduct();\n\t\t\t\t\t\t\t\t\tsendEProduct();\n\t\t\t\t\t\t\t\t\tGarbleCircuits();\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\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}).start();\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}",
"String handleButtonPress(Button button);",
"void run() {\n System.out.println(\"PC Visual application run\");\n data = new Data(this);\n window = new Window(this);\n window.setup();\n mote = new MoteIF(PrintStreamMessenger.err);\n mote.registerListener(new OscilloscopeMsg(), this);\n }",
"public void ipcallButtonPressed() {\n\t\tdialButtonPressed(true) ;\n\t}",
"public void buttonClicked();",
"private void buildGUI() {\n ActionListener sendListener = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n String str = jTextField1.getText();\n if (str != null && str.trim().length() > 0)\n chatAccess.send(str);\n jTextField1.selectAll();\n jTextField1.requestFocus();\n jTextField1.setText(\"\");\n }\n };\n jTextField1.addActionListener(sendListener);\n jButton1.addActionListener(sendListener);\n\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n chatAccess.close();\n }\n });\n }",
"private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"void mainButtonPressed();",
"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 run () {\n\t\t\t\t//This is the method that gets called everytime the GUI needs to be updated.\n\t\t\t\t\n\t\t\t\tchatWindow.append(text);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private void syncButton(Button rtButton, DataObject data){\n boolean gettingData = isGettingData(); //Check if we're getting data\n if(streaming_rt && !gettingData) { //We want data and aren't getting it yet\n rtButton.setText(getResources().getString(R.string.stop_dl_rt));\n sendLogApp(); //Need to send logapp to start data transfer\n startRtDownload(data);\n }\n if(streaming_rt && gettingData) { //We want data and are already getting it\n rtButton.setText(getResources().getString(R.string.stop_dl_rt));\n startRtDownload(data); //Don't need to send logapp, data already incoming\n }\n if(!streaming_rt && gettingData) { //We want to stop getting data and are still getting it\n rtButton.setText(getResources().getString(R.string.start_dl_rt));\n sendLogApp(); //Need to send logapp to stop data transfer\n }\n if(!streaming_rt && !gettingData) { //We want to stop getting data but we already aren't getting it\n rtButton.setText(getResources().getString(R.string.start_dl_rt));\n //Don't need to send logapp, data transfer already stopped\n }\n }",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"@Override\n\tpublic void callButton(TrafficSignal TS) {\n\t\t\n\t}",
"public void makeReceiveButton() {\r\n JButton receive = new JButton(\"Receive a new champion recommendation\");\r\n new Button(receive, main);\r\n// receive.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// receive.setPreferredSize(new Dimension(2500, 100));\r\n// receive.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n receive.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n receiveChampionRecommendation();\r\n }\r\n });\r\n// main.add(receive);\r\n }",
"public void secondPlayer(){\n firstName = enterName.getText();\n //testing if we received it\n System.out.println(firstName + \" ...........\");\n //Change some info\n enterName.clear();\n writeNote.setText(\"Enter Second Player Name\");\n writeNote.setFont(Font.font(\"Arial\", FontWeight.BOLD, 45));\n //button action Click\n enterAndContinue.setOnAction(new EventHandler() {\n @Override\n public void handle(Event event) {\n //Move to explain BorderPane\n explainWhoStart();\n }\n });\n }",
"@Override\n public void actionPerformed(ActionEvent e){\n try{\n //Open a new window with the past game data\n new PastDataWindow();\n }catch(NullPointerException ex){\n JOptionPane.showMessageDialog(null, \"Error! No data loaded!\",\"Error!\",JOptionPane.ERROR_MESSAGE);\n }\n }",
"public void showStatsButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_STATS_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\treceive();\r\n\t\t\t\t}",
"@Override\n\tpublic void signalToUi(int type, Object data) {\n\t\t\n\t}",
"@Override\n public void onClick(View view) {\n\n runOnUiThread(\n new Runnable() {\n @Override\n public void run() {\n MainActivity\n .this\n .connectionManager.getTo().println(\n MainActivity\n .this\n .send_text.getText().toString()\n );\n }\n }\n );\n\n }",
"@Override\n public void actionPerformed(ActionEvent arg) {\n\n String buttonName = arg.getActionCommand();\n final String device_IP = generalSet.getDevice_IP();\n final String host_IP = generalSet.getLocal_IP();\n\n if(\"重新选择测试设备\".equals(buttonName)){\n System.out.println(\"配侧设备IP:\"+generalSet.getAccompany_IP());\n MainJFrame.getInstance().switchWindow();\n }else if (\"一键测试\".equals(buttonName)) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n // TODO Auto-generated method stub\n //generalSet 在构造方法中初始化\n allTest(generalSet.getQrCode_Info());\n }\n }).start();\n } else {\n for (int i = 0; i < buttonTitle.length; i++) {\n if (buttonTitle[i].equals(buttonName)) {\n final int lastIndex = buttonTitle.length - 1;\n switch (i) {\n case 0: {// 信息设置\n new Thread(new Runnable() {\n @Override\n public void run() { // 启动线程执行后续操作\n powerLine.info_set(generalSet.getQrCode_Info());\n }\n }).start();\n break;\n }\n case 1: { //WAN和LAN口测试\n new Thread(new Runnable() {\n @Override\n public void run() { // 启动线程执行后续操作\n// setGatewayInfo(gateway_IP, host_IP);\n powerLine.wan_Lan_test();\n }\n }).start();\n break;\n }\n case 2: { //载波测试\n new Thread(new Runnable() {\n @Override\n public void run() {\n// carrier_Test(gateway_IP, buttonTitle[3]);\n powerLine.carrier_test();\n }\n }).start();\n break;\n }\n case 3: { //wifi测试\n new Thread(new Runnable() {\n @Override\n public void run() {\n //MainJFrame.showMssageln(buttonTitle[2]);\n// wifi_Test(gateway_IP, host_IP);\n powerLine.wifi_test();\n }\n }).start();\n break;\n }\n\n }\n break;\n }\n }\n }\n }",
"void leftClickPressedOnDelivery();",
"public void buttonFunctions(){\n runSim.addActionListener((ActionEvent q) -> {\n simulation = new Secretary();\n setNewValues();\n simulation.runSim();\n showDetails.setEnabled(true);\n showResults(); \n });\n showDetails.addActionListener((ActionEvent e) -> {\n resultDisplay.setText(simulation.getResults());\n resultFrame.setVisible(true); \n });\n changeSimProp.addActionListener((ActionEvent ch) ->{\n changeFrame.setVisible(true);\n });\n okay.addActionListener((ActionEvent ok) ->{ \n changeFrame.setVisible(false);\n });\n programDescription.addActionListener((ActionEvent d)->{\n descriptionDisplay.setText(programD());\n dFrame.setVisible(true);\n });\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\treceive();\r\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n client.sendMessage(new QuestionAnsweredMessage(answerField.getText()));\n //mainGUI.showMainPanel();\n }",
"private void buttonCallback(String s) {\n // Print the name of the button for debugging purposes\n System.out.println(s);\n if(buttonNames.contains(s)) {\n // Make sure the button clicked on was actually visible\n if(buttonVisibilities.get(buttonNames.indexOf(s))) {\n // Switch through the possible button presses\n switch(s) {\n case \"Fo\":\n // Send a message to the server saying \"I want to fold\"\n GameLauncher.manager.mainPlayer.setFoldedSS(true);\n break;\n case \"Ch\":\n // Send a message to the server saying \"I want to call\"\n // This IS NOT a mistake. The server interprets calling and\n // checking as the same action, as they both fundamentally\n // do the same thing, but are just called something different\n // depending on the scenario.\n GameLauncher.manager.mainPlayer.setCallSS();\n break;\n case \"Ca\":\n // Send a message to the server saying \"I want to call\"\n GameLauncher.manager.mainPlayer.setCallSS();\n break;\n case \"Ra\":\n // Create a new JFrame to make a prompt out of\n JFrame frame = new JFrame(\"Enter new bet\");\n\n // prompt the user to enter their name\n while(true) {\n try {\n // Show an input dialog\n String betStr = JOptionPane.showInputDialog(frame, \"Enter your new bet here (must be above current bet)\");\n // Attempt to parse input\n int bet = Integer.parseInt(betStr);\n // Send a message to the server saying \"I want to bet ___ much\"\n GameLauncher.manager.mainPlayer.setBetSS(bet);\n break;\n } catch (Exception e) {\n // Print that there was invalid input, then ignore it and move on\n System.out.println(\"Bad Input!\");\n break;\n }\n }\n break;\n case \"St\":\n // Handl game start request by sending the server a message saying \"I want to start ___ server\"\n String res=HTTPUtils.sendGet(GameLauncher.SERVER_URL+\"/startServer?uuid=\"+game.serverUuid);\n // If the response contains an error message, then say there's not enough players.\n // It is assumed that it is a lack of players error, because that is the only error the\n // server will send back from this command.\n if(res.contains(\"error\")) {\n JOptionPane.showMessageDialog(new JFrame(), \"Not enough players!\", \"\", JOptionPane.WARNING_MESSAGE);\n }\n break;\n }\n }\n }\n }",
"public window() {\n initComponents();\n letras();\n ArduinoConnection();\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (btn1==e.getSource()) { //만약 버튼(btn1)클릭 시 동작\n\t\t\tto = tfphone.getText(); //텍스트필드(전화번호) 값가져와서 String to로 변형\n\t\t\ttext = tftext.getText(); //텍스트 필드(텍스트) 값자겨와서 String text로 변형 \n\t\t\t\t\t\t\t\t\t\t\t\t//문자전송(인자)가 String 이기때문에 String으로 변형해줘야함\n\t\t\tExampleSend ex = new ExampleSend(); //ExampleSend클래스 객체 생성\n\t\t\tex.문자전송(to, text);\n\t\t}\n\t\tif (btn2 == e.getSource()) {\n\t\t\ttfphone.setText(\"\");\n\t\t\ttftext.setText(\"\");\n\t\t}\n\t}",
"@Override\n public void onBoomButtonClick(int index) {\n }",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}",
"protected void createContents() throws UnknownHostException, IOException, InterruptedException {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tshlUser = new Shell();\r\n\t\tshlUser.setSize(450, 464);\r\n\t\tshlUser.setText(\"QQ聊天室\\r\\n\");\r\n\t\t\r\n\t\ttext = new Text(shlUser, SWT.BORDER);\r\n\t\ttext.setEnabled(false);\r\n\t\ttext.setBounds(0, 52, 424, 187);\r\n\t\t\r\n\t\t\r\n\t\ttext_1 = new Text(shlUser, SWT.BORDER);\t\t\r\n\t\ttext_1.setBounds(23, 263, 274, 23);\r\n\t\t\r\n\t\tButton button = new Button(shlUser, SWT.CENTER);\r\n\t\tbutton.setText(\"发送\");\r\n\t\tbutton.setBounds(321, 257, 80, 27);\r\n\t\t\r\n\t\ttext_2 = new Text(shlUser, SWT.BORDER);\r\n\t\ttext_2.setText(\"abc\");\r\n\t\ttext_2.setBounds(61, 7, 91, 23);\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(shlUser, SWT.NONE);\r\n\t\tlblNewLabel.setBounds(0, 10, 51, 17);\r\n\t\tlblNewLabel.setText(\"昵称:\");\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shlUser, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// 连接服务器\r\n\t\t\t\t\t\t\t\tsocket = new Socket(\"127.0.0.1\", 8888);\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// 如果连不上服务器,说明服务器未启动,则启动服务器\r\n\t\t\t\t\t\t\t\tserver = new ServerSocket(8888);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"服务器启动完成,监听端口:8888\");\r\n\t\t\t\t\t\t\t\tsocket = server.accept();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t\t * 注意:所有在自定义线程中修改图形控件属性,\r\n\t\t\t\t\t\t\t * 都必须使用 shell.getDisplay().asyncExec() 方法\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tMessageBox mb = new MessageBox(shlUser,SWT.OK);\r\n\t\t\t\t\t\t\t\t\tmb.setText(\"系统提示\");\r\n\t\t\t\t\t\t\t\t\tmb.setMessage(\"连接成功!现在你可以开始聊天了!\");\r\n\t\t\t\t\t\t\t\t\tmb.open();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\ttalker = new Talker(socket, new MsgListener() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onMessage(String msg) {\r\n\t\t\t\t\t\t\t\t\t// 收到消息时,将消息更新到多行文本框\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onConnect(InetAddress addr) {\r\n\t\t\t\t\t\t\t\t\t// 连接成功时,显示对方IP\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tlblNewLabel.setText(\"好友IP:\" + addr.getHostAddress());\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttMsg = new Text(shlUser, SWT.BORDER);\r\n\t\ttMsg.setEnabled(false);\r\n\t\ttMsg.setBounds(10, 364, 414, 26);\r\n\r\n\t\t\r\n\t\tbtnNewButton.setBounds(324, 7, 80, 27);\r\n\t\tbtnNewButton.setText(\"连接服务器\");\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (tMsg.getText().trim().isEmpty() == false) {\r\n\t\t\t\t\t\tString msg = talker.send(text_2.getText(), tMsg.getText());\r\n\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\ttMsg.setText(\"\");\r\n\t\t\t\t\t\t// 设置焦点\r\n\t\t\t\t\t\ttMsg.setFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}",
"private void enterButtonActionPerformed(ActionEvent evt) {\n switch(currentCommand) {\n case \"Check out customer\":\n CheckOutFrame checkOutFrame = new CheckOutFrame(this);\n setVisible(false);\n checkOutFrame.run();\n break;\n case \"Change quantity of items in stock\":\n ChangeQuantityFrame changeQuantityFrame = new ChangeQuantityFrame(this);\n setVisible(false);\n changeQuantityFrame.run();\n break;\n case \"Daily totals\":\n store.newGUIFrame.print(store.dailySalesManager.displayTotals());\n break;\n case \"Daily sales\":\n store.dailySalesManager.printDailySales();\n break;\n case \"Pending orders\":\n store.orderManager.printPendingOrders();\n break;\n case \"Order history\":\n store.orderManager.printOrderHistory();\n break;\n case \"Order history of specific product by upc\": case \"Product cost\":\n case \"Product current price\": case \"Product current quantity\": case \"Product location\":\n case \"Product price history\": case \"Check sale price and dates\": case \"Refund product\":\n case \"Scan existing item\": case \"Sell item\": case \"Change product price (regular)\":\n case \"Change product price (sale)\": case \"Scan in one\": case \"Change product location\":\n ProductFrame productFrame = new ProductFrame(this);\n setVisible(false);\n productFrame.run();\n break;\n case \"Print on sale items\":\n store.priceManager.printOnSaleItems();\n break;\n case \"Print upcoming sale items\":\n store.priceManager.printUpcomingSaleItems();\n break;\n case \"Print in stock items\":\n store.stockManager.printInStockItems();\n break;\n case \"Print out of stock items\":\n store.stockManager.printOutOfStockItems();\n break;\n case \"Scan new item\":\n NewItemFrame newItemFrame = new NewItemFrame(this);\n setVisible(false);\n newItemFrame.run();\n break;\n case \"All commands\":\n ArrayList<String> allCommands = store.currentUser.returnAllCommandsList();\n String[] allCommandsList = new String[allCommands.size()];\n\n for(int i = 0; i < allCommandsList.length; i++) {\n allCommandsList[i] = allCommands.get(i);\n }\n availableCommands = new JComboBox<>(allCommandsList);\n availableCommands.setEditable(false);\n newGUI.setButtonFontSize(availableCommands, fontSize);\n availableCommands.addActionListener(this);\n currentCommand = availableCommands.getItemAt(0);\n addComponents(getContentPane());\n setVisible(true);\n break;\n case \"Log out\":\n store.run();\n setVisible(false);\n break;\n }\n }",
"@Override\n public void run() {\n mButton_Buy_Ticket.setVisibility(View.VISIBLE);\n ln_view_number.setVisibility(View.VISIBLE);\n }",
"@Override\n public void run() {\n mButton_Buy_Ticket.setVisibility(View.VISIBLE);\n ln_view_number.setVisibility(View.VISIBLE);\n }",
"public void onClickSend(View view) {\n //String string = editText.getText().toString();\n //serialPort.write(string.getBytes());\n //tvAppend(txtResponse, \"\\nData Sent : \" + string + \"\\n\");\n }",
"void buttonPressed(ButtonType type);",
"@Override\r\n\tvoid start() {\n\t\tButton btnPayed = new Button(\"Paid\");\r\n\t\tButton btnCanceled = new Button(\"Canceled\");\r\n\t\t// Set button action events to the event methods of this class\r\n\t\tsetControlButton(btnPayed, \"Paid\");\r\n\t\tsetControlButton(btnCanceled, \"Canceled\");\r\n\r\n\t\ttextLabelDisplayed = new Label(\"\");\r\n\t\ttextLabelDisplayed.setPrefWidth(120);\r\n\r\n\t\tGridPane gridPaneAll = new GridPane();\r\n\t\tgridPaneAll.setVgap(10);\r\n\t\tGridPane gridPaneOrder = new GridPane();\r\n\t\tgridPaneOrder.setHgap(10);\r\n\t\tgridPaneOrder.add(btnPayed, 0, 0);\r\n\t\tgridPaneOrder.add(btnCanceled, 1, 0);\r\n\t\tgridPaneAll.add(gridPaneOrder, 0, 0);\r\n\t\tgridPaneAll.add(textLabelDisplayed, 0, 1);\r\n\r\n\t\twindow.addNodesAsChildrenToRoot(gridPaneAll);\r\n\r\n\t\t// Put the final touches and display the window.\r\n\t\twindow.start();\r\n\r\n\t\trefreshDisplay();\r\n\t}",
"public void handleSendButton(ActionEvent event) {\n\n messageController.setMessageSystem(this.message.getText(), this.toUsername.getText(),this.sender);\n if (messageController.sendMessage()){\n sentValid.setVisible(true);\n sentInvalid.setVisible(false);\n\n }\n else{\n sentInvalid.setVisible(true);\n sentValid.setVisible(false);\n\n }\n\n\n }",
"@Override\r\n public void onClick(View v)\r\n {\n if (\"\" != mSendOnBoardEdit.getText().toString()){\r\n DJIDrone.getDjiMainController().sendDataToExternalDevice(mSendOnBoardEdit.getText().toString().getBytes(),new DJIExecuteResultCallback(){\r\n\r\n @Override\r\n public void onResult(DJIError result)\r\n {\r\n // TODO Auto-generated method stub\r\n \r\n }\r\n \r\n });\r\n }\r\n }",
"private void populateWindow() {\n\t\tadd(net, BorderLayout.CENTER);\n\t\t//net.setPreferredSize(new Dimension(4 * Polje.defaultSize + 4 * 3, 5 * Polje.defaultSize + 5 * 3));\n\t\t//ipak radi samo ako se stavi za svaki kanvas prefferedSize(new Dimension(75,75))\n\t\t\n\t\t//trigger nek bude kad se dugme pritisne\n\t\trandomNumber.setText(\"\");\n\t\trandomNumber.setForeground(Color.WHITE);\n\t\trandomNumber.setFont(new Font(\"Arial\", Font.BOLD, 17)); //posto se slabo videlo\n\t\tstatusBar.setBackground(Color.GRAY);\n\t\tstatusBar.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\tstatusBar.add(randomNumber);\n\t\t//promene nek se desavaju u metodi dugmeta Igra\n\t\t\n\t\tcontrolPanel.setLayout(new GridLayout(5,1));\n\t\tPanel t1 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt1.add(new Label(\"Balans:\"));\n\t\tt1.add(balans);\n\t\tcontrolPanel.add(t1);\n\t\t\n\t\tPanel t2 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt2.add(new Label(\"Ulog:\"));\n\t\ttextfield.setText(\"100\");\n\t\ttextfield.addTextListener((ae) -> {\n\t\t\tupdateDobitak();\n\t\t});\n\t\tt2.add(textfield);\n\t\tcontrolPanel.add(t2);\n\t\t\n\t\tPanel t3 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt3.add(new Label(\"Kvota:\"));\n\t\tt3.add(kvota);\n\t\tcontrolPanel.add(t3);\n\t\t\n\t\tPanel t4 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt4.add(new Label(\"Dobitak:\"));\n\t\tt4.add(dobitak);\n\t\tcontrolPanel.add(t4);\n\t\t\n\t\tPanel t5 = new Panel(new FlowLayout(FlowLayout.RIGHT));\n\t\tt5.add(igraj);\n\t\tcontrolPanel.add(t5);\n\t\t\n\t\tigraj.setEnabled(false);\n\t\t\n\t\tigraj.addActionListener((ae) -> {\n\t\t\t//TODO: heshset se uzima i gleda se da li je broj od generatora\n\t\t\t//u heshsetu\n\t\t\tHashSet<Integer> set = net.getHashSet();\n\t\t\tint t = Generator.generateNum(0, net.getRows() * net.getColumns());\n\t\t\trandomNumber.setText(Integer.toString(t));\n\t\t\tif(set.contains(t)) {\n\t\t\t\tstatusBar.setBackground(Color.GREEN);\n\t\t\t\trandomNumber.setBackground(Color.GREEN);\n\t\t\t\tupdateBalans(\"-\" + textfield.getText());\n\t\t\t\tupdateBalans(dobitak.getText());\n\t\t\t}else {\n\t\t\t\tstatusBar.setBackground(Color.RED);\n\t\t\t\trandomNumber.setBackground(Color.RED);\n\t\t\t\tupdateBalans(\"-\" + textfield.getText());\n\t\t\t}\n\t\t});\n\t\t\n\t\tcontrolPanel.setBackground(Color.LIGHT_GRAY);\n\t\tadd(controlPanel, BorderLayout.EAST);\n\t\tadd(statusBar, BorderLayout.SOUTH);\n\t}",
"private void txtDisplayActionPerformed(java.awt.event.ActionEvent evt) {\n \n }",
"public void widgetSelected(SelectionEvent evt) {\n\t\t\t\tConnectToServer();\r\n\t\t\t}",
"private void showButtonDemo(){\n Button submitButton = new Button(\"Submit\");\n\n Button cancelButton = new Button(\"Cancel\");\n\n submitButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Question2Query ans = new Question2Query();\n String val= \"Sorry, we are unable to answer\";\n try {\n val = ans.ask(text.getText());\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n statusLabel.setText(\"\\n\"+val);\n }\n });\n\n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n statusLabel.setText(\"Cancel Button clicked.\");\n }\n });\n\n //controlPanel.add(okButton);\n controlPanel.add(submitButton);\n controlPanel.add(cancelButton);\n mainFrame.setVisible(true);\n }",
"private void processingButtonListener() {\n JButton processingButton = gui.getButton_Processing();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n gui.getProcessing_TextArea().setText(\"\");\n gui.getFrame_Processing().setVisible(true);\n gui.getFrame_Processing().setSize(415, 250);\n gui.getProcessing_TextArea().setEditable(false);\n for (int key : processingRequests.keySet()) {\n gui.getProcessing_TextArea().append(processingRequests.get(key).getFormattedRequest());\n }\n };\n\n processingButton.addActionListener(actionListener);\n }",
"private void handleUI() {\r\n // Start/stop camera\r\n btnCam.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent e) {\r\n if (!camRunning) {\r\n videoStream = new ClientVideoStream(imageView);\r\n videoThread = new Thread(videoStream);\r\n videoThread.start();\r\n new Thread(new Client(MsgType.START_VIDEO_STREAM)).start();\r\n btnCam.setText(\"Stop camera\");\r\n camRunning = true;\r\n }\r\n else {\r\n btnCam.setText(\"Stop camera\");\r\n try {\r\n videoStream.terminate();\r\n } catch (Exception ex) {\r\n System.out.println(\"Failed to stop camera\");\r\n }\r\n camRunning = false;\r\n }\r\n }\r\n });\r\n // Toggle man/auto\r\n btnManAut.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent e) {\r\n if (manualMode) {\r\n new Thread(new Client(MsgType.MANUAL)).start();\r\n btnManAut.setText(\"Manual\");\r\n }\r\n else {\r\n new Thread(new Client(MsgType.AUTO)).start();\r\n btnManAut.setText(\"Auto\");\r\n }\r\n manualMode = !manualMode;\r\n }\r\n });\r\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n this.mostrar();\n }",
"@Override\n public void onClick(View arg0) {\n ip = txt3.getText().toString();\n setWindow();\n }",
"public void program1Pressed() {\n // display\n TextLCD.print(PROGRAM1);\n }",
"abstract void botonDemo_actionPerformed(ActionEvent e);",
"public void actionPerformed(ActionEvent e)\n { /* actionPerformed */\n String\n cmd= e.getActionCommand();\n \n /* [1] see which button was pushed and do the right thing,\n * hide window and return default/altered data */\n if (cmd.equals(\" Cancel\") || cmd.equals(\"Continue\"))\n { /* send default data back - data is already stored into this.data */\n this.setVisible(false); /* hide frame which can be shown later */\n } /* send default data back */\n else\n if(cmd.equals(\"Ok\"))\n { /* hide window and return data back entered by user */\n data= textField.getText(); /* altered data returned */\n this.setVisible(false); /* hide frame which can be shown later*/\n }\n alertDone= true;\n }",
"void onAddParameterButtonClick();",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tString info=5+\" \"+name;\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t//send exit info to server\r\n\t\t\t\t\t\ttoServer.writeUTF(info);\r\n\t\t\t\t\t\ttoServer.flush();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//get return tips from server\r\n\t\t\t\t\t\tinfo=fromServer.readUTF();\r\n\t\t\t\t\t\thandle.setVisible(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.err.println(ex);\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n if (source == exitButton) {\n if (TelescopeDataPanel.DRAMA_ENABLED) {\n telescopeInfoPanel.closeHub();\n }\n\n qtf.exitQT();\n\n } else if (source == fetchMSB) {\n qtf.sendToStagingArea();\n }\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void buttonClick(ClickEvent event) {\n\r\n\t\t\t\t\t\t\t\tObject data = event.getButton().getData();\r\n\t\t\t\t\t\t\t\ttablePacks.select(data);\r\n\t\t\t\t\t\t\t\tItem itemClickEvent = tablePacks.getItem(data);\r\n\t\t\t\t\t\t\t\tvenEditarPacks.init(\"UPDATE\",itemClickEvent );\r\n\t\t\t\t\t\t\t\tUI.getCurrent().addWindow(venEditarPacks);\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t\t\t\t\t\t}",
"void JButtonPush_actionPerformed(java.awt.event.ActionEvent event) {\n\t\tpushstring = \"\";\n\t\tPushDialog dialog = new PushDialog(this); // ask the user what to push\n\t\tdialog.setVisible(true);\n\n\t\tif (!pushstring.equals(\"\")) { // after the dialog is closed,\n\t\t\tpushCommand = new PushCommand(stack, pushstring);\n\t\t\tinvoker.executeCommand(pushCommand);\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the data\");\n\t\t\tdialog.setVisible(true);\n\t\t}\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\n\t\tthis.repaint();\n\n\t}",
"@Subscribe(threadMode = ThreadMode.MAIN)\n public void onMessageEvent(MessageEvent event) {\n btn.setText(event.Message);\n }",
"private void receiveChampionRecommendation() {\r\n JFrame recordWindow = new JFrame(\"Receive a new champion recommendation\");\r\n// recordWindow.setLocationRelativeTo(null);\r\n// recordWindow.getContentPane().setLayout(new BoxLayout(recordWindow.getContentPane(), BoxLayout.Y_AXIS));\r\n initiateChampionRecommendationFields(recordWindow);\r\n new Frame(recordWindow);\r\n// recordWindow.pack();\r\n// recordWindow.setVisible(true);\r\n }",
"public void buttonClickHandler (ActionEvent evt) {\n\t\tButton clickedButton = (Button) evt.getTarget();\n\t\tString buttonLabel = clickedButton.getText();\n\t\t\n\t\tswitch(buttonLabel) {\n\t\t\tcase(\"Instructions\"): openInstructionsWindow(); break;\n\t\t\tcase(\"About\"): openAboutWindow(); break;\n\t\t\tcase(\"Quit\"): GameScreenController.quitWindow(); break;\n\t\t}\t\n\t}",
"protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }",
"public void onButtonBPressed();",
"public void showTriggered();",
"abstract void botonRecibir_actionPerformed(ActionEvent e);",
"public void onClickSend(View view) {\n String string = editText.getText().toString();\n serialPort.write(string.getBytes());\n tvAppend(textView, \"\\nData Sent : \" + string + \"\\n\");\n\n }",
"void notifyMouseEvent(int id, long when, int button,\n int x, int y, int absX, int absY,\n int modifiers, int clickCount, boolean popupTrigger,\n byte[] bdata);",
"void onTopQDMPasteClicked();",
"@Override\n public void onClick(View view) {\n if(buttonHandler != null)\n {\n //we send out to our button handler\n buttonHandler.handleEvolve(wid);\n }\n Toast.makeText(getContext(), \"Evolve please!\", Toast.LENGTH_SHORT).show();\n\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJToggleButton tglbtnOn = new JToggleButton(\"LED\");\n\t\ttglbtnOn.setBackground(Color.WHITE);\n\t\ttglbtnOn.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t\t\t\n\t\t\t\t//post cde\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t//String \tPOST_PARAMS=tglbtnOn.getText().toString();\n\n\t\t\t\t \t//String s1=\"{\\n\" + \" \\\"tglbtnOn\\\"\" + \"\\n }\";\n\t\t\t\t\t\t\n\t\t\t\t\tString s1\t=\"{\\n\" + \" \\\"userid :\\\"\" + \"\\r\\n }\";\n\t\t\t\tif(tglbtnOn.isSelected()) {\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t tglbtnOn.setText(\"LED ON\");\n\t\t\t\t\ttglbtnOn.setBackground(Color.GREEN);\n\t\t\t\t}else {\n\t\t\t\t\ttglbtnOn.setBackground(Color.RED);\n\t\t\t\t\ttglbtnOn.setText(\"LED OFF\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(tglbtnOn);\n\t\t\t\tURL obj = new URL(\"https://desktop-application-f68b7.firebaseio.com/post.json \");\n\t\t\t\tHttpURLConnection postConnection = (HttpURLConnection) obj.openConnection();\n\t\t\t\tpostConnection.setRequestMethod(\"POST\");\n\t\t\t\tpostConnection.setRequestProperty(\"userId\", \"a1bcdefgh\");\n\t\t\t\tpostConnection.setRequestProperty(\"Content-Type\", \"application/json\");\n\t\t\t\tpostConnection.setDoOutput(true);\n\t\t\t//\tPOST_PARAMS=tglbtnOn.getText().toString();\n\t\t\t\tOutputStream os = postConnection.getOutputStream();\n\t\t \tos.write(s1.getBytes());\n\t\t\t\tos.flush();\n\t\t\t\tos.close();\n\t\t\t\tint responseCode = postConnection.getResponseCode();\n\t\t\t\tSystem.out.println(\"POST Response Code : \" + responseCode);\n\t\t\t\tSystem.out.println(\"POST Response Message : \" + postConnection.getResponseMessage());\n\t\t\t\tif (responseCode == HttpURLConnection.HTTP_CREATED) { // success\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(postConnection.getInputStream()));\n\t\t\t\t\tString inputLine;\n\t\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\t// print result\n\n\t\t\t\t\tSystem.out.println(response.toString());\n\t\t\t\t} \n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"POST NOT WORKED\");\n\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttglbtnOn.setBounds(145, 71, 121, 23);\n\t\tframe.getContentPane().add(tglbtnOn);\n\t}",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n\r\n popuniVrsteDogadjajaListu();\r\n marketing_textF = new TextField();\r\n marketing_textF.setText(\"false\"); \r\n \r\n /* marketing_textF.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n if(marketing_textF.getText().equals(\"true\")){\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION,\r\n \"Završena je marketinška kampanja!\", ButtonType.OK);\r\n alert.showAndWait();\r\n marketing_textF.setText(\"false\");\r\n }\r\n }\r\n });\r\n */\r\n Korisnici_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n OrganizacijaDogadjaja.korisnik.prikaziGUI(\"Korisnici\", false);\r\n }\r\n });\r\n\r\n NoviDogadjaj_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n OrganizacijaDogadjaja.korisnik.prikaziGUI(\"NoviDogadjaj\", false);\r\n }\r\n });\r\n\r\n Marketing_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n out.println(\"MARKETING\");\r\n try {\r\n if (in.readLine().equals(\"MARKETING_ZAVRSEN\")) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION,\r\n \"Završena je marketinška kampanja!\", ButtonType.OK);\r\n alert.showAndWait();\r\n }\r\n } catch (IOException ex) {\r\n Logger.getLogger(NoviDogadjajController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n }\r\n });\r\n\r\n Obrisi_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n\r\n Dogadjaj selectedItem = tabelaDogadjaja.getSelectionModel().getSelectedItem();\r\n //obrisemo na serveru dogadjaj\r\n out.println(\"OBRISI_DOGADJAJ#\" + selectedItem.getNaziv());\r\n //obrisemo iz tabele dogadjaja\r\n tabelaDogadjaja.getItems().remove(selectedItem);\r\n\r\n }\r\n });\r\n\r\n Zavrsi_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n OrganizacijaDogadjaja.korisnik.closeIO();\r\n OrganizacijaDogadjaja.korisnik.zatvoriGUI(\"Pocetna\", true);\r\n }\r\n });\r\n\r\n PreuzmiDogadjaj_mi.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n out.println(\"PREUZIMANJE_DOGADJAJA\");\r\n primiFajl(new File(\"src/organizacijadogadjaja/korisnici/preuzimanja/dogadjaji.csv\"));\r\n }\r\n });\r\n\r\n PreuzmiUcesnike_mi.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n out.println(\"PREUZIMANJE_UCESNIKA\");\r\n primiFajl(new File(\"src/organizacijadogadjaja/korisnici/preuzimanja/ucesnici.csv\"));\r\n }\r\n });\r\n\r\n PreuzmiOrganizatore_mi.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n out.println(\"PREUZIMANJE_ORGANIZATORA\");\r\n primiFajl(new File(\"src/organizacijadogadjaja/korisnici/preuzimanja/organizatori.csv\"));\r\n }\r\n });\r\n\r\n Preuzimanja_mbtn = new MenuButton(\"Preuzimanja\", Obrisi_btn, new MenuItem(\"Događaj\"), new MenuItem(\"Organizator\"), new MenuItem(\"Ucesnike\"));\r\n\r\n // kolona datum pocetka sortirana po opadajucem redosledu\r\n kolonaDatumPocetka.setSortType(TableColumn.SortType.DESCENDING);\r\n\r\n kolonaNaziv.setCellValueFactory(new PropertyValueFactory<Dogadjaj, String>(\"naziv\"));\r\n kolonaDatumPocetka.setCellValueFactory(new PropertyValueFactory<Dogadjaj, String>(\"datumPocetka\"));\r\n kolonaVrijemePocetka.setCellValueFactory(new PropertyValueFactory<Dogadjaj, String>(\"vrijemePocetka\"));\r\n kolonaVrijemeZavrsetka.setCellValueFactory(new PropertyValueFactory<Dogadjaj, String>(\"vrijemeZavrsetka\"));\r\n // popunimo tabelu sa listom dogadjaja\r\n tabelaDogadjaja.getItems().setAll(popuniTabeluDogadjaja());\r\n\r\n }",
"void enablButtonListener();",
"public void interfaceIHM(){\n VBox contenue;\n ActionBouttonPartieEnCours action = new ActionBouttonPartieEnCours(this.duelSurLaToile, this);\n Label nom = new Label(\"Jeu : \"+this.nom);\n Label joueurs = new Label(\"Vous VS \"+this.adversaire);\n Label resultat = new Label(this.scoreJoueur+\" VS \"+this.scoreAdversaire);\n Button accepter = new Button(\"Rejoindre\");\n accepter.setStyle(\"-fx-background-color: #ffffff ;\");\n accepter.setMinWidth(135);\n accepter.setMaxWidth(135);\n accepter.setUserData(this.id);\n Button refuser = new Button(\"Abandonner\");\n refuser.setStyle(\"-fx-background-color: #ffffff ;\");\n refuser.setMinWidth(135);\n refuser.setMaxWidth(135);\n refuser.setUserData(this.id);\n image.setFitWidth(130);\n image.setFitHeight(130);\n contenue=new VBox();\n contenue.getChildren().addAll(nom,joueurs,resultat,accepter,refuser);\n contenue.setSpacing(5);\n contenue.setAlignment(Pos.CENTER_LEFT);\n contenue.setMaxWidth(refuser.getMaxWidth());\n this.setLeft(contenue);\n this.setRight(image);\n accepter.setOnAction(action);\n refuser.setOnAction(action);\n BorderPane.setAlignment(contenue,Pos.CENTER);\n BorderPane.setMargin(contenue,new Insets(10,10,10,10));\n BorderPane.setMargin(image,new Insets(10,10,10,10));\n this.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, null, null)));\n }",
"@FXML\n\tvoid showreBTNE(MouseEvent event) throws IOException {\n\t\tMainAllControllers.setWindowVar(\"UserShowRequests\");\n\t\tMainAllControllers.changeWin();\n\t}",
"public void run() {\r\n _btnPreviewStop.setText(\"Preview\"); // I18N\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n JButton jb = (JButton) e.getSource();\n if(jb == next_button){\n\n layout.extractInformation(number_of_rows,number_of_cols,dataEntries);\n JOptionPane.showMessageDialog(this, \"Your input has been successfully acquired. Press OK to continue.\\n\");\n this.setVisible(false);\n AdminGUI startGui = new AdminGUI(dataEntries , layout);\n //TODO: Uncomment layout start\n layout.start();\n }\n\n\n }",
"@Override public void handle(ActionEvent e) {\n\t\t GuiRegister.initialize();\n\t\t GuiMemory.initialize();\n\t\t GuiStatusBit.initialize();\n\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConnectedThread.write(\"send\");\n\t\t\t\t\tmConnectedThread.writeFile();\n\t\t\t\t}",
"@Override\n public void start(Stage primaryStage) throws Exception {\n Socket clientSocket = new Socket(\"127.0.0.1\", 1337);\n\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(\n clientSocket.getOutputStream()\n ));\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n clientSocket.getInputStream()\n ));\n\n /**\n * Notez qu'on peut envoyer des messages au serveur en utilisant :\n * \n * writer.append(\"mon message\" + \"\\n\");\n * writer.flush();\n */\n\n // Création de l'interface graphique\n VBox root = new VBox();\n Scene scene = new Scene(root, 300, 300);\n primaryStage.setResizable(false);\n HBox ligne = new HBox();\n ligne.setMaxHeight(24);\n GridPane grille = new GridPane();\n for (int i=0;i<3;i++){\n for (int j=0;j<3;j++){\n Button bouton = new Button(\"\");\n bouton.setMinSize(100,92);\n bouton.setId((i+1)+\":\"+(j+1));\n grille.add(bouton,i,j);\n bouton.setOnAction((event) -> {\n try {\n writer.append(bouton.getId());\n writer.newLine();\n writer.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }\n root.getChildren().add(grille);\n\n // Ajout de la barre de status\n\n status = new Text();\n ligne.getChildren().add(status);\n root.getChildren().add(ligne);\n\n /**\n * Crée un thread qui écoute les messages envoyés par le serveur et qui\n * met à jour l'interface graphique en conséquence\n */\n Thread listener = new Thread(() -> {\n try {\n String line;\n\n while ((line = reader.readLine()) != null) {\n setStatus(\"\");\n if (this.lettre==null){\n this.lettre = line.split(\" \")[1];\n if(this.lettre.equals(\"x\")){\n setStatus(\"Commencez\");\n } else {\n setStatus(\"Les X commencent\");\n }\n } else if (line.equals(\"tie\")){\n setStatus(\"Match nul\");\n } else if (line.charAt(0)=='x'||line.charAt(0)=='o'){\n if (lettre.charAt(0)==line.charAt(0)){\n setStatus(\"Vous avez gagné!\");\n } else {\n setStatus(\"Vous avez perdu...\");\n }\n } else if (line.split(\" \")[0].equals(\"move\")){\n String[] ligneString = line.split(\" \");\n for (Node node : grille.getChildren()) {\n if (node.getId().equals(ligneString[2])) {\n bouton = (Button)node;\n setTextButton(ligneString[1]);\n break;\n }\n }\n }\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n });\n listener.start();\n\n primaryStage.setScene(scene);\n primaryStage.setTitle(\"Tic Tac Toe\");\n // Fermer le programme (tous les threads) lorsqu'on ferme la fenêtre\n primaryStage.setOnCloseRequest((event) -> {\n Platform.exit();\n System.exit(0);\n });\n primaryStage.show();\n }",
"private void hahaha() {\t\t\n\t\tfinal Button searchButton = new Button(\"Search\");\n\t\tfinal TextBox nameField = new TextBox();\n\t\tnameField.setText(\"GWT User\");\n\t\tfinal Label errorLabel = new Label();\n\t\t\n\t\t// We can add style names to widgets\n\t\tsearchButton.addStyleName(\"sendButton\");\n\n\t\t// Add the nameField and sendButton to the RootPanel\n\t\t// Use RootPanel.get() to get the entire body element\n\t\tRootPanel.get(\"nameFieldContainer\").add(nameField);\n\t\tRootPanel.get(\"sendButtonContainer\").add(searchButton);\n\t\tRootPanel.get(\"errorLabelContainer\").add(errorLabel);\n\n\t\t// Focus the cursor on the name field when the app loads\n\t\tnameField.setFocus(true);\n\t\tnameField.selectAll();\n\n\t\t// Create the popup dialog box\n\n\t\t// Create a handler for the sendButton and nameField\n\t\tclass MyHandler implements ClickHandler, KeyUpHandler {\n\t\t\t/**\n\t\t\t * Fired when the user clicks on the sendButton.\n\t\t\t */\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tsendNameToServer();\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Fired when the user types in the nameField.\n\t\t\t */\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tif (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {\n\t\t\t\t\tsendNameToServer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Send the name from the nameField to the server and wait for a\n\t\t\t * response.\n\t\t\t */\n\t\t\tprivate void sendNameToServer() {\n\t\t\t\t// First, we validate the input.\n\t\t\t\terrorLabel.setText(\"\");\n\t\t\t\tString textToServer = nameField.getText();\n\t\t\t\tif (!FieldVerifier.isValidName(textToServer)) {\n\t\t\t\t\terrorLabel.setText(\"Please enter at least four characters\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Then, we send the input to the server.\n\t\t\t\t// sendButton.setEnabled(false);\n\t\t\t\tSearchRequest request = new SearchRequest();\n\t\t\t\tDate twoMinsAgo = new Date(new Date().getTime() - 1000*60*2);\n\t\t\t\trequest.setFetchTime(Interval.after(twoMinsAgo));\n\t\t\t\tgreetingService.greetServer(request,\n\t\t\t\t\t\tnew AsyncCallback<Collection<Place>>() {\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\tnotification.handleFailure(caught);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpublic void onSuccess(Collection<Place> result) {\n\t\t\t\t\t\t\t\t// TODO: sign of utter stupidity\n\t\t\t\t\t\t\t\tfinal MapWidget map = (MapWidget) RootPanel\n\t\t\t\t\t\t\t\t\t\t.get(\"mapsTutorial\").getWidget(0);\n\t\t\t\t\t\t\t\tmap.clearOverlays();\n\n\t\t\t\t\t\t\t\tLatLng markerPos = null;\n\t\t\t\t\t\t\t\tfor (final Place place : result) {\n\t\t\t\t\t\t\t\t\tLocation coordinates = place.getCoordinates();\n\t\t\t\t\t\t\t\t\tmarkerPos = LatLng.newInstance(\n\t\t\t\t\t\t\t\t\t\t\tcoordinates.getLatitude(), coordinates.getLongitude());\n\n\t\t\t\t\t\t\t\t\t// Add a marker\n\t\t\t\t\t\t\t\t\tMarkerOptions options = MarkerOptions\n\t\t\t\t\t\t\t\t\t\t\t.newInstance();\n\t\t\t\t\t\t\t\t\toptions.setTitle(place.getAddress());\n\t\t\t\t\t\t\t\t\tMarker marker = new Marker(markerPos,\n\t\t\t\t\t\t\t\t\t\t\toptions);\n\t\t\t\t\t\t\t\t\tfinal LatLng currMarkerPos = markerPos;\n\t\t\t\t\t\t\t\t\tmarker.addMarkerClickHandler(new MarkerClickHandler() {\n\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\tMarkerClickEvent event) {\n\t\t\t\t\t\t\t\t\t\t\tPlaceFormatter places = new PlaceFormatter();\n\t\t\t\t\t\t\t\t\t\t\tInfoWindowContent wnd = new InfoWindowContent(places.format(place));\n\t\t\t\t\t\t\t\t\t\t\twnd.setMaxWidth(200);\n\t\t\t\t\t\t\t\t\t\t\tmap.getInfoWindow().open(\n\t\t\t\t\t\t\t\t\t\t\t\t\tcurrMarkerPos,\n\t\t\t\t\t\t\t\t\t\t\t\t\twnd);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\tmap.addOverlay(marker);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (markerPos != null) {\n\t\t\t\t\t\t\t\t\tmap.setCenter(markerPos);\n\t\t\t\t\t\t\t\t\tmap.setZoomLevel(12);\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}\n\t\t}\n\n\t\t// Add a handler to send the name to the server\n\t\tMyHandler handler = new MyHandler();\n\t\tsearchButton.addClickHandler(handler);\n\t\tnameField.addKeyUpHandler(handler);\n\t\t\n\t\tfinal Button startFetching = new Button(\"Fetch\");\n\t\tRootPanel.get(\"startFetchingContainer\").add(startFetching);\n\t\tstartFetching.addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tadminService.checkDataSources(new AsyncCallback<AdminResponse>() {\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tnotification.handleFailure(caught);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpublic void onSuccess(AdminResponse result) {\n\t\t\t\t\t\tnotification.show(\"Coolio\", \"Everything is cool\", \"\");\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}",
"void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }",
"public void toggleStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.TOGGLE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@FXML\n void buttonSendToFloor(ActionEvent event) {\n \tif(updateData == null) {\n \t\tthrow new NullPointerException(\"MainGuiController.buttonSendToFloor() NullPointerException\");\n \t}\n \t\n \t//get floor number from textfield\n \tint floorNumber;\n \ttry {\n \t\tfloorNumber = Integer.parseInt(textfield_floor_number.getText());\n \t} catch (NumberFormatException e) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR, e.getLocalizedMessage());\n\t\t\talert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n\t\t\t((Stage)alert.getDialogPane().getScene().getWindow()).getIcons().add(new Image(\"/icons8-elevator-96.png\"));\n\t\t\talert.showAndWait();\n\t\t\treturn;\n\t\t}\n \t\n \t//check if in range of available floors\n \tif(floorNumber > numFloorsInBuilding) {\n \t\tAlert alert = new Alert(AlertType.ERROR, \"The entered floor number (\" + floorNumber + \") exceeds number of floors in building (\" + numFloorsInBuilding + \")!\");\n\t\t\talert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n\t\t\t((Stage)alert.getDialogPane().getScene().getWindow()).getIcons().add(new Image(\"/icons8-elevator-96.png\"));\n\t\t\talert.showAndWait();\n\t\t\treturn;\n \t}\n \tif(floorNumber <= 0) {\n \t\t//this should never happen, the textformatter of the textfield should not allow input that is <=0\n \t\tthrow new NumberFormatException(\"MainGuiController.buttonSendToFloor() floorNumber<=0\");\n \t}\n \t\n \t//send to UpdateData and set as new floor\n \t//internal the floors are in range 0 to numFloorsInBuilding-1. But the user enters 1 to numFloorsInBuilding. To be have to subtract 1 here to convert the ranges.\n \tupdateData.setTarget(floorNumber-1);\n }",
"private JButton initializeSendButton() {\r\n\t\tJButton sendButton = new JButton(\"Send\");\r\n\t\tsendButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// send message which taken from text field.\r\n\t\t\t\ttry {\r\n\t\t\t\t\tnotifyMessageFromUI();\r\n\t\t\t\t\tchatArea.append(messageField.getText() + \"\\n\");\r\n\t\t\t\t\tmessageField.setText(\"\");\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn sendButton;\r\n\t}",
"public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }"
] | [
"0.644578",
"0.6335883",
"0.62733924",
"0.62634736",
"0.62408906",
"0.6158586",
"0.6135014",
"0.6095867",
"0.60693717",
"0.6062254",
"0.6043219",
"0.60250664",
"0.6020946",
"0.6008994",
"0.5936289",
"0.58735657",
"0.58717775",
"0.58640426",
"0.58639467",
"0.5860141",
"0.5827021",
"0.57981056",
"0.5788033",
"0.57740515",
"0.5766935",
"0.57598734",
"0.57421935",
"0.57325107",
"0.5730276",
"0.5714384",
"0.57052064",
"0.5701751",
"0.56944704",
"0.56894463",
"0.56701547",
"0.56632334",
"0.56619453",
"0.5659517",
"0.5658047",
"0.56512046",
"0.56495947",
"0.56470925",
"0.56417495",
"0.56404346",
"0.5632658",
"0.5631346",
"0.5619733",
"0.56175506",
"0.5611648",
"0.560758",
"0.55955094",
"0.55955094",
"0.5594548",
"0.5591156",
"0.55768716",
"0.55761755",
"0.55752236",
"0.5565269",
"0.5562276",
"0.5558154",
"0.5552636",
"0.55445033",
"0.55442655",
"0.5538901",
"0.55326205",
"0.5525961",
"0.55205685",
"0.5510678",
"0.55012167",
"0.5500397",
"0.5497211",
"0.5495818",
"0.5495159",
"0.54950994",
"0.54928565",
"0.5488681",
"0.54862523",
"0.5481089",
"0.5479537",
"0.54763526",
"0.5475775",
"0.54755676",
"0.5475175",
"0.54711413",
"0.54688966",
"0.54632246",
"0.5458707",
"0.5458457",
"0.5454525",
"0.5452351",
"0.54515344",
"0.5440329",
"0.5436024",
"0.54345244",
"0.5433773",
"0.54272556",
"0.5420382",
"0.5418895",
"0.54164803",
"0.5415574"
] | 0.5585646 | 54 |
Verifies that only those servlets designated will preload when the application is initialized. SimpleGetServlet and each of its subclasses adds its classname to the 'initialized' context attribute. | public void testLoadOnStartup() throws Exception {
WebXMLString wxs = new WebXMLString();
wxs.addServlet( "servlet1", "one", Servlet1.class );
wxs.setLoadOnStartup( "servlet1" );
wxs.addServlet( "servlet2", "two", Servlet2.class );
wxs.addServlet( "servlet3", "three", Servlet3.class );
ServletRunner sr = new ServletRunner( toInputStream( wxs.asText() ) );
ServletUnitClient wc = sr.newClient();
InvocationContext ic = wc.newInvocation( "http://localhost/three" );
assertEquals( "Initialized servlets", "Servlet1,Servlet3", ic.getServlet().getServletConfig().getServletContext().getAttribute( "initialized" ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testLoadOrder() throws Exception {\n WebXMLString wxs = new WebXMLString();\n wxs.addServlet( \"servlet1\", \"one\", Servlet1.class );\n wxs.setLoadOnStartup( \"servlet1\", 2 );\n wxs.addServlet( \"servlet2\", \"two\", Servlet2.class );\n wxs.setLoadOnStartup( \"servlet2\", 3 );\n wxs.addServlet( \"servlet3\", \"three\", Servlet3.class );\n wxs.setLoadOnStartup( \"servlet3\", 1 );\n \n ServletRunner sr = new ServletRunner( toInputStream( wxs.asText() ) );\n ServletUnitClient wc = sr.newClient();\n InvocationContext ic = wc.newInvocation( \"http://localhost/two\" );\n assertEquals( \"Initialized servlets\", \"Servlet3,Servlet1,Servlet2\", ic.getServlet().getServletConfig().getServletContext().getAttribute( \"initialized\" ) );\n }",
"protected void delayedInit() throws ServletException {\n\t\tThread currentThread = Thread.currentThread();\n\t\tClassLoader tccl = currentThread.getContextClassLoader();\n\t\tcurrentThread.setContextClassLoader(WebSocketServlet.class.getClassLoader());\n\t\ttry {\n\t\t\tsuper.init();\n\t\t} finally {\n\t\t\tcurrentThread.setContextClassLoader(tccl);\n\t\t}\n\t}",
"public void init() throws ServletException{\n\t\tSystem.out.println(this.getServletName()+\" is INITILIAZED\");\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tSystem.out.println(\"Servlet initializing\");\n\t}",
"public void contextInitialized(ServletContextEvent event) {\n\t\tthis.contextLoader = createContextLoader();\n\t\tif (this.contextLoader == null) {\n\t\t\tthis.contextLoader = this;\n\t\t}\n\t\tthis.contextLoader.initWebApplicationContext(event.getServletContext());\n\t\tUserBuffer.getInstance();\n\t}",
"protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNames();\n\n for (String name : names) {\n System.out.println(\"name:\" + name);\n }\n }",
"@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t}",
"@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t}",
"public void testInitAccuracy() throws Exception {\r\n // Initial the vairables.\r\n servlet.init(config);\r\n assertEquals(\"init fails.\", \"UserId\",\r\n TestHelper.getVariable(AjaxSupportServlet.class, \"userIdAttributeName\", servlet));\r\n\r\n Map handlers = (Map) TestHelper.getVariable(AjaxSupportServlet.class, \"handlers\", servlet);\r\n assertEquals(\"destroy fails\", 5, handlers.size());\r\n\r\n assertTrue(\"init fails\",\r\n handlers.get(\"SetScorecardStatus\") instanceof SetScorecardStatusHandler);\r\n assertTrue(\"init fails\",\r\n handlers.get(\"LoadTimelineTemplate\") instanceof LoadTimelineTemplateHandler);\r\n assertTrue(\"init fails\",\r\n handlers.get(\"SetTimelineNotification\") instanceof SetTimelineNotificationHandler);\r\n assertTrue(\"init fails\", handlers.get(\"PlaceAppeal\") instanceof PlaceAppealHandler);\r\n assertTrue(\"init fails\", handlers.get(\"ResolveAppeal\") instanceof ResolveAppealHandler);\r\n }",
"@Override\r\n public void contextInitialized(ServletContextEvent servletContextEvent) {\r\n \r\n }",
"public void contextInitialized(ServletContextEvent event) {\r\n \t\r\n }",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\tcounter = 1;\n\t\tSystem.out.println(\"Servlet Init Call\");\n\t}",
"public void init() throws ServletException {\n }",
"@Override\n\tpublic void init() throws ServletException\n\t{\n\t\tsuper.init();\n\t\t\n\t\tActiveUsers = (HashMap<String, User>) getServletContext().getAttribute(\"ActiveUsers\");\n\t\tMessages = (ArrayList<Message>) getServletContext().getAttribute(\"Messages\");\n\t\t\n\t\tif(ActiveUsers == null)\n\t\t{\n\t\t\tActiveUsers = new HashMap<String, User>();\n\t\t\tgetServletContext().setAttribute(\"ActiveUsers\", ActiveUsers);\n\t\t}\n\t\t\n\t\tif(Messages == null)\n\t\t{\n\t\t\tMessages = new ArrayList<Message>();\n\t\t\tgetServletContext().setAttribute(\"Messages\", Messages);\n\t\t}\n\t}",
"@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}",
"public void init() throws ServletException {\n\t\t\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\r\n\r\n\t}",
"@Override\n public void onStartup(ServletContext servletContext) throws ServletException {\n this.addServlet(servletContext);\n }",
"public void init()\n {\n context = getServletContext();\n parameters = (Siu_ContainerLabel)context.getAttribute(\"parameters\");\n }",
"@Override\n public void contextInitialized(ServletContextEvent servletContextEvent) {\n super.contextInitialized(servletContextEvent);\n\n try {\n ServletContext servletContext = servletContextEvent.getServletContext();\n RemotingServlet remotingServlet = new RemotingServlet();\n try {\n remotingServlet.init(new CubaServletConfig(\"remoting\", servletContext));\n } catch (ServletException e) {\n throw new RuntimeException(\"An error occurred while initializing remoting servlet\", e);\n }\n ServletRegistration.Dynamic remotingReg = servletContext.addServlet(\"remoting\", remotingServlet);\n remotingReg.addMapping(\"/remoting/*\");\n remotingReg.setLoadOnStartup(0);\n\n FilterRegistration.Dynamic filterReg = servletContext.addFilter(\"CoreSingleWarHttpFilter\", new SetClassLoaderFilter());\n filterReg.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST), false, \"/remoting/*\");\n\n } catch (RuntimeException e) {\n log.error(\"Error initializing core servlets\", e);\n\n try {\n ApplicationContext springContext = AppContext.getApplicationContext();\n if (springContext != null) {\n ((ConfigurableApplicationContext) springContext).close();\n }\n } catch (Exception e1) {\n log.debug(\"Error closing application context: {}\", e1.toString());\n }\n\n throw e;\n }\n }",
"@Override\r\n\tpublic void contextInitialized(ServletContextEvent event) {\r\n\t\tinvoke(\"contextInitialized\", event);\r\n\t}",
"private Servlets() {\n\t\tthrow new AssertionError();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t}",
"@Override\n\tpublic void contextInitialized(ServletContextEvent sce) {\n\t\tServletContextListener.super.contextInitialized(sce);\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\t\n\t}",
"@Override\n public void init(ServletConfig servletConfig) throws ServletException {\n }",
"public void init() throws ServletException {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t}",
"@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\r\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tCptedController.getInstance();\r\n\t}",
"@Override\n public void onStartup(ServletContext servletContext) throws ServletException {\n\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\n\trootContext.register(HealthCheckRootConfig.class);\n\n\t// Manage the lifecycle of the root application context\n\tservletContext.addListener(new ContextLoaderListener(rootContext));\n\n\t// Create the dispatcher servlet's Spring application context\n\tAnnotationConfigWebApplicationContext dispatcherContext = new AnnotationConfigWebApplicationContext();\n\tdispatcherContext.register(HealthCheckServletContext.class);\n\n\t// Register and map the dispatcher servlet\n\tServletRegistration.Dynamic dispatcher = servletContext.addServlet(\"dispatcher\",\n\t\tnew DispatcherServlet(dispatcherContext));\n\tdispatcher.setLoadOnStartup(1);\n\tdispatcher.addMapping(\"/\");\n\n\tservletContext.addFilter(\"CharacterEncodingFilter\", CharacterEncodingFilter.class)\n\t\t.addMappingForUrlPatterns(null, true, \"/*\");\n\tMap<String, String> charEncodingFilterInitParams = new HashMap<>();\n\tcharEncodingFilterInitParams.put(\"encoding\", \"UTF-8\");\n\tcharEncodingFilterInitParams.put(\"forceEncoding\", \"true\");\n\tservletContext.getFilterRegistration(\"CharacterEncodingFilter\").setInitParameters(charEncodingFilterInitParams);\n\n }",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}"
] | [
"0.6896426",
"0.6353606",
"0.6306136",
"0.60947394",
"0.607446",
"0.60468674",
"0.60224736",
"0.60224736",
"0.6015112",
"0.59910387",
"0.59626496",
"0.5922739",
"0.58981234",
"0.5892981",
"0.58734196",
"0.5857002",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.58508056",
"0.5844411",
"0.58000904",
"0.57980436",
"0.57817787",
"0.5778726",
"0.57557726",
"0.57522213",
"0.57522213",
"0.57522213",
"0.57192683",
"0.5682277",
"0.5672798",
"0.5672523",
"0.56665796",
"0.56665796",
"0.5651212",
"0.5651212",
"0.5651212",
"0.5651212",
"0.5651212",
"0.56457543",
"0.56381893",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5635958",
"0.5631405"
] | 0.705042 | 0 |
Verifies that servlets preload in the order specified. SimpleGetServlet and each of its subclasses adds its classname to the 'initialized' context attribute. | public void testLoadOrder() throws Exception {
WebXMLString wxs = new WebXMLString();
wxs.addServlet( "servlet1", "one", Servlet1.class );
wxs.setLoadOnStartup( "servlet1", 2 );
wxs.addServlet( "servlet2", "two", Servlet2.class );
wxs.setLoadOnStartup( "servlet2", 3 );
wxs.addServlet( "servlet3", "three", Servlet3.class );
wxs.setLoadOnStartup( "servlet3", 1 );
ServletRunner sr = new ServletRunner( toInputStream( wxs.asText() ) );
ServletUnitClient wc = sr.newClient();
InvocationContext ic = wc.newInvocation( "http://localhost/two" );
assertEquals( "Initialized servlets", "Servlet3,Servlet1,Servlet2", ic.getServlet().getServletConfig().getServletContext().getAttribute( "initialized" ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testLoadOnStartup() throws Exception {\n WebXMLString wxs = new WebXMLString();\n wxs.addServlet( \"servlet1\", \"one\", Servlet1.class );\n wxs.setLoadOnStartup( \"servlet1\" );\n wxs.addServlet( \"servlet2\", \"two\", Servlet2.class );\n wxs.addServlet( \"servlet3\", \"three\", Servlet3.class );\n \n ServletRunner sr = new ServletRunner( toInputStream( wxs.asText() ) );\n ServletUnitClient wc = sr.newClient();\n InvocationContext ic = wc.newInvocation( \"http://localhost/three\" );\n assertEquals( \"Initialized servlets\", \"Servlet1,Servlet3\", ic.getServlet().getServletConfig().getServletContext().getAttribute( \"initialized\" ) );\n }",
"public void init() throws ServletException{\n\t\tSystem.out.println(this.getServletName()+\" is INITILIAZED\");\n\t\tsuper.init();\n\t}",
"protected void delayedInit() throws ServletException {\n\t\tThread currentThread = Thread.currentThread();\n\t\tClassLoader tccl = currentThread.getContextClassLoader();\n\t\tcurrentThread.setContextClassLoader(WebSocketServlet.class.getClassLoader());\n\t\ttry {\n\t\t\tsuper.init();\n\t\t} finally {\n\t\t\tcurrentThread.setContextClassLoader(tccl);\n\t\t}\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\tcounter = 1;\n\t\tSystem.out.println(\"Servlet Init Call\");\n\t}",
"public void testInitAccuracy() throws Exception {\r\n // Initial the vairables.\r\n servlet.init(config);\r\n assertEquals(\"init fails.\", \"UserId\",\r\n TestHelper.getVariable(AjaxSupportServlet.class, \"userIdAttributeName\", servlet));\r\n\r\n Map handlers = (Map) TestHelper.getVariable(AjaxSupportServlet.class, \"handlers\", servlet);\r\n assertEquals(\"destroy fails\", 5, handlers.size());\r\n\r\n assertTrue(\"init fails\",\r\n handlers.get(\"SetScorecardStatus\") instanceof SetScorecardStatusHandler);\r\n assertTrue(\"init fails\",\r\n handlers.get(\"LoadTimelineTemplate\") instanceof LoadTimelineTemplateHandler);\r\n assertTrue(\"init fails\",\r\n handlers.get(\"SetTimelineNotification\") instanceof SetTimelineNotificationHandler);\r\n assertTrue(\"init fails\", handlers.get(\"PlaceAppeal\") instanceof PlaceAppealHandler);\r\n assertTrue(\"init fails\", handlers.get(\"ResolveAppeal\") instanceof ResolveAppealHandler);\r\n }",
"@Override\n\tpublic void init() throws ServletException {\n\t\tSystem.out.println(\"Servlet initializing\");\n\t}",
"public void testMergingServletWithInitParamsThatIsAlreadyDefined() throws Exception\n {\n String srcXml = \"<web-app>\".trim()\n + \" <servlet>\".trim()\n + \" <servlet-name>s1</servlet-name>\".trim()\n + \" <servlet-class>sclass1</servlet-class>\".trim()\n + \" <load-on-startup>1</load-on-startup>\".trim()\n + \" </servlet>\".trim()\n + \"</web-app>\";\n WebXml srcWebXml = WebXmlIo.parseWebXml(\n new ByteArrayInputStream(srcXml.getBytes(StandardCharsets.UTF_8)), null);\n String mergeXml = \"<web-app>\"\n + \" <servlet>\".trim()\n + \" <servlet-name>s1</servlet-name>\".trim()\n + \" <servlet-class>sclass1</servlet-class>\".trim()\n + \" <init-param>\".trim()\n + \" <param-name>s1param1</param-name>\".trim()\n + \" <param-value>s1param1value</param-value>\".trim()\n + \" </init-param>\".trim()\n + \" </servlet>\".trim()\n + \"</web-app>\";\n WebXml mergeWebXml = WebXmlIo.parseWebXml(\n new ByteArrayInputStream(mergeXml.getBytes(StandardCharsets.UTF_8)), null);\n WebXmlMerger merger = new WebXmlMerger(srcWebXml);\n merger.merge(mergeWebXml);\n Element servletElement = WebXmlUtils.getServlet(srcWebXml, \"s1\");\n assertEquals(\"load-on-startup\",\n ((Element) servletElement.getChildren().get(servletElement.getChildren().size() - 1))\n .getName());\n }",
"public void contextInitialized(ServletContextEvent event) {\n\t\tthis.contextLoader = createContextLoader();\n\t\tif (this.contextLoader == null) {\n\t\t\tthis.contextLoader = this;\n\t\t}\n\t\tthis.contextLoader.initWebApplicationContext(event.getServletContext());\n\t\tUserBuffer.getInstance();\n\t}",
"@Override\n public void onStartup(ServletContext servletContext) throws ServletException {\n this.addServlet(servletContext);\n }",
"protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNames();\n\n for (String name : names) {\n System.out.println(\"name:\" + name);\n }\n }",
"public void contextInitialized(ServletContextEvent event) {\r\n \t\r\n }",
"@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t}",
"@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t}",
"@Override\r\n public void contextInitialized(ServletContextEvent servletContextEvent) {\r\n \r\n }",
"protected void setUpServletObjects() throws Exception\n {\n servletContext = new MockServletContext();\n config = new MockServletConfig(servletContext);\n session = new MockHttpSession();\n session.setServletContext(servletContext);\n request = new MockHttpServletRequest(session);\n request.setServletContext(servletContext);\n response = new MockHttpServletResponse();\n }",
"public void init() throws ServletException {\n }",
"public void init() throws ServletException {\n\t\t\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\r\n\r\n\t}",
"public void init()\n {\n context = getServletContext();\n parameters = (Siu_ContainerLabel)context.getAttribute(\"parameters\");\n }",
"@Override\r\n\tpublic void contextInitialized(ServletContextEvent event) {\r\n\t\tinvoke(\"contextInitialized\", event);\r\n\t}",
"@Override\n\tpublic void init() throws ServletException\n\t{\n\t\tsuper.init();\n\t\t\n\t\tActiveUsers = (HashMap<String, User>) getServletContext().getAttribute(\"ActiveUsers\");\n\t\tMessages = (ArrayList<Message>) getServletContext().getAttribute(\"Messages\");\n\t\t\n\t\tif(ActiveUsers == null)\n\t\t{\n\t\t\tActiveUsers = new HashMap<String, User>();\n\t\t\tgetServletContext().setAttribute(\"ActiveUsers\", ActiveUsers);\n\t\t}\n\t\t\n\t\tif(Messages == null)\n\t\t{\n\t\t\tMessages = new ArrayList<Message>();\n\t\t\tgetServletContext().setAttribute(\"Messages\", Messages);\n\t\t}\n\t}",
"private void initStandardParams(ServletHolder jerseyServlet) {\n String initClasses = jerseyServlet.getInitParameter(ServerProperties.PROVIDER_CLASSNAMES);\n if (initClasses != null) {\n return;\n }\n\n initClasses = classProvider;\n\n if (this.swaggerId != null) {\n initClasses += \",\" + SWAGGER_INIT_CLASSNAMES_PARAM_VALUE;\n\n jerseyServlet.setInitParameter(SWAGGER_CONTEXT_ID, swaggerId);\n jerseyServlet.setInitParameter(SWAGGER_SCANNER_ID, swaggerId);\n }\n\n jerseyServlet.setInitParameter(ServerProperties.PROVIDER_CLASSNAMES, initClasses);\n\n jerseyServlet.setInitParameter(ServerProperties.METAINF_SERVICES_LOOKUP_DISABLE, \"true\");\n }",
"protected void processInit(ServletConfig cfg) throws ServletException\n {\n }",
"@Override\n\tpublic void init() throws ServletException {\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t}",
"@Override\n public void init(ServletConfig servletConfig) throws ServletException {\n }",
"private Servlets() {\n\t\tthrow new AssertionError();\n\t}",
"@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}",
"@Override\n public void init() {\n ServletContext context = getServletContext();\n KeyLoader loader = new KeyLoader();\n\n context.setAttribute(\"translateKey\", loader.getKey(TRANSLATE));\n context.setAttribute(\"authKey\", loader.getKeyBytes(AUTH));\n context.setAttribute(\"servletRoles\", getServletRoles());\n }",
"@Override\n\tpublic void init(ServletConfig arg0) throws ServletException {\n\t\t\n\t}",
"@Override\n\tpublic void init(ServletConfig arg0) throws ServletException {\n\t\t\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\t\n\t}",
"public void init() throws ServletException {\r\n\t\t\r\n\t}",
"private void init(final ServletContextInitializer... initializers) {\n registrar = new HttpServiceServletContext(context);\n Stream.of(initializers).forEach(it -> {\n try {\n it.onStartup(registrar);\n } catch (final ServletException e) {\n throw new IllegalStateException(e);\n }\n });\n // do the actual registrations\n registrar.servletRegistrations.forEach(it -> it.callback.accept(it.config));\n registrar.filterRegistrations.forEach(it -> {\n if (!it.getUrlPatternMappings().isEmpty()) {\n it.callback.accept(it.config);\n }\n if (!it.servletBindings.isEmpty()) {\n it.servletBindings.forEach(sb -> {\n final ServletRegistration servlet = registrar.getServletRegistration(sb.servletName);\n if (servlet == null) {\n throw new IllegalArgumentException(\"Missing servlet '\" + sb.servletName + \"'\");\n }\n\n final Hashtable<String, Object> config = new Hashtable<>(it.config);\n config.remove(\"osgi.http.whiteboard.filter.pattern\");\n config.remove(\"osgi.http.whiteboard.filter.dispatcher\");\n config.remove(Constants.SERVICE_RANKING);\n config.put(\"osgi.http.whiteboard.filter.dispatcher\", sb.dispatcherType.name());\n it.addMappingForUrlPatterns(\n EnumSet.of(sb.dispatcherType), sb.isMatchAfter,\n servlet.getMappings().toArray(new String[0]));\n it.callback.accept(config);\n });\n }\n });\n }",
"@Override\n public void contextInitialized(ServletContextEvent servletContextEvent) {\n super.contextInitialized(servletContextEvent);\n\n try {\n ServletContext servletContext = servletContextEvent.getServletContext();\n RemotingServlet remotingServlet = new RemotingServlet();\n try {\n remotingServlet.init(new CubaServletConfig(\"remoting\", servletContext));\n } catch (ServletException e) {\n throw new RuntimeException(\"An error occurred while initializing remoting servlet\", e);\n }\n ServletRegistration.Dynamic remotingReg = servletContext.addServlet(\"remoting\", remotingServlet);\n remotingReg.addMapping(\"/remoting/*\");\n remotingReg.setLoadOnStartup(0);\n\n FilterRegistration.Dynamic filterReg = servletContext.addFilter(\"CoreSingleWarHttpFilter\", new SetClassLoaderFilter());\n filterReg.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST), false, \"/remoting/*\");\n\n } catch (RuntimeException e) {\n log.error(\"Error initializing core servlets\", e);\n\n try {\n ApplicationContext springContext = AppContext.getApplicationContext();\n if (springContext != null) {\n ((ConfigurableApplicationContext) springContext).close();\n }\n } catch (Exception e1) {\n log.debug(\"Error closing application context: {}\", e1.toString());\n }\n\n throw e;\n }\n }",
"@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t}",
"@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t}",
"@Override\r\n public void init(ServletConfig arg0) throws ServletException {\n\r\n }",
"@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\tSystem.out.println(\"init\");\n\t}",
"public void init(ServletConfig arg0) throws ServletException {\n\t\t\r\n\t}",
"@Override\r\npublic void init(ServletConfig config) throws ServletException {\r\n super.init(config);\r\n}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}"
] | [
"0.6980843",
"0.5991233",
"0.5936221",
"0.5916132",
"0.5833203",
"0.57642025",
"0.5659681",
"0.56177515",
"0.55468065",
"0.55458647",
"0.5525422",
"0.55250424",
"0.55250424",
"0.55233425",
"0.5511988",
"0.54930425",
"0.54690063",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54569024",
"0.54554504",
"0.54281855",
"0.54179317",
"0.5412013",
"0.54068923",
"0.5390811",
"0.5379138",
"0.5379138",
"0.5379138",
"0.53632164",
"0.53625363",
"0.5347549",
"0.53469217",
"0.5340244",
"0.5340244",
"0.53291565",
"0.5322642",
"0.5292996",
"0.5275398",
"0.5274426",
"0.5274426",
"0.52611655",
"0.52611655",
"0.52611655",
"0.52611655",
"0.52611655",
"0.5257343",
"0.52476853",
"0.52475494",
"0.5245565",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455",
"0.5240455"
] | 0.7506945 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner obj=new Scanner(System.in);
System.out.println("Enter a number");
int n=obj.nextInt();
double ans=0;
int flag=0;
if(n==1||n==2)
{
System.out.println("Number is not prime.");
}
else
{
for(int i=2;i<n;i++)
{
if(n%i==0)
{
System.out.println("Number is not prime.");
flag=1;
break;
}
}
if(flag==0)
{
System.out.println("Number is prime.");
}
flag=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 |
Set the obstacle at a given grid position | public void setObstacle(int i, int j, int k) {
obstacle[i][j][k] = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setObstacleCell(int row, int col, boolean obstacle) {\n if (obstacle && (in_start(row, col) || in_goal(row, col)))\n return;\n\n grid[row][col].setIsObstacle(obstacle);\n\n if (row >= 1) {\n grid[row - 1][col].setVirtualWall(obstacle); // bottom cell\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row - 1][col + 1].setVirtualWall(obstacle); // bottom-right cell\n }\n\n if (col >= 1) {\n grid[row - 1][col - 1].setVirtualWall(obstacle); // bottom-left cell\n }\n }\n\n if (row < MapConstant.MAP_X - 1) {\n grid[row + 1][col].setVirtualWall(obstacle); // top cell\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row + 1][col + 1].setVirtualWall(obstacle); // top-right cell\n }\n\n if (col >= 1) {\n grid[row + 1][col - 1].setVirtualWall(obstacle); // top-left cell\n }\n }\n\n if (col >= 1) {\n grid[row][col - 1].setVirtualWall(obstacle); // left cell\n }\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row][col + 1].setVirtualWall(obstacle); // right cell\n }\n }",
"private void setGridElement (int row, int column, Player player)\n {\n mGrid[row][column] = new Move(player, row, column);\n }",
"@Override\n public void setLocation(ITileGrid grid, int x, int y) {\n var tile = grid.getTile(x, y);\n pos = tile.getPixelCenterLocation(grid.getTileSize());\n }",
"private void setCell(int x, int y, int newValue) {\n hiddenGrid[x][y] = newValue;\n }",
"public void setGrid(int x, int y, boolean b){\n\t\tgrid[x][y] = b;\n\t}",
"private void updateGridWithPosition(Pair<Integer, Integer> position) {\n int x = position.getValue0();\n int y = position.getValue1();\n int ox = origin.getValue0();\n int oy = origin.getValue1();\n while (ox + Math.abs(x) >= grid[0].length || oy + Math.abs(y) >= grid.length) {\n reallocateGrid();\n }\n if (x >= 0 && y >= 0) {\n grid[oy + y][ox + x] = '#';\n } else if (x >= 0) {\n grid[oy - Math.abs(y)][ox + x] = '#';\n } else if (y >= 0) {\n grid[oy + y][ox - Math.abs(x)] = '#';\n } else {\n grid[oy - Math.abs(y)][ox - Math.abs(x)] = '#';\n }\n }",
"private void setStart(int a_x, int a_y)\n {\n if(!isObstacle(m_grid[a_x][a_y]))\n {\n if(m_startPoint != null)\n m_grid[(int)m_startPoint.x][(int)m_startPoint.y] = Map.NIL;\n\n m_startPoint = new Vector2d(a_x,a_y);\n m_grid[(int)m_startPoint.x][(int)m_startPoint.y] = Map.START;\n }\n }",
"public void Obstaclemove() {\n for (int i = 0; i < getNumberObstacles(); i++) {\n if (ObstacleDeplace.class.isInstance(getObstacle()[i])) {\n getObstacle()[i].setX(getObstacle()[i].getX() - getObstacle()[i].getSpeed());\n\n if (getObstacle()[i].getX() < -200) {\n getObstacle()[i].setX(600);\n getObstacle()[i].setSpeed(randomGenerator.nextFloat());\n }\n }\n setChanged();\n notifyObstacle(i, getObstacle()[i].getX(), getObstacle()[i].getY());\n }\n }",
"public void setGrid(int x ,int y,char newValue){\n\t\tGrid[x][y] = newValue;\n\t}",
"public void setSpaceAt(int x, int y, int val){\n grids[x][y].setValue(val);\n }",
"protected abstract void setCell(int x, int y, boolean state);",
"@Override\r\n\tpublic void setCell(Integer x, Integer y, Integer value) {\n\t\tgame[x][y] = value;\r\n\t}",
"public void setConstructingObstacle(Obstacle obstacle);",
"public void setTileStatus(int x, int y, TileStatus ts) throws IndexOutOfBoundsException{\n if(x < 0 || y < 0 || x >= grid.length || y >= grid[0].length) {\n throw new IndexOutOfBoundsException(\"Il n'existe pas de tuile à la position (\"+x+\",\"+y+\")\");\n }\n grid[x][y].setStatus(ts);\n }",
"@Override\n\tpublic void update() {\n\t\tthis.setBounds(obstacle.getCoords().getX() * 64, obstacle.getCoords().getY() * 64, 64, 64);\n\t}",
"public void addObstacle(Coord obstacleCoord);",
"public void setPlayerGrid(){\n\t\tplayerGrid = new Grid(true);\n\t\tsetShips(playerGrid,playerBattleShipsList,0);//2\n\t}",
"private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}",
"void setPosition(Tile t);",
"public void setMoveTo(Coordinate coordinate);",
"public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}",
"public void setStartingPosition(GameTile [][] visibleMap) {\r\n\t\t//method to set the starting position of our player.\r\n\t\tfor(int i=0; i<visibleMap.length; i++) {\r\n\t\t\tfor(int j=0; j<visibleMap[i].length; j++) {\r\n\t\t\t\tif(visibleMap[i][j] != null && visibleMap[i][j].hasPlayer()) {\r\n\t\t\t\t\tplayerX = i;\r\n\t\t\t\t\tplayerY = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void robotInAGrid(int[][] grid) {\n\n }",
"public abstract void manageCell(int x, int y, int livingNeighbours);",
"public abstract Piece setLocation(int row, int column);",
"void setPosition(double xPos, double yPos);",
"void setPos(float x, float y);",
"private Cell[][] updateCellLocation(Cell[][] grid) {\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n grid[x][y].setXCord(x); //Set the new X co-ordinate\n grid[x][y].setYCord(y); //Set the new Y co-ordinate\n }\n }\n\n return grid;\n }",
"public void setData(int x,int y,boolean v){\r\n\t\tgrid[x][y] = v;\r\n\t}",
"protected abstract void setTile( int tile, int x, int y );",
"public void setPosition(float x, float y);",
"@Override\n\tpublic void setByteAtPos(int x, int y, byte byteP) {\n\t\tmapGrid[x][y] = byteP;\n\t}",
"public boolean onGrid(int xValue, int yValue);",
"void setLocation(int x, int y);",
"public static void setHardLevelObstacles() {\n\t\t// Setting values for obstacles\n\t\tint selectedPlatform = 0;\n\t\tint selectedXPart = 0;\n\t\tfor(int i = 0; i < obstacle.length; i++) {\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tobstacle[i].setSize(OBSTACLE_WIDTH, OBSTACLE_HEIGHT);\n\t\t\t\tobstacle[i].setObstacleImage(Engine.pickRandomImage(imgObstacle));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tobstacle[i].setSize(OBSTACLE_LARGE_WIDTH, OBSTACLE_LARGE_HEIGHT);\n\t\t\t\tobstacle[i].setObstacleImage(Engine.pickRandomImage(imgObstacleLarge));\n\t\t\t}\n\n\t\t\tint x;\n\t\t\tint y;\n\t\t\tint randomOffset = (int) (Math.random() * OBSTACLE_INCREASE);\n\t\t\t\t\n\t\t\t// X CALCULATION //\n\t\t\t\n\t\t\t// Place on second platform\n\t\t\tif((float) i / 6 == 1) {\n\t\t\t\tselectedPlatform++;\n\t\t\t\tselectedXPart = 0;\n\t\t\t}\n\t\t\t// Place on third and last platform\n\t\t\tif((float) i / 6 == 2) {\n\t\t\t\tselectedPlatform++;\n\t\t\t\tselectedXPart = 0;\n\t\t\t}\n\t\t\t// Next \"third part section\" of the platform \n\t\t\tif(i % 2 == 0) selectedXPart += 2;\n\t\t\t\n\t\t\tif(selectedXPart != 6) x = platform[selectedPlatform].getX() + (OBSTACLE_INCREASE * (selectedXPart - 1)) + randomOffset;\n\t\t\telse x = platform[selectedPlatform].getX() + (OBSTACLE_INCREASE * (selectedXPart - 1)) + randomOffset - OBSTACLE_LARGE_WIDTH;\n\t\t\t\n\t\t\t// Y CALCULATION //\n\t\t\t\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tint temp = (int) (Math.random() * 10);\n\t\t\t\tif(temp <= 5) y = ground[selectedPlatform].getY() - Init.getObstacleGroundOffset();\n\t\t\t\telse y = platform[selectedPlatform].getY() + Init.getObstaclePlatformOffset();\n\t\t\t}\n\t\t\telse y = platform[selectedPlatform].getY() - Init.getObstacleLargePlatformOffset();\n\t\t\t\n\t\t\tobstacle[i].setLocation(x, y);\n\t\t}\n\t}",
"public static native void OpenMM_AmoebaTorsionTorsionForce_setTorsionTorsionGrid(PointerByReference target, int index, PointerByReference grid);",
"public void setAiGrid() {\n\t\taiGrid = new Grid(false);\n\t\tsetShips(aiGrid,aiBattleShipsList,0);//1\n\t}",
"private void updateGrid() {\n\t\tfor (Neighbor neighbor : upsetNeighbors) {\n\t\t\tClear vacated_cell = new Clear(neighbor.getCoordsX(), neighbor.getCoordsY());\n\t\t\tgrid.setGridIndex(vacated_cell, vacated_cell.getCoordsX(), vacated_cell.getCoordsY());\n\t\t\tCell new_location = availableSpaces.get((int) (Math.random() * (availableSpaces.size() - 1)));\n\t\t\tint new_x = new_location.getCoordsX();\n\t\t\tint new_y = new_location.getCoordsY();\n\t\t\tif (neighbor.getClass().equals(Group1.class))\n\t\t\t\tgrid.setGridIndex(new Group1(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\telse\n\t\t\t\tgrid.setGridIndex(new Group2(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\tavailableSpaces.remove(new_location);\n\t\t\tavailableSpaces.add(vacated_cell);\n\t\t}\n\t}",
"void obstaclesCallback(final GridCells msg){\n int num_obst = msg.getCells().size();\n me.obstacle_lock_.lock();\n try{\n me.obstacle_points_.clear();\n\n for (int i = 0; i < num_obst; i++) {\n PointStamped in=messageFactory.newFromType(PointStamped._TYPE);\n PointStamped result=messageFactory.newFromType(PointStamped._TYPE);\n in.setHeader(msg.getHeader());\n in.setPoint(msg.getCells().get(i));\n //ROS_DEBUG(\"obstacle at %f %f\",msg->cells[i].x,msg->cells[i].y);\n //TODO:Need Transform\n/* try {\n tf_->waitForTransform(global_frame_, robot_base_frame_, msg->header.stamp, ros::Duration(0.2));\n\n tf_->transformPoint(global_frame_, in, result);\n }\n catch (tf::TransformException ex){\n ROS_ERROR(\"%s\",ex.what());\n return;\n };*/\n\n me.obstacle_points_.add(new Vector2(result.getPoint().getX(),result.getPoint().getY()));\n }\n }finally {\n me.obstacle_lock_.unlock();\n }\n\n }",
"public void updategrid(int[][] grid) {\n this.grid = grid;\n }",
"public void setShip(int row, int column, boolean value) {\n\t\tthis.grid[row][column].setShip(value);\n\t}",
"public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }",
"public void setLocation(float x, float y);",
"public abstract void setPosition(Point2D position);",
"void setGridX(int i);",
"public GridPosition(int x, int y) {\n this.posX = x;\n this.posY = y;\n }",
"public void setAsObstacle() {\n\t\tnodeStatus = Status.obstacle;\n\t}",
"private void setFixedTile(FixedTile tile, int x, int y) {\r\n\t\tGridSquare.Type type = tile.getType();\r\n\t\tfor(int i = x; i < x+3; i++) {\r\n\t\t\tfor(int j = y; j < y+3; j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(type) , i, j);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setBoardLocation(int boardLocation) {this.boardLocation = boardLocation;}",
"void setGridY(int i);",
"private void setCell(boolean[][] board, int i, int j) {\n\t\tint numOfNeighbors = getNeighbors(board, i, j);\n\t\tif(board[i][j]) { // if alive\n\t\t\tif(numOfNeighbors < 2 || numOfNeighbors >= 4) {\n\t\t\t\ttempBoard[i][j] = false; // kill cell\n\t\t\t}\n\t\t}else{ // if dead\n\t\t\tif(numOfNeighbors == 3)\n\t\t\t\ttempBoard[i][j] = true; // become alive\n\t\t}\n\t}",
"private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }",
"void setPosition(Point point);",
"public abstract void setCells(int x, int y, int [][] pattern);",
"public void testSetCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.setCell(1, 2, MineSweeperCell.FLAGGED_MINE);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\");\r\n }",
"public void setOpBoardMove(int row, int col, int oppiece)\n\t{\n\t\tboard[row][col] = oppiece;\n\t}",
"public void move(Cell[][] board) {\n Cell[] nextCells = generateNeighbors(this.x, this.y);\n Cell nextCell = nextCells[rand.nextInt(4)];\n if (!this.objectFound) {\n if (nextCell != null && nextCell.isOccupied() && nextCell.occupiedBy instanceof Integer) {\n this.objectFound = true;\n this.goal = nextCell;\n } else if (nextCell != null && !nextCell.isOccupied()) {\n synchronized (board[this.x][this.y]) {\n board[this.x][this.y].resetCell();\n nextCell.occupiedBy = this;\n }\n }\n } else {\n // bfs to location\n System.out.println(\"BFS to goal\");\n }\n }",
"void setPos(Vec3 pos);",
"void setCurrentPosition(Square currentPosition);",
"@Override public void setPosition(double nx, double ny) {\n super.setPosition(nx, ny);\n ppx = px = nx;\n ppy = py = ny;\n }",
"private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}",
"public Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}",
"public void setGrid(Grid grid) {\n if (grid == null) {\n throw new IllegalArgumentException(\"Invalid Grid\");\n }\n this.grid = grid;\n }",
"public void mark(int x, int y, int marker) {\n grid[x][y] = marker;\n }",
"public void setPiece(int x, int y, int player) throws GameException {\n if (!squareInBounds(x, y)) {\n throw new GameException(\"Square is off the board\");\n }\n int arrayPos = getArrayPos(x, y);\n if (!isSquareFree(arrayPos)) {\n throw new GameException(\"Location is already taken\");\n }\n ;\n setSurrounding(x, y);\n intArray[arrayPos] = player;\n }",
"public void setRobotLocation(Point p);",
"public void set (Piece p, int x, int y){\n\t\t\t\t\n\t\tboard[x][y] = p;\n\t}",
"protected abstract void position(int[][] gameboard, int col, int row);",
"void setPosition(){\n Random random =new Random();\n position = new Position(random.nextInt(maxrows),random.nextInt(maxcols));\n\n }",
"void setEnemyPos(Point2D pos);",
"public void move(@NotNull Map map, int x, int y)\n {\n if (map.map[this.x + x][this.y + y].isBlocking)\n {\n x = 0;\n y = 0;\n }\n\n this.x += x;\n this.y += y;\n }",
"public void setPosition(Vector2 position);",
"void setPosition(Unit unit, MapLocation position);",
"public void setToCoordinates(int toX, int toY);",
"void setPosition(Position position);",
"void setPosition(Position position);",
"public void updatePosition(){\n\t\t//maps the position to the closest \"grid\"\n\t\tif(y-curY>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY+GameSystem.GRID_SIZE;\n\t\t\tyGridNearest++;\n\t\t}\n\t\telse if(curX-x>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX-GameSystem.GRID_SIZE;\n\t\t\txGridNearest--;\n\t\t}\n\t\telse if(x-curX>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX+GameSystem.GRID_SIZE;\n\t\t\txGridNearest++;\n\t\t}\n\t\telse if(curY-y>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY-GameSystem.GRID_SIZE;\n\t\t\tyGridNearest--;\n\t\t}\n\t\t//sets the last completely arrived location grid\n\t\tif(y-yTemp>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp+GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY++;\n\t\t}\n\t\telse if(xTemp-x>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp-GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX--;\n\t\t}\n\t\telse if(x-xTemp>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp+GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX++;\n\t\t}\n\t\telse if(yTemp-y>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp-GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY--;\n\t\t}\n\t\t//only updates nextX and nextY when the move buttons are being pressed down\n\t\t/*\n\t\tif(movable){\n\t\t\tif(direction.equals(\"right\")){\n\t\t\t\t\tnextX=lastX+1;\n\t\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"left\")){\n\t\t\t\tnextX=lastX-1;\n\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"up\")){\n\t\t\t\tnextY=lastY-1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t\telse if(direction.equals(\"down\")){\n\t\t\t\tnextY=lastY+1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t}\n\t\t*/\n\t\t\n\t}",
"void setMaze(IMaze maze);",
"public void move(Location moveTo){\n if(canMove(moveTo)){\n removeFromGrid();\n setDirection(Location.NORTH);\n getLocation().setX(moveTo.getX());\n getLocation().setY(moveTo.getY());\n theWorld.add(this, getLocation().getX(), getLocation().getY());\n putInGrid(theWorld,getLocation().getX(),getLocation().getY());\n }\n }",
"public static void robotInAGrid(){\n\t\tArrayList<Point> fails = new ArrayList<Point>(); //contains unreachable points\n\t\t//to start we'll put all \"off limits\" points in fails and then we'll add any points we determine to be unreachable as we go\n\t\tfor(int r = 0; r< grid.length; r++){\n\t\t\tfor(int c = 0; c <grid[0].length; c++){\n\t\t\t\tif(grid[r][c] == 1){\n\t\t\t\t\tfails.add(new Point(r, c));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tArrayList<Point> path = new ArrayList<Point>(); //contains the robot's path\n\t\t//call our recursive helper function\n\t\tif(getPath(grid.length-1, grid[0].length-1, path, fails)){\n\t\t\tfor(Point p: path){\n\t\t\t\tSystem.out.print(\"(\" + p.x + \", \" + p.y + \"), \");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No path is possible\");\n\t\t}\n\t}",
"public void snapToGrid(Player pl) {\n\t\t// Find the closest spot\n\t\t\n\t\tif(pl.getVelocity().x == 0 && pl.getLocation().x - 2 % 16 != 0)\n\t\t{\n\t\t\tfloat locationX = Math.round(pl.getLocation().x / 16f);\n\t\t\tfloat preferredX = (locationX * 16) + 2f;\n\t\t\t\n\t\t\tfloat move = preferredX - pl.getLocation().x;\n\t\t\tif(Math.abs(move) > 0.1f)\n\t\t\t\tmove = 0.1f * Math.signum(move);\n\t\t\tpl.getLocation().x += move;\n\t\t}\n\t\t\n\t\tif(pl.getVelocity().y == 0 && pl.getLocation().y - 2 % 16 != 0)\n\t\t{\n\t\t\tfloat locationY = Math.round(pl.getLocation().y / 16f);\n\t\t\tfloat preferredY = (locationY * 16) + 2f;\n\t\t\t\n\t\t\tfloat move = preferredY - pl.getLocation().y;\n\t\t\tif(Math.abs(move) > 0.1f)\n\t\t\t\tmove = 0.1f * Math.signum(move);\n\t\t\tpl.getLocation().y += move;\n\t\t}\n\t\t\n\t}",
"public void setCellToPath(int pos){//how to check for the end???\n\t\t\n\t\tif(pos<0||pos>width*height-1||getCompletePath())\n\t\t\treturn;// the position entered is not valid or the path has already been completed\n\t\t\n\t\telse if(temp.isEmpty()){//no path tile have been defined\n\t\t\tif(currentPos<0){//start hasn't been placed\t\t\n\t\t\t\tcurrentPos=pos;\n\t\t\t\tcurrentPath=new Path(currentPos);\n\t\t\t\tsetEntryPoint(currentPath);\n\t\t\t\tsetGrid(currentPath.getRow(),currentPath.getCol(),currentPath);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint d = currentPath.getDirection(pos);\n\t\t\t\tif (d<0||d>=4)\n\t\t\t\t\treturn; //the two tiles are not connected\n\t\t\t\tPathType type =Map.createPathTileOfType(d, caseEdge);\n\t\t\t\tPath p =PathFactory.makePath(type, currentPos);\n\t\t\t\t\n\t\t\t\t//fix direction of tile\n\t\t\t\tif(p.getEntry()==pos)\n\t\t\t\t\tp.rotate();\n\t\t\t\t//validate spot (for entry/exit)\n\t\t\t\t\n\t\t\t\t//set as Path entry point \n\t\t\t\tp.setStart();\n\t\t\t\tsetEntryPoint(p);\n\t\t\t\t\n\t\t\t\t//add to grid and list\n\t\t\t\tp.storePathTile();\n\n\t\t\t\t//update current\n\t\t\t\tcurrentPos=pos;\n\t\t\t\tcurrentPath=new Path(currentPos);\t\t\n\t\t\t\tsetGrid(currentPath.getRow(),currentPath.getCol(),currentPath);\n\t\t\t}\t\t\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\tif (getGrid(pos/width, pos%width)!=null)\n\t\t\t\tif(getGrid(pos/width, pos%width).isPath())\n\t\t\t\t\treturn;//causes intersection\n\t\t\t\n\t\t\tint dExit = currentPath.getDirection(pos);\n\t\t\tint lastPos= temp.peekLast().getPos();\n\t\t\tint dEntry= currentPath.getDirection(lastPos);\n\n\t\t\t\n\t\t\tif (dExit<0||dExit>3||dEntry<0||dEntry>3)\n\t\t\t\treturn; //the two tiles are not connected\n\t\t\t\n\t\t\t\n\t\t\tPathType type =Map.createPathTileOfType(dExit,dEntry);\n\t\t\tPath p =PathFactory.makePath(type, currentPos);\n\t\t\t\n\t\t\t//fix direction of tile\n\t\t\tif(p.getEntry()==pos)\n\t\t\t\tp.rotate();\n\t\t\t\n\t\t\tif(!inValidSpot(p))\n\t\t\t\treturn; //\n\t\t\t\n\t\t\t//add to grid and list\n\t\t\tp.storePathTile();\n\t\t\t\n\t\t\t//update current\n\t\t\tcurrentPos=pos;\n\t\t\tcurrentPath=new Path(currentPos);\t\n\t\t\tsetGrid(currentPath.getRow(),currentPath.getCol(),currentPath);\n\t\t}\n\t}",
"public void setPosition(Point position);",
"public void move(FightCell cell);",
"public void init(){\n this.grid[7][6].setWall(ERRGameMove.DOWN, false);\n this.grid[8][6].setWall(ERRGameMove.DOWN, false);\n this.grid[7][9].setWall(ERRGameMove.UP, false);\n this.grid[8][9].setWall(ERRGameMove.UP, false);\n \n this.grid[6][7].setWall(ERRGameMove.RIGHT, false);\n this.grid[6][8].setWall(ERRGameMove.RIGHT, false);\n this.grid[9][7].setWall(ERRGameMove.LEFT, false);\n this.grid[9][8].setWall(ERRGameMove.LEFT, false);\n }",
"public void setGrid(int ingrid[][],int in_row_size,int in_col_size){\n grid=ingrid;\n row_size = in_row_size;\n col_size = in_col_size;\n }",
"public void setLoc(int x, int y) {\n locX = x;\n locY = y;\n }",
"public void setFromCoordinates(int fromX, int fromY);",
"private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }",
"protected void set(int row, int col, Cell cell) {\n\t\tmyGrid.set(row, col, cell);\n\t}",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}",
"@JsonIgnore\n\tpublic void setPositionByTile(Tile tile) {\n\t\tposition = new Position(tile.getXpos(),tile.getYpos(),tile.getTilex(),tile.getTiley());\n\t}",
"public void setPosition(Position pos);",
"public void setPathCo(Position pos, int val) {\n\t\tint x = pos.getX();\n\t\tint y = pos.getY();\n\t\tpathCo[x][y] = val;\n\t}",
"void setPosition(Position p);",
"public void setMove(char player, int place) {\n\n playBoard[place] = player;\n }",
"public void setPosition(Point newPosition);",
"public void setPosition(int xpos, int ypos) {\r\n this.xpos = xpos;\r\n this.ypos = ypos;\r\n bounds.x = xpos;\r\n bounds.y = ypos;\r\n }",
"public void PositionSet(int position);",
"private void setLocation() {\n switch (getKey()) {\n case UP:\n this.y_location = -136.8 - 6;\n this.y_tile = -1;\n this.positive = false;\n break;\n case DOWN:\n this.y_location = 136.8 + 6;\n this.y_tile = 1;\n break;\n case LEFT:\n this.x_location = -140.6 - 6;\n this.x_tile = -1;\n this.positive = false;\n break;\n case RIGHT:\n this.x_location = 140.6 + 6;\n this.x_tile = 1;\n break;\n default:\n break;\n }\n }"
] | [
"0.72625077",
"0.69769615",
"0.689634",
"0.66742647",
"0.66725004",
"0.65810066",
"0.6555636",
"0.65236354",
"0.64672554",
"0.64476657",
"0.63914955",
"0.63726586",
"0.6322201",
"0.6321513",
"0.6317028",
"0.6308328",
"0.63082016",
"0.6306073",
"0.6221155",
"0.62210244",
"0.62052447",
"0.61667943",
"0.6158583",
"0.61585194",
"0.6143741",
"0.6120735",
"0.6099863",
"0.609708",
"0.60544103",
"0.6044071",
"0.6032498",
"0.603026",
"0.60288364",
"0.6016588",
"0.59889454",
"0.59804845",
"0.5971054",
"0.5942497",
"0.59323823",
"0.59197724",
"0.591748",
"0.5913409",
"0.5898245",
"0.58830905",
"0.5877198",
"0.585801",
"0.5855559",
"0.5836986",
"0.5825415",
"0.58204997",
"0.5810394",
"0.58024937",
"0.5799535",
"0.5796479",
"0.57937956",
"0.57908493",
"0.576627",
"0.57591116",
"0.57533836",
"0.57532984",
"0.5750406",
"0.57336426",
"0.57310385",
"0.57251287",
"0.57193285",
"0.5715747",
"0.5703593",
"0.5702481",
"0.57006884",
"0.5698609",
"0.5688323",
"0.5687177",
"0.5686458",
"0.5684751",
"0.56764007",
"0.56764007",
"0.56708074",
"0.5665541",
"0.566168",
"0.5659609",
"0.5655631",
"0.5652394",
"0.56496614",
"0.5648352",
"0.56366044",
"0.56334776",
"0.5623151",
"0.5618596",
"0.56121796",
"0.5607972",
"0.5603963",
"0.55986094",
"0.55957234",
"0.559485",
"0.55895525",
"0.5589524",
"0.5587518",
"0.5585569",
"0.5584208",
"0.55839527"
] | 0.66653204 | 5 |
Set the depth values for the grid | public void setDepth(double[] depthValues) {
depth = depthValues;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDepth(double aDepth);",
"private final void setDepth(int depth){\n\t\tthis.depth = depth;\n\t}",
"public native void setDepth(int depth) throws MagickException;",
"public void setDepth(double depth) {\n\t\t this.depth = depth;\n\t }",
"public void setDepth(int depth) {\r\n this.depth = depth;\r\n }",
"public void setDepth(int newdepth)\n {\n depth = newdepth; \n }",
"void setColorDepth(int colorDepth);",
"public Builder setDepth(int value) {\n \n depth_ = value;\n onChanged();\n return this;\n }",
"private void createDepthMap() {\n\t\tdouble depthX = 0.0;\n\t\tdouble depthY = 0.0;\n\t\tdouble[][] depthMap = new double[I1.getRowDimension()][I1.getColumnDimension()];\n\t\tfor (int i=0; i < I1.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < I1.getColumnDimension(); j++) {\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tdepthX += this.Ny.getEntry(i, 0) / -this.Nz.getEntry(i, j) ;\n\t\t\t\t\tdepthY = 0.0;\n\t\t\t\t}\n\t\t\t\tdepthY += this.Nx.getEntry(i, j) / -this.Nz.getEntry(i, j);\n\t\t\t\tdepthMap[i][j] = depthX + depthY ;\n\t\t\t}\n\t\t}\t\n\t\tthis.D = MatrixUtils.createRealMatrix(depthMap);\n\t}",
"public Builder setDepth(float value) {\n bitField0_ |= 0x00000002;\n depth_ = value;\n onChanged();\n return this;\n }",
"public FractalTrace setDepth(int value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 65536 || value < 1)\n\t {\n\t throw new ParameterOutOfRangeException(value, 1, 65536);\n\t }\n\n m_Depth = value;\n setProperty(\"depth\", value);\n return this;\n }",
"public Builder setDepth(float value) {\n bitField0_ |= 0x00000004;\n depth_ = value;\n onChanged();\n return this;\n }",
"void setTemporaryMaxDepth(int depth);",
"public void setColorDepth(int depth) {\n this.standardPairs.put(Parameters.COLOR_DEPTH, Integer.toString(depth));\n }",
"void setDepthIndex(int depthIndex) {\n this.depthIndex = depthIndex;\n }",
"public static void setDepth(int dep) {\n depth = dep;\n }",
"public int setDepth(Integer depth) {\n try {\n setDepth(depth.floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }",
"public int setDepth(Float depth) {\n try {\n setDepth(depth.floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"public void setDepthImage(T depthImage) {\n\t\tthis.depthImage = depthImage;\n\t}",
"void incrementNewDepth() {\n mNewDepth++;\n }",
"float getDepth();",
"float getDepth();",
"void calculating(int depth);",
"public ReportParameters setDepth(int depth) {\n this.depth = depth;\n return this;\n }",
"@JSProperty(\"gridZIndex\")\n void setGridZIndex(double value);",
"private void assignDepths(String node, int depth){\n getDepth.put(node, depth);\n \tArrayList<String> children = adjacencyList.get(node);\n \n if (children == null) return;\n \t//if there are children, assign depths to each, and recurse\n if (!children.isEmpty()){\n\t \tdepth = depth +1;\n\t \tfor (String child : children) {\n\t \t assignDepths(child, depth);\n }\n }\n \n }",
"private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}",
"void setDimensions(double w, double h, double d) {\n width = w;\n height = h;\n d = depth;\n }",
"public void setFixedZdepth(int expectedZIndex);",
"public double getDepth();",
"public void initializeGrid() {\n resetGrid(_lifeGrid);\n\n _lifeGrid[8][(WIDTH / 2) - 1] = 1;\n _lifeGrid[8][(WIDTH / 2) + 1] = 1;\n _lifeGrid[9][(WIDTH / 2) - 1] = 1;\n _lifeGrid[9][(WIDTH / 2) + 1] = 1;\n _lifeGrid[10][(WIDTH / 2) - 1] = 1;\n _lifeGrid[10][(WIDTH / 2)] = 1;\n _lifeGrid[10][(WIDTH / 2) + 1] = 1;\n\n }",
"private void setNumbers() {\n\t\tint w = worldWidth;\n\t\tint h = worldHeight;\n\t\tfor (int x = 0; x <= w - 1; x++) {\n\t\t\tfor (int y = 0; y <= h - 1; y++) {\n\t\t\t\tint numbers = 0;\n\n\t\t\t\tint right = x + 1;\n\t\t\t\tint left = x - 1;\n\t\t\t\tint up = y - 1;\n\t\t\t\tint down = y + 1;\n\n\t\t\t\tif (left < 0) {\n\t\t\t\t\tleft = 0;\n\t\t\t\t}\n\t\t\t\tif (up < 0) {\n\t\t\t\t\tup = 0;\n\t\t\t\t}\n\t\t\t\tif (down >= h) {\n\t\t\t\t\tdown = h - 1;\n\t\t\t\t}\n\t\t\t\tif (right >= w) {\n\t\t\t\t\tright = w - 1;\n\t\t\t\t}\n\n\t\t\t\tfor (int m = left; m <= right; m++) {\n\t\t\t\t\tfor (int n = up; n <= down; n++) {\n\t\t\t\t\t\tif (!(m == x && n == y)) {\n\t\t\t\t\t\t\tif (tileArr[m][n].hasBomb()) {\n\t\t\t\t\t\t\t\tnumbers++;\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\ttileArr[x][y].setNeighbors(numbers);\n\t\t\t}\n\n\t\t}\n\n\t}",
"private void setDepthError (float depth, Exception e, int error) {\n this.depth = depth;\n depthErrorMessage = e.toString();\n depthError = error;\n }",
"public void initializeStack(int depth) {\r\n\t\t//Initialize arrays for creating Array Tree\r\n\t\ttreeKey= new int [depth];\r\n\t\ttreeLeft=new int [depth];\r\n\t\ttreeRight= new int [depth];\r\n\t\tfor(int i=0;i<depth;i++) {\r\n\t\t\t//Right column is next available place\r\n\t\t\tsetRight(i,i+1);\r\n\t\t\tsetLeft(i,-1);\r\n\t\t\t//End of array\r\n\t\t\tif(i==depth-1) {\r\n\t\t\t\tsetRight(i,-1);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void setDimensions(int width, int height) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.maze = new int[width][height];\r\n\t\t\r\n\t}",
"int getDepth();",
"public int getDepth(){\n\t\treturn _depth;\n\t}",
"void setGridX(int i);",
"public void increaseDepth() {\n currentDepth++;\n }",
"public void setMaxDepth (int maxDepth) {\n \n }",
"void incrementOldDepth() {\n mOldDepth++;\n }",
"public float getDepth() {\n return depth_;\n }",
"public void setGateDepth(int value) {\r\n\t\tgateDepth = value;\r\n\t}",
"public int getDepth(){\r\n return this.depth;\r\n }",
"public int getDepth(){\n\t\treturn depth;\n\t}",
"protected void incrementDepthLimit() {\n currDepthLimit++;\n }",
"private void renderToDepthmap() {\n\t\tGL11.glColorMask(false, false, false, false);\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT\n\t\t\t\t| GL11.GL_STENCIL_BUFFER_BIT);\n\t\tfor (PhysicsEntity<? extends RenderEntity> e : entities) {\n\t\t\tRenderEntity re = e.getWorldEntity();\n\t\t\tre.render(passThruContext);\n\t\t}\n\n\t\tdepthBuffer.copyPixels();\n\t}",
"public int setDepth(String depth) {\n try {\n setDepth(new Float(depth).floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"private void changeStatus(int depth, int row, int col ,boolean[][][] VisitedCells){\n VisitedCells[depth][row][col] = true;\n }",
"public float getDepth() {\n return depth;\n }",
"void xsetColorDepth(com.microsoft.schemas.office.x2006.digsig.STPositiveInteger colorDepth);",
"public void setMaxDepth(int theDepth) {\r\n\t\tmaxDepth = theDepth;\r\n\t}",
"void setGridY(int i);",
"public int getDepth() {\r\n return depth;\r\n }",
"public static int getDepth() {\n return depth;\n }",
"int getDepthIndex() {\n return depthIndex;\n }",
"public int getDepth();",
"protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }",
"protected void setLevelSize(int w, int h) {\n\t\twidth = w;\n\t\theight = h;\n\n\t\t// build it\n\t\tlevelTiled = new ArrayList<ArrayList<ArrayList<Integer>>>();\n\t\tlevelTyp = new HashMap<String, TYPE>();\n\n\t\t// run over\n\t\tfor (int i = 0; i < w; i++) {\n\t\t\tlevelTiled.add(new ArrayList<ArrayList<Integer>>());\n\t\t\tfor (int j = 0; j < h; j++) {\n\t\t\t\tlevelTiled.get(i).add(new ArrayList<Integer>());\n\t\t\t}\n\t\t}\n\t}",
"public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}",
"public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }",
"public float getDepth() {\n return depth_;\n }",
"public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}",
"public WQU_Depth(int n) {\n\t\tcount = n;\n\t\tparent = new int[n];\n\t height = new int[n];\n\t for (int i = 0; i < n; i++) {\n\t parent[i] = i;\n\t height[i] = 0;\n\t }\n\t}",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"void decrementNewDepth() {\n mNewDepth--;\n }",
"public int getDepth() {\n return depth;\n }",
"public void setGrid(int x ,int y,char newValue){\n\t\tGrid[x][y] = newValue;\n\t}",
"public int getDepth() {\n return depth_;\n }",
"public int getDepth()\n {\n return depth; \n }",
"protected void setDepth(Node root) {\n\t\tStack<Node> stack = new Stack<Node>();\n\n\t\troot.depth = 0;\n\n\t\t// push root to the stack\n\t\tstack.push(root);\n\n\t\t// walk through every node and set the according depth.\n\t\twhile (stack.size() > 0) {\n\n\t\t\tNode temp = (Node) stack.pop();\n\n\t\t\tif (temp != null) {\n\t\t\t\tif (temp.left != null) {\n\t\t\t\t\tint leftOfTempDepth = temp.depth + 1;\n\n\t\t\t\t\ttemp.left.depth = leftOfTempDepth;\n\n\t\t\t\t\tstack.push(temp.left);\n\t\t\t\t}\n\n\t\t\t\tif (temp.right != null) {\n\t\t\t\t\tint rightOfTempDepth = temp.depth + 1;\n\n\t\t\t\t\ttemp.right.depth = rightOfTempDepth;\n\n\t\t\t\t\tstack.push(temp.right);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }",
"public void setAllExplored() {\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col].setIsExplored(true);\n }\n }\n }",
"public int getDepth() {\n return depth_;\n }",
"public static void changeLevel(int Rs, int Cs, int level, int[][] original){\n cowGrid = new int[3][3];\n max = 0;\n\n //Finds the max number in the 3x3 grid.\n for (int i = 0; i < 3; i++){\n for (int j = 0; j < 3; j++){\n if (max < original[Rs + i][Cs + j]){\n max = original[Rs + i][Cs + j];\n }\n }\n }\n\n //Changes the depth of the grid.\n for (int i = 0; i < 3; i++){\n for (int j = 0; j < 3; j++){\n if (max - original[Rs + i][Cs + j] <= level){\n original[Rs + i][Cs + j] = max - level;\n }\n }\n }\n }",
"public void setBoard() {\n margin = Math.round((sizeOfCell * 3) / 2);\n RelativeLayout.LayoutParams marginParam = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n marginParam.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n marginParam.addRule(RelativeLayout.CENTER_HORIZONTAL);\n marginParam.setMargins(0, 0, 0, (margin));\n gridContainer.setLayoutParams(marginParam);\n\n LinearLayout.LayoutParams lpRow = new LinearLayout.LayoutParams(sizeOfCell * maxN, sizeOfCell);\n LinearLayout.LayoutParams lpCell = new LinearLayout.LayoutParams(sizeOfCell, sizeOfCell);\n LinearLayout linRow;\n\n for (int row = 0; row < maxN; row++) {\n linRow = new LinearLayout(context);\n for (int col = 0; col < maxN; col++) {\n ivCell[row][col] = new ImageView(context);\n linRow.addView(ivCell[row][col], lpCell);\n }\n linBoardGame.addView(linRow, lpRow);\n }\n }",
"public int depth ();",
"public void setArity(int depth) {\n if ((depth > MIN_DEPTH && random.nextDouble() < PROB_MIDTREE_TERM) || depth == MAX_DEPTH) {\n // node will be a terminal\n this.arity = 0;\n isTerminal = true;\n } else {\n isTerminal = false;\n\n // pigeon-hole selection\n double pigeon = random.nextDouble();\n for (int i = 0; i < PROB_FUNC.length; i++) {\n if ((pigeon -= PROB_FUNC[i]) <= 0) {\n this.arity = i + 1;\n break;\n }\n }\n if (pigeon > 0) {\n System.out.println(\"Warning: Pigeon-hole overstepped in setArity by \" + pigeon);\n this.arity = PROB_FUNC.length;\n }\n child = new ExpressionNode[this.arity];\n }\n }",
"private SceneOctTree (\n Bounds bounds,\n int depth\n ) {\n\n this.bounds = bounds;\n this.depth = depth;\n\n }",
"public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}",
"public static native int freenect_set_depth_mode_proxy(Pointer<libfreenectLibrary.freenect_device > dev, ValuedEnum<libfreenectLibrary.freenect_resolution > res, ValuedEnum<libfreenectLibrary.freenect_depth_format > fmt);",
"public void setColorDepth(String colorDepth) {\n\t\tif (colorDepth != null && !colorDepth.isEmpty()) {\n\t\t\tint value = Integer.parseInt(colorDepth);\n\n\t\t\tif (value >= MIN_COLOR_DEPTH && value <= MAX_COLOR_DEPTH)\n\t\t\t\tthis.colorDepth = value;\n\t\t}\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 }",
"protected abstract double lookupDepth(int depthX, int depthY);",
"private void resetGrid() {\n ObservableList<Node> childrens = grid.getChildren();\n for (Node node : childrens) {\n Circle temp = (Circle) node;\n temp.setFill(Paint.valueOf(\"Black\"));\n }\n }",
"int getMax_depth();",
"public void initLevelGrid(int[][] initGrid, int initGridColumns, int initGridRows)\n {\n // KEEP ALL THE GRID INFO\n levelGrid = initGrid;\n gridColumns = initGridColumns;\n gridRows = initGridRows;\n\n // AND BUILD THE TILE GRID FOR STORING THE TILES\n // SINCE WE NOW KNOW ITS DIMENSIONS\n tileGrid = new ArrayList[gridColumns][gridRows];\n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; j < gridRows; j++)\n {\n // EACH CELL HAS A STACK OF TILES, WE'LL USE\n // AN ARRAY LIST FOR THE STACK\n tileGrid[i][j] = new ArrayList();\n }\n }\n // MAKE ALL THE TILES VISIBLE\n enableTiles(true);\n }",
"int getColorDepth();",
"public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }",
"public VPHashTree(int depth) {\n super(DEFAULT_BIN_SIZE);\n this.depth = depth;\n this.depthReached = false;\n }",
"public void setMaximumCrawlDepth(int depth) throws Exception\n\t{\n\t\tif (depth < -1)\n\t\t{\n\t\t\tthrow new Exception(\"Maximum crawl depth should be either a positive number or -1 for unlimited depth.\");\n\t\t}\n\t\tif (depth > Short.MAX_VALUE)\n\t\t{\n\t\t\tthrow new Exception(\"Maximum value for crawl depth is \" + Short.MAX_VALUE);\n\t\t}\n\t\tWebCrawler.setMaximumCrawlDepth((short) depth);\n\t}",
"public void initGrid()\n {\n\tfor (int y=0; y<cases.length; y++)\n \t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tcases[y][x] = new Case();\n }\n\t}\n\t\n\tint pos_y_case1 = customRandom(4);\n\tint pos_x_case1 = customRandom(4);\n\t\n\tint pos_y_case2 = customRandom(4);\n\tint pos_x_case2 = customRandom(4);\n\t\t\n\twhile ((pos_y_case1 == pos_y_case2) && (pos_x_case1 == pos_x_case2))\n\t{\n pos_y_case2 = customRandom(4);\n pos_x_case2 = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y_case1][pos_x_case1] = new Case(true);\n\tcases[pos_y_case2][pos_x_case2] = new Case(true);\n }",
"private void setUpDepthFillLayers(@NonNull Style loadedMapStyle) {\n FillLayer depthPolygonFillLayer = new FillLayer(\"DEPTH_POLYGON_FILL_LAYER_ID\", GEOJSON_SOURCE_ID);\n depthPolygonFillLayer.withProperties(\n fillColor(interpolate(linear(),\n get(\"depth\"),\n stop(5, rgb(16, 158, 210)),\n stop(10, rgb(37, 116, 145)),\n stop(15, rgb(69, 102, 124)),\n stop(30, rgb(31, 52, 67)))),\n fillOpacity(.7f));\n // Only display Polygon Features in this layer\n depthPolygonFillLayer.setFilter(eq(geometryType(), literal(\"Polygon\")));\n loadedMapStyle.addLayer(depthPolygonFillLayer);\n }",
"int depth();",
"int depth();",
"public void setPlayerGrid(){\n\t\tplayerGrid = new Grid(true);\n\t\tsetShips(playerGrid,playerBattleShipsList,0);//2\n\t}",
"public int depth() {\r\n\t\treturn this.depth;\r\n\t}",
"public int getDepth()\n {\n return m_Depth;\n }"
] | [
"0.73266965",
"0.7277852",
"0.7065746",
"0.7058343",
"0.70542467",
"0.70436543",
"0.69968295",
"0.6742837",
"0.66607034",
"0.6652462",
"0.66476524",
"0.65339947",
"0.6522105",
"0.64167994",
"0.631863",
"0.62967545",
"0.6266603",
"0.62413573",
"0.6190024",
"0.6122878",
"0.60943824",
"0.60658365",
"0.60658365",
"0.5960507",
"0.5940869",
"0.593643",
"0.59259653",
"0.5907542",
"0.5857596",
"0.583533",
"0.5831701",
"0.5827718",
"0.5823019",
"0.58189493",
"0.5797991",
"0.57911533",
"0.57902807",
"0.5778467",
"0.57779455",
"0.57693166",
"0.5732257",
"0.57319593",
"0.5730916",
"0.57171243",
"0.57164216",
"0.5709241",
"0.5694852",
"0.56853247",
"0.56801605",
"0.5674093",
"0.5661208",
"0.5659801",
"0.5624947",
"0.5621662",
"0.5603426",
"0.5598491",
"0.55922735",
"0.5583074",
"0.5575275",
"0.55696595",
"0.55619866",
"0.5558985",
"0.55549717",
"0.5536592",
"0.5521578",
"0.5507567",
"0.5507567",
"0.55073035",
"0.5503814",
"0.55034107",
"0.55014986",
"0.5498099",
"0.5487511",
"0.5482058",
"0.547007",
"0.545725",
"0.5453255",
"0.5451912",
"0.54462105",
"0.5445264",
"0.5438185",
"0.54266983",
"0.54221886",
"0.5404426",
"0.5400725",
"0.5391258",
"0.5367645",
"0.5362603",
"0.5357349",
"0.5335976",
"0.5331501",
"0.53057426",
"0.5303318",
"0.5303217",
"0.52926683",
"0.52921563",
"0.52921563",
"0.5278483",
"0.5261515",
"0.52531964"
] | 0.7362889 | 0 |
Calculate the nextstep velocity using the liddriven cavity problem conditions and tidal forcing | public void calculateNextStepVelocity(double currentTime) {
// Update the velocity components for the entire grid
for (int i = 1; i < gridSizeX - 1; i++) {
for (int j = 1; j < gridSizeY - 1; j++) {
for (int k = 1; k < gridSizeZ - 1; k++) {
if (!obstacle[i][j][k]) {
calculateNextStepVelocityCell(i, j, k, currentTime);
calculateNextStepPressureCell(i, j, k);
}
}
}
}
u = uNext;
v = vNext;
w = wNext;
p = pNext;
applyPressureCorrection();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void calcVelocity()\n\t{}",
"private void calculateNextStepVelocityCell(int i, int j, int k, double currentTime) {\n\n // Retrieve the velocity components and depth of the cell\n double ui = u[i][j][k];\n double vi = v[i][j][k];\n double wi = w[i][j][k];\n double currentDepth = depth[k];\n\n // Calculate the grid\n // spacing in the depth dimension\n double deltaZPlus = (depth[k + 1] - currentDepth) / 2.0;\n double deltaZMinus = (currentDepth - depth[k - 1]) / 2.0;\n\n // Compute the gradients of velocity in each direction using central difference\n // scheme\n double du_dx = (u[i + 1][j][k] - u[i - 1][j][k]) / 2.0;\n double dv_dy = (v[i][j + 1][k] - v[i][j - 1][k]) / 2.0;\n double dw_dz = (w[i][j][k + 1] - w[i][j][k - 1]) / (deltaZPlus + deltaZMinus);\n\n // Compute the Laplacian of velocity in each direction using central difference\n // scheme\n double d2u_dx2 = (u[i + 1][j][k] - 2 * ui + u[i - 1][j][k]) / Math.pow((deltaX), 2);\n double d2v_dy2 = (v[i][j + 1][k] - 2 * vi + v[i][j - 1][k]) / Math.pow((deltaY), 2);\n double d2w_dz2 = (w[i][j][k + 1] - 2 * wi + w[i][j][k - 1])\n / (Math.pow(deltaZPlus, 2) + Math.pow(deltaZMinus, 2));\n\n // Retrieve the tidal forcing values at the current time step\n double tidalForcingX = this.tidalForcingX.get(i, j, k, currentTime);\n double tidalForcingY = this.tidalForcingY.get(i, j, k, currentTime);\n\n // Compute the next-step velocities using the Navier-Stokes equations with tidal\n // forcing\n double next_u = ui\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * du_dx * d2u_dx2)\n + tidalForcingX;\n double next_v = vi\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * dv_dy * d2v_dy2)\n + tidalForcingY;\n double next_w = wi\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * dw_dz * d2w_dz2);\n\n // Update the velocity components of the cell\n uNext[i][j][k] = next_u;\n vNext[i][j][k] = next_v;\n wNext[i][j][k] = next_w;\n }",
"public void updateVelocity() {\n \t// Step 1: input power and convert the power to a force based on the starting velocity\n \tsetWeight();\n \tdouble trainMass = trainWeight*KG_PER_POUND;\n \t\n \t// this is ensuring that we never get a negative speed\n \tif (this.currentSpeed == 0) {\n \t\tthis.force = (this.powerIn)/1;\n \t} else {\n \t\tthis.force = (this.powerIn)/this.currentSpeed;\n \t}\n \tsetGrade();\n \t\n \t// Step 2: Calculate the slope of the train's current angle (Degrees = Tan-1 (Slope Percent/100))\n \tthis.slope = Math.atan2(this.grade,100);\n \tdouble angle = Math.toDegrees(this.slope);\n \t\n \t// Step 3: Calculate the forces acting on the train using the coefficient of friction\n \t// and the train's weight in lbs converted to kg divided over the wheels (where the force is technically\n \t// being applied times gravity (G)\n \tthis.normalForce = (trainMass/this.trainWheels) * G * Math.sin((angle*Math.PI)/180);\t// divide by 12 for the number of wheels\n \tthis.downwardForce = (trainMass/this.trainWheels) * G * Math.cos((angle*Math.PI)/180);\t// divide by 12 for the number of wheels\n\n \t// compute friction force\n \tthis.friction = (FRICTION_COEFFICIENT * this.downwardForce) + this.normalForce;\n \t\n \t// sum of the forces\n \tthis.totalForce = this.force - this.friction;\n \t \t\n \tthis.force = this.totalForce;\n \t\n \t// Step 4: Calculate acceleration using the F = ma equation, where m = the mass of the body moving\n \tthis.trainAcceleration = this.force/trainMass;\n \t\n \t// and have to check to make sure this acceleration does not exceed our max.\n \tif (this.trainAcceleration >= TRAIN_MAX_ACCELERATION * 1) {\t// time elapsed (one second)\n \t\t// set the acceleration as the max acceleration because we cannot exceed that\n \t\tthis.trainAcceleration = TRAIN_MAX_ACCELERATION * 1;\t// time elapsed (one second)\n \t}\n \t\n\t\temerBrake = this.getEBrake();\n \t// decelerates the train based on the values given in the spec sheet for the emergency brake\n \tif (emerBrake) {\n \t\tthis.trainAcceleration += (TRAIN_MAX_ACCELERATION_E_BRAKE*1);\n \t}\n \t\n \t// decelerates the train based onthe values given in the spec sheet for the service brake\n \tif(serviceBrake) {\n \t\tthis.trainAcceleration += (TRAIN_MAX_ACCELERATION_SERVICE_BRAKE*1);\n \t}\n \t\n \t// Step 5: Calculate the final speed by adding the old speed with the acceleration x the time elapsed (one second)\n \tthis.finalSpeed = this.currentSpeed + (this.trainAcceleration * 1);\n \t\n \t// NO NEGATIVE SPEEDS YINZ\n \tif(this.finalSpeed < 0) {\n this.finalSpeed = 0;\n }\n \t\n \t// resetting the current speed based on our calculations\n \tthis.currentSpeed = this.finalSpeed;\n \tthis.distTravelled = this.currentSpeed * 1; // speed times the time between clock ticks = distance travelled\n \t//System.out.println(finalSpeed);\n \t\n \tif(!(currentBlock == this.position.getCurrentBlock())) {\n \t\tmetersIn = 0;\n \t} else {\n \t\tmetersIn += this.distTravelled;\n \t}\n \tthis.position.moveTrain(this.distTravelled); // method call to tell the position class how far to move the train\n \t\n }",
"@Override\n\tpublic double calculateVelocity() {\n\t\tdouble result = distance / time + velocitySame - velocityReverse;\n\t\treturn result;\n\t}",
"private static void vel_step ( int N, double[] u, double[] v, double[] u0, double[] v0,\r\n\t\tfloat visc, float dt )\r\n\t\t{\r\n\t\tadd_source ( N, u, u0, dt ); add_source ( N, v, v0, dt );\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\t\r\n\t\t//SWAP ( u0, u ); \r\n\t\t\r\n\t\tdouble[] temp;\r\n\t\ttemp=u0;\r\n\t\tu0=u;\r\n\t\tu=temp;\r\n\t\t//draw_dens ( N, u );\r\n\t\tdiffuse ( N, 1, u, u0, visc, dt );\r\n\t\t//draw_dens ( N, u );\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t//SWAP ( v0, v ); \r\n\t\t//double[] temp;\r\n\t\ttemp=v0;\r\n\t\tv0=v;\r\n\t\tv=temp;\r\n\t\t//draw_dens ( N, v );\r\n\t\t//draw_dens ( N, v0 );\r\n\t\tdiffuse ( N, 2, v, v0, visc, dt );\r\n\t\t//draw_dens ( N, v );\r\n\t\t//System.out.println(\"V\");\r\n\t\t//draw_dens ( N, v );\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\tproject ( N, u, v, u0, v0 );\r\n\t\t//SWAP ( u0, u ); \r\n\t\ttemp=u0;\r\n\t\tu0=u;\r\n\t\tu=temp;\r\n\t\t\r\n\t\t//SWAP ( v0, v );\r\n\t\ttemp=v0;\r\n\t\tv0=v;\r\n\t\tv=temp;\r\n\t\t//System.out.println(\"V\");\r\n\t\t//draw_dens ( N, v );\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\t\r\n\t\tadvect ( N, 1, u, u0, u0, v0, dt ); \r\n\t\tadvect ( N, 2, v, v0, u0, v0, dt );\r\n\t\tproject ( N, u, v, u0, v0 );\r\n\t\t}",
"private void doVels() {\n\t\tthis.launchPerVel = Math.sqrt((2d * body.getGm() * this.launchApoAlt) / (this.launchPerAlt * this.a));\n\t\tthis.launchApoVel = Math.sqrt((2d * body.getGm() * this.launchPerAlt) / (this.launchApoAlt * this.a));\n\t}",
"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 }",
"private static double calculateVelocity(double velocity, double deltaT, double acceleration) {\n return velocity + (deltaT * acceleration);\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 testVelocityNumerically() {\n // crud, I don't know, how much can we expect velocity and finite differences to agree?\n double bound = dt*dt*velocity*velocity; // sure, let's go with that. Keep in mind this changes with sampling rates, velocity, the order of the function, etc.\n double endtime = racetrack.getPerimeter() / racetrack.getVelocity();\n differentiatePosition(racetrack, 0.0, endtime, dt, bound);\n }",
"public void step() {\r\n for(int i = 0;i<numberOfCars;i++) {\r\n xtemp[i] = x[i];\r\n }\r\n for(int i = 0;i<numberOfCars;i++) {\r\n if(v[i]<maximumVelocity) {\r\n v[i]++; // acceleration\r\n }\r\n int d = xtemp[(i+1)%numberOfCars]-xtemp[i]; // distance between cars\r\n if(d<=0) { // periodic boundary conditions, d = 0 correctly treats one car on road\r\n d += roadLength;\r\n }\r\n if(v[i]>=d) {\r\n v[i] = d-1; // slow down due to cars in front\r\n }\r\n if((v[i]>0)&&(Math.random()<p)) {\r\n v[i]--; // randomization\r\n }\r\n x[i] = (xtemp[i]+v[i])%roadLength;\r\n flow += v[i];\r\n }\r\n steps++;\r\n computeSpaceTimeDiagram();\r\n }",
"public double calculateVelocity(){\n double storyPoints = 0.0; // number of story points completed in total\n double numWeeks = BoardManager.get().getCurrentBoard().getAge()/7.0;\n LinkedList<Card> allCompletedCards = BoardManager.get().getCurrentBoard().getCardsOf(Role.COMPLETED_WORK);\n for (Card card : allCompletedCards) {\n storyPoints += card.getStoryPoints();\n }\n if (storyPoints == 0.0){\n return 0.0;\n }\n return Math.round(storyPoints/numWeeks * 100D) / 100D;\n }",
"void find_steady_conditions () {\n // System.out.println(\"-- find_steady_conditions: \" + can_do_gui_updates);\n // double min_lift = parse_force_constraint(tf_tkoff_min_lift);\n double max_drag = parse_force_constraint(tf_tkoff_max_drag);\n boolean saved_flag = can_do_gui_updates;\n can_do_gui_updates = false;\n vpp.steady_flight_at_given_speed(5, 0);\n can_do_gui_updates = saved_flag;\n recomp_all_parts();\n\n\n // this animation idea alas does not work now... \n // //add a bit of animation in case the rider crosses the takeoff speed.\n // if (alt_val == 0 && foil_lift() >= load) { // need to raise up\n // while (alt_val < 70 && foil_lift() >= load) {\n // alt_val += 0.1;\n // loadPanel();\n // viewer.repaint();\n // // try { Thread.sleep(100); } catch (InterruptedException e) {}\n // saved_flag = can_do_gui_updates;\n // can_do_gui_updates = false;\n // vpp.steady_flight_at_given_speed(5, 0);\n // can_do_gui_updates = saved_flag;\n // }\n // }\n\n if (alt_val == 0 && foil_lift() >= load) { // need to raise up\n // viewer.start_raise = true; // this is experimentsl, has quirks....\n alt_val = 70;\n } else if (alt_val > 0 && foil_lift() < load) { // must splash\n // viewer.start_descend = true; // this is experimentsl, has quirks....\n alt_val = 0;\n }\n\n \n loadPanel();\n if (total_drag() > max_drag) \n dash.outTotalDrag.setForeground(Color.red);\n if (foil_lift() < load) \n dash.outTotalLift.setForeground(Color.red);\n }",
"public static StateVector integrate( StateVector state, double dt) {\r\n StateVector dummy = new StateVector();\r\n StateVector derivative_a, derivative_b, derivative_c, derivative_d;\r\n\r\n\r\n derivative_a = evaluate(state, 0.0, dummy, 0 ); // derivative a returns initial velocity and acceleration\r\n derivative_b = evaluate(state, dt*0.5, derivative_a, 1 );\r\n derivative_c = evaluate(state, dt*0.5, derivative_b, 1 );\r\n derivative_d = evaluate(state, dt, derivative_c, 2 );\r\n\r\n double dxdt = 1.0/6.0 * (derivative_a.vx + 2.0f*(derivative_b.vx + derivative_c.vx) + derivative_d.vx);\r\n double dydt = 1.0/6.0 * (derivative_a.vy + 2.0f*(derivative_b.vy + derivative_c.vy) + derivative_d.vy);\r\n double dzdt = 1.0/6.0 * (derivative_a.vz + 2.0f*(derivative_b.vz + derivative_c.vz) + derivative_d.vz);\r\n double dvxdt = 1.0/6.0 * (derivative_a.ax + 2.0f*(derivative_b.ax + derivative_c.ax) + derivative_d.ax);\r\n double dvydt = 1.0/6.0 * (derivative_a.ay + 2.0f*(derivative_b.ay + derivative_c.ay) + derivative_d.ay);\r\n double dvzdt = 1.0/6.0 * (derivative_a.az + 2.0f*(derivative_b.az + derivative_c.az) + derivative_d.az);\r\n\r\n state.x = state.x + dxdt * dt;\r\n state.y = state.y + dydt * dt;\r\n state.z = state.z + dzdt * dt;\r\n state.vx = state.vx + dvxdt * dt;\r\n state.vy = state.vy + dvydt * dt;\r\n state.vz = state.vz + dvzdt * dt;\r\n\r\n return( state );\r\n }",
"public void update(Vehicle v, float dt) {\nPoint2D.Float p = v.getPosition();\r\nPoint2D.Float tp = target.getPosition();\r\nPoint2D.Float desired_velocity = new Point2D.Float(tp.x - p.x , tp.y - p.y);\r\nVehicle.scale(desired_velocity, v.getMaxSpeed());\r\nv.updateSteering(desired_velocity.x, desired_velocity.y);\r\n}",
"float[] calculate(float[] acc, float[] oldAcc, float[] gyr , float[] oldGyr,float[] oldGra, float[] oldAccVelDisGra)\n {\n// System.out.println(\"inside method acc:\"+acc[0]+\", \"+acc[1]+\", \"+acc[2]+\", oldAcc:\"+oldAcc[0]+\", \"+oldAcc[1]+\", \"+oldAcc[2]);\n// System.out.println(\"inside method gravity:\"+oldGra[0]+\", \"+oldGra[1]+\", \"+oldGra[2]);\n if (oldAccVelDisGra==null)\n {\n oldAccVelDisGra= new float[9];\n for (int i = 0; i <9; i++) {\n oldAccVelDisGra[i]=0.0f;\n }\n }\n float[] oldDynamicAcc = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldVelocity = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldDistance = new float[]{0.0f, 0.0f, 0.0f};\n float[] newGra = gravityFromRotation(oldGra, gyr);\n\n for (int i = 0; i < 3; i++) {\n oldDynamicAcc[i] = oldAccVelDisGra[i];\n oldVelocity[i] = oldAccVelDisGra[i+3];\n oldDistance[i] = oldAccVelDisGra[i+6];\n }\n float[] accVelDisGra = new float[]{0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};\n float[] dynAccDiff = dynamicAccDiff(acc,gyr,oldGra,oldAcc,oldGyr);\n float[] dynamicAcc = dynamicAcc(oldDynamicAcc, dynAccDiff);\n float[] velocity = velocity(oldVelocity,dynamicAcc);\n float[] distance = distance(oldDistance, velocity);\n for (int i = 0; i < 3; i++) {\n accVelDisGra[i]=dynamicAcc[i];\n accVelDisGra[i+3]= velocity[i];\n accVelDisGra[i+6]=distance[i];\n accVelDisGra[i+9]=newGra[i];\n }\n return accVelDisGra;\n }",
"double getVerVel(double initial_ver_vel, double time)\n {\n uy = initial_ver_vel;\n t = time;\n vy = uy - (g*t);\n return vy;\n }",
"protected void computeTranslationVelocityCommand() { // (Solution)\n\t\tdouble translationError = targetRange - desiredFixationDistance; // (Solution)\n\t\tif (Math.abs(translationError) < translationErrorTolerance) // (Solution)\n\t\t\ttranslationVelocityCommand = 0.0; // (Solution)\n\t\telse\n\t\t\t// (Solution)\n\t\t\ttranslationVelocityCommand = // (Solution)\n\t\t\tMath.max(-translationVelocityMax, // (Solution)\n\t\t\t\t\tMath.min(translationVelocityMax, // (Solution)\n\t\t\t\t\t\t\ttranslationError * translationVelocityGain)); // (Solution)\n\t}",
"double find_min_takeoff_v_old_algorithm_aux (double min_lift, double max_drag, double speed, double speed_step, double pitch_init, double pitch_step) {\n double pitch = pitch_init;\n double pitch_limit = aoa_max*0.7;\n {\n trace(\"speed_step: \" + speed_step + \" pitch_step: \" + pitch_step);\n for (; speed < v_max; speed += speed_step) {\n velocity = speed;\n // if the startimg pitch guess when at this point was too high, \n // drag will be too big at this point; then reduce pitch\n while (pitch > aoa_min/2) {\n craft_pitch = pitch;\n //computeFlowAndRegenPlotAndAdjust();\n recomp_all_parts();\n if (total_drag() >= max_drag)\n pitch = Math.max(pitch_init, craft_pitch - Math.abs(craft_pitch/4));\n else \n break; // while (pitch > aoa_min/2)\n } \n \n trace(\"for() speed: \" + speed + \" pitch: \" + pitch);\n for (;pitch < pitch_limit; pitch += pitch_step) {\n craft_pitch = pitch;\n //computeFlowAndRegenPlotAndAdjust();\n recomp_all_parts();\n if (total_drag() >= max_drag) {\n // stop increasing pitch, won't work. need more speed\n trace(\"too much drag. speed: \" + speed + \" pitch: \" + pitch + \" lift \" + foil_lift());\n pitch = Math.max(pitch_init, craft_pitch - Math.abs(craft_pitch/4));\n break; // for (pitch...)\n }\n if (foil_lift() >= min_lift) {\n if (speed_step > 0.25) {\n trace(\"request reiterate. speed: \" + speed + \" pitch: \" + pitch + \" lift \" + foil_lift() + \" speed_step: \" + speed_step);\n return Math.max(0, velocity - speed_step); // request to reiterate\n } else {\n // done!\n make_min_takeoff_speed_info(min_lift, max_drag, velocity); \n System.out.println(\"\\nDone!\\n----------------\\n\" + min_takeoff_speed_info);\n return -1;\n }\n } \n }\n // need to start from lowest pitch?\n if (pitch >= pitch_limit) pitch = pitch_init;\n }\n }\n return -2; // can not find solution\n }",
"public void calculateVelocity(Planet3D other) {\n\t\tVec3d temp = new Vec3d(other);\n\t\ttemp.sub(this);\n\t\tSystem.out.println(\"\\n[other]-[this]=[new dir] == [\"+other.x+\",\"+other.y+\",\"+other.z+\"]-[\"+this.x+\",\"+this.y+\",\"+this.z+\"]=[\"+temp.x+\",\"+temp.y+\",\"+temp.z+\"]\");\n\t\tdouble force=forceCalc(other.getMass(), temp.length());\n\t\ttemp.normalize();\n//\t\tSystem.out.println(\", and direction between is this:(\"+temp.x+\",\"+temp.y+\",\"+temp.z+\"),\\nthe other planet has a mass of \"+other.getMass());\n//\t\tSystem.out.println(\"the force added to the vector is:\"+(Math.abs(force)));\n\t\ttemp.mul(force);\t\n\t\tvelocity.sub(temp);\n\t\t\t\n\t}",
"public int getVelocity()\n\t{\n\t\treturn logDx;\n\t}",
"public float getMotor_lin_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 128);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 120);\n\t\t}\n\t}",
"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 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 approachTargetWithVision() {\n final double STEER_P = 0.005; \n final double DRIVE_P = 0.05; \n final double DESIRED_TARGET_AREA = 4; // Area of the target when the robot reaches the wall\n final double MAX_DRIVE = 0.75; // Simple speed limit so we don't drive too fast\n final double STEER_I = 0.005;\n final double DRIVE_I = 0.0;\n final double STEER_D = 0.02;\n final double xError;\n final double aError;\n double DRIVE_INTEGRAL = 0;\n\n \n\n double tv = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tv\").getDouble(0);\n double tx = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tx\").getDouble(0);\n double ta = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ta\").getDouble(0);\n xError = tx;\n aError = (DESIRED_TARGET_AREA - ta);\n // SmartDashboard.putNumber(\"TA\", ta);\n // SmartDashboard.putNumber(\"TA Error\", aError);\n SmartDashboard.putNumber(\"TX Error\", xError);\n STEER_INTEGRAL = STEER_INTEGRAL + (xError*0.02);\n DRIVE_INTEGRAL = DRIVE_INTEGRAL + (aError * 0.02);\n STEER_DERIVATIVE = (xError - STEER_ERROR_PRIOR)/0.02;\n SmartDashboard.putNumber(\"Integral\", STEER_INTEGRAL);\n SmartDashboard.putNumber(\"Derivative\", STEER_DERIVATIVE);\n SmartDashboard.putNumber(\"TA\", ta);\n\n\n if (tv < 1.0) {\n m_LimelightHasValidTarget = false;\n drive_cmd = 0.0;\n steer_cmd = 0.0;\n } else {\n m_LimelightHasValidTarget = true;\n // Start with proportional steering\n steer_cmd = (xError * STEER_P) + (STEER_INTEGRAL * STEER_I) + (STEER_DERIVATIVE * STEER_D);\n\n // try to drive forward until the target area reaches our desired area\n drive_cmd = (aError * DRIVE_P) + (DRIVE_INTEGRAL * DRIVE_I);\n // don't let the robot drive too fast into the goal\n if (drive_cmd > MAX_DRIVE){\n drive_cmd = MAX_DRIVE;\n }\n }\n\n Robot.driveTrain.setLeftMotors(-drive_cmd - steer_cmd);\n Robot.driveTrain.setRightMotors(-drive_cmd + steer_cmd);\n\n STEER_ERROR_PRIOR = xError;\n\n }",
"@Override\n\tpublic double calculateVelocity(Parrot parrot) {\n\t\treturn (parrot.getisNailed()) ? 0 : parrot.getBaseSpeed(parrot.getVoltage());\n\t}",
"double getVerDist(double initial_ver_vel, double time)\n {\n uy = initial_ver_vel;\n t = time;\n y = (uy*t) +(g*t*t)/2; \n return y;\n }",
"static float calculateNewVelocity(float a, float deltaTime, float v0) {\n return v0 + (a * deltaTime);\n }",
"void do_physics(CAR car, double delta_t) {\n// sn = Math.sin(car.angle);\n// cs = Math.cos(car.angle);\n//\n// velocity.x = cs * car.velocity_wc.y + sn * car.velocity_wc.x;\n// velocity.y = cs * car.velocity_wc.x - sn * car.velocity_wc.y;\n//\n// double yawSpeed = 0.5 * car.cartype.wheelbase * car.angularvelocity;\n//\n// double rotationAngle = 0;\n// double sideSlip = 0;\n// if (velocity.x != 0) {\n// //car is moving forwards\n// rotationAngle = Math.atan(yawSpeed / velocity.x);\n// }\n//\n// if (velocity.x != 0) {\n// sideSlip = Math.atan(velocity.y / velocity.x);\n// }\n//\n// if (velocity.x == 0) {\n// car.angularvelocity = 0;\n// }\n//\n//\n// double slipAngleFront = sideSlip + rotationAngle - car.steerangle;\n// double slipAngleRear = sideSlip - rotationAngle;\n//\n// // weight per axle = half car mass times 1G (=9.8m/s^2)\n// double weight = car.cartype.mass * 9.8 * 0.5;\n//\n// Vector2D frontWheelLateralForce = new Vector2D();\n// frontWheelLateralForce.setX(0);\n// frontWheelLateralForce.setY(normalise(-MAX_GRIP, MAX_GRIP, CA_F * slipAngleFront));\n// frontWheelLateralForce.setY(frontWheelLateralForce.getY() * weight);\n//\n// if (front_slip == 1) {\n// frontWheelLateralForce.setY(frontWheelLateralForce.getY() * 0.5d);\n// }\n//\n// Vector2D rearWheelLateralForce = new Vector2D();\n// rearWheelLateralForce.setX(0);\n// rearWheelLateralForce.setY(normalise(-MAX_GRIP, MAX_GRIP, CA_R * slipAngleRear));\n// rearWheelLateralForce.setY(rearWheelLateralForce.getY() * weight);\n//\n// if (rear_slip == 1) {\n// rearWheelLateralForce.setY(rearWheelLateralForce.getY() * 0.5d);\n// }\n//\n//\n// Vector2D tractionForce = new Vector2D();\n// tractionForce.setX(100 * (car.throttle - car.brake * SGN(velocity.x)));\n// tractionForce.setY(0);\n//\n// if (rear_slip == 1) {\n// tractionForce.setX(tractionForce.getX() * 0.5d);\n// }\n//\n// Vector2D resistance = new Vector2D();\n// double rollingResistanceX = -RESISTANCE * velocity.x;\n// double rollingResistanceY = -RESISTANCE * velocity.y;\n// double dragResistanceX = -DRAG * velocity.x * ABS(velocity.x);\n// double dragResistanceY = -DRAG * velocity.y * ABS(velocity.y);\n// resistance.setX(rollingResistanceX + dragResistanceX);\n// resistance.setY(rollingResistanceY + dragResistanceY);\n//\n// // sum forces\n// Vector2D totalForce = new Vector2D();\n// double frontWheelLateralX = Math.sin(car.steerangle) * frontWheelLateralForce.getX();\n// double rearWheelLateralX = rearWheelLateralForce.getX();\n// double frontWheelLateralY = Math.cos(car.steerangle) * frontWheelLateralForce.getY();\n// double rearWheelLateralY = rearWheelLateralForce.getY();\n//\n// totalForce.setX(tractionForce.getX() + frontWheelLateralX + rearWheelLateralX + resistance.getX());\n// totalForce.setY(tractionForce.getY() + frontWheelLateralY + rearWheelLateralY + resistance.getY());\n//\n//\n// double frontTorque = frontWheelLateralForce.getY() * car.cartype.b;\n// double rearTorque = rearWheelLateralForce.getY() * car.cartype.c;\n// double torque = frontTorque - rearTorque;\n//\n// Vector2D acceleration = new Vector2D();\n// acceleration.setX(totalForce.getX() / car.cartype.mass);\n// acceleration.setY(totalForce.getY() / car.cartype.mass);\n// // Newton F = m.a, therefore a = F/m\n// //TODO: add inertia to the vehicle\n// double angularAcceleration = torque / car.cartype.inertia;\n//\n// acceleration.setX(normalise(acceleration.getX(), 0.1d));\n// acceleration.setY(normalise(acceleration.getY(), 0.1d));\n//\n//\n// Vector2D worldReferenceAcceleration = new Vector2D();\n// worldReferenceAcceleration.setX(cs * acceleration.getY() + sn * acceleration.getX());\n// worldReferenceAcceleration.setY(-sn * acceleration.getY() + cs * acceleration.getX());\n//\n// // velocity is integrated acceleration\n// Vector2D worldReferenceVelocity = new Vector2D();\n// worldReferenceVelocity.setX(car.velocity_wc.x + (delta_t * worldReferenceAcceleration.getX()));\n// worldReferenceVelocity.setY(car.velocity_wc.y + (delta_t * worldReferenceAcceleration.getY()));\n//\n// // position is integrated velocity\n// Vector2D newPosition = new Vector2D();\n// newPosition.setX(delta_t * worldReferenceVelocity.getX() + car.position_wc.x);\n// newPosition.setY(delta_t * worldReferenceVelocity.getY() + car.position_wc.y);\n//\n//\n// car.velocity_wc.x = normalise(worldReferenceVelocity.getX(), 0.1d);\n// car.velocity_wc.y = normalise(worldReferenceVelocity.getY(), 0.1d);\n//\n// if (car.velocity_wc.x == 0 && car.velocity_wc.y == 0) {\n// car.angularvelocity = 0;\n// } else {\n// car.angularvelocity += delta_t * angularAcceleration;\n// }\n//\n// car.angle += delta_t * car.angularvelocity;\n// car.position_wc.x = newPosition.getX();\n// car.position_wc.y = newPosition.getY();\n//\n// /**\n\n sn = Math.sin(car.angle);\n cs = Math.cos(car.angle);\n\n // SAE convention: x is to the front of the car, y is to the right, z is down\n // transform velocity in world reference frame to velocity in car reference frame\n velocity.x = cs * car.velocity_wc.y + sn * car.velocity_wc.x;\n velocity.y = -sn * car.velocity_wc.y + cs * car.velocity_wc.x;\n\n // Lateral force on wheels\n //\n // Resulting velocity of the wheels as result of the yaw rate of the car body\n // v = yawrate * r where r is distance of wheel to CG (approx. half wheel base)\n // yawrate (ang.velocity) must be in rad/s\n //\n yawspeed = car.cartype.wheelbase * 0.5 * car.angularvelocity;\n\n if (velocity.x == 0) // TODO: fix Math.singularity\n rot_angle = 0;\n else\n rot_angle = Math.atan(yawspeed / velocity.x);\n // Calculate the side slip angle of the car (a.k.a. beta)\n if (velocity.x == 0) // TODO: fix Math.singularity\n sideslip = 0;\n else\n sideslip = Math.atan(velocity.y / velocity.x);\n\n // Calculate slip angles for front and rear wheels (a.k.a. alpha)\n slipanglefront = sideslip + rot_angle - car.steerangle;\n slipanglerear = sideslip - rot_angle;\n\n // weight per axle = half car mass times 1G (=9.8m/s^2)\n weight = car.cartype.mass * 9.8 * 0.5;\n\n // lateral force on front wheels = (Ca * slip angle) capped to friction circle * load\n flatf.x = 0;\n flatf.y = CA_F * slipanglefront;\n flatf.y = Math.min(MAX_GRIP, flatf.y);\n flatf.y = Math.max(-MAX_GRIP, flatf.y);\n flatf.y *= weight;\n if (front_slip == 1)\n flatf.y *= 0.5;\n\n // lateral force on rear wheels\n flatr.x = 0;\n flatr.y = CA_R * slipanglerear;\n flatr.y = Math.min(MAX_GRIP, flatr.y);\n flatr.y = Math.max(-MAX_GRIP, flatr.y);\n flatr.y *= weight;\n if (rear_slip == 1)\n flatr.y *= 0.5;\n\n // longtitudinal force on rear wheels - very simple traction model\n ftraction.x = 100 * (car.throttle - car.brake * SGN(velocity.x));\n ftraction.y = 0;\n if (rear_slip == 1)\n ftraction.x *= 0.5;\n\n // Forces and torque on body\n\n // drag and rolling resistance\n resistance.x = -(RESISTANCE * velocity.x + DRAG * velocity.x * ABS(velocity.x));\n resistance.y = -(RESISTANCE * velocity.y + DRAG * velocity.y * ABS(velocity.y));\n\n // sum forces\n force.x = ftraction.x + Math.sin(car.steerangle) * flatf.x + flatr.x + resistance.x;\n force.y = ftraction.y + Math.cos(car.steerangle) * flatf.y + flatr.y + resistance.y;\n\n // torque on body from lateral forces\n torque = car.cartype.b * flatf.y - car.cartype.c * flatr.y;\n\n // Acceleration\n\n // Newton F = m.a, therefore a = F/m\n acceleration.x = force.x / car.cartype.mass;\n acceleration.y = force.y / car.cartype.mass;\n angular_acceleration = torque / car.cartype.inertia;\n\n // Velocity and position\n\n // transform acceleration from car reference frame to world reference frame\n acceleration_wc.x = cs * acceleration.y + sn * acceleration.x;\n acceleration_wc.y = -sn * acceleration.y + cs * acceleration.x;\n\n // velocity is integrated acceleration\n //\n car.velocity_wc.x += delta_t * acceleration_wc.x;\n car.velocity_wc.y += delta_t * acceleration_wc.y;\n\n // position is integrated velocity\n //\n car.position_wc.x += delta_t * car.velocity_wc.x;\n car.position_wc.y += delta_t * car.velocity_wc.y;\n\n\n // Angular velocity and heading\n\n // integrate angular acceleration to get angular velocity\n //\n car.angularvelocity += delta_t * angular_acceleration;\n\n // integrate angular velocity to get angular orientation\n //\n car.angle += delta_t * car.angularvelocity;\n\n }",
"double getMotorVelocity( MotorName m ) {\n double vol = 0.0;\n if( motor_read_mode_==MotorBulkReadMode.BULK_READ_MANUAL && loop_cnt_!=last_motor_read_loop_id_ ) {\n // Important Step 4: If you are using MANUAL mode, you must clear the BulkCache once per control cycle\n for( LynxModule module : all_hubs_ ) {\n module.clearBulkCache();\n }\n }\n switch ( m ) {\n case MOTOR_LF:\n vol = motorLF_.getVelocity();\n break;\n case MOTOR_LB:\n vol = motorLB_.getVelocity();\n break;\n case MOTOR_RF:\n vol = motorRF_.getVelocity();\n break;\n case MOTOR_RB:\n vol = motorRB_.getVelocity();\n break;\n case MOTOR_LEFT_INTAKE:\n vol = motor_left_intake_.getVelocity();\n break;\n case MOTOR_RIGHT_INTAKE:\n vol = motor_right_intake_.getVelocity();\n break;\n case MOTOR_LIFT:\n vol = motor_lift_.getVelocity();\n break;\n default:\n break;\n }\n last_motor_read_loop_id_ = loop_cnt_ ;\n return vol;\n }",
"static void resetVelocity(){currentVelocity = INITIAL_SPEED;}",
"boolean computeVelocityCommands(Twist cmd_vel){\n if(!initialized_){\n this.node.getLog().error(\"This planner has not been initialized, please call initialize() before using this planner\");\n return false;\n }\n\n //TODO: Transform\n/* PoseStamped global_pose;\n Header hdr=messageFactory.newFromType(Header._TYPE);\n hdr.setStamp(this.node.getCurrentTime());\n hdr.setFrameId(robot_base_frame_);\n global_pose.setHeader(hdr);\n Pose pose=messageFactory.newFromType(Pose._TYPE);\n Point p=messageFactory.newFromType(Point._TYPE);\n Quaternion q=messageFactory.newFromType(Quaternion._TYPE);\n p.setX(0.0);p.setY(0.0);p.setZ(0.0);\n pose.setPosition(p);\n q.setX(0.0);q.setY(0.0);q.setZ(0.0);q.setW(1);\n pose.setOrientation(q);\n global_pose.setPose(pose);\n tf_.getTree().lookupTransformBetween();*/\n\n\n\n // Set current velocities from odometry\n Twist global_vel=messageFactory.newFromType(Twist._TYPE);\n\n me.me_lock_.lock();\n try{\n linear.setX(me.base_odom_.getTwist().getTwist().getLinear().getX());\n linear.setY(me.base_odom_.getTwist().getTwist().getLinear().getY());\n angular.setZ(me.base_odom_.getTwist().getTwist().getAngular().getY());\n global_vel.setLinear(linear);\n global_vel.setAngular(angular);\n }finally {\n me.me_lock_.unlock();\n }\n\n //TODO: Transform\n //WARNNING not transformed\n/* tf::Stamped<tf::Pose> robot_vel;\n robot_vel.setData(tf::Transform(tf::createQuaternionFromYaw(global_vel.angular.z), tf::Vector3(global_vel.linear.x, global_vel.linear.y, 0)));\n robot_vel.frame_id_ = robot_base_frame_;\n robot_vel.stamp_ = ros::Time();*/\n PoseStamped robot_vel=messageFactory.newFromType(PoseStamped._TYPE);\n\n/* //WARNNING not transformed\n tf::Stamped<tf::Pose> goal_point;\n tf::poseStampedMsgToTF(global_plan_.back(), goal_point);*/\n PoseStamped goal_point=messageFactory.newFromType(PoseStamped._TYPE);\n\n //we assume the global goal is the last point in the global plan\n //WARNNING not transformed\n goal_point=global_plan_.get(global_plan_.size()-1);\n double goal_x = goal_point.getPose().getPosition().getX();\n double goal_y = goal_point.getPose().getPosition().getY();\n double yaw = LPutils.getYaw(goal_point.getPose().getOrientation());\n double goal_th = yaw;\n\n //TODO:get position in global frame of the robot\n //WARNNING not transformed\n /* tf::Stamped<tf::Pose> global_pose;\n //let's get the pose of the robot in the frame of the plan\n global_pose.setIdentity();\n global_pose.frame_id_ = robot_base_frame_;\n global_pose.stamp_ = ros::Time();\n tf_->transformPose(global_frame_, global_pose, global_pose);*/\n PoseStamped global_pose=messageFactory.newFromType(PoseStamped._TYPE);\n\n //check to see if we've reached the goal position\n if (xy_tolerance_latch_ || (LPutils.getGoalPositionDistance(global_pose.getPose(), goal_x, goal_y) <= xy_goal_tolerance_)) {\n\n //if(base_local_planner::goalPositionReached(global_pose, goal_x, goal_y, xy_goal_tolerance_) || xy_tolerance_latch_){\n\n //if the user wants to latch goal tolerance, if we ever reach the goal location, we'll\n //just rotate in place\n if(latch_xy_goal_tolerance_)\n xy_tolerance_latch_ = true;\n\n //check to see if the goal orientation has been reached\n double angle = LPutils.getGoalOrientationAngleDifference(global_pose.getPose(), goal_th);\n //check to see if the goal orientation has been reached\n if (Math.abs(angle) <= yaw_goal_tolerance_) {\n\n //set the velocity command to zero\n linear.setX(0.0);\n linear.setY(0.0);\n linear.setZ(0.0);\n cmd_vel.setLinear(linear);\n angular.setZ(0.0);\n cmd_vel.setAngular(angular);\n rotating_to_goal_ = false;\n xy_tolerance_latch_ = false;\n }\n else {\n //copy over the odometry information\n Odometry base_odom=messageFactory.newFromType(Odometry._TYPE);\n me.me_lock_.lock();\n try{\n base_odom=me.getBaseOdom();\n }finally {\n me.me_lock_.unlock();\n }\n\n //if we're not stopped yet... we want to stop... taking into account the acceleration limits of the robot\n if(!rotating_to_goal_ && !LPutils.stopped(base_odom, rot_stopped_velocity_, trans_stopped_velocity_)){\n //ROS_DEBUG(\"Not stopped yet. base_odom: x=%6.4f,y=%6.4f,z=%6.4f\", base_odom.twist.twist.linear.x,base_odom.twist.twist.linear.y,base_odom.twist.twist.angular.z);\n if(!stopWithAccLimits(global_pose, robot_vel, cmd_vel))\n return false;\n }\n //if we're stopped... then we want to rotate to goal\n else{\n //set this so that we know its OK to be moving\n rotating_to_goal_ = true;\n if(!rotateToGoal(global_pose, robot_vel, goal_th, cmd_vel))\n return false;\n }\n }\n\n //publish an empty plan because we've reached our goal position\n transformed_plan_.clear();\n LPutils.publishPlan(transformed_plan_, g_plan_pub_);\n LPutils.publishPlan(transformed_plan_, l_plan_pub_);\n //we don't actually want to run the controller when we're just rotating to goal\n return true;\n }\n\n //TODO:transform\n/* tf::Stamped<tf::Pose> target_pose;\n target_pose.setIdentity();\n target_pose.frame_id_ = robot_base_frame_;*/\n PoseStamped target_pose=messageFactory.newFromType(PoseStamped._TYPE);\n\n if (!skip_next_){\n if(!transformGlobalPlan(tf_, global_plan_, costmap_ros_, global_frame_, transformed_plan_)){\n this.node.getLog().warn(\"Could not transform the global plan to the frame of the controller\");\n return false;\n }\n PoseStamped target_pose_msg=messageFactory.newFromType(PoseStamped._TYPE);\n findBestWaypoint(target_pose_msg, global_pose);\n }\n //TODO\n /*tf::poseStampedMsgToTF(transformed_plan_[current_waypoint_], target_pose);*/\n\n\n Twist res=messageFactory.newFromType(Twist._TYPE);\n\n linear.setX(target_pose.getPose().getPosition().getX() - global_pose.getPose().getPosition().getX());\n linear.setY(target_pose.getPose().getPosition().getY() - global_pose.getPose().getPosition().getY());\n res.setLinear(linear);\n angular.setZ(Angles.shortest_angular_distance(LPutils.getYaw(global_pose.getPose().getOrientation()), Math.atan2(res.getLinear().getY(), res.getLinear().getX())));\n res.setAngular(angular);\n\n Vector2 goal_dir = new Vector2(res.getLinear().getX(),res.getLinear().getY());\n if (Vector2.abs(goal_dir) > me.max_vel_x_) {\n goal_dir = Vector2.mul(Vector2.normalize(goal_dir),me.max_vel_x_);\n }\n else if (Vector2.abs(goal_dir) < me.min_vel_x_) {\n goal_dir =Vector2.mul(Vector2.normalize(goal_dir), me.min_vel_x_ * 1.2);\n }\n\n\n Vector2 pref_vel = new Vector2(goal_dir.getX(),goal_dir.getY());\n\n //TODO collvoid added\n\n me.computeNewVelocity(pref_vel, cmd_vel);\n\n\n if(Math.abs(cmd_vel.getAngular().getZ())<me.min_vel_th_)\n angular.setZ(0.0);\n\n if(Math.abs(cmd_vel.getLinear().getX())<me.min_vel_x_)\n linear.setX(0.0);\n\n if(Math.abs(cmd_vel.getLinear().getY())<me.min_vel_y_)\n linear.setY(0.0);\n\n cmd_vel.setLinear(linear);\n cmd_vel.setAngular(angular);\n\n\n boolean valid_cmd = true; //collision_planner_.checkTrajectory(cmd_vel.linear.x, cmd_vel.linear.y, cmd_vel.angular.z,true);\n\n if (!valid_cmd){\n angular.setZ(0.0);\n linear.setX(0.0);\n linear.setY(0.0);\n cmd_vel.setLinear(linear);\n cmd_vel.setAngular(angular);\n }\n\n if (cmd_vel.getLinear().getX() == 0.0 && cmd_vel.getAngular().getZ() == 0.0 && cmd_vel.getLinear().getY() == 0.0) {\n\n this.node.getLog().debug(\"Did not find a good vel, calculated best holonomic velocity was:\"\n + me.velocity.getX()+\", \"+me.velocity.getY()+\", cur wp \"+current_waypoint_+\" of \"+transformed_plan_.size()+\" trying next waypoint\");\n if (current_waypoint_ < transformed_plan_.size()-1){\n current_waypoint_++;\n skip_next_= true;\n }\n else {\n transformed_plan_.clear();\n LPutils.publishPlan(transformed_plan_, g_plan_pub_);\n LPutils.publishPlan(transformed_plan_, l_plan_pub_);\n\n return false;\n }\n }\n else {\n skip_next_ = false;\n }\n\n\n List<PoseStamped> local_plan=new ArrayList<PoseStamped>();\n PoseStamped pos=messageFactory.newFromType(PoseStamped._TYPE);\n\n //TODO\n //tf::poseStampedTFToMsg(global_pose,pos);\n pos.setPose(global_pose.getPose());\n pos.setHeader(global_pose.getHeader());\n local_plan.add(pos);\n local_plan.add(transformed_plan_.get(current_waypoint_));\n LPutils.publishPlan(transformed_plan_, g_plan_pub_);\n LPutils.publishPlan(local_plan, l_plan_pub_);\n //me_->publishOrcaLines();\n return true;\n }",
"public void reviseMotorSpeed() {\n\t\tmHandler.removeMessages(EVAL_MOTOR_SPEED);\n\t\tlong starttime = System.currentTimeMillis();\n\n\t\t//Retrieve current orientation.\t\t\n\t\t\n\t\tmAzimuth = mStatus.getReadingField(AZIMUTH);\t\t\n\t\tmPitchDeg = mStatus.getReadingField(PITCH);\n\t\tmRollDeg = -mStatus.getReadingField(ROLL);\n\t\t\n\t\tdouble[] errors = new double[4];\n\t\tsynchronized (mAngleTarget) {\n\t\t\t//logArray(\"mAngleTarget\", mAngleTarget);\n\t\t\terrors[0] = mAngleTarget[0] - mRollDeg;\n\t\t\terrors[1] = mAngleTarget[1] - mPitchDeg;\n\t\t\terrors[2] = mAngleTarget[2] - mStatus.getGpsField(dALT);\n\t\t\terrors[3] = mAngleTarget[3] - mAzimuth;\n\t\t\t//logArray(\"errors\", errors);\n\t\t}\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tString errs = \"errors: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\terrs += errors[i] + \": \";\n\t\t}\n\t\t//Log.v(TAG, errs);\n\t\t//For azimuth, multiple possibilities exist for error, each equally valid; but only the error nearest zero makes practical sense.\n\t\tif (errors[3] > 180.0)\n\t\t\terrors[3] -= 360.0;\n\t\tif (errors[3] < -180.0)\n\t\t\terrors[3] += 360.0;\n\t\t\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t//Calculate proportional errors\n\t\t\tdouble err = errors[i];//mTarget[i] - mCurrent[i];\n\t\t\t\n\n\t\t\t//Calculate derivative errors.\n\t\t\tlong timeInterval = starttime - mLastUpdate;\n\t\t\tif (timeInterval != 0) {\n\t\t\t\tmErrors[i][2] = (err - mErrors[i][0]) * 1000.0 / timeInterval;\n\t\t\t} else {\n\t\t\t\tmErrors[i][2] = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Mark proportional error\n\t\t\tmErrors[i][0] = err;\n\t\t\t/*if (i == 2)\n\t\t\t\tLog.v(TAG, \"guid, dalt err is \" + err);*/\n\t\t\t//Update integral errors\n\t\t\tmErrors[i][1] -= mIntegralErrors[i][mIntegralIndex];\n\t\t\tmIntegralErrors[i][mIntegralIndex] = err;\n\t\t\tmErrors[i][1] += err;\n\t\t\tmIntegralIndex = ++mIntegralIndex % PIDREPS;\n\t\t\t\n\t\t\t//Calculate changes in output\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tmControlVars[i] += mErrors[i][j] * mGain[i][j];\n\t\t\t}\n\t\t}\n\t\tif (mGuidanceMode.get() == MANUAL) {\n\t\t\tsynchronized (mAngleTarget) {\n\t\t\t\tmControlVars[2] = mAngleTarget[2];\n\t\t\t}\n\t\t}\n\t\tmLastUpdate = starttime;\n\t\t\n\t\t// Constrain control vars:\n\t\tmControlVars[0] = constrainValue(mControlVars[0], -1, 1);\n\t\tmControlVars[1] = constrainValue(mControlVars[1], -1, 1);\n\t\tmControlVars[2] = constrainValue(mControlVars[2], 0, 1);\n\t\tmControlVars[3] = constrainValue(mControlVars[3], -2, 2);\n\t\t\n\t\t/*String vars = \"Control vars: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tvars += mControlVars[i] + \": \";\n\t\t}\n\t\tLog.v(TAG, vars);*/\n\t\t\n\t\tcontrolVarsToMotorSpeeds();\n\t\t\n\t\t//Send motor values to motors here:\n\t\tupdateMotors();\n\t\tupdateAngleTarget();\n\t\t//Log.v(TAG, \"motors: \" + mMotorSpeed[0] + \", \" + mMotorSpeed[1] + \", \" + mMotorSpeed[2] + \", \" + mMotorSpeed[3]);\n\t\t//Sleep a while\n\t\tlong timetonext = (1000 / PIDREPS) - (System.currentTimeMillis() - starttime);\n\t\t//Log.v(TAG, \"time to next: \" + timetonext);\n\t\tint currentMode = mGuidanceMode.get();\n\t\tif ((currentMode == MANUAL) || (currentMode == AUTOPILOT)) {\n\t\t\tif (timetonext > 0)\n\t\t\t\tmHandler.sendEmptyMessageDelayed(EVAL_MOTOR_SPEED, timetonext);\n\t\t\telse {\n\t\t\t\tLog.e(TAG, \"Guidance too slow\");\n\t\t\t\tmHandler.sendEmptyMessage(EVAL_MOTOR_SPEED);\n\t\t\t}\n\t\t}\n\t}",
"static int getVelocity(){return currentVelocity;}",
"@Override\n public double getVelocity()\n {\n final String funcName = \"getVelocity\";\n double velocity = encoder.getVelocity() * encoderSign / 60.0;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", velocity);\n }\n\n return velocity;\n }",
"void steady_flight_at_given_speed (double step, double start_pitch) {\n // preamble: make sure inputs are in\n //computeFlowAndRegenPlotAndAdjust();\n\n //strut.aoa = 0.5; // ad hoc\n\n recomp_all_parts();\n\n double load = FoilBoard.this.load;\n\n // now moved into load box and bar \n //rider.weight = load - BOARD_WEIGHT - RIG_WEIGHT - FOIL_WEIGHT;\n\n steady_flight_at_given_speed___ok = false; // so far util done\n\n craft_pitch = start_pitch;\n // double prev_pitch = -20; // we nned it only because pitch value gets rounded somewhere in recomp_all_parts...\n while (craft_pitch < aoa_max && craft_pitch > aoa_min) {\n //computeFlowAndRegenPlotAndAdjust();\n recomp_all_parts();\n double lift = foil_lift();\n if (lift == load // exact hit, done !(almost never happens, though)\n // happens due to rounding\n // || prev_pitch == craft_pitch\n ) \n break;\n if (step > 0 && lift > load) { // done or pivot\n if (step < 0.0025) { \n // done! flight is OK\n steady_flight_at_given_speed___ok = true;\n break;\n }\n step = -step/2; // shrink step & pivot\n } else if (step < 0 && lift < load) { \n step = -step/2; // shrink step & pivot\n } // else keep going with current stepa\n // prev_pitch = craft_pitch;\n craft_pitch += step;\n }\n\n // expect small increse in drag as the result\n vpp.set_mast_aoa_for_given_drag(total_drag()); // (wing.drag+stab.drag);\n recomp_all_parts();\n\n // old linearly increasing logic \n //find_aoa_of_min_drag();\n //if (foil_lift() > load_numeric) {\n // // need to reduce AoA\n // while (craft_pitch > aoa_min) {\n // craft_pitch -= 0.1;\n // System.out.println(\"-- reducing... craft_pitch: \" + craft_pitch);\n // computeFlowAndRegenPlotAndAdjust();\n // recomp_all_parts();\n // if (foil_lift() <= load_numeric) \n // break; // done\n // } \n //}\n //else if (foil_lift() < load_numeric) {\n // // need to increase AoA\n // while (craft_pitch < aoa_max) {\n // craft_pitch += 0.1;\n // System.out.println(\"-- increasing... craft_pitch: \" + craft_pitch);\n // computeFlowAndRegenPlotAndAdjust();\n // recomp_all_parts();\n // if (foil_lift() >= load_numeric) \n // break; // done\n // } \n //}\n\n }",
"public void calculate(double totalTime, double timeStep, double robotTrackWidth)\n\t{\n\t\t/**\n\t\t * pseudo code\n\t\t * \n\t\t * 1. Reduce input waypoints to only essential (direction changing) node points\n\t\t * 2. Calculate how many total datapoints we need to satisfy the controller for \"playback\"\n\t\t * 3. Simultaneously inject and smooth the path until we end up with a smooth path with required number \n\t\t * of datapoints, and which follows the waypoint path.\n\t\t * 4. Calculate left and right wheel paths by calculating parallel points at each datapoint \n\t\t */\n\n\n\t\t//First find only direction changing nodes\n\t\tnodeOnlyPath = nodeOnlyWayPoints(origPath);\n\n\t\t//Figure out how many nodes to inject\n\t\tint[] inject = injectionCounter2Steps(nodeOnlyPath.length, totalTime, timeStep);\n\n\t\t//Iteratively inject and smooth the path\n\t\tfor(int i=0; i<inject.length; i++)\n\t\t{\n\t\t\tif(i==0)\n\t\t\t{\n\t\t\t\tsmoothPath = inject(nodeOnlyPath,inject[0]);\n\t\t\t\tsmoothPath = smoother(smoothPath, pathAlpha, pathBeta, pathTolerance);\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsmoothPath = inject(smoothPath,inject[i]);\n\t\t\t\tsmoothPath = smoother(smoothPath, 0.1, 0.3, 0.0000001);\t\n\t\t\t}\n\t\t}\n\n\t\t//Calculate left and right path based on center path\n\t\tleftRight(smoothPath, robotTrackWidth);\n\n\t\torigCenterVelocity = velocity(smoothPath, timeStep);\n\t\torigLeftVelocity = velocity(leftPath, timeStep);\n\t\torigRightVelocity = velocity(rightPath, timeStep);\n\n\t\t//Copy smooth velocities into fix Velocities\n\t\tsmoothCenterVelocity = doubleArrayCopy(origCenterVelocity);\n\t\tsmoothLeftVelocity = doubleArrayCopy(origLeftVelocity);\n\t\tsmoothRightVelocity = doubleArrayCopy(origRightVelocity);\n\n\t\t//Set final vel to zero\n\t\tsmoothCenterVelocity[smoothCenterVelocity.length-1][1] = 0.0;\n\t\tsmoothLeftVelocity[smoothLeftVelocity.length-1][1] = 0.0;\n\t\tsmoothRightVelocity[smoothRightVelocity.length-1][1] = 0.0;\n\n\t\t//Smooth velocity with zero final V\n\t\tsmoothCenterVelocity = smoother(smoothCenterVelocity, velocityAlpha, velocityBeta, velocityTolerance);\n\t\tsmoothLeftVelocity = smoother(smoothLeftVelocity, velocityAlpha, velocityBeta, velocityTolerance);\n\t\tsmoothRightVelocity = smoother(smoothRightVelocity,velocityAlpha, velocityBeta, velocityTolerance);\n\n\t\t//Fix velocity distance error\n\t\tsmoothCenterVelocity = velocityFix(smoothCenterVelocity, origCenterVelocity, 0.0000001);\n\t\tsmoothLeftVelocity = velocityFix(smoothLeftVelocity, origLeftVelocity, 0.0000001);\n\t\tsmoothRightVelocity = velocityFix(smoothRightVelocity, origRightVelocity, 0.0000001);\n\t}",
"public double getVelocity() {\n return mV;\n }",
"public void preStep(float invDT) {\r\n\r\n\t\t// calculate the spring's vector (pointing from body1 to body2) and length\r\n\t\tspring = new Vector2f(body2.getPosition());\r\n\t\tspring.add(r2);\r\n\t\tspring.sub(body1.getPosition());\r\n\t\tspring.sub(r1);\r\n\t\tspringLength = spring.length();\r\n\t\t\r\n\t\t// the spring vector needs to be normalized for applyImpulse as well!\r\n\t\tspring.normalise();\r\n\t\t\r\n\t\t// calculate the spring's forces\r\n\t\t// note that although theoretically invDT could never be 0\r\n\t\t// but here it can\r\n\t\tfloat springConst;\r\n\t\t\r\n\t\tif ( springLength < minSpringSize || springLength > maxSpringSize ) { \r\n\t\t\t// Pre-compute anchors, mass matrix, and bias.\r\n\t\t\tMatrix2f rot1 = new Matrix2f(body1.getRotation());\r\n\t\t\tMatrix2f rot2 = new Matrix2f(body2.getRotation());\r\n\t\r\n\t\t\tr1 = MathUtil.mul(rot1,localAnchor1);\r\n\t\t\tr2 = MathUtil.mul(rot2,localAnchor2);\r\n\t\t\t\r\n\t\t\t// the mass normal or 'k'\r\n\t\t\tfloat rn1 = r1.dot(spring);\r\n\t\t\tfloat rn2 = r2.dot(spring);\r\n\t\t\tfloat kNormal = body1.getInvMass() + body2.getInvMass();\r\n\t\t\tkNormal += body1.getInvI() * (r1.dot(r1) - rn1 * rn1) + body2.getInvI() * (r2.dot(r2) - rn2 * rn2);\r\n\t\t\tmassNormal = 1 / kNormal;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// The spring is broken so apply force to correct it\r\n\t\t\t// note that we use biased velocities for this\r\n\t\t\tfloat springImpulse =\r\n\t\t\t\tinvDT != 0 ? brokenSpringConst * (springLength - springSize) / invDT : 0;\r\n\t\t\t\r\n\t\t\tVector2f impulse = MathUtil.scale(spring, springImpulse);\r\n\t\t\tbody1.adjustBiasedVelocity(MathUtil.scale(impulse, body1.getInvMass()));\r\n\t\t\tbody1.adjustBiasedAngularVelocity((body1.getInvI() * MathUtil.cross(r1, impulse)));\r\n\r\n\t\t\tbody2.adjustBiasedVelocity(MathUtil.scale(impulse, -body2.getInvMass()));\r\n\t\t\tbody2.adjustBiasedAngularVelocity(-(body2.getInvI() * MathUtil.cross(r2, impulse)));\r\n\t\t\t\r\n\t\t\tisBroken = true;\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t} else if ( springLength < springSize ) {\r\n\t\t\tspringConst = compressedSpringConst;\r\n\t\t\tisBroken = false;\r\n\t\t} else { // if ( springLength >= springSize )\r\n\t\t\tspringConst = stretchedSpringConst;\r\n\t\t\tisBroken = false;\r\n\t\t}\r\n\t\t\r\n\t\tfloat springImpulse =\r\n\t\t\tinvDT != 0 ? springConst * (springLength - springSize) / invDT : 0;\r\n\r\n\t\t// apply the spring's forces\r\n\t\tVector2f impulse = MathUtil.scale(spring, springImpulse);\r\n\t\tbody1.adjustVelocity(MathUtil.scale(impulse, body1.getInvMass()));\r\n\t\tbody1.adjustAngularVelocity((body1.getInvI() * MathUtil.cross(r1, impulse)));\r\n\r\n\t\tbody2.adjustVelocity(MathUtil.scale(impulse, -body2.getInvMass()));\r\n\t\tbody2.adjustAngularVelocity(-(body2.getInvI() * MathUtil.cross(r2, impulse)));\r\n\t}",
"public int perform_LMVM() {\n if (_inequality_width > 0) {\n int nvars = _fb.Size() * 2;\n double[] x = new double[nvars];\n \n // INITIAL POINT\n for (int i = 0; i < nvars / 2; i++) {\n x[i] = _va.get(i);\n x[i + _fb.Size()] = _vb.get(i);\n }\n \n // int info = BLMVMSolve(x, nvars);\n \n for (int i = 0; i < nvars / 2; i++) {\n _va.set(i, x[i]);\n _vb.set(i, x[i + _fb.Size()]);\n _vl.set(i, _va.get(i) - _vb.get(i));\n }\n \n return 0;\n } else {\n \n int nvars = _fb.Size();\n double[] x = new double[nvars];\n \n // INITIAL POINT\n for (int i = 0; i < nvars; i++) {\n x[i] = _vl.get(i);\n }\n \n // int info = BLMVMSolve(x, nvars);\n \n for (int i = 0; i < nvars; i++) {\n _vl.set(i, x[i]);\n }\n \n return 0;\n }\n }",
"public void updateTrifecta() {\n\n\t\taccelX = (xl.getX() - 0) * 9.8 * Math.cos(angleToForward * (Math.PI / 180.0)); //convert from g's\n\t\taccelY = (xl.getY() - 0) * 9.8 * Math.sin(angleToForward * (Math.PI / 180.0));\n\t\taccelZ = (xl.getZ() - 0) * 9.8;\n\t\t\n\t\t//velocity updated by acceleration integral\n\t\tvelX += accelX * dT;\n\t\tvelY += accelY * dT;\n\t\tvelZ += accelZ * dT;\n\t\t\n\t\t//position updated by velocity integral and adjusted for robot rotation\n\t\tposX += velX * dT;\n\t\tposY += velY * dT;\n\t\tposZ += velZ * dT;\n\t}",
"void max_speed (double min_lift, double max_drag, boolean update_info) {\n velocity = kts_to_speed(20);\n find_aoa_of_min_drag();\n double pitch_of_min_drag = craft_pitch;\n trace(\"pitch_of_min_drag: \" + pitch_of_min_drag);\n\n // step 2. with current (lowest drag) pitch, iterate speed up\n // until drag exceeds max_drag.\n double speed = (total_drag() > max_drag) || foil_lift() > min_lift\n ? kts_to_speed(5) // pretty arbitrary...\n : velocity;\n\n for (; speed < v_max; speed += 1) { \n velocity = speed;\n //computeFlowAndRegenPlotAndAdjust();\n recomp_all_parts();\n if (total_drag() > max_drag) \n break;\n }\n\n trace(\"velocity after step2: \" + velocity);\n\n // // at min drag angle can not produce enough lift? unsolvable.\n // if (foil_lift() < min_lift) {\n // trace(\"can not solve 'fild max speed' task for given inputs.\\nincrease drag input or decrease lift input\");\n // return;\n // }\n\n // step 3. pitch_of_min_drag correction for too much lift...\n if (foil_lift() > min_lift) {\n // unsustainable, needs less pitch & speed...\n // reduce min_pitch until lift is OK\n while(pitch_of_min_drag > aoa_min) {\n pitch_of_min_drag -= 0.05;\n craft_pitch = pitch_of_min_drag;\n //computeFlowAndRegenPlotAndAdjust();\n recomp_all_parts();\n if (foil_lift() <= min_lift)\n break;\n }\n trace(\"corrected pitch_of_min_drag: \" + pitch_of_min_drag);\n }\n\n // step 4. from this speed, iterate speed down\n for (speed = velocity; speed >= 0; speed -= 1) {\n trace(\"speed: \" + speed);\n double lift = 0;\n double drag = 0;\n double pitch = pitch_of_min_drag;\n velocity = speed;\n set_mast_aoa_for_given_drag(max_drag);\n for (; pitch < aoa_max; pitch += 0.1) {\n craft_pitch = pitch;\n //computeFlowAndRegenPlotAndAdjust();\n recomp_all_parts();\n lift = foil_lift();\n drag = total_drag();\n if (drag >= max_drag) {\n // stop increasing pitch, won't work. \n //likely need less speed\n trace(\"too much drag, break. speed: \" + speed + \" pitch: \" + pitch);\n break;\n }\n if (lift >= min_lift) {\n trace(\"done \");\n if (update_info) {\n make_max_speed_info(min_lift, max_drag, velocity);\n System.out.println(\"\\nDone!\\n----------------\\n\" + max_speed_info);\n }\n return;\n } \n }\n // here pitch is at max. what about lift?\n if (pitch >= aoa_max && lift < min_lift) {\n trace(\"oops, can not be solved.\\nincrease drag limit or decrease lift threshold!\");\n return;\n }\n }\n }",
"float getVoltageStepIncrementOutOfPhase();",
"public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }",
"List<Velocity> initialBallVelocities();",
"private void configVelocityControl() {\n //config remote sensors\n //sets the sensor to be a quad encoder, sets our feedback device to be that sensor\n m_masterMotor.configSelectedFeedbackSensor(TalonSRXFeedbackDevice.CTRE_MagEncoder_Relative, RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //zero the encoders on every init\n zeroEncoder();\n\n //sets whether our motor is inverted\n //this is currently false but can be switched based on testing\n m_masterMotor.setInverted(RobotMap.LAUNCHER_MASTER_INVERTED);\n m_masterMotor.setSensorPhase(RobotMap.LAUNCHER_MASTER_INVERTED);\n\n //this sets how often we pull data from our sensor\n m_masterMotor.setStatusFramePeriod(StatusFrame.Status_2_Feedback0, RobotMap.LAUNCHER_FEEDBACK_PERIOD_MS, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //this configs the deadband for the PID output. Any output with an absolute value less than this will be treated as zero\n m_masterMotor.configNeutralDeadband(0, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //this sets the peak output for our motor controller.\n m_masterMotor.configPeakOutputForward(RobotMap.LAUNCHER_PID_PEAK_OUTPUT, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n //this does the same thing but for the reverse direction\n m_masterMotor.configPeakOutputReverse(0, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n \n //sets the period of the velocity sample\n //effectively this defines the amount of time used to calculate the velocity\n m_masterMotor.configVelocityMeasurementPeriod(RobotMap.VELOCITY_MEASUREMENT_PERIOD, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //Sets the number of samples used in the rolling average for calculating velocity\n m_masterMotor.configVelocityMeasurementWindow(RobotMap.LAUNCHER_VELOCITY_MEASUREMENT_WINDOW, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n \n //set p, i, d, f values\n //the zero is the PID slot, in this case it is zero for the primary PID\n //the launcher has no auxillary or turning PID control\n m_masterMotor.config_kP(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_P);\n m_masterMotor.config_kI(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_I);\n m_masterMotor.config_kD(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_D);\n m_masterMotor.config_kF(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_F);\n\n //this sets the acceptable amount of Integral error, where if the absolute accumulated error exceeds this ammount, it resets to zero\n //this is designed to prevent the PID from going crazy if we move too far from our target\n m_masterMotor.config_IntegralZone(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_I_ZONE, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //sets the max output of the motor specifically within closed loop control\n m_masterMotor.configClosedLoopPeakOutput(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_PID_PEAK_OUTPUT, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //this configures an allowable error in closed loop control\n //any error less than this is treated as zero.\n m_masterMotor.configAllowableClosedloopError(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_ACCEPTABLE_ERROR, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //configures the period for closed loop calculations in MS \n //should be increased if the can bus is haveing issues\n m_masterMotor.configClosedLoopPeriod(RobotMap.PID_PRIMARY_SLOT, RobotMap.LAUNCHER_CLOSED_LOOP_PERIOD_MS, RobotMap.LAUNCHER_CONFIG_TIMEOUT_MS);\n\n //configures ramp speed\n m_masterMotor.configOpenloopRamp(RobotMap.LAUNCHER_OPEN_LOOP_RAMP_TIME_S);\n m_masterMotor.configClosedloopRamp(0);\n\n //sets our closed loop control to use our primary PID slot\n m_masterMotor.selectProfileSlot(RobotMap.PID_PRIMARY_SLOT, 0);\n }",
"public void continuity(Racetrack path, double t0, double t1, double dt, double bound) {\n if (verbose) System.out.println( \"\\nt\\tPi\\tPj\\tPk\\t|dP|\");\n\n Vector3 p0 = new TVector( path.getPosition(t0) );\n if(verbose) System.out.println( \"0.0\\t\"+p0.toString()+\"\\t0.0\");\n\n for (double t=dt; t<t1; t+=dt) {\n Vector3 p1 = new TVector( path.getPosition(t) );\n double d = new Vector3(p1).subtract(p0).getAbs();\n\n if (verbose) System.out.println( t+\"\\t\"+p0.toString()+\"\\t\"+d);\n\n if (d>bound) System.out.println(\"error\");\n assertTrue(\n \"subsequent points violate velocity bounds at t=\"+t+\", d=\"+d,\n (d <= bound)\n );\n p0 = p1;\n }\n }",
"double[][] velocity(double[][] smoothPath, double timeStep)\n\t{\n\t\tdouble[] dxdt = new double[smoothPath.length];\n\t\tdouble[] dydt = new double[smoothPath.length];\n\t\tdouble[][] velocity = new double[smoothPath.length][2];\n\n\t\t//set first instance to zero\n\t\tdxdt[0]=0;\n\t\tdydt[0]=0;\n\t\tvelocity[0][0]=0;\n\t\tvelocity[0][1]=0;\n\t\theading[0][1]=0;\n\n\t\tfor(int i=1; i<smoothPath.length; i++)\n\t\t{\n\t\t\tdxdt[i] = (smoothPath[i][0]-smoothPath[i-1][0])/timeStep;\n\t\t\tdydt[i] = (smoothPath[i][1]-smoothPath[i-1][1])/timeStep;\n\n\t\t\t//create time vector\n\t\t\tvelocity[i][0]=velocity[i-1][0]+timeStep;\n\t\t\theading[i][0]=heading[i-1][0]+timeStep;\n\n\t\t\t//calculate velocity\n\t\t\tvelocity[i][1] = Math.sqrt(Math.pow(dxdt[i],2) + Math.pow(dydt[i],2));\n\t\t}\n\n\n\t\treturn velocity;\n\n\t}",
"double getVx() { return vel[0]; }",
"public void step() {\n hasMoved = new boolean[simulationSize][simulationSize]; // Initializing the array and populating it with false values\n\n for(int i = 0; i < hasMoved.length; i++)\n Arrays.fill(hasMoved[i], false);\n\n moveFluid();\n\n yVelocityModifier.add(gravity);\n for(int i = 0; i < simulationSize; i++) { // Iterating through every grid space\n for(int j = 0; j < simulationSize; j++) {\n if(fluidGrid[i][j][0] == EMPTY_VALUE) // If the current space is empty don't use it\n continue;\n\n for(float xModifier : xVelocityModifier) {\n fluidGrid[i][j][0] += xModifier;\n }\n\n for(float yModifier : yVelocityModifier) {\n fluidGrid[i][j][1] += yModifier;\n }\n }\n }\n\n xVelocityModifier.clear();\n yVelocityModifier.clear();\n }",
"public static void initVelocity() {\n }",
"public void configVelocityControl() {\n leftDrive.configTeleopVelocity();\n rightDrive.configTeleopVelocity();\n }",
"public void differentiatePosition(Racetrack path, double t0, double t1, double dt, double bound) {\n if (verbose) System.out.println(\"t\\tP(t)\\tV(t)\\t|dP-dt*V|\");\n\n // incrementally sample motion\n Vector3 p0 = new TVector( path.getPosition(t0) );\n for (double t=dt; t<t1; t+=dt) {\n\n // compute finite difference as an estimate for velocity\n Vector3 p1 = new TVector( path.getPosition(t) );\n Vector3 dp = new Vector3(p1).subtract(p0);\n // might consider interpolating from more points for better bounds...\n\n // use analytic velocity at endpoint as your truth\n Vector3 v = new TVector( path.getVelocity(t) );\n\n // find the error\n Vector3 e = new Vector3(v).multiply(dt).subtract(dp);\n double error = e.getAbs();\n\n if (verbose) System.out.println(t+\"\\t\"+p1+\"\\t\"+v+\"\\t\"+error);\n assertTrue(\n \"finite differences varied more than |e|=\"+bound+\n \" from analytic velocity at t=\"+t+\", e=\"+e.toTupleString(),\n (error<bound)\n );\n p0 = p1;\n// v = new Vector3( path.getVelocityVector(t) );\n }\n }",
"private double[] calculateTargetVelocities(Position[] smoothedPath, double k) {\n double[] targetVelocities = new double[smoothedPath.length];\n\n // calculates the target velocities for each point\n targetVelocities[smoothedPath.length - 1] = 0; // last point target velocity is zero\n for (int i = smoothedPath.length - 2; i >= 0; i--) { // works backwards as we need to know last point's velocity to calculate current point's\n\n // distance from this current point to next point\n double distance = Functions.distanceFormula(smoothedPath[i].getX(), smoothedPath[i].getY(), smoothedPath[i + 1].getX(), smoothedPath[i + 1].getY());\n\n // finds the smaller value between the velocity constant / the curvature and a new target velocity\n double targetVelocity = Math.min(k / targetCurvatures[i], Math.sqrt(Math.pow(targetVelocities[i + 1], 2) + 2 * MAXIMUM_ACCELERATION * distance));\n targetVelocities[i] = targetVelocity;\n }\n return targetVelocities;\n }",
"double motor_y () { return strut.span + DRIVING_FORCE_HEIGHT; }",
"public void step(double timeStep){\n\t\t\n\t\t//Base case of the recursive implementation --> end if we've basically reached negligible\n\t\t//amounts of time\n\t\tif(timeStep < TIME_EPSILON){\n\t\t\treturn;\n\t\t}\n\t\t\n//\t\t//Modify the velocities of all of the balls according to gravity and friction\n//\t\tfor(Ball ball : balls){\n//\t\t\tdouble vY = ball.getVel().y();\n//\t\t\tdouble vX = ball.getVel().x();\n//\t\t double newVY = vY + GRAVITY * timeStep;\n//\t\t double newVX = vX * (1 - MU_1 * timeStep - MU_2 * Math.abs(vX) * timeStep);\n//\t\t newVY = newVY * (1 - MU_1 * timeStep - MU_2 * Math.abs(newVY) * timeStep);\n//\t\t \n//\t\t ball.setVel(new Vect(newVX, newVY));\n//\t\t}\n\t\t\n\t\tBall collisionBall1 = null;\n\t\tBall collisionBall2 = null;\n\t\tBall collisionBall3 = null;\n\t\tGadget collisionGadget = null;\n\t\t\n\t\t//With the current velocities and positions determine the time for the next ball-ball\n\t\t//collision as well as the balls that actually collide\n\t\tdouble minTimeUntilBallBallCollision = Double.POSITIVE_INFINITY;\n\t\t\n\t\tif(balls.size() > 1){\n\t\t\tcollisionBall1 = balls.get(0);\n\t\t\tcollisionBall2 = balls.get(1);\n\t\t\tfor(int i = 0; i < balls.size() - 1; i++){\n\t\t\t\tfor(int j = i + 1; j < balls.size(); j++){\n\t\t\t\t\tBall ball1 = balls.get(i);\n\t\t\t\t\tBall ball2 = balls.get(j);\n\t\t\t\t\tif(!ball1.getInAbsorber() && !ball2.getInAbsorber()){\t\n\t\t\t\t\t\tdouble timeUntilCollision = ball1.impactCalc(ball2)[0];\n\t\t\t\t\t\tif (timeUntilCollision < minTimeUntilBallBallCollision){\n\t\t\t\t\t\t\tminTimeUntilBallBallCollision = timeUntilCollision;\n\t\t\t\t\t\t\tcollisionBall1 = ball1;\n\t\t\t\t\t\t\tcollisionBall2 = ball2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//With the current velocities and positions determine the time for the next ball-gadget\n\t\t//collision and determine the objects involved in that collision\n\t\tdouble minTimeUntilBallGadgetCollision = Double.POSITIVE_INFINITY;\n\t\tif(balls.size() > 0 && gadgets.size() > 0){\n\t\t\tcollisionBall3 = balls.get(0);\n\t\t\tcollisionGadget = gadgets.get(0);\n\t\t\tfor(Ball b : balls){\n\t\t\t\tif(!b.getInAbsorber()){\n\t\t\t\t\tfor(Gadget g : gadgets){\n\t\t\t\t\t\tdouble timeUntilCollision = ((BoardObject) g).impactCalc(b)[0];\n\t\t\t\t\t\t//System.out.println(g.getID() + \" \" +timeUntilCollision);\n\t\t\t\t\t\tif (timeUntilCollision < minTimeUntilBallGadgetCollision){\n\t\t\t\t\t\t\tminTimeUntilBallGadgetCollision = timeUntilCollision;\n\t\t\t\t\t\t\tcollisionBall3 = b;\n\t\t\t\t\t\t\tcollisionGadget = g;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t\t\n\t\t//Trivially progress the board if the next determined collision of any kind doesn't happen\n\t\t//within the time step\n\t\tif(Math.min(minTimeUntilBallBallCollision, minTimeUntilBallGadgetCollision) > timeStep){\n\t\t\tprogress(timeStep - TIME_EPSILON);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//If a ball-ball collision happens within the time step, progress the board trivially until\n\t\t//just before the collision, modify the ball velocities accordingly and recursively call the\n\t\t//step function passing the remaining time as the argument for step()\n\t\tif(minTimeUntilBallBallCollision < minTimeUntilBallGadgetCollision){\n\t\t\tprogress(minTimeUntilBallBallCollision - TIME_EPSILON);\n\t\t\t\n\t\t\tVect ball1Vel = new Vect(collisionBall2.impactCalc(collisionBall1)[1], collisionBall2.impactCalc(collisionBall1)[2]);\n\t\t\tVect ball2Vel = new Vect(collisionBall1.impactCalc(collisionBall2)[1], collisionBall1.impactCalc(collisionBall2)[2]);\n\t\t\t\n\t\t\tcollisionBall1.setVel(ball1Vel);\n\t\t\tcollisionBall2.setVel(ball2Vel);\n\t\t\t\n\t\t\tstep(timeStep - minTimeUntilBallBallCollision);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//In the final case, a ball-gadget collision occurs within the time step. In this case we\n\t\t//progress the board trivially until just before the collision, modify the ball velocity\n\t\t//and trigger the gadget. Then recursively call the step function passing the remaining time \n\t\t//as the argument for step()\n\t\t\n\t\tprogress(minTimeUntilBallGadgetCollision - TIME_EPSILON);\n\t\t\n\t\tVect ball3Vel = new Vect(((BoardObject)collisionGadget).impactCalc(collisionBall3)[1], ((BoardObject)collisionGadget).impactCalc(collisionBall3)[2]);\n\t\t\n\t\tif(collisionGadget instanceof Absorber){\n\t\t\tcollisionBall3.setVel(new Vect(0,0));\n\t\t\tVect newPos = new Vect(collisionGadget.getX() + collisionGadget.getWidth() - 0.25, collisionGadget.getY() + collisionGadget.getHeight() - 0.25);\n\t\t\tcollisionBall3.setPos(newPos);\n\t\t\tcollisionBall3.setInAbsorber(true);\n\t\t\t((Absorber) collisionGadget).addBallToAbsorber(collisionBall3);\n\t } else if(!(collisionGadget instanceof OuterWall) || ((OuterWall)collisionGadget).getConnectedBoard() == this && ((OuterWall)collisionGadget).getConnectedWall().equals(collisionGadget.getID())){\n\t\t\tcollisionBall3.setVel(ball3Vel);\n\t\t} else{\n\t\t\t//TODO @DANA, this has to do with the client/server ball passing stuff\n\t\t}\n\t\t\n\t\n\t\tcollisionGadget.trigger();\n\n\t\t\n\t\tstep(timeStep - minTimeUntilBallBallCollision);\n\t\treturn;\t\n\t}",
"public void moveOneStep(double dt) {\r\n double movementX = this.p.getX() + dt * this.vel.getDx();\r\n double movementY = this.p.getY() + dt * this.vel.getDy();\r\n Line trajectory = new Line(this.p, new Point(movementX, movementY));\r\n CollisionInfo collInfo = gameE.getClosestCollision(trajectory);\r\n // if there is a collision point collInfo doesn't equal to null.\r\n if (collInfo != null) {\r\n double x = this.getX();\r\n double y = this.getY();\r\n Point collisionPoint = collInfo.collisionPoint();\r\n Collidable obj = collInfo.collisionObject();\r\n Rectangle r = obj.getCollisionRectangle();\r\n // Check if the ball hit on one of the corners block.\r\n if (collisionPoint.getY() == collisionPoint.getX()) {\r\n // If the ball hit on the top corners.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()\r\n || collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n // else the ball hit on the bottom corners.\r\n } else {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n }\r\n // Set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n return;\r\n }\r\n\r\n // If the ball hit on the left border block.\r\n if (collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY();\r\n // If the ball hit on the right border block.\r\n } else if (collisionPoint.getX() == r.getWidth() + r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY();\r\n\r\n }\r\n // If the ball hit on the top border block.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n x = collisionPoint.getX();\r\n // If the ball hit on the bottom border block.\r\n } else if (collisionPoint.getY() == r.getHeight() + r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n x = collisionPoint.getX();\r\n }\r\n // set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n // else move the ball one step.\r\n } else {\r\n this.p = this.getVelocity().applyToPoint(this.p, dt);\r\n }\r\n }",
"@Override\n public void solve(MovementManager mm) {\n // Get current body position, velocity and acceleration\n position = mm.getBody().getPosition().cpy();\n acceleration = calculateAcceleration(mm.getBody(), DT, position.cpy());\n velocity = mm.getBody().getVelocity().cpy();\n\n // Calculate new velocity based on the acceleration\n velocity.add(acceleration.cpy().scl(mm.getDt()));\n\n // Set new values\n mm.getBody().setVelocity(velocity.cpy());\n mm.getBody().setPosition(position.cpy().add(velocity.cpy().scl(mm.getDt())));\n }",
"public float getMotor_ang_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 132);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 124);\n\t\t}\n\t}",
"public double getVelocity() {\n return 360000./(projDensity * projRadius);\n }",
"public void moveOneStep() {\n\n //computing the predicted trajectory\n Line trajectory = computeTrajectory();\n\n //checking the borders\n if (reachedBorder(trajectory)) {\n return;\n }\n\n //getting the closest collision info\n //CollisionInfo collisionInfo = this.gameEnvironment.getClosestCollision(trajectory);\n CollisionInfo collisionInfo = this.gameLevel.getEnvironment().getClosestCollision(trajectory);\n\n if (collisionInfo != null && collisionInfo.collisionObject() != null) {\n\n //changing the velocity according to the collision info (point, type of collidiable\n // and position on the collidable)\n Velocity newVelocity =\n collisionInfo.collisionObject().hit(this, collisionInfo.collisionPoint(), this.velocity);\n this.velocity = newVelocity;\n }\n\n //setting the next position of the center of the ball (new velocity after collision)\n this.center = this.getVelocity().applyToPoint(this.center);\n }",
"public void testStep() {\n\n DT_TractographyImage crossing = Images.getCrossing();\n\n FACT_FibreTracker tracker = new FACT_FibreTracker(crossing);\n\n Vector3D[] pds = crossing.getPDs(1,1,1);\n\n Vector3D step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, true);\n\n assertEquals(1.0, pds[0].dot(step.normalized()), 1E-8);\n\n assertEquals(Images.xVoxelDim / 2.0, step.mod(), 0.05);\n \n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, false);\n\n assertEquals(-1.0, pds[0].dot(step.normalized()), 1E-8);\n\n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 1, true);\n\n assertEquals(1.0, pds[1].dot(step.normalized()), 1E-8);\n\n\n for (int i = 0; i < 2; i++) {\n\n step = tracker.getNextStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), new Vector3D(pds[i].x + 0.01, pds[i].y + 0.02, pds[i].z + 0.03).normalized());\n\n assertEquals(1.0, pds[i].dot(step.normalized()), 1E-8);\n\n }\n\n \n }",
"public Vector3f getTranslationVel(int xform) {\n\t\treturn m_xforms[xform].m_translateVel;\n\t}",
"void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n // Multiplying by 0 sets the all the components to 0\n acc.mult(0);\n}",
"public static double getTimeStep(Cell[] cells){\n return cells[0].dx / Math.abs(Info.ADVECTION_VEL) * Info.CFL; \n }",
"public void updateVelocity(){\r\n if (getPosition().x <= 0 || getPosition().x >= GameBoard.MAX_X) {\r\n setVelocity(getVelocity().add(getVelocity().mul(reverse)));\r\n }\r\n }",
"private void updatePhysics ( ECSEntity entity, long t )\n {\n // Constants.\n \n final double SCREEN_HEIGHT = 600.0;\n final double FRICTION_COEFFICIENT = 0.0001 / SCREEN_HEIGHT;\n final double ACCELERATION = 0.001 / SCREEN_HEIGHT;\n \n // Initialize working variables.\n \n double ax = 0.0;\n double ay = 0.0;\n \n // Retrieve the entity's components.\n \n this.transform = ( ComponentTransform ) entity.getComponent ( Constants.COMPONENT_TRANSFORM );\n this.physics = ( ComponentPhysics ) entity.getComponent ( Constants.COMPONENT_PHYSICS );\n \n // Initialize working variables.\n \n Vector2D a = new Vector2D ( this.physics.acceleration );\n Vector2D v = new Vector2D (); \n Vector2D d = new Vector2D ();\n Vector2D u = new Vector2D ();\n Vector2D dUp = new Vector2D ( 0.0, 1.0 );\n Vector2D dDown = new Vector2D ( 0.0, -1.0 );\n Vector2D dRight = new Vector2D ( 1.0, 0.0 );\n Vector2D dLeft = new Vector2D ( -1.0, 0.0 );\n double p = FRICTION_COEFFICIENT;\n double vMax = this.physics.vMax;\n \n // Calculate velocity.\n \n v.setVector ( a.scale ( t ) ); // Acceleration: a = v/t ↔ v = a·t (Newtonian acceleration).\n \n // Apply accelerator.\n \n if ( v.magnitude() < vMax / t )\n { \n if ( this.physics.accelerateUp ) { a.setVector ( a.add ( dUp.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateDown ) { a.setVector ( a.add ( dDown.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateRight ) { a.setVector ( a.add ( dRight.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateLeft ) { a.setVector ( a.add ( dLeft.scale ( ACCELERATION ) ) ); } \n } \n else\n { \n if ( this.physics.accelerateUp ) { a.setVector ( a.subtract ( dUp.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateDown ) { a.setVector ( a.subtract ( dDown.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateRight ) { a.setVector ( a.subtract ( dRight.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateLeft ) { a.setVector ( a.subtract ( dLeft.scale ( ACCELERATION ) ) ); }\n }\n \n // Calculate displacement. ( Distance to move in this time slice ).\n \n d.setVector ( v.scale ( t ) ); // Velocity: v = d/t ↔ d = v·t (Newtonian velocity).\n \n // Apply friction coefficient.\n \n double a2 = 4.0; // Friction amplifier. Used to speed up lateral deceleration, which improves the sense of control response experienced by the user.\n \n ax = a.getX ();\n ay = a.getY ();\n \n if ( this.physics.accelerateUp || this.physics.accelerateDown )\n {\n // If the user is currently accelerating up or down, then use the friction amplifier to speed up deceleration along the horizontal axis.\n \n if ( ax < 0 ) ax += p*a2;\n if ( ax > 0 ) ax -= p*a2;\n if ( ay < 0 ) ay += p;\n if ( ay > 0 ) ay -= p;\n }\n else if ( this.physics.accelerateLeft || this.physics.accelerateRight )\n {\n // If the user is currently accelerating left or right, then use the friction amplifier to speed up deceleration along the vertical axis.\n \n if ( ax < 0 ) ax += p;\n if ( ax > 0 ) ax -= p;\n if ( ay < 0 ) ay += p*a2;\n if ( ay > 0 ) ay -= p*a2;\n }\n else\n {\n // If the user is not accelerating in any direction, then just apply the normal friction coefficient in all direction.\n \n if ( ax < 0 ) { ax += p; if ( ax > 0.0 ) ax = 0.0; }\n if ( ax > 0 ) { ax -= p; if ( ax < 0.0 ) ax = 0.0; }\n if ( ay < 0 ) { ay += p; if ( ay > 0.0 ) ay = 0.0; }\n if ( ay > 0 ) { ay -= p; if ( ay < 0.0 ) ay = 0.0; }\n }\n \n a.setVector ( ax, ay );\n \n // Update physics.\n \n this.physics.acceleration.setVector ( a );\n this.physics.velocity.setVector ( v );\n \n // Update translation.\n \n this.transform.translation.setVector ( this.transform.translation.add ( d ) );\n }",
"private void run() {\n\n //if no time has elapsed, do not do anything\n if (Harness.getTime().equals(lastRunTime)) {\n return;\n }\n\n //double deltaV, deltaX;\n double newSpeed;\n double newPosition;\n double targetSpeed = 0;\n double currentSpeed = 0;\n double acceleration = 0;\n\n switch (driveOrderedState.speed()) {\n case STOP:\n targetSpeed = 0.0;\n break;\n case LEVEL:\n targetSpeed = LevelingSpeed;\n break;\n case SLOW:\n targetSpeed = SlowSpeed;\n break;\n case FAST:\n targetSpeed = FastSpeed;\n break;\n default:\n throw new RuntimeException(\"Unknown speed\");\n }\n /*\n * JDR Bug fix to make the speed stop in the case where the command is\n * Direction=STOP but speed is something other than STOP.\n */\n if (driveOrderedState.direction() == Direction.STOP) {\n targetSpeed = 0.0;\n }\n if (driveOrderedState.direction() == Direction.DOWN) {\n targetSpeed *= -1;\n }\n\n currentSpeed = driveSpeedState.speed();\n if (driveSpeedState.direction() == Direction.DOWN) {\n currentSpeed *= -1;\n }\n\n if (Math.abs(targetSpeed) > Math.abs(currentSpeed)) {\n //need to accelerate\n acceleration = Acceleration;\n } else if (Math.abs(targetSpeed) < Math.abs(currentSpeed)) {\n //need to decelerate\n acceleration = -1 * Deceleration;\n } else {\n acceleration = 0;\n }\n if (currentSpeed < 0) {\n //reverse everything for negative motion (going down)\n acceleration *= -1;\n }\n\n //get the time offset in seconds since the last update\n double timeOffset = SimTime.subtract(Harness.getTime(), lastRunTime).getFracSeconds();\n //remember this time as the last update\n lastRunTime = Harness.getTime();\n\n //now update speed\n //deltav = at\n newSpeed = currentSpeed + (acceleration * timeOffset);\n\n //deltax= vt+ 1/2 at^2\n newPosition = carPositionState.position() +\n (currentSpeed * timeOffset) + \n (0.5 * acceleration * timeOffset * timeOffset);\n if ((currentSpeed < targetSpeed &&\n newSpeed > targetSpeed) ||\n (currentSpeed > targetSpeed &&\n newSpeed < targetSpeed)) {\n //if deltaV causes us to exceed the target speed, set the speed to the target speed\n driveSpeedState.setSpeed(Math.abs(targetSpeed));\n } else {\n driveSpeedState.setSpeed(Math.abs(newSpeed));\n }\n //determine the direction\n if (driveSpeedState.speed() == 0) {\n driveSpeedState.setDirection(Direction.STOP);\n } else if (targetSpeed > 0) {\n driveSpeedState.setDirection(Direction.UP);\n } else if (targetSpeed < 0) {\n driveSpeedState.setDirection(Direction.DOWN);\n }\n carPositionState.set(newPosition);\n\n physicalConnection.sendOnce(carPositionState);\n physicalConnection.sendOnce(driveSpeedState);\n\n log(\" Ordered State=\", driveOrderedState,\n \" Speed State=\", driveSpeedState,\n \" Car Position=\", carPositionState.position(), \" meters\");\n }",
"private static Vector3f[] calculatePositionDifferences(Drone drone, Vector3f[] newVelocities, float dt) {\r\n\r\n\t\t\r\n\t\t// calculate the average linear velocity\r\n\t\tVector3f avgLinearVelocityW = average(drone.getLinearVelocity(), newVelocities[0]);\r\n\r\n\t\t// calculate the translation\r\n\t\tVector3f deltaPositionW = (Vector3f) avgLinearVelocityW.scale(dt);\r\n\r\n\t\t// calculate the average angular velocity\r\n\t\tVector3f avgAngularVelocityW = average(drone.getAngularVelocity(), newVelocities[1]);\r\n\r\n\t\t// calculate the rotation\r\n\t\tVector3f deltarotationW = ((Vector3f) avgAngularVelocityW.scale(dt));\r\n\r\n\t\treturn new Vector3f[] { deltaPositionW, deltarotationW };\r\n\t}",
"public void solveFlow() {\n for(int ix=1;ix<cols-1;ix++) {\n int x0=ix*resolution+resolution/2;\n for(int iy=1;iy<rows-1;iy++) {\n int y0=iy*resolution+resolution/2;\n int ig=iy*cols+ix;\n //y0Z=iy*resolution+resolution/2;\n //igz=iy*cols+ix;\n\n // prepare vectors fx, fy, ft\n getnext9(dxr,fx,ig,0); // dx red\n //getnext9(dxg,fx,ig,9); // dx green\n //getnext9(dxb,fx,ig,18);// dx blue\n getnext9(dyr,fy,ig,0); // dy red\n //getnext9(dyg,fy,ig,9); // dy green\n //getnext9(dyb,fy,ig,18);// dy blue\n getnext9(dtr,ft,ig,0); // dt red\n //getnext9(dtg,ft,ig,9); // dt green\n //getnext9(dtb,ft,ig,18);// dt blue\n\n // solve for (flowx, flowy) such that\n // fx flowx + fy flowy + ft = 0\n solveSectFlow(ig);\n\n // smoothing\n sflowx[ig]+=(flowx[ig]-sflowx[ig])*wflow;\n sflowy[ig]+=(flowy[ig]-sflowy[ig])*wflow;\n\n float u=df*sflowx[ig];\n float v=df*sflowy[ig];\n //float u=df*sflowx[ig];\n //float v=df*sflowy[ig];\n\n float a=sqrt(u*u+v*v);\n\n // register new vectors\n if(a>= minRegisterFlowVelocity) \n {\n field[ix][iy] = new PVector(u,v);\n\n // REMOVED FROM drawColorFlow() to here\n if(a>=minDrawParticlesFlowVelocity) { \n \n // display flow when debugging\n if (drawOpticalFlow) \n {\n stroke(255.0f, 0.0f, 0.0f);\n line(x0,y0,x0+u,y0+v);\n } \n\n // same syntax as memo's fluid solver (http://memo.tv/msafluid_for_processing)\n float mouseNormX = (x0+u) * invKWidth;// / kWidth;\n float mouseNormY = (y0+v) * invKHeight; // kHeight;\n float mouseVelX = ((x0+u) - x0) * invKWidth;// / kWidth;\n float mouseVelY = ((y0+v) - y0) * invKHeight;// / kHeight; \n\n particleManager.addForce(1-mouseNormX, mouseNormY, -mouseVelX, mouseVelY);\n }\n }\n }\n }\n }",
"public void addVelocity(double var1, double var3, double var5)\n {}",
"private static void updateComponents(PhysicsGameObject obj, Vector3 position, Velocity velocity, Vector3 acceleration,double dt){\n float newX = (float) (position.x +(dt * velocity.Vx) + (dt*acceleration.x * dt / 2));\n float newY = (float) (position.y + (dt * velocity.Vy) + ( dt*acceleration.y * dt / 2));\n\n //v(t+h) = v(t) + h*a\n float newVelX = (float) (velocity.Vx + dt * acceleration.x );\n float newVelY = (float) (velocity.Vy + dt * acceleration.y );\n\n obj.setPositionX(newX);\n obj.setPositionY(newY);\n\n obj.setVelocityComponents(newVelX, newVelY);\n\n\n }",
"private void calculateTorque(){\n\t\ttau[0] = L * k * (w1*w1 - w3*w3);\r\n\t\t//Pitch torque\r\n\t\ttau[1] = L * k * (w2*w2 - w4*w4);\r\n\t\t//The total torque about the z axis is given by the sum of all the torques from each propeller.\r\n\t\ttau[2] = b * (w1*w1 - w2*w2 + w3*w3 - w4*w4);\r\n\t}",
"double getVz() { return vel[2]; }",
"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 Vector2D getVelocity ();",
"protected long travel() {\n\n return Math.round(((1 / Factory.VERTEX_PER_METER_RATIO) / (this.speed / 3.6)) * 1000);\n }",
"@SuppressWarnings(\"unused\")\n \tpublic static double Distance(\tArrayList<Float> x_accel, \n \t\t\t\t\t\t\t\t\tArrayList<Float> y_accel, \n \t\t\t\t\t\t\t\t\tArrayList<Float> z_accel,\n \t\t\t\t\t\t\t\t\tArrayList<Float> t)\n \t{\n \t\tArrayList<Float> dx_veloc = new ArrayList<Float>(); dx_veloc.add(0f);\n \t\tArrayList<Float> dy_veloc = new ArrayList<Float>(); dy_veloc.add(0f);\n \t\tArrayList<Float> dz_veloc = new ArrayList<Float>(); dz_veloc.add(0f);\n \t\t\n \t\tArrayList<Float> x_veloc = new ArrayList<Float>(); x_veloc.add(0f);\n \t\tArrayList<Float> y_veloc = new ArrayList<Float>(); y_veloc.add(0f);\n \t\tArrayList<Float> z_veloc = new ArrayList<Float>(); z_veloc.add(0f);\n \t\t\n \t\t//compose velocity\n \t\tint I = x_accel.size();\n \t\tfloat dt;\n \t\tSystem.out.println(\"Composing Velocity...\\n\");\n \t\tfor( int i = 1; i < I; i++ )\n \t\t{\t\n \t\t\t//x'_i = x''_(i-1) * dt\n \t\t\t//y'_i = y''_(i-1) * dt\n \t\t\t//z'_i = z''_(i-1) * dt\n \t\t\tdt = t.get(i) - t.get(i-1);\n \t\t\tdx_veloc.add( x_accel.get(i-1) * dt);\n \t\t\tdy_veloc.add( y_accel.get(i-1) * dt);\n \t\t\tdz_veloc.add( z_accel.get(i-1) * dt);\n \t\t\tSystem.out.println(\"Step: \" + i + \"\\n\\tv_x: \"+ dx_veloc.get(i) + \"\\n\\tv_y: \" + dy_veloc.get(i) + \"\\n\\tv_z: \" + dz_veloc.get(i));\n \t\t}\n \t\tfloat temp = 0f;\n \t\tfor(float d : dx_veloc)\n \t\t\t{\n \t\t\t\ttemp += d;\n \t\t\t\tx_veloc.add(temp);\n \t\t\t}\n \t\t\n \t\ttemp = 0;\n \t\tfor(float d : dy_veloc)\n \t\t\t{\n \t\t\t\ttemp += d;\n \t\t\t\ty_veloc.add(temp);\n \t\t\t}\n \t\t\n \t\ttemp = 0;\n \t\tfor(float d : dz_veloc)\n \t\t\t{\n \t\t\t\ttemp += d;\n \t\t\t\tz_veloc.add(temp);\n \t\t\t}\n \t\t\n \t\tArrayList<Float> dx_disp = new ArrayList<Float>(); dx_disp.add(0f); dx_disp.add(0f);\n \t\tArrayList<Float> dy_disp = new ArrayList<Float>(); dy_disp.add(0f); dy_disp.add(0f);\n \t\tArrayList<Float> dz_disp = new ArrayList<Float>(); dz_disp.add(0f); dz_disp.add(0f);\n \t\t\n \t\tArrayList<Float> x_disp = new ArrayList<Float>(); x_disp.add(0f); x_disp.add(0f);\n \t\tArrayList<Float> y_disp = new ArrayList<Float>(); y_disp.add(0f); y_disp.add(0f);\n \t\tArrayList<Float> z_disp = new ArrayList<Float>(); z_disp.add(0f); z_disp.add(0f);\n \t\t\n \t\t//compose displacement\n \t\tI = t.size();\n \t\tfor( int i = 2; i < I; i++ )\n \t\t{\t\n \t\t\t//x_i = x'_(i-1) * dt\n \t\t\t//y_i = y'_(i-1) * dt\n \t\t\t//z_i = z'_(i-1) * dt\n \t\t\tdt = t.get(i) - t.get(i-1);\n \t\t\tdx_disp.add( x_veloc.get(i-1) * dt);\n \t\t\tdy_disp.add( y_veloc.get(i-1) * dt);\n \t\t\tdz_disp.add( z_veloc.get(i-1) * dt);\n \t\t}\n \t\t\n \t\t//compose total displacement\n \t\tfloat distance = 0;\n \n \t\tif( true/*Euclidean_Distance_Mode */)\n \t\t{\n \t\t\t//vector addition, constructing R\n \t\t\tSystem.out.println(\"Composing R...\\n\");\n \t\t\tfloat r[] = new float[3]; //[x, y, z]\n \t\t\tfor( int i = 0; i < I; i++)\n \t\t\t{\n \t\t\t\tr[0] += dx_disp.get(i);\n \t\t\t\tr[1] += dy_disp.get(i);\n \t\t\t\tr[2] += dz_disp.get(i);\n \t\t\t\tSystem.out.println(\"Step: \" + i + \"\\n\\tr_x: \"+ r[0] + \"\\n\\tr_y: \" + r[1] + \"\\n\\tr_z: \" + r[2]);\n \t\t\t}\n \t\t\n \t\t\t//Distance formula, constructing D\n \t\t\t//D = sqrt(X^2 + Y^2 + Z^2)\n \t\t\tdistance = (float) Math.sqrt( \n \t\t\t\t\t\t\tMath.pow(r[0], 2) + \n \t\t\t\t\t\t\tMath.pow(r[1], 2) +\n \t\t\t\t\t\t\tMath.pow(r[2], 2)\n \t\t\t\t\t\t\t);\n \t\t\treturn distance;\n \t\t}\n \n \t\telse if ( false /*Path_Distance_Mode */)\n \t\t{\n \t\t\t//sum up individual distances, constructing D\n \t\t\tfor( int i = 0; i < I; i++)\n \t\t\t{\n \t\t\t\t//dD = sqrt( dx^2 + dy^2 + dz^2 )\n \t\t\t\tdistance += Math.sqrt(\n \t\t\t\t\t\t\t\tMath.pow(dx_disp.get(i), 2) +\n \t\t\t\t\t\t\t\tMath.pow(dy_disp.get(i), 2) +\n \t\t\t\t\t\t\t\tMath.pow(dz_disp.get(i), 2)\n \t\t\t\t\t\t\t\t);\n \t\t\t}\t\t\n \t\t\treturn distance;\n \t\t} \n \treturn 0; //won't get here.\n }",
"public void updateVelocity (Body[] bodies, int dt) {\n this.updateAcceleration(bodies);\n this.vx += 0.5 * (this.ax + this.axplusone) * dt;\n this.vy += 0.5 * (this.ay + this.ayplusone) * dt;\n }",
"@Override\n protected void execute() {\n \n //get velocity from SmartDashboard\n double m_sideVelocity = SmartDashboard.getNumber(\"Side Velocity\", 0);\n double m_beltVelocity = SmartDashboard.getNumber(\"Belt velocity\", 0);\n // if velocity coefficients on SmartDashboard have changed, write new values to controller\n \n Robot.CD7.setSideMotor(m_sideVelocity);\n Robot.CD7.setBeltMotor(m_beltVelocity);\n }",
"double getVy() { return vel[1]; }",
"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}",
"@Override\n public Point3D getValue() {\n return velocity;\n }",
"public void calcInc(int np)\n\t{\n \n findSpecEq();\n int nofc=numberOfComponents;\n fvec.timesEquals(0.0);\n fvec.set(nofc+1,0,1.0);\n Matrix dxds=Jac.solve(fvec);\n if (np<5)\n {\n double dp=0.01;\n ds=dp/dxds.get(nofc+1,0);\n Xgij.setMatrix(0,nofc+1,np-1,np-1,u);\n dxds.timesEquals(ds);\n // dxds.print(0,10);\n u.plusEquals(dxds);\n // Xgij.print(0,10);\n// u.print(0,10);\n }\n else\n {\n //System.out.println(\"iter \" +iter + \" np \" + np);\n if (iter>6)\n { \n ds *= 0.5;\n System.out.println(\"ds > 6\");\n }\n \n else\n {\n if (iter<3) {\n ds *= 1.5;\n }\n if (iter==3) {\n ds *= 1.1;\n }\n if (iter==4) {\n ds *= 1.0;\n }\n if (iter>4) {\n ds *= 0.5;\n }\n \n// Now we check wheater this ds is greater than dTmax and dPmax.\n if(Math.abs(system.getTemperature()*dxds.get(nofc,0)*ds)>dTmax){\n // System.out.println(\"true T\");\n ds=sign(dTmax/system.getTemperature()/Math.abs(dxds.get(nofc,0)),ds);\n }\n \n if(Math.abs(system.getPressure()*dxds.get(nofc+1,0)*ds)>dPmax)\n {\n ds=sign(dPmax/system.getPressure()/Math.abs(dxds.get(nofc+1,0)),ds);\n // System.out.println(\"true P\");\n }\n if (etterCP2) {\n etterCP2=false;\n ds = 0.5*ds;\n }\n \n Xgij.setMatrix(0,nofc+1,0,2,Xgij.getMatrix(0,nofc+1,1,3)); \n Xgij.setMatrix(0,nofc+1,3,3,u);\n s.setMatrix(0,0,0,3,Xgij.getMatrix(speceq,speceq,0,3));\n // s.print(0,10);\n // System.out.println(\"ds1 : \" + ds);\n calcInc2(np);\n // System.out.println(\"ds2 : \" + ds);\n \n// Here we find the next point from the polynomial.\n \n }\n }\n }",
"void easy_ride (double min_lift) { \n double pitch = 0;\n double min_drag = 10000.0;\n double step = 2;\n for (int count = 0; count < 10000; count++) {\n trace(\"velocity: \" + velocity + \" step: \" + step);\n steady_flight_at_given_speed(5, 0);\n double total_drag = total_drag();\n double foil_lift = foil_lift();\n if (Math.abs(step) < 0.01) break;\n if (//(step < 0 && velocity+step <= 0) ||\n (step > 0 && velocity >= 70) ||\n foil_lift < load ||\n total_drag > min_drag) { // can't pivot because of local max of drag before taking off.... \n velocity -= step;\n step *= 0.5;\n } else {\n velocity += step;\n min_drag = total_drag;\n }\n }\n make_cruising_info(min_lift, min_drag, velocity); \n System.out.println(\"\\nDone!\\n----------------\\n\" + cruising_info);\n }",
"public double getVelocity() {\n\t\treturn velocity.getlength();\n\t}",
"public static void updatePosition() {\n\t\tfor (int i = 0; i < TitanV4.planets.length; i++) { //compute forces between all celestial corpses\n\t\t\tfor(int j=i; j<TitanV4.planets.length; j++){\n\t\t\t\tif (i != j) {\n\t\t\t\t\tdouble upper = TitanV4.G*TitanV4.planets[i].getMass() * TitanV4.planets[j].getMass();\n\t\t\t\t\tdouble lower = TitanV4.planets[i].getPosition().distanceFrom(TitanV4.planets[j].getPosition());\n\t\t\t\t\tdouble gravitation = upper/lower;\n\t\t\t\t\tVector a = new Vector();\n\t\t\t\t\ta = TitanV4.planets[i].getPosition().substract(TitanV4.planets[j].getPosition()).normalize().multiply(-1);\n\n\t\t\t\t\tTitanV4.planets[i].force.add(a.multiply(gravitation));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//compute acceleration vector for each celestial corpse but the sun\n\t\tfor(int i=1; i<TitanV4.planets.length; i++){\n\t\t\tTitanV4.planets[i].acceleration = (TitanV4.planets[i].force.divide(TitanV4.planets[i].getMass()));\n\t\t}\n\n\t\t//calculate change in speed over deltaT\n\t\tfor(int i=1; i<TitanV4.planets.length; i++){\n\t\t\tVector oldVelocity = new Vector(TitanV4.planets[i].velocity);\n\t\t\tTitanV4.planets[i].velocity.add((TitanV4.planets[i].acceleration.multiply(TitanV4.deltaT)));\n\n\t\t\tVector posChange = new Vector();\n\t\t\tposChange = (oldVelocity.add(velocity).divide(2)).multiply(TitanV4.deltaT);\n\t\t\tTitanV4.planets[i].pos.add(posChange);\n\t\t}\n\t}",
"public Velocity getVelocity() {\n return this.v;\n\n }",
"public double getVelocity() {\n \treturn this.currentSpeed;\n }",
"public void process()\n {\n // Get current time\n\t\tdouble t = readClock() * clockSpeed;\n\t\tdouble dTime = t - computeClock;\n\t\tdouble dtMax = 1/50.0f;\n\t\n\t\t// Set current time on display\n\t\tcomputeClock = t;\n\t\t\n\n // Only process if time has elapsed\n if (dTime <= 0)\n return;\n\n\n\t\t// ---------------\n\t\n\t\t// Compute accelerations, then integrate (using Critter methods)\n\t\n\t // This part advances the simulation forward by dTime seconds, but\n\t // using steps that are no larger than dtMax (this means it takes\n\t // more than one step when dTime > dtMax -- the number of steps\n\t // you need is stored in numSteps).\n\t\n\t // *** placeholder value\n\t int numSteps = (int) Math.floor(dTime / dtMax);\n\t \n\t // compute a new 'goal' point for the mainbug to attract toward - every 7 seconds\n\t if ((computeClock) - (goalPickClock) > 7)\n\t {\n\t \t// pick a new random goal point\n\t \tgoal = new Point3d(rgen.nextDouble()*16-8, rgen.nextDouble()*16-8, 0);\n\t \tgoalPickClock = computeClock;\n \t\n\t \ttarget = (int)rgen.nextDouble()*(critters.size()-2);\n\t \twhile (critters.get(target) == predator || critters.get(target) == mainBug)\n\t \t\ttarget = (int)(rgen.nextDouble()*(critters.size()-1));\n\t }\n\t \n\t // Here is the rough structure of what you'll need\n\t //\n\t\t// numSteps = how many steps to take for stable integration\n\t // do numSteps times\n\t // - reset acceleration\n\t // - compute acceleration (adding up accelerations from attractions,\n\t // repulsions, drag, ...)\n\t // - integrate (by dTime/numSteps)\n\t // end\n\t //\n\t // ...\n\t for (int i = 0; i < numSteps; i++)\n\t {\n\t \tfor (int k = 0; k < critters.size(); k++)\n\t \t{\n\t \t\tCritter tmp = critters.get(k);\n\t \t\ttmp.accelReset();\n\t \t\ttmp.accelDrag(0.6); // dampening\n\t \t\t\n\n\t \t\t\n\t \t\tif (tmp == mainBug)// big bug follows randomized 'goal' point (food? water? shelter? )\n\t \t\t{\n\t \t\t\ttmp.accelAttract(goal, 0.1, 1);\n\t \t\t\ttmp.accelAttract(predator.getLocation(), -rgen.nextDouble()*0.3, -2);\n\t \t\t\ttmp.accelAttract(origin, 0.25, 1);\t \t\t\t // attraction toward center of scene\n\t \t\t}\n\t \t\telse if (tmp == predator )\n\t \t\t{\n \t\t\t\t\ttmp.accelAttract(critters.get(target).getLocation(), rgen.nextDouble()*0.4, 2);\t \t\t\t\t\t\n\t \t\t}\n\t \t\telse \n\t \t\t{\n\t \t\t\t// baby bugs follow big bug and are repelled from other baby bugs and predator!\n\t \t\t\ttmp.accelAttract(mainBug.getLocation(), rgen.nextDouble()*0.3, 1);\n\t \t\t\ttmp.accelAttract(predator.getLocation(), -rgen.nextDouble()*0.45, -3);\n\t \t\t\tfor (int m = 0; m < critters.size(); m++)\n\t \t\t\t{\n\t \t\t\t\tif (critters.get(m) != mainBug && critters.get(m) != tmp)\n\t \t\t\t\t\ttmp.accelAttract(critters.get(m).getLocation(), -rgen.nextDouble()*0.5, -1);\t \t\t\t\t\t\n\t \t\t\t}\n\t \t\t}\n\t\n\t\t \t// repulsion away from obstacles\n\t\t \tfor (int j = 0; j < obstacles.size(); j++)\n\t\t \t{\n\t\t \t\ttmp.accelAttract(obstacles.get(j).getLocation(), -0.5, -2);\n\t\t \t}\n\t\t \t\n\t\t \ttmp.integrate(dTime/numSteps);\n\t \t}\n\t }\n\t\n\t // Keyframe motion for each critter\n\t for (int i = 0; i < critters.size(); i++)\n\t {\n\t \tcritters.get(i).keyframe(critters.get(i).dist);\n\t }\n }",
"private Vector3f getOrbitalVelocity(CelestialEntity entity1, CelestialEntity entity2) {\r\n\t\tVector3f p1 = entity1.getPosition();\r\n\t\tVector3f p2 = entity2.getPosition();\r\n\t\tfloat m1 = entity1.getMass();\r\n\t\tfloat m2 = entity2.getMass();\r\n\t\tVector3f r = Vector3f.sub(p2, p1);\r\n\t\t\r\n\t\tVector3f velocity = new Vector3f();\r\n\t\t// Perpendicular vector in the x-z plane\r\n\t\tvelocity.x = -r.z;\r\n\t\tvelocity.z = r.x;\r\n\t\t// Calculate velocity magnitude (speed)\r\n\t\tdouble distance = r.magnitude();\r\n\t\tdouble speed = Math.sqrt(Constants.G * (m1 + m2) / distance);\r\n\t\tvelocity.setMagnitude((float) speed);\r\n\t\t\r\n\t\treturn velocity;\r\n\t}",
"public void updateVelocity(double lagFactor) {\n\t\tsetVelocitiesToOriginals();\n\t\t\n\t\tif(lagFactor >= 1) {\n\t\t\tvelocityX *= (int) lagFactor;\n\t\t\tvelocityY *= (int) lagFactor;\n\t\t}\n\t}",
"public void accelerate(){\n double acceleration = .1;\n if(xVel<0)\n xVel-=acceleration;\n if(xVel>0)\n xVel+=acceleration;\n if(yVel<0)\n yVel-=acceleration;\n if(yVel>0)\n yVel+=acceleration;\n System.out.println(xVel + \" \" + yVel);\n \n }",
"public void updateVelocity(double ax, double ay, double timestep){\n\t\tvx = vx + ax * timestep;\n\t vy = vy + ay * timestep;\n\t}",
"double cekStop(double x[][], double v0[],double v[][],double w0[],double w[][], double t[]){\n double akumY=0;\n //~ itung z_in dan z\n for(int h=0; h<jumlah_data; h++){\n for(int j=0; j<unit_hidden; j++){\n //itung sigma xi vij\n double jum_xv=0;\n for(int i=0; i<unit_input; i++){\n double cc=x[h][i]*v[i][j];\n jum_xv=jum_xv+cc;\n //System.out.println(x[h][j]);\n }\n z_in[j]=v0[j]+jum_xv;\n //itung z\n z[j]=1/(1+(double)Math.exp(-z_in[j]));\n //System.out.println(\" dan z= \"+z[j]);\n }\n \n //~ itung y_in dan y (output)\n double cxc=0;\n for(int k=0; k<unit_output; k++){\n double jum_zw=0;\n for(int j=0; j<unit_hidden; j++){\n double cc=z[j]*w[j][k];\n jum_zw=jum_zw+cc;\n }\n y_in[k]=w0[k]+jum_zw;\n y[k]=1/(1+(double)Math.exp(-y_in[k]));\n akumY = akumY + Math.pow((t[h]-y[k]),2);\n //System.out.println(t[h]+\"-\"+y[k]+\"=\"+(t[k]-y[k]));\n }\n }\n double E = 0.5 * akumY;\n //System.out.println(E);\n return E;\n }",
"double find_cg_xpos () { // vertical ref point is fuse level (at ref_point_xpos)\n double lift = foil_lift();\n double drag = total_drag();\n\n double driving_force = drag; // drag equals driving force - steady equilibrium condition\n\n // driving_arm for rider tranferring the force to the board is subtle:\n // When the riders transfers the driving force from hands/harness into\n // the board, the derived vertical driving arm is at the board deck\n // height. the rider applies the weight there also at certain\n // location. when drive is not through rider's body, then the arm is\n // that plus DRIVING_FORCE_HEIGHT\n double pitch_rad = Math.toRadians(craft_pitch);\n // driving_arm is pitch-corrected vertical distance from the origin. To\n // recap, the origin is chosen, arbitrarily, to be at the top of mast LE.\n double rider_eff_cg_pos_arm = (Math.cos(pitch_rad)*(strut.span + BOARD_THICKNESS) + \n -dash.cg_pos * // remember that the 'fore' direction is negative and this 'extends the arm'\n Math.sin(pitch_rad) );\n double driving_arm = \n craft_type != EFOIL \n ? rider_eff_cg_pos_arm\n : (Math.cos(pitch_rad)*DRIVING_FORCE_HEIGHT);\n double rider_air_resistance_arm = rider_eff_cg_pos_arm + RIDER_CG_HEIGHT;\n\n // strut_drag_arm\n double strut_drag_arm = // TODO angle correction\n (1- alt_val/100) * strut.span * // this is the length of water immersed section fo the strut.\n 0.5; // drag center is at the center of the immersed section\n\n // the moments caused by the drag of the wings and the fuse (but not the\n // strut) can be for now ignored thanks to the ref point chosen; more\n // accurate calc shoud include (a) craft AoA and (b) Z offsetts to calc\n // that. double wing_drag_moment = 0, stab_drag_moment = 0,\n // fuse_drag_moment = 0;\n \n // board weight arm is board weight location length minus mast LE to transom\n // TODO angle correction \n double board_arm = // tangential arm at 90 degrees to gravity\n BOARD_CG_K * BOARD_LENGTH - MAST_LE_TO_TRANSOM;\n\n double rig_arm = WS_MASTBASE_MAST_LE/2; // approx // TODO angle correction\n\n // drive_moment: for kite or sail it is always CCW (we look from the\n // left side). for EFOIL driving_arm is a negative value, so effectively\n // drive_moment becomes CW-rotating, and as the result would cause more\n // pronounced displacementof the driver body forward as the speed\n // increses, augmented by the wind drag on the body.\n double drive_moment = \n in.opts.ignore_drive_moment ? 0 : driving_force * driving_arm;\n double rider_air_resistance_moment = rider_air_resistance_arm * rider.drag;\n double board_drag_moment = (rider_eff_cg_pos_arm - BOARD_THICKNESS/2) // aprrox\n * board.drag;\n\n double strut_drag_moment = in.opts.ignore_drag_moments ? 0 : strut.drag * strut_drag_arm;\n double board_vert_moment = BOARD_WEIGHT * board_arm;\n double rig_moment = RIG_WEIGHT * rig_arm;\n double foils_Cm_moments = // all same sign because all rotate 'in plane'\n convert_moments_to_AC_offset \n ? 0\n : (wing.moment +\n stab.moment + \n fuse.moment);\n\n // Suppose rider_moment is +CW, it is with the arm towards the transom from mast bottom LE.\n // rider_moment + CW_moments = CCW_moments ==>\n // rider_arm = (CCW_moments - CW_moments) / load\n // where load is not rider's weigth but the load value (from the load slider)\n //\n // \n double load = FoilBoard.this.load; \n\n // non-flying motion\n boolean non_flying = load > lift;\n\n if (non_flying) { \n // load = lift; // Ok idea but not ideal\n // here is better idea: when non_flying, the board provides the remaining lift\n double board_lift_arm = // tangential arm at 90 degrees to gravity\n BOARD_HYDRO_LIFT_LOC * BOARD_LENGTH - MAST_LE_TO_TRANSOM;\n \n board_vert_moment = (BOARD_WEIGHT - (load - lift)) * board_lift_arm;\n }\n\n // this was named mast_le_xpos when ref point was mast le, which is strut.xpos.\n double ref_point_xpos = strut.xpos; \n \n double CW_moments = // +CW ClockWise rotation \n (in.opts.ignore_aux_weight_moments ? 0 : board.drag * (strut.span + BOARD_THICKNESS/2)) +\n rider.drag * (strut.span + BOARD_THICKNESS + RIDER_CG_HEIGHT) + // aprox center of body aero drag\n strut_drag_moment + \n foils_Cm_moments + // any positive Cm pitches nose up therefore CW in this 'view'\n wing.lift * - (wing.xpos + wing.chord_xoffs \n + wing.compute_lift_pos()\n - ref_point_xpos) + // TODO angle correction\n fuse.lift * - (/*fuse.xpos is 0*/ + fuse.compute_lift_pos() - ref_point_xpos); // TODO angle correction\n\n double CCW_moments = // CCW means CounterClockWise rotation, it is -CW\n drive_moment +\n stab.lift * (stab.xpos + stab.chord_xoffs + stab.compute_lift_pos() - ref_point_xpos) + // TODO angle correction\n (in.opts.ignore_aux_weight_moments \n || non_flying // this help to keep the rider over the board and not behind when drive is very light\n ? 0 \n : board_vert_moment + rig_moment);\n\n // if we decide to include prorated rider-mast calcs here \n // load = load*(1-load_distribution_to_mast_loc)\n //\n // what is rider_arm?? this is the horisontal offset in space from the\n // reference point, which is where mast LE meets fuse, where the rider\n // shoudl apply teh gravity weight. this (a) does not translate to\n // where mast LE meets the board because soem masts are not\n // perpendicular (b) even for perpendicular mast/board, this is different at board level unless AoA is zero. \n double rider_arm = (CCW_moments - CW_moments) / load;\n\n // March 2021: warning: I forgot what it is and how non_flying affects this.\n // note that as of now, it is not used in simulation... \n dash.cg_pos_of_rider_at_drive_height = ((CCW_moments + driving_force*DRIVING_FORCE_HEIGHT) // adjust for drive height\n - CW_moments) / load;\n\n return rider_arm;\n \n }",
"public void setVels(Fighter f1,boolean[] inputs, Platform plat)\r\n {\r\n //if the fighter is on the ground and pressed the up button\r\n if (inputs[0] == true && f1.getPos()[1] == plat.getY()- f1.getSize())\r\n {\r\n //set the upward momentum to the jump force\r\n f1.setMvmtVel(f1.getMvmtVel()[0], -j);\r\n }\r\n //if pressing the right button\r\n if (inputs[3] == true)\r\n {\r\n f1.setRight(true);\r\n //if it's moving left\r\n if (f1.getMvmtVel()[0] < 0){ \r\n f1.setMvmtVel(s, f1.getMvmtVel()[1]); //sets the horizontal momentum to s\r\n }\r\n else{\r\n f1.setMvmtVel(f1.getMvmtVel()[0] + s, f1.getMvmtVel()[1]); //sets the horizontal momentum to the current momentum + s\r\n }\r\n \r\n }\r\n\r\n //if pressing the left button\r\n else if (inputs[1] == true)\r\n {\r\n f1.setRight(false);\r\n //if it's moving right\r\n if (f1.getMvmtVel()[0] > 0){\r\n f1.setMvmtVel(-s, f1.getMvmtVel()[1]); //sets the horizontal momentum to -s\r\n }\r\n else{\r\n f1.setMvmtVel(f1.getMvmtVel()[0] - s, f1.getMvmtVel()[1]); //sets the horizontal momentum to the current momentum - s\r\n }\r\n }\r\n\r\n f1.setPos(f1.getPos()[0] + f1.getMvmtVel()[0],f1.getPos()[1] + f1.getMvmtVel()[1]); //changes the position based on their momentum\r\n f1.setMvmtVel(f1.getMvmtVel()[0]/f, f1.getMvmtVel()[1] + g); //decreases their momentum using friction and gravity\r\n\r\n\r\n }",
"public Velocity getVelocity() {\r\n return this.vel;\r\n }",
"public float getCurrVelocity() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.getCurrVelocity():float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.getCurrVelocity():float\");\n }",
"public void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n acc.mult(0);\n }"
] | [
"0.7024806",
"0.6864117",
"0.67386276",
"0.66430134",
"0.65489936",
"0.6414999",
"0.6395206",
"0.6340914",
"0.62892973",
"0.6256341",
"0.62497985",
"0.6023446",
"0.5968138",
"0.5927452",
"0.5890818",
"0.5889776",
"0.5875464",
"0.58692604",
"0.5862172",
"0.58594894",
"0.5834555",
"0.5824085",
"0.5818703",
"0.57624274",
"0.5756489",
"0.5744759",
"0.5743762",
"0.5742382",
"0.5740825",
"0.57383215",
"0.5730984",
"0.5710178",
"0.5707791",
"0.5707411",
"0.5682186",
"0.5656469",
"0.56540316",
"0.564153",
"0.56359327",
"0.5633011",
"0.56077087",
"0.55976677",
"0.55916625",
"0.55882996",
"0.5574421",
"0.556338",
"0.5560786",
"0.55576843",
"0.55565226",
"0.55428475",
"0.55428416",
"0.55421746",
"0.553055",
"0.55283755",
"0.55153894",
"0.5513269",
"0.55091",
"0.5502264",
"0.5491789",
"0.5490139",
"0.54900396",
"0.5484091",
"0.5480412",
"0.54761434",
"0.5443804",
"0.5439198",
"0.54380494",
"0.54323494",
"0.5430935",
"0.543087",
"0.54174316",
"0.54012495",
"0.5398524",
"0.53965753",
"0.5395992",
"0.5387488",
"0.53802395",
"0.5371699",
"0.5349655",
"0.534329",
"0.53381175",
"0.5337975",
"0.53364646",
"0.533637",
"0.5331085",
"0.5324748",
"0.53242284",
"0.5324181",
"0.5299465",
"0.5297884",
"0.529671",
"0.5296707",
"0.5291855",
"0.5288811",
"0.5286621",
"0.52737343",
"0.5271498",
"0.52692693",
"0.5266025",
"0.52656615"
] | 0.66654944 | 3 |
Calculate the nextstep velocity of a single cell | private void calculateNextStepVelocityCell(int i, int j, int k, double currentTime) {
// Retrieve the velocity components and depth of the cell
double ui = u[i][j][k];
double vi = v[i][j][k];
double wi = w[i][j][k];
double currentDepth = depth[k];
// Calculate the grid
// spacing in the depth dimension
double deltaZPlus = (depth[k + 1] - currentDepth) / 2.0;
double deltaZMinus = (currentDepth - depth[k - 1]) / 2.0;
// Compute the gradients of velocity in each direction using central difference
// scheme
double du_dx = (u[i + 1][j][k] - u[i - 1][j][k]) / 2.0;
double dv_dy = (v[i][j + 1][k] - v[i][j - 1][k]) / 2.0;
double dw_dz = (w[i][j][k + 1] - w[i][j][k - 1]) / (deltaZPlus + deltaZMinus);
// Compute the Laplacian of velocity in each direction using central difference
// scheme
double d2u_dx2 = (u[i + 1][j][k] - 2 * ui + u[i - 1][j][k]) / Math.pow((deltaX), 2);
double d2v_dy2 = (v[i][j + 1][k] - 2 * vi + v[i][j - 1][k]) / Math.pow((deltaY), 2);
double d2w_dz2 = (w[i][j][k + 1] - 2 * wi + w[i][j][k - 1])
/ (Math.pow(deltaZPlus, 2) + Math.pow(deltaZMinus, 2));
// Retrieve the tidal forcing values at the current time step
double tidalForcingX = this.tidalForcingX.get(i, j, k, currentTime);
double tidalForcingY = this.tidalForcingY.get(i, j, k, currentTime);
// Compute the next-step velocities using the Navier-Stokes equations with tidal
// forcing
double next_u = ui
- (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * du_dx * d2u_dx2)
+ tidalForcingX;
double next_v = vi
- (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * dv_dy * d2v_dy2)
+ tidalForcingY;
double next_w = wi
- (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * dw_dz * d2w_dz2);
// Update the velocity components of the cell
uNext[i][j][k] = next_u;
vNext[i][j][k] = next_v;
wNext[i][j][k] = next_w;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void calculateNextStepVelocity(double currentTime) {\n // Update the velocity components for the entire grid\n for (int i = 1; i < gridSizeX - 1; i++) {\n for (int j = 1; j < gridSizeY - 1; j++) {\n for (int k = 1; k < gridSizeZ - 1; k++) {\n if (!obstacle[i][j][k]) {\n calculateNextStepVelocityCell(i, j, k, currentTime);\n calculateNextStepPressureCell(i, j, k);\n }\n }\n }\n }\n u = uNext;\n v = vNext;\n w = wNext;\n p = pNext;\n applyPressureCorrection();\n }",
"protected void calcVelocity()\n\t{}",
"@Override\n\tpublic double calculateVelocity() {\n\t\tdouble result = distance / time + velocitySame - velocityReverse;\n\t\treturn result;\n\t}",
"public static double getTimeStep(Cell[] cells){\n return cells[0].dx / Math.abs(Info.ADVECTION_VEL) * Info.CFL; \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 }",
"private void calculateNextStepPressureCell(int i, int j, int k) {\n // Retrieve the velocity components and pressure of the neighboring cells\n double uEast = u[i + 1][j][k];\n double uWest = u[i - 1][j][k];\n double vNorth = v[i][j + 1][k];\n double vSouth = v[i][j - 1][k];\n double wUp = w[i][j][k + 1];\n double wDown = w[i][j][k - 1];\n // double pCenter = p[i][j][k]; // not used\n double pEast = p[i + 1][j][k];\n double pWest = p[i - 1][j][k];\n double pNorth = p[i][j + 1][k];\n double pSouth = p[i][j - 1][k];\n double pUp = p[i][j][k + 1];\n double pDown = p[i][j][k - 1];\n\n double currentDepth = depth[k];\n double deltaZPlus = (depth[k + 1] - currentDepth) / 2.0;\n double deltaZMinus = (currentDepth - depth[k - 1]) / 2.0;\n double deltaZ = deltaZPlus + deltaZMinus;\n\n // Compute the next-step pressure using the Poisson equation\n double next_p = ((pEast + pWest) / Math.pow(deltaX, 2) + (pNorth + pSouth) / Math.pow(deltaY, 2)\n + (pUp + pDown) / Math.pow(deltaZ, 2)\n - ((uEast - uWest) / deltaX + (vNorth - vSouth) / deltaY + (wUp - wDown) / deltaZ) / timeStep)\n / (2 / (Math.pow(deltaX, 2)) + 2 / (Math.pow(deltaY, 2)) + 2 / (Math.pow(deltaZ, 2)));\n\n // Update the pressure of the cell\n pNext[i][j][k] = next_p;\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 }",
"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 double getVelocity() {\n \treturn this.currentSpeed;\n }",
"static int getVelocity(){return currentVelocity;}",
"@Override\n public double getVelocity()\n {\n final String funcName = \"getVelocity\";\n double velocity = encoder.getVelocity() * encoderSign / 60.0;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", velocity);\n }\n\n return velocity;\n }",
"public double getVelocity()\n {\n return velocity * FPS;\n }",
"public int getVelocity()\n\t{\n\t\treturn logDx;\n\t}",
"public double getVelocity() {\n return mV;\n }",
"public double getVelocity() {\n\t\treturn velocity.getlength();\n\t}",
"public Vector2D getVelocity ();",
"Double getStep();",
"public double calculateVelocity(){\n double storyPoints = 0.0; // number of story points completed in total\n double numWeeks = BoardManager.get().getCurrentBoard().getAge()/7.0;\n LinkedList<Card> allCompletedCards = BoardManager.get().getCurrentBoard().getCardsOf(Role.COMPLETED_WORK);\n for (Card card : allCompletedCards) {\n storyPoints += card.getStoryPoints();\n }\n if (storyPoints == 0.0){\n return 0.0;\n }\n return Math.round(storyPoints/numWeeks * 100D) / 100D;\n }",
"@Override\n\tpublic void step() {\n\t\ty += speed;\n\t}",
"private static double calculateVelocity(double velocity, double deltaT, double acceleration) {\n return velocity + (deltaT * acceleration);\n }",
"float getStepPhaseShiftIncrement();",
"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 Velocity getVelocity() {\r\n return this.vel;\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 }",
"@Override\n public Point3D getValue() {\n return velocity;\n }",
"public void step() {\r\n for(int i = 0;i<numberOfCars;i++) {\r\n xtemp[i] = x[i];\r\n }\r\n for(int i = 0;i<numberOfCars;i++) {\r\n if(v[i]<maximumVelocity) {\r\n v[i]++; // acceleration\r\n }\r\n int d = xtemp[(i+1)%numberOfCars]-xtemp[i]; // distance between cars\r\n if(d<=0) { // periodic boundary conditions, d = 0 correctly treats one car on road\r\n d += roadLength;\r\n }\r\n if(v[i]>=d) {\r\n v[i] = d-1; // slow down due to cars in front\r\n }\r\n if((v[i]>0)&&(Math.random()<p)) {\r\n v[i]--; // randomization\r\n }\r\n x[i] = (xtemp[i]+v[i])%roadLength;\r\n flow += v[i];\r\n }\r\n steps++;\r\n computeSpaceTimeDiagram();\r\n }",
"static void resetVelocity(){currentVelocity = INITIAL_SPEED;}",
"@Override\n\tpublic double calculateVelocity(Parrot parrot) {\n\t\treturn (parrot.getisNailed()) ? 0 : parrot.getBaseSpeed(parrot.getVoltage());\n\t}",
"public Velocity getVelocity() {\r\n return this.v.getVelocity();\r\n }",
"public Velocity getVelocity() {\n return this.v;\n\n }",
"public Velocity getVelocity() {\n return this.velocity;\n }",
"public double getVelocity() {\n return 360000./(projDensity * projRadius);\n }",
"public Point2D.Float getVelocity() {\r\n\t\treturn velocity;\r\n\t}",
"@Override\n\tpublic void step() {\n\t\tthis.y-= speed;\t\n\t}",
"double getVx() { return vel[0]; }",
"public void step() {\n hasMoved = new boolean[simulationSize][simulationSize]; // Initializing the array and populating it with false values\n\n for(int i = 0; i < hasMoved.length; i++)\n Arrays.fill(hasMoved[i], false);\n\n moveFluid();\n\n yVelocityModifier.add(gravity);\n for(int i = 0; i < simulationSize; i++) { // Iterating through every grid space\n for(int j = 0; j < simulationSize; j++) {\n if(fluidGrid[i][j][0] == EMPTY_VALUE) // If the current space is empty don't use it\n continue;\n\n for(float xModifier : xVelocityModifier) {\n fluidGrid[i][j][0] += xModifier;\n }\n\n for(float yModifier : yVelocityModifier) {\n fluidGrid[i][j][1] += yModifier;\n }\n }\n }\n\n xVelocityModifier.clear();\n yVelocityModifier.clear();\n }",
"float getVoltageStepIncrementOutOfPhase();",
"public void moveOneStep() {\n if (velocity.getDx() < 0 && this.center.getX() - this.radius < bottomLeftBound) {\n this.setVelocity(-velocity.getDx(), velocity.getDy());\n } else if (velocity.getDx() > 0 && this.center.getX() + this.radius > bottomRightBound) {\n this.setVelocity(-velocity.getDx(), velocity.getDy());\n }\n if (velocity.getDy() < 0 && this.center.getY() - this.radius < topLeftBound) {\n this.setVelocity(velocity.getDx(), -velocity.getDy());\n } else if (velocity.getDy() > 0 && this.center.getY() + this.radius > topRightBound) {\n this.setVelocity(velocity.getDx(), -velocity.getDy());\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }",
"public float getMotor_lin_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 128);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 120);\n\t\t}\n\t}",
"double getVz() { return vel[2]; }",
"double getVy() { return vel[1]; }",
"public double fromVelocityToSpeed() {\n return Math.sqrt(Math.pow(this.getDx(), 2) + Math.pow(this.getDy(), 2));\n }",
"final static double getMaxVelocity(double distance) {\n final double decelTime = Math.max(1, Math.ceil(\n //sum of 0... decelTime, solving for decelTime\n //using quadratic formula, then simplified a lot\n Math.sqrt(distance + 1) - 0.5));\n\n final double decelDist = (decelTime) * (decelTime - 1);\n // sum of 0..(decelTime-1)\n // * Rules.DECELERATION*0.5;c\n\n return ((decelTime - 1) * 2) + ((distance - decelDist) / decelTime);\n }",
"public void updateVelocity(double ax, double ay, double timestep){\n\t\tvx = vx + ax * timestep;\n\t vy = vy + ay * timestep;\n\t}",
"public Vector2D getVelocity()\n\t{\n\t\treturn velocity;\n\t}",
"protected long travel() {\n\n return Math.round(((1 / Factory.VERTEX_PER_METER_RATIO) / (this.speed / 3.6)) * 1000);\n }",
"public float getVerticalVelocity( )\r\n {\r\n return this.v_velocity;\r\n }",
"double[][] velocity(double[][] smoothPath, double timeStep)\n\t{\n\t\tdouble[] dxdt = new double[smoothPath.length];\n\t\tdouble[] dydt = new double[smoothPath.length];\n\t\tdouble[][] velocity = new double[smoothPath.length][2];\n\n\t\t//set first instance to zero\n\t\tdxdt[0]=0;\n\t\tdydt[0]=0;\n\t\tvelocity[0][0]=0;\n\t\tvelocity[0][1]=0;\n\t\theading[0][1]=0;\n\n\t\tfor(int i=1; i<smoothPath.length; i++)\n\t\t{\n\t\t\tdxdt[i] = (smoothPath[i][0]-smoothPath[i-1][0])/timeStep;\n\t\t\tdydt[i] = (smoothPath[i][1]-smoothPath[i-1][1])/timeStep;\n\n\t\t\t//create time vector\n\t\t\tvelocity[i][0]=velocity[i-1][0]+timeStep;\n\t\t\theading[i][0]=heading[i-1][0]+timeStep;\n\n\t\t\t//calculate velocity\n\t\t\tvelocity[i][1] = Math.sqrt(Math.pow(dxdt[i],2) + Math.pow(dydt[i],2));\n\t\t}\n\n\n\t\treturn velocity;\n\n\t}",
"public Vector2f getVelocity(){\n\t\treturn velocity.copy();\n\t}",
"private void jump() {\r\n\t\tvelocity = new Vector(velocity.getX(), 7.0);\r\n\t}",
"public void updateVelocity() {\n \t// Step 1: input power and convert the power to a force based on the starting velocity\n \tsetWeight();\n \tdouble trainMass = trainWeight*KG_PER_POUND;\n \t\n \t// this is ensuring that we never get a negative speed\n \tif (this.currentSpeed == 0) {\n \t\tthis.force = (this.powerIn)/1;\n \t} else {\n \t\tthis.force = (this.powerIn)/this.currentSpeed;\n \t}\n \tsetGrade();\n \t\n \t// Step 2: Calculate the slope of the train's current angle (Degrees = Tan-1 (Slope Percent/100))\n \tthis.slope = Math.atan2(this.grade,100);\n \tdouble angle = Math.toDegrees(this.slope);\n \t\n \t// Step 3: Calculate the forces acting on the train using the coefficient of friction\n \t// and the train's weight in lbs converted to kg divided over the wheels (where the force is technically\n \t// being applied times gravity (G)\n \tthis.normalForce = (trainMass/this.trainWheels) * G * Math.sin((angle*Math.PI)/180);\t// divide by 12 for the number of wheels\n \tthis.downwardForce = (trainMass/this.trainWheels) * G * Math.cos((angle*Math.PI)/180);\t// divide by 12 for the number of wheels\n\n \t// compute friction force\n \tthis.friction = (FRICTION_COEFFICIENT * this.downwardForce) + this.normalForce;\n \t\n \t// sum of the forces\n \tthis.totalForce = this.force - this.friction;\n \t \t\n \tthis.force = this.totalForce;\n \t\n \t// Step 4: Calculate acceleration using the F = ma equation, where m = the mass of the body moving\n \tthis.trainAcceleration = this.force/trainMass;\n \t\n \t// and have to check to make sure this acceleration does not exceed our max.\n \tif (this.trainAcceleration >= TRAIN_MAX_ACCELERATION * 1) {\t// time elapsed (one second)\n \t\t// set the acceleration as the max acceleration because we cannot exceed that\n \t\tthis.trainAcceleration = TRAIN_MAX_ACCELERATION * 1;\t// time elapsed (one second)\n \t}\n \t\n\t\temerBrake = this.getEBrake();\n \t// decelerates the train based on the values given in the spec sheet for the emergency brake\n \tif (emerBrake) {\n \t\tthis.trainAcceleration += (TRAIN_MAX_ACCELERATION_E_BRAKE*1);\n \t}\n \t\n \t// decelerates the train based onthe values given in the spec sheet for the service brake\n \tif(serviceBrake) {\n \t\tthis.trainAcceleration += (TRAIN_MAX_ACCELERATION_SERVICE_BRAKE*1);\n \t}\n \t\n \t// Step 5: Calculate the final speed by adding the old speed with the acceleration x the time elapsed (one second)\n \tthis.finalSpeed = this.currentSpeed + (this.trainAcceleration * 1);\n \t\n \t// NO NEGATIVE SPEEDS YINZ\n \tif(this.finalSpeed < 0) {\n this.finalSpeed = 0;\n }\n \t\n \t// resetting the current speed based on our calculations\n \tthis.currentSpeed = this.finalSpeed;\n \tthis.distTravelled = this.currentSpeed * 1; // speed times the time between clock ticks = distance travelled\n \t//System.out.println(finalSpeed);\n \t\n \tif(!(currentBlock == this.position.getCurrentBlock())) {\n \t\tmetersIn = 0;\n \t} else {\n \t\tmetersIn += this.distTravelled;\n \t}\n \tthis.position.moveTrain(this.distTravelled); // method call to tell the position class how far to move the train\n \t\n }",
"List<Velocity> initialBallVelocities();",
"double getVerVel(double initial_ver_vel, double time)\n {\n uy = initial_ver_vel;\n t = time;\n vy = uy - (g*t);\n return vy;\n }",
"static float calculateNewVelocity(float a, float deltaTime, float v0) {\n return v0 + (a * deltaTime);\n }",
"private void doVels() {\n\t\tthis.launchPerVel = Math.sqrt((2d * body.getGm() * this.launchApoAlt) / (this.launchPerAlt * this.a));\n\t\tthis.launchApoVel = Math.sqrt((2d * body.getGm() * this.launchPerAlt) / (this.launchApoAlt * this.a));\n\t}",
"public final Vector2D getVelocity() {\n return velocity;\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}",
"void addVelocityValue(int velocityValue);",
"@Override\n\tpublic Vector2 getLinearVelocity() {\n\t\treturn body.getLinearVelocity();\n\t}",
"public Vector2f getVelocity()\n\t{\n\t\treturn this.vel;\n\t}",
"public static StateVector integrate( StateVector state, double dt) {\r\n StateVector dummy = new StateVector();\r\n StateVector derivative_a, derivative_b, derivative_c, derivative_d;\r\n\r\n\r\n derivative_a = evaluate(state, 0.0, dummy, 0 ); // derivative a returns initial velocity and acceleration\r\n derivative_b = evaluate(state, dt*0.5, derivative_a, 1 );\r\n derivative_c = evaluate(state, dt*0.5, derivative_b, 1 );\r\n derivative_d = evaluate(state, dt, derivative_c, 2 );\r\n\r\n double dxdt = 1.0/6.0 * (derivative_a.vx + 2.0f*(derivative_b.vx + derivative_c.vx) + derivative_d.vx);\r\n double dydt = 1.0/6.0 * (derivative_a.vy + 2.0f*(derivative_b.vy + derivative_c.vy) + derivative_d.vy);\r\n double dzdt = 1.0/6.0 * (derivative_a.vz + 2.0f*(derivative_b.vz + derivative_c.vz) + derivative_d.vz);\r\n double dvxdt = 1.0/6.0 * (derivative_a.ax + 2.0f*(derivative_b.ax + derivative_c.ax) + derivative_d.ax);\r\n double dvydt = 1.0/6.0 * (derivative_a.ay + 2.0f*(derivative_b.ay + derivative_c.ay) + derivative_d.ay);\r\n double dvzdt = 1.0/6.0 * (derivative_a.az + 2.0f*(derivative_b.az + derivative_c.az) + derivative_d.az);\r\n\r\n state.x = state.x + dxdt * dt;\r\n state.y = state.y + dydt * dt;\r\n state.z = state.z + dzdt * dt;\r\n state.vx = state.vx + dvxdt * dt;\r\n state.vy = state.vy + dvydt * dt;\r\n state.vz = state.vz + dvzdt * dt;\r\n\r\n return( state );\r\n }",
"public void moveOneStep(double dt) {\r\n double movementX = this.p.getX() + dt * this.vel.getDx();\r\n double movementY = this.p.getY() + dt * this.vel.getDy();\r\n Line trajectory = new Line(this.p, new Point(movementX, movementY));\r\n CollisionInfo collInfo = gameE.getClosestCollision(trajectory);\r\n // if there is a collision point collInfo doesn't equal to null.\r\n if (collInfo != null) {\r\n double x = this.getX();\r\n double y = this.getY();\r\n Point collisionPoint = collInfo.collisionPoint();\r\n Collidable obj = collInfo.collisionObject();\r\n Rectangle r = obj.getCollisionRectangle();\r\n // Check if the ball hit on one of the corners block.\r\n if (collisionPoint.getY() == collisionPoint.getX()) {\r\n // If the ball hit on the top corners.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()\r\n || collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n // else the ball hit on the bottom corners.\r\n } else {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n }\r\n // Set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n return;\r\n }\r\n\r\n // If the ball hit on the left border block.\r\n if (collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY();\r\n // If the ball hit on the right border block.\r\n } else if (collisionPoint.getX() == r.getWidth() + r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY();\r\n\r\n }\r\n // If the ball hit on the top border block.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n x = collisionPoint.getX();\r\n // If the ball hit on the bottom border block.\r\n } else if (collisionPoint.getY() == r.getHeight() + r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n x = collisionPoint.getX();\r\n }\r\n // set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n // else move the ball one step.\r\n } else {\r\n this.p = this.getVelocity().applyToPoint(this.p, dt);\r\n }\r\n }",
"public float getCurrVelocity() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.getCurrVelocity():float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.getCurrVelocity():float\");\n }",
"public float getMotor_ang_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 132);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 124);\n\t\t}\n\t}",
"public void update(){\n\t\ttime += System.currentTimeMillis() - lastTime;\n\t\tlastTime = System.currentTimeMillis();\n\t\t\n\t\t/*fin quando il tempo Ŕ maggiore della velocita incrementa gli indici*/\n\t\tif(time > velocity){\n\t\t\tindex++;\n\t\t\ttime = 0;\n\t\t\tif(index >= animation_frame.length)\n\t\t\t\t{\n\t\t\t\t\tindex = 0;\n\t\t\t\t}\n\t\t}\n\t}",
"public void testVelocityNumerically() {\n // crud, I don't know, how much can we expect velocity and finite differences to agree?\n double bound = dt*dt*velocity*velocity; // sure, let's go with that. Keep in mind this changes with sampling rates, velocity, the order of the function, etc.\n double endtime = racetrack.getPerimeter() / racetrack.getVelocity();\n differentiatePosition(racetrack, 0.0, endtime, dt, bound);\n }",
"public double getVelocity() {\n return spark_encoder.getVelocity();\n }",
"public abstract float getMomentOfInertia();",
"private void getNextPosition() {\n if (falling) {\n dy += fallSpeed;\n }\n }",
"public Vector3d getVelocity() {\n return getMotion().getVelocity();\n }",
"public static void initVelocity() {\n }",
"@Basic @Raw\n public double[] getVelocity(){\n \t return this.velocity.getVelocity();\n }",
"public void step (double dt){ \r\n setValues();\r\n //Do Step \r\n int steps=(int)dt;\r\n for (int i=0;i<steps;i++)\r\n eval(commandUpdate); \r\n getValues(); \r\n }",
"public float getSpeed() {\n\t\tfloat result = (float) Math.sqrt(velocity.x * velocity.x + velocity.y * velocity.y);\n\t\treturn result;\n\t}",
"public org.bukkit.util.Vector getVelocity ( ) {\n\t\treturn invokeSafe ( \"getVelocity\" );\n\t}",
"protected void computeTranslationVelocityCommand() { // (Solution)\n\t\tdouble translationError = targetRange - desiredFixationDistance; // (Solution)\n\t\tif (Math.abs(translationError) < translationErrorTolerance) // (Solution)\n\t\t\ttranslationVelocityCommand = 0.0; // (Solution)\n\t\telse\n\t\t\t// (Solution)\n\t\t\ttranslationVelocityCommand = // (Solution)\n\t\t\tMath.max(-translationVelocityMax, // (Solution)\n\t\t\t\t\tMath.min(translationVelocityMax, // (Solution)\n\t\t\t\t\t\t\ttranslationError * translationVelocityGain)); // (Solution)\n\t}",
"double motor_y () { return strut.span + DRIVING_FORCE_HEIGHT; }",
"public float getHorizontalVelocity( )\r\n {\r\n return this.h_velocity;\r\n }",
"public void move() {\n\t\tdy += acceleration;\n\t\tupdateTail();\n\t\ty += dy;\n\t}",
"public void moveOneStep() {\n\n //computing the predicted trajectory\n Line trajectory = computeTrajectory();\n\n //checking the borders\n if (reachedBorder(trajectory)) {\n return;\n }\n\n //getting the closest collision info\n //CollisionInfo collisionInfo = this.gameEnvironment.getClosestCollision(trajectory);\n CollisionInfo collisionInfo = this.gameLevel.getEnvironment().getClosestCollision(trajectory);\n\n if (collisionInfo != null && collisionInfo.collisionObject() != null) {\n\n //changing the velocity according to the collision info (point, type of collidiable\n // and position on the collidable)\n Velocity newVelocity =\n collisionInfo.collisionObject().hit(this, collisionInfo.collisionPoint(), this.velocity);\n this.velocity = newVelocity;\n }\n\n //setting the next position of the center of the ball (new velocity after collision)\n this.center = this.getVelocity().applyToPoint(this.center);\n }",
"public void EulerNextPos(Body[] bodies, int dt) {\n double ax = 0;\n double ay = 0;\n double temp_vx = this.vx;\n double temp_vy = this.vy;\n for (int i = 0; i < bodies.length; i++) {\n Body otherBody = bodies[i];\n if (otherBody.name != this.name){ // makes sure a body doesn't calculate acc on itself\n double r = Math.sqrt(Math.pow((this.x - otherBody.x),2) + Math.pow((this.y - otherBody.y),2));\n double temp_acc;\n try {\n temp_acc = (G * otherBody.mass)/Math.pow(r,3); // temp_acc * deltax = ax\n }\n catch (ArithmeticException e){ \n temp_acc = 0;\n }\n ax += temp_acc * (otherBody.x - this.x);\n ay += temp_acc * (otherBody.y - this.y);\n }\n }\n // change temp_vx and temp_vy based on acceleration\n temp_vx += ax * dt;\n temp_vy += ay * dt;\n \n this.euler_x = this.x + temp_vx * dt;\n this.euler_y = this.y + temp_vy * dt;\n }",
"public Point2D.Float getVelocityPPT() {\n return velocityPPT;\n }",
"@Override\n public void simStepUpdate(long stepMillis) {\n if(!isStationary) {\n // Calculate gravity force\n this.forces = this.forces.add(new Vector(0, -9.81).times(mass_newtons));\n // Add forces to velocities\n this.velocities = this.velocities.add(this.forces.times(mass_newtons * (stepMillis/1000F)));\n // Times 0.9 to add for some overall drag\n this.velocities = this.velocities.times(0.9);\n // Now add velocities to position vector to get new position of body\n this.sim_pos = this.sim_pos.add(velocities.times((stepMillis/1000F)));\n // Check if the node is touching the floor\n if (isOnGround()) {\n this.sim_pos.setY(2);\n // Drag the feet on the ground by * 0.2\n this.velocities.setX(this.velocities.getX() * 0.2);\n if (this.velocities.getY() < 0) {\n // Bouncing detected, retain some negative Y velocity\n this.velocities.setY(this.velocities.getY() * -0.2);\n }\n }\n // Reset force vector for next step cycle\n this.forces = new Vector(0, 0);\n }\n this.updateSimCoords(this.sim_pos);\n }",
"public Vector2f getVelocityAtPoint(final Vector2f point);",
"public double getVelocitySize() {\r\n return Math.sqrt(this.dx * this.dx + this.dy * this.dy);\r\n }",
"double getMotorVelocity( MotorName m ) {\n double vol = 0.0;\n if( motor_read_mode_==MotorBulkReadMode.BULK_READ_MANUAL && loop_cnt_!=last_motor_read_loop_id_ ) {\n // Important Step 4: If you are using MANUAL mode, you must clear the BulkCache once per control cycle\n for( LynxModule module : all_hubs_ ) {\n module.clearBulkCache();\n }\n }\n switch ( m ) {\n case MOTOR_LF:\n vol = motorLF_.getVelocity();\n break;\n case MOTOR_LB:\n vol = motorLB_.getVelocity();\n break;\n case MOTOR_RF:\n vol = motorRF_.getVelocity();\n break;\n case MOTOR_RB:\n vol = motorRB_.getVelocity();\n break;\n case MOTOR_LEFT_INTAKE:\n vol = motor_left_intake_.getVelocity();\n break;\n case MOTOR_RIGHT_INTAKE:\n vol = motor_right_intake_.getVelocity();\n break;\n case MOTOR_LIFT:\n vol = motor_lift_.getVelocity();\n break;\n default:\n break;\n }\n last_motor_read_loop_id_ = loop_cnt_ ;\n return vol;\n }",
"public void inertia_y() {\n if (!isMovingUp && !isMovingDown) {\n if (Math.abs(speedY) < acceleration) speedY = 0;\n else if (speedY < 0) speedY += acceleration;\n else speedY -= acceleration;\n }\n }",
"public float getAngularVelocity () {\n\t\treturn body.getAngularVelocity();\n\t}",
"public double getVelocityRPM();",
"public void moveOneStep() {\n // special case - the ball is inside the paddle\n Map<Integer, Point> result = movingBlock.getCollisionRectangle().insideRectangle(this.center);\n if (result != null) {\n // getting a pair information of:\n // A point: the new point of the center outside the paddle\n // An Integer: 1 if it's on the right, -1 if on the left\n for (Integer direction : result.keySet()) {\n // setting the new center, and the new velocity, based on the result\n this.center = result.get(direction);\n this.setVelocity(Math.abs(this.getVelocity().getX()) * direction, -Math.abs(this.getVelocity().getY()));\n }\n // normal case - the ball is not inside the paddle\n } else {\n // getting the line trajectory\n Line trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n // getting the collision info\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n int count = 0;\n // while this info is not null\n while (info != null) {\n // changing the velocity of the ball\n // notify the object it has been hit\n this.setVelocity(info.collisionObject().hit(this, info.collisionPoint(), this.getVelocity()));\n // getting the update trajectory and info (while they're not null!)\n trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n info = this.gameEnvironment.getClosestCollision(trajectory);\n // if the count is 3, it means we are into an infinite loop!\n // oppose the velocity and break\n if (count == 3) {\n this.setVelocity(-this.getVelocity().getX(), -this.getVelocity().getY());\n break;\n }\n count++;\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }\n }",
"public E nextStep() {\r\n\t\tthis.current = this.values[Math.min(this.current.ordinal() + 1, this.values.length - 1)];\r\n\t\treturn this.current;\r\n\t}",
"public void updateVelocity(double lagFactor) {\n\t\tsetVelocitiesToOriginals();\n\t\t\n\t\tif(lagFactor >= 1) {\n\t\t\tvelocityX *= (int) lagFactor;\n\t\t\tvelocityY *= (int) lagFactor;\n\t\t}\n\t}",
"void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n // Multiplying by 0 sets the all the components to 0\n acc.mult(0);\n}",
"public void accelerate(){\n double acceleration = .1;\n if(xVel<0)\n xVel-=acceleration;\n if(xVel>0)\n xVel+=acceleration;\n if(yVel<0)\n yVel-=acceleration;\n if(yVel>0)\n yVel+=acceleration;\n System.out.println(xVel + \" \" + yVel);\n \n }",
"public void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n acc.mult(0);\n }",
"private Vector2D rightVelocity() {\n return new Vector2D(this.movementSpeed * this.differenceTime, 0);\n }",
"void setVelocity(int vel) {\n\t\tthis.velocity = vel;\n\t}",
"public double getVelocity() {\n return _avTable.getDouble(ATTR_VELOCITY, 0.0);\n }",
"public double getVelocityY() {\n\t\treturn velocity.getY();\n\t}",
"@Override\r\n\tpublic double getCurrentStepStart() {\n\t\treturn 0;\r\n\t}"
] | [
"0.72012377",
"0.68885916",
"0.6825901",
"0.6786822",
"0.65216",
"0.6364649",
"0.63262004",
"0.62599313",
"0.6188974",
"0.6148514",
"0.6114428",
"0.6089085",
"0.607577",
"0.6058203",
"0.59491235",
"0.59280425",
"0.59276426",
"0.5925772",
"0.59035856",
"0.5895207",
"0.5890079",
"0.58664674",
"0.5838144",
"0.5836739",
"0.5823303",
"0.58125675",
"0.580231",
"0.57989305",
"0.5792035",
"0.57744503",
"0.5772629",
"0.57683927",
"0.57548547",
"0.5750822",
"0.57469434",
"0.5727649",
"0.57214826",
"0.5717153",
"0.57032293",
"0.5696684",
"0.56932837",
"0.5679428",
"0.5670099",
"0.56578594",
"0.5653291",
"0.5641069",
"0.5605995",
"0.560598",
"0.5604072",
"0.5588607",
"0.55802304",
"0.55696315",
"0.5543899",
"0.5539026",
"0.5536365",
"0.55124056",
"0.5497011",
"0.54884666",
"0.5487021",
"0.5485219",
"0.5475017",
"0.547451",
"0.54586595",
"0.5455708",
"0.5450119",
"0.5444915",
"0.5443776",
"0.5415895",
"0.5408019",
"0.53995204",
"0.53922695",
"0.5388678",
"0.5378464",
"0.5369655",
"0.5367868",
"0.5367185",
"0.5359408",
"0.5358537",
"0.5352202",
"0.53432554",
"0.53352237",
"0.5334835",
"0.53344774",
"0.53262633",
"0.53034353",
"0.5292332",
"0.5290298",
"0.5289196",
"0.5282888",
"0.5280596",
"0.52766234",
"0.52716386",
"0.5267541",
"0.5256779",
"0.5247535",
"0.52472484",
"0.52466995",
"0.5239413",
"0.5238467",
"0.5237094"
] | 0.7796229 | 0 |
Calculate the nextstep pressure of a single cell | private void calculateNextStepPressureCell(int i, int j, int k) {
// Retrieve the velocity components and pressure of the neighboring cells
double uEast = u[i + 1][j][k];
double uWest = u[i - 1][j][k];
double vNorth = v[i][j + 1][k];
double vSouth = v[i][j - 1][k];
double wUp = w[i][j][k + 1];
double wDown = w[i][j][k - 1];
// double pCenter = p[i][j][k]; // not used
double pEast = p[i + 1][j][k];
double pWest = p[i - 1][j][k];
double pNorth = p[i][j + 1][k];
double pSouth = p[i][j - 1][k];
double pUp = p[i][j][k + 1];
double pDown = p[i][j][k - 1];
double currentDepth = depth[k];
double deltaZPlus = (depth[k + 1] - currentDepth) / 2.0;
double deltaZMinus = (currentDepth - depth[k - 1]) / 2.0;
double deltaZ = deltaZPlus + deltaZMinus;
// Compute the next-step pressure using the Poisson equation
double next_p = ((pEast + pWest) / Math.pow(deltaX, 2) + (pNorth + pSouth) / Math.pow(deltaY, 2)
+ (pUp + pDown) / Math.pow(deltaZ, 2)
- ((uEast - uWest) / deltaX + (vNorth - vSouth) / deltaY + (wUp - wDown) / deltaZ) / timeStep)
/ (2 / (Math.pow(deltaX, 2)) + 2 / (Math.pow(deltaY, 2)) + 2 / (Math.pow(deltaZ, 2)));
// Update the pressure of the cell
pNext[i][j][k] = next_p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Double getStep();",
"double getPressure();",
"float getStepPhaseShiftIncrement();",
"private double readPressureSample() {\n return 6 * randomPressureSampleSimulator.nextDouble() * randomPressureSampleSimulator.nextDouble();\n }",
"float getVoltageStepIncrementOutOfPhase();",
"private void calculateNextStepVelocityCell(int i, int j, int k, double currentTime) {\n\n // Retrieve the velocity components and depth of the cell\n double ui = u[i][j][k];\n double vi = v[i][j][k];\n double wi = w[i][j][k];\n double currentDepth = depth[k];\n\n // Calculate the grid\n // spacing in the depth dimension\n double deltaZPlus = (depth[k + 1] - currentDepth) / 2.0;\n double deltaZMinus = (currentDepth - depth[k - 1]) / 2.0;\n\n // Compute the gradients of velocity in each direction using central difference\n // scheme\n double du_dx = (u[i + 1][j][k] - u[i - 1][j][k]) / 2.0;\n double dv_dy = (v[i][j + 1][k] - v[i][j - 1][k]) / 2.0;\n double dw_dz = (w[i][j][k + 1] - w[i][j][k - 1]) / (deltaZPlus + deltaZMinus);\n\n // Compute the Laplacian of velocity in each direction using central difference\n // scheme\n double d2u_dx2 = (u[i + 1][j][k] - 2 * ui + u[i - 1][j][k]) / Math.pow((deltaX), 2);\n double d2v_dy2 = (v[i][j + 1][k] - 2 * vi + v[i][j - 1][k]) / Math.pow((deltaY), 2);\n double d2w_dz2 = (w[i][j][k + 1] - 2 * wi + w[i][j][k - 1])\n / (Math.pow(deltaZPlus, 2) + Math.pow(deltaZMinus, 2));\n\n // Retrieve the tidal forcing values at the current time step\n double tidalForcingX = this.tidalForcingX.get(i, j, k, currentTime);\n double tidalForcingY = this.tidalForcingY.get(i, j, k, currentTime);\n\n // Compute the next-step velocities using the Navier-Stokes equations with tidal\n // forcing\n double next_u = ui\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * du_dx * d2u_dx2)\n + tidalForcingX;\n double next_v = vi\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * dv_dy * d2v_dy2)\n + tidalForcingY;\n double next_w = wi\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * dw_dz * d2w_dz2);\n\n // Update the velocity components of the cell\n uNext[i][j][k] = next_u;\n vNext[i][j][k] = next_v;\n wNext[i][j][k] = next_w;\n }",
"@Override\r\n public double calculatePiValue() {\r\n double variable = 0;\r\n double value = 0;\r\n for (int step =1;step<=steps; step++) {\r\n variable = step*2+1;\r\n if(step % 2 == 0) {\r\n value = value + ( (double)1 / variable);\r\n } else {\r\n value = value - ( (double)1 / variable);\r\n }\r\n }\r\n value = (1 + value)* 4;\r\n return value;\r\n }",
"public void calculateNextStepVelocity(double currentTime) {\n // Update the velocity components for the entire grid\n for (int i = 1; i < gridSizeX - 1; i++) {\n for (int j = 1; j < gridSizeY - 1; j++) {\n for (int k = 1; k < gridSizeZ - 1; k++) {\n if (!obstacle[i][j][k]) {\n calculateNextStepVelocityCell(i, j, k, currentTime);\n calculateNextStepPressureCell(i, j, k);\n }\n }\n }\n }\n u = uNext;\n v = vNext;\n w = wNext;\n p = pNext;\n applyPressureCorrection();\n }",
"public static double getTimeStep(Cell[] cells){\n return cells[0].dx / Math.abs(Info.ADVECTION_VEL) * Info.CFL; \n }",
"public int step() {\n ArrayList<Integer> copy = new ArrayList<Integer>();\n for (int i = 1; i < register.size(); i++) { \n copy.add(register.get(i));\n }\n int tapNum = register.get(register.size()-tap-1);\n int begin = register.get(0);\n if (tapNum == 1 ^ begin == 1) {\n copy.add(1);\n }\n else {\n copy.add(0);\n }\n register.clear();\n register.addAll(copy);\n return register.get(register.size()-1);\n }",
"public double getPressure() {\n\t\treturn 1000+(int)(Math.random()*1001);//模拟一个随机气压数\n\t}",
"int getStep();",
"int getStep();",
"int getStep();",
"public float getPressure() {\n pressure = calculatePressure();\n return pressure;\n }",
"double getPValue();",
"Double getPreStress();",
"public void step() {\n // method 1 of Temperature randomness\n enPrice = 1.1 * enPrice;\n\n TempChange = Temperature * (0.1 * (1 - 2 * r.nextDouble()));\n // method 2 of Temperature\n// TempChange = temperature_list.get(count);\n// count+=1;\n\n Temperature += TempChange;\n year_num+=1;\n }",
"public float getPressure() {\n\t\treturn (float) getRawPressure() / 100f;\n\t}",
"@Override\r\n\tpublic double getStep(double step){\n\t\treturn 0;\r\n\t}",
"public double getNewPVal() { return this.pValAfter; }",
"@Override\r\n\tpublic double getCurrentStepStart() {\n\t\treturn 0;\r\n\t}",
"static final float interp_energy(final float prev_e, final float next_e)\n\t{\n\t\treturn (float)Math.pow( 10.0, (Math.log10( prev_e ) + Math.log10( next_e )) / 2.0 );\n\t}",
"public float energyAsParticleMoving() {\n return (-eps_nn * (nparticle - 1)) - (eps_nl * (nliquid + 1));\n }",
"public E nextStep() {\r\n\t\tthis.current = this.values[Math.min(this.current.ordinal() + 1, this.values.length - 1)];\r\n\t\treturn this.current;\r\n\t}",
"public void step() {\r\n for(int i = 0;i<numberOfCars;i++) {\r\n xtemp[i] = x[i];\r\n }\r\n for(int i = 0;i<numberOfCars;i++) {\r\n if(v[i]<maximumVelocity) {\r\n v[i]++; // acceleration\r\n }\r\n int d = xtemp[(i+1)%numberOfCars]-xtemp[i]; // distance between cars\r\n if(d<=0) { // periodic boundary conditions, d = 0 correctly treats one car on road\r\n d += roadLength;\r\n }\r\n if(v[i]>=d) {\r\n v[i] = d-1; // slow down due to cars in front\r\n }\r\n if((v[i]>0)&&(Math.random()<p)) {\r\n v[i]--; // randomization\r\n }\r\n x[i] = (xtemp[i]+v[i])%roadLength;\r\n flow += v[i];\r\n }\r\n steps++;\r\n computeSpaceTimeDiagram();\r\n }",
"protected double calc_virial_pressure() {\n\t\tint i,j,iTot;\n\t\tdouble dr2,fij,rij,TotFdotR;\n\t\tdouble vp;\n\t\t\n\t\t/* Calculate sum(f.r): */\n\t\tTotFdotR = 0.0; iTot = 0;\n\t\tfor(i=0; i<n; i++) {\n\t\t\tfor(j=0; j<n; j++) {\n\t\t\t\tif ( i != j ) {\n\t\t\t\t\tdr2 = ij_sep2(i,j,c_lat,CUR_POS);\n\t\t\t\t\trij = Math.sqrt(dr2);\n\t\t\t\t\tfij = -12.0*4.0*Math.pow(diameter,12.0)/Math.pow(rij,13.0)\n\t\t\t\t\t+6.0*4.0*Math.pow(diameter,6.0)/Math.pow(rij,7.0);\n\t\t\t\t\tTotFdotR += fij*rij;\n\t\t\t\t\tiTot++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//TotFdotR /= (double)iTot;\n\t\tTotFdotR /= -2.0;\n\t\t\n\t\t/* Calc total virial: */\n\t\tvp = Math.sqrt(2.0)*calc_sys_density()/beta +\n\t\tMath.pow(diameter,3.0)*TotFdotR/(3.0*box[c_lat].x*box[c_lat].y*box[c_lat].z);\n\t\t\n\t\t/* check line */\n\t\t//System.out.printf(\" VPi %f %f %f\\n\",calc_density()/beta, TotFdotR/(3.0*box.x*box.y*box.z),vp);\n\t\t\n\t\treturn(vp);\n\t}",
"@Override\r\n protected double computeValue()\r\n {\n return interpFlow.getValue(Scheduler.getCurrentTime());\r\n }",
"private void calculateRecForces(){\n\t\t\n\t\t\n\t\tfor(Particle p : this){\n\t\t\t//Pg 183 Lee[05]\n\t\t\t//For each grid point that this particle has been interpolated to\n\t\t\tfor(int dx = -ASSIGNMENT_SCHEME_ORDER; dx < ASSIGNMENT_SCHEME_ORDER; dx++)\n\t\t\t{\n\t\t\t\tfor(int dy = -ASSIGNMENT_SCHEME_ORDER; dy < ASSIGNMENT_SCHEME_ORDER; dy++)\n\t\t\t\t{\n\t\t\t\t\tdouble uX = p.getPosition().re()/1.0 * CELL_SIDE_COUNT;//Scaled fractional coordinate\n\t\t\t\t\tdouble uY = p.getPosition().im()/1.0 * CELL_SIDE_COUNT;//Scaled fractional coordinate\n\t\t\t\t\tint particleCellX = (int)Math.round(p.getPosition().re()/1.0 * CELL_SIDE_COUNT);\n\t\t\t\t\tint particleCellY = (int)Math.round(p.getPosition().im()/1.0 * CELL_SIDE_COUNT);\n\t\t\t\t\tint thisX = particleCellX + dx;\n\t\t\t\t\tint thisY = particleCellY + dy;\n\t\t\t\t\tif(thisX >= 0 && thisY >= 0 && thisX < CELL_SIDE_COUNT && thisY < CELL_SIDE_COUNT)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble dQdx = p.getCharge() * M.evaluateDerivative(uX - thisX) * M.evaluate(uY - thisY);\n\t\t\t\t\t\tdouble dQdy = p.getCharge() * M.evaluate(uX - thisX) * M.evaluateDerivative(uY - thisY);\n\t\t\t\t\t\tp.addToForce(-dQdx * convolutedMatrix[thisX][thisY].re(), -dQdy * convolutedMatrix[thisX][thisY].re()); //FIXME .re()?\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void testStep() {\n\n DT_TractographyImage crossing = Images.getCrossing();\n\n FACT_FibreTracker tracker = new FACT_FibreTracker(crossing);\n\n Vector3D[] pds = crossing.getPDs(1,1,1);\n\n Vector3D step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, true);\n\n assertEquals(1.0, pds[0].dot(step.normalized()), 1E-8);\n\n assertEquals(Images.xVoxelDim / 2.0, step.mod(), 0.05);\n \n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, false);\n\n assertEquals(-1.0, pds[0].dot(step.normalized()), 1E-8);\n\n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 1, true);\n\n assertEquals(1.0, pds[1].dot(step.normalized()), 1E-8);\n\n\n for (int i = 0; i < 2; i++) {\n\n step = tracker.getNextStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), new Vector3D(pds[i].x + 0.01, pds[i].y + 0.02, pds[i].z + 0.03).normalized());\n\n assertEquals(1.0, pds[i].dot(step.normalized()), 1E-8);\n\n }\n\n \n }",
"public void next() {\n double[][] next = new double[size][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n double sum = 0.0;\n for (int k = 0; k < size; k++) {\n sum += state[i][k] * transition[k][j];\n }\n next[i][j] = sum;\n }\n }\n this.currentStep++;\n this.state = next;\n }",
"protected double[] handleOnUp(float pressure) {\n/* 258 */ StrokeOutlineResult strokeOutlineResult = new StrokeOutlineResult(this.mCurrentCanvasStroke, this.mCurrentOutlineBuilder.getOutline());\n/* 259 */ this.mAllStrokeOutlines.add(strokeOutlineResult);\n/* */ \n/* 261 */ return this.mCurrentOutlineBuilder.getOutline();\n/* */ }",
"@Override\n\tpublic void step() {\n\t\ty += speed;\n\t}",
"public double getStep() {\n\t\treturn step;\n\t}",
"@Override\n\tpublic double calculate() \n\t{\t\n\t\t//return 2.45e6;\n\t\t//return (2499.64 - (2.51 * tempCelsius.value)) * 1000;\t\n\t\t//return ((2.501 - (0.002361 * tempCelsius.value)) * 1e6)*0.33;\n\t\treturn ((2.501 - (0.002361 * tempCelsius.value)) * 1e6);\n\t}",
"public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}",
"double getStep() {\n\t\t\treturn scale;\n\t\t}",
"int stepsToGo();",
"public double getPowerUpProbabilityPillar() {\n \t\treturn 0.15;\n \t}",
"@Override \n public double getTemperature() { \n return pin.getValue();\n }",
"public void stepCompleted() {\n\t\tfor (int i = 0; i < r; i++) {\n\t\t\tfor (int j = 0; j < c; j++) {\n\t\t\t\tgrid[i][j] += (grid[i][j] >= 0 ? 1 : 0);\n\t\t\t}\n\t\t}\n\t}",
"public static double computeDiameter(int wireGauge)\r\n{ \r\n return 0.127 * Math.pow(92.0, (36.0 - wireGauge) / 39.0); \r\n}",
"private synchronized int nextP(Pixel target) {\r\n\t\t\t++col;\r\n\t\t\t++_counter;\r\n\t\t\tif (col < _maxCols) {\r\n\t\t\t\ttarget.row = this.row;\r\n\t\t\t\ttarget.col = this.col;\r\n\t\t\t\tif (_counter == _nextCounter) {\r\n\t\t\t\t\t++_percents;\r\n\t\t\t\t\t_nextCounter = _pixels * (_percents + 1) / 100;\r\n\t\t\t\t\treturn _percents;\r\n\t\t\t\t}\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\t++row;\r\n\t\t\tif (row < _maxRows) {\r\n\t\t\t\tcol = 0;\r\n\t\t\t\tif (_counter == _nextCounter) {\r\n\t\t\t\t\t++_percents;\r\n\t\t\t\t\t_nextCounter = _pixels * (_percents + 1) / 100;\r\n\t\t\t\t\treturn _percents;\r\n\t\t\t\t}\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t}",
"public void step(){\n if (this.ht < maxHeight){\n this.ht = this.ht + STEP_SIZE;\n }\n else if (! this.isFinished()){\n this.radius = this.radius + GROW_SIZE;\n }\n }",
"public double getParcelTemperature() {\r\n return parcelTemperature;\r\n }",
"@Test\n\tpublic void CalculateNextIterationTest() {\n\t\t//setup\n\t\tCell[][] tempData = new Cell[5][5];\n\t\tfor (int x = 0; x < 5; x++) {\n\t\t\tfor (int y = 0; y < 5; y++) {\n\t\t\t\ttempData[x][y] = new FakeCell();\n\t\t\t\tif (x == 2 && y > 0 && y < 4) { // Setting up blinker pattern\n\t\t\t\t\ttempData[x][y].setAlive(true); // Marked as alive\n\t\t\t\t} else {\n\t\t\t\t\ttempData[x][y].setAlive(false); // Marked as dead\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpanel.setCells(tempData);\t//Import cells before iterations\n\t\t\n\t\t//Execution\n\t\tpanel.calculateNextIteration();\n\t\t\n\t\t//Post\n\t\ttempData=panel.getCells();\t//Export cells after calculating iteration\n\t\tfor (int x = 0; x < panel.getCellsSize(); x++) {\n\t\t\tfor (int y = 0; y < panel.getCellsSize(); y++) {\n\t\t\t\tif (y == 2 && x < 4 && x > 0)\n\t\t\t\t\tassertTrue(\"Cell[\"+x+\"][\"+y+\"] was marked dead when it should be alive!\",tempData[x][y].getAlive());\n\t\t\t\telse\n\t\t\t\t\tassertFalse(\"Cell[\"+x+\"][\"+y+\"] was marked alive when it should be dead!\",tempData[x][y].getAlive());\n\t\t\t}\n\t\t}\n\t}",
"double getStepSize();",
"private double calculateTemp(){\n if (!((Double)mplTemp).isNaN() && !((Double)shtTemp).isNaN()){\n return (mplTemp + shtTemp)/2;\n }\n\n return Double.NaN;\n }",
"public double getTemp(){\n return currentTemp;\n }",
"private static double pq(double x) {\n double num = C1 - Math.pow(x, 1.0/RHO);\n double denom = C3*Math.pow(x, 1.0/RHO) - C2;\n\n return 10000.0 * Math.pow(num / denom, 1.0/ETA);\n }",
"int getNextProcessor(Job newJob) {\n if (Tasks[newJob.identifier].fixed == true) {\r\n return (0);\r\n\r\n } else {\r\n\r\n int processor = 0;\r\n int identifier = newJob.identifier;\r\n double tempLag = -10; //needs to be big at first, so that it chooses the \r\n\r\n for (int i = 0; i < this.Tasks[newJob.identifier].numMigrations; i++) {\r\n \r\n this.Tasks[identifier].lag[this.Tasks[identifier].index[i]] = this.Tasks[identifier].lag[this.Tasks[identifier].index[i]]+ this.Tasks[identifier].f[this.Tasks[identifier].index[i]];\r\n double tempLag2 = this.Tasks[identifier].lag[this.Tasks[identifier].index[i]];\r\n\r\n if (tempLag2 > tempLag) { //tempLag will be 0 the first time, and thus smaller\r\n tempLag = tempLag2;\r\n processor = i;\r\n }\r\n }\r\n\r\n Tasks[identifier].lag[this.Tasks[identifier].index[processor]] = Tasks[identifier].lag[this.Tasks[identifier].index[processor]] - 1;\r\n return (processor);\r\n }\r\n }",
"@Override\r\n public void PumpGasUnit() {\n g=ds.getG();\r\n g=g+1;\r\n float total;\r\n float price = ds.getprice();\r\n total =price *g;\r\n ds.setG(g);\r\n ds.settotal(total);\r\n System.out.println(\"Amount for gas disposed: \"+total);\r\n }",
"public float getIterationValue()\n\t{\n\t\tif (getDuration() <= 0) { return 1; }\n\t\treturn getCurrentTime() / getDuration();\n\t}",
"double calculateRate(Temperature temperature, double Hrxn);",
"protected long travel() {\n\n return Math.round(((1 / Factory.VERTEX_PER_METER_RATIO) / (this.speed / 3.6)) * 1000);\n }",
"public float getPressure() {\n return pm.pen.getLevelValue(PLevel.Type.PRESSURE);\n }",
"@Override\n\tpublic void Update(float temperature, float humidity, float pressure) {\n\t\ttemperatureSum += temperature;\n\t\tnumReadings++;\n\t\t\n\t\tif (temperature > maxTemp) {\n\t\t\tmaxTemp = temperature;\n\t\t}\n\t\t\n\t\tif (temperature < minTemp) {\n\t\t\tminTemp = temperature;\n\t\t}\n\t}",
"public double nextDouble() {\n\tdouble result = (d1 - 1.0) / (POW3_33 - 1.0);\n\tnextIterate();\n\treturn result;\n }",
"private void calculatePID(float LoopTime){\n\n\n\t\t// Append to our data sets.\n\t\tdata.PID.integralData.add(data.PID.computedTarget - data.PID.target);\n\t\tdata.PID.derivativeData.add(data.PID.computedTarget);\n\n\t\t// Keep integralData and derivativeData from having an exceeding number of entries.\n\t\tif (data.PID.integralData.size() > data.PID.INTEGRAL_DATA_MAX_SIZE){\n\t\t\tdata.PID.integralData.remove(0);\n\t\t}\n\n\t\tif(data.PID.derivativeData.size() > data.PID.DERIVATIVE_DATA_MAX_SIZE){\n\t\t\tdata.PID.derivativeData.remove(0);\n\t\t}\n\n\t\t// Set our P, I, and D values.\n\t\t// `P` will be the computedTarget - target\n\t\tdata.PID.P = data.PID.computedTarget - data.PID.target;\n\n\t\t// `I` will be the average of the integralData (Cries softly at the lack of Java8 streams)\n\t\tfloat IntegralAverage = 0;\n\t\tfor(float value : data.PID.integralData){\n\t\t\tIntegralAverage += value;\n\t\t}\n\t\tdata.PID.I = IntegralAverage / data.PID.integralData.size();\n\n\t\t// `D` will be the difference of the computedTarget and the Derivative average divided by\n\t\t// the time since the last loop in seconds multiplied by one plus half of the size of\n\t\t// the Derivative data set size.\n\t\tfloat DerivativeAverage = 0;\n\t\tfor(float value : data.PID.derivativeData){\n\t\t\tDerivativeAverage += value;\n\t\t}\n\t\tDerivativeAverage /= data.PID.derivativeData.size();\n\n\t\tdata.PID.D = (data.PID.computedTarget - DerivativeAverage) / ((LoopTime/1000) * (1 + (data.PID.derivativeData.size() / 2)));\n\t}",
"public void step() {\n \tinternaltime ++;\n \n }",
"@Override\n public boolean applyPerturbation(double param){\n //The parameter need to be an integer less than templateCoord.length\n\n if( param == 0 ){\n curParam = 0;\n return true;\n }\n\n boolean outcome = doPerturbationMotion(param);\n\n if(outcome)\n curParam = param;\n else\n curParam=0;\n\n return outcome;\n\n }",
"public double evaluate(){\n trialsSoFar++;\n double tot = 0;\n int ix = 0;\n while (ix < genome.getGenome().size()) {\n // directly access the current value field of each bandit\n boolean block = true;\n for (int j=0; j<blockSize; j++) {\n if (genome.getGenome().get(ix).getX() != 1)\n block = false;\n ix++;\n }\n if (block) {\n tot += blockSize;\n }\n }\n return tot;\n }",
"protected final int calculateInterst1(int pr){\n\t\t return pr*10*1/100;\n\t }",
"double getrx() {\nreturn this.rx;\n }",
"float getXStepMin();",
"private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}",
"public int getLatestPressure() {\n int pressure = 0;\n if (readings.size() > 0) {\n pressure = readings.get(readings.size() - 1).pressure;\n }\n return pressure;\n }",
"public static int processOneValueGaps(TimeSeries timeSeries) {\n\t\tint interpolatedCount = 0;\n\t\tfor(int colIndex=0;colIndex<timeSeries.data.length;colIndex++) {\n\t\t\tfloat[] colData = timeSeries.data[colIndex];\n\t\t\tfor(int rowIndex=1;rowIndex<colData.length-1;rowIndex++) {\n\t\t\t\tif(Float.isNaN(colData[rowIndex])&&(!Float.isNaN(colData[rowIndex-1]))&&(!Float.isNaN(colData[rowIndex+1]))) {\n\t\t\t\t\tcolData[rowIndex] = (colData[rowIndex-1]+colData[rowIndex+1])/2;\n\t\t\t\t\tinterpolatedCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn interpolatedCount;\n\t}",
"private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }",
"private void Step() {\n\t\tif (numberOfColumns == currentCycle) {\n\t\t\treturn;\n\t\t}\n\t\tif (numberOfRows != 1) {\n\n\t\t\tstall = 0;\n\t\t\tx = 0;\n\n\t\t\twhile (x < numberOfRows) {\n\t\t\t\tif (lstInstructionsPipeLine.get(x).issue_cycle == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (stall == 1) {\n\t\t\t\t\tDisplay_Stall(x, currentCycle);\n\t\t\t\t} else {\n\t\t\t\t\tswitch (lstInstructionsPipeLine.get(x).pipeline_stage) {\n\n\t\t\t\t\tcase \"IF\":\n\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \"ID\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"ID\":\n\t\t\t\t\t\tfor (int i = (x - 1); i >= 0; i--) {\n\n\t\t\t\t\t\t\tif (lstInstructionsPipeLine.get(i).pipeline_stage.equals(\"EX\")\n\t\t\t\t\t\t\t\t\t&& lstInstructionsPipeLine.get(i).operator.functional_unit\n\t\t\t\t\t\t\t\t\t\t\t.equals(lstInstructionsPipeLine.get(x).operator.functional_unit)) {\n\t\t\t\t\t\t\t\t// *** Structural Hazard ***\n\t\t\t\t\t\t\t\tstall = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\telse if ((lstInstructionsPipeLine.get(i).destination_register\n\t\t\t\t\t\t\t\t\t.equals(lstInstructionsPipeLine.get(x).source_register1)\n\t\t\t\t\t\t\t\t\t|| lstInstructionsPipeLine.get(i).destination_register\n\t\t\t\t\t\t\t\t\t\t\t.equals(lstInstructionsPipeLine.get(x).source_register2))) {\n\t\t\t\t\t\t\t\tif (dataForwarding == 1) {\n\n\t\t\t\t\t\t\t\t\tif (lstInstructionsPipeLine.get(i).operator.name.equals(\"ld\")\n\t\t\t\t\t\t\t\t\t\t\t|| lstInstructionsPipeLine.get(i).operator.name.equals(\"sd\")) {\n\t\t\t\t\t\t\t\t\t\tif (!lstInstructionsPipeLine.get(i).pipeline_stage.equals(\"WB\")\n\t\t\t\t\t\t\t\t\t\t\t\t&& !lstInstructionsPipeLine.get(i).pipeline_stage.equals(\" \")) {\n\t\t\t\t\t\t\t\t\t\t\t// ** RAW Hazard **\n\t\t\t\t\t\t\t\t\t\t\tstall = 1;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tif (!lstInstructionsPipeLine.get(i).pipeline_stage.equals(\"MEM\")\n\t\t\t\t\t\t\t\t\t\t\t\t&& !lstInstructionsPipeLine.get(i).pipeline_stage.equals(\"WB\")\n\t\t\t\t\t\t\t\t\t\t\t\t&& !lstInstructionsPipeLine.get(i).pipeline_stage.equals(\" \")) {\n\t\t\t\t\t\t\t\t\t\t\t// *** RAW Hazard **\n\t\t\t\t\t\t\t\t\t\t\tstall = 1;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\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\n\t\t\t\t\t\t\t\telse if (dataForwarding == 0) {\n\t\t\t\t\t\t\t\t\t// If forwarding is disabled and the\n\t\t\t\t\t\t\t\t\t// previous instruction is not completed,\n\t\t\t\t\t\t\t\t\t// stall.\n\t\t\t\t\t\t\t\t\tif (!lstInstructionsPipeLine.get(i).pipeline_stage.equals(\" \")) {\n\t\t\t\t\t\t\t\t\t\t// *** RAW Hazard **\n\t\t\t\t\t\t\t\t\t\tstall = 1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\telse if ((lstInstructionsPipeLine.get(i).destination_register\n\t\t\t\t\t\t\t\t\t.equals(lstInstructionsPipeLine.get(x).destination_register))\n\t\t\t\t\t\t\t\t\t&& (!lstInstructionsPipeLine.get(i).destination_register.equals(\"null\"))) {\n\n\t\t\t\t\t\t\t\tif ((lstInstructionsPipeLine.get(i).pipeline_stage.equals(\"EX\"))\n\t\t\t\t\t\t\t\t\t\t&& ((lstInstructionsPipeLine.get(i).operator.execution_cycles\n\t\t\t\t\t\t\t\t\t\t\t\t- lstInstructionsPipeLine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(i).execute_counter) >= (lstInstructionsPipeLine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(x).operator.execution_cycles - 1))) {\n\t\t\t\t\t\t\t\t\t// *** WAW Hazard ***\n\t\t\t\t\t\t\t\t\tstall = 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\telse if ((lstInstructionsPipeLine.get(i).pipeline_stage.equals(\"EX\"))\n\t\t\t\t\t\t\t\t\t&& ((lstInstructionsPipeLine.get(i).operator.execution_cycles\n\t\t\t\t\t\t\t\t\t\t\t- lstInstructionsPipeLine\n\t\t\t\t\t\t\t\t\t\t\t\t\t.get(i).execute_counter) == (lstInstructionsPipeLine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(x).operator.execution_cycles - 1))) {\n\n\t\t\t\t\t\t\t\t// *** WB will happen at the same time ***\n\t\t\t\t\t\t\t\tstall = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (stall != 1) {\n\t\t\t\t\t\t\tif (lstInstructionsPipeLine.get(x).operator.name == \"br_taken\") {\n\t\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \" \";\n\t\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).execute_counter++;\n\t\t\t\t\t\t\t\tif ((x + 1) < numberOfRows) {\n\t\t\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x + 1).pipeline_stage = \" \";\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Complete the execution of the branch.\n\t\t\t\t\t\t\telse if (lstInstructionsPipeLine.get(x).operator.name == \"br_untaken\") {\n\t\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \" \";\n\t\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).execute_counter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Move the instruction into the EX stage.\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \"EX\";\n\t\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).execute_counter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"EX\":\n\t\t\t\t\t\tif (lstInstructionsPipeLine\n\t\t\t\t\t\t\t\t.get(x).execute_counter < lstInstructionsPipeLine.get(x).operator.execution_cycles) {\n\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \"EX\";\n\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).execute_counter++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \"MEM\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"MEM\":\n\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \"WB\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"WB\":\n\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \" \";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \" \":\n\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \" \";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Unrecognized Pipeline Stage!\", \"Dialog\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (stall == 1) {\n\t\t\t\t\t\tDisplay_Stall(x, currentCycle);\n\t\t\t\t\t} else if (lstInstructionsPipeLine.get(x).pipeline_stage == \"EX\") {\n\t\t\t\t\t\tSystem.out.println(lstInstructionsPipeLine.get(x).operator.display_value + \" - row=\" + x\n\t\t\t\t\t\t\t\t+ \" col=\" + currentCycle);\n\t\t\t\t\t\tJPanel pnl_EXE_tmp = new JPanel();\n\t\t\t\t\t\tpnl_EXE_tmp.setBackground(col_EXE);\n\t\t\t\t\t\tpnl_EXE_tmp.setBounds(currentCycle * 40 + (50 + 100), x * 20 + 20, 40, 20);// (w+row_x)\n\t\t\t\t\t\tpanelShowResult.add(pnl_EXE_tmp);\n\t\t\t\t\t\tJLabel lblExe_tmp = new JLabel(lstInstructionsPipeLine.get(x).operator.display_value);\n\t\t\t\t\t\tpnl_EXE_tmp.add(lblExe_tmp);\n\t\t\t\t\t\tpanelShowResult.revalidate();\n\t\t\t\t\t\tpanelShowResult.repaint();\n\n\t\t\t\t\t\tmapAnswer.put(\"txt_\" + currentCycle + \"_\" + x,\"EX\");/// k,v\n\t\t\t\t\t}\n\t\t\t\t\t// Output the pipeline stage.\n\t\t\t\t\telse {\n\t\t\t\t\t\tJPanel pnl_tmp = new JPanel();\n\t\t\t\t\t\tswitch (lstInstructionsPipeLine.get(x).pipeline_stage) {\n\t\t\t\t\t\tcase \"ID\":\n\t\t\t\t\t\t\tpnl_tmp.setBackground(col_ID);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"MEM\":\n\t\t\t\t\t\t\tpnl_tmp.setBackground(col_MEM);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"WB\":\n\t\t\t\t\t\t\tpnl_tmp.setBackground(col_WB);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// pnl_tmp.setBackground(col_EXE);\n\t\t\t\t\t\tpnl_tmp.setBounds(currentCycle * 40 + (50 + 100), x * 20 + 20, 40, 20);// (w+row_x)\n\t\t\t\t\t\tpanelShowResult.add(pnl_tmp);\n\t\t\t\t\t\tJLabel lbl_tmp = new JLabel(lstInstructionsPipeLine.get(x).pipeline_stage);\n\t\t\t\t\t\tpnl_tmp.add(lbl_tmp);\n\t\t\t\t\t\tpanelShowResult.revalidate();\n\t\t\t\t\t\tpanelShowResult.repaint();\n\n\t\t\t\t\t\tmapAnswer.put(\"txt_\" + currentCycle + \"_\" + x, lstInstructionsPipeLine.get(x).pipeline_stage);/// k\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\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\t\t\t\t/// v\n\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage + \" - row=\" + x + \" col=\" + currentCycle);\n\t\t\t\t\t}\n\t\t\t\t\t;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"x:\" + x);\n\t\t\t\tx++;\n\t\t\t} // End of while loop\n\n\t\t\tif (stall != 1 && x < numberOfRows) {\n\t\t\t\t// Issue a new instruction.\n\t\t\t\tlstInstructionsPipeLine.get(x).issue_cycle = Integer.toString(currentCycle);\n\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage = \"IF\";\n\t\t\t\tJPanel pnl_IF_tmp = new JPanel();\n\t\t\t\tpnl_IF_tmp.setBackground(col_IF);\n\t\t\t\tpnl_IF_tmp.setBounds(currentCycle * 40 + (50 + 100), x * 20 + 20, 40, 20);// (w+row_x)\n\t\t\t\tpanelShowResult.add(pnl_IF_tmp);\n\t\t\t\tJLabel lblIF_tmp = new JLabel(lstInstructionsPipeLine.get(x).pipeline_stage);\n\t\t\t\tpnl_IF_tmp.add(lblIF_tmp);\n\t\t\t\tpanelShowResult.revalidate();\n\t\t\t\tpanelShowResult.repaint();\n\t\t\t\tmapAnswer.put(\"txt_\" + currentCycle + \"_\" + x, lstInstructionsPipeLine.get(x).pipeline_stage);/// k\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/// ,v\n\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\tlstInstructionsPipeLine.get(x).pipeline_stage + \" - row=\" + x + \" col=\" + currentCycle);\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Clk:\" + currentCycle);\n\t\t\tcurrentCycle++;\n\t\t} else {\n\n\t\t\tif (currentCycle == 0) {\n\t\t\t\tlstInstructionsPipeLine.get(0).issue_cycle = Integer.toString(currentCycle);\n\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \"IF\";\n\t\t\t\tJPanel pnl_IF_tmp = new JPanel();\n\t\t\t\tpnl_IF_tmp.setBackground(col_IF);\n\t\t\t\tpnl_IF_tmp.setBounds(x * 40 + x, currentCycle * 20 + (20), 40, 20);// (w+row_x)\n\t\t\t\tpanelShowResult.add(pnl_IF_tmp);\n\t\t\t\tJLabel lblIF_tmp = new JLabel(lstInstructionsPipeLine.get(0).getPipeline_stage());\n\t\t\t\tpnl_IF_tmp.add(lblIF_tmp);\n\t\t\t\tpanelShowResult.revalidate();\n\t\t\t\tpanelShowResult.repaint();\n\t\t\t\tmapAnswer.put(\"txt_\" + currentCycle + \"_\" + x, lstInstructionsPipeLine.get(0).pipeline_stage);/// k\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/// ,\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/// v\n\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage + \" - row=\" + x + \" col=\" + currentCycle);\n\t\t\t\tSystem.out.println(\"Clk:\" + currentCycle);\n\t\t\t\tcurrentCycle++;\n\t\t\t} else {\n\t\t\t\tswitch (lstInstructionsPipeLine.get(0).pipeline_stage) {\n\t\t\t\tcase \"IF\":\n\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \"ID\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ID\":\n\n\t\t\t\t\t// If branch is taken, complete this instruction.\n\t\t\t\t\tif (lstInstructionsPipeLine.get(0).operator.name.substring(0, 2) == \"br\") {\n\t\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \" \";\n\t\t\t\t\t\tlstInstructionsPipeLine.get(0).execute_counter++;\n\t\t\t\t\t}\n\t\t\t\t\t// Move the instruction into the EX stage.\n\t\t\t\t\telse {\n\t\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \"EX\";\n\t\t\t\t\t\tlstInstructionsPipeLine.get(0).execute_counter++;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"EX\":\n\t\t\t\t\t// If the instruction hasn't completed.\n\t\t\t\t\tif (lstInstructionsPipeLine\n\t\t\t\t\t\t\t.get(0).execute_counter < lstInstructionsPipeLine.get(0).operator.execution_cycles) {\n\t\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \"EX\";\n\t\t\t\t\t\tlstInstructionsPipeLine.get(0).execute_counter++;\n\t\t\t\t\t}\n\t\t\t\t\t// Move the instruction to the MEM stage.\n\t\t\t\t\telse {\n\t\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \"MEM\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MEM\":\n\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \"WB\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WB\":\n\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \" \";\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \" \":\n\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage = \" \";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Unrecognized Pipeline Stage!\", \"Dialog\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\n\t\t\t\t// If the instruction is in the EX stage, display the functional\n\t\t\t\t// unit.\n\t\t\t\tif (lstInstructionsPipeLine.get(0).pipeline_stage == \"EX\") {\n\t\t\t\t\tJPanel pnl_IF_tmp = new JPanel();\n\t\t\t\t\tpnl_IF_tmp.setBackground(col_EXE);\n\t\t\t\t\tpnl_IF_tmp.setBounds(x * 40 + x, currentCycle * 20 + (20), 40, 20);// (w+row_x)\n\t\t\t\t\tpanelShowResult.add(pnl_IF_tmp);\n\t\t\t\t\tJLabel lblIF_tmp = new JLabel(lstInstructionsPipeLine.get(0).pipeline_stage);\n\t\t\t\t\tpnl_IF_tmp.add(lblIF_tmp);\n\t\t\t\t\tpanelShowResult.revalidate();\n\t\t\t\t\tpanelShowResult.repaint();\n\t\t\t\t\tmapAnswer.put(\"txt_\" + currentCycle + \"_\" + x,\"EX\");/// k\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/// ,v\n\n\t\t\t\t\tSystem.out.println(lstInstructionsPipeLine.get(0).operator.display_value + \" - row=\" + x + \" col=\"\n\t\t\t\t\t\t\t+ currentCycle);\n\t\t\t\t} else {\n\t\t\t\t\tJPanel pnl_IF_tmp = new JPanel();\n\t\t\t\t\tswitch (lstInstructionsPipeLine.get(0).pipeline_stage) {\n\t\t\t\t\tcase \"ID\":\n\t\t\t\t\t\tpnl_IF_tmp.setBackground(col_ID);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"MEM\":\n\t\t\t\t\t\tpnl_IF_tmp.setBackground(col_MEM);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"WB\":\n\t\t\t\t\t\tpnl_IF_tmp.setBackground(col_WB);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// pnl_IF_tmp.setBackground(col_IF);\n\t\t\t\t\tpnl_IF_tmp.setBounds(x * 40 + x, currentCycle * 20 + (20), 40, 20);// (w+row_x)\n\t\t\t\t\tpanelShowResult.add(pnl_IF_tmp);\n\t\t\t\t\tJLabel lblIF_tmp = new JLabel(lstInstructionsPipeLine.get(0).pipeline_stage);\n\t\t\t\t\tpnl_IF_tmp.add(lblIF_tmp);\n\t\t\t\t\tpanelShowResult.revalidate();\n\t\t\t\t\tpanelShowResult.repaint();\n\t\t\t\t\tmapAnswer.put(\"txt_\" + currentCycle + \"_\" + x, lstInstructionsPipeLine.get(x).pipeline_stage);/// k\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/// ,\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/// v\n\n\t\t\t\t\t// s = \"document.instruction_table.column\" + currentCycle +\n\t\t\t\t\t// \".value =\n\t\t\t\t\t// parent.top_frame.lstInstructions[0].pipeline_stage;\";\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\tlstInstructionsPipeLine.get(0).pipeline_stage + \" - row=\" + x + \" col=\" + currentCycle);\n\t\t\t\t}\n\t\t\t\t// eval(s);\n\t\t\t\tSystem.out.println(\"Clk:\" + currentCycle);\n\t\t\t\tcurrentCycle++;\n\t\t\t}\n\t\t}\n\t}",
"private static float calculateStepRate(int stepCount) {\n\n return (float) stepCount / (float) secsPerMinute;\n\n }",
"public void step(long t) {\n\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public void step() {\n\n if (n8) {\n // Your code here\n \n \n //by here, after your code, the cellsNext array should be updated properly\n }\n\n if (!n8) { // neighbours-4\n // your code here\n\n //by here, after your code, the cellsNext array should be updated properly\n }\n\n // Flip the arrays now.\n stepCounter++;\n\ttmp = cellsNow;\n cellsNow = cellsNext;\n\tcellsNext = tmp;\n\n }",
"public DoubleExpression getProgress()\n {\n return progress;\n }",
"public double getReadPressure(){\n return this.mFarm.getReadPressure();\n }",
"protected double[] getCurrentSteps() {\n// final int speedSteps = mPowerProfile.getNumSpeedSteps(); //amount of CPU working Frequents\n final int speedSteps = 10;\n final double[] powerCpuNormal = new double[speedSteps];\n for (int p = 0; p < speedSteps; p++) {\n// powerCpuNormal[p] = mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE, p);\n powerCpuNormal[p] = 100 * (p + 1);\n }\n\n return powerCpuNormal;\n }",
"public float update(float time)\n {\n timeAccumulator += time;\n\n while (timeAccumulator > timeStep)\n {\n step(timeStep);\n timeAccumulator -= timeStep;\n }\n\n return timeAccumulator / timeStep;\n }",
"float getTemperature();",
"public void updateCelcius(){\n tempInC = ( (tempInF - 32)/9 ) * 5;\n }",
"public void ptFromTVal(double t, Point currPt)\n/* */ {\n/* 37 */ if (this.m_cont != null) {\n/* 38 */ Dimension d = this.m_cont.size();\n/* */ \n/* 40 */ double tVal = tVal(t);\n/* 41 */ currPt.y = (d.height - 15 - new Double(tVal(t) * (d.height - 15 - 15)).intValue());\n/* */ \n/* */ \n/* */ \n/* 45 */ currPt.x = (new Double(t * (d.width - 15 - 15)).intValue() + 15);\n/* */ }\n/* */ }",
"@Override\n\tpublic double GetValue() {\n\t\tdouble spot = inputs.getSpot();\n\t\tdouble strike = inputs.getStrike();\n\t\tdouble vol = inputs.getVol();\n\t\tint noSteps=inputs.getNoSteps();\n\t\tdouble expiry=inputs.getExpiry();\n\t OptionType type=inputs.getType();\n\t ExerciseType exercise=inputs.getExercise();\n\t InterestRate interestRate=inputs.getR();\n\t\t\n\t double timestep = expiry/noSteps;\n\t double DF = Math.exp(-interestRate.GetRate(1.)*timestep);\n\t double temp1 = Math.exp((interestRate.GetRate(1.) + vol * vol)*timestep);\n\t double temp2 = 0.5 * (DF + temp1);\n\t double up = temp2 + Math.sqrt(temp2*temp2 - 1);\n\t double down = 1/ up;\n\t double probaUp = (Math.exp(interestRate.GetRate(1.) * timestep) - down)/(up -down) ;\n\t double probaDown = 1 - probaUp;\n\n\t //stock price tree\n\t\tstockPrice[0][0]=spot;\n\t for (int n = 1; n <= noSteps; n ++) {\n for (int j = n; j > 0; j--){\n \tstockPrice[j][n] = up * stockPrice[j-1][n-1];\n }\n \t\tstockPrice[0][n] = down * stockPrice[0][n-1];\n }\n\t \n\t //last column set payoffs\n\t\tfor (int j = 0; j <= noSteps; j++) {\n\t\t\t\tif(type.equals(OptionType.CALL)) {\n\t\t\t\t\tpayOff[j][noSteps] = Math.max(this.stockPrice[j][noSteps] - strike, .0);\n\t\t\t\t}else {\n\t\t\t\t\tpayOff[j][noSteps] = Math.max(strike - this.stockPrice[j][noSteps], .0);\n\t\t\t\t}\n\t\t}\n\n\t\t\n\t //payoff tree in backwardation\n\t \n\t for (int i = noSteps ; i >= 1; i--) {\n for (int j = 0; j <= i-1; j++) {\n\t \tif(exercise.equals(ExerciseType.AMERICAN)) { \n\t //American\t\n\t \t\tif(type.equals(OptionType.CALL)) {\n\t \t\t\t\tpayOff[j][i-1] = Math.max(DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]) ,\n\t \t\t\t\tMath.max(this.stockPrice[j][i-1] - strike, .0));\n\t \t\t\t\n\t \t\t}else \tpayOff[j][i-1] = Math.max(DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]) ,\n\t \t\t\t\tMath.max(strike - this.stockPrice[j][i-1] , .0));\n\t \t}else { \n\t \t\t\t//European put and call option\n\t \t\t\t\tpayOff[j][i-1] = DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]);\n\t }\n }\n }\n\t \n\t double deltaUp = (payOff[0][2]-payOff[1][2])/(stockPrice[0][2]-stockPrice[1][2]);\n\t double deltaDown = (payOff[1][2]-payOff[2][2])/(stockPrice[1][2]-stockPrice[2][2]);\n\t delta = (deltaUp + deltaDown) /2;\n\t gamma = (deltaUp-deltaDown)/((stockPrice[0][2]-stockPrice[2][2])/2);\n\t theta = (payOff[1][2]-payOff[0][0])/(365*2*timestep);//time in days\n\t \n\t long rounded = Math.round(payOff[0][0]*10000);\n\t return rounded/10000.0;\n\t}",
"private void computeComfort(Person p, Room room) {\r\n\r\n double comfort = 0;\r\n\r\n\t /*\r\n\t Temperature Comfort\r\n\t */\r\n\t double roomTemp = room.getTemperature();\r\n\t double desiredTemp = p.getParams().getTemperature();\r\n comfort += desiredTemp - roomTemp;\r\n\r\n /*\r\n\t Light Comfort\r\n\t */\r\n double light = room.getLuminosity();\r\n\r\n /*\r\n\t Computer Comfort\r\n\t */\r\n Computer.State state = room.getUsedComputer(p.getName());\r\n p.addComfort(Manager.CURRENT_STEP, comfort);\r\n /*if (comfort > 0) {\r\n room.adjustSchedule(100, p);\r\n }*/\r\n }",
"public int trapRainWater(int[][] arr) {\n if(arr.length==0||arr[0].length==0) return 0;\n int n=arr.length;\n int m=arr[0].length;\n PriorityQueue<Integer> pq=new PriorityQueue<>((a,b)->{\n return arr[a/m][a%m]-arr[b/m][b%m];\n });\n boolean vis[][]=new boolean[n][m];\n int ans=0;\n int bound=0;\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n if(i==0||i==n-1||j==0||j==m-1){\n pq.add(i*m+j);\n vis[i][j]=true;\n }\n }\n }\n int dir[][]={{1,0},{-1,0},{0,1},{0,-1}};\n while(pq.size()>0){\n int idx=pq.remove();\n int r=idx/m;\n int c=idx%m;\n bound=Math.max(bound,arr[r][c]);\n if(arr[r][c]<bound) ans+=bound-arr[r][c];\n for(int d=0;d<4;d++){\n int x=r+dir[d][0];\n int y=c+dir[d][1];\n if(x>=0&&y>=0&&x<n&&y<m&& !vis[x][y]){\n vis[x][y]=true;\n pq.add(x*m+y);\n }\n }\n }\n return ans;\n }",
"private double xSpeedIncrease() \r\n\t{\r\n\t\tthis.x += 45;\r\n\t\treturn this.x;\r\n\t}",
"public void step() {\n\t\t// calculate new values\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = cells[x + (y * gridX)];\n\t\t\t\tCell newCell = newCells[x + (y * gridX)];\n\n\t\t\t\tint neighborCount = sameNeighborCount(x, y);\n\n\t\t\t\tif (c.isActive) {\n\t\t\t\t\tif (neighborCount < 2) {\n\t\t\t\t\t\t// all alone, die of loneliness\n\t\t\t\t\t\tnewCell.isActive = false;\n\t\t\t\t\t\tnewCell.cellColor = app.color(deadColor);\n\t\t\t\t\t}\n\t\t\t\t\telse if (neighborCount > 3) {\n\t\t\t\t\t\tnewCell.isActive = false;\n\t\t\t\t\t\tnewCell.cellColor = app.color(deadColor);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Dead cells can be reborn if surrounded by enough neighbors of the same\n\t\t\t\t\t// color. The cell will be reborn using the most prominent color.\n\t\t\t\t\tint populousColor = mostPopulousColor(x, y);\n\t\t\t\t\tif (populousColor > Integer.MIN_VALUE) {\n\t\t\t\t\t\tnewCell.isActive = true;\n\t\t\t\t\t\tnewCell.cellColor = populousColor;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// update to new state\n\t\tfor (int i = 0; i < cells.length; i++) {\n\t\t\tcells[i].isActive = newCells[i].isActive;\n\t\t\tcells[i].cellColor = newCells[i].cellColor;\n\t\t}\n\t}",
"private Integer movePrey(PredatorPreyCell cell, Grid<Integer> grid, Coordinates coordinates) {\n\t\tcell.tickBreedingTimer();\n\t\tArrayList<Cell<Integer>> neighbors = ((PredatorPreyCell)cell).getNeighbors();\n\t\tfor(Cell<Integer> neighborCell : neighbors) {\n\t\t\tPredatorPreyCell neighbor = (PredatorPreyCell) neighborCell;\n\t\t\tif(neighbor.getValue() == EMPTY &&\n\t\t\t (neighbor.getNewValue() == null || neighbor.getNewValue() == EMPTY) &&\n\t\t\t neighbor.getCoordinates() != null) {\n\t\t\t\treturn swap(cell, neighbor);\n\t\t\t}\n\t\t}\n\t\treturn PREY;\n\t}",
"@Override\n\tpublic WB_Point nextPoint();",
"public void step() {\n hasMoved = new boolean[simulationSize][simulationSize]; // Initializing the array and populating it with false values\n\n for(int i = 0; i < hasMoved.length; i++)\n Arrays.fill(hasMoved[i], false);\n\n moveFluid();\n\n yVelocityModifier.add(gravity);\n for(int i = 0; i < simulationSize; i++) { // Iterating through every grid space\n for(int j = 0; j < simulationSize; j++) {\n if(fluidGrid[i][j][0] == EMPTY_VALUE) // If the current space is empty don't use it\n continue;\n\n for(float xModifier : xVelocityModifier) {\n fluidGrid[i][j][0] += xModifier;\n }\n\n for(float yModifier : yVelocityModifier) {\n fluidGrid[i][j][1] += yModifier;\n }\n }\n }\n\n xVelocityModifier.clear();\n yVelocityModifier.clear();\n }",
"public double fpp() {\n return config().getP();\n }",
"public float energyAsLiquidMoving() {\n return (-eps_ll * (nliquid - 1)) - (eps_nl * (nparticle + 1)) - mu;\n }",
"RampUpTimer getRampUpTimer();",
"private int cell(int j) \r\n\t{\n\t\tint i=1,sum=0;\r\n\t\tfor(i=1;i<=j;i++)\r\n\t\t{\r\n\t\t\tsum=sum+i;\r\n\t\t\t}\r\n\t\treturn sum;\r\n\t}",
"public double calculateVelocity(){\n double storyPoints = 0.0; // number of story points completed in total\n double numWeeks = BoardManager.get().getCurrentBoard().getAge()/7.0;\n LinkedList<Card> allCompletedCards = BoardManager.get().getCurrentBoard().getCardsOf(Role.COMPLETED_WORK);\n for (Card card : allCompletedCards) {\n storyPoints += card.getStoryPoints();\n }\n if (storyPoints == 0.0){\n return 0.0;\n }\n return Math.round(storyPoints/numWeeks * 100D) / 100D;\n }",
"public float calculateValue(String parameter) {\n\n float defaultValue = 0.5f;\n float defaultFactor = 0.1f;\n float currentValue = defaultValue;\n\n float nextValue = 0f;\n try {\n records = load();\n } catch (IOException ex) {\n Logger.getLogger(IntelligentSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n for (CSVRecord record : records) {\n\n // skip all rows that is not marked with X\n if (!\"X\".equals(record.get(parameter))) {\n continue;\n }\n\n nextValue = currentValue + (1 - currentValue) * defaultFactor;\n currentValue = nextValue;\n\n }\n return nextValue;\n }",
"public double getTemp() {\n\t\treturn currentTemp;\n\t}",
"void calculatePR( int iteration){\n\t\t\n\t\ttotal_nodes = inlinks.size();\n\t\tfor(String page : inlinks.keySet()){\n\t\t\tPageRank.put(page, (1/(double)(total_nodes)));\n\t\t\tinit_PageRank.put(page, (1/(double)(total_nodes)));\n\t\t}\n \n double ppx = 0.0;\n boolean cond = true;\n int itr =1;\n // while(iteration >0){ //Used for Graph page rank calculation; c\n while(cond){ \n \tSystem.out.println(\"Iteration\"+itr); \n double sinkPR = 0;\n for(String s: sink){\n \tsinkPR = sinkPR + (PageRank.get(s)); //calculate total sink PR\n }\n \n double entropy = 0.0;\n \n for(String s: PageRank.keySet()){\n \tdouble newPR;\n \tnewPR = (1.0 -d)/total_nodes;\n \tnewPR = newPR + (d*sinkPR)/total_nodes;\n \tSet<String> in = inlinks.get(s); //pages pointing to P\n \tif(in != null){\n \t\tfor(String s1 : in){\n \t\t\tnewPR = newPR + d* (PageRank.get(s1)/outlinks_count.get(s1)); \t\t \n \t\t}\n \t} \n \t\tnew_PageRank.put(s, newPR);\n \t\tentropy = entropy + (newPR*(Math.log(newPR)/Math.log(2))); //entroPy calculation\n \t}\n \n PageRank.putAll(new_PageRank);\n ppx = Math.pow(2,-1*entropy);\n System.out.println(\"perplexity : \"+ ppx);\n ppx_list.add(ppx);\n if(ppx_list.size()>5) \n \tcond= !check(4);\n \n itr++;\n \t\n //\t iteration --; //Used for page Rank Calculation of Graph\n } \n\t}",
"public double generate(double finalVal, long totalSteps, long currentStep) {\r\n double nextVal = 0.0;\r\n double slope = 0.0; \r\n \r\n // Initial step for ramp\r\n if (currentStep == 1)\r\n \t// Store the current value to adjust the starting point of the ramp\r\n \tinitVal = finalVal; \r\n \r\n // Linear\r\n // Determine the slope of the equation\r\n slope = (0 - initVal)/totalSteps;\r\n\r\n // Generate the next value\r\n nextVal = slope * currentStep + initVal;\r\n \r\n // At the end of the ramp so set the isDone flag true\r\n if (currentStep >= totalSteps)\r\n isDone = true;\r\n \r\n return nextVal; \r\n }",
"public double getCurrentValue()\r\n\t{\r\n\t\tcurrentValue=(2*border+24)/2;\r\n\t\treturn currentValue;\r\n\t}",
"private int getGoalValueForBlock(int row, int column) {\n \tif (row == dimension() - 1 && column == dimension() - 1) {\n \t\treturn 0;\n \t\t\n \t} else {\n \t\treturn (row * dimension()) + column + 1;\n \t}\n }"
] | [
"0.61532545",
"0.6005014",
"0.5863117",
"0.58232397",
"0.5793868",
"0.5790691",
"0.5787503",
"0.5748069",
"0.56083715",
"0.5454367",
"0.53691876",
"0.5354965",
"0.5354965",
"0.5354965",
"0.53240377",
"0.53156024",
"0.53091156",
"0.52101845",
"0.51571333",
"0.5105435",
"0.50933725",
"0.50857806",
"0.50707334",
"0.50685334",
"0.50655764",
"0.50596905",
"0.5058625",
"0.50503427",
"0.50445276",
"0.5003733",
"0.49895576",
"0.4975174",
"0.49739838",
"0.49625635",
"0.49506584",
"0.4946186",
"0.49449918",
"0.4927916",
"0.4921817",
"0.49127105",
"0.49092552",
"0.49062568",
"0.48964393",
"0.4893933",
"0.48912105",
"0.48893636",
"0.48863447",
"0.48853415",
"0.48842508",
"0.48803073",
"0.48795447",
"0.48755148",
"0.4874088",
"0.48653913",
"0.48574686",
"0.4857382",
"0.48545235",
"0.48476374",
"0.48346007",
"0.48316273",
"0.48224726",
"0.48148912",
"0.48101273",
"0.48052573",
"0.48040178",
"0.48026678",
"0.4801599",
"0.47981638",
"0.47932777",
"0.47921935",
"0.47850066",
"0.47733584",
"0.4768173",
"0.47620094",
"0.47605187",
"0.47594658",
"0.4758473",
"0.47570303",
"0.47498962",
"0.47460243",
"0.47433272",
"0.47433004",
"0.47397047",
"0.47352856",
"0.47323552",
"0.4732278",
"0.47233176",
"0.4721638",
"0.47105044",
"0.4709607",
"0.47071052",
"0.47065276",
"0.47050074",
"0.4700886",
"0.47002923",
"0.46957055",
"0.46901923",
"0.4683368",
"0.4673518",
"0.46735123"
] | 0.76160604 | 0 |
Calculate the pressure correction using the pressure correction method | public void applyPressureCorrection() {
// Compute the pressure correction for the entire grid
for (int i = 1; i < gridSizeX - 1; i++) {
for (int j = 1; j < gridSizeY - 1; j++) {
for (int k = 1; k < gridSizeZ - 1; k++) {
if (!obstacle[i][j][k]) {
applyPressureCorrection(i, j, k);
}
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void applyPressureCorrection(int i, int j, int k) {\n double pEast = p[i + 1][j][k];\n double pWest = p[i - 1][j][k];\n double pNorth = p[i][j + 1][k];\n double pSouth = p[i][j - 1][k];\n double pUp = p[i][j][k + 1];\n double pDown = p[i][j][k - 1];\n double deltaZ = (depth[k + 1] - depth[k - 1]) / 2;\n\n // Compute the pressure correction using the pressure correction equation\n double pressureCorrection = (pEast - pWest) / (2 * deltaX) + (pNorth - pSouth) / (2 * deltaY)\n + (pUp - pDown) / (2 * deltaZ);\n\n // Apply the pressure correction to the velocity field\n u[i][j][k] -= (pressureCorrection * timeStep) / fluidDensity;\n v[i][j][k] -= (pressureCorrection * timeStep) / fluidDensity;\n w[i][j][k] -= (pressureCorrection * timeStep) / fluidDensity;\n }",
"double getPressure();",
"public float getPressure() {\n pressure = calculatePressure();\n return pressure;\n }",
"protected double calc_virial_pressure() {\n\t\tint i,j,iTot;\n\t\tdouble dr2,fij,rij,TotFdotR;\n\t\tdouble vp;\n\t\t\n\t\t/* Calculate sum(f.r): */\n\t\tTotFdotR = 0.0; iTot = 0;\n\t\tfor(i=0; i<n; i++) {\n\t\t\tfor(j=0; j<n; j++) {\n\t\t\t\tif ( i != j ) {\n\t\t\t\t\tdr2 = ij_sep2(i,j,c_lat,CUR_POS);\n\t\t\t\t\trij = Math.sqrt(dr2);\n\t\t\t\t\tfij = -12.0*4.0*Math.pow(diameter,12.0)/Math.pow(rij,13.0)\n\t\t\t\t\t+6.0*4.0*Math.pow(diameter,6.0)/Math.pow(rij,7.0);\n\t\t\t\t\tTotFdotR += fij*rij;\n\t\t\t\t\tiTot++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//TotFdotR /= (double)iTot;\n\t\tTotFdotR /= -2.0;\n\t\t\n\t\t/* Calc total virial: */\n\t\tvp = Math.sqrt(2.0)*calc_sys_density()/beta +\n\t\tMath.pow(diameter,3.0)*TotFdotR/(3.0*box[c_lat].x*box[c_lat].y*box[c_lat].z);\n\t\t\n\t\t/* check line */\n\t\t//System.out.printf(\" VPi %f %f %f\\n\",calc_density()/beta, TotFdotR/(3.0*box.x*box.y*box.z),vp);\n\t\t\n\t\treturn(vp);\n\t}",
"double getPValue();",
"public float getPressure() {\n\t\treturn (float) getRawPressure() / 100f;\n\t}",
"public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}",
"@FXML\r\n public void calculoRaiz() {\r\n try{\r\n setType();\r\n setFuncion();\r\n //Primero limpiamos el text area para eliminar lo que se calculo anteriormente.\r\n txtArea.setText(\"\");\r\n double tol = Double.parseDouble(txtTol.getText());\r\n int n = Integer.parseInt(txtN.getText());\r\n int i = 1;\r\n double P0 = getP0();\r\n double P;\r\n while (i < n) { \r\n\r\n String ecuacion = \"P0 -(f(P0)/fd(P0))\";\r\n\r\n System.out.println(\"test11\"+f(P0));\r\n System.out.println(\"test12\"+fd(P0));\r\n\r\n if(f(P0)<0){\r\n double aux = f(P0);\r\n String aux2 = aux +\"\";\r\n aux2 = aux2.replace(\"-\",\"!\");\r\n\r\n ecuacion = ecuacion.replace(\"f(P0)\", aux2);\r\n }else{\r\n double aux = f(P0);\r\n ecuacion = ecuacion.replace(\"f(P0)\", \"\"+aux);\r\n }\r\n if(fd(P0)<0){\r\n double aux = fd(P0);\r\n String aux2 = aux +\"\";\r\n aux2 = aux2.replace(\"-\",\"!\");\r\n\r\n ecuacion = ecuacion.replace(\"fd(P0)\", aux2);\r\n }else{\r\n double aux = fd(P0);\r\n\r\n ecuacion = ecuacion.replace(\"fd(P0)\", \"\"+aux);\r\n }\r\n if(P0<0){\r\n String a = P0+\"\";\r\n a = a.replace(\"-\",\"!\");\r\n ecuacion = ecuacion.replace(\"P0\",a);\r\n }else{\r\n ecuacion = ecuacion.replace(\"P0\",P0+\"\");\r\n }\r\n System.out.println(ecuacion+\"hola\");\r\n in.setFuncion(ecuacion);\r\n\r\n P = in.getResultado();\r\n System.out.println(P);\r\n txtArea.setText(txtArea.getText()+\"\\n\\tIteracion \" + i\r\n + \"\\n\\t\" + \"P= \" +interpretador.getFlotante(new BigDecimal(P))+\"\\n\\t\" + \r\n \"P0= \" + interpretador.getFlotante(new BigDecimal(P0)));\r\n if (Math.abs(P - P0) < tol) {\r\n txtRaiz.setText(interpretador.getFlotante(new BigDecimal(P))+\"\");\r\n // txtRaiz.setText(P+\"\");\r\n return;\r\n }\r\n \r\n i = i +1;\r\n P0 = P;\r\n }\r\n \r\n }catch(Exception e){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Información\");\r\n alert.setContentText(\"Error de sintaxis. Verifique que haya escrito la función correctamente\");\r\n alert.showAndWait();\r\n }\r\n }",
"public double p(double t) {\r\n\r\n double Util = Umin + (1 - f(t)) * (Umax - Umin) ;\r\n // too soon to receive such low utility\r\n if(negotiationSession.getTime() < 0.7 && Util < 0.75){\r\n Util = 0.75 ;\r\n }\r\n return Util;\r\n }",
"public float evaluate(PhraseInfo p) {\n int numChords = p.gen.prog.get(p.gen.progIndex).size();\n int tn = Math.min(phraseLen, (int)Math.round(targetNotes * ((numChords + 1) / 3.0))); // not directly proportional.\n // scores: 50, 49, 46, 41, 34, 25 etc.\n int score = Math.max(0, 50 - (int)Math.round(Math.pow(Math.abs(p.noteCount - tn), 2)));\n return (float)Math.min(1.0f, score/50.0f);\n }",
"private void calculatePID(float LoopTime){\n\n\n\t\t// Append to our data sets.\n\t\tdata.PID.integralData.add(data.PID.computedTarget - data.PID.target);\n\t\tdata.PID.derivativeData.add(data.PID.computedTarget);\n\n\t\t// Keep integralData and derivativeData from having an exceeding number of entries.\n\t\tif (data.PID.integralData.size() > data.PID.INTEGRAL_DATA_MAX_SIZE){\n\t\t\tdata.PID.integralData.remove(0);\n\t\t}\n\n\t\tif(data.PID.derivativeData.size() > data.PID.DERIVATIVE_DATA_MAX_SIZE){\n\t\t\tdata.PID.derivativeData.remove(0);\n\t\t}\n\n\t\t// Set our P, I, and D values.\n\t\t// `P` will be the computedTarget - target\n\t\tdata.PID.P = data.PID.computedTarget - data.PID.target;\n\n\t\t// `I` will be the average of the integralData (Cries softly at the lack of Java8 streams)\n\t\tfloat IntegralAverage = 0;\n\t\tfor(float value : data.PID.integralData){\n\t\t\tIntegralAverage += value;\n\t\t}\n\t\tdata.PID.I = IntegralAverage / data.PID.integralData.size();\n\n\t\t// `D` will be the difference of the computedTarget and the Derivative average divided by\n\t\t// the time since the last loop in seconds multiplied by one plus half of the size of\n\t\t// the Derivative data set size.\n\t\tfloat DerivativeAverage = 0;\n\t\tfor(float value : data.PID.derivativeData){\n\t\t\tDerivativeAverage += value;\n\t\t}\n\t\tDerivativeAverage /= data.PID.derivativeData.size();\n\n\t\tdata.PID.D = (data.PID.computedTarget - DerivativeAverage) / ((LoopTime/1000) * (1 + (data.PID.derivativeData.size() / 2)));\n\t}",
"public final void normalizeCP() {\n\t// domain error may occur\n\tdouble s = Math.pow(determinant(), -1.0/3.0);\n\tmul((float)s);\n }",
"public double fpp() {\n return config().getP();\n }",
"private void calculateRecForces(){\n\t\t\n\t\t\n\t\tfor(Particle p : this){\n\t\t\t//Pg 183 Lee[05]\n\t\t\t//For each grid point that this particle has been interpolated to\n\t\t\tfor(int dx = -ASSIGNMENT_SCHEME_ORDER; dx < ASSIGNMENT_SCHEME_ORDER; dx++)\n\t\t\t{\n\t\t\t\tfor(int dy = -ASSIGNMENT_SCHEME_ORDER; dy < ASSIGNMENT_SCHEME_ORDER; dy++)\n\t\t\t\t{\n\t\t\t\t\tdouble uX = p.getPosition().re()/1.0 * CELL_SIDE_COUNT;//Scaled fractional coordinate\n\t\t\t\t\tdouble uY = p.getPosition().im()/1.0 * CELL_SIDE_COUNT;//Scaled fractional coordinate\n\t\t\t\t\tint particleCellX = (int)Math.round(p.getPosition().re()/1.0 * CELL_SIDE_COUNT);\n\t\t\t\t\tint particleCellY = (int)Math.round(p.getPosition().im()/1.0 * CELL_SIDE_COUNT);\n\t\t\t\t\tint thisX = particleCellX + dx;\n\t\t\t\t\tint thisY = particleCellY + dy;\n\t\t\t\t\tif(thisX >= 0 && thisY >= 0 && thisX < CELL_SIDE_COUNT && thisY < CELL_SIDE_COUNT)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble dQdx = p.getCharge() * M.evaluateDerivative(uX - thisX) * M.evaluate(uY - thisY);\n\t\t\t\t\t\tdouble dQdy = p.getCharge() * M.evaluate(uX - thisX) * M.evaluateDerivative(uY - thisY);\n\t\t\t\t\t\tp.addToForce(-dQdx * convolutedMatrix[thisX][thisY].re(), -dQdy * convolutedMatrix[thisX][thisY].re()); //FIXME .re()?\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"void calculatePR( int iteration){\n\t\t\n\t\ttotal_nodes = inlinks.size();\n\t\tfor(String page : inlinks.keySet()){\n\t\t\tPageRank.put(page, (1/(double)(total_nodes)));\n\t\t\tinit_PageRank.put(page, (1/(double)(total_nodes)));\n\t\t}\n \n double ppx = 0.0;\n boolean cond = true;\n int itr =1;\n // while(iteration >0){ //Used for Graph page rank calculation; c\n while(cond){ \n \tSystem.out.println(\"Iteration\"+itr); \n double sinkPR = 0;\n for(String s: sink){\n \tsinkPR = sinkPR + (PageRank.get(s)); //calculate total sink PR\n }\n \n double entropy = 0.0;\n \n for(String s: PageRank.keySet()){\n \tdouble newPR;\n \tnewPR = (1.0 -d)/total_nodes;\n \tnewPR = newPR + (d*sinkPR)/total_nodes;\n \tSet<String> in = inlinks.get(s); //pages pointing to P\n \tif(in != null){\n \t\tfor(String s1 : in){\n \t\t\tnewPR = newPR + d* (PageRank.get(s1)/outlinks_count.get(s1)); \t\t \n \t\t}\n \t} \n \t\tnew_PageRank.put(s, newPR);\n \t\tentropy = entropy + (newPR*(Math.log(newPR)/Math.log(2))); //entroPy calculation\n \t}\n \n PageRank.putAll(new_PageRank);\n ppx = Math.pow(2,-1*entropy);\n System.out.println(\"perplexity : \"+ ppx);\n ppx_list.add(ppx);\n if(ppx_list.size()>5) \n \tcond= !check(4);\n \n itr++;\n \t\n //\t iteration --; //Used for page Rank Calculation of Graph\n } \n\t}",
"public double calcProbs(Entry newEntry) {\r\n\t\ttotal = Collections.frequency(hasCOVID19, \"yes\");\r\n\t\tpIfYes += Collections.frequency(temperatureIfCOVID19,newEntry.getTemperature()) / total;\r\n\t\tpIfYes *= Collections.frequency(achesIfCOVID19,newEntry.getAches()) / total;\r\n\t\tpIfYes *= Collections.frequency(coughIfCOVID19,newEntry.getCough()) / total;\r\n\t\tpIfYes *= Collections.frequency(soreThroatIfCOVID19,newEntry.getSoreThroat()) / total;\r\n\t\tpIfYes *= Collections.frequency(dangerZoneIfCOVID19,newEntry.getDangerZone()) / total;\r\n\t\tpIfYes *= (double) total / dataEntries.size();\r\n\t\t\r\n\t\ttotal = Collections.frequency(hasCOVID19, \"no\");\r\n\t\tpIfNo += (Collections.frequency(temperature,newEntry.getTemperature()) - Collections.frequency(temperatureIfCOVID19,newEntry.getTemperature())) / total;\r\n\t\tpIfNo *= (Collections.frequency(cough,newEntry.getCough()) - Collections.frequency(coughIfCOVID19,newEntry.getCough())) / total;\r\n\t\tpIfNo *= (Collections.frequency(aches,newEntry.getAches()) - Collections.frequency(achesIfCOVID19,newEntry.getAches())) /total;\r\n\t\tpIfNo *= (Collections.frequency(soreThroat,newEntry.getSoreThroat()) - Collections.frequency(soreThroatIfCOVID19,newEntry.getSoreThroat())) /total;\r\n\t\tpIfNo *= (Collections.frequency(dangerZone,newEntry.getDangerZone()) - Collections.frequency(dangerZoneIfCOVID19,newEntry.getDangerZone())) / total;\r\n\t\tpIfNo *= (double) total / dataEntries.size();\r\n\t\t\r\n\t\t//Getting the result as a percentage and returning it.\r\n\t\tprobability = (pIfYes / (pIfYes+pIfNo)) * 100;\r\n\t\treturn probability;\r\n\t}",
"private static void fixPrng() {\n try\n {\n if (!prngFixed.get()) {\n synchronized (PrngFixes.class) {\n if (!prngFixed.get()) {\n PrngFixes.apply();\n prngFixed.set(true);\n }\n }\n }\n }\n catch (Exception e)\n {\n Log.e(\"PassCrypt Exception\",\"This exception is not important, its occurrence depends on device model\");\n }\n }",
"private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }",
"private double GPA_Cal(double[][] GPA_Array) {\n\t\tdouble ch = GPA_Array[0][1]+GPA_Array[1][1]+GPA_Array[2][1]+GPA_Array[3][1];\n\t\tdouble qp = 0;\n\t\tfor(int i = 0;i<GPA_Array.length;i++) {\n\t\t\tqp+= (GPA_Array[i][0]*GPA_Array[i][1]);\n\t\t}\n\t\treturn (qp/ch);\n\t\t\n\t}",
"public double getPER() {\n\t\tint nq = q0.length;\n double sum = 0.0;\n for (int i=0; i<nq; i++) sum += q0[i];\n\t\treturn Math.min(1.0, 0.5*(1.0-(sum/(double)nq))/initPER); // 0.5 * proba erreur\t\t\n\t}",
"public final flipsParser.pressureValue_return pressureValue() throws RecognitionException {\n flipsParser.pressureValue_return retval = new flipsParser.pressureValue_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n flipsParser.numericValue_return numericValue216 = null;\n\n flipsParser.pressureUnit_return pressureUnit217 = null;\n\n\n RewriteRuleSubtreeStream stream_numericValue=new RewriteRuleSubtreeStream(adaptor,\"rule numericValue\");\n RewriteRuleSubtreeStream stream_pressureUnit=new RewriteRuleSubtreeStream(adaptor,\"rule pressureUnit\");\n try {\n // flips.g:363:2: ( numericValue pressureUnit -> ^( PRESSURE numericValue pressureUnit ) )\n // flips.g:363:4: numericValue pressureUnit\n {\n pushFollow(FOLLOW_numericValue_in_pressureValue1905);\n numericValue216=numericValue();\n\n state._fsp--;\n\n stream_numericValue.add(numericValue216.getTree());\n pushFollow(FOLLOW_pressureUnit_in_pressureValue1907);\n pressureUnit217=pressureUnit();\n\n state._fsp--;\n\n stream_pressureUnit.add(pressureUnit217.getTree());\n\n\n // AST REWRITE\n // elements: pressureUnit, numericValue\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 // 364:2: -> ^( PRESSURE numericValue pressureUnit )\n {\n // flips.g:364:5: ^( PRESSURE numericValue pressureUnit )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(PRESSURE, \"PRESSURE\"), root_1);\n\n adaptor.addChild(root_1, stream_numericValue.nextTree());\n adaptor.addChild(root_1, stream_pressureUnit.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"public void evaluate_fixedpoint() {\n // DES_action_type = 0;\n // JOptionPane.showMessageDialog(null, \"Evaluating FP && Action-Type = \" + DES_action_type);\n int[] last2_fixedpoint_rounds = new int[64];\n for (int i = 0; i < 32; i++) {\n last2_fixedpoint_rounds[i] = DES_fixedpoint_sequence[9][i];\n last2_fixedpoint_rounds[32 + i] = DES_fixedpoint_sequence[8][i];\n }\n DES_fixedpoint = select(last2_fixedpoint_rounds, FP);\n }",
"public void correction(double zk) {\n\t\tkalmanGain = pPriorCovarianceError / (pPriorCovarianceError + R);\n\t\tstateXk = xPriorEstimate + (kalmanGain * (zk - xPriorEstimate)) ;\n\t\tPk = (1- kalmanGain) * pPriorCovarianceError;\n\t\t\n\t\t\n\t\txPreviousEstimate = stateXk;\n\t\tpPreviousCovarianceError = Pk;\n\t}",
"private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}",
"private Double getRefDP(Statement statement) throws Exception {\n\n\t\t// initialize reference pressure\n\t\tDouble refPressure = null;\n\n\t\t// get reference pressure from conversion table\n\t\tString sql = \"select ref_dp from xls_files where file_id = \" + spectrum_.getConversionTableID();\n\t\ttry (ResultSet resultSet = statement.executeQuery(sql)) {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\trefPressure = resultSet.getDouble(\"ref_dp\");\n\t\t\t}\n\t\t}\n\n\t\t// reference pressure is zero\n\t\tif ((refPressure == null) || (refPressure == 0.0)) {\n\n\t\t\t// get maximum pressure from ANA file\n\t\t\tsql = \"select max_dp from ana_flights where file_id = \" + spectrum_.getANAFileID() + \" order by max_dp desc\";\n\t\t\tstatement.setMaxRows(1);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery(sql)) {\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\trefPressure = resultSet.getDouble(\"max_dp\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tstatement.setMaxRows(0);\n\t\t}\n\n\t\t// return reference pressure\n\t\treturn refPressure;\n\t}",
"private double readPressureSample() {\n return 6 * randomPressureSampleSimulator.nextDouble() * randomPressureSampleSimulator.nextDouble();\n }",
"public Double calculatePTT(Double poPeakTime, Double poRRTime)\n {\n for (Double hmPeakTime : hmPeakTimes) {\n Double tempPTT = poPeakTime - hmPeakTime; //Calculate the possible PTT value\n Log.d(\"PTT calculation\", poPeakTime + \" - \" + hmPeakTime + \" = \" + tempPTT);\n if ((tempPTT > 100) && (tempPTT < 1500)) //If the value is within the limits\n {\n //Remove the R wave occurrence from the list\n hmPeakTimes.clear();\n currPTT = tempPTT; //Confirm the PTT\n //maf.newNum(currPTT); //add the newest PTT value to the moving average filter\n //Log.d(\"PTT calculation\", \"PTT: \" + currPTT);\n return currPTT; //Return the smoothed moving average value\n } else\n currPTT = 0.;\n\n }\n\n return currPTT; //If none of the possible PTT values fall within limits, return 0\n\n }",
"public abstract float calculateFraction(Parallax parallax);",
"public void calculeReduction(Produit p) {\r\n\t\tdouble res=0;\r\n\t\tres=p.getPrix()*taux;\r\n\t\tp.ajoutReduction(res);\r\n\t}",
"public void calculatePF() {\r\n\t\tfloat pfRate = 10.5f;\r\n\t\tSystem.out.println(\"The PF rate of the employee is \"+pfRate);\r\n\t\tdisplay();\r\n\t}",
"public abstract float perimetro();",
"protected float compute(){\n float result = 0f;\n String[] post = in2post(this.arr);\n result = post2ans(post);\n return result;\n }",
"@Override\n public boolean applyPerturbation(double param){\n //The parameter need to be an integer less than templateCoord.length\n\n if( param == 0 ){\n curParam = 0;\n return true;\n }\n\n boolean outcome = doPerturbationMotion(param);\n\n if(outcome)\n curParam = param;\n else\n curParam=0;\n\n return outcome;\n\n }",
"public abstract double applyDiscount(double p);",
"@Override\n public PDEResults1D solve(final ConvectionDiffusionPDEDataBundle pdeData, final PDEGrid1D grid, final BoundaryCondition lowerBoundary, final BoundaryCondition upperBoundary,\n final Surface<Double, Double, Double> freeBoundary) { PDEGrid1D doubleTimeStep = new PDEGrid1D(grid., null)\n // res1 = _bas\n //\n return null;\n }",
"double getPerimetro();",
"public void evaluate_anti_fixedpoint() {\n // DES_action_type = 0;\n // JOptionPane.showMessageDialog(null, \"Evaluating the Anti-FP && Action-Type = \" +\n // DES_action_type);\n int[] last2_anti_fixedpoint_rounds = new int[64];\n for (int i = 0; i < 32; i++) {\n last2_anti_fixedpoint_rounds[i] = DES_anti_fixedpoint_sequence[9][i];\n last2_anti_fixedpoint_rounds[32 + i] = DES_anti_fixedpoint_sequence[8][i];\n }\n DES_anti_fixedpoint = select(last2_anti_fixedpoint_rounds, FP);\n\n for (int i = 0; i < 64; i++)\n DES_anti_fixedpoint[i] = 1 ^ DES_anti_fixedpoint[i];\n }",
"public void PerspektivischeProjektion(){\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /*\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /*Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2]) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n //Entfernung vom 'Center of projection' zur 'Projectoin plane'\n double d=5;\n\n /*\n * Transformiert x|y|z Koordinaten in x|y Koordinaten\n * mithilfer der perspektivischen Projektion\n */\n\n A[0]=A[0]/((A[2]+d)/d);\n A[1]=A[1]/((A[2]+d)/d);\n B[0]=B[0]/((B[2]+d)/d);\n B[1]=B[1]/((B[2]+d)/d);\n C[0]=C[0]/((C[2]+d)/d);\n C[1]=C[1]/((C[2]+d)/d);\n D[0]=D[0]/((D[2]+d)/d);\n D[1]=D[1]/((D[2]+d)/d);\n\n\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax=A[0];\n ay=A[1];\n bx=B[0];\n by=B[1];\n cx=C[0];\n cy=C[1];\n dx=D[0];\n dy=D[1];\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }",
"protected Point PTtoXY(double pressure, double temperature) {\n Coordinate xy = world.map(WxMath.getSkewTXY(pressure, temperature));\n\n return new Point((int) Math.round(xy.x), (int) Math.round(xy.y));\n }",
"public float PercentPL() {\n\t\tif (!isClosed()) {\r\n\t\t\tSystem.err.println(\"Cannot compute PL if trade is on\");\r\n\t\t\treturn -1f;\r\n\t\t}\r\n\t\tif(dir == Direction.LONG) {//If long\r\n\t\t\t//(Sell price - Buy price) / Buy price * 100\r\n\t\t\treturn ((exitPrice - entryPrice)/entryPrice)*100;\r\n\t\t}\r\n\t\t//If short\r\n\t\t//(Sell price - Buy price) / Sell price * 100\r\n\t\treturn ((entryPrice - exitPrice)/entryPrice)*100;\r\n\t}",
"abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;",
"float getCpMultiplier();",
"public abstract double getPreis();",
"public double calculateP(DocumentSet Tc, DocumentSet Ac, DocumentSet TPc) {\r\n\r\n\t\tdouble precision = 0;\r\n\r\n\t\tif (Ac != null && Ac.getCardinality() != 0) {\r\n\t\t\tprecision = (double) TPc.getCardinality() / Ac.getCardinality();\r\n\t\t}\r\n\t\treturn precision;\r\n\t}",
"double getTransProb();",
"private static double pq(double x) {\n double num = C1 - Math.pow(x, 1.0/RHO);\n double denom = C3*Math.pow(x, 1.0/RHO) - C2;\n\n return 10000.0 * Math.pow(num / denom, 1.0/ETA);\n }",
"public double getPressure() {\n\t\treturn 1000+(int)(Math.random()*1001);//模拟一个随机气压数\n\t}",
"float getPostGain();",
"private float computeCenter_old() {\n\t\tVector3f PA = A.subtract(P);\n\t\tVector3f PB = B.subtract(P);\n\t\tN = PA.cross(PB);\n\t\tif (N.lengthSquared() <= EPSILON*EPSILON) {\n//\t\t\tSystem.out.println(\"A=\"+A+\", B=\"+B+\" P=\"+P+\" -> it is a line\");\n\t\t\treturn 0; //Degenerated to a line\n\t\t}\n\t\t\n\t\t//define orthonormal basis I,J,K\n\t\tN.normalizeLocal();\n\t\tVector3f I = PA.normalize();\n\t\tVector3f J = N.cross(I);\n\t\tVector3f K = N;\n\t\tVector3f IxK = I.cross(K);\n\t\tVector3f JxK = J.cross(K);\n\t\t//project points in the plane PAB\n\t\tVector3f PAxN = PA.cross(N);\n\t\tVector3f PBxN = PB.cross(N);\n\t\tVector2f P2 = new Vector2f(0, 0);\n\t\tVector2f A2 = new Vector2f(PA.dot(JxK)/I.dot(JxK), PA.dot(IxK)/J.dot(IxK));\n\t\tVector2f B2 = new Vector2f(PB.dot(JxK)/I.dot(JxK), PB.dot(IxK)/J.dot(IxK));\n\t\t\n\t\t//compute time t of C=P+tPA°\n\t\tfloat t;\n\t\tif (B2.x == A2.x) {\n\t\t\tt = (B2.y - A2.y) / (A2.x - B2.x);\n\t\t} else {\n\t\t\tt = (B2.x - A2.x) / (A2.y - B2.y);\n\t\t}\n\t\t//compute C\n\t\tVector2f PArot = new Vector2f(A.y-P.y, P.x-A.x);\n\t\tVector2f C2 = P2.addLocal(PArot.multLocal(t));\n\t\t//project back\n\t\tC = new Vector3f(P);\n\t\tC.addScaledLocal(C2.x, I);\n\t\tC.addScaledLocal(C2.y, J);\n\t\t//Debug\n//\t\tSystem.out.println(\"A=\"+A+\", B=\"+B+\" P=\"+P+\" -> I=\"+I+\", J=\"+J+\", K=\"+K+\", P'=\"+P2+\", A'=\"+A2+\", B'=\"+B2+\", t=\"+t+\", C'=\"+C2+\", C=\"+C);\n\t\t//set radius\n\t\treturn C.distance(A);\n\t}",
"@Override\n public float calculaPreu(PreuTipusHabitacio p) {\n return p.getPreu() * this.perc;\n }",
"public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }",
"private void equalizePressure() {\n for (int i = 0; i < 10; ++i) {\n HydraulicState hs = outputComponent.getHydroState();\n if (hs instanceof BlockedHydroState) { // we can't send anything\n break;\n } else {\n if (hs.getPressure() < getBottomPressure()) { // if our pressure is larger than the other one\n Water deltaWater = new Water(getWater().getTemperature(), Math.min((int)(3 * getWater().getParticlesPerKilo()), getWater().getParticleNr()));\n //System.out.println(\"C: Before: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n send(deltaWater); // send 3 kg of water\n getWater().remove(deltaWater.getParticleNr());\n //System.out.println(\"C: After: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n } else {\n // residual flow\n /*Water deltaWater = new Water(getWater().getTemperature(), new Kilograms(Math.min(0.01, getWaterMass())));\n send(deltaWater);\n getWater().remove(deltaWater.getParticleNr());*/\n }\n }\n } \n }",
"@Override\r\n public double calculatePiValue() {\r\n double variable = 0;\r\n double value = 0;\r\n for (int step =1;step<=steps; step++) {\r\n variable = step*2+1;\r\n if(step % 2 == 0) {\r\n value = value + ( (double)1 / variable);\r\n } else {\r\n value = value - ( (double)1 / variable);\r\n }\r\n }\r\n value = (1 + value)* 4;\r\n return value;\r\n }",
"public double precioFinal(){\r\n \r\n double plus = 0;\r\n \r\n switch(consumoElectrico){\r\n case 'A':\r\n plus +=100;\r\n break;\r\n case 'B':\r\n plus += 80;\r\n break;\r\n case 'C':\r\n plus +=60;\r\n break;\r\n case 'D':\r\n plus +=50;\r\n break;\r\n case 'E':\r\n plus+=30;\r\n break;\r\n case 'F':\r\n plus+=10;\r\n break;\r\n \r\n }\r\n \r\n \r\n if(peso>=0 && peso<=19){\r\n plus+=10;\r\n }else if(peso >=20 && peso<= 49){\r\n plus+=50;\r\n }else if(peso >= 50 && peso<=79){\r\n plus+=80;\r\n }else if(peso>=80){\r\n plus+=100;\r\n }\r\n return precioBase+plus;\r\n }",
"double computePrecision(int[][] paraPredicionMatrix) {\n double tempPrecision = 0.0;\n int tempTotal = 0;\n int temptempPrecisionCount = 0;\n for (int i = 0; i < paraPredicionMatrix.length; i++) {\n for (int j = 0; j < paraPredicionMatrix[i].length; j++) {\n if (paraPredicionMatrix[i][j] == 1) {\n tempTotal++;\n if (formalContext.testingFormalContext[i][j] > 0) {\n temptempPrecisionCount++;\n } // End if\n } // End if\n } // End for j\n } // End for i\n System.out.println(\"temptempPrecisionCount: \" + temptempPrecisionCount);\n System.out.println(\"tempTotal: \" + tempTotal);\n if (temptempPrecisionCount == 0) {\n return 0.0;\n } // End if\n tempPrecision = (temptempPrecisionCount + 0.0) / tempTotal;\n return tempPrecision;\n }",
"private void applyRules(Product p, int i) {\n /* Produktinfos */\n Properties.ProductTypes type = p.getType();\n int quality = p.getQuality();\n int bestBefore = p.getBestBefore();\n double price = p.getPrice();\n\n /* Qualitätsinfos */\n int minQuality = qualities.get(type).getMinQuality();\n int qualityChange = qualities.get(type).getQualityChange();\n int changeAfterDays = qualities.get(type).getChangeQualAfterDays();\n\n /* Ändere die Qualität nach einer bestimmten Anzahl an Tagen */\n if (i % changeAfterDays == 0\n && quality >= 1) {\n p.setQuality(quality + qualityChange);\n }\n\n /* Wenn die Qualität ein bestimmtes Niveau unterschreitet \n oder wenn das MHD erreicht ist, wird das Produkt entsorgt.\n Gilt nicht für Wein. */\n if (!type.equals(ProductTypes.WEIN)) {\n if ((quality < minQuality || bestBefore < 1)) {\n p.setDisposable(true);\n }\n\n // Tagespreis anpassen\n p.setPrice(price + (0.1 * quality));\n\n // täglich das Verfallsdatum um 1 Tag verringern\n p.setBestBefore(bestBefore - 1);\n }\n\n LOGGER.log(Level.INFO, p.toString());\n }",
"private double getCorrection(){\n //Get the current angle of the robot\n double angle = getAngle();\n double correction;\n\n //Use the angle to calculate the correction\n if (angle == 0){\n //If angle = 0, robot is moving straight; no correction needed\n correction = 0;\n }else{\n //If angle != 0, robot is not moving straight\n //Correction is negative angle (to move the robot in the opposite direction)\n //multiplied by gain; the gain is the sensitivity to angle\n //We have determined that .1 is a good gain; higher gains result in overcorrection\n //Lower gains are ineffective\n correction = angle*gain;\n }\n //Display correction\n telemetry.addData(\"Correction\", correction);\n telemetry.update();\n\n return correction;\n }",
"public double getPercepcion(){\n return localPercepcion;\n }",
"protected double updateCorrect(double oldVal, double difflevel) {\r\n double pSlip = 0.4 ; //0.5 - difflevel / 10;\r\n double pGuess = 0.4 ; //0.5 - difflevel / 10 ;\r\n\r\n double newVal= ((1 - pSlip) * oldVal) / (((1 - pSlip) * oldVal) + (pGuess * (1 - oldVal)));\r\n return newVal;\r\n }",
"public double getPValue(WILCOXON_H0 h0) {\n if ( observations.size() == 0 )\n return -1.0;\n \n // dither to break rank ties\n dither();\n \n // sort\n Collections.sort(observations, new PairComparator());\n \n // sum\n double sum = 0.0;\n int n1 = 0;\n for (int i = 0; i < observations.size(); i++) {\n if ( observations.get(i).second == WILCOXON_SET.SET1 ) {\n sum += i+1;\n n1++;\n }\n }\n int n2 = observations.size() - n1;\n \n // todo -- these are actually integers\n // we want the smaller of U1 and U2\n double U1 = sum - (n1 * (n1 + 1.0) / 2.0);\n double U2 = (n1 * n2) - U1;\n \n double pvalue;\n // if we don't have enough data points, quit\n // if ( n1 < minimumNormalN || n2 < minimumNormalN ) {\n // pvalue = exactCalculation(h0, n1, n2, U1, U2);\n // } else {\n pvalue = normalApproximation(h0, n1, n2, U1, U2);\n // }\n \n if ( DEBUG && (n1 < minimumNormalN || n2 < minimumNormalN) ) {\n //for (int i = 0; i < observations.size(); i++)\n // System.out.println(observations.get(i).first + \" -> set\" + (observations.get(i).second == WILCOXON_SET.SET1 ? \"Alt\" : \"Ref\"));\n //System.out.printf(\"n1 %d n2 %d U1 %f U2 %f pValue %f QPValue %f%n\", n1, n2, U1, U2, pvalue, QualityUtils.phredScaleErrorRate(pvalue));\n }\n \n return pvalue;\n }",
"public void multiply(Polynomial p1) {\n\t\tPolynomial p=new Polynomial();\r\n\t\t// taking 2 loops to multiply the coeff and storing it in this newly created polnomial\r\n\t\tfor(int i=0;i<p1.DynArray.length;i++) {\r\n\t\t\tfor(int j=0;j<this.DynArray.length;j++) {\r\n\t\t\t\t// checking if degree is smaller to initial degree then storing\r\n\t\t\t\tif(i + j <=p.degree)\r\n\t\t\t\t\tp.setDegreeCoefficient( i + j ,p.DynArray[i+j]+p1.DynArray[i] * this.DynArray[j]);\r\n\t\t\t\telse\r\n\t\t\t\t\t// otherwise we'll not have anythig there to add so just putting multiply result\r\n\t\t\t\t\t// this is similar step just like u do in maths multiplication\r\n\t\t\t\t\tp.setDegreeCoefficient(i + j ,p1.DynArray[i] * this.DynArray[j]);\r\n\t\t\t}\r\n\t\t}\r\n//\t\t// p2 -> this\r\n//\t\tint[] updatedArr = new int[10];\r\n//\t\t\r\n//\t\tfor(int i = 0; i < this.DynArray.length; i++) {\r\n//\t\t\tint[] temp = new int[10];\r\n//\t\t\tfor(int j = 0 ; j < p1.DynArray.length; j++) {\r\n//\t\t\t\tint index = i+j;\r\n//\t\t\t\ttemp[index] = this.DynArray[i]*p1.DynArray[j];\r\n//\t\t\t}\r\n//\t\t\t// adding empty arr/ updatedArr and temp arr\r\n//\t\t\tfor(int j = 0 ; j <temp.length; j++) {\r\n//\t \t\t\tupdatedArr[j] = updatedArr[j] + temp[j];\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\t\r\n//\t\t// coping all elements from updatedArr to p2/ this\r\n//\t\tfor(int i=0;i<updatedArr.length;i++) {\r\n//\t\t\tthis.DynArray[i] = updatedArr[i];\r\n//\t\t}\r\n\t}",
"public static void CheckPressure()\n {\n //Only start the compressor if we neeed air\n if(_isRuning && _compressor.getPressureSwitchValue())\n {\n _compressor.stop();\n _isRuning = false;\n }\n else if (!_isRuning && !_compressor.getPressureSwitchValue())\n {\n _compressor.start();\n _isRuning = true;\n }\n }",
"public abstract double calculatePerimeter();",
"public abstract double calculatePerimeter();",
"float[] calculate(float[] acc, float[] oldAcc, float[] gyr , float[] oldGyr,float[] oldGra, float[] oldAccVelDisGra)\n {\n// System.out.println(\"inside method acc:\"+acc[0]+\", \"+acc[1]+\", \"+acc[2]+\", oldAcc:\"+oldAcc[0]+\", \"+oldAcc[1]+\", \"+oldAcc[2]);\n// System.out.println(\"inside method gravity:\"+oldGra[0]+\", \"+oldGra[1]+\", \"+oldGra[2]);\n if (oldAccVelDisGra==null)\n {\n oldAccVelDisGra= new float[9];\n for (int i = 0; i <9; i++) {\n oldAccVelDisGra[i]=0.0f;\n }\n }\n float[] oldDynamicAcc = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldVelocity = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldDistance = new float[]{0.0f, 0.0f, 0.0f};\n float[] newGra = gravityFromRotation(oldGra, gyr);\n\n for (int i = 0; i < 3; i++) {\n oldDynamicAcc[i] = oldAccVelDisGra[i];\n oldVelocity[i] = oldAccVelDisGra[i+3];\n oldDistance[i] = oldAccVelDisGra[i+6];\n }\n float[] accVelDisGra = new float[]{0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};\n float[] dynAccDiff = dynamicAccDiff(acc,gyr,oldGra,oldAcc,oldGyr);\n float[] dynamicAcc = dynamicAcc(oldDynamicAcc, dynAccDiff);\n float[] velocity = velocity(oldVelocity,dynamicAcc);\n float[] distance = distance(oldDistance, velocity);\n for (int i = 0; i < 3; i++) {\n accVelDisGra[i]=dynamicAcc[i];\n accVelDisGra[i+3]= velocity[i];\n accVelDisGra[i+6]=distance[i];\n accVelDisGra[i+9]=newGra[i];\n }\n return accVelDisGra;\n }",
"public double[] proportionPercentage(){\n if(!this.pcaDone)this.pca();\n return this.proportionPercentage;\n }",
"private void adjustPower (TurnType dir,\n float p) {\n float adjust = Math.signum(p) * gyroSensor.adjustDirection();\n // with RUN_TO_POSITION sign of power is ignored\n // we have to clip so that (1 + adjust) and (1 - adjust) have the same sign\n adjust = Range.clip(adjust, -1, 1);\n // BNO055 positive for left turn\n float pwrl = p * (1 - adjust);\n float pwrr = p * (1 + adjust);\n\n float max = Math.max(Math.abs(pwrl), Math.abs(pwrr));\n if (max > 1f) {\n // scale to 1\n pwrl = pwrl / max;\n pwrr = pwrr / max;\n }\n setPower(pwrl,\n pwrr,\n dir);\n /*if (dir == TurnType.STRAFE) {\n long timeStamp = System.currentTimeMillis();\n if (timeStamp - logTimeStamp > 25) {\n RobotLog.i(\"Power left:\" + pwrl + \" right:\" + pwrr);\n logTimeStamp = timeStamp;\n }\n }*/\n }",
"private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }",
"public void setAllP(){\n\t\tAllP=(AllR%PerR==0)?(AllR/PerR):(AllR/PerR+1);\n\t}",
"public abstract Number calculateDirectValue(Parallax parallax);",
"public void computeFractal(){\n\t\tint deltaX =p5.getX()-p1.getX();\n\t\tint deltaY =p5.getY()- p1.getY();\n\t\tint x2= p1.getX()+ (deltaX/3);\n\t\tint y2= p1.getY()+ (deltaY/3);\n\t\tdouble x3=((p1.getX()+p5.getX())/2)+( Math.sqrt(3)*\n\t\t\t\t(p1.getY()-p5.getY()))/6;\n\t\tdouble y3=((p1.getY()+p5.getY())/2)+( Math.sqrt(3)*\n\t\t\t\t(p5.getX()-p1.getX()))/6;\n\t\tint x4= p1.getX()+((2*deltaX)/3);\n\t\tint y4= p1.getY()+((2*deltaY)/3);\n\t\tthis.p2= new Point(x2,y2);\n\t\tthis.p3= new Point((int)x3,(int)y3);\n\t\tthis.p4= new Point(x4,y4);\n\t}",
"public String getPressure() {\n\t\treturn pressure;\n\t}",
"public String getPressure() {\n\t\treturn pressure;\n\t}",
"private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }",
"private double[] normalize(double[] p) {\n double sum = 0;\n double[] output = new double[p.length];\n for (double i : p) {\n sum += i;\n }\n for (int i = 0; i < output.length; i++) {\n output[i] = p[i]/sum;\n }\n return output;\n }",
"double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}",
"protected final int calculateInterst1(int pr){\n\t\t return pr*10*1/100;\n\t }",
"public Double calcularPrecio() {\n double adicion = 0.0;\n\n switch (tipoAlimento) {\n case 'N':\n // Producto Natural\n adicion += 40;\n break;\n\n case 'C':\n // Producto con Conservantes\n adicion += 20;\n break;\n\n default:\n break;\n }\n\n // El peso tambien afecta el precio final del producto\n if (peso >= 0 && peso <= 9) {\n adicion += 6;\n }\n if (peso > 9 && peso <= 16) {\n adicion += 8;\n }\n if (peso > 16) {\n adicion += 20;\n }\n\n return precioBase + adicion;\n }",
"void computePrecisionAndRecall(int paraLikeThreshold, int paraK, int paraN, double paraMax, double paraBelta,\n\t\t\tdouble paraGama) {\n\n\t\t// System.out.println(\"the uTrRateInds is: \");\n\t\t// SimpleTool.printMatrix(dataModel.uTrRateInds);\n\t\t// System.out.println(\"the uTrRatings is : \");\n\t\t// SimpleTool.printMatrix(dataModel.uTrRatings);\n\t\t// System.out.println(\"the iTrRateInds is: \");\n\t\t// SimpleTool.printMatrix(dataModel.iTrRateInds);\n\t\t// System.out.println(\"the iTrRatings is : \");\n\t\t// SimpleTool.printMatrix(dataModel.iTrRatings);\n\t\t// System.out.println(\"the uTeRateInds is : \");\n\t\t// SimpleTool.printMatrix(dataModel.uTeRateInds);\n\t\t// System.out.println(Arrays.toString(dataModel.uTeDgr));\n\n\t\tint tempSucRecLen = 0;\n\t\tint tempRecLen = 0;\n\t\tint tempLikeLen = 0;\n\t\tint tempCount = 0;\n\t\tdouble tempNDCG = 0;\n\t\tfor (int i = 0; i < dataModel.userNum; i++) {\n\t\t\t// System.out.println(\"the user is \" + i + \" , the length is \" +\n\t\t\t// dataModel.uTeRateInds[i].length);\n\t\t\tint[] tempRecLists = recommendListForOneUser(i, paraLikeThreshold, paraK, paraN, paraBelta, paraGama);\n\t\t\t// System.out.println(\"the reclist is \" + Arrays.toString(tempRecLists));\n\t\t\tint[] tempLikeLists = likeListForOneUser(i, paraLikeThreshold);\n\t\t\t// System.out.println(\"the likelist is \" + Arrays.toString(tempLikeLists));\n\t\t\tint[] tempInterSection = SetOperator.interSection(tempRecLists, tempLikeLists);\n\n\t\t\t// System.out.println(\"User \" + i + \" recommend lists: \");\n\t\t\t// SimpleTool.printIntArray(tempRecLists);\n\t\t\tif (tempInterSection != null) {\n\t\t\t\ttempSucRecLen = tempInterSection.length;\n\t\t\t\ttempRecLen = tempRecLists.length;\n\t\t\t\ttempLikeLen = tempLikeLists.length;\n\t\t\t\tif (tempRecLen > 1e-6) {\n\t\t\t\t\tprecision += (tempSucRecLen + 0.0) / tempRecLen;\n\t\t\t\t\ttempNDCG = computeNDCG(i, tempRecLists, paraMax);\n\t\t\t\t\tNDCG += tempNDCG;\n\t\t\t\t} // Of if\n\t\t\t\tif (tempLikeLen > 1e-6) {\n\t\t\t\t\trecall += (tempSucRecLen + 0.0) / tempLikeLen;\n\t\t\t\t} // Of if\n\t\t\t} else {\n\t\t\t\ttempCount++;\n\t\t\t\tcontinue;// Of if\n\t\t\t}\n\n\t\t} // Of for i\n\t\t\t// System.out.println(\"the count is: \" + tempCount);\n\t\tprecision = precision / (dataModel.userNum - tempCount);\n\t\trecall = recall / (dataModel.userNum - tempCount);\n\t\tNDCG = NDCG / (dataModel.userNum - tempCount);\n\t}",
"private void calculatefundamentalFreq() {\n\t\tint count;\n\t\tfloat f0 = 0;\n\t\tSystem.out.println(\"pitches\");\n\t\tSystem.out.println(pitches);\n\t\tfor(count = 0; count < pitches.size(); count++)\n\t\t{\n\t\t\tf0 += pitches.get(count);\n\t\t}\n\t\tif(count != 0)\n\t\t\tfundamentalFreq = f0 / count;\n\t\telse\n\t\t\tfundamentalFreq = 0;\n\t}",
"private double calcuCMetric() {\n\t\treturn (p-1)/fcost;\n\t}",
"public void calculateProbabilities(){\n\t}",
"protected float computeProbs(int n)\n\t{\n\t\tfloat Cmi = 0;\n\t\t// Compute probabilities\n\t\tfor (int k = 0; k < bins; k++)\n\t\tfor (int l = 0; l < bins; l++)\n\t\t{\n\t\t float Pkl = Puv[k*bins+l];\n\t\t if (Pkl > 0)\n\t\t\t Cmi -= Pkl / n * Math.log(n * Pkl / (Pu[k] * Pv[l]));\n\t\t}\n\t\treturn Cmi;\n\t}",
"private void calcEfficiency() {\n \t\tdouble possiblePoints = 0;\n \t\tfor (int i = 0; i < fermentables.size(); i++) {\n \t\t\tFermentable m = ((Fermentable) fermentables.get(i));\n \t\t\tpossiblePoints += (m.getPppg() - 1) * m.getAmountAs(\"lb\")\n \t\t\t\t\t/ postBoilVol.getValueAs(\"gal\");\n \t\t}\n \t\tefficiency = (estOg - 1) / possiblePoints * 100;\n \t}",
"@java.lang.Override\n public double getPValue() {\n return pValue_;\n }",
"void update(float temp, float humidity, float pressure);",
"public void setP(Double p);",
"private static double getA(Point p_p1, Point p_p2, Point q_p1, Point q_p2){\n\t\tdouble a1, a2;\n\t\ta1 = q_p2.coordinate[0] - q_p1.coordinate[0] - \n\t\t\t p_p2.coordinate[0] + p_p1.coordinate[0];\t\t\n\t\ta2 = q_p2.coordinate[1] - q_p1.coordinate[1] - \n\t\t\t p_p2.coordinate[1] + p_p1.coordinate[1];\n\t\t\t\t\n\t\tdouble a = Math.pow(a1,2) + Math.pow(a2,2);\n\t\t\n\t\treturn a;\n\t}",
"public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}",
"private void calcDilution() {\n \t\t\tdouble dilutionFactor = dilVol.getValue() / postBoilVol.getValue();\n \t\t\tdilIbu = ibu / dilutionFactor;\n \t\t\tdilAlc = alcohol / dilutionFactor;\n \t\t\tdilOG = ((estOg - 1) / dilutionFactor) + 1;\n \t\t\tdilSrm = srm / dilutionFactor;\n \n \t\t}",
"double computeRecall(int[][] paraPredicionMatrix) {\n double tempRecall = 0.0;\n int tempTotal = 0;\n int tempAccurate = 0;\n for (int i = 0; i < paraPredicionMatrix.length; i++) {\n for (int j = 0; j < paraPredicionMatrix[i].length; j++) {\n if (formalContext.testingFormalContext[i][j] > 0) {\n tempTotal++;\n if (paraPredicionMatrix[i][j] == 1) {\n tempAccurate++;\n } // End if\n } // End if\n } // End for j\n } // End for i\n System.out.println(\"tempAccurate: \" + tempAccurate);\n System.out.println(\"tempTotal: \" + tempTotal);\n if (tempAccurate == 0) {\n return 0.0;\n } // End if\n tempRecall = (tempAccurate + 0.0) / tempTotal;\n return tempRecall;\n }",
"public double contagionProbability(Person p)\n\t{\n\t\tif(p.getAge()<=18)\n\t\t{\n\t\t\treturn con_18*p.contagionProbability();\n\t\t}\n\t\tif(p.getAge()>18 && p.getAge()<=55)\n\t\t{\n\t\t\treturn con_18_55*p.contagionProbability();\n\t\t}\n\t\treturn con_up55*p.contagionProbability();\n\t}",
"public void reviseMotorSpeed() {\n\t\tmHandler.removeMessages(EVAL_MOTOR_SPEED);\n\t\tlong starttime = System.currentTimeMillis();\n\n\t\t//Retrieve current orientation.\t\t\n\t\t\n\t\tmAzimuth = mStatus.getReadingField(AZIMUTH);\t\t\n\t\tmPitchDeg = mStatus.getReadingField(PITCH);\n\t\tmRollDeg = -mStatus.getReadingField(ROLL);\n\t\t\n\t\tdouble[] errors = new double[4];\n\t\tsynchronized (mAngleTarget) {\n\t\t\t//logArray(\"mAngleTarget\", mAngleTarget);\n\t\t\terrors[0] = mAngleTarget[0] - mRollDeg;\n\t\t\terrors[1] = mAngleTarget[1] - mPitchDeg;\n\t\t\terrors[2] = mAngleTarget[2] - mStatus.getGpsField(dALT);\n\t\t\terrors[3] = mAngleTarget[3] - mAzimuth;\n\t\t\t//logArray(\"errors\", errors);\n\t\t}\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tString errs = \"errors: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\terrs += errors[i] + \": \";\n\t\t}\n\t\t//Log.v(TAG, errs);\n\t\t//For azimuth, multiple possibilities exist for error, each equally valid; but only the error nearest zero makes practical sense.\n\t\tif (errors[3] > 180.0)\n\t\t\terrors[3] -= 360.0;\n\t\tif (errors[3] < -180.0)\n\t\t\terrors[3] += 360.0;\n\t\t\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t//Calculate proportional errors\n\t\t\tdouble err = errors[i];//mTarget[i] - mCurrent[i];\n\t\t\t\n\n\t\t\t//Calculate derivative errors.\n\t\t\tlong timeInterval = starttime - mLastUpdate;\n\t\t\tif (timeInterval != 0) {\n\t\t\t\tmErrors[i][2] = (err - mErrors[i][0]) * 1000.0 / timeInterval;\n\t\t\t} else {\n\t\t\t\tmErrors[i][2] = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Mark proportional error\n\t\t\tmErrors[i][0] = err;\n\t\t\t/*if (i == 2)\n\t\t\t\tLog.v(TAG, \"guid, dalt err is \" + err);*/\n\t\t\t//Update integral errors\n\t\t\tmErrors[i][1] -= mIntegralErrors[i][mIntegralIndex];\n\t\t\tmIntegralErrors[i][mIntegralIndex] = err;\n\t\t\tmErrors[i][1] += err;\n\t\t\tmIntegralIndex = ++mIntegralIndex % PIDREPS;\n\t\t\t\n\t\t\t//Calculate changes in output\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tmControlVars[i] += mErrors[i][j] * mGain[i][j];\n\t\t\t}\n\t\t}\n\t\tif (mGuidanceMode.get() == MANUAL) {\n\t\t\tsynchronized (mAngleTarget) {\n\t\t\t\tmControlVars[2] = mAngleTarget[2];\n\t\t\t}\n\t\t}\n\t\tmLastUpdate = starttime;\n\t\t\n\t\t// Constrain control vars:\n\t\tmControlVars[0] = constrainValue(mControlVars[0], -1, 1);\n\t\tmControlVars[1] = constrainValue(mControlVars[1], -1, 1);\n\t\tmControlVars[2] = constrainValue(mControlVars[2], 0, 1);\n\t\tmControlVars[3] = constrainValue(mControlVars[3], -2, 2);\n\t\t\n\t\t/*String vars = \"Control vars: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tvars += mControlVars[i] + \": \";\n\t\t}\n\t\tLog.v(TAG, vars);*/\n\t\t\n\t\tcontrolVarsToMotorSpeeds();\n\t\t\n\t\t//Send motor values to motors here:\n\t\tupdateMotors();\n\t\tupdateAngleTarget();\n\t\t//Log.v(TAG, \"motors: \" + mMotorSpeed[0] + \", \" + mMotorSpeed[1] + \", \" + mMotorSpeed[2] + \", \" + mMotorSpeed[3]);\n\t\t//Sleep a while\n\t\tlong timetonext = (1000 / PIDREPS) - (System.currentTimeMillis() - starttime);\n\t\t//Log.v(TAG, \"time to next: \" + timetonext);\n\t\tint currentMode = mGuidanceMode.get();\n\t\tif ((currentMode == MANUAL) || (currentMode == AUTOPILOT)) {\n\t\t\tif (timetonext > 0)\n\t\t\t\tmHandler.sendEmptyMessageDelayed(EVAL_MOTOR_SPEED, timetonext);\n\t\t\telse {\n\t\t\t\tLog.e(TAG, \"Guidance too slow\");\n\t\t\t\tmHandler.sendEmptyMessage(EVAL_MOTOR_SPEED);\n\t\t\t}\n\t\t}\n\t}",
"public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }",
"protected void doDeduction() {\n\n boolean narrowed= false;\n\n unit=false;\n isInconclusive=false;\n\n int newXL;\n int newYU;\n\n Variable x = null;\n Variable y = null;\n\n for(Variable var : csp.getVars()){\n if(var.getPosition() == unitSB.getX().getPosition()){\n x = var;\n } else if(var.getPosition() == unitSB.getY().getPosition()){\n y = var;\n }\n }\n\n int xU = x.getUpperDomainBound();\n int yL = y.getLowerDomainBound();\n\n newXL = yL + unitSB.getCright();\n newYU = xU - unitSB.getCright();\n\n if(newXL>x.getLowerDomainBound()){\n Variable newX = new Variable(newXL, xU);\n newX.setPosition(x.getPosition());\n changeVariable(newX);\n narrowed= true;\n }\n if (newYU< y.getUpperDomainBound()){\n Variable newY = new Variable(yL, newYU);\n newY.setPosition(y.getPosition());\n changeVariable(newY);\n narrowed =true;\n }\n\n if(narrowed){\n doAlgorithmA1();\n }else {\n doAlgorithmA3();\n }\n\n }",
"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 }",
"public void recalculateDistanceFunction()\r\n {\n findBoundaryGivenPhi();\r\n \r\n active.removeAllElements();\r\n\tfor(int i=0; i<pixelsWide; i++)\r\n\t\tfor(int j=0; j<pixelsHigh; j++)\r\n\t\t\t{\r\n if(!boundary.contains(new Int2d(i,j))) phi[i][j] = phiStart;\r\n //else System.out.println(\"Boundary point at i,j = \" + i + \", \" + j + \" with phi = \" + phi[i][j]);\r\n\t\t\t}\r\n \r\n //System.out.println(\"Building Initial Band\");\r\n\tbuildInitialBand(); \r\n \r\n //System.out.println(active.size());\r\n \r\n //System.out.println(\"Running Algorithm\");\r\n\twhile(active.size()>0)\r\n\t\t{\r\n\t\trunAlgorithmStep();\r\n\t\t}\r\n\t\r\n //System.out.println(\"Distance function calculated\");\r\n\t//maxPhi = findMaxPhi();\r\n }",
"Double getPreStress();",
"public static int ruolette(ArrayList<Integer> fitvalores, ArrayList<int[]> poblacion, int semilla){ \n int totalfitnes = 0;\n int totalfitnesnuevo = 0;\n int indtablero = 0;\n int semi=semilla;\n int tpoblacion=poblacion.size();\n int []nuevofitness = new int [fitvalores.size()];\n double []nproporcion = new double [fitvalores.size()];\n ArrayList <Double> proporcion = new ArrayList<>();//proporcion j la ruleta\n ArrayList <Double> ruleta = new ArrayList<>();\n //obtener el max fitnes\n for(int i=0;i<fitvalores.size();i++){ //total de fitnes\n totalfitnes=totalfitnes+fitvalores.get(i);\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el nuevo fittnes inverso\n double pro=(tpoblacion*tpoblacion-tpoblacion)-fitvalores.get(i);\n nuevofitness[i]= (int) pro;\n // System.out.println(\"nuevo fitnes\"+nuevofitness[i]);\n } \n for(int i=0;i<fitvalores.size();i++){ //total de fitnes nuevo o inverso\n totalfitnesnuevo=(totalfitnesnuevo+nuevofitness[i]);//para que los mejores casos usen mas espacio\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n double var1=nuevofitness[i];\n double var2=totalfitnesnuevo;\n double pro=var1/var2;\n nproporcion[i]=pro;\n //System.out.println(\"nueva proporcion \"+nproporcion[i]);\n } \n ruleta.add(nproporcion[0]);\n // System.out.println(\"primera propporniaso \"+nproporcion[0]);\n for(int i=1;i<fitvalores.size();i++){ //poner datos en la ruleta\n double var1=ruleta.get(i-1);\n double var2=nproporcion[i];\n ruleta.add(var1+var2);\n //System.out.println(\"ruleta \"+ruleta.get(i));\n }\n double num=randomadec(0,1,semi);\n // System.out.println(\"numero random dec \"+num); \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n // System.out.println(ruleta.get(i));\n if(num<ruleta.get(i)){\n indtablero=i;\n //System.out.println(\"se guardo el tablero \"+indtablero);\n break;\n }\n }\n return indtablero;//esto devuelve el indice del tablero ganador en la ruleta\n }",
"@Override\r\n\tpublic void calcPerimeter() {\n\t\t\r\n\t}"
] | [
"0.6852019",
"0.59573793",
"0.58488435",
"0.57221335",
"0.5502799",
"0.5423212",
"0.5421483",
"0.5368298",
"0.5364528",
"0.5317064",
"0.5302923",
"0.52697825",
"0.52583927",
"0.52432954",
"0.5241577",
"0.52110523",
"0.5201154",
"0.52007127",
"0.51822",
"0.51520014",
"0.5150311",
"0.51438165",
"0.5125403",
"0.51236546",
"0.5112747",
"0.5105768",
"0.5104258",
"0.51031405",
"0.5095699",
"0.5084118",
"0.50635785",
"0.50521094",
"0.5041536",
"0.50341237",
"0.49817738",
"0.49798125",
"0.4971257",
"0.4970625",
"0.49678743",
"0.49656287",
"0.49609038",
"0.4940267",
"0.49338225",
"0.4927768",
"0.49261573",
"0.49070057",
"0.49055377",
"0.49017075",
"0.48959896",
"0.48949155",
"0.4877214",
"0.48601508",
"0.4858263",
"0.48528695",
"0.4852759",
"0.48492607",
"0.4849184",
"0.48468348",
"0.48460007",
"0.4845742",
"0.48433277",
"0.48425987",
"0.4836412",
"0.4836412",
"0.4826814",
"0.48229447",
"0.4822839",
"0.4807535",
"0.4807148",
"0.48003858",
"0.47974205",
"0.47941083",
"0.47941083",
"0.4788849",
"0.47726935",
"0.47630036",
"0.47629255",
"0.47605404",
"0.4754997",
"0.47502142",
"0.47465694",
"0.47455004",
"0.474046",
"0.47319114",
"0.47290373",
"0.47243553",
"0.47229528",
"0.47224608",
"0.4720779",
"0.47201893",
"0.47157052",
"0.47131196",
"0.47129914",
"0.47081462",
"0.47054026",
"0.47014692",
"0.47013113",
"0.46984607",
"0.4694903",
"0.46940023"
] | 0.6948371 | 0 |
Retrieve the pressure of the neighboring cells | private void applyPressureCorrection(int i, int j, int k) {
double pEast = p[i + 1][j][k];
double pWest = p[i - 1][j][k];
double pNorth = p[i][j + 1][k];
double pSouth = p[i][j - 1][k];
double pUp = p[i][j][k + 1];
double pDown = p[i][j][k - 1];
double deltaZ = (depth[k + 1] - depth[k - 1]) / 2;
// Compute the pressure correction using the pressure correction equation
double pressureCorrection = (pEast - pWest) / (2 * deltaX) + (pNorth - pSouth) / (2 * deltaY)
+ (pUp - pDown) / (2 * deltaZ);
// Apply the pressure correction to the velocity field
u[i][j][k] -= (pressureCorrection * timeStep) / fluidDensity;
v[i][j][k] -= (pressureCorrection * timeStep) / fluidDensity;
w[i][j][k] -= (pressureCorrection * timeStep) / fluidDensity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calculateNextStepPressureCell(int i, int j, int k) {\n // Retrieve the velocity components and pressure of the neighboring cells\n double uEast = u[i + 1][j][k];\n double uWest = u[i - 1][j][k];\n double vNorth = v[i][j + 1][k];\n double vSouth = v[i][j - 1][k];\n double wUp = w[i][j][k + 1];\n double wDown = w[i][j][k - 1];\n // double pCenter = p[i][j][k]; // not used\n double pEast = p[i + 1][j][k];\n double pWest = p[i - 1][j][k];\n double pNorth = p[i][j + 1][k];\n double pSouth = p[i][j - 1][k];\n double pUp = p[i][j][k + 1];\n double pDown = p[i][j][k - 1];\n\n double currentDepth = depth[k];\n double deltaZPlus = (depth[k + 1] - currentDepth) / 2.0;\n double deltaZMinus = (currentDepth - depth[k - 1]) / 2.0;\n double deltaZ = deltaZPlus + deltaZMinus;\n\n // Compute the next-step pressure using the Poisson equation\n double next_p = ((pEast + pWest) / Math.pow(deltaX, 2) + (pNorth + pSouth) / Math.pow(deltaY, 2)\n + (pUp + pDown) / Math.pow(deltaZ, 2)\n - ((uEast - uWest) / deltaX + (vNorth - vSouth) / deltaY + (wUp - wDown) / deltaZ) / timeStep)\n / (2 / (Math.pow(deltaX, 2)) + 2 / (Math.pow(deltaY, 2)) + 2 / (Math.pow(deltaZ, 2)));\n\n // Update the pressure of the cell\n pNext[i][j][k] = next_p;\n }",
"double getPressure();",
"public float getPressure() {\n pressure = calculatePressure();\n return pressure;\n }",
"public double findTopPressure() {\n\t\tdouble constant = .5 *1.225* Math.pow(Controller.window.flowVelocity, 2) + Controller.window.atmoPressure;\n\t\tdouble neoConstantnotDone = .5 *1.225* Math.pow(Controller.window.flowVelocity, 2)\n\t\t\t\t* (findSurfaceArea(1, xs.length / 2) / getChordLength());\n\t\treturn constant - neoConstantnotDone;\n\t}",
"public float getPressure() {\n\t\treturn (float) getRawPressure() / 100f;\n\t}",
"public double getReadPressure(){\n return this.mFarm.getReadPressure();\n }",
"public float getPressure() {\n return pm.pen.getLevelValue(PLevel.Type.PRESSURE);\n }",
"public double getPressure() {\n\t\treturn 1000+(int)(Math.random()*1001);//模拟一个随机气压数\n\t}",
"public void applyPressureCorrection() {\n // Compute the pressure correction for the entire grid\n for (int i = 1; i < gridSizeX - 1; i++) {\n for (int j = 1; j < gridSizeY - 1; j++) {\n for (int k = 1; k < gridSizeZ - 1; k++) {\n if (!obstacle[i][j][k]) {\n applyPressureCorrection(i, j, k);\n }\n }\n }\n }\n }",
"private double readPressureSample() {\n return 6 * randomPressureSampleSimulator.nextDouble() * randomPressureSampleSimulator.nextDouble();\n }",
"private List<Integer> getCells(Edge e) {\r\n\t\treturn getCells(e.getMBR());\r\n\t}",
"protected final IntervalNode getP() {\n\treturn(this.p);\n }",
"@Override \n public double getTemperature() { \n return pin.getValue();\n }",
"public int getLatestPressure() {\n int pressure = 0;\n if (readings.size() > 0) {\n pressure = readings.get(readings.size() - 1).pressure;\n }\n return pressure;\n }",
"public static char getPressure(int x0, int y0) {\n char p = 0;\n for(int y =y0; y > 0; y--) {\n if(map[x0][y] == 0) {\n break;\n }\n p++;\n }\n return (char) (p / 2);\n }",
"public int trapRainWater(int[][] arr) {\n if(arr.length==0||arr[0].length==0) return 0;\n int n=arr.length;\n int m=arr[0].length;\n PriorityQueue<Integer> pq=new PriorityQueue<>((a,b)->{\n return arr[a/m][a%m]-arr[b/m][b%m];\n });\n boolean vis[][]=new boolean[n][m];\n int ans=0;\n int bound=0;\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n if(i==0||i==n-1||j==0||j==m-1){\n pq.add(i*m+j);\n vis[i][j]=true;\n }\n }\n }\n int dir[][]={{1,0},{-1,0},{0,1},{0,-1}};\n while(pq.size()>0){\n int idx=pq.remove();\n int r=idx/m;\n int c=idx%m;\n bound=Math.max(bound,arr[r][c]);\n if(arr[r][c]<bound) ans+=bound-arr[r][c];\n for(int d=0;d<4;d++){\n int x=r+dir[d][0];\n int y=c+dir[d][1];\n if(x>=0&&y>=0&&x<n&&y<m&& !vis[x][y]){\n vis[x][y]=true;\n pq.add(x*m+y);\n }\n }\n }\n return ans;\n }",
"protected Cell[] getNeighbours() {\r\n\t\treturn this.neighbours;\r\n\t}",
"@Override\n\tpublic int getPhysicalNumberOfCells() {\n\t\treturn 0;\n\t}",
"double getPValue();",
"public float getCabinPressure() {\n\t\treturn cabinPressure;\n\t}",
"public double getParcelTemperature() {\r\n return parcelTemperature;\r\n }",
"public Piece[][] getCells() {\n return cells;\n }",
"public String getPressure() {\n\t\treturn pressure;\n\t}",
"public String getPressure() {\n\t\treturn pressure;\n\t}",
"protected abstract double getCell(\r\n int row,\r\n int col);",
"public float energyAsParticleMoving() {\n return (-eps_nn * (nparticle - 1)) - (eps_nl * (nliquid + 1));\n }",
"public double findDensity() {\n\t\tdouble temp = 0.0;\n\t\tfor (int i = 0; i < neighbors.size(); i++) { //calculate desnity using point and k nearest neighbors\n\t\t\tPoint t = neighbors.get(i);\n\t\t\tArrayList<Double> pa = t.getList();\n\t\t\tArrayList<Double> pb = p.getList();\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j < pa.size(); j++) {\n\t\t\t\tsum += Math.pow(pa.get(j)- pb.get(j), 2); //use euclidian distance\n\t\t\t}\n\t\t\ttemp += Math.sqrt(sum);\n\t\t}\n\t\treturn ((neighbors.size())/temp);\n\t}",
"int getCellsCount();",
"public int getCell() {\n return this.cell;\n }",
"public int getP() {\r\n\t\treturn this.p;\r\n\t}",
"protected int[] getCellJustif() {\n return this.cellJustifStack.getLast();\n }",
"protected double calc_virial_pressure() {\n\t\tint i,j,iTot;\n\t\tdouble dr2,fij,rij,TotFdotR;\n\t\tdouble vp;\n\t\t\n\t\t/* Calculate sum(f.r): */\n\t\tTotFdotR = 0.0; iTot = 0;\n\t\tfor(i=0; i<n; i++) {\n\t\t\tfor(j=0; j<n; j++) {\n\t\t\t\tif ( i != j ) {\n\t\t\t\t\tdr2 = ij_sep2(i,j,c_lat,CUR_POS);\n\t\t\t\t\trij = Math.sqrt(dr2);\n\t\t\t\t\tfij = -12.0*4.0*Math.pow(diameter,12.0)/Math.pow(rij,13.0)\n\t\t\t\t\t+6.0*4.0*Math.pow(diameter,6.0)/Math.pow(rij,7.0);\n\t\t\t\t\tTotFdotR += fij*rij;\n\t\t\t\t\tiTot++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//TotFdotR /= (double)iTot;\n\t\tTotFdotR /= -2.0;\n\t\t\n\t\t/* Calc total virial: */\n\t\tvp = Math.sqrt(2.0)*calc_sys_density()/beta +\n\t\tMath.pow(diameter,3.0)*TotFdotR/(3.0*box[c_lat].x*box[c_lat].y*box[c_lat].z);\n\t\t\n\t\t/* check line */\n\t\t//System.out.printf(\" VPi %f %f %f\\n\",calc_density()/beta, TotFdotR/(3.0*box.x*box.y*box.z),vp);\n\t\t\n\t\treturn(vp);\n\t}",
"public float getSidePressure() {\n return pm.pen.getLevelValue(PLevel.Type.SIDE_PRESSURE);\n }",
"public int calculateMinimumHP(ArrayList<ArrayList<Integer>> grid) {\n\t\t\t\t int m =grid.size(), n = grid.get(0).size();\n\t\t\t\t int[][][] dp = new int[m+1][n+1][2];\n\t\t\t\t \n\t\t\t\t dp[0][0][0] = 0;\n\t\t\t\t dp[0][0][1] = 0;\n\t\t\t\t dp[0][1][0] = 1; // start with life\n\t\t\t\t dp[0][1][1] = 0; // balance life\n\t\t\t\t dp[1][0][0] = 1;\n\t\t\t\t dp[1][0][1] = 0;\n\t\t\t\t for(int i=2;i<dp[0].length;i++){\n\t\t\t\t\t dp[0][i][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[0][i][1] = 0;\n\t\t\t\t }\n\t\t\t\t for(int i=2;i<dp.length;i++){\n\t\t\t\t\t dp[i][0][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[i][0][1] = 0;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t for(int i=1;i<dp.length;i++){\n\t\t\t\t\t for(int j=1;j<dp[0].length;j++){\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(grid.get(i-1).get(j-1) < 0){\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0] - grid.get(i-1).get(j-1) - fromCell[1];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+ grid.get(i-1).get(j-1)>0?fromCell[1]+ grid.get(i-1).get(j-1):0;\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+grid.get(i-1).get(j-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 }\n\t\t\t\t return dp[m][n][0];\n\t\t\t\t \n\t\t\t }",
"public double getPerimiter(){return (2*height +2*width);}",
"private void calculateRecForces(){\n\t\t\n\t\t\n\t\tfor(Particle p : this){\n\t\t\t//Pg 183 Lee[05]\n\t\t\t//For each grid point that this particle has been interpolated to\n\t\t\tfor(int dx = -ASSIGNMENT_SCHEME_ORDER; dx < ASSIGNMENT_SCHEME_ORDER; dx++)\n\t\t\t{\n\t\t\t\tfor(int dy = -ASSIGNMENT_SCHEME_ORDER; dy < ASSIGNMENT_SCHEME_ORDER; dy++)\n\t\t\t\t{\n\t\t\t\t\tdouble uX = p.getPosition().re()/1.0 * CELL_SIDE_COUNT;//Scaled fractional coordinate\n\t\t\t\t\tdouble uY = p.getPosition().im()/1.0 * CELL_SIDE_COUNT;//Scaled fractional coordinate\n\t\t\t\t\tint particleCellX = (int)Math.round(p.getPosition().re()/1.0 * CELL_SIDE_COUNT);\n\t\t\t\t\tint particleCellY = (int)Math.round(p.getPosition().im()/1.0 * CELL_SIDE_COUNT);\n\t\t\t\t\tint thisX = particleCellX + dx;\n\t\t\t\t\tint thisY = particleCellY + dy;\n\t\t\t\t\tif(thisX >= 0 && thisY >= 0 && thisX < CELL_SIDE_COUNT && thisY < CELL_SIDE_COUNT)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble dQdx = p.getCharge() * M.evaluateDerivative(uX - thisX) * M.evaluate(uY - thisY);\n\t\t\t\t\t\tdouble dQdy = p.getCharge() * M.evaluate(uX - thisX) * M.evaluateDerivative(uY - thisY);\n\t\t\t\t\t\tp.addToForce(-dQdx * convolutedMatrix[thisX][thisY].re(), -dQdy * convolutedMatrix[thisX][thisY].re()); //FIXME .re()?\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Double getPreStress();",
"public Unit<Dimensionless> ppm() {return ppm;}",
"public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }",
"private Double getRefDP(Statement statement) throws Exception {\n\n\t\t// initialize reference pressure\n\t\tDouble refPressure = null;\n\n\t\t// get reference pressure from conversion table\n\t\tString sql = \"select ref_dp from xls_files where file_id = \" + spectrum_.getConversionTableID();\n\t\ttry (ResultSet resultSet = statement.executeQuery(sql)) {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\trefPressure = resultSet.getDouble(\"ref_dp\");\n\t\t\t}\n\t\t}\n\n\t\t// reference pressure is zero\n\t\tif ((refPressure == null) || (refPressure == 0.0)) {\n\n\t\t\t// get maximum pressure from ANA file\n\t\t\tsql = \"select max_dp from ana_flights where file_id = \" + spectrum_.getANAFileID() + \" order by max_dp desc\";\n\t\t\tstatement.setMaxRows(1);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery(sql)) {\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\trefPressure = resultSet.getDouble(\"max_dp\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tstatement.setMaxRows(0);\n\t\t}\n\n\t\t// return reference pressure\n\t\treturn refPressure;\n\t}",
"public double getIntersectRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }",
"public int[] getCurrentPieceGridPosition() {\n\t\treturn currentPieceGridPosition; \n\t}",
"public double getRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }",
"public void findBoundaryGivenPhi() {\n \r\n boundary.removeAllElements();\r\n \r\n \tfor(int i=0; i<pixelsWide-1; i++)\r\n \t\tfor(int j=0; j<pixelsHigh-1; j++) {\r\n Int2d pi = new Int2d(i,j);\r\n \r\n double sgnIJ = Math.signum( phi[i][j] );\r\n if( sgnIJ != Math.signum( phi[i+1][j] ) ) {\r\n if(!boundary.contains(pi)) boundary.add(pi);\r\n Int2d p2 = new Int2d(i+1,j);\r\n if(!boundary.contains(p2)) boundary.add(p2);\r\n }\r\n if( sgnIJ != Math.signum( phi[i][j+1] ) ) {\r\n if(!boundary.contains(pi)) boundary.add(pi);\r\n Int2d p2 = new Int2d(i,j+1);\r\n if(!boundary.contains(p2)) boundary.add(p2); \r\n }\r\n \r\n }\r\n \r\n \r\n }",
"private void getNeighbors() {\n\t\tRowIterator iterator = currentGen.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tint numNeighbors = 0;\n\t\t\t\tfor (int i = -1; i < 2; i++) { // loops through row above,\n\t\t\t\t\t\t\t\t\t\t\t\t// actual row, and row below\n\t\t\t\t\tfor (int j = -1; j < 2; j++) { // loops through column left,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// actual column, coloumn\n\t\t\t\t\t\t\t\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (!currentGen.elementAt(row + i, col + j).equals(\n\t\t\t\t\t\t\t\tfalse)) // element is alive, add 1 to neighbor\n\t\t\t\t\t\t\t\t\t\t// total\n\t\t\t\t\t\t\tnumNeighbors += 1;\n\t\t\t\t\t\telse { // element is not alive, add 1 to its total\n\t\t\t\t\t\t\t\t// number of neighbors\n\t\t\t\t\t\t\tInteger currentNeighbors = (Integer) neighbors\n\t\t\t\t\t\t\t\t\t.elementAt(row + i, col + j);\n\t\t\t\t\t\t\tneighbors.setValue(row + i, col + j,\n\t\t\t\t\t\t\t\t\tcurrentNeighbors + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbors.setValue(row, col, numNeighbors - 1); // -1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for counting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// itself as a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t}\n\t\t}\n\t}",
"public double[][] getPixelCoordinates(){\n return m_pdX;\n }",
"public Integer getPindex() {\n return pindex;\n }",
"public Integer getPindex() {\n return pindex;\n }",
"int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }",
"public Z getP() {\n return mP;\n }",
"protected byte[] getMeasuredFloorTemperature() {return null;}",
"public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }",
"public Peg getPeg(int n) { return pegs[n]; }",
"public MapCell[] getNeighbors(){\n\t\tMapCell[] neighbors = new MapCell[4];\n\t\tneighbors[0] = getNeighbor(\"east\");\n\t\tneighbors[1] = getNeighbor(\"north\");;\n\t\tneighbors[2] = getNeighbor(\"west\");\n\t\tneighbors[3] = getNeighbor(\"south\");\n\t\treturn neighbors;\n\t}",
"protected int getCellCount() {\n return this.cellCountStack.getLast();\n }",
"public float getSavedPressure() {\n return savedPen.getLevelValue(PLevel.Type.PRESSURE);\n }",
"private short computeLocationValue(short row, short column) {\n\t\treturn (short) (gridSize * row + column);\n\t}",
"public float getminP() {\n Reading minPressureReading = null;\n float minPressure = 0;\n if (readings.size() >= 1) {\n minPressure = readings.get(0).pressure;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).pressure < minPressure) {\n minPressure = readings.get(i).pressure;\n }\n }\n } else {\n minPressure = 0;\n }\n return minPressure;\n }",
"public List<Cell> getNeighbors() {\n return this.neighbors;\n }",
"private double getRecEnergy(){\n\t\tdebugMatrix = new double[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\tconvolutedMatrix = new Complex[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\t//initiliaze the whole convolutedMatrix array to zero\n\t\tfor(int x = 0; x < CELL_SIDE_COUNT; x++)\n\t\t{\n\t\t\tfor(int y = 0; y < CELL_SIDE_COUNT; y++)\n\t\t\t{\n\t\t\t\tconvolutedMatrix[x][y] = Complex.zero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Pg. 180 Lee[05]\n\t\tint indexTop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\t//Eq 19 Lee[05]\n\t\t//Also Eq 3.9 Essman[95]\n\t\tdouble sum = 0;\n\t\tint indtop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\tint midPoint = CELL_SIDE_COUNT / 2;\n\t\tif (midPoint << 1 < CELL_SIDE_COUNT) {\n\t\t\t++midPoint;\n\t\t}\n\t\t\n\t\tfor (int ind = 1; ind <= (indtop - 1); ++ind) {\n\t\t\t\n\t\t\tint y = ind / CELL_SIDE_COUNT + 1;\n\t\t\tint x = ind - (y - 1) * CELL_SIDE_COUNT + 1;\n\t\t\tint mXPrime = x - 1;\n\t\t\tif (x > midPoint) {\n\t\t\t\tmXPrime = x - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tint mYPrime = y - 1;\n\t\t\tif (y > midPoint) {\n\t\t\t\tmYPrime = y - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tdouble m = mXPrime * 1.0 + mYPrime * 1.0; //Was inverseMeshWidth - theory is reciprocal lattice vectors are for the entire cell U rather than one cell\n\t\t\tdouble mSquared = squared(mXPrime * 1.0) + squared(mYPrime * 1.0);\n\t\t\t\n\t\t\tdouble V = 1; //working in the unit mesh\n\t\t\tdouble bterm = M.bspmod[x]*M.bspmod[y];\n\t\t\tdouble eterm = Math.exp(-squared(Math.PI/ewaldCoefficient)*mSquared) / (bterm * Math.PI * V * mSquared);\n\t\t\t//Section 3.2.8 Lee[05]\n\t\t\tdouble inverseQPart = (squared(inverseFTQComplex[x-1][y-1].re())+squared(inverseFTQComplex[x-1][y-1].im())); //Lee[05]\n\t\t\tdouble thisContribution = eterm * inverseQPart;\n\t\t\tconvolutedMatrix[x-1][y-1] = inverseFTQComplex[x-1][y-1].scale(eterm); //Save this for the force calculation\n\t\t\tsum += thisContribution; //from the argument that F(Q(M))*F(Q(-M))=F-1(Q)^2\n\t\t}\n\t\treturn 0.5*sum;\n\t}",
"public double netForce() {\n\t\treturn this.findBotPressure() * Controller.window.width * findSurfaceArea(xs.length / 2, xs.length - 1)\n\t\t\t\t- this.findTopPressure() * Controller.window.width * findSurfaceArea(1, xs.length / 2);\n\t}",
"int getNeedPoints();",
"@Override\r\n protected long getN() {\r\n boolean handleOutOfMemoryError = false;\r\n long n = 0;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(false);\r\n for (int row = 0; row < nrows; row++) {\r\n for (int col = 0; col < ncols; col++) {\r\n double value = getCell(row, col);\r\n if (Double.isNaN(value) && Double.isFinite(value)) {\r\n if (value != noDataValue) {\r\n n++;\r\n }\r\n }\r\n }\r\n }\r\n return n;\r\n }",
"public Integer getPindex() {\n\t\treturn pindex;\n\t}",
"public int calcProjOnCntOverHRange(int nLeft, int nRightP1) {\n if (nLeft >= nRightP1) {\n return 0; // invalid range.\n }\n byte[] blistProjs = new byte[nRightP1 - nLeft]; // initial value is 0.\n ImageChops imgChops = ExprSeperator.extractConnectedPieces(this);\n for (int idx = 0; idx < imgChops.mlistChops.size(); idx ++) {\n ImageChop chopThis = imgChops.mlistChops.get(idx);\n for (int idx1 = Math.max(nLeft, chopThis.getLeftInOriginalImg());\n idx1 < Math.min(nRightP1, chopThis.getRightP1InOriginalImg()); idx1 ++) {\n blistProjs[idx1 - nLeft] = 1;\n }\n }\n\n int nSumOn = 0;\n for (int idx = 0; idx < nRightP1 - nLeft; idx ++) {\n nSumOn += blistProjs[idx];\n }\n return nSumOn;\n }",
"private double computeForcesWithNeighbourCells() {\r\n double potentialEnergy = 0;\r\n for (Cell[] cellPair: neighbourCells) { \r\n if (cellPair[1].firstMolecule == null) continue; // If cell2 is empty, skip\r\n \r\n for (Molecule m1 = cellPair[0].firstMolecule; m1 != null; m1 = m1.nextMoleculeInCell) {\r\n for (Molecule m2 = cellPair[1].firstMolecule; m2 != null; m2 = m2.nextMoleculeInCell) {\r\n double pe = computeForceBetweenMolecules(m1, m2);\r\n if (pe != 0) {\r\n potentialEnergy += pe;\r\n }\r\n }\r\n }\r\n }\r\n return potentialEnergy;\r\n }",
"public float getmaxP() {\n Reading maxPressureReading = null;\n float maxPressure = 0;\n if (readings.size() >= 1) {\n maxPressure = readings.get(0).pressure;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).pressure > maxPressure) {\n maxPressure = readings.get(i).pressure;\n }\n }\n } else {\n maxPressure = 0;\n }\n return maxPressure;\n }",
"protected byte[] getMeasuredRoomTemperature() {return null;}",
"private int cell(int j) \r\n\t{\n\t\tint i=1,sum=0;\r\n\t\tfor(i=1;i<=j;i++)\r\n\t\t{\r\n\t\t\tsum=sum+i;\r\n\t\t\t}\r\n\t\treturn sum;\r\n\t}",
"public List<Vector3D> getConvexCellsInsidePoints() {\n return convexCellsInsidePoints;\n }",
"public Array<Point> allOuterPoints() {\r\n \tArray<Point> innerPoints = innerPiece.getPoints();\r\n Array<Point> outerPoints = new Array<Point>();\r\n for (Point inner : innerPoints) {\r\n outerPoints.add(toOuterPoint(inner));\r\n }\r\n return outerPoints;\r\n }",
"public int trapRainWater(int[][] heightMap) {\n if (heightMap == null || heightMap.length <= 1 || heightMap[0].length <= 1) {\n return 0;\n }\n int m = heightMap.length;\n int n = heightMap[0].length;\n boolean[][] visited = new boolean[m][n];\n PriorityQueue<int[]> pq = new PriorityQueue<>((a, b) -> a[2] - b[2]);\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n if (i == 0 || j == 0 || i == m - 1 || j == n - 1) {\n visited[i][j] = true;\n pq.offer(new int[]{i, j, heightMap[i][j]});\n }\n }\n }\n int res = 0;\n int[][] dirs = new int[][]{{-1, 0}, {1, 0}, {0, 1}, {0, -1}};\n while (!pq.isEmpty()) {\n int[] cell = pq.poll();\n for (int[] dir : dirs) {\n int x = cell[0] + dir[0];\n int y = cell[1] + dir[1];\n if (x >= 0 && x < m && y >= 0 && y < n && !visited[x][y]) {\n visited[x][y] = true;\n res += Math.max(0, cell[2] - heightMap[x][y]);\n pq.offer(new int[]{x, y, Math.max(cell[2], heightMap[x][y])});\n }\n }\n }\n return res;\n }",
"public double getNeoplasticCellularityPercentage()\r\n \t{\r\n \t\treturn neoplasticCellularityPercentage;\r\n \t}",
"public int[] getNeighborRowIndex() {\n return neighborRowIndex;\n }",
"public int getCellsCount() {\n return cells_.size();\n }",
"public Cell get() {\n return ptSearcher.current();\n }",
"public int[] podium(){\n //TODO\n int [] pod = new int[3];\n int [] tab = Trier(this.scores);\n int n= this.scores.length;\n pod[2]= tab[n-1];\n pod[1]= tab[n-2];\n pod[0]= tab[n-3];\n return pod;\n \n \n }",
"public Cell[][] getGrid() {\n return grid;\n }",
"public abstract int getNeighboursNumber(int index);",
"public int calcProjOnCntOverVRange(int nTop, int nBottomP1) {\n if (nTop <= nBottomP1) {\n return 0; // invalid range.\n }\n byte[] blistProjs = new byte[nBottomP1 - nTop]; // initial value is 0.\n ImageChops imgChops = ExprSeperator.extractConnectedPieces(this);\n for (int idx = 0; idx < imgChops.mlistChops.size(); idx ++) {\n ImageChop chopThis = imgChops.mlistChops.get(idx);\n for (int idx1 = Math.max(nTop, chopThis.getTopInOriginalImg());\n idx1 < Math.min(nBottomP1, chopThis.getBottomP1InOriginalImg()); idx1 ++) {\n blistProjs[idx1 - nTop] = 1;\n }\n }\n\n int nSumOn = 0;\n for (int idx = 0; idx < nBottomP1 - nTop; idx ++) {\n nSumOn += blistProjs[idx - nTop];\n }\n return nSumOn;\n }",
"public float getProbCellSum() throws InvalidProbabilityRangeException {\r\n\t\t\tfloat sum = Float.NaN;\r\n\t\t\tif (this.cellList == null) {\r\n\t\t\t\treturn sum;\r\n\t\t\t}\r\n\t\t\tif (this.cellList.size() <= 0) {\r\n\t\t\t\treturn sum;\r\n\t\t\t}\r\n\t\t\tsum = 0.0f;\r\n\t\t\tfor (TempTableProbabilityCell cell : this.cellList) {\r\n\t\t\t\tsum = (float)sum + (float)cell.getProbabilityValue();\r\n\t\t\t}\r\n\t\t\treturn sum;\r\n\t\t}",
"@Override\n public double getQuick(int row, int column) {\n return base.getQuick(rowPivot[row], columnPivot[column]);\n }",
"public abstract Number calculateDirectValue(Parallax parallax);",
"int getUsedPoints();",
"int getUsedPoints();",
"int getUsedPoints();",
"public boolean getPressureSwitchValue() {\n return CompressorJNI.getPressureSwitch(m_pcm);\n }",
"public Integer getCellNum() {\n return cellNum;\n }",
"public IntegerProperty getTemp() {\n\t\treturn temperature;\n\t}",
"public int neighborCount(int row, int col) {//these are your current positions\n\t\tint neighborCell = 0;\n\t\t//array is zero based index\n\n\t\t//down one or row down one\n\t\tif(cellAt((row + 1) % rowCount, col)) //lets say our arrayCell is arrayCell(4,4)\n\t\t\tneighborCell++;\t\t\t\t\t\t// row here is your current cell(this is where you start and put your cell) and you add + 1 \n\t\t\t\t\t\t\t\t\t\t\t\t//lets say row is 1 then it is 1+1 = 2 \n\t\t\t\t\t\t\t\t\t\t\t\t//then 2 % 4(rowCount is 4) = 2\n\t\t\t\t\t\t\t\t\t\t\t\t//then your row is 2 and column 1\n\t\t\n\t\t//row up one\n\t\tif(cellAt((row + rowCount - 1) % rowCount , col))\n\t\t\tneighborCell++;\n\n\t\t//column right or column + 1\n\t\tif(cellAt(row, (col + 1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//column left or column -1\n\t\tif(cellAt(row,(col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//row up one and column right one\n\t\tif(cellAt((row + rowCount - 1) % rowCount,(col + 1)% colCount ))\n\t\t\tneighborCell++;\n\n\t\t//row down one and column right \n\t\tif(cellAt((row + 1) % rowCount,(col + 1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row down one and column left\n\t\tif(cellAt((row + 1) % rowCount,(col + colCount -1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row up one and column left\n\t\tif(cellAt((row + rowCount - 1) % rowCount, (col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\treturn neighborCell;\n\n\t}",
"private int getWestCell(Cell cell) {\n\t\tint cellNumber = cell.getNumber();\n\t\tif (cellNumber % getGridWidth() != 0) {\n\t\t\treturn (cellNumber - 1);\n\t\t} else {\n\t\t\tif (isToroidal()) {\n\t\t\t\treturn (cellNumber + getGridWidth() - 1);\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"int getCellStatus(int x, int y);",
"public int getParticles() {\r\n\t\treturn particles;\r\n\t}",
"public java.lang.Integer getGroundcnt() throws java.rmi.RemoteException;",
"public Cell getCellAt (int x, int y) {\n return grid[x-1][y-1];\n }",
"public abstract int getNumberOfLivingNeighbours(int x, int y);",
"private void equalizePressure() {\n for (int i = 0; i < 10; ++i) {\n HydraulicState hs = outputComponent.getHydroState();\n if (hs instanceof BlockedHydroState) { // we can't send anything\n break;\n } else {\n if (hs.getPressure() < getBottomPressure()) { // if our pressure is larger than the other one\n Water deltaWater = new Water(getWater().getTemperature(), Math.min((int)(3 * getWater().getParticlesPerKilo()), getWater().getParticleNr()));\n //System.out.println(\"C: Before: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n send(deltaWater); // send 3 kg of water\n getWater().remove(deltaWater.getParticleNr());\n //System.out.println(\"C: After: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n } else {\n // residual flow\n /*Water deltaWater = new Water(getWater().getTemperature(), new Kilograms(Math.min(0.01, getWaterMass())));\n send(deltaWater);\n getWater().remove(deltaWater.getParticleNr());*/\n }\n }\n } \n }",
"public TriangleElt3D[] getNeighbours() {\n\t\tint counter = 0;\n\t\tif (this.eltZero != null)\n\t\t\tcounter++;\n\t\tif (this.eltOne != null)\n\t\t\tcounter++;\n\t\tif (this.eltTwo != null)\n\t\t\tcounter++;\n\n\t\tTriangleElt3D[] neighbours = new TriangleElt3D[counter];\n\n\t\tcounter = 0;\n\t\tif (this.eltZero != null) {\n\t\t\tneighbours[counter] = this.eltZero;\n\t\t\tcounter++;\n\t\t}\n\t\tif (this.eltOne != null) {\n\t\t\tneighbours[counter] = this.eltOne;\n\t\t\tcounter++;\n\t\t}\n\t\tif (this.eltTwo != null) {\n\t\t\tneighbours[counter] = this.eltTwo;\n\t\t}\n\n\t\treturn neighbours;\n\t}",
"public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint = Float.NEGATIVE_INFINITY;\n\t\tfloat minYPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxYPoint = Float.NEGATIVE_INFINITY;\n\n\t\tfor (int i = 0; i < face.edges().size(); i++) {\n\n\t\t\tDCEL_Edge e = (DCEL_Edge) face.edges().get(i);\n\n\t\t\tArc2_Sweep arc = (Arc2_Sweep) e.reference;\n\n\t\t\t// Looking for most left located point of cell\n\t\t\tif (minXPoint > arc.minX().x) {\n\t\t\t\tminXPoint = arc.minX().x;\n\t\t\t}\n\t\t\t// Looking for most right located point of cell\n\t\t\tif (maxXPoint < arc.maxX().x) {\n\t\t\t\tmaxXPoint = arc.maxX().x;\n\t\t\t}\n\t\t\t// Looking for highest located point of cell\n\t\t\tif (minYPoint > arc.minY().y) {\n\t\t\t\tminYPoint = arc.minY().y;\n\t\t\t}\n\t\t\t// Looking for lowest located point of cell\n\t\t\tif (maxYPoint < arc.maxY().y) {\n\t\t\t\tmaxYPoint = arc.maxY().y;\n\t\t\t}\n\n\t\t}\n\n\t\tList<Float> boundings = new ArrayList<Float>();\n\t\tboundings.add(minXPoint);\n\t\tboundings.add(maxXPoint);\n\t\tboundings.add(minYPoint);\n\t\tboundings.add(maxYPoint);\n\t\treturn boundings;\n\n\t}",
"public Grid getGrid()\n {\n \treturn puzzle;\n }"
] | [
"0.6714329",
"0.65401137",
"0.60169154",
"0.59637314",
"0.5918938",
"0.57487506",
"0.57099104",
"0.5616567",
"0.5565777",
"0.55269367",
"0.54338926",
"0.5422532",
"0.5418471",
"0.5401668",
"0.538398",
"0.53274226",
"0.5323941",
"0.52972203",
"0.52963626",
"0.5291947",
"0.5274637",
"0.5272062",
"0.5255076",
"0.5255076",
"0.51975614",
"0.51932204",
"0.51826465",
"0.51787806",
"0.51441306",
"0.5142741",
"0.51142895",
"0.5093638",
"0.5087789",
"0.50840455",
"0.5071768",
"0.5066353",
"0.50609463",
"0.5060901",
"0.5060627",
"0.50552833",
"0.50431603",
"0.50423014",
"0.5037633",
"0.5034325",
"0.5032867",
"0.5010121",
"0.5009059",
"0.5009059",
"0.50046754",
"0.50046474",
"0.5003267",
"0.49994078",
"0.49921453",
"0.49866128",
"0.49821454",
"0.49816746",
"0.49799484",
"0.49738643",
"0.49698484",
"0.49629566",
"0.49526152",
"0.49445713",
"0.49421734",
"0.49235785",
"0.49198723",
"0.49194568",
"0.49137813",
"0.49097407",
"0.49041787",
"0.49020916",
"0.4901437",
"0.49004474",
"0.48952675",
"0.4883918",
"0.48827896",
"0.4881735",
"0.48775375",
"0.48672387",
"0.48663703",
"0.48663017",
"0.48656088",
"0.4864008",
"0.4859487",
"0.4848323",
"0.4848323",
"0.4848323",
"0.48472616",
"0.48424092",
"0.48342133",
"0.48328137",
"0.48298058",
"0.4821359",
"0.48170227",
"0.48169374",
"0.4816311",
"0.48099038",
"0.480852",
"0.4807313",
"0.48011875",
"0.4794718"
] | 0.49212432 | 64 |
Combine both Immegrints and residents and send a list. | public ArrayList<Piece> getAllPieceOfCell() {
ArrayList<Piece> overAllList = new ArrayList<>(mImmegrintsList);
overAllList.addAll(mResidentQ);
return overAllList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public List<Resident> getAllResidents();",
"com.google.protobuf.ByteString\n getResiduesBytes();",
"public ArrayList<Human> getResidents(){\n return this.residents;\n }",
"public List<String> actIppm(){\n List<String> script = new ArrayList<>();\n Iterator<Ippm> it = ippmList.iterator();\n while (it.hasNext()){\n Ippm temp = it.next();\n script.add(\"ACT IPPM:ANI=\"+temp.getAni()+\n \",PATHID=\"+temp.getPathId()+\n \",ISQOSPATH=\"+temp.getIsqosPath()+\n \",PMPRD=\"+temp.getPmPrd()+\n \",LOSTPKTDETECTSW=\"+temp.getLostPktDetectSw()+\"; {\"+rncName+\"}\");\n }\n return script;\n }",
"private void onGetAllIdentitet(Event<FintResource> responseEvent) {\n Identifikator batmanId = new Identifikator();\n batmanId.setIdentifikatorverdi(\"BATMAN\");\n Identitet batman = new Identitet();\n batman.setSystemId(batmanId);\n responseEvent.addData(FintResource\n .with(batman)\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.PERSONALRESSURS).forType(Personalressurs.class).field(\"ansattnummer\").value(\"100001\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATCAVE\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATMOBILE\").build()));\n\n Identifikator robinId = new Identifikator();\n robinId.setIdentifikatorverdi(\"ROBIN\");\n Identitet robin = new Identitet();\n robin.setSystemId(robinId);\n responseEvent.addData(FintResource\n .with(robin)\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.PERSONALRESSURS).forType(Personalressurs.class).field(\"ansattnummer\").value(\"100002\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATCAVE\").build()));\n }",
"@Override\n public void combineSim(ArrayList<Note> list) {\n }",
"public static void collectIndividualClients(List<? super Individual> cl) {\n cl.add(new Individual());\n cl.add(new Retiree());\n// Individual i = cl.get(0);\n }",
"<TEntite> void envoiReponseAvecDonnees(ArrayList<TEntite> listeEntites, HttpServletResponse reponse, int codeDeStatutHttp, String message) throws IOException;",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\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 residues_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residues_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String doMerge(MessageHeader header, Map<String, BundleEntryComponent> entriesByReference) throws JAXBException {\n\t\t\t\t\n\t\t PRPAIN201304UV02Type resultMsg = new PRPAIN201304UV02Type();\n\t\t resultMsg.setITSVersion(\"XML_1.0\");\n\t\t //String UUID.randomUUID().toString();\n\t\t resultMsg.setId(new II(config.getPixQueryOid(), uniqueId()));\n\t\t resultMsg.setCreationTime(new TS(Timestamp.now().toHL7())); // Now\n\t\t resultMsg.setProcessingCode(new CS(\"T\", null ,null));\n\t\t resultMsg.setProcessingModeCode(new CS(\"T\", null, null));\n\t\t resultMsg.setInteractionId(new II(\"2.16.840.1.113883.1.18\", \"PRPA_IN201304UV02\"));\n\t\t resultMsg.setAcceptAckCode(new CS(\"AL\", null, null));\n\t\t\n\t\t MCCIMT000100UV01Receiver receiver = new MCCIMT000100UV01Receiver();\n\t\t resultMsg.addReceiver(receiver);\n\t\t receiver.setTypeCode(CommunicationFunctionType.RCV);\n\t\t \n\t\t MCCIMT000100UV01Device receiverDevice = new MCCIMT000100UV01Device();\n\t\t receiver.setDevice(receiverDevice );\n\t\t receiverDevice.setClassCode(EntityClassDevice.DEV);\n\t\t receiverDevice.setDeterminerCode(EntityDeterminer.INSTANCE);\n\t\t receiverDevice.setId(Collections.singletonList(new II(config.getPixReceiverOid(), null)));\n\t\t\t \n\t\t MCCIMT000100UV01Sender sender = new MCCIMT000100UV01Sender();\n\t\t resultMsg.setSender(sender);\n\t\t sender.setTypeCode(CommunicationFunctionType.SND);\n\t\t \n\t\t MCCIMT000100UV01Device senderDevice = new MCCIMT000100UV01Device();\n\t\t sender.setDevice(senderDevice);\n\t\t senderDevice.setClassCode(EntityClassDevice.DEV);\n\t\t senderDevice.setDeterminerCode(EntityDeterminer.INSTANCE);\n\t\t senderDevice.setId(Collections.singletonList(new II(config.getPixMySenderOid(), null)));\n\t\t\t \t\t \n\t\t PRPAIN201304UV02MFMIMT700701UV01ControlActProcess controlActProcess = new PRPAIN201304UV02MFMIMT700701UV01ControlActProcess();\n\t\t resultMsg.setControlActProcess(controlActProcess);\n\t\t controlActProcess.setClassCode(ActClassControlAct.CACT); // ???\n\t\t controlActProcess.setMoodCode(XActMoodIntentEvent.EVN); // ???\n\t\t controlActProcess.setCode(new CD(\"PRPA_TE201304UV02\",\"2.16.840.1.113883.1.18\", null)); // ???\n\t\t\n\t\t \n\t\t \n\t\t \n\t\t\n\t\t for (BundleEntryComponent entry : entriesByReference.values()) {\n\t\t\t //BundleEntryComponent entry = entriesByReference.get(ref.getReference());\n\n\t \t\tHTTPVerb method = entry.getRequest().getMethod();\n\t\t \tif (method == null) throw new InvalidRequestException(\"HTTP verb missing in Bundle for Patient resource.\");\n\t\t \t\t\t \t\t\t \t\n\t\t \tPatient basePatient = (Patient) entry.getResource();\n\t\t \tPatient in = null;\n\t\t \t\n\t\t \tList<Patient> replaced = new ArrayList<Patient>();\n\t\t \t\n\t\t \tfor (PatientLinkComponent linked : basePatient.getLink()) {\t\t \t\t\n\t\t \t\tif (linked.getType().equals(LinkType.REPLACEDBY)) {\n\t\t \t\t\tReference other = linked.getOther();\t\n\t\t \t\t\tPatient otherPatient = findPatient(other, entriesByReference, basePatient);\n\t\t \t\t\tin = otherPatient;\n\t\t \t\t\treplaced.add(basePatient);\n\t\t \t\t} else if (linked.getType().equals(LinkType.REPLACES)) {\n\t\t \t\t\tReference other = linked.getOther();\t\n\t\t \t\t\tPatient otherPatient = findPatient(other, entriesByReference, basePatient);\n\t\t \t\t\tin = basePatient;\n\t\t \t\t\treplaced.add(otherPatient);\n\t\t \t\t}\n\t\t \t}\n\t\t \t\n\t\t \tif (in==null || replaced.isEmpty()) throw new InvalidRequestException(\"Cannot determine Patients to merge\");\n\t\t \t\t\t \t\t \t\t\t \t\n\t\t \tPRPAIN201304UV02MFMIMT700701UV01Subject1 subject = new PRPAIN201304UV02MFMIMT700701UV01Subject1();\n\t\t\t controlActProcess.addSubject(subject);\n\t\t\t subject.setTypeCode(\"SUBJ\");\n\t\t\t subject.setContextConductionInd(false); // ???\n\t\t\t \t\t\t \n\t\t\t PRPAIN201304UV02MFMIMT700701UV01RegistrationEvent registrationEvent = new PRPAIN201304UV02MFMIMT700701UV01RegistrationEvent();\n\t\t\t subject.setRegistrationEvent(registrationEvent);\n\t\t\t registrationEvent.setClassCode(ActClass.REG);\n\t\t\t registrationEvent.setMoodCode(ActMood.EVN);\n\t\t\t registrationEvent.setStatusCode(new CS(\"active\",null,null)); // ???\n\t\t\t \n\t\t\t List<MFMIMT700701UV01ReplacementOf> replacementOfList = new ArrayList<MFMIMT700701UV01ReplacementOf>();\n\t\t\t registrationEvent.setReplacementOf(replacementOfList);\n\t\t\t \n\t\t\t for (Patient replacedPatient : replaced) {\n\t\t\t MFMIMT700701UV01ReplacementOf replacementOf = new MFMIMT700701UV01ReplacementOf();\n\t\t\t MFMIMT700701UV01PriorRegistration priorRegistration = new MFMIMT700701UV01PriorRegistration();\n\t\t\t replacementOf.setPriorRegistration(priorRegistration );\n\t\t\t replacementOf.setTypeCode(\"RPLC\");\n\t\t\t priorRegistration.setClassCode(ActClass.REG);\n\t\t\t priorRegistration.setMoodCode(ActMood.EVN);\n\t\t\t priorRegistration.setStatusCode(new CS(\"obsolete\", null,null));\n\t\t\t MFMIMT700701UV01Subject3 subject1 = new MFMIMT700701UV01Subject3();\n\t\t\t\tpriorRegistration.setSubject1(subject1 );\n\t\t\t subject1.setTypeCode(ParticipationTargetSubject.SBJ);\n\n\t\t\t MFMIMT700701UV01PriorRegisteredRole priorRegisteredRole = new MFMIMT700701UV01PriorRegisteredRole();\n\t\t\t\tsubject1.setPriorRegisteredRole(priorRegisteredRole );\n\t\t\t\tpriorRegisteredRole.setClassCode(\"PAT\");\n\t\t\t\t\n\t\t\t\tfor (Identifier id : replacedPatient.getIdentifier()) {\n\t\t\t\t\tpriorRegisteredRole.addId(patientIdentifier(id));\n\t\t\t }\t\t\t\t\t\t\t\t\n\t\t\t \n\t\t\t replacementOfList.add(replacementOf);\n\t\t\t }\n\t\t\t \n\t\t\t \t\t\t \n\t\t\t PRPAIN201304UV02MFMIMT700701UV01Subject2 subject1 = new PRPAIN201304UV02MFMIMT700701UV01Subject2();\t\t\t \n\t\t\t registrationEvent.setSubject1(subject1);\n\t\t\t subject1.setTypeCode(ParticipationTargetSubject.SBJ);\n\t\t\t \t\t\t \n\t\t\t PRPAMT201303UV02Patient patient = new PRPAMT201303UV02Patient();\n\t\t\t patient.setClassCode(\"PAT\");\n\t\t\t subject1.setPatient(patient);\n\t\t\t \t\t\t \n\t\t\t PRPAMT201302UV02PatientStatusCode statusCode = new PRPAMT201302UV02PatientStatusCode(\"active\", null, null);\n\t\t\t patient.setStatusCode(statusCode); //???\n\t\t\t \t\t\t \n\t\t\t PRPAMT201303UV02Person patientPerson = new PRPAMT201303UV02Person();\n\t\t\t patientPerson.setClassCode(EntityClass.PSN);\n\t\t\t patientPerson.setDeterminerCode(EntityDeterminer.INSTANCE);\n\t\t\t patient.setPatientPerson(patientPerson );\n\t\t\t Organization managingOrg = getManagingOrganization(in, basePatient.getContained());\n\t\t\t if (managingOrg==null) managingOrg = getManagingOrganization(basePatient, basePatient.getContained());\n\t\t\t if (managingOrg==null) throw new InvalidRequestException(\"Cannot determine managingOrganization\");\n\t\t\t // TODO How is the correct mapping done?\n\t\t\t for (Identifier id : in.getIdentifier()) {\n\t\t\t \tPRPAMT201302UV02PatientId patientId = new PRPAMT201302UV02PatientId(getScheme(id.getSystem()),id.getValue());\n\t\t\t\t\tpatient.addId(patientId );\n\t\t\t }\n\t\t \t\n\t\t \tfor (HumanName name : in.getName()) {\t\t \t\t\t\t \t\n\t\t\t\t\tpatientPerson.addName(transform(name));\t\n\t\t \t}\n\t\t \t\n\t\t \t\n\t\t \tpatientPerson.setBirthTime(transform(in.getBirthDateElement()));\n\t\t \tif (in.hasGender()) {\n\t\t\t switch(in.getGender()) {\n\t\t\t case MALE:patientPerson.setAdministrativeGenderCode(new CE(\"M\",\"Male\",\"2.16.840.1.113883.12.1\"));break;\n\t\t\t case FEMALE:patientPerson.setAdministrativeGenderCode(new CE(\"F\",\"Female\",\"2.16.840.1.113883.12.1\"));break;\n\t\t\t case OTHER:patientPerson.setAdministrativeGenderCode(new CE(\"A\",\"Ambiguous\",\"2.16.840.1.113883.12.1\"));break;\n\t\t\t case UNKNOWN:patientPerson.setAdministrativeGenderCode(new CE(\"U\",\"Unknown\",\"2.16.840.1.113883.12.1\"));break;\n\t\t\t }\n\t\t \t}\n\t\t if (in.hasAddress()) patientPerson.setAddr(new ArrayList<AD>());\n\t\t for (Address address : in.getAddress()) {\n\t\t\t\t\tpatientPerson.addAddr(transform(address));\n\t\t }\n\t\t \t\n\t\t for (ContactPoint contactPoint : in.getTelecom()) { \n\t\t\t\t\tpatientPerson.addTelecom(transform(contactPoint));\n\t\t }\n\t\t \n\t\t if (in.hasDeceasedBooleanType()) {\n\t\t patientPerson.setDeceasedInd(new BL(in.getDeceasedBooleanType().getValue()));\n\t\t }\n\t\t if (in.hasDeceasedDateTimeType()) {\n\t\t \tpatientPerson.setDeceasedTime(transform(in.getDeceasedDateTimeType()));\n\t\t }\n\t\t if (in.hasMultipleBirthBooleanType()) {\n\t\t \tpatientPerson.setMultipleBirthInd(new BL(in.getMultipleBirthBooleanType().getValue()));\n\t\t }\n\t\t if (in.hasMultipleBirthIntegerType()) {\n\t\t \tpatientPerson.setMultipleBirthOrderNumber(new INT(in.getMultipleBirthIntegerType().getValue()));\n\t\t }\n\t\t if (in.hasMaritalStatus()) {\n\t\t \tpatientPerson.setMaritalStatusCode(transform(in.getMaritalStatus()));\n\t\t }\n\t\t if (in.hasCommunication()) {\n\t\t \tfor (PatientCommunicationComponent pcc : in.getCommunication()) {\t\t \t\t\n\t\t \t\tPRPAMT201303UV02LanguageCommunication languageCommunication = new PRPAMT201303UV02LanguageCommunication();\n\t\t \t\tlanguageCommunication.setLanguageCode(transform(pcc.getLanguage()));\n\t\t \t\tif (pcc.hasPreferred()) languageCommunication.setPreferenceInd(new BL(pcc.getPreferred()));\n\t\t\t\t\t\tpatientPerson.addLanguageCommunication(languageCommunication);\n\t\t \t}\n\t\t }\n\t \t\t\n\t\t \tMFMIMT700701UV01Custodian custodian = new MFMIMT700701UV01Custodian();\n\t\t\t\tregistrationEvent.setCustodian(custodian );\n\t\t\t\tcustodian.setTypeCode(ParticipationType.CST);\n\t\t\t\t\n\t\t\t\tCOCTMT090003UV01AssignedEntity assignedEntity = new COCTMT090003UV01AssignedEntity();\n\t\t\t\tcustodian.setAssignedEntity(assignedEntity);\n\t\t\t\tassignedEntity.setClassCode(RoleClassAssignedEntity.ASSIGNED);\n\t\t\t\t\n\t\t\t\tList<II> custIds = new ArrayList<II>();\t\t\t \t\t\t \n\t\t\t custIds.add(new II(getScheme(config.getCustodianOid()), null));\n\t\t\t\t\n\t\t\t\tassignedEntity.setId(custIds);\n\t\t\t\t//assignedEntity.setId(orgIds);\n\t\t\t\t\n\t\t\t\tCOCTMT090003UV01Organization assignedOrganization = new COCTMT090003UV01Organization();\n\t\t\t\tassignedEntity.setAssignedOrganization(assignedOrganization );\n\t\t\t\tassignedOrganization.setClassCode(EntityClassOrganization.ORG);\n\t\t\t\tassignedOrganization.setDeterminerCode(EntityDeterminer.INSTANCE);\n\t\t\t\tif (managingOrg.hasName()) {\t\n\t\t\t\t\tON name = new ON();\n\t\t\t\t\tname.setMixed(Collections.singletonList(managingOrg.getName()));\n\t\t\t\t assignedOrganization.setName(Collections.singletonList(name));\n\t\t\t\t}\n\t \t}\n\t \n\t \n\t ByteArrayOutputStream out = new ByteArrayOutputStream();\t \n\t HL7V3Transformer.marshallMessage(PRPAIN201304UV02Type.class, out, resultMsg);\n\t System.out.println(\"POST CONVERT\");\n\t String outArray = new String(out.toByteArray()); \n\t System.out.println(outArray);\n\t return outArray;\n\t}",
"public void addRegisseure( List<Person> listRegisseure ) {\n\t\tthis.listRegisseure.addAll( listRegisseure );\n\t}",
"@POST\n @Path(UrlConstant.ADDRES_URL)\n @Consumes(UrlConstant.APPLICATION_TYPE)\n @Produces(MediaType.APPLICATION_JSON)\n public JSONObject addAllResPool(@Context HttpServletRequest context,\n @QueryParam(ParamConstant.PARAM_TENANTID) String tenantId,\n @QueryParam(ParamConstant.PARAM_VIMID) String vimId) throws ServiceException {\n JSONObject json = RequestUtil.getAllJsonRequestBody(context);\n LOGGER.warn(\"ResOperateRoa::vimId :{}\", vimId);\n\n try {\n resOperateService.addIRes(tenantId, vimId, json);\n resOperateService.sendMsgMonitor(\"create\", vimId);\n return RoaResponseUtil.add(HttpConstant.OK_CODE);\n } catch(ServiceException se) {\n LOGGER.error(\"ResOperateRoa::addAllResPool error:{}\" + se);\n return ResponseUtil.genHttpResponse(HttpConstant.ERROR_CODE, se.getMessage());\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Individuo Recombinar(Individuo padre, Individuo madre) {\n Individuo hijo = new Individuo(padre.getCAMINOS());\r\n Individuo hijo2 = new Individuo(madre.getCAMINOS());\r\n for (int i = 0; i < padre.getEntradas_individuo().size(); i++) {\r\n if (i < padre.getCAMINOS() / 2) {\r\n Entradas entrada_1 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_1.setValores((ArrayList<Integer>) padre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_1.setEntradas((ArrayList<String>) padre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_1.setCamino_cubierto(padre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n Entradas entrada_2 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_2.setValores((ArrayList<Integer>) madre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_2.setEntradas((ArrayList<String>) madre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_2.setCamino_cubierto(madre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n hijo.getEntradas_individuo().add(entrada_1); \r\n hijo2.getEntradas_individuo().add(entrada_2);\r\n } else {\r\n Entradas entrada_1 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_1.setValores((ArrayList<Integer>) madre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_1.setEntradas((ArrayList<String>) madre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_1.setCamino_cubierto(madre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n Entradas entrada_2 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_2.setValores((ArrayList<Integer>) padre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_2.setEntradas((ArrayList<String>) padre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_2.setCamino_cubierto(padre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n hijo.getEntradas_individuo().add(entrada_1); \r\n hijo2.getEntradas_individuo().add(entrada_2);\r\n }\r\n }\r\n hijo.caminos_posibles = padre.caminos_posibles;\r\n hijo.caminos_cubiertos = padre.caminos_cubiertos;\r\n hijo2.caminos_posibles = madre.caminos_posibles;\r\n hijo2.caminos_cubiertos = madre.caminos_cubiertos;\r\n Document doc_copy_1 = (Document) this.doc.cloneNode(true);\r\n Document doc_copy_2 = (Document) this.doc.cloneNode(true);\r\n //Mutar(hijo);\r\n //Mutar(hijo2);\r\n hijo.EvaluarIndividuo(doc_copy_1);\r\n hijo2.EvaluarIndividuo(doc_copy_2);\r\n individuos.add(hijo);\r\n individuos.add(hijo2);\r\n if(hijo.getEvaluacion() > hijo2.getEvaluacion())\r\n {\r\n return hijo;\r\n }\r\n else\r\n {\r\n return hijo2;\r\n }\r\n }",
"private synchronized void addResultToMultiList() {\n\t addObjectToMultiList(resultArrayList);\r\n\t }",
"public List<Instruccion> emite(List<Instruccion> cod1, Instruccion cod2) {\r\n\t\t\tcod1.add(cod2);\r\n\t\t\treturn cod1;\r\n\t}",
"private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void merge(Person p){\n \n phoneNums.addAll(p.getList());\n }",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"public Set<Tuple<Vec3i, PartSlot>> multipartTransConnections();",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\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 residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"protected Object[] getList(int eventTag, int otherRegionalID)\n {\n Object[] array = null;\n if (otherRegionalID == -1)\n {\n System.out.println(super.get_name() +\n \".getList(): Error - destination id = \" + otherRegionalID);\n return array;\n }\n\n Integer id = new Integer( super.get_id() );\n super.send(super.output, 0.0, eventTag,\n new IO_data(id, Link.DEFAULT_MTU, otherRegionalID) );\n\n // waiting for a response from the regional GIS\n Sim_type_p tag = new Sim_type_p(eventTag);\n\n // only look for this type of ack\n Sim_event ev = new Sim_event();\n super.sim_get_next(tag, ev);\n\n try\n {\n // NOTE: make sure the receiver and sender expecting the same\n // type of object.\n List list = (List) ev.get_data();\n if (list != null) {\n array = list.toArray();\n }\n }\n catch (Exception e)\n {\n array = null;\n System.out.println(super.get_name()+\".getList(): Exception error.\");\n }\n\n return array;\n }",
"public void deliverResult(ArrayList<Recept> data) {\n recepts = data;\n super.deliverResult(recepts);\n }",
"public void agregarPedidos(List<PedidoIndividual> pedidos) throws QRocksException;",
"public void getAllDataRelatedToMobility(HttpServletRequest req, HttpServletResponse resp,\n UserUcc userUcc, MobilityChoiceUcc mobilityChoiceUcc, OrganisationUcc organisationUcc,\n MobilityDocumentUcc mobilityDocumentUcc, MobilityUcc mobilityUcc,\n MobilityCancellationUcc mobilityCancellationUcc) {\n try {\n int currentUserId = (int) IhmUserServlet.getCurrentUser(req);\n UserDto currentUser = userUcc.findDto(currentUserId);\n\n /* User est connecté */\n if (currentUser != null) {\n Map<String, Object> data = new HashMap<>();\n\n /* Get the mobility choice */\n int idMobilityChoice = Integer.parseInt(req.getParameter(\"idMobility\"));\n MobilityChoiceDto mobilityChoiceDto = mobilityChoiceUcc.findDto(idMobilityChoice);\n data.put(\"mobilityChoice\", mobilityChoiceDto);\n\n /* Get the mobility */\n MobilityDto mobilityDto = mobilityUcc.findDto(idMobilityChoice);\n data.put(\"mobility\", mobilityDto);\n\n /* Get the student */\n if (currentUser.getTypeUser().equals(\"S\")) {\n data.put(\"user\", currentUser);\n } else {\n data.put(\"user\", userUcc.findDto(mobilityChoiceDto.getIdUser()));\n }\n\n /* Get the partner */\n if (mobilityChoiceDto.getPartner() != null && mobilityChoiceDto.getPartner() != 0) {\n data.put(\"org\", organisationUcc.findDto(mobilityChoiceDto.getPartner()));\n }\n\n /* Get the docs */\n List<MobilityDocumentDto> mobilityDocumentDtos =\n mobilityDocumentUcc.findAllDtosById(idMobilityChoice, \"idMobilityChoice\");\n data.put(\"docs\", mobilityDocumentDtos);\n\n\n /* Get the cancelation */\n data.put(\"cancelation\",\n mobilityCancellationUcc.findAllDtosById(idMobilityChoice, \"idMobilityChoice\"));\n\n String json = new Genson().serialize(data);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n\n }\n\n } catch (IOException exp) {\n exp.printStackTrace();\n } catch (InternalServerException exp1) {\n exp1.printStackTrace();\n } catch (IdNotFoundException exp2) {\n exp2.printStackTrace();\n } catch (TransactionErrorException exp3) {\n exp3.printStackTrace();\n }\n }",
"private void onGetAllRettighet(Event<FintResource> responseEvent) {\n Identifikator batcaveId = new Identifikator();\n batcaveId.setIdentifikatorverdi(\"BATCAVE\");\n Rettighet batcave = new Rettighet();\n batcave.setSystemId(batcaveId);\n batcave.setNavn(\"Batcave\");\n batcave.setKode(\"BAT-002\");\n batcave.setBeskrivelse(\"Grants access to the secret cave\");\n responseEvent.addData(FintResource\n .with(batcave)\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"BATMAN\").build())\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"ROBIN\").build())\n );\n\n Identifikator batmobileId = new Identifikator();\n batmobileId.setIdentifikatorverdi(\"BATMOBILE\");\n Rettighet batmobile = new Rettighet();\n batmobile.setSystemId(batmobileId);\n batmobile.setKode(\"BAT-001\");\n batmobile.setNavn(\"Batmobile\");\n batmobile.setBeskrivelse(\"Grants access to driving the ultimate vehicle\");\n responseEvent.addData(FintResource.with(batmobile)\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"BATMAN\").build())\n );\n }",
"@Override\n\tpublic List<Resident> getResidentList() {\n\t\tQuery query = getSession().createQuery(\"select residents from RESIDENT_HMS residents\");\n\t\tList<Resident> residentlist=query.list();\n\t\treturn residentlist;\n\t}",
"private void mergeFriendlistRes(FriendList.Rsp value) {\n if (rspCase_ == 10 &&\n rsp_ != FriendList.Rsp.getDefaultInstance()) {\n rsp_ = FriendList.Rsp.newBuilder((FriendList.Rsp) rsp_)\n .mergeFrom(value).buildPartial();\n } else {\n rsp_ = value;\n }\n rspCase_ = 10;\n }",
"public List<EntradaDeMaterial> buscarEntradasDisponibles();",
"java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCResult> \n getReaultList();",
"public void getRelationsComplete(Integer result, ArrayList<Friend> newFriends);",
"public List<Atom> mergeComplementaryProvRelAtoms(List<Atom> discarded){\r\n\t\tList<Atom> body = getBody();\r\n\t\t//\t\tboolean someMerged = false;\r\n\t\tList<Atom> ret = new ArrayList<Atom>();\r\n\r\n\t\tfor(int i = 0; i < body.size(); ){ \r\n\t\t\tAtom a = body.get(i);\r\n\t\t\tboolean merged = false;\r\n\t\t\tfor(int j = i+1; j < body.size(); ){\r\n\t\t\t\tAtom b = body.get(j);\r\n\t\t\t\tAtom mergedAtom = mergeProvRelAtoms(a, b);\r\n\t\t\t\tif(mergedAtom != null){\r\n\t\t\t\t\t//\t\t\t\t\tbody.add(mergedAtom);\r\n\t\t\t\t\tdiscarded.add(body.get(i));\r\n\t\t\t\t\tdiscarded.add(body.get(j));\r\n\t\t\t\t\tbody.set(i, mergedAtom);\r\n\t\t\t\t\tbody.remove(j);\r\n\t\t\t\t\tret.add(mergedAtom);\r\n\t\t\t\t\t//\t\t\t\t\tbody.remove(i);\r\n\t\t\t\t\tmerged = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!merged){\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t//\t\t\tsomeMerged = someMerged || merged;\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"public ArrayList<String> mostraResultats(){\n ArrayList<String> tauleta = new ArrayList<>();\n for (int j=0; j<res.getClients().size(); j++) {\n for (int k=0; k<res.getClients().get(j).getAssigs().size(); k++) {\n String aux = \"\";\n for (int i = 0; i < res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().size(); i++) {\n aux += res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().get(i).getNom() + \"\\t\";\n }\n aux += \" -> \" + res.getClients().get(j).getAssigs().get(k).getConsequent().getNom();\n tauleta.add(aux);\n }\n }\n return tauleta;\n }",
"public List<String> deaIppm(){\n List<String> script = new ArrayList<>();;\n Iterator<Ippm> it = ippmList.iterator();\n while (it.hasNext()){\n Ippm temp = it.next();\n script.add( \"DEA IPPM: ANI=\"+temp.getAni()+\n \",PATHID=\"+temp.getPathId() +\"; {\"+rncName+\"}\");\n \n \n }\n \n return script;\n }",
"public ArrayList<Integer> makeIndividual();",
"private void sendInfo() {\n Log.v(TAG, \"sendInfo() contentListSize \"+this.contentList.size()+\" interestListSize \"+this.interestList.size());\n\n D2DAddContentNotificationEvent addContentEvent = new D2DAddContentNotificationEvent(false);\n addContentEvent.contentList = this.contentList;\n this.sendEvent(addContentEvent);\n\n D2DAddInterestNotificationEvent addInterestEvent = new D2DAddInterestNotificationEvent(false);\n addInterestEvent.interestList = this.interestList;\n this.sendEvent(addInterestEvent);\n }",
"public Set<Tuple<Vec3i, PartSlot>> multipartCisConnections();",
"@Override\n\tprotected ErrorCode mapMyMessage(Message msg) {\n\t\t\t\t\t\n\t\tint newECRs = 0;\n\t\tint totalRepPatientResult;\n\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\"))\n\t\t\ttotalRepPatientResult = ((ca.uhn.hl7v2.model.v231.message.ORU_R01)msg).getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTIReps();\n\t\telse\n\t\t\ttotalRepPatientResult = ((ca.uhn.hl7v2.model.v251.message.ORU_R01)msg).getPATIENT_RESULTReps();\n\t\t\t\n\t\tfor (int i=0; i<totalRepPatientResult; i++) {\n\t\t\t// Create a new empty ECR JSON.\n\t\t\tJSONObject ecr_json = new JSONObject();\n\t\t\t\n\t\t\t// Set sending application.\n\t\t\tint res = getMyParser().map_provider_from_appfac ((Object) msg, ecr_json);\n\t\t\tif (res != 0) {\n\t\t\t\treturn ErrorCode.MSH;\n\t\t\t}\n\n\t\t\t// Patient specific information\n\t\t\tObject patient;\n\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\tORU_R01_PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI patient_result = ((ca.uhn.hl7v2.model.v231.message.ORU_R01)msg).getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI(i);\n\t\t\t\tpatient = patient_result.getPIDPD1NK1NTEPV1PV2();\n\t\t\t} else {\n\t\t\t\tORU_R01_PATIENT_RESULT patient_result = ((ca.uhn.hl7v2.model.v251.message.ORU_R01)msg).getPATIENT_RESULT(i);\n\t\t\t\tpatient = patient_result.getPATIENT();\n\t\t\t}\n\t\t\t\n\t\t\tint result = getMyParser().map_patient (patient, ecr_json);\n\t\t\tif (result == 0) {\n\t\t\t\tnewECRs++;\n\t\t\t} else {\n\t\t\t\t// return ErrorCode.PID;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// We should have the patient populated.\n\t\t\tJSONObject patient_json;\n\t\t\tif (ecr_json.isNull(\"Patient\")) {\n\t\t\t\t// This means the HL7v2 message has no patient demographic information.\n\t\t\t\t// This shouldn't happen. But, anything can happen in the real world. So,\n\t\t\t\t// we don't stop here. We are moving on.\n\t\t\t\tpatient_json = new JSONObject();\n\t\t\t\tecr_json.put(\"Patient\", patient_json);\n\t\t\t} else {\n\t\t\t\tpatient_json = ecr_json.getJSONObject(\"Patient\");\n\t\t\t}\n\n\t\t\t// ORC/OBR Parsing\n\t\t\tJSONArray laborders_json = new JSONArray();\n\t\t\t\n\t\t\t// This is a new JSON Array object. Put it in the patient section.\n\t\t\tpatient_json.put(\"Lab_Order_Code\", laborders_json);\n\n\t\t\tint totalOrderObs;\n\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\tORU_R01_PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI patient_result = ((ca.uhn.hl7v2.model.v231.message.ORU_R01)msg).getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI(i);\n\t\t\t\ttotalOrderObs = patient_result.getORCOBRNTEOBXNTECTIReps();\n\t\t\t} else {\n\t\t\t\tORU_R01_PATIENT_RESULT patient_result = ((ca.uhn.hl7v2.model.v251.message.ORU_R01)msg).getPATIENT_RESULT(i);\n\t\t\t\ttotalOrderObs = patient_result.getORDER_OBSERVATIONReps();\n\t\t\t}\n\t\t\tfor (int j=0; j<totalOrderObs; j++) {\n\t\t\t\tObject orderObs;\n\t\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\t\tORU_R01_PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI patient_result = ((ca.uhn.hl7v2.model.v231.message.ORU_R01)msg).getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI(i);\n\t\t\t\t\torderObs = patient_result.getORCOBRNTEOBXNTECTI(j);\n\t\t\t\t} else {\n\t\t\t\t\tORU_R01_PATIENT_RESULT patient_result = ((ca.uhn.hl7v2.model.v251.message.ORU_R01)msg).getPATIENT_RESULT(i);\n\t\t\t\t\torderObs = patient_result.getORDER_OBSERVATION(j);\n\t\t\t\t}\n\n\t\t\t\tJSONObject laborder_json = getMyParser().map_order_observation (orderObs);\n\t\t\t\tif (laborder_json == null) {\n\t\t\t\t\treturn ErrorCode.ORDER_OBSERVATION;\n\t\t\t\t}\n\t\t\t\tlaborders_json.put(laborder_json);\n\t\t\t\t\n\t\t\t\t// We add lab results to lab order.\n\t\t\t\tJSONArray labresults_json = new JSONArray();\n\t\t\t\tlaborder_json.put(\"Laboratory_Results\", labresults_json);\n\t\t\t\t\n\t\t\t\tint totalObservations;\n\t\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\t\ttotalObservations = ((ORU_R01_ORCOBRNTEOBXNTECTI)orderObs).getOBXNTEReps();\n\t\t\t\t} else {\n\t\t\t\t\ttotalObservations = ((ORU_R01_ORDER_OBSERVATION)orderObs).getOBSERVATIONReps();\n\t\t\t\t}\n\t\t\t\tfor (int k=0; k<totalObservations; k++) {\n\t\t\t\t\tObject obsResult;\n\t\t\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\t\t\tobsResult = ((ORU_R01_ORCOBRNTEOBXNTECTI)orderObs).getOBXNTE(k).getOBX();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tobsResult = ((ORU_R01_ORDER_OBSERVATION)orderObs).getOBSERVATION(k).getOBX();\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tJSONObject labresult_json = getMyParser().map_lab_result (obsResult);\n\t\t\t\t\tif (labresult_json == null) {\n\t\t\t\t\t\treturn ErrorCode.LAB_RESULTS;\n\t\t\t\t\t}\n\t\t\t\t\tlabresults_json.put(labresult_json);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// For each order, we have provider, facility, order date and reason information.\n\t\t\t\t// We put this information in the high level.\n\t\t\t\t//\n\t\t\t\t// Provider and Facility at Top ECR level.\n\t\t\t\t// Order Date and Reason at Patient level.\n\t\t\t\t//\n\t\t\t\t// Provider and Facility: \n\t\t\t\t// We are in the Order Loop. So, we will come back. However, \n\t\t\t\t// ECR allows only one provider and facility. So, this can be overwritten\n\t\t\t\t// by next order if provider info exists.\n\t\t\t\tif (!laborder_json.isNull(\"Provider\")) {\n\t\t\t\t\tJSONObject provider_json = laborder_json.getJSONObject(\"Provider\");\n\t\t\t\t\tif (provider_json != null) \n\t\t\t\t\t\tgetMyParser().add_provider (provider_json, ecr_json);\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (!laborder_json.isNull(\"Facility\")) {\n\t\t\t\t\tJSONObject facility_json = laborder_json.getJSONObject(\"Facility\");\n\t\t\t\t\tif (facility_json != null) ecr_json.put(\"Facility\", facility_json);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Order Date and Reason. \n\t\t\t\t// We have Visit DateTime in ECR. We will put order date as a visit date\n\t\t\t\t// as the order usually made when a patient visits a clinic.\n\t\t\t\tif (!laborder_json.isNull(\"DateTime\")) {\n\t\t\t\t\tString orderDate_json = laborder_json.getString(\"DateTime\");\n\t\t\t\t\tif (orderDate_json != null) patient_json.put(\"Visit_DateTime\", orderDate_json);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// We have reasons in lab order. We put this in the trigger code.\n\t\t\t\tif (!laborder_json.isNull(\"Reasons\")) {\n\t\t\t\t\tJSONArray reasons_json = laborder_json.getJSONArray(\"Reasons\");\n\t\t\t\t\tJSONArray triggercode_json;\n\t\t\t\t\tif (patient_json.isNull(\"Tigger_Code\")) {\n\t\t\t\t\t\ttriggercode_json = new JSONArray();\n\t\t\t\t\t\tpatient_json.put(\"Trigger_Code\", triggercode_json);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttriggercode_json = patient_json.getJSONArray(\"Trigger_Code\");\n\t\t\t\t\t}\n\t\t\t\t\tif (reasons_json != null) {\n\t\t\t\t\t\tfor (int c=0; c<reasons_json.length(); c++) {\n\t\t\t\t\t\t\ttriggercode_json.put(reasons_json.get(c));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsendEcr (ecr_json);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn ErrorCode.INTERNAL;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\tif (newECRs == 0) {\n\t\t\treturn ErrorCode.PID;\n\t\t}\n\t\t\n\t\treturn ErrorCode.NOERROR;\n\t}",
"public String matchIngredientsToRecipes() {\n String query = \"SELECT DISTINCT r.id, r.name, count(RecipeID) AS count FROM recipes AS r JOIN ingredientamount AS i ON r.id = i.RecipeID where i.IngredientID IN (\";\n\n for (int i = 0; i < selectedIngredients.size(); i++) {\n if (i != 0) {\n query = query + \",\";\n }\n query = query + selectedIngredients.get(i);\n }\n query = query + \") GROUP BY RecipeID\";\n return query;\n }",
"@Override\n\tpublic void addParties(ArrayList<Party> others) {\n\n\t}",
"public List<Agent> findAgentsInterne() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') AND A.lastDirection IN(SELECT D.code FROM Direction D WHERE D.internExtern=?1) ORDER BY A.personne.name\");\n q.setParameter(1, InterneExterne.Interne);\n List<Agent> list = q.getResultList();\n return list;\n }",
"public Integer addStuffTogether(ArrayList<Integer> original1, ArrayList<Integer> original2) {\n Integer sum = 0;\n for (Integer i : original1) {\n sum += i;\n }\n for (Integer i : original2) {\n sum += i;\n }\n return sum;\n }",
"@POST\n\t@Path(\"/update\")\n\tpublic Uni<RestResponse<Object>> appendMultiple(HttpServerRequest request,\n\t\t\tList<Map<String, Object>> compactedEntities, @QueryParam(value = \"options\") String options,\n\t\t\t@QueryParam(\"localOnly\") boolean localOnly) {\n\t\tList<Uni<Tuple2<String, Object>>> unis = Lists.newArrayList();\n\t\tfor (Map<String, Object> compactedEntity : compactedEntities) {\n\t\t\tunis.add(HttpUtils.expandBody(request, compactedEntity, AppConstants.APPEND_REQUEST, ldService).onItem()\n\t\t\t\t\t.transform(i -> Tuple2.of((String) compactedEntity.get(\"id\"), (Object) i)).onFailure()\n\t\t\t\t\t.recoverWithItem(e -> Tuple2.of((String) compactedEntity.get(\"id\"), (Object) e)));\n\t\t}\n\t\treturn Uni.combine().all().unis(unis).collectFailures().combinedWith(list -> {\n\t\t\tList<NGSILDOperationResult> fails = Lists.newArrayList();\n\t\t\tList<Map<String, Object>> expandedEntities = Lists.newArrayList();\n\t\t\tList<Context> contexts = Lists.newArrayList();\n\t\t\tfor (Object obj : list) {\n\t\t\t\tTuple2<String, Object> tuple = (Tuple2<String, Object>) obj;\n\t\t\t\tString entityId = tuple.getItem1();\n\t\t\t\tObject obj2 = tuple.getItem2();\n\t\t\t\tif (obj2 instanceof Exception) {\n\t\t\t\t\tNGSILDOperationResult failureResults = new NGSILDOperationResult(AppConstants.APPEND_REQUEST,\n\t\t\t\t\t\t\tentityId);\n\t\t\t\t\tif (obj2 instanceof ResponseException) {\n\t\t\t\t\t\tfailureResults.addFailure((ResponseException) obj2);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfailureResults.addFailure(\n\t\t\t\t\t\t\t\tnew ResponseException(ErrorType.InvalidRequest, ((Exception) obj2).getMessage()));\n\t\t\t\t\t}\n\t\t\t\t\tfails.add(failureResults);\n\t\t\t\t} else {\n\t\t\t\t\tTuple2<Context, Map<String, Object>> tuple2 = (Tuple2<Context, Map<String, Object>>) obj2;\n\t\t\t\t\texpandedEntities.add(tuple2.getItem2());\n\t\t\t\t\tcontexts.add(tuple2.getItem1());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn Tuple3.of(fails, expandedEntities, contexts);\n\n\t\t}).onItem().transformToUni(tuple -> {\n\t\t\tList<NGSILDOperationResult> fails = tuple.getItem1();\n\t\t\tList<Map<String, Object>> expandedEntities = tuple.getItem2();\n\t\t\tList<Context> contexts = tuple.getItem3();\n\t\t\treturn entityService.appendBatch(HttpUtils.getTenant(request), expandedEntities, contexts, localOnly)\n\t\t\t\t\t.onItem().transform(opResults -> {\n\t\t\t\t\t\topResults.addAll(fails);\n\t\t\t\t\t\treturn HttpUtils.generateBatchResult(opResults);\n\t\t\t\t\t});\n\t\t}).onFailure().recoverWithItem(HttpUtils::handleControllerExceptions);\n\t}",
"public List<Ingrediente> verIngredientes(){\n\t\t// Implementar\n\t\treturn ingredientes;\n\t}",
"@GetMapping(\"all\")\r\n public List<Resident> getAllResidents() {\r\n\r\n return residentService.findAllResident();\r\n }",
"public interface choreListResponse {\n void choresListFinish(ArrayList<Chore> output);\n}",
"private void addAllResIds(ArrayList<String> childIds, ArrayList<String> validSeconLevelEntitys)\n/* */ {\n/* 829 */ for (String entity : validSeconLevelEntitys)\n/* */ {\n/* 831 */ AMLog.info(\"ThresholdConfigurationAsCSV.addAllResIds() entity is \" + entity);\n/* */ }\n/* */ }",
"public void listResidents(Player player) {\n\t\tplayer.sendMessage(ChatTools.formatTitle(\"Residents\"));\n\t\tString colour;\n\t\tArrayList<String> formatedList = new ArrayList<String>();\n\t\tfor (Resident resident : plugin.getTownyUniverse().getActiveResidents()) {\n\t\t\tif (resident.isKing())\n\t\t\t\tcolour = Colors.Gold;\n\t\t\telse if (resident.isMayor())\n\t\t\t\tcolour = Colors.LightBlue;\n\t\t\telse\n\t\t\t\tcolour = Colors.White;\n\t\t\tformatedList.add(colour + resident.getName() + Colors.White);\n\t\t}\n\t\tfor (String line : ChatTools.list(formatedList))\n\t\t\tplayer.sendMessage(line);\n\t}",
"@Override\n\tpublic void preparar(IngredienteX X, ArrayList<IngredienteComun> comuns) {\n\t\tprocesos();\n\t\tingredienteEspecial=X;\n\t\totros.addAll(otros);\n\t\tEscribirProduccion.escribir(\"creado Bebida\"+this.getClass()+\"ingredientes:\"+this+\"tardo: 25min\");\n\t\t\n\t\t\n\t}",
"public void addIngredientRecipe(ArrayList<IngredientRecipePOJO> ingr);",
"private void formatarPendencias(List<Pendencia> registos) {\n\n if(registos.size() == 0) {\n\n Bundle bundle = getIntent().getExtras();\n\n if(bundle != null){\n viewModel.obterUpload(PreferenciasUtil.obterIdUtilizador(this), bundle.getLong(getString(R.string.argumento_data)), handlerNotificacoesUI);\n }\n else{\n viewModel.obterUpload(PreferenciasUtil.obterIdUtilizador(this), handlerNotificacoesUI);\n }\n }\n else{\n activityUploadBinding.lnrLytProgresso.setVisibility(View.GONE);\n dialogo.alerta(getString(R.string.pendencias), getString(R.string.pendencias_tarefas_upload));\n }\n }",
"public abstract MyIntList getCoors(MyIntList coors);",
"private void combineUids(@NonNull NetworkCapabilities nc) {\n if (null == nc.mUids || null == mUids) {\n mUids = null;\n return;\n }\n mUids.addAll(nc.mUids);\n }",
"public IntermediateIngredient(){\n ingredients=new ArrayList<>();\n intermediateIngredients=new ArrayList<>();\n }",
"private void sendGMToAll(String msg){\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Print the message to the client\r\n oos.writeObject(new DataWrapper(0, msg, true));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }",
"public void harvest(List<IRI> iris);",
"private List<EnrichmentEntity> enrichmentEntities (BirthCaseEnrichment birthCaseEnrichment) {\n ArrayList<EnrichmentEntity> entities = new ArrayList<>();\n\n// for(OrganisationsToInformResponse otir : birthCaseEnrichment.getOrganisationsToInform()) {\n for(OrganisationsToInformResponse otir : birthCaseEnrichment.getOrganisationsToInformResponse()) {\n entities.add(\n createEnrichmentEntity(birthCaseEnrichment.getCouncil(), otir.getOrganisation(), otir.isResponse() ) );\n }\n\n return entities;\n }",
"java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();",
"@Override\n\tpublic void sendJobResult(int[] result) throws RemoteException {\n\t\tServer.results.add(result);\n Server.listResults();\n\t}",
"public void mergeROIs() {\n\t\tgroup1 = new ArrayList<Double>();\n\t\tgroup1.add(Data[0][0]);\n\t\tfor (int i = 1; i < (nResults-1);i++) {\n\t\t\tif ((Data[1][i]-similarity*Data[2][i]) < (Data[1][0]+similarity*Data[2][0]) ) { // if the lines are similar to the minimum line, add them to group1\n\t\t\t\tgroup1.add(Data[0][i]);//addes new element to group 1 with value of roiindex[i]\n\t\t\t}\n\t\t}\n\t\tint[] group1a = new int[group1.size()];\n\t\tfor(int i =0; i < group1.size(); i++){\n\t\t\tdouble temp = group1.get(i);\n\t\t\tgroup1a[i] = (int)temp;\n\t\t}\n\t\tgroup2 = new ArrayList<Double>();\n\t\tgroup2.add(Data[0][nResults-1]);\n\t\tfor (int i=(nResults-2);i>1;i--) {\n\t\t\tif ((Data[1][i]+similarity*Data[2][i]) > (Data[1][nResults-1]-similarity*Data[2][nResults-1]) ) { \n\t\t\t// if the lines are similar to the maximum line, add them to group2\n\t\t\tgroup2.add(0,Data[0][i]);\n\t\t\t}\n\t\t}\n\t\tint[] group2a = new int[group2.size()];\n\t\tfor(int i =0; i < group2.size(); i++){\n\t\t\tdouble temp = group2.get(i);\n\t\t\tgroup2a[i] = (int)temp;\n\t\t}\n\t\tint count;\n\t\t//IJ.run(\"Select None\");\n\t\tActiveROIManager.deselect();\n\t\tActiveROIManager.setSelectedIndexes(group1a);\n\t\tif(group1a.length > 1) {\n\t\t\tActiveROIManager.runCommand(ActiveImage,\"Combine\"); \n\t\t\t//Creates new ROI that is combination of group 2\n\t\t\tcount = ActiveROIManager.getCount();\n\t\t\tRoi1 = ActiveROIManager.getRoi(count-1);//Selects the combined group1 ROI\n\t\t}\n\t\telse{\n\t\t\tRoi1 = ActiveROIManager.getRoi(group1a[0]);\n\t\t}\n\t\tActiveROIManager.setSelectedIndexes(group2a);\n\t\tif(group2a.length > 1) {\n\t\t\tActiveROIManager.runCommand(ActiveImage,\"Combine\"); \n\t\t\t//Creates new ROI that is combination of group 2\n\t\t\tcount = ActiveROIManager.getCount();\n\t\t\tRoi2 = ActiveROIManager.getRoi(count-1); //Selects the combined group2 ROI\n\t\t}\n\t\telse{\n\t\t\tRoi2 = ActiveROIManager.getRoi(group2a[0]);\n\t\t}\n\t\tActiveROIManager.reset();\n\t\trt.reset();\n\t\tActiveROIManager.add(ActiveImage,Roi1,0);\n\t\tActiveROIManager.select(ActiveImage,0);\n\t\tAnalyzer ActiveAnalyzer = new Analyzer(ActiveImage,measurements,rt);\n\t\tActiveAnalyzer.measure();\n\t\tActiveROIManager.add(ActiveImage,Roi2,1);\n\t\tActiveROIManager.select(ActiveImage,1);\n\t\tActiveAnalyzer.measure();\n\t\tActiveROIManager.runCommand(Image,\"Show All without labels\");// removes the labels, which a user may find confusing in the context of this macro\n\t\treturn;\n\t}",
"void integrarPalletsRecibidos(Integer codigoCompania, String userId, Long codigoDatosTarea) throws SICException;",
"public void add(List<SermCit> citList){\n //Add one by one\n for (SermCit x : citList){\n add(x);\n }\n }",
"@Override\n public void abreIntentEnderecos(ArrayList lstAddresses) {\n Intent openShowAddressActivity = new Intent(MainActivity.this, ShowAddressesActivity.class);\n openShowAddressActivity.putStringArrayListExtra(\"addresses_list\", lstAddresses);\n startActivity(openShowAddressActivity);\n }",
"public void UserClientAcceptor(ArrayList<User> cleints) {\r\n \tuserClient = (ArrayList<User>)cleints.clone();\r\n \t//System.out.println(userClient);\r\n\t\tList.addAll(cleints);\r\n\t\t}",
"private Map<String, Map<String,Integer>> combineResults() {\n\t\tMap<String, Map<String,Integer>>maxJointAgreement = new HashMap<>();\n\n\t\tfor (String type : this.entityTypes) {\n\t\t\tMap<String,Integer> allResults = new HashMap<>();\n\t\t\tMap<String,Integer> onlpRes = this.openNLPEntities.get(type);\n\t\t\tMap<String,Integer> cnlpRes = this.coreNLPEntities.get(type);\n\t\t\tMap<String,Integer> nltkRes = this.nltkEntities.get(type);\n\n\t\t\t// Merge individual NER results together\n\t\t\tif (onlpRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(onlpRes, allResults);\n\t\t\t}\n\t\t\tif (cnlpRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(cnlpRes, allResults);\n\t\t\t}\n\t\t\tif (nltkRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(nltkRes, allResults);\n\t\t\t}\n\t\t\tif (!allResults.isEmpty()) {\n\t\t\t\tmaxJointAgreement.put(type, allResults);\n\t\t\t}\n\t\t}\n\t\treturn maxJointAgreement;\n\t}",
"private byte[] concatenateUdhOrSar(final Collection<SubmitSmData> messagePartsCollection) {\n\n Map<Integer, byte[]> treeMap = new TreeMap<>();\n for(SubmitSmData oneData : messagePartsCollection) {\n treeMap.put(oneData.getPartId(), oneData.getShortMessage());\n }\n\n ByteArrayOutputStream fullMultipartMessage = new ByteArrayOutputStream();\n for(Map.Entry<Integer, byte[]> entry : treeMap.entrySet()) {\n try {\n fullMultipartMessage.write(entry.getValue());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n return fullMultipartMessage.toByteArray();\n\n }",
"public Collection<Integer> recuperarMaterialServicoTipo(Collection<Integer> materiais) throws ErroRepositorioException{\n\n\t\tCollection<Integer> retornoConsulta = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\n\t\tString consulta = \"\";\n\n\t\ttry{\n\t\t\tif(materiais != null && !materiais.isEmpty()){\n\t\t\t\tconsulta = \"select at.ativ_id as idMAT \" + \"from material_unidade matuni, \" + \"servico_tipo_material stmat \"\n\t\t\t\t\t\t\t\t+ \"where matuni.mate_id = stmat.mate_id \" + \"and stmat.svtp_id in (:materiais) \";\n\n\t\t\t\tretornoConsulta = session.createSQLQuery(consulta).addScalar(\"idMAT\", Hibernate.INTEGER)\n\t\t\t\t\t\t\t\t.setParameter(\"materiais\", materiais).list();\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\n\t\treturn retornoConsulta;\n\t}",
"private Collection<ConnectionEntry> getMyInvites(Map<String, String> parameters)throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"getMyInvites\", parameters);\n \t\t}\n \n \t\tDocument data = null;\n \t\tCollection<ConnectionEntry> invites = null;\n \t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\tProfileType.CONNECTIONS.getProfileType());\n \t\tdata = executeGet(url, parameters, ClientService.FORMAT_XML);\n \t\tif(parameters.containsKey(\"outputType\")){\n \t\t\tif(parameters.get(\"outputType\").equalsIgnoreCase(\"profile\")){\n \t\t\t\tinvites = Converter.returnConnectionEntries(data, \"profile\");\n \t\t\t}\n \t\t\telse \n \t\t\t\tinvites = Converter.returnConnectionEntries(data, \"connection\");\n \t\t}\n \t\telse{\n \t\t\tinvites = Converter.returnConnectionEntries(data, \"connection\");\n \t\t}\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.exiting(sourceClass, \"getMyInvites\");\n \t\t}\n \t\treturn invites;\n \t}",
"public Instrucoes2op(){\n\t\tmmm1 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do primeiro operando\n\t\tmmm2 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do segundo operando \n\t\trrr1 = \"\";\n\t\trrr2 = \"\";\t\n\t}",
"public List<Instruccion> emite(List<Instruccion> codh,\r\n\t\t\tList<Instruccion> cod) {\r\n\t\tcodh.addAll(cod);\r\n\t\treturn codh;\r\n\t}",
"public List<Integer> convertBigIntegerList(List<BigInteger> alist){\n\t\tList<Integer> blist = new ArrayList<Integer>(alist.size());\n\t\tfor(int i=0; i < alist.size(); i++){\n\t\t\tif(alist.get(i)!=null)\n\t\t\t{\n\t\t\tblist.add( new Integer( alist.get(i).intValue() ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn blist;\n\t}",
"protected static List<? extends ScalarIMR> getBuildIMRs() {\n\t\tList<? extends ScalarIMR> imrs = AttenRelRef.instanceList(null, true, ServerPrefUtils.SERVER_PREFS);\n\t\tfor (int i=imrs.size()-1; i>=0; i--) {\n\t\t\tScalarIMR imr = imrs.get(i);\n//\t\t\tif (imr instanceof CyberShakeIMR)\n//\t\t\t\timrs.remove(i);\n//\t\t\telse\n\t\t\t\timr.setParamDefaults();\n\t\t}\n\t\treturn imrs;\n\t}",
"void onResidentLoadSuccess(List<ResidentModel> residentModelList);",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(resultCode==2){\n\t\t\tHashMap<String, Object> map=new HashMap<String, Object>();\n\t\t\tmap.put(\"id\",data.getLongExtra(\"id\", -1));\n\t\t\tmap.put(\"members\", RecordUtil.shareRecordUtil(this).idToName(data.getStringExtra(\"ids\")));\n\t\t\tlist.addFirst(map);\n\t\t\tadapter.notifyDataSetChanged();\n\t\t}\n\t}",
"java.util.List<java.lang.Integer> getRareIdList();",
"java.util.List<java.lang.Integer> getRareIdList();",
"public List<String> rmvIppath(){\n List<String> script = new ArrayList<>();;\n Iterator<IpPath> it = ippaths.iterator();\n while (it.hasNext()){\n IpPath temp = it.next();\n script .add( \"RMV IPPATH: ANI=\"+temp.getAni()+\n \",PATHID=\"+temp.getPATHID()+\"; {\"+rncName+\"}\");\n \n \n }\n \n return script;\n }",
"public static ListaEnlazadaAsignadas MSGD(ArrayList<ListaEnlazadaAsignadas> cCandidatos, ListaEnlazadaAsignadas caminoLibre, int R){\n \n //vector de spectrum gain de los candidatos\n int[] sgain = new int[cCandidatos.size()];\n \n //inicializar vector\n for (int i=0; i<sgain.length; i++){\n sgain[i] = -1;\n }\n \n Random rdm =new Random();\n //si supera la probabilidad de reruteo\n if (rdm.nextInt(10)<=R){\n \n int saltosEliminado = Utilitarios.calcularSaltos(caminoLibre.getListaAsignada());\n for (int i=0; i<cCandidatos.size(); i++){\n //Si esta vivo\n if (cCandidatos.get(i).getEstado()==1){\n int saltosCandidato = Utilitarios.calcularSaltos(cCandidatos.get(i).getListaAsignada());\n int candidatoFS = cCandidatos.get(i).getDemanda().getNroFS();\n sgain[i] = (saltosCandidato - saltosEliminado )*candidatoFS;\n \n }\n }\n }\n \n //buscar el de mayor spectrum gain\n int mayor=sgain[0];\n int index = 0;\n for (int i=0; i<sgain.length; i++){\n if (sgain[i] > mayor){\n mayor = sgain[i];\n index = i;\n }\n }\n \n //Si ya es el optimo\n if (mayor>0){\n return cCandidatos.get(index);\n }else{\n return null;\n }\n\n }",
"private Map<Integer, List<Pair<String, Integer>>> getAdditionalInformation() {\n Cursor cursor = mContentResolver.query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, QUERY_PROJECTION_PHONE, null, null, null);\n\n int idIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.CONTACT_ID);\n int phoneIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER);\n int typeIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE);\n\n Map<Integer, List<Pair<String, Integer>>> numbers = new HashMap<Integer, List<Pair<String, Integer>>>();\n\n while (cursor.moveToNext()) {\n int id = cursor.getInt(idIndex);\n if (!numbers.containsKey(id)) {\n // create a new entry\n numbers.put(id, new LinkedList<Pair<String, Integer>>());\n }\n\n numbers.get(id).add(new Pair<String, Integer>(cursor.getString(phoneIndex), cursor.getInt(typeIndex)));\n }\n\n return numbers;\n }",
"public void minimisation4( ArrayList<Node>convrt1, Topology tp)\n {\n for ( int i=0; i<tp.getNodes().size(); i++ )\n {\n Node n= tp.getNodes().get(i);\n List<Link>allLinks = n.getLinks();\n boolean allLinksConnected= true;\n for ( int j=0; j<allLinks.size();j++ )\n {\n Link l= allLinks.get(j);\n if ( l.getColor()!=Color.orange)\n allLinksConnected=false;\n }\n List<Node> neighbors= n.getNeighbors();\n boolean allNeighborsConvert=true;\n for ( int j=0; j<neighbors.size();j++ )\n {\n Node n1= neighbors.get(j);\n if ( (convrt1.contains(n1))== false )\n {\n allNeighborsConvert=false;\n }\n }\n if ( allLinksConnected==true && allNeighborsConvert==true )\n {\n if ( n instanceof Ipv6)\n {\n ((Ipv6) n).setType(\"Conv\");\n n.setIcon(\"./src/img/Conv.png\");\n convrt1.add(n);\n }\n else if ( n instanceof Ipv4)\n {\n ((Ipv4) n).setType(\"Conv\");\n n.setIcon(\"./src/img/Conv.png\");\n convrt1.add(n);\n }\n\n for ( int m=0; m< n.getNeighbors().size(); m++ )\n {\n Node n2= n.getNeighbors().get(m);\n if ( n2 instanceof Ipv6)\n {\n ((Ipv6) n2).setType(\"IPV6\");\n n2.setIcon(\"./src/img/ipv6.png\");\n convrt1.remove(n2);\n }\n else if ( n2 instanceof Ipv4)\n {\n ((Ipv4) n2).setType(\"IPV4\");\n n2.setIcon(\"./src/img/ipv4.png\");\n convrt1.remove(n2);\n }\n }\n }\n }\n }",
"private void extractAllCitations() {\r\n try {\r\n // gets all matched objects for extracting All Citations.\r\n Matcher matcherObject = matcher.patternMatcher(\"AllCitations\");\r\n\r\n\r\n while (matcherObject.find()) {\r\n allMatches.add(matcherObject.group(1));\r\n }\r\n\r\n // add all citations from allMatches, add it to outputResult\r\n if (!allMatches.isEmpty()) {\r\n format.Formatter(2, allMatches.get(0));\r\n }\r\n \r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Error has occured in extractAllCitations method\");\r\n }\r\n }",
"public void addAOI22X1(List<String> signals, HashMap<String, Gate> hm){\n\t\tString intermediateOne = \"AOI22X1_\" + intermediateCount++ + \"_out\";\n\t\tsuper.addAnd(signals.get(0), signals.get(1), intermediateOne, hm);\n\t\t\n\t\t//AND2 GATE\n\t\tString intermediateTwo = \"AOI22X1_\" + intermediateCount++ + \"_out\";\n\t\tsuper.addAnd(signals.get(2), signals.get(3), intermediateTwo, hm);\n\t\t\n\t\t//NOR GATE\n\t\tsuper.addNor(intermediateOne, intermediateTwo, signals.get(4), hm);\n\t}",
"public List<BigInteger> convertIntegerList(List<Integer> alist){\n\t\tList<BigInteger> blist = new ArrayList<BigInteger>(alist.size());\n\t\tfor(int i=0; i < alist.size(); i++){\n\t\t\tblist.add( BigInteger.valueOf( alist.get(i).intValue() ) );\n\t\t}\n\t\t\n\t\treturn blist;\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n Intent intent = new Intent();\n intent.putParcelableArrayListExtra(\"selectMembers\", (ArrayList<? extends Parcelable>) hasCommonMembers);\n setResult(RESULT_OK, intent);\n finish();\n hasCommonMembers.clear();\n }\n }",
"double collectOutput(List<NeuronsConnection> inputConnections);",
"@GET\r\n @Produces(\"text/plain\")\r\n public Response getResearchObjectList() {\r\n UserProfile user = (UserProfile) request.getAttribute(Constants.USER);\r\n \r\n Set<URI> list;\r\n if (user.getRole() == Role.PUBLIC) {\r\n list = ROSRService.SMS.get().findResearchObjects();\r\n } else {\r\n list = ROSRService.SMS.get().findResearchObjectsByCreator(user.getUri());\r\n }\r\n StringBuilder sb = new StringBuilder();\r\n for (URI id : list) {\r\n sb.append(id.toString());\r\n sb.append(\"\\r\\n\");\r\n }\r\n \r\n ContentDisposition cd = ContentDisposition.type(\"text/plain\").fileName(\"ROs.txt\").build();\r\n \r\n return Response.ok().entity(sb.toString()).header(\"Content-disposition\", cd).build();\r\n }",
"public void recevoir(IPorcelet p);",
"public java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCResult> getReaultList() {\n if (reaultBuilder_ == null) {\n return java.util.Collections.unmodifiableList(reault_);\n } else {\n return reaultBuilder_.getMessageList();\n }\n }",
"public String[] obterContaMensagemImovel (Integer imovelId,Integer amRef) throws ErroRepositorioException;",
"@Override\n\tpublic List<IIndividuo> cruce(IIndividuo ind1, IIndividuo ind2) throws CruceNuloException {\n\t\tList<IIndividuo> result = new ArrayList<>();\n\t\tint a = Individuo.aleatNum(0, ind1.getNumeroNodos()-1);\n\t\tint b = Individuo.aleatNum(0, ind2.getNumeroNodos()-1);\n\t\t\n\t\t/* TODO Descomentar para la entrega. Lo quitamos para acelerar las pruebas.\n\t\t * if(a == 0 && b == 0) {\n\t\t\tthrow new CruceNuloException();\n\t\t}*/\n\t\t\n\t\twhile(a == 0 && b == 0) {\n\t\t\ta = Individuo.aleatNum(0, ind1.getNumeroNodos()-1);\n\t\t\tb = Individuo.aleatNum(0, ind2.getNumeroNodos()-1);\n\t\t}\n\t\t\n\t\t/*Copiamos los individuos, pues no podemos devolver el mismo.\n\t\t * Una vez copiados, los etiquetamos, pues durante la copia no\n\t\t * copiamos las etiquetas. Así, si los individuos iniciales estaban\n\t\t * etiquetados, no habrá ningun problema, seran iguales, y si no estaban\n\t\t * etiquetados, el algoritmo seguira funcionando.*/\n\t\tIIndividuo copia1 = new Individuo();\n\t\tcopia1.setFitness(ind1.getFitness());\n\t\tcopia1.setExpresion(ind1.getExpresion().copy());\n\t\tcopia1.etiquetaNodos();\n\t\t\n\t\tIIndividuo copia2 = new Individuo();\n\t\tcopia2.setFitness(ind2.getFitness());\n\t\tcopia2.setExpresion(ind2.getExpresion().copy());\n\t\tcopia2.etiquetaNodos();\n\t\t\n\t\t/*Cogemos enconces los Nodos que queremos intercambiar entre ambos arboles.\n\t\t * En este caso, dado nuestro algoritmo de etiquetacion y nuestra forma de \n\t\t * generar los numeros aleatorios, sabemos que dicho nodo siempre va a estar,\n\t\t * y por tanto, no hace falta que nos aseguremos de que la funcion buscarNodo\n\t\t * no devuelva null.*/\n\t\t\n\t\tINodo nodo1 = copia1.getExpresion().buscarNodo(a);\n\t\tINodo nodo2 = copia2.getExpresion().buscarNodo(b);\n\t\t\n\t\tcopia1.getExpresion().reemplazarNodo(a, nodo2);\n\t\tcopia2.getExpresion().reemplazarNodo(b, nodo1);\n\t\tcopia1.etiquetaNodos();\n\t\tcopia2.etiquetaNodos();\n\t\t\n\t\tresult.add(copia1);\n\t\tresult.add(copia2);\n\t\treturn result;\n\t}",
"private synchronized void sendToAllClients(Object whatever) // Synchronized to work among multiple clients and multiple threads\n {\n System.out.println(\"Sending '\" + whatever + \"' to everyone.\");\t\n \n ObjectOutputStream[] oosList = whosIn.values().toArray(new ObjectOutputStream[0]);\n \n for (ObjectOutputStream clientOOS : oosList)\n {\n try {clientOOS.writeObject(whatever);}\n catch (IOException e) {} \n }\n\t \n }",
"protected abstract ArrayList getRecipientsInfoFromDB(ArrayList listUserIDs) throws AlertHandlerException;",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"private ArrayList<Read> makeReadList() {\r\n\t\tArrayList<Read> rlist=makeReadList2();\r\n\t\tif(mateStream!=null){\r\n\t\t\tListNum<Read> matesln=mateStream.nextList();\r\n\t\t\tArrayList<Read> mates=matesln.list;\r\n\t\t\tif(rlist!=null && mates!=null){\r\n\t\t\t\tint max=Tools.min(rlist.size(), mates.size());\r\n\t\t\t\tfor(int i=0; i<max; i++){\r\n\t\t\t\t\tRead a=rlist.get(i);\r\n\t\t\t\t\tRead b=mates.get(i);\r\n\t\t\t\t\ta.mate=b;\r\n\t\t\t\t\tb.mate=a;\r\n\t\t\t\t\tb.setPairnum(1);\r\n\t\t\t\t}\r\n\t\t\t\tmates.clear();\r\n\t\t\t\tmateStream.returnList(matesln, false);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rlist;\r\n\t}",
"private void getMasechtotListFromServer() {\n\n\n RequestManager.getMasechtotList().subscribe(new Observer<Result<MasechetList>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<MasechetList> masechetListResult) {\n\n saveMasechtotList(masechetListResult.getData());\n mMasechtotList = masechetListResult.getData();\n\n }\n\n @Override\n public void onError(Throwable e) {\n\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n\n\n }",
"private void obtenerClienteRecomendado(Cliente clienteParametro, Long oidPais) throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendado(ClienteclienteParametro, Long oidPais):Entrada\");\n\n BelcorpService bsInc = null;\n RecordSet respuestaInc = null;\n StringBuffer queryInc = new StringBuffer();\n ArrayList lstRecomendados;\n\n if ( clienteParametro.getClienteRecomendante() != null){\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"oidClienteRecomendante=\"+clienteParametro.getClienteRecomendante().getRecomendante());\n }\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n try {\n queryInc.append(\" SELECT \");\n queryInc.append(\" CLIE_OID_CLIE_VNDO CLIE_OID_CLIE, \");\n queryInc.append(\" FEC_DESD FEC_INIC, \");\n queryInc.append(\" FEC_HAST FEC_FINA \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n queryInc.append(\" AND IND_RECO = 1 \");\n queryInc.append(\" AND CLIE_OID_CLIE_VNDO NOT IN ( \");\n \n // queryInc.append(\" SELECT RDO.CLIE_OID_CLIE, FEC_INIC, FEC_FINA \");\n queryInc.append(\" SELECT DISTINCT RDO.CLIE_OID_CLIE \");\n queryInc.append(\" FROM INC_CLIEN_RECDO RDO, CRA_PERIO, \");\n queryInc.append(\" INC_CLIEN_RECTE RECT \");\n queryInc.append(\" WHERE PERD_OID_PERI = OID_PERI \");\n queryInc.append(\" AND RECT.CLIE_OID_CLIE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND CLR3_OID_CLIE_RETE = OID_CLIE_RETE \");\n \n queryInc.append(\" ) \");\n \n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n //BelcorpService bsMae = null;\n RecordSet respuestaMae = null;\n //StringBuffer queryMae = new StringBuffer();\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n \n boolean hayRecomendado = false;\n Cliente clienteLocal = new Cliente();\n lstRecomendados = clienteParametro.getClienteRecomendado();\n\n if (!respuestaInc.esVacio()) {\n \n hayRecomendado = true;\n \n clienteParametro.setIndRecomendadosEnINC(true);\n \n /* vbongiov -- RI SiCC 20090941 -- 16/06/2009 \n * no lleno lstRecomendados con estos valores solo mantengo el indicador IndRecomendadosEnINC \n \n lstRecomendados.clear();\n \n for(int i=0; i<respuestaInc.getRowCount();i++){ \n ClienteRecomendado clienteRecomendado = new ClienteRecomendado(); \n\n clienteRecomendado.setRecomendante(clienteParametro.getOidCliente()); \n \n BigDecimal recomendado = (BigDecimal) respuestaInc.getValueAt(i, \"CLIE_OID_CLIE\");\n clienteRecomendado.setRecomendado((recomendado != null) ? new Long(recomendado.longValue()) : null);\n \n clienteRecomendado.setFechaInicio((Date) respuestaInc.getValueAt(i, \"FEC_INIC\"));\n Date fechaFin = (Date) respuestaInc.getValueAt(i, \"FEC_FINA\");\n clienteRecomendado.setFechaFin((fechaFin != null) ? fechaFin : null);\n\n clienteLocal.setOidCliente(clienteRecomendado.getRecomendado());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendado.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n \n lstRecomendados.add(clienteRecomendado); \n }*/\n } \n \n // vbongiov -- RI SiCC 20090941 -- 16/06/2009 \n // \n \n try {\n queryInc = new StringBuffer(); \n queryInc.append(\" SELECT CLIE_OID_CLIE_VNDO, FEC_DESD, FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n queryInc.append(\" AND IND_RECO = 1 \");\n\n respuestaMae = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMae \" + respuestaMae); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if (!respuestaMae.esVacio()) {\n \n hayRecomendado = true;\n \n clienteParametro.setIndRecomendadosEnMAE(true);\n \n lstRecomendados.clear();\n \n for(int i=0; i<respuestaMae.getRowCount();i++){ \n \n ClienteRecomendado clienteRecomendado = new ClienteRecomendado(); \n\n clienteRecomendado.setRecomendante(clienteParametro.getOidCliente());\n\n clienteRecomendado.setRecomendado(new Long(((BigDecimal) \n respuestaMae.getValueAt(i, \"CLIE_OID_CLIE_VNDO\")).longValue()));\n {\n Date fechaInicio = (Date) respuestaMae.getValueAt(i, \"FEC_DESD\");\n clienteRecomendado.setFechaInicio((fechaInicio != null) ? fechaInicio : null);\n }\n\n {\n Date fechaFin = (Date) respuestaMae.getValueAt(i, \"FEC_HAST\");\n clienteRecomendado.setFechaFin((fechaFin != null) ? fechaFin : null);\n }\n \n clienteLocal.setOidCliente(clienteRecomendado.getRecomendado());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendado.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n \n lstRecomendados.add(clienteRecomendado); \n \n }\n \n clienteParametro.setClienteRecomendado(lstRecomendados);\n \n } else {\n hayRecomendado = false;\n }\n\n if (!hayRecomendado) {\n clienteParametro.setClienteRecomendado(null);\n }\n \n // JVM, sicc 20070381, if, manejo del Recomendador, bloque de recuparacion de periodo\n if (lstRecomendados.size() > 0)\n { \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n \n RecordSet respuestaMaeRdr = null;\n\n try { \n queryInc = new StringBuffer();\n queryInc.append(\" SELECT DISTINCT CLIE_OID_CLIE_VNTE , FEC_DESD , FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n respuestaMaeRdr = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMaeRdr \" + respuestaMaeRdr); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n ClienteRecomendante clienteRecomendador = new ClienteRecomendante();\n \n if (!respuestaMaeRdr.esVacio()) {\n \n {\n BigDecimal recomendador = (BigDecimal) respuestaMaeRdr.getValueAt(0, \"CLIE_OID_CLIE_VNTE\");\n clienteRecomendador.setRecomendante((recomendador != null) ? new Long(recomendador.longValue()) : null);\n }\n \n clienteRecomendador.setFechaInicio((Date) respuestaMaeRdr.getValueAt(0, \"FEC_DESD\"));\n // fecha fin de INC\n {\n Date fechaFin = (Date) respuestaMaeRdr.getValueAt(0, \"FEC_HAST\");\n clienteRecomendador.setFechaFin((fechaFin != null)? fechaFin : null);\n }\n \n clienteParametro.setClienteRecomendador(clienteRecomendador);\n }\n \n for (int i=0; i<lstRecomendados.size(); i++){\n\n ClienteRecomendado clienteRecomendados = new ClienteRecomendado(); \n \n clienteRecomendados = (ClienteRecomendado) lstRecomendados.get(i);\n \n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n\n queryInc = new StringBuffer();\n \n try {\n queryInc.append(\" select x.n, x.oid_peri, x.fec_inic, x.fec_fina, x.pais_oid_pais, x.marc_oid_marc, x.cana_oid_cana \"); \n queryInc.append(\" from ( \"); \n queryInc.append(\" select 1 n, b.oid_peri as oid_peri, \"); \n queryInc.append(\" b.fec_inic as fec_inic, \"); \n queryInc.append(\" b.fec_fina as fec_fina, \"); \n queryInc.append(\" b.pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" b.marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" b.cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from mae_clien_prime_conta a, cra_perio b, seg_perio_corpo c \"); \n queryInc.append(\" where a.clie_oid_clie = \" + clienteRecomendados.getRecomendado()); \n queryInc.append(\" and a.perd_oid_peri = b.oid_peri \"); \n queryInc.append(\" and b.peri_oid_peri = c.oid_peri \"); \n queryInc.append(\" and b.oid_peri in ( \"); \n queryInc.append(\" select oid_peri \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD/MM/YYYY') <= fec_fina ) \");\n queryInc.append(\" union \"); \n queryInc.append(\" select rownum + 1 as n, oid_peri as oid_peri, \"); \n queryInc.append(\" fec_inic as fec_inic, \"); \n queryInc.append(\" fec_fina as fec_fina, \"); \n queryInc.append(\" pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') <= fec_fina \");\n queryInc.append(\" order by oid_peri asc \"); \n queryInc.append(\" ) x \"); \n queryInc.append(\" order by n \"); \n\n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n BigDecimal bd;\n \n if (!respuestaInc.esVacio()) {\n\n Periodo periodo = new Periodo();\n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"OID_PERI\");\n periodo.setOidPeriodo(new Long(bd.longValue()));\n \n periodo.setFechaDesde((Date) respuestaInc.getValueAt(0, \"FEC_INIC\"));\n\n periodo.setFechaHasta((Date) respuestaInc.getValueAt(0, \"FEC_FINA\")); \n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"PAIS_OID_PAIS\");\n periodo.setOidPais(new Long(bd.longValue()));\n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"MARC_OID_MARC\");\n periodo.setOidMarca(new Long(bd.longValue()));\n\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"CANA_OID_CANA\");\n periodo.setOidCanal(new Long(bd.longValue()));\n \n clienteRecomendados.setPeriodo(periodo);\n } \n }\n }\n\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"lstRecomendados(\"+lstRecomendados.size() + \n \") getIndRecomendadosEnMAE(\"+clienteParametro.getIndRecomendadosEnMAE() +\n \") getIndRecomendadosEnINC(\"+clienteParametro.getIndRecomendadosEnINC() +\")\"); \n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendado(ClienteclienteParametro, Long oidPais):Salida\"); \n \n }",
"public List<ConceptoRetencionSRI> autocompletarConceptoRetencionIVASRI(String consulta)\r\n/* 550: */ {\r\n/* 551:583 */ String consultaMayuscula = consulta.toUpperCase();\r\n/* 552:584 */ List<ConceptoRetencionSRI> lista = new ArrayList();\r\n/* 553:586 */ for (ConceptoRetencionSRI conceptoRetencionSRI : getListaConceptoRetencionSRI()) {\r\n/* 554:587 */ if (((conceptoRetencionSRI.getCodigo().toUpperCase().contains(consultaMayuscula)) || \r\n/* 555:588 */ (conceptoRetencionSRI.getNombre().toUpperCase().contains(consultaMayuscula))) && \r\n/* 556:589 */ (conceptoRetencionSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.IVA))) {\r\n/* 557:590 */ lista.add(conceptoRetencionSRI);\r\n/* 558: */ }\r\n/* 559: */ }\r\n/* 560:594 */ return lista;\r\n/* 561: */ }",
"public void callModifRIB(DemandeurDTO demandeurDTO, AssureDTO assureDTO, Date dateEffet, StatutActuelRibType statutActuel, ModificationRibType modificationType, RibDTO ribDTO, Date dateMandatSEPA, DocumentList documentList) throws BpmServiceException {\n // creation de la demande specifique au format String\n DemandeModifRIB demandeSpecifique = demandeSpecifiqueFactory.createDemandeModifRIB(statutActuel, modificationType, ribDTO, dateMandatSEPA, new ArrayList<>(), documentList);\n JAXBElement<DemandeModifRIB> demandeSpecifiqueElement = demandeSpecifiqueFactory.createDemandeModifRIBElement(demandeSpecifique);\n String strDemandeSpecifique = bpmService.marshalDemandeSpecifique(demandeSpecifiqueElement, DemandeModifRIB.class);\n\n DataModel xmlPayload = bpmService.callCreationDemande(DemandeBpmType.RIB, demandeurDTO, assureDTO, toCalendar(dateEffet), strDemandeSpecifique, BATCH_DEMAT,false, null);\n\n // verification du message d'erreur\n bpmService.checkMessageErreur(xmlPayload.getOutputs());\n String idDemandeBpm = bpmService.getIdDemandeBpm(xmlPayload.getOutputs());\n LOGGER_TRAITEMENT.info(\"\\tDemande de modification de RIB créée avec l'identifiant suivant:\\t\" + idDemandeBpm);\n }",
"public void agregarIngrediente(Ingrediente ingrediente){\n\t\tingredientes.add(ingrediente);\n\t}"
] | [
"0.5329788",
"0.5135052",
"0.5063059",
"0.49136555",
"0.49111724",
"0.49043322",
"0.48482448",
"0.48481888",
"0.47373495",
"0.47363743",
"0.47285274",
"0.4707602",
"0.4700282",
"0.4669564",
"0.4668711",
"0.4665398",
"0.46483505",
"0.46341327",
"0.46330082",
"0.46041396",
"0.46040866",
"0.46022072",
"0.45944467",
"0.45906696",
"0.45786965",
"0.45710525",
"0.4561036",
"0.45555454",
"0.45552742",
"0.45496687",
"0.4548925",
"0.45431334",
"0.45235947",
"0.45181292",
"0.45093742",
"0.4492859",
"0.44775838",
"0.4458849",
"0.4449514",
"0.44458282",
"0.44376644",
"0.44210202",
"0.4416975",
"0.44159853",
"0.43993375",
"0.4378923",
"0.43765047",
"0.43746263",
"0.43733868",
"0.4370528",
"0.43683085",
"0.4364761",
"0.43589228",
"0.43540284",
"0.4343869",
"0.43387654",
"0.43345907",
"0.43262246",
"0.4315481",
"0.43121383",
"0.43108898",
"0.43106106",
"0.4309036",
"0.4304301",
"0.43032324",
"0.42981914",
"0.42932892",
"0.42816323",
"0.42786857",
"0.42782733",
"0.42744508",
"0.4269745",
"0.4268253",
"0.4267402",
"0.42664036",
"0.42654666",
"0.42630863",
"0.42630863",
"0.42630363",
"0.4260227",
"0.42547947",
"0.42515236",
"0.4251311",
"0.42424276",
"0.42411974",
"0.42402747",
"0.4236192",
"0.42343485",
"0.42341504",
"0.42338473",
"0.4231383",
"0.4228497",
"0.42194885",
"0.42130363",
"0.42118308",
"0.42114604",
"0.42103398",
"0.42018506",
"0.41978446",
"0.41952896",
"0.41846067"
] | 0.0 | -1 |
diff is difference between sums first n bits and last n bits respectively | static
int
countSeq(
int
n,
int
diff)
{
// We can't cover difference of more
// than n with 2n bits
if
(Math.abs(diff) > n)
return
0
;
// n == 1, i.e., 2 bit long sequences
if
(n ==
1
&& diff ==
0
)
return
2
;
if
(n ==
1
&& Math.abs(diff) ==
1
)
return
1
;
int
res =
// First bit is 0 & last bit is 1
countSeq(n-
1
, diff+
1
) +
// First and last bits are same
2
*countSeq(n-
1
, diff) +
// First bit is 1 & last bit is 0
countSeq(n-
1
, diff-
1
);
return
res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int diff21(int n) {\n int dif = 21 - n;\n if (n > 21){\n dif = (n -21) * 2;\n }\n\n return dif;\n}",
"public int calculateDifference(int n) {\r\n\t\tdouble sumOfSquare=0;\r\n\t\tdouble diff=0;\r\n\t\tint squareOfSum=0;\r\n\t\tfor(int i=0;i<=n;i++) {\r\n\t\t\t//sum of square of number\r\n\t\t\tsumOfSquare=sumOfSquare+Math.pow(i, 2);\r\n\t\t\tsquareOfSum=squareOfSum+i;\r\n\t\t}\r\n\t\t//square of sum of natural number\r\n\t\tsquareOfSum=squareOfSum*squareOfSum;\r\n\t\t//difference between sum of square and square of natural number\r\n\t\tdiff=sumOfSquare-squareOfSum;\r\n\t\treturn (int) -diff;\r\n\t\t}",
"private static int calculateDifferences(int value2) {\n\t\tint sum=0,squaresum=0;\r\n\t\tfor(int i=1;i<=value;i++)\r\n\t\t{\r\n\t\t\tsum=sum+i;\r\n\t\t\t\r\n\t\t\tsquaresum=squaresum+(i*i);\r\n\t\t\t\r\n\t\t}\r\n\t\tsum=sum*sum;\r\n\t\tint diff=sum-squaresum;\r\n\t\r\n\t\t\r\n\t\treturn diff;\r\n\t}",
"private int getDiff(int[] rows, int pos, int n) {\n int diff = 0;\n unmakeMove(pos);\n boolean[] union = getUnion3();\n makeMove(pos);\n int row = rows[pos];\n if (row == DNU) {\n return -1;\n }\n boolean[] set = input[row];\n for (int i = 0; i < set.length; i++) {\n int incr = (set[i] && !union[i]) ? 1 : 0;\n diff += incr;\n }\n return diff;\n }",
"public double diff(double n, double root){\n if(n>(root*root*root)){\n diff = n-Math.pow(root,3);\n return diff;\n }\n else{\n diff = Math.pow(root,3) - n;\n return diff;\n }\n\n }",
"private static int getPrev(int n) {\n int temp = n;\n int c0 = 0, c1 = 0;\n\n while ((temp & 1) == 1) {\n c1++;\n temp >>= 1;\n }\n\n if (temp == 0) return -1; // binary representation of n does not contain zero, so no solution can be found\n\n while ((temp & 1) == 0 && temp != 0) {\n c0++;\n temp >>= 1;\n }\n\n n &= ~((1 << (c0 + c1 + 1)) - 1);\n n |= (((1 << (c1 + 1)) - 1) << (c0 - 1));\n return n;\n }",
"public int reverseBits(int n) {\n // get all bits & calculate the res\n int res = 0;\n int mask = 1;\n for (int i = 0; i < 32; ++i) {\n res *= 2;\n if (checkBit(mask, n)) {\n ++res;\n }\n mask = mask << 1;\n }\n \n return res;\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 static void main(String[] args) throws Exception {\n \n Scanner scn=new Scanner(System.in);\n int n1=scn.nextInt();\n \n int[] a1=new int[n1];\n for(int i=0;i<a1.length;i++){\n a1[i]=scn.nextInt();\n }\n \n int n2=scn.nextInt();\n int[] a2=new int[n2];\n for(int i=0;i<a2.length;i++){\n a2[i]=scn.nextInt();\n }\n \n int[] diff=new int[n2];\n int c=0;\n \n int i=a1.length-1;\n int j=a2.length-1;\n int k=diff.length-1;\n \n while(k >= 0){\n int d=0;\n int a1v= i >= 0? a1[i]: 0;\n \n if(a2[j] +c >= a1v){\n d= a2[j] + c -a1v;\n c=0;\n }else{\n d= a2[j] + c + 10 -a1v;\n c=-1;\n }\n \n diff[k] = d;\n \n i--;\n j--;\n k--;\n }\n \n int idx = 0;\n while(idx < diff.length){\n if(diff[idx] == 0){\n idx++;\n }else{\n break;\n }\n }\n \n while(idx < diff.length){\n System.out.println(diff[idx]);\n idx++;\n }\n \n\n \n \n}",
"public int reverseBits(int n) {\n int ans = 0;\n for(int i = 0; i < 32; i++){\n ans <<= 1;\n ans += n&1;\n n >>= 1;\n }\n return ans;\n }",
"public int reverseBits(int n) {\n int a=0;\n for(int i=0;i<=31;i++){\n a=a+((1&(n>>i))<<(31-i));\n }\n return a;\n }",
"private float[] accDiff(float[] oldAcc, float[] newAcc)\n {\n float[] diffAcc = new float[]{0.0f, 0.0f, 0.0f};\n\n for (int i = 0; i < 3; i++)\n {\n diffAcc[i] = (newAcc[i]-oldAcc[i]);\n }\n return diffAcc;\n }",
"public int reverseBits(int n) {\n \n if(n == 0){\n return 0;\n }\n \n int result = 0;\n \n for(int i=0;i<32;i++){\n \n result = result + (n & 1);// take the last bit from n and also add to result,note:for result we already added a dummy zero at the last so as to perform an add operation\n \n n = n >> 1;// now shift right 1 bit for the next iteration\n \n if(i<31){// need to shift only 31 because we need add a left dummy zero for the last bit\n \n result = (result << 1);// move to the right and add a zero at last so that in next iteration we can add a bit to that last place\n }\n \n \n }\n return result; \n }",
"static int[] Differenz(int[] a, int[] b){\n int i = a.length - 1;\n int[] c = new int [a.length];\n Arrays.fill(c, 0);\n while (i >= 0){\n if ((a[i] - b[i]) < 0){\n c[i] = (a[i] + 10) - b[i];\n c[i-1]--;\n }\n else c[i] = a[i] - b[i];\n i--;\n }\n return c;\n }",
"public int reverseBits3(int n) {\n int x = 0;\n for(int i=0;i<32;i++){\n x = (x<<1) + (n&1);\n n=n>>1;\n }\n return x;\n }",
"static native int jniFromDiff(AtomicLong out, long diff, int idx);",
"public static void main(String[] args) throws Exception {\n Scanner s = new Scanner(System.in);\n int n1 = s.nextInt();\n int[] a1 = new int[n1];\n for(int i=0; i<a1.length; i++){\n a1[i] = s.nextInt();\n }\n\n int n2 = s.nextInt();\n int[] a2 = new int[n2];\n for(int i=0; i<a2.length; i++){\n a2[i] = s.nextInt();\n }\n\n int[] diff = new int[n2];\n int c =0;\n int i = a1.length-1;\n int j = a2.length-1;\n int k = diff.length-1;\n\n while(k>=0){\n int d =0;\n int a1Val = i>=0?a1[i]:0;\n\n if(a2[j]+c >= a1Val){\n d = a2[j]+c - a1Val;\n c=0;\n }\n else{\n d = a2[j]+c+10 - a1Val;\n c=-1;\n }\n diff[k] = d;\n i--; j--; k--;\n }\n // printing\n // excluding leading zeros\n int ind =0;\n while(ind<diff.length){\n if(diff[ind]==0){\n ind++;\n }\n else{\n break;\n }\n }\n // printing numbers after leading zeros\n while(ind<diff.length){\n System.out.println(diff[ind]);\n ind++;\n }\n }",
"private long getChecksumForIntermediateValues(long a, long b) {\n return (long) (a + (b * Math.pow(2, 16)));\n }",
"public int reverseBits(int n) {\n int r=0;\n for(int i=0;i<32;i++){\n \tr|=((n>>i)&1)<<(31-i);\n }\n return r;\n }",
"public int numWays(int n, int k) {\n if(n == 0)\n return 0;\n int numsDiff = k;\n int numsSame = 0;\n for(int i = 2; i <= n; i++){\n int preSame = numsSame;\n numsSame = numsDiff;\n numsDiff = preSame * (k - 1) + numsDiff * (k - 1);\n }\n return numsSame + numsDiff;\n }",
"public int reverseBits(int n) {\n int rev = 0;\n for(int i = 0; i<32; i++){\n rev = rev << 1;//creating a space of 1 in reverse\n rev = rev | (n & 1);// (n & 1 will give the last bit)\n // | operator will help in entering the last bit into rev\n n = n >> 1;// delete the last bit\n } \n return rev;\n }",
"private double[] outputDifferences(double[] n) throws Exception {\n\t\tif (n.length != this.expectedOutputs.length) throw new Exception(\"ERROR: Training data incompatible with network (expected size: \" + n.length + \", got: \" + this.expectedOutputs.length + \")\");\n\t\telse {\n\t\t\tdouble[] dif = new double[n.length];\n\t\t\t\n\t\t\tfor (int i = 0; i < n.length; i ++) {\n\t\t\t\tdif[i] = this.expectedOutputs[i] - n[i];\n\t\t\t}\n\t\t\t\n\t\t\treturn dif;\n\t\t}\n\t}",
"public int findDerangement(int n) {\n\t\tlong a = 0, b = 1, i = 3, c;\n\t\tfor (; i <= n + 1; i ++) {\n\t\t\tc = (i - 1) * (a + b) % 1000000007;\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}\n\t\treturn (int) a;\n\t}",
"public int reverseBits5(int n) {\n long x = 0;\n for(int i=0;i<32;i++){\n x+= Math.pow(2,31-i)*(n>>i&1);\n }\n return (int)x;\n }",
"public int reverseBits(int n) {\n int x = 0;\n for(int i=0;i<32;i++){\n x = x<<1 | (n&1);\n n=n>>1;\n }\n return x;\n }",
"public int reverseBits(int n) {\n int mask = 1;\n int result = 0;\n for (int i = 0; i < 32; i++) {\n result = result << 1;\n if ((n & mask) != 0) {\n result++;\n }\n mask = mask << 1;\n }\n return result;\n }",
"public void diff(double[][] df, double[][] f, int dim)\r\n {\n \r\n if(dim == 1) {\r\n for(int i=0; i<pixelsWide-1; i++) {\r\n for(int j=0; j<pixelsHigh; j++) {\r\n df[i][j] = f[i+1][j] - f[i][j];\r\n }\r\n }\r\n } else {\r\n for(int i=0; i<pixelsWide; i++) {\r\n for(int j=0; j<pixelsHigh-1; j++) {\r\n df[i][j] = f[i][j+1] - f[i][j];\r\n }\r\n }\r\n }\r\n \r\n }",
"public int reverseBits(int n) {\n int answer = 0;\n for(int i =0;i<31;i++){\n answer |= (n&1);\n answer = answer<<1;\n n = n>>1;\n }\n answer |= (n&1);\n return answer;\n }",
"private static int bitLen(int w)\n {\n int t = w >>> 24;\n if (t != 0)\n {\n return 24 + bitLengths[t];\n }\n t = w >>> 16;\n if (t != 0)\n {\n return 16 + bitLengths[t];\n }\n t = w >>> 8;\n if (t != 0)\n {\n return 8 + bitLengths[t];\n }\n return bitLengths[w];\n }",
"private static short\n \tnumBitsInLastByte(int bits)\n \t{\n \t\tint modulo = bits % 8;\n \t\treturn (short)((modulo == 0) ?\n \t\t\t\t((bits == 0) ? 0 : 8) :\n \t\t\t\tmodulo);\n \t}",
"private double getSolutionDifference(int[] solution1, int[] solution2){\n double solutionDifference = 0;\n double solutionValue1 = calculateSolutionValue(solution1);\n double solutionValue2 = calculateSolutionValue(solution2);\n\n if(solutionValue1 >= solutionValue2){\n solutionDifference = solutionValue1 - solutionValue2;\n }\n else{\n solutionDifference = solutionValue2 - solutionValue1;\n }\n\n return solutionDifference;\n }",
"private static int subN(int[] a, int[] b, int len) {\n long sum = 0;\n\n while (--len >= 0) {\n sum = (a[len] & LONG_MASK) -\n (b[len] & LONG_MASK) + (sum >> 32);\n a[len] = (int)sum;\n }\n\n return (int)(sum >> 32);\n }",
"public int reverseBits(int n) {\n\n return 1;\n }",
"public static void main(String[] args) \r\n\t\t{\n\t\t\tint Result = diff21(31);\r\n\t\t\tSystem.out.println(\"The end result is: \"+Result);\r\n\t\t}",
"public static int differential(int[] post) {\n return post[1] - post[2];\n }",
"static long flippingBits(long n) {\n\n String strBinary = String.format(\"%32s\", Long.toBinaryString(n)).replace(' ', '0');\n String strBinaryFlip = \"\";\n\n for (int i = 0; i < strBinary.length(); i++) {\n if (strBinary.charAt(i) == '0') {\n strBinaryFlip = strBinaryFlip + '1';\n } else {\n strBinaryFlip = strBinaryFlip + '0';\n }\n }\n\n String result = String.format(\"%32s\", strBinaryFlip).replace(' ', '0');\n long base10 = parseLong(result,2);\n return base10;\n }",
"public static void ComputeTables() {\n int[][] nbl2bit\n = {\n new int[]{1, 0, 0, 0}, new int[]{1, 0, 0, 1}, new int[]{1, 0, 1, 0}, new int[]{1, 0, 1, 1},\n new int[]{1, 1, 0, 0}, new int[]{1, 1, 0, 1}, new int[]{1, 1, 1, 0}, new int[]{1, 1, 1, 1},\n new int[]{-1, 0, 0, 0}, new int[]{-1, 0, 0, 1}, new int[]{-1, 0, 1, 0}, new int[]{-1, 0, 1, 1},\n new int[]{-1, 1, 0, 0}, new int[]{-1, 1, 0, 1}, new int[]{-1, 1, 1, 0}, new int[]{-1, 1, 1, 1}\n };\n\n int step, nib;\n\n /* loop over all possible steps */\n for (step = 0; step <= 48; step++) {\n /* compute the step value */\n int stepval = (int) (Math.floor(16.0 * Math.pow(11.0 / 10.0, (double) step)));\n\n\n /* loop over all nibbles and compute the difference */\n for (nib = 0; nib < 16; nib++) {\n diff_lookup[step * 16 + nib] = nbl2bit[nib][0]\n * (stepval * nbl2bit[nib][1]\n + stepval / 2 * nbl2bit[nib][2]\n + stepval / 4 * nbl2bit[nib][3]\n + stepval / 8);\n }\n }\n }",
"public static double diff() {\n System.out.println(\"Enter minuend\");\n double a = getNumber();\n System.out.println(\"Enter subtrahend\");\n double b = getNumber();\n\n return a - b;\n }",
"public int reverseBits(int n) {\n int res = 0;\n for (int i = 0; i < 32; i++){\n res = (res << 1) | (n & 1);\n n = (n >> 1);\n }\n\n return res;\n\n }",
"private static int[] subtract(int[] big, int[] little) {\n int bigIndex = big.length;\n int result[] = new int[bigIndex];\n int littleIndex = little.length;\n long difference = 0;\n\n // Subtract common parts of both numbers\n while (littleIndex > 0) {\n difference = (big[--bigIndex] & LONG_MASK) -\n (little[--littleIndex] & LONG_MASK) +\n (difference >> 32);\n result[bigIndex] = (int)difference;\n }\n\n // Subtract remainder of longer number while borrow propagates\n boolean borrow = (difference >> 32 != 0);\n while (bigIndex > 0 && borrow)\n borrow = ((result[--bigIndex] = big[bigIndex] - 1) == -1);\n\n // Copy remainder of longer number\n while (bigIndex > 0)\n result[--bigIndex] = big[bigIndex];\n\n return result;\n }",
"public int[] getSumAbsoluteDifferences2(int[] nums) {\n int n = nums.length;\n int[] res = new int[n];\n for (int i = 1; i < n; i++) {\n res[0] += nums[i] - nums[0];\n }\n for (int i = 1; i < n; i++) {\n res[i] = res[i - 1] + (nums[i] - nums[i - 1]) * (i * 2 - n);\n }\n return res;\n }",
"public int reverseBits(int n) {\n long res = 0;\n int index = 31;\n \n while (n != 0) {\n res += Math.pow(2, index) * (n & 1);\n n = n >>> 1;\n index--;\n }\n \n return (int)res;\n }",
"private void computeBinDelta(float delta, float delLbl) {\n float ee = (float) Math.pow(10, (int) Math.log10(delta));\n delta /= ee;\n while (delta > 10) {\n delta /= 10;\n ee *= 10;\n }\n while (delta < 1) {\n delta *= 10;\n ee /= 10;\n }\n if (delta > 7) {\n delta = 10 * ee;\n delLbl = 50 * ee;\n } else if (delta < 1.414) {\n delta = ee;\n delLbl = 5 * ee;\n } else if (delta > 3.333) {\n delta = 5 * ee;\n delLbl = 20 * ee;\n } else {\n delta = 2 * ee;\n delLbl = 10 * ee;\n }\n }",
"public static int minAdjDiff(int arr[], int n) {\n\n // Your code here\n int min = Math.abs(arr[0] - arr[1]);\n for(int i =1;i<n-1;i++){\n min = Math.min(min, Math.abs(arr[i]-arr[i+1]));\n }\n min = Math.min(min, Math.abs(arr[n-1]-arr[0]));\n return min;\n }",
"public int difference(ArrayList<Integer> numbers) {\n\t\tif(numbers == null) {\n\t\t\treturn -1;\n\t\t} else if(numbers.size() < 1) {\n\t\t\treturn -1;\n\t\t}\n\t\tint maximum = numbers.get(0);\n\t\tint mininum = numbers.get(0);\n\t\tfor(int i = 0; i < numbers.size(); i++) {\n\t\t\tmaximum = (numbers.get(i) > maximum) ? numbers.get(i) : maximum;\n\t\t\tmininum = (numbers.get(i) < mininum) ? numbers.get(i) : mininum;\n\t\t}\n\t\treturn maximum - mininum;\t\t// default return value to ensure compilation\n\t}",
"private StringBuilder subtract(StringBuilder m, StringBuilder n) // special subtract does not take into consideration -ve result\n {\n \n \n int borrow=0 , difference=0;\n StringBuilder result=new StringBuilder();\n if(m.length()>=n.length())\n {\n n=align(n,m.length());\n \n }\n else{\n m=align(m,n.length());\n \n }\n \n String temp1=new String();\n String temp2=new String();\n for (int i=m.length()-1;i>=0;i--) {\n \n \n temp1=temp1+m.charAt(i);\n temp2=temp2+n.charAt(i);\n \n if (Integer.parseInt(temp1)>=(Integer.parseInt(temp2)+borrow))\n {\n difference=Integer.parseInt(temp1)-Integer.parseInt(temp2)-borrow;\n borrow=0;\n \n result.insert(0,Integer.toString(difference));\n temp1=\"\";\n temp2=\"\";\n }\n else{\n difference=Integer.parseInt(temp1)+10-Integer.parseInt(temp2)-borrow;\n borrow=1;\n result.insert(0,Integer.toString(difference));\n temp1=\"\";\n temp2=\"\";\n }\n \n \n }\n //int value=Integer.parseInt(result.toString());\n //result.delete(0,result.length());\n //result.append(value);\n \n \n //if (result.length()<m.length()) {\n// result=align(result,m);\n // }\n \n return result;\n \n \n }",
"private static int getChange(int n) {\n \t\n int count =0, tempCount = 0;\n while(n!=0){\n \t\n \tif(n >= 10){\n \t\ttempCount = n/10;\n \t\tn = n % 10;\n \t\tcount = count + tempCount;\n \t\tif(n==0)\n \t\t\tbreak;\n \t}\n \tif( n >= 5 && n < 10){\n \t\ttempCount = n/5;\n \t\tn = n % 5;\n \t\tcount = count + tempCount;\n \t\tif(n == 0)\n \t\t\tbreak;\n \t}\n \tif(n >= 1 && n < 5){\n \t\tcount = count + n;\n break;\n \t}\n }\n return count;\n }",
"public int reverseBits(int n) {\n int i = 0;\n int tmp = 0;\n while(i<32){\n tmp <<= 1;//tmp左移,为新来元素空出位置,注意tmp刚开始为0,远远到不了32位,所以不存在溢出的情况\n tmp |= (n & 1);//将n的最低位添加到tmp,这里n&1,表示n除了最后一位表示正确值,其他位都被置为0;和tmp 与 操作\n n >>= 1;//n右移 去掉刚刚处理的最低位\n i++;\n }\n return tmp;\n }",
"public static int shiftedDiff(String first, String second){\n\n LOG.info(\"Running shiftedDiff() method\");\n\n if(first.length() != second.length()){\n return -1;\n }\n\n if(first.equals(second)){\n LOG.info(\"Strings are equals\");\n return 0;\n }\n\n for(int i = 0; i<first.length();i++){\n first = first.substring(first.length()-1)+first.substring(0,first.length()-1);\n if(first.equals(second)){\n return i+1;\n }\n }\n return -1;\n }",
"static void findTwoMissingNumber(int a[]) {\n int miss1 = 0;\n int miss2;\n int miss1miss2 = 0;\n\n int size = a.length;\n for (int i = 0; i < size; i++) {\n miss1miss2 ^= ((i + 1) ^ a[i]);\n }\n\n miss1miss2 ^= (size + 1);\n miss1miss2 ^= (size + 2);\n\n int diff = miss1miss2 & (-miss1miss2);\n\n for (int i = 0; i < size; i++) {\n if (((i + 1) & diff) > 0)\n miss1 ^= (i + 1);\n\n if ((a[i] & diff) > 0)\n miss1 ^= a[i];\n }\n\n if (((size + 1) ^ diff) > 0)\n miss1 ^= (size + 1);\n\n if (((size + 2) ^ diff) > 0)\n miss1 ^= (size + 2);\n\n miss2 = miss1miss2 ^ miss1;\n\n System.out.println(miss1);\n System.out.println(miss2);\n }",
"public int step() {\n int lastBit = bitAt(0) ^ bitAt(currentIndex);\n char[] ch = lfsr1.toCharArray();\n for (int i = 0; i < lfsr1.length() - 2; i++) {\n ch[i] = ch[i + 1];\n }\n\n ch[lfsr1.length() - 2] = (char) (lastBit + '0');\n int temporary = lfsr1.length();\n lfsr1 = \"\";\n for (int i = 0; i < temporary; i++) {\n lfsr1 = lfsr1 + ch[i];\n }\n\n return lastBit;\n }",
"public int reverseBits(int n) {\n int result = 0;\n for (int i = 0; i < 32; i++) {\n if ((n & 1) == 1) {\n result = (result << 1) + 1;\n } else {\n result <<= 1;\n }\n n >>= 1;\n }\n return result;\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 int bigDiff(int[] nums) {\n int max = nums[0];\n int min = nums[0];\n\n for (int i = 0; i < nums.length; i = i + 1) {\n if(max < nums[i]){\n max = nums[i];\n }\n\n if(min > nums[i]){\n min = nums[i];\n }\n }\n\n return max - min;\n }",
"static long countInversions(int[] arr) {\n long ans = 0;\n int n = Arrays.stream(arr).max().getAsInt();\n BIT bit = new BIT(n);\n for (int i = 0; i < arr.length; i++) {\n ans += bit.sum(n) - bit.sum(arr[i]);\n bit.add(arr[i], 1);\n }\n return ans;\n }",
"public int reverseBits2(int n) {\n int x=0;\n for(int i=0;i<32;i++)\n x=x<<1 | (n>>i)&1;\n return x;\n }",
"static int countWaysUtil(int n, int m) \n\t { \n\t int res[] = new int[n]; \n\t res[0] = 1; res[1] = 1; \n\t for (int i=2; i<n; i++) \n\t { \n\t res[i] = 0; \n\t for (int j=1; j<=m && j<=i; j++) \n\t res[i] += res[i-j]; \n\t } \n\t return res[n-1]; \n\t }",
"public int[] getSumAbsoluteDifferences(int[] nums) {\n int n = nums.length;\n int[] right = new int[n + 1];\n for (int i = n - 1; i >= 0; i--) {\n right[i] = right[i + 1] + nums[i];\n }\n int[] res = new int[n];\n for (int i = 0, leftSum = 0; i < n; i++) {\n res[i] = right[i + 1] - leftSum + (i * 2 + 1 - n) * nums[i];\n leftSum += nums[i];\n }\n return res;\n }",
"public static long countWaysToClimb(int[] steps, int n) {\n\n int ans[] = new int[n+1];\n ans[0]=1; // why ?? because we are going bottom up and same as recursion when we reach ground level 0 we know\n // there was a way . Consider steps=[2,3]; so cWC(steps,2), cWC(steps,3) will have 2-2,3-2 and we are having 1 //return valuel\n for(int i=1;i<=n;i++){\n for(int st:steps){\n if(i-st>=0){\n ans[i]+=ans[i-st];\n }\n }\n }\n return ans[n];\n\n\n\n }",
"private static int setBits(int n) {\r\n int highestBitValue = 1;\r\n int c = 0;\r\n\r\n while (highestBitValue < n) {\r\n highestBitValue = highestBitValue * 2;\r\n }\r\n\r\n \r\n int currentBitValue = highestBitValue;\r\n while (currentBitValue > 0) {\r\n if (currentBitValue <= n) {\r\n\r\n n -= currentBitValue;\r\n c++;\r\n }\r\n currentBitValue = currentBitValue / 2;\r\n }\r\n\r\n return c;\r\n }",
"@Override\n\tpublic double[] diff(double[] x, double[] label) {\n\t\tdouble[] temp = MatrixOperation.zero(x.length);\n\t\tfor(int i = 0;i<x.length;i++) {\n\t\t\ttemp[i] = x[i] - label[i];\n\t\t}\n\t\treturn temp;\n\t}",
"public static long D(long n) {\n\t\tlong count = 0;\n\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong recCurrent=362;\n\n\t\twhile (n >= m) {\t\n\t\t\tif (m %6 == 0) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3L*recCurrent-2*recPrev + 38L;\n\t\t\t\trecPrev = current;\n\t\t\t} else if (m%6== 1) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3L*recCurrent-2*recPrev + 36L;\n\t\t\t\trecPrev = current;\n\t\t\t} else if (m%6==2 || m%6==3 || m%6==5) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3L*recCurrent-2*recPrev + 32L;\n\t\t\t\trecPrev = current;\n\t\t\t} else /*(m%6==4)*/{\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3L*recCurrent-2*recPrev + 30L;\n\t\t\t\trecPrev = current;\n\t\t\t}\n\t\t\trecPrev = recPrev % 87654321;\n\t\t\trecCurrent = recCurrent % 87654321;\t\n\t\t\tif (recCurrent == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tm +=1;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn count;\n\n\t}",
"public V difference(V v1, V v2);",
"byte produceChecksum(byte[] bytes, int start, int end)\n {\n // From the sysex document:\n //\n // \"Sum of all databytes truncated to 7 bits.\n // The addition is done in 8 bit format, the result is \n // masked to 7 bits (00h to 7Fh). A checksum of 7Fh is\n // always accepted as valid.\n // IMPORTANT: the MIDI status-bytes as well as the \n // ID's are not used for computing the checksum.\"\n \n // NOTE: it appears that the WaldorfPulse2's sysex does NOT include\n // the NN or DD data bytes. \n \n byte b = 0; // I *think* signed will work\n for(int i = start; i < end + 1; i++)\n b += bytes[i];\n \n b = (byte)(b & (byte)127);\n \n return b;\n }",
"public int reverseBits(int n) {\n /*\n StringBuilder ans = new StringBuilder();\n for(int i=0; i<32; i++)\n {\n int temp = n&1;\n ans.append(temp);\n n = n>>>1;\n }\n return Integer.parseInt(ans.toString(), 2);\n */\n \n int result = 0;\n for(int i=0; i<32; i++){\n result <<= 1;\n result += n&1;\n n >>>= 1;\n }\n \n return result;\n \n }",
"public static int[] setDiff(int[] nodes1, int[] nodes2) {\r\n\t\tint[] output = new int[1];\r\n\t\tint idx_count = 0;\r\n\t\tfor(int i=0; i<nodes1.length; i++) {\t\t\t\r\n\t\t\tif(nodes2.length==0) {\r\n\t\t\t\tif(idx_count==0) {\r\n\t\t\t\t\toutput[0] = nodes1[i];\r\n\t\t\t\t\tidx_count++;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\toutput = setAdd(output,nodes1[i]);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int j=0; j<nodes2.length; j++) {\r\n\t\t\t\tif(nodes1[i]==nodes2[j]) {\r\n\t\t\t\t\tnodes2 = removeTheElement(nodes2,j);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(j==nodes2.length-1) {\r\n\t\t\t\t\tif(idx_count==0) {\r\n\t\t\t\t\t\toutput[0] = nodes1[i];\r\n\t\t\t\t\t\tidx_count++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\toutput = setAdd(output,nodes1[i]);\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\treturn output;\r\n\t}",
"static int diagonalDifference(int[][] arr) {\n return Math.abs(leftDiagonalSum(arr) - rightDiagonalSum(arr));\n }",
"public static int bigDiff(int[] nums) {\n\n {\n int max = nums[0];\n int min = nums[0];\n for (int i = 1; i < nums.length; i++) {\n if (nums[i] > max) {\n max = nums[i];\n } else if (nums[i] < min) {\n min = nums[i];\n }\n }\n return (max - min);\n }\n }",
"public List<Integer> diffWaysToCompute(String input) {\n List<Integer> result=new ArrayList<>();\n if(input==null||input.length()==0) return result;\n List<String> ops=new ArrayList<>();\n for(int i=0; i<input.length(); i++){\n int j=i;\n while(j<input.length()&&Character.isDigit(input.charAt(j)))\n j++;\n ops.add(input.substring(i, j));\n if(j!=input.length()) ops.add(input.substring(j, j+1));\n i=j;\n }\n int N=(ops.size()+1)/2; //num of integers\n ArrayList<Integer>[][] dp=(ArrayList<Integer>[][]) new ArrayList[N][N];\n for(int d=0; d<N; d++){\n if(d==0){\n for(int i=0; i<N; i++){\n dp[i][i]=new ArrayList<>();\n dp[i][i].add(Integer.valueOf(ops.get(i*2)));\n }\n continue;\n }\n for(int i=0; i<N-d; i++){\n dp[i][i+d]=new ArrayList<>();\n for(int j=i; j<i+d; j++){\n ArrayList<Integer> left=dp[i][j], right=dp[j+1][i+d];\n String operator=ops.get(j*2+1);\n for(int leftNum:left)\n for(int rightNum:right){\n if(operator.equals(\"+\"))\n dp[i][i+d].add(leftNum+rightNum);\n else if(operator.equals(\"-\"))\n dp[i][i+d].add(leftNum-rightNum);\n else\n dp[i][i+d].add(leftNum*rightNum);\n }\n }\n }\n }\n return dp[0][N-1];\n}",
"public int reversePairs4(int[] nums) {\n int count = 0;\n Map<Long, Integer> bit = new HashMap<>();\n final long shift = 1L << 32;\n final long max = shift << 1;\n for (int i = nums.length - 1; i >= 0; i--) {\n for (long j = nums[i] - 1 + shift; j > 0; j -= (j & -j)) {\n count += bit.getOrDefault(j, 0);\n }\n for (long j = (long)nums[i] * 2 + shift; j < max; j += (j & -j)) {\n bit.put(j, bit.getOrDefault(j, 0) + 1);\n }\n }\n return count;\n }",
"private static int coinChange(int[] arr,int n, int sum) {\n\t\tint[][] dp = new int[n+1][sum+1];\n\t\tfor(int i=0;i<n+1;i++) {\n\t\t\tdp[i][0]=1;\n\t\t}\n\t\tfor(int i=0;i<sum+1;i++) {\n\t\t\t\n\t\t\tif(i%arr[0]==0)\n\t\t\tdp[0][i]=i/arr[0];\n\t\t\telse\n\t\t\t\tdp[0][i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<n+1;i++) {\n\t\t\tfor(int j=1;j<sum+1;j++) {\n\t\t\t\tif(arr[i-1]>j)\n\t\t\t\t\tdp[i][j]=dp[i-1][j];\n\t\t\t\telse\n\t\t\t\t\tdp[i][j]=Math.min(dp[i-1][j], dp[i][j-arr[i-1]]+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[n][sum];\n\t}",
"private int calcFadcLength(int nFadc) {\n return 2*nFadc;\n }",
"static int bitLengthForInt(int n) {\n return 32 - Integer.numberOfLeadingZeros(n);\n }",
"private static int bitLength(int[] val, int len) {\n if (len == 0)\n return 0;\n return ((len - 1) << 5) + bitLengthForInt(val[0]);\n }",
"public int hammingWeight2(int n) {\n int count = 0;\n for (int i = n; i != 0; i &= (i - 1)) {\n count++;\n }\n return count;\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int len = in.nextInt();\n int total = len * len;\n int count = 1;\n int d1Sum = 0; \n int d2Sum = 0;\n int d1Count = 1;\n int d2Count = len;\n boolean d1 = true;\n boolean d2 = true;\n \n for(int i = 0; i < total; i++){\n int temp = in.nextInt();\n if(count > len){\n count -= len;\n d1 = true;\n d2 = true;\n }\n if(count == d1Count && d1){\n d1Sum += temp;\n d1Count ++;\n d1 = false;\n }\n if(count == d2Count && d2){\n d2Sum += temp;\n d2Count--;\n d2 = false;\n }\n count++;\n }\n \n System.out.println(Math.abs(d1Sum - d2Sum));\n }",
"public int getDifference(DaysBetween dt1, DaysBetween dt2)\n {\n // COUNT TOTAL NUMBER OF DAYS BEFORE FIRST DATE 'dt1'\n \n // initialize count using years and day\n int n1 = dt1.y * 365 + dt1.d;\n \n // Add days for months in given date\n for (int i = 0; i < dt1.m - 1; i++) \n {\n n1 += monthDays[i];\n }\n \n // Since every leap year is of 366 days,\n // Add a day for every leap year\n n1 += countLeapYears(dt1);\n \n // SIMILARLY, COUNT TOTAL NUMBER OF DAYS BEFORE 'dt2'\n int n2 = dt2.y * 365 + dt2.d;\n for (int i = 0; i < dt2.m - 1; i++)\n {\n n2 += monthDays[i];\n }\n n2 += countLeapYears(dt2);\n \n // return difference between two counts\n return (n2 - n1);\n }",
"private static double dif(Color one, Color two) {\n\t\treturn Math.abs(one.getRed() - two.getRed()) + Math.abs(one.getGreen() - two.getGreen()) + Math.abs(one.getBlue() - two.getBlue());\n\t}",
"public int reverseBits(int n) {\n // 001011 -> 110100\n // get bits from right to left\n // use & and mask 1 to keep the right most bit\n // 001001 & 000001 -> 000001\n \n // unsigned integer has 32 bits \n int res = 0;\n for (int i = 0; i < 32; i++) {\n // must shift res first otherwise we will lose the first bit\n res <<= 1;\n res = res + (n & 1);\n n >>= 1;\n }\n \n return res;\n }",
"@Test\r\n\tpublic void testDifference() {\n\t\tnum1 = 12;\r\n\t\tnum2 = 3;\r\n\t\tresult = calculate.difference(num1, num2); //stores the difference between two int into result\r\n\t\texpected = 9;\r\n\t\t\r\n\t\tassertEquals(expected,result);\t//compares the expected to the actual result, if they dont match a fail occurs\r\n\t}",
"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 int findSplitR(int [] sortedMortonCodes, int first, int end)\n {\n int left = first;\n int right = end;\n \n // Calculate the number of identical bits from higher end\n int num_identical = delta(sortedMortonCodes, left, right);\n \n System.out.println(num_identical);\n \n do\n {\n // Proposed split\n int new_split = (right + left) / 2;\n\n // If it has more equal leading bits than left and right accept it\n if (delta(sortedMortonCodes, left, new_split) > num_identical) \n left = new_split; \n else \n right = new_split; \n }\n while (right > left + 1);\n \n return left;\n }",
"public static int frog(int n, int [] h){\n\n int dp[] = new int [n];\n\n dp[0] = 0;\n dp[1] = Math.abs(h[1] - h[0]);\n\n for(int i = 2; i < n ; i ++){\n\n dp[i] = Math.min(dp [i - 2] + Math.abs(h[i] - h[i - 2]), dp[i - 1] + Math.abs(h[i] - h[i - 1]));\n\n\n\n }\n //print(dp);\n return dp[n - 1];\n }",
"public int getDelta() {\n\t\treturn (int) ((end - start) % Integer.MAX_VALUE);\n\t}",
"public static int reverseBits(int n) {\n\n int res = 0;\n for (int i = 1; i <= 32; i++){\n //结果往左移一位,来空出以为放原数字的最后一位。此时res最后一位为0\n res <<= 1;\n //n&1得到n二进制位的最后一位,通过与res最后一位0进行或运算,放入到res中\n res |= n&1;\n //n向右移动一位,即丢弃已经存入res中的二进制位\n n >>= 1;\n }\n return res;\n }",
"public int reverseBits4(int n) {\n int x = 0;\n for(int i=0;i<32;i++){\n int t = n>>i&1;\n x= x | t<<(31-i);\n }\n return x;\n }",
"public static int binaryGap_opt(int n) {\n int ans = 0;\n int last = -1;\n for (int i = 0; n != 0; i++) {\n if ((n & 0x01) == 1) {\n if (last >= 0) {\n ans = Math.max(ans, i - last);\n }\n last = i;\n }\n\n n = n >> 1;\n }\n\n return ans;\n }",
"public BSTSet difference(BSTSet s) {\n int[] thisArray = BSTToArray();\n int[] sArray = s.BSTToArray();\n\n BSTSet diffSet = new BSTSet(thisArray);\n\n for (int value : sArray) {\n diffSet.remove(value);\n }\n\n return diffSet;\n }",
"private static int getMissingNum(int[] nums) {\n int diff1 = Integer.MAX_VALUE;\n int diff2 = Integer.MAX_VALUE;\n int diff1Count = 0;\n int diff2Count = 0;\n int firstDiff1Value = Integer.MAX_VALUE;\n int firstDiff2Value = Integer.MAX_VALUE;\n for (int i = 1; i < nums.length; i++) {\n int diff = nums[i] - nums[i - 1];\n if (diff1Count + diff2Count > 2) {\n\n } else if (diff1Count == 0 || diff == diff1) {\n if (diff1Count == 0) { firstDiff1Value = nums[i -1]; }\n diff1Count++;\n diff1 = diff;\n } else if (diff2Count == 0 || diff == diff2) {\n if (diff2Count == 0) { firstDiff2Value = nums[i -1]; }\n diff2Count++;\n diff2 = diff;\n }\n }\n boolean isDiff1Larger = diff1Count > diff2Count;\n if (isDiff1Larger) {\n return firstDiff2Value + diff1;\n } else {\n return firstDiff1Value + diff2;\n }\n }",
"int bitRange(int num, int s, int n)\n {\n return (num >> s) & ~(-1 << n);\n }",
"public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }",
"public void calculateDifferences() {\n\t\t\tMap<Integer, Integer> shifts = new HashMap<Integer, Integer>();\n\t\t\tfor (int voiceDetected : vDitected) {\n\t\t\t\tfor (int oldValue : occurences) {\n\t\t\t\t\tint shift = voiceDetected - oldValue;\n\t\t\t\t\tif (shifts.containsKey(shift)) {\n\t\t\t\t\t\tshifts.put(shift, shifts.get(shift) + 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshifts.put(shift, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!shifts.isEmpty()) {\n\t\t\t\tpossibleShift = getMaxValuedKey(shifts);\n\t\t\t\tvaluesSet = true;\n\t\t\t}\n\t\t}",
"static int maximumDifferenceSum(int arr[], int N)\n {\n int dp[][] = new int [N][2];\n\n for (int i = 0; i < N; i++)\n dp[i][0] = dp[i][1] = 0;\n\n for (int i = 0; i< (N - 1); i++)\n {\n /* for [i+1][0] (i.e. current modified\n value is 1), choose maximum from\n dp[i][0] + abs(1 - 1) = dp[i][0] and\n dp[i][1] + abs(1 - arr[i]) */\n dp[i + 1][0] = Math.max(dp[i][0],\n dp[i][1] + Math.abs(1 - arr[i]));\n\n /* for [i+1][1] (i.e. current modified value\n is arr[i+1]), choose maximum from\n dp[i][0] + abs(arr[i+1] - 1) and\n dp[i][1] + abs(arr[i+1] - arr[i])*/\n dp[i + 1][1] = Math.max(dp[i][0] +\n Math.abs(arr[i + 1] - 1),\n dp[i][1] + Math.abs(arr[i + 1]\n - arr[i]));\n }\n\n return Math.max(dp[N - 1][0], dp[N - 1][1]);\n }",
"public int totalHammingDistance(int[] nums) {\n int total = 0, n = nums.length;\n for (int j = 0; j < 32; j++) {\n int bitCount = 0;\n for (int i = 0; i < n; i++)\n bitCount += (nums[i] >> j) & 1;\n total += bitCount * (n - bitCount);\n }\n return total;\n }",
"public static void subtract(int[] n1, int[] n2, int[] result, int[]sign) {\n\t\tint b = n1.length-1;\n\t\tint carry = 0;\n\t\t\n\t\tboolean smaller = (compareTo(n2, n1) < 0);\n//\t\t// confirm that n2 is smaller than n1. If so, we reverse. Assume that\n//\t\t// n2 is smaller.\n//\t\tboolean smaller = true;\n//\t\tfor (int i = 0; i < n1.length; i++) {\n//\t\t\tif (n2[i] == n1[i]) { \n//\t\t\t\tcontinue;\n//\t\t\t}\n//\n//\t\t\t// Must be able to report by now...\n//\t\t\tif (n2[i] > n1[i]) {\n//\t\t\t\tsmaller = false;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t\twhile (b >= 0) {\n\t\t\t\n\t\t\tint s = n1[b] - n2[b];\n\t\t\tif (!smaller) { s = -s; }\n\t\t\ts += carry;\n\t\t\tif (s >= 0) {\n\t\t\t\tresult[b] = s;\n\t\t\t\tcarry = 0;\n\t\t\t} else {\n\t\t\t\tcarry = -1;\n\t\t\t\tresult[b] = s + 10;\n\t\t\t}\n\t\t\t\n\t\t\tb--;\n\t\t}\n\t\t\n\t\tif (!smaller) {\n\t\t\tsign[0] = -1;\n\t\t} else {\n\t\t\tsign[0] = carry+0;\n\t\t}\n\t}",
"static int countSetBits(int n)\r\n {\r\n int count = 0;\r\n while (n > 0) {\r\n count += n & 1;\r\n n >>= 1;\r\n }\r\n return count;\r\n }",
"public static long stepPerms(int n) {\n long[] d = new long[n];\n\n for (int j = 0; j < Math.min(3, n); j++) {\n d[j] = 1;\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n if (i > j) {\n d[i] += d[i - j - 1];\n }\n d[i] %= MOD;\n }\n }\n return d[n - 1];\n }",
"private static int[] subtract(int[] big, long val) {\n int highWord = (int)(val >>> 32);\n int bigIndex = big.length;\n int result[] = new int[bigIndex];\n long difference = 0;\n\n if (highWord == 0) {\n difference = (big[--bigIndex] & LONG_MASK) - val;\n result[bigIndex] = (int)difference;\n } else {\n difference = (big[--bigIndex] & LONG_MASK) - (val & LONG_MASK);\n result[bigIndex] = (int)difference;\n difference = (big[--bigIndex] & LONG_MASK) - (highWord & LONG_MASK) + (difference >> 32);\n result[bigIndex] = (int)difference;\n }\n\n // Subtract remainder of longer number while borrow propagates\n boolean borrow = (difference >> 32 != 0);\n while (bigIndex > 0 && borrow)\n borrow = ((result[--bigIndex] = big[bigIndex] - 1) == -1);\n\n // Copy remainder of longer number\n while (bigIndex > 0)\n result[--bigIndex] = big[bigIndex];\n\n return result;\n }",
"private static int maxDifference(int[] arr) {\n\t\tint maxDiff = arr[1] - arr[0];\n\t\tint minElement = arr[0];\n\t\t\n\t\tfor(int i = 1 ; i < arr.length; i++)\n\t\t{\n\t\t\tif(arr[i] - minElement > maxDiff)\n\t\t\t{\n\t\t\t\tmaxDiff = arr[i] - minElement;\n\t\t\t}\n\t\t\tif(arr[i] < minElement)\n\t\t\t{\n\t\t\t\tminElement = arr[i];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn maxDiff;\n\t}",
"public int reverseBits6(int n) {\n return Integer.reverse(n); \n }"
] | [
"0.60162306",
"0.5918595",
"0.5754399",
"0.5642644",
"0.55779713",
"0.5397041",
"0.5375853",
"0.5370198",
"0.5362022",
"0.5281736",
"0.52731556",
"0.5260478",
"0.5252748",
"0.52356184",
"0.5218049",
"0.5216897",
"0.51961744",
"0.5193686",
"0.5182649",
"0.5155477",
"0.5147791",
"0.5141681",
"0.51408714",
"0.51399",
"0.5118287",
"0.51082164",
"0.5098468",
"0.5072285",
"0.5051599",
"0.5049446",
"0.50492316",
"0.5039586",
"0.50372994",
"0.50315404",
"0.5025974",
"0.5022437",
"0.5015122",
"0.4998197",
"0.4996987",
"0.49923116",
"0.49888477",
"0.49835384",
"0.49793518",
"0.49609765",
"0.49577683",
"0.49536645",
"0.49533263",
"0.49532568",
"0.49522525",
"0.49446663",
"0.49390826",
"0.49349394",
"0.49339372",
"0.49290693",
"0.49274743",
"0.4924082",
"0.49223053",
"0.49136174",
"0.49064505",
"0.49042606",
"0.4892313",
"0.48897114",
"0.48835394",
"0.4881897",
"0.4873422",
"0.48654884",
"0.48587164",
"0.48570827",
"0.48549727",
"0.48511913",
"0.48332748",
"0.4833023",
"0.48273367",
"0.48255992",
"0.48209837",
"0.48195076",
"0.4817634",
"0.48140478",
"0.48016205",
"0.4798355",
"0.47937986",
"0.4793633",
"0.478552",
"0.478249",
"0.4775819",
"0.4773893",
"0.47584018",
"0.47573608",
"0.47541794",
"0.475193",
"0.47498232",
"0.47398576",
"0.47377464",
"0.47264817",
"0.47240812",
"0.47162348",
"0.47123435",
"0.47074285",
"0.47050348",
"0.4703003"
] | 0.6323646 | 0 |
boolean indicating wether or not button has been clicked GameButton constructor | public GameButton(Texture tex, float x, float y, OrthographicCamera cam) {
this.tex = tex;
this.x = x;
this.y = y;
this.cam = cam;
width = tex.getWidth();
height = tex.getHeight();
lastTouch = new Vector3();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkStartNewGameButton() {\n\t\tif(mButtons[0].isVisible() && Gdx.input.justTouched()){\n\t\t\t// Grab the touch position, saved as a Vector3\n\t\t\tmLastTouch.set(Gdx.input.getX(), Gdx.input.getY(), 0);\n\t\t\tmCamera.unproject(mLastTouch); // Translates to game world coordinates\n\t\t\t// The button is visible and the screen was just touched\n\t\t\t// See if the touch was in the button's outer rectangle\n\t\t\tif(mButtons[0].getRect().contains(mLastTouch.x, mLastTouch.y)){\n\t\t\t\t// The \"New Game\" button was pressed, start a new game!\n\t\t\t\tmRoundNumber = 1;\n\t\t\t\tresetRoundVars();\n\t\t\t\tmGameState = STATE_ROUND_START;\n\t\t\t\thideAllButtons();\n\t\t\t}\n\t\t}\n\t}",
"public boolean wasButtonJustPressed(int playerNum) {\r\n if (button.clicked) {\r\n button.clicked = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public GameButton() {\n initialize();\n }",
"public boolean isClicked() { return clicked; }",
"public static boolean isButtonPressed() {\n return button.isPressed();\n }",
"public boolean isButtonPressed(int playerNum) {\r\n return button.pressed;\r\n }",
"public boolean isButton() {\n return this.type == Type.BUTTON;\n }",
"public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}",
"public boolean isClicked() {\n\t\treturn clicked;\n\t}",
"public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"public boolean getClicked(){\n return this.isPressed;\n }",
"public boolean getIsOperator_GearStartSequence_BtnJustPressed()\n\t{\n\t\treturn super.getIsOperatorBlueBtnXJustPressed();\n\t}",
"public boolean isCardClicked(){\n\t\treturn cardClicked;\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate boolean wasAnyButtonPressed() {\n\t\tfor (ArcadeButton button : buttons) {\n\t\t\tif (button.getPressCounter() > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean wasJustPressed() {\n\t\treturn (mNow && (!mLast));\n\t}",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public abstract boolean onButtonClick(Player player, int button);",
"public boolean isPressed() {\n\t\treturn get();\n\t}",
"@Override\n public void actionPerformed(ActionEvent arg0) {\n if (zalozenaHra == false) {\n gameConnectButton.setEnabled(false);\n newGameButton.setText(\"Zrus zalozeni\");\n zalozenaHra = true;\n komunikace.CreateGame();\n } else {\n gameConnectButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n zalozenaHra = false;\n komunikace.cancelGame();\n }\n\n }",
"public boolean getIsClick() {return isClick;}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean buttonPressed(Button button) {\n return (!buttonsPressed.get(button.getId()) && joystick.getRawButton(button.getId()));\n }",
"public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}",
"protected abstract boolean up(int button);",
"protected boolean hasPositiveButton() {\n return false;\n }",
"public boolean isCancelled()\n\t{\n\t\treturn _buttonHit;\n\t}",
"public boolean pressed() {\n return pressed;\n }",
"private void startGameButton() {\n startGame = new JButton(\"Aloita peli!\");\n ActionListener startGameListener = new ActionListener() {\n public void actionPerformed(ActionEvent actionEvent) {\n controller.startGame();\n }\n };\n startGame.addActionListener(startGameListener);\n }",
"public boolean getButtonPressed(Button button) {\n return getButtonPressed(button.getNumber());\n }",
"public boolean isFirstClick() {\n return firstClick;\n }",
"@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}",
"public boolean isPressed(int b) {\n if (b >= 0 && b < buttonPressed.length) {\n return buttonPressed[b] && !buttonLastPressed[b];\n } else {\n return false;\n }\n }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\r\n\t\t\tif (event.getSource() == newGameButton) {\r\n\t\t\t\tframeStack.startGame();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public boolean hasButton(String key) {\n return !getGUIButtons(key).isEmpty();\n }",
"public boolean isFirstClick(){\n\t\treturn firsttime;\n\t}",
"Button(int ID, Texture image) {\n\n this.ID = ID;\n objectTexture = image;\n\n //Player 1 buttons\n int buttonx = Gdx.graphics.getWidth() - (Gdx.graphics.getHeight() / 4);\n int button1y = 0;\n int button2y = Gdx.graphics.getHeight() / 4;\n int button3y = Gdx.graphics.getHeight() / 2;\n int button4y = (3 * Gdx.graphics.getHeight()) / 4;\n //Player 2 buttons\n int buttonx2 = 0;\n int button5y = (3 * Gdx.graphics.getHeight()) / 4;\n int button6y = Gdx.graphics.getHeight() / 2;\n int button7y = Gdx.graphics.getHeight() / 4;\n int button8y = 0;\n //StartGame Button\n int startGameX = (Gdx.graphics.getWidth()/2)-((Gdx.graphics.getWidth()/3)/2);\n int startGameY = (Gdx.graphics.getHeight()/3)-(Gdx.graphics.getWidth()/3/2/2);\n\n //check which button we are\n switch (ID) {\n case 1:\n currentPosition = new GridPoint2(buttonx, button1y);\n break;\n case 2:\n currentPosition = new GridPoint2(buttonx, button2y);\n break;\n case 3:\n currentPosition = new GridPoint2(buttonx, button3y);\n break;\n case 4:\n currentPosition = new GridPoint2(buttonx, button4y);\n break;\n case 5:\n currentPosition = new GridPoint2(buttonx2, button5y);\n break;\n case 6:\n currentPosition = new GridPoint2(buttonx2, button6y);\n break;\n case 7:\n currentPosition = new GridPoint2(buttonx2, button7y);\n break;\n case 8:\n currentPosition = new GridPoint2(buttonx2, button8y);\n break;\n case 9:\n currentPosition = new GridPoint2(startGameX, startGameY);\n break;\n }\n\n //Now set the area to be clicked. first two parameters are position, then size\n if (ID == 9)\n {\n clickArea = new Rectangle(startGameX, Gdx.graphics.getHeight()-startGameY-(Gdx.graphics.getWidth()/3/2),\n Gdx.graphics.getWidth()/3, (Gdx.graphics.getWidth()/3)/2);\n }\n else {\n clickArea = new Rectangle(currentPosition.x, currentPosition.y,\n Gdx.graphics.getHeight() / 4, Gdx.graphics.getHeight() / 4);\n }\n }",
"boolean hasAction();",
"boolean hasAction();",
"public void buttonClicked();",
"public void pressNewGame() {\n }",
"public boolean isMouseClicked(){\n\t\treturn mouseClick;\n\t}",
"boolean getButtonRelease(Buttons but);",
"public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }",
"boolean hasClickView();",
"void newGame(boolean isAccepted);",
"public boolean isMouseClicked() {\n\t\treturn input.isMouseClicked();\n\t}",
"public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public abstract void buttonPressed();",
"public static Boolean playBtn() { \n\t\tboolean startGame= false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tstartGame=true;\n\t\t}\n\t\treturn startGame; \n\t}",
"public boolean getAButton() {\n\t\treturn getRawButton(A_Button);\n\t}",
"public boolean clickOnStartButton() {\r\n\t\ttry {\r\n\t\t\tgetAssignmentStratButton().click();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean getAButton() {\n\t\treturn getRawButton(A_BUTTON);\n\t}",
"@Override\r\n\t\t\tpublic void onClick(ButtonSprite button, float arg1, float arg2) {\n\r\n\t\t\t\tif (button == settingBtn) {\r\n\t\t\t\t\tif (isSetting) {\r\n\t\t\t\t\t\tisSetting = false;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tisSetting = true;\r\n\t\t\t\t\t\tMainActivity.playScene.pauseGame();\r\n\t\t\t\t\t\tbgSettingSpr.setVisible(true);\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (button == musicBtn) {\r\n\t\t\t\t\tif (ConfigManager.IS_MUSIC) {\r\n\t\t\t\t\t\tConfigManager.IS_MUSIC = false;\r\n\t\t\t\t\t\tif (MainActivity.playScene.bgMusic.isPlaying()) {\r\n\t\t\t\t\t\t\tMainActivity.playScene.bgMusic.stop();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tConfigManager.IS_MUSIC = true;\r\n\t\t\t\t\t\tMainActivity.playScene.bgMusic.play();\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(0);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (button == soundBtn) {\r\n\t\t\t\t\tif (ConfigManager.IS_SOUND) {\r\n\t\t\t\t\t\tConfigManager.IS_SOUND = false;\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tConfigManager.IS_SOUND = true;\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}",
"@Override\n // Could call like runGame in here? Then show new game state?\n public void actionPerformed(ActionEvent e) {\n\n if (e.getSource() == move1.buttonObj) {\n move1.buttonObj.setText(\"The button has been clicked\");\n }\n\n }",
"@Override\n\tpublic boolean activate() {\n\t\tfinal Component CANCEL_BUTTON = CONSTS.CANCEL_BUTTON;\n\t\treturn ctx.backpack.select().id(CONSTS.fletching.getId()).count() >= 1\n\t\t\t\t&& !CANCEL_BUTTON.valid() \n\t\t\t\t&& !CANCEL_BUTTON.visible();\n\t}",
"public boolean didUserClick(){\n return userClick;\n }",
"private void currentGamesBtnListener() {\n currentGamesBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new CurrentGamesScreen(game));\n }\n });\n }",
"private void checkMouseClick()\n {\n MouseInfo userClick = Greenfoot.getMouseInfo();\n \n int columnNum;\n int rowNum;\n \n if( Greenfoot.mouseClicked(this) )\n {\n columnNum = userClick.getX() / ( getWidth() / 3 );\n rowNum = userClick.getY() / ( getHeight() / 3 );\n \n if( board[rowNum][columnNum] == \"\" )\n {\n if( PlayerOneTurn == true )\n {\n board[rowNum][columnNum] = \"X\";\n \n PlayerOneTurn = false;\n messageShown = false;\n }\n else\n {\n board[rowNum][columnNum] = \"O\";\n \n PlayerOneTurn = true;\n messageShown = false;\n }\n }\n else\n {\n JOptionPane.showMessageDialog( null, \"you should select a different spot.\", \"Wrong step\", JOptionPane.PLAIN_MESSAGE );\n }\n }\n \n }",
"boolean isGameComplete();",
"public boolean getButton(Button button) {\n return getButton(button.getNumber());\n }",
"protected boolean hasGameStarted() {\r\n return super.hasGameStarted();\r\n }",
"public JButton getNewGameButton() {\n\t\treturn newGameButton;\n\t}",
"public void setClicked(){\n\t\tclicked=true;\n\t}",
"@Override\n public boolean play(String btn)\n {\n return btn.isEmpty();\n }",
"private void StartGameButtonActionPerformed(java.awt.event.ActionEvent evt) {\n StartGame();\n }",
"boolean hasStartGameRequest();",
"public boolean gameWon(){\n return false;\n }",
"void buttonPressed(ButtonType type);",
"protected boolean isFinished() {\n \tif(Robot.oi.btnIdle.get()) {\n \t\treturn CommandUtils.stateChange(this, new Idle());\n \t}\n\n \tif( Robot.oi.btnShoot.get()) {\n \t\treturn CommandUtils.stateChange(this, new Shooting()); \n \t}\n \t\n \tif(Robot.oi.btnUnjam.get()){\n \t\treturn CommandUtils.stateChange(this, new Unjam());\n \t}\n return false;\n }",
"public boolean isDisplayed_click_CloseModal_Button(){\r\n\t\tif(click_CloseModal_Button.isDisplayed()) { return true; } else { return false;} \r\n\t}",
"public boolean winState() {\n\t\treturn this.numTargets == this.onTargets;\n\t}",
"public boolean get() {\n\t\t\tint i = 0; \n\t\t\twhile(i < buttons.length) {\n\t\t\t\tif (!buttons[i].get()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"public boolean isEnabled_click_CloseModal_Button(){\r\n\t\tif(click_CloseModal_Button.isEnabled()) { return true; } else { return false;} \r\n\t}",
"void mainButtonPressed();",
"public boolean canProceedWithTapAction() {\n return ClickDelayHelper.canProceedWithTapAction();\n }",
"@Override\n\tpublic boolean requiresToggleButton() {\n\t\treturn false;\n\t}",
"protected void newGameClicked(ActionEvent e) {\n startNewGame();\n }",
"boolean isMenuShowing() {\n return game.r != null;\n }",
"private void chatRoomBtnListener() {\n chatRoomBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n }\n });\n }",
"public boolean isInGame() {\n return this.hasStarted;\n }",
"boolean isTurnedFaceUp();",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"private void pressed(int count, int button, JButton a) {\n if (winner) {\n return;\n }\n //when counter is even, X is placed in an empty spot\n if (count % 2 == 0) {\n tBoard[button] = 1; //all squares are set to two in the beginning, if a square has a 1 it is an X\n turn.setText(\"It is o's turn\"); //changes the turn to alert the person playing in the position of O that it is their turn\n a.setText(\"X\"); //sets button to show an X \n } else {\n tBoard[button] = 0; //all squares are set to two in the beginning, if a square has a 0 it is an 0\n turn.setText(\"It is x's turn\"); //changes the turn to alert the person playing in the position of X that it is their turn\n a.setText(\"O\"); //sets button to show an O\n }\n //disables the button that is pressed\n a.setEnabled(false);\n\n }",
"public boolean getBButton() {\n\t\treturn getRawButton(B_Button);\n\t}",
"public OnClickListener activateNewGame() {\n \t\n \tOnClickListener clickListener = new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent newGameIntent = new Intent(GameInitializerActivity.this, SelectLevelActivity.class );\n\t\t\t\t//Pass boolean value - if hint is on or off\n\t\t\t\tnewGameIntent.putExtra(\"isHintOn\", isHintOn);\n\t\t\t\tstartActivity(newGameIntent);\n\t\t\t}\n\t\t};\n \t\n\t\treturn clickListener;\t\t\n\t}",
"public boolean getRocketBoxButton(int button) {\n return rocketBox.getRawButton(button);\n }",
"protected abstract boolean down(int button);",
"public void mouseClicked(MouseEvent e) { // if mouse is clicked \r\n if (menuStatus == 1) { // if the player is on the main menu of the game\r\n if (inQuit) // if the player clicks on the quit button\r\n {\r\n System.exit(0); // exit the game\r\n } else if (inPlay) { // if the player clicks on the play button\r\n menuStatus = 3; // start the game\r\n initializeGame(); // call initializeGame method to start a new round \r\n }\r\n } \r\n\r\n repaint(); // update the screen\r\n\r\n }",
"boolean hasMinigameAction();"
] | [
"0.72117585",
"0.70834196",
"0.67746836",
"0.6699627",
"0.66379803",
"0.6598253",
"0.652155",
"0.65053385",
"0.64915186",
"0.64373636",
"0.6433658",
"0.64065075",
"0.6330682",
"0.6298824",
"0.6289744",
"0.6264314",
"0.6260151",
"0.6260151",
"0.6260151",
"0.6260151",
"0.6250197",
"0.6247691",
"0.6247691",
"0.6239061",
"0.62064177",
"0.6205343",
"0.62047225",
"0.6182007",
"0.6182007",
"0.6182007",
"0.6182007",
"0.6182007",
"0.6170932",
"0.6132674",
"0.6096179",
"0.6090829",
"0.60753673",
"0.60544425",
"0.60291505",
"0.60216427",
"0.59891",
"0.5981943",
"0.5962524",
"0.594754",
"0.5915935",
"0.5913105",
"0.5889188",
"0.58740455",
"0.58740455",
"0.5871727",
"0.5852179",
"0.58263636",
"0.58219886",
"0.5820851",
"0.5816325",
"0.5813773",
"0.58126324",
"0.5809579",
"0.5801217",
"0.5776525",
"0.577536",
"0.5774079",
"0.5767202",
"0.5762008",
"0.57565",
"0.5739379",
"0.5738343",
"0.5707307",
"0.57033825",
"0.5682075",
"0.5677216",
"0.56758565",
"0.56643313",
"0.5651839",
"0.56480527",
"0.564621",
"0.5639853",
"0.5634012",
"0.56241",
"0.5623784",
"0.56227255",
"0.5621843",
"0.56216466",
"0.56198364",
"0.5613574",
"0.5612871",
"0.56108445",
"0.5607617",
"0.56054944",
"0.56020683",
"0.5598999",
"0.5590187",
"0.5581587",
"0.5569783",
"0.55691606",
"0.55689037",
"0.5568235",
"0.55672365",
"0.55381584",
"0.5531903",
"0.5530361"
] | 0.0 | -1 |
Get button's clicked status | public boolean isClicked() { return clicked; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getButtonRelease(Buttons but);",
"public boolean getAButton() {\n\t\treturn getRawButton(A_Button);\n\t}",
"public boolean getBButton() {\n\t\treturn getRawButton(B_Button);\n\t}",
"public boolean getButtonPressed(Button button) {\n return getButtonPressed(button.getNumber());\n }",
"public boolean getClicked(){\n return this.isPressed;\n }",
"public boolean getAButton() {\n\t\treturn getRawButton(A_BUTTON);\n\t}",
"Button getBtn();",
"public int getButton() {\n\t\t//Check what button it is then return the value\n\t\tif (this.isLeftButton)\n\t\t\treturn 0;\n\t\telse if (this.isRightButton)\n\t\t\treturn 1;\n\t\telse if (this.isMiddleButton)\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn -1;\n\t}",
"public void buttonChangeStatus(ActionEvent actionEvent) {\n }",
"public boolean getBButton() {\n\t\treturn getRawButton(B_BUTTON);\n\t}",
"public boolean getIsClick() {return isClick;}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(Test.this, Boolean.toString(tagButton.getStatus()), Toast.LENGTH_SHORT).show();\n\t\t\t}",
"void buttonPressed(ButtonType type);",
"public boolean ButtonStatusToRoundTrip(){\n\n wait.until(ExpectedConditions.elementSelectionStateToBe(roundTripButton,false));\n roundTripButton.click();\n System.out.println(\"Round Trip button is clicked\");\n do {\n return true;\n }\n while (roundTripButton.isSelected());\n\n\n }",
"public boolean getButton(Button button) {\n return getButton(button.getNumber());\n }",
"public Object getOnclick() {\r\n\t\treturn getOnClick();\r\n\t}",
"public Button getButton() {\n\t\treturn button;\n\t}",
"private int whichButtonClicked( ActionEvent event ) {\n\tfor ( int i = 0; i < NBUTTONS; i++ ) {\n\t if ( event.getSource( ) == button[i] )\n\t\treturn i;\n\t}\n\treturn -1;\n }",
"public boolean isButton() {\n return this.type == Type.BUTTON;\n }",
"public static boolean isButtonPressed() {\n return button.isPressed();\n }",
"@Override\r\n\tpublic int buttonPressed() {\n\t\tif ( state == 0)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Total Button Pressed\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}",
"public boolean isClicked() {\n\t\treturn clicked;\n\t}",
"public void buttonClicked();",
"int getSelectedButton() {\n for (int i = 0; i < buttons.length; i++) {\n if (buttons[i].isSelected()) {\n return (i);\n }\n }\n return (-1);\n }",
"public void ButtonStatusToOneWay() throws InterruptedException {\n\n Thread.sleep(10000);\n //action=new Actions(this.driver);\n if (oneWayButton.isSelected()) {\n System.out.println(\"One way Button is already selected\");\n } else {\n wait.until(ExpectedConditions.elementSelectionStateToBe(oneWayButton,false));\n oneWayButton.click();\n System.out.println(\"one way button is clicked\");\n }\n\n\n }",
"public MouseButton getButton() {\n return GdkMouseButtonOverride.enumFor(GdkEventButton.getButton(this));\n }",
"public static boolean getButton(int index) {\n\t\treturn SmartDashboard.getBoolean(\"DB/Button \" + index, false);\n\t}",
"public String getOnclick()\r\n\t{\r\n\t\treturn _onClick;\r\n\t}",
"public final MouseButton getButton() {\n return button;\n }",
"public boolean isButtonPressed(int playerNum) {\r\n return button.pressed;\r\n }",
"public boolean VerifyButtonStatus() throws InterruptedException {\n\n Thread.sleep(10000);\n if(roundTripButton.isSelected()) {\n System.out.println(\"round trip Button is already selected\");\n wait.until(ExpectedConditions.elementToBeClickable(oneWayButton));\n oneWayButton.click();\n System.out.println(\"Switched to One Way button\");\n }\n else if(oneWayButton.isSelected()){\n System.out.println(\"One way button is already selected\");\n roundTripButton.click();\n System.out.println(\"Switched to Round Trip button\");\n\n }\n return true;\n }",
"public JCommandToggleButton getSelectedButton() {\n return this.buttonSelectionGroup.getSelected();\n }",
"public boolean getButton(XboxController.Button inputButton) {\n\t\treturn this.getRawButton(inputButton.value);\n\t}",
"public JoystickButton getButtonB() {\n\t\treturn button[1];\n\t}",
"public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}",
"public int getButtonID(){return i_ButtonID;}",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"HasClickHandlers getCancelButton();",
"public JButton getCapturedBtn() {\r\n\t\tthis.capturedBtn = new JButton(\"Captured File\");\r\n\t\tthis.capturedBtn.addActionListener(this);\r\n\t\tthis.capturedBtn.setEnabled(ComponentData.getCapturedBtnIsEnabled());\r\n\t\treturn this.capturedBtn;\r\n\t}",
"public void onClicked();",
"public Color getButtonColor(){\n\t\treturn buttonColor;\n\t}",
"public boolean getRocketBoxButton(int button) {\n return rocketBox.getRawButton(button);\n }",
"public boolean isPressed() {\n\t\treturn get();\n\t}",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public boolean isOkClicked() {\n return okClicked;\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJButton buttonPressed = (JButton) e.getSource();\n\t\tif (buttonPressed == buttonOne) {\n\t\t\tSystem.out.println(\"button 1 pressed\");\n\t\t} else if (buttonPressed == buttonTwo) {\n\t\t\tSystem.out.println(\"button 2 pressed\");\n\t\t}\n\t}",
"public JButton getButton(){\n\t\treturn item;\n\t}",
"public final String getBtnColor() {\n\t\treturn btnColor;\n\t}",
"@Override\n public void onClick(View v) {\n\n holder.routineCompletedButton.setSelected(!holder.routineCompletedButton.isSelected());\n\n }",
"String handleButtonPress(Button button);",
"private void checkButton(ActionEvent e) {\n List<PuzzleButton> selectedButtons = buttons.stream()\n .filter(PuzzleButton::isSelectedButton)\n .collect(Collectors.toList());\n PuzzleButton currentButton = (PuzzleButton) e.getSource();// getting current button\n currentButton.setSelectedButton(true);\n int currentButtonIndex = buttons.indexOf(currentButton);\n //if no button are selected, do not update collection of PuzzleButton\n if (selectedButtons.size() == 1) {\n int lastClickedButtonIndex = 0;\n\n for (PuzzleButton button : buttons) {\n if (button.isSelectedButton() && !button.equals(currentButton)) {\n lastClickedButtonIndex = buttons.indexOf(button);\n }\n }\n Collections.swap(buttons, lastClickedButtonIndex, currentButtonIndex);\n updateButtons();\n }\n }",
"protected JButton getCheckAnswerButton() {\n return checkAnswerButton;\n }",
"public boolean didUserClick(){\n return userClick;\n }",
"protected Button getOkButton()\r\n\t{\r\n\t\treturn okButton;\r\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public JoystickButton getButtonStart() {\n\t\treturn button[7];\n\t}",
"public static Boolean getButtonSelected(int x, int y){\n\t\treturn display[x][y].isSelected();\n\t}",
"public boolean getRawButton(int i) throws Exception{\n \ti-=1;\n \tif (i >= 0 && i < buttonCount)return (buttonState & (1 << i))!=0;\n \tthrow new Exception(String.format(\"Button %d does not exist\", i));\n }",
"public boolean getCopilotButton(int button) {\n return copilot.getRawButton(button);\n }",
"public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}",
"public boolean getPilotButton(int button) {\n return pilot.getRawButton(button);\n }",
"public String GetButtonText() {\n\t\treturn getWrappedElement().getText();\n\t}",
"@Override\r\n public Object getAttribute() {\r\n return this.buttonKey;\r\n }",
"public JToggleButton getDetailsToggleButton() {\n return getToggleButton(1);\n }",
"@Override\r\n public void mouseClicked(MouseEvent e) {\n System.out.println(e.getButton());\r\n\r\n // MouseEvent.BUTTON3 es el boton derecho\r\n }",
"public void onButtonAPressed();",
"public abstract boolean onButtonClick(Player player, int button);",
"@Override\n\tpublic String eventType() {\n\t\treturn \"ButtonEvent\";\n\t}",
"private JButton getAcceptButton() {\n return ((OkCancelButtonPanel) getButtonPanel()).getOkayButton();\n }",
"public String getVisualizerButtonSelected() {\n return visualizerButtonSelected;\n }",
"public JButton getBtnBonus() {\n return btnBonus;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" -Button pressed! \" + state;\n\t}",
"public boolean wasButtonJustPressed(int playerNum) {\r\n if (button.clicked) {\r\n button.clicked = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean getButtonReleased(Button button) {\n return getButtonReleased(button);\n }",
"public JButton getUncapturedBtn() {\r\n\t\tthis.uncapturedBtn = new JButton(\"Uncaptured File\");\r\n\t\tthis.uncapturedBtn.addActionListener(this);\r\n\t\tthis.uncapturedBtn.setEnabled(ComponentData.getUncapturedBtnIsEnabled());\r\n\t\treturn this.uncapturedBtn; \r\n\t}",
"@Override\r\n\tpublic void onClick() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONCLICK);\r\n\t}",
"public boolean getYButton() {\n\t\treturn getRawButton(Y_Button);\n\t}",
"public boolean getSquareButton() {\n\t\treturn getRawButton(SQUARE_BUTTON);\n\t}",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"public boolean pressed() {\n return pressed;\n }",
"public boolean get() {\n\t\t\tint i = 0; \n\t\t\twhile(i < buttons.length) {\n\t\t\t\tif (!buttons[i].get()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"public boolean getMouseClick () {\r\n return myMouseClick;\r\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJButton b1= (JButton) e.getSource();\n\t\tSystem.out.println(b1.getText());\n\t}",
"public int checkMenuButtons() {\n\n // computing the coordinates of the cursor\n\n mouseX = (float) ((currentPos.x * 1.0f - window.getWidth() / 2f) / (window.getWidth() / 2f));\n mouseY = (float) ((currentPos.y * 1.0f - window.getHeight() / 2f) / (window.getHeight() / 2f));\n\n float checkX = ((2f - 0.4f * boxRatio) / 2) - 1;\n int checkButton = 0;\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.24f && mouseY < -0.157f) {\n checkButton = 11;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.24f && mouseY < -0.157f && isLeftButtonPressed()) {\n checkButton = 12;\n }\n\n\n // coordinates of the 2nd button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.098f && mouseY < -0.0098f) {\n checkButton = 21;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.098f && mouseY < -0.0098f && isLeftButtonPressed()) {\n checkButton = 22;\n }\n\n\n // coordinates of the 3rd button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.05f && mouseY < 0.144f) {\n checkButton = 31;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.05f && mouseY < 0.144f && isLeftButtonPressed()) {\n checkButton = 32;\n }\n\n // coordinates of the 1st button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.2f && mouseY < 0.29f) {\n checkButton = 41;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.2f && mouseY < 0.29f && isLeftButtonPressed()) {\n checkButton = 42;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.35f && mouseY < 0.44f) {\n checkButton = 51;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.35f && mouseY < 0.44f && isLeftButtonPressed()) {\n checkButton = 52;\n }\n\n return checkButton;\n }",
"public void onButtonBPressed();",
"public String findButtonId(ActionEvent event) {\n Button buttonObj = (Button) event.getSource();\n return buttonObj.getId();\n }",
"public String getKey() {\r\n return this.buttonKey;\r\n }",
"public boolean isSelected_click_ActivateCoupon_Button(){\r\n\t\tif(click_ActivateCoupon_Button.isSelected()) { return true; } else { return false;} \r\n\t}",
"public int handleButtonClicked(NumberPuzzleGame game){\n\t\tint emptyCellId = game.getEmptyCellId();\n\t\tButton buttonClicked = game.getButtonClicked();\n\t\tButton[] buttons = game.getButtons();\n\t\t\n\t\t//Your logic here\n\t\t//System.out.println(emptyCellId);\n\t\t//System.out.println(buttonClicked);\n\t\tint clicked_btn_id = -1;\n\t\tfor(int i=0;i<buttons.length;i++) {\n\t\t\tif(buttons[i] == buttonClicked) {\n\t\t\t\tclicked_btn_id = i;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(clicked_btn_id);\n\t\tif((clicked_btn_id<=15)&&(clicked_btn_id == emptyCellId-1 || clicked_btn_id == emptyCellId+1 || clicked_btn_id == emptyCellId-4 || clicked_btn_id == emptyCellId+4)){\n\t\t\tswapButton(buttons[emptyCellId], buttonClicked);\n\t\t\temptyCellId = clicked_btn_id;\n\t\t}\n\t\t\n\t\t//if(buttons[])\n\t\t/*for(int i=0;i<buttons.length;i++) {\n\t\t\tif(buttons[i] == buttonClicked) {\n\t\t\t\tSystem.out.println(buttons[i]);\n\t\t\t\tSystem.out.println(buttonClicked);\n\t\t\t\temptyCellId = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} */\n\t\t\n\t\treturn emptyCellId;\n\n\t}",
"public JButton getBoton() {\n return boton;\n }",
"public Button getYes() {\n return yes;\n }",
"public JButton getGoBtn() {\n\t\treturn go;\n\t}"
] | [
"0.6896171",
"0.6730492",
"0.67235017",
"0.6710328",
"0.66878176",
"0.6679955",
"0.664721",
"0.66182023",
"0.65961",
"0.65909356",
"0.65337956",
"0.65212846",
"0.64860636",
"0.6460635",
"0.64309156",
"0.64279366",
"0.6380178",
"0.63439554",
"0.6329841",
"0.63246274",
"0.6322941",
"0.6304304",
"0.62964195",
"0.6281773",
"0.6278385",
"0.62066686",
"0.61638254",
"0.61388385",
"0.61336315",
"0.6123438",
"0.60959554",
"0.6067393",
"0.60535043",
"0.6053371",
"0.60286725",
"0.60167426",
"0.60163116",
"0.5983416",
"0.5983416",
"0.5983416",
"0.5983416",
"0.5976796",
"0.597576",
"0.59749436",
"0.59707236",
"0.59644616",
"0.5954414",
"0.59441423",
"0.59441423",
"0.59366244",
"0.5932607",
"0.5894922",
"0.5871841",
"0.587011",
"0.5868528",
"0.5867929",
"0.58652556",
"0.58611816",
"0.58501023",
"0.58501023",
"0.58501023",
"0.58501023",
"0.58501023",
"0.58294874",
"0.58192015",
"0.5815608",
"0.5811316",
"0.5805232",
"0.57927394",
"0.5789198",
"0.57888156",
"0.5783009",
"0.577007",
"0.5734018",
"0.5729791",
"0.5728516",
"0.57279176",
"0.5718961",
"0.57189226",
"0.5716249",
"0.571533",
"0.5714809",
"0.5694348",
"0.5690963",
"0.56896394",
"0.56800747",
"0.5674225",
"0.5661542",
"0.56582594",
"0.5656368",
"0.5651145",
"0.5644506",
"0.56406736",
"0.5628167",
"0.5624123",
"0.5619051",
"0.5618978",
"0.5616565",
"0.5607617",
"0.56037605"
] | 0.67051923 | 4 |
Updates button according to user actions | public void update(float dt) {
lastTouch.set(Gdx.input.getX(), Gdx.input.getY(), 0);
cam.unproject(lastTouch);
if(Gdx.input.justTouched() &&
lastTouch.x > x - width / 2 && lastTouch.x < x + width / 2 &&
lastTouch.y > y - height / 2 && lastTouch.y < y + height / 2) {
clicked = true;
}
else {
clicked = false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonChangeStatus(ActionEvent actionEvent) {\n }",
"private void updateButtonsState() {\r\n ISelection sel = mTableViewerPackages.getSelection();\r\n boolean hasSelection = sel != null && !sel.isEmpty();\r\n\r\n mUpdateButton.setEnabled(mTablePackages.getItemCount() > 0);\r\n mDeleteButton.setEnabled(hasSelection);\r\n mRefreshButton.setEnabled(true);\r\n }",
"@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}",
"public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}",
"protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }",
"public void clickOnUpdateButton() {\r\n\t\tsafeJavaScriptClick(updateButton);\r\n\t}",
"public void UpdateCommandsUI(){\n Button B;\n try{\n for (int i = 0; i < f.getNumComp(); i++) {\n B = (Button) findViewById(300000 + i); //Buy Button\n if(dayOpen & (p.getMoney()>0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(dayOpen & (p.getLevel()>= 4)){\n B.setEnabled(true);\n B.setTextColor(0xffff0000);\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n\n B = (Button) findViewById(400000 + i); //Sell Button\n if (dayOpen & (f.getSharesOwned(i) > 0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(p.getLevel()>=4 & !f.isShorted(i) & dayOpen){\n B.setEnabled(true);\n B.setTextColor(0xffff0000); //Red Color for short positions\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[0])){\n\t\t\tperformButton(0);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[1])){\n\t\t\tperformButton(1);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[2])){\n\t\t\tperformButton(2);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[3])){\n\t\t\tperformButton(3);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[4])){\n\t\t\tperformButton(4);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[5])){\n\t\t\tperformButton(5);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[6])){\n\t\t\tperformButton(6);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[7])){\n\t\t\tperformButton(7);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[8])){\n\t\t\tperformButton(8);\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[6]++;\r\n\t\t\t\tvalue[6] %= 3;\r\n\t\t\t\tif (value[6] == 0) {\r\n\t\t\t\t\tbtn[6].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[6] == 1) {\r\n\t\t\t\t\tbtn[6].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[6] == 2) {\r\n\t\t\t\t\tbtn[6].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}",
"private void setupUpdateButton() {\n\n /* Get the button */\n Button updateButton = this.getStatusUpdateButton();\n\n /* Setup listener */\n View.OnClickListener updateButtonClicked = new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n statusUpdater.updateStatus();\n }\n };\n\n /* Set listener to button */\n updateButton.setOnClickListener(updateButtonClicked);\n }",
"public void actionPerformed(final ActionEvent event) {\n /* only do this if the buttons are related and\n the action is short */\n // the button pressed\n final JButton sent = (JButton)event.getSource();\n // the button's label\n final String label = sent.getText();\n\n // Use the button's text to select the action\n if (label.equals(\"+1\")) {\n value++;\n } else if (label.equals(\"-1\")) {\n value--;\n } else if (label.equals(\"red\")) {\n result.setForeground(Color.RED);\n } else {\n value=0;\n result.setForeground(Color.BLACK);\n }\n // update the value shown in the label\n result.setText(Integer.toString(value));\n }",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[10]++;\r\n\t\t\t\tvalue[10] %= 3;\r\n\t\t\t\tif (value[10] == 0) {\r\n\t\t\t\t\tbtn[10].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[10] == 1) {\r\n\t\t\t\t\tbtn[10].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[10] == 2) {\r\n\t\t\t\t\tbtn[10].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[7]++;\r\n\t\t\t\tvalue[7] %= 3;\r\n\t\t\t\tif (value[7] == 0) {\r\n\t\t\t\t\tbtn[7].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[7] == 1) {\r\n\t\t\t\t\tbtn[7].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[7] == 2) {\r\n\t\t\t\t\tbtn[7].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"private void updateButtons() {\n\t\tif (selectedDownload != null) {\n\t\t\tint status = selectedDownload.getStatus();\n\t\t\tswitch (status) {\n\t\t\t\tcase Download.DOWNLOADING:\n\t\t\t\t\tpauseButton.setEnabled(true);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.PAUSED:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.ERROR:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // COMPLETE or CANCELLED\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t}\n\t\t} else {\n\t\t\t// No download is selected in table.\n\t\t\tpauseButton.setEnabled(false);\n\t\t\tresumeButton.setEnabled(false);\n\t\t\tcancelButton.setEnabled(false);\n\t\t\tclearButton.setEnabled(false);\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[3]++;\r\n\t\t\t\tvalue[3] %= 3;\r\n\t\t\t\tif (value[3] == 0) {\r\n\t\t\t\t\tbtn[3].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[3] == 1) {\r\n\t\t\t\t\tbtn[3].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[3] == 2) {\r\n\t\t\t\t\tbtn[3].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"private void updateButtons() {\n\t\tsetTitle(\"Insert \" + title + \"\\t\\tPage \" + pagenum + \"/\" + MAX_PAGE);\n\t\t// update button labels\n\t\tint symbx = pageoffset;\n\t\tint stop = symbx + 9;\n\t\tint nomore = stop;\n\t\tint symsize = getSymbolSize();\n\t\tif (nomore >= symsize - 1) {\n\t\t\tnomore = symsize - 1;\n\t\t}\n\t\tfor (int buttx = 0; symbx <= stop; symbx++) {\n\t\t\t// Log.d(\"SymbolDialog - updateButtons\", \"buttx: \" + buttx +\n\t\t\t// \" symbx: \" + symbx);\n\t\t\tif (symbx > nomore) {\n\t\t\t\t((TextView) mainview.findViewById(buttons[buttx])).setText(\"\");\n\t\t\t} else {\n\t\t\t\t((TextView) mainview.findViewById(buttons[buttx]))\n\t\t\t\t\t\t.setText(String.valueOf(getSymbol(symbx)));\n\t\t\t}\n\t\t\tbuttx++;\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[12]++;\r\n\t\t\t\tvalue[12] %= 3;\r\n\t\t\t\tif (value[12] == 0) {\r\n\t\t\t\t\tbtn[12].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[12] == 1) {\r\n\t\t\t\t\tbtn[12].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[12] == 2) {\r\n\t\t\t\t\tbtn[12].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[2]++;\r\n\t\t\t\tvalue[2] %= 3;\r\n\t\t\t\tif (value[2] == 0) {\r\n\t\t\t\t\tbtn[2].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[2] == 1) {\r\n\t\t\t\t\tbtn[2].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[2] == 2) {\r\n\t\t\t\t\tbtn[2].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[8]++;\r\n\t\t\t\tvalue[8] %= 3;\r\n\t\t\t\tif (value[8] == 0) {\r\n\t\t\t\t\tbtn[8].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[8] == 1) {\r\n\t\t\t\t\tbtn[8].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[8] == 2) {\r\n\t\t\t\t\tbtn[8].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[5]++;\r\n\t\t\t\tvalue[5] %= 3;\r\n\t\t\t\tif (value[5] == 0) {\r\n\t\t\t\t\tbtn[5].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[5] == 1) {\r\n\t\t\t\t\tbtn[5].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[5] == 2) {\r\n\t\t\t\t\tbtn[5].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[1]++;\r\n\t\t\t\tvalue[1] %= 3;\r\n\t\t\t\tif (value[1] == 0) {\r\n\t\t\t\t\tbtn[1].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[1] == 1) {\r\n\t\t\t\t\tbtn[1].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[1] == 2) {\r\n\t\t\t\t\tbtn[1].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[11]++;\r\n\t\t\t\tvalue[11] %= 3;\r\n\t\t\t\tif (value[11] == 0) {\r\n\t\t\t\t\tbtn[11].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[11] == 1) {\r\n\t\t\t\t\tbtn[11].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[11] == 2) {\r\n\t\t\t\t\tbtn[11].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"public void updateAllButtons(){\n updateStartButton();\n updateResetButton();\n }",
"protected void updateButtons() {\n int currentIndex = tabbedPane.getSelectedIndex();\n if( currentIndex == 0) {\n backButton.setEnabled(false);\n forwardButton.setText(\"weiter\");\n }\n if(currentIndex > 0) {\n backButton.setEnabled(true);\n forwardButton.setText(\"weiter\");\n }\n \n if(currentIndex == 6) {\n forwardButton.setText(\"würfeln\");\n }\n \n }",
"private Component updateButton(){\n return updatePersonButton = new Button(\"updateButton\"){\n @Override\n public void onSubmit() {\n super.onSubmit();\n }\n };\n }",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[9]++;\r\n\t\t\t\tvalue[9] %= 3;\r\n\t\t\t\tif (value[9] == 0) {\r\n\t\t\t\t\tbtn[9].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[9] == 1) {\r\n\t\t\t\t\tbtn[9].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[9] == 2) {\r\n\t\t\t\t\tbtn[9].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[4]++;\r\n\t\t\t\tvalue[4] %= 3;\r\n\t\t\t\tif (value[4] == 0) {\r\n\t\t\t\t\tbtn[4].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[4] == 1) {\r\n\t\t\t\t\tbtn[4].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[4] == 2) {\r\n\t\t\t\t\tbtn[4].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\tpublic void setButtonAction() {\n\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[14]++;\r\n\t\t\t\tvalue[14] %= 3;\r\n\t\t\t\tif (value[14] == 0) {\r\n\t\t\t\t\tbtn[14].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[14] == 1) {\r\n\t\t\t\t\tbtn[14].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[14] == 2) {\r\n\t\t\t\t\tbtn[14].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[15]++;\r\n\t\t\t\tvalue[15] %= 3;\r\n\t\t\t\tif (value[15] == 0) {\r\n\t\t\t\t\tbtn[15].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[15] == 1) {\r\n\t\t\t\t\tbtn[15].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[15] == 2) {\r\n\t\t\t\t\tbtn[15].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tint index = buttons.indexOf(e.getSource());\n\t\tif (brain.getTotal() >= upgrades.get(index).getCost()) {\n\t\t\tbuyUpgrade(index);\n\t\t\tupdateButtons(index);\n\t\t\trepaint();\n\t\t}\n\t}",
"public void updateAction(Player player)\n {\n Action action = player.getLastAction();\n if (action != null) \n {\n actionLabel.setText(action.getName());\n } \n else \n {\n actionLabel.setText(\"\");\n } \n int bet = player.getCurrentBet();\n if (bet == 0) \n {\n betLabel.setText(\"\");\n } \n else \n {\n betLabel.setText(\"€ \" + bet);\n }\n }",
"public void buttonAction(ButtonClass button){\n //Sets the chosenButton to most recently chosen button\n chosenButton = button;\n chosenGame = chosenButton.getSmallGame();\n allClickedButtons.add(chosenButton);\n nextGamePosition = chosenButton.getButtonPosition();\n checkAndUpdateIfSmallGameWin(chosenGame);\n updateBigGameBoardForNextMove();\n }",
"public void addUpdateBtn() {\n if (isInputValid()) {\n if ( action.equals(Constants.ADD) ) {\n addCustomer(createCustomerData());\n } else if ( action.equals(Constants.UPDATE) ){\n updateCustomer(createCustomerData());\n }\n cancel();\n }\n }",
"private void updateUserBoard()\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n for(int j = 0; j < 3; j++) {\r\n if ((buttons[i][j].getText().charAt(0) == ' ') && !(buttons[i][j].isEnabled())) {\r\n if (marker.equals(Marker.cross)) {\r\n buttons[i][j].setText(\"X\");\r\n } else {\r\n buttons[i][j].setText(\"O\");\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void actionButton(String text);",
"public void updateActionState()\n\t{\n\t\tboolean enabled = ConcernReCS.getDefault().isDirty(); //Indicates if the view content has changed\n\t\t\n//\t\tsaveaction.setEnabled(enabled);\n\n\t\tgetViewSite().getActionBars().updateActionBars();\n\t}",
"public JButton getJbUpdate() {\n\t\tif(jbUpdate==null){\n\t\t\tjbUpdate = new JButton(\"Update\");\n\t\t\tjbUpdate.setPreferredSize(new Dimension(120,25));\n\t\t\tjbUpdate.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\tjbUpdate.addMouseListener(new MouseListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tjbUpdate.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tjbUpdate.setBackground(ColorProject.COLOR_BLUE.getCol().brighter());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t}\n\t\t\t});\n\t\t\tjbUpdate.addActionListener(new ActionListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tint indice = getJtUser().getSelectedRow();\n\t\t\t\t\t//vérifie qu'il y a bien un user sélectionné\n\t\t\t\t\tif(indice==-1){\n\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"No user selected\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t//vérifie qu'il ne sagit pas des users \"guest', \"admin\", ou \"user\"\n\t\t\t\t\telse if(GestionUser.getInstance().getUsers(indice).equals(\"user\") || GestionUser.getInstance().getUsers(indice).equals(\"guest\")){\n\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"You can't upate this user\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t//vérfie si le user sélectionné est déjà admin ou non\n\t\t\t\t\telse if(GestionUser.getInstance().getUsers(indice).isAdmin()==true){\n\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"This user is already an admin\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//demande à l'admin si il est sur de vouloir update le statut de l'user\n\t\t\t\t\t\tif(indice!=-1){\n\t\t\t\t\t\t\tGestionUser.getInstance().getUsers(indice).setAdmin(true);\n\t\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"This user has been updated\",\"User updated\",JOptionPane.DEFAULT_OPTION,JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"No user selected\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jbUpdate;\n\t}",
"public void handleUpdate(){\n increaseDecrease(\"i\");\n action=\"update\";\n buttonSave.setVisible(true);\n admission.setEditable(false);\n\n }",
"@Override\n\t public void onClick(View v) {\n\t \teditor.putInt(\"buttonLabel\", 4);\n\t \t\teditor.commit();\n\t \tif(powerSwitch.isChecked() && nCurrentSpeed > drivingSpeed){\n\t \t\twarning();\n\t \t}\n\t \telse\n\t \t\tlaunchContact();\n\t }",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().equals(\"Up\")){\n //System.out.println(\"Up button clicked!!\");\n jLabel.setText(\"You pressed the up button\");\n }\n // else if -> for several buttons...\n else {\n //System.out.println(\"Down button clicked!!\");\n jLabel.setText(\"You pressed the down button\");\n }\n }",
"@Override\n public void onClick(View v) {\n switch(v.getId()) {\n case R.id.button1:\n display.setText(button1.getText());\n button1.setBackgroundColor(Color.BLUE);\n reset(1);\n tuningF = getNoteFrequency(1, tuning);\n tuningIndex = 1;\n break;\n case R.id.button2:\n display.setText(button2.getText());\n button2.setBackgroundColor(Color.BLUE);\n reset(2);\n tuningF = getNoteFrequency(2, tuning);\n tuningIndex = 2;\n break;\n case R.id.button3:\n display.setText(button3.getText());\n button3.setBackgroundColor(Color.BLUE);\n reset(3);\n tuningF = getNoteFrequency(3, tuning);\n tuningIndex = 3;\n break;\n case R.id.button4:\n display.setText(button4.getText());\n button4.setBackgroundColor(Color.BLUE);\n reset(4);\n tuningF = getNoteFrequency(4, tuning);\n tuningIndex = 4;\n break;\n case R.id.button5:\n display.setText(button5.getText());\n button5.setBackgroundColor(Color.BLUE);\n reset(5);\n tuningF = getNoteFrequency(5, tuning);\n tuningIndex = 5;\n break;\n case R.id.button6:\n display.setText(button6.getText());\n button6.setBackgroundColor(Color.BLUE);\n reset(6);\n tuningF = getNoteFrequency(6, tuning);\n tuningIndex = 6;\n break;\n }\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\topenUpdate();\n\t\t}",
"private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }",
"private void updateUI() {\n if(mChoice == Keys.CHOICE_WAITING) {\n mInstructionView.setText(\"Choose your weapon...\");\n mChoiceView.setImageResource(R.drawable.unknown);\n mRockButton.setEnabled(true);\n mPaperButton.setEnabled(true);\n mScissorsButton.setEnabled(true);\n } else {\n // A mChoice has been made\n mRockButton.setEnabled(false);\n mPaperButton.setEnabled(false);\n mScissorsButton.setEnabled(false);\n\n mInstructionView.setText(\"Waiting for opponent...\");\n\n switch(mChoice) {\n case Keys.CHOICE_ROCK:\n mChoiceView.setImageResource(R.drawable.rock);\n break;\n case Keys.CHOICE_PAPER:\n mChoiceView.setImageResource(R.drawable.paper);\n break;\n case Keys.CHOICE_SCISSORS:\n mChoiceView.setImageResource(R.drawable.scissors);\n break;\n }\n }\n\n // Check Pebble player response has arrived first\n if(mChoice != Keys.CHOICE_WAITING && mP2Choice != Keys.CHOICE_WAITING) {\n doMatch();\n }\n }",
"protected void actionPerformed(GuiButton par1GuiButton)\n {\n if (par1GuiButton.id == 0)\n {\n this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 5)\n {\n this.mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 1)\n {\n this.mc.displayGuiScreen(new GuiSelectWorld(this));\n }\n\n if (par1GuiButton.id == 2)\n {\n this.mc.displayGuiScreen(new GuiMultiplayer(this));\n }\n\n if (par1GuiButton.id == 3)\n {\n this.mc.displayGuiScreen(new GuiTexturePacks(this));\n }\n\n if (par1GuiButton.id == 4)\n {\n this.mc.shutdown();\n }\n }",
"public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[13]++;\r\n\t\t\t\tvalue[13] %= 3;\r\n\t\t\t\tif (value[13] == 0) {\r\n\t\t\t\t\tbtn[13].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[13] == 1) {\r\n\t\t\t\t\tbtn[13].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[13] == 2) {\r\n\t\t\t\t\tbtn[13].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}",
"private void updateButtons() {\n\t\t SwingUtilities.invokeLater(new Runnable() {\n\t\t public void run() { \n\t\t botones[rowId1][columnId1].toggleOnOff();\n\t\t\t botones[rowId1][columnId1].setEnabled(true);\n\t\t\t \n\t\t\t botones[rowId2][columnId2].toggleOnOff();\n\t\t\t botones[rowId2][columnId2].setEnabled(true);\n\t\t\t \n\t\t\t setEnabled(true);\n\t\t\t \n\t\t timerPush.stop();\n\t\t }\n\t\t });\n\t }",
"public void updateUI()\n\t{\n\t\tif( isRunning() == false) \n\t\t{\n\t\t\tupdateButton(\"Run\");\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateTextView(Feedback.getMessage(Feedback.TYPE.NEW_TEST, null));\n\t\t}else\n\t\t{\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateButton( \"Stop\" );\n\t\t\tupdateTextView(\"Tests are running.\");\n\n\t\t}\n\t}",
"private void devBtnActionPerformed(ActionEvent evt) {\n }",
"void buttonPressed(ButtonType type);",
"@Override\n // Could call like runGame in here? Then show new game state?\n public void actionPerformed(ActionEvent e) {\n\n if (e.getSource() == move1.buttonObj) {\n move1.buttonObj.setText(\"The button has been clicked\");\n }\n\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==btn_pause) {\n\t\t\n\t\t\tgamePause();\n\t\t}\n\t\tif(e.getSource()==btn_continue) {\n\t\t\tgameContinue();\n\t\t}\n\t\tif(e.getSource()==btn_restart) {\n\t\t\tgameResTart();\n\t\t}\n\t\tif(e.getSource()==btn_rank) {\n\t\t\tgameRank();\n\t\t}\n\t\tif(e.getSource()==btn_admin) {\n\t\t\tgameAdmin();\n\t\t}\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfetchButton.setLabel(\"Fetching...\");\n\t\t\t\tsubmitConfigSubmissionRequest();\n\t\t\t\tfetchButton.setLabel(\"Fetch\");\n\t\t\t}",
"public void toggleButton(){\r\n\t\tImageIcon xImage = new ImageIcon(\"image/x.png\");\t//Inserting image to the button\r\n\t\tImageIcon oImage = new ImageIcon(\"image/o.png\");\t//Inserting image to the button\r\n\t\tfor(int i=0;i<3;i++){\t\t\t\t\t//Update the buttons' text base on array of state\r\n\t\t\tfor(int j=0;j<3;j++){\r\n\t\t\t\t this.b[i][j].setIcon(Exer10.state[i][j]==1?xImage:(Exer10.state[i][j]==2?oImage:null));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n canvas.refresh();\r\n addNodeButton.setEnabled(true);\r\n rmvNodeButton.setEnabled(true);\r\n addEdgeButton.setEnabled(true);\r\n rmvEdgeButton.setEnabled(true);\r\n chgTextButton.setEnabled(true);\r\n chgDistButton.setEnabled(true);\r\n BFSButton.setEnabled(true);\r\n DFSButton.setEnabled(true);\r\n spButton.setEnabled(true);\r\n TPSButton.setEnabled(true);\r\n instr.setText(\"Try functions by clicking buttons.\");\r\n }",
"protected void actionPerformed(GuiButton button) throws IOException {\n/* 60 */ if (button.enabled)\n/* */ {\n/* 62 */ if (button.id == 1) {\n/* */ \n/* 64 */ this.lastScreen.confirmClicked(false, 0);\n/* */ }\n/* 66 */ else if (button.id == 0) {\n/* */ \n/* 68 */ this.serverData.serverIP = this.ipEdit.getText();\n/* 69 */ this.lastScreen.confirmClicked(true, 0);\n/* */ } \n/* */ }\n/* */ }",
"private void refresh() {\n System.out.println(\"refresh is called\");\n currentStory=storyManager.getStory(user.getCurrentStoryNode());\n resources=resourceManager.getResources();\n storyText.setText(currentStory.getText());\n // Set button texts, add foreground locks for options without conditions met\n for (int i=0; i<currentStory.getStoryPaths().size(); i++) {\n StoryPaths storyPath=currentStory.getStoryPaths().get(i);\n Resource resourceNeeded=storyPath.getResourceNeeded();\n if (resourceNeeded!=null) {\n int amountNeeded=storyPath.getAmountNeeded();\n if (resourceNeeded.getDepletable()) {\n buttons[i].setText(storyPath.getOptionText() + \" (Consume \" + amountNeeded + \" \" + resourceNeeded.getName() + \")\");\n } else {\n buttons[i].setText(storyPath.getOptionText() + \" (Require \" +resourceNeeded.getName() + \")\");\n }\n if (resourceNeeded.getStock() < amountNeeded) {\n buttons[i].setForeground(getDrawable(R.drawable.button_box_lock_sample));\n } else {\n buttons[i].setForeground(null);\n }\n } else {\n buttons[i].setText(storyPath.getOptionText());\n buttons[i].setForeground(null);\n }\n buttons[i].setVisibility(View.VISIBLE);\n updateResourceText();\n }\n // Make the other buttons disappear\n for (int i=currentStory.getStoryPaths().size(); i<5; i++) {\n buttons[i].setVisibility(View.GONE);\n }\n }",
"protected void actionPerformed(GuiButton par1GuiButton)\n {\n for (int var2 = 0; var2 < this.options.keyBindings.length; ++var2)\n {\n ((GuiButton)this.controlList.get(var2)).displayString = this.options.getOptionDisplayString(var2);\n }\n\n if (par1GuiButton.id == 200)\n {\n this.mc.displayGuiScreen(this.parentScreen);\n }\n else\n {\n this.buttonId = par1GuiButton.id;\n par1GuiButton.displayString = \"> \" + this.options.getOptionDisplayString(par1GuiButton.id) + \" <\"; // what is this even for.. it gets overwritten in drawScreen\n }\n }",
"public abstract void executeActionButton();",
"@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\tGameController.setToButtonPanel();\n\t\t\t}",
"@FXML public void handleToggleButtons() {\n\t\t\n\t\t// binarySplitButton\n\t\tif (binarySplitButton.isSelected()) {\n\t\t\tbinarySplitButton.setText(\"True\");\n\t\t} else {\n\t\t\tbinarySplitButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// collapseTreeButton\n\t\tif (collapseTreeButton.isSelected()) {\n\t\t\tcollapseTreeButton.setText(\"True\");\n\t\t} else {\n\t\t\tcollapseTreeButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// debugButton\n\t\tif (debugButton.isSelected()) {\n\t\t\tdebugButton.setText(\"True\");\n\t\t} else {\n\t\t\tdebugButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotCheckCapabilitiesButton\n\t\tif (doNotCheckCapabilitiesButton.isSelected()) {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotMakeSplitPAVButton\n\t\tif (doNotMakeSplitPAVButton.isSelected()) {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// reduceErrorPruningButton\n\t\tif (reduceErrorPruningButton.isSelected()) {\n\t\t\treduceErrorPruningButton.setText(\"True\");\n\t\t} else {\n\t\t\treduceErrorPruningButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// saveInstanceDataButton\n\t\tif (saveInstanceDataButton.isSelected()) {\n\t\t\tsaveInstanceDataButton.setText(\"True\");\n\t\t} else {\n\t\t\tsaveInstanceDataButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// subTreeRaisingButton\n\t\tif (subTreeRaisingButton.isSelected()) {\n\t\t\tsubTreeRaisingButton.setText(\"True\");\n\t\t} else {\n\t\t\tsubTreeRaisingButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// unprunedButton\n\t\tif (unprunedButton.isSelected()) {\n\t\t\tunprunedButton.setText(\"True\");\n\t\t} else {\n\t\t\tunprunedButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useLaplaceButton\n\t\tif (useLaplaceButton.isSelected()) {\n\t\t\tuseLaplaceButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseLaplaceButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useMDLcorrectionButton\n\t\tif (useMDLcorrectionButton.isSelected()) {\n\t\t\tuseMDLcorrectionButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseMDLcorrectionButton.setText(\"False\");\n\t\t}\n\t\t\n\t}",
"public void buttonClicked();",
"private void initButtons() {\n\t\taddGoalkeeper = new JButton(\"+\");\n\t\taddGoalkeeper.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(0, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddDefence1 = new JButton(\"+\");\n\t\taddDefence1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(1, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddDefence2 = new JButton(\"+\");\n\t\taddDefence2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(2, e);\n\t\t\t}\n\t\t});\n\t\t\t\t\n\t\taddDefence3 = new JButton(\"+\");\n\t\taddDefence3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(3, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddDefence4 = new JButton(\"+\");\n\t\taddDefence4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(4, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddMiddle1 = new JButton(\"+\");\n\t\taddMiddle1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(5, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddMiddle2 = new JButton(\"+\");\n\t\taddMiddle2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(6, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddMiddle3 = new JButton(\"+\");\n\t\taddMiddle3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(7, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddMiddle4 = new JButton(\"+\");\n\t\taddMiddle4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(8, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddForward1 = new JButton(\"+\");\n\t\taddForward1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(9, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddForward2 = new JButton(\"+\");\n\t\taddForward2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(10, e);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t {\n\t\tint btnId = Integer.parseInt(e.getActionCommand());\n\n\t\tJButton bttn = btn[btnId];\n\n\t\tif (bttn.getIcon().equals(icons[6]))\n\t\t{\n\t\t bttn.setIcon(icons[pairs[btnId]]);\n\t\t} else\n\t\t{\n\t\t bttn.setIcon(icons[6]);\n\t\t}\n\t }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n if (e.getActionCommand() == \"button1\"){\r\n JOptionPane.showMessageDialog(null,\"Button1 hit\");\r\n }else {\r\n JOptionPane.showMessageDialog(null,\"Button2 hit\");\r\n }\r\n\r\n }",
"private void createBottomActionButtons() {\n Composite actionControlComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n actionControlComp.setLayout(gl);\n actionControlComp.setLayoutData(gd);\n\n Button okBtn = new Button(actionControlComp, SWT.PUSH);\n okBtn.setText(\" OK \");\n okBtn.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n if (verifySelection()) {\n close();\n }\n }\n });\n\n Button cancelBtn = new Button(actionControlComp, SWT.PUSH);\n cancelBtn.setText(\" Cancel \");\n cancelBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n close();\n }\n });\n }",
"@Override\n public void onClick(View view) {\n Toast.makeText(MainActivity.this,\"ButtonHandler onClick: \"+view,Toast.LENGTH_SHORT).show();\n\n //Determine the Button was clicked\n for (int row = 0; row < TicTacToe.SIDE; row++)\n for (int col = 0; col < TicTacToe.SIDE; col++)\n {\n if (view == buttons [row][col]){\n update(row,col);\n }\n }\n }",
"@Override\n public void onClick(View view) {\n if (view.getId() == R.id.vv_btnUP) {\n if (buttonPressed[0] == false) {\n moveList.push(cv_robotController.cf_moveMotor(0, cv_sbAMotor.getProgress(), 0x20));\n moveList.push(cv_robotController.cf_moveMotor(1, cv_sbBMotor.getProgress(), 0x20));\n cv_tvAMotorPower.setText(\"\" + cv_sbBMotor.getProgress());\n buttonPressed[0] = true;\n cv_btnUP.setImageResource(R.drawable.arrow_up_gray);\n }\n else {\n cv_robotController.cf_moveMotor(0, 0, 0x00);\n cv_robotController.cf_moveMotor(1, 0, 0x00);\n moveList.clear();\n buttonPressed[0] = false;\n cv_btnUP.setImageResource(R.drawable.arrow_up_color);\n\n }\n\n cv_btnUP.setPressed(buttonPressed[0]);\n }\n\n //Reset\n if (view.getId() == R.id.vv_btnReset) {\n cv_robotController.cf_moveMotor(0, 0, 0x00);\n cv_robotController.cf_moveMotor(1, 0, 0x00);\n moveList.clear();\n for(int i = 0 ; i < cv_allButtons.length; i++){\n buttonPressed[i] = false;\n }\n cv_btnUP.setImageResource(R.drawable.arrow_up_color);\n cv_btnDown.setImageResource(R.drawable.arrow_down_color);\n cv_btnLeft.setImageResource(R.drawable.arrow_left_color);\n cv_btnRight.setImageResource(R.drawable.arrow_right_color);\n }\n\n //Down\n if (view.getId() == R.id.vv_btnDown) {\n if (buttonPressed[1] == false) {\n moveList.push(cv_robotController.cf_moveMotor(0, -cv_sbAMotor.getProgress(), 0x20));\n moveList.push(cv_robotController.cf_moveMotor(1, -cv_sbBMotor.getProgress(), 0x20));\n buttonPressed[1] = true;\n cv_btnDown.setImageResource(R.drawable.arrow_down_gray);\n }\n else {\n cv_robotController.cf_moveMotor(0, 0, 0x00);\n cv_robotController.cf_moveMotor(1, 0, 0x00);\n moveList.clear();\n buttonPressed[1] = false;\n cv_btnDown.setImageResource(R.drawable.arrow_down_color);\n }\n\n cv_btnDown.setPressed(buttonPressed[1]);\n }\n\n //Left\n if (view.getId() == R.id.vv_btnLeft) {\n if (!buttonPressed[2]) {\n cv_robotController.cf_moveMotor(1, 0, 0x00);\n cv_robotController.cf_moveMotor(0, cv_sbAMotor.getProgress(), 0x20);\n buttonPressed[2] = true;\n cv_btnLeft.setImageResource(R.drawable.arrow_left_gray);\n }\n else {\n if (!moveList.isEmpty()) {\n while (!moveList.isEmpty()) {\n Log.e(\"---------->\", \"-------------->\" + moveList.peek()[5]);\n cv_robotController.cf_moveMotor(moveList.pop());\n\n }\n }\n else {\n cv_robotController.cf_moveMotor(0, 0, 0x00);\n cv_robotController.cf_moveMotor(1, 0, 0x00);\n }\n\n buttonPressed[2] = false;\n cv_btnLeft.setImageResource(R.drawable.arrow_left_color);\n }\n\n cv_btnLeft.setPressed(buttonPressed[2]);\n }\n\n //Right\n if (view.getId() == R.id.vv_btnRight) {\n if (!buttonPressed[3]) {\n cv_robotController.cf_moveMotor(0, 0, 0x00);\n cv_robotController.cf_moveMotor(1, cv_sbAMotor.getProgress(), 0x20);\n buttonPressed[3] = true;\n cv_btnRight.setImageResource(R.drawable.arrow_right_gray);\n }\n else {\n if (!moveList.isEmpty()) {\n while (!moveList.isEmpty()) {\n Log.e(\"---------->\", \"-------------->\" + moveList.peek()[5]);\n cv_robotController.cf_moveMotor(moveList.pop());\n\n }\n }\n else {\n cv_robotController.cf_moveMotor(0, 0, 0x00);\n cv_robotController.cf_moveMotor(1, 0, 0x00);\n }\n\n buttonPressed[3] = false;\n cv_btnRight.setImageResource(R.drawable.arrow_right_color);\n }\n\n cv_btnRight.setPressed(buttonPressed[3]);\n }\n\n //C Motor-----------------------------------------------------------------------------------\n\n //Up\n if (view.getId() == R.id.vv_btnForwardC) {\n if (!buttonPressed[4]) {\n cv_robotController.cf_moveMotor(2, cv_sbPowerC.getProgress(), 0x20);\n\n buttonPressed[4] = true;\n }\n else {\n cv_robotController.cf_moveMotor(2, 0, 0x00);\n\n buttonPressed[4] = false;\n }\n\n cv_btnForwradC.setPressed(buttonPressed[4]);\n }\n\n //Down\n if (view.getId() == R.id.vv_btnBackwardC) {\n if (!buttonPressed[5]) {\n cv_robotController.cf_moveMotor(2, -cv_sbPowerC.getProgress(), 0x20);\n\n buttonPressed[5] = true;\n }\n else {\n cv_robotController.cf_moveMotor(2, 0, 0x00);\n\n buttonPressed[5] = false;\n }\n\n cv_btnBackwardC.setPressed(buttonPressed[5]);\n }\n }",
"public void updateUI(){}",
"public void Refresh_button() {\n\t\tthis.defaultSetup();\n\t}",
"private void updateBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMousePressed\n updateBtn.setBackground(Color.decode(\"#1e5837\"));\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tif(!isFinished){\n\t\t\t//get the button\n\t\t\tJButton clicked = (JButton) e.getSource();\n\t\t\t\n\t\t\tfor(int row=0;row<SIZE;row++){\n\t\t\t\tfor(int col=0;col<SIZE;col++){\n\t\t\t\t\tif(clicked == buttonGrid[row][col]){\n\t\t\t\t\t\t\n\t\t\t\t\t\t//fill the virtual array with text (O or X)\n\t\t\t\t\t\tengine.fill(row, col);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//fill the real graphical button with text (O or X)\n\t\t\t\t\t\tif(engine.counter%2==0){\n\t\t\t\t\t\t\tbuttonGrid[row][col].setText(\"X\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuttonGrid[row][col].setText(\"O\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//disable the button\n\t\t\t\t\t\tbuttonGrid[row][col].setEnabled(false);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//check if one wins the game\n\t\t\tisFinished = engine.isFinished();\n\t\t\t\n\t\t\t//if finished,\n\t\t\tif(isFinished) {\n\t\t\t\t\n\t\t\t\t//send message\n\t\t\t\tif(engine.counter%2==0){\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"'X' wins the game\");\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"'O' wins the game\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t//check if the game is a tie\n\t\t\t}else if(engine.counter==SIZE*SIZE){\n\t\t\t\tisFinished = true;\n\t\t\t\tJOptionPane.showMessageDialog(frame, \"The game is a tie\");\n\t\t\t}\n\t\t\t \n\t\t\t//part where program asks user whether he or she wants extra games\n\t\t\tif(isFinished) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(frame, \"Do you want to player another game?\", \"Message Board\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\n\t\t\t\tif(option == JOptionPane.YES_OPTION){\n\t\t\t\t\treset();\n\t\t\t\t} else{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"@Override\r\n\t\tpublic void actionPerformed (ActionEvent e) {\n\t\t\tJButton c = (JButton) e.getSource();\r\n\t\t\tmakemove(c);\r\n\t\t\tgamestatus gs = getgamestatus();\r\n\t\t\tif (gs == gamestatus.incomplete) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tdeclarewinner(gs);\r\n\t\t\tint choice = JOptionPane.showConfirmDialog(this, \"Restart?\");\r\n\t\t\tif (choice == JOptionPane.YES_OPTION) {\r\n\t\t\t\tfor (int row = 0; row < board; row++) {\r\n\t\t\t\t\tfor (int col = 0; col < board; col++) {\r\n\t\t\t\t\t\tbuttons[row][col].setText(\"\");// to to blank after restart\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.crosscheck = true;\r\n\t\t\t} else {\r\n\t\t\t\tsuper.dispose(); // to close the game on no \r\n\t\t\t}\r\n\t\t}",
"@Override\n public void actionPerformed(ActionEvent event) {\n String buttonName = ((JMenuItem) event.getSource()).getText();\n if (buttonName.equals(\"About\")) {\n aboutHandler();\n } else if (buttonName.equals(\"New game/restart\")) {\n restartHandler();\n } else if (buttonName.equals(\"Toggle game log\")) {\n toggleGameLogHandler();\n } else if (buttonName.equals(\"Exit\")) {\n exitHandler();\n } else {\n toggleGraveyardHandler();\n }\n }",
"public void setButtonSelection(String action);",
"public abstract boolean onButtonClick(Player player, int button);",
"private void updateButtons() {\n\t\tif(buttonCount>1){\n\t\t\tremoveTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\tremoveTableButton.setEnabled(false);\n\t\t}\n\t\tif(buttonCount<tablesX.length){\n\t\t\taddTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\taddTableButton.setEnabled(false);\n\t\t}\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tSystem.out.println(button.getText());\n\t\tif(currentState==MENU) {\n\t\t}\n\t\tif(button.getText().equals(\"Next\")&¤tState==MENU) {\n\t\t\tcurrentState++;\n\t\t\trepaint();\n\t\t}\n\t\tif(currentState == GAME){\n\t\t updateGameState();\n\t\t}else if(currentState == END){\n\t\t updateEndState();\n\t\t}\n\t\tSystem.out.println(currentState);\n\t\trepaint();\n\t}",
"private static void buttonSetup() {\n \n // For all buttons except clear and equals=, update display\n for(JButton i:buttonOrder) {\n if(i.equals(clear) || i.equals(equals))\n continue;\n i.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if(displayString.toString().equals(\"ERROR\")) {\n displayString.replace(0, displayString.length(), i.getText());\n numField.setText(displayString.toString());\n } else {\n displayString.append(i.getText());\n numField.setText(displayString.toString());\n }\n }\n });\n }\n \n // Clears display\n clear.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n displayString.delete(0, displayString.length());\n numField.setText(displayString.toString());\n }\n });\n \n // Clears display, shows result\n equals.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n equationParse(displayString);\n }\n });\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t\tObject source = e.getSource();\n\n\t\tif (e.getActionCommand() == \"新建清单\") {\n\t\t\tcard.show(contentPane, \"1_1\");\n\t\t}\n\n\t\tif (e.getActionCommand() == \"查询清单及更新\") {\n\t\t\tcard.show(contentPane, \"1_2\");\n\t\t\tupdateCellsVector_12();\n\t\t\ttable_12.updateUI();\n\t\t}\n\n\t\tif (e.getActionCommand() == \"新建项目\") {\n\t\t\tcard.show(contentPane, \"2_1\");\n\t\t}\n\n\t\tif (e.getActionCommand() == \"查询项目及更新\") {\n\t\t\tcard.show(contentPane, \"2_2\");\n\t\t\tupdateCellsVector_22();\n\t\t\ttable_22.updateUI();\n\t\t}\n\n\t\tif (e.getActionCommand() == \"新建任务\") {\n\t\t\tcard.show(contentPane, \"3_1\");\n\t\t}\n\n\t\tif (e.getActionCommand() == \"查询任务及更新\") {\n\t\t\tcard.show(contentPane, \"3_2\");\n\t\t\tupdateCellsVector_32();\n\t\t\ttable_32.updateUI();\n\t\t}\n\n\t\tif (e.getActionCommand() == \"新建心得\") {\n\t\t\tcard.show(contentPane, \"4_1\");\n\t\t}\n\n\t\tif (e.getActionCommand() == \"查询心得及更新\") {\n\t\t\tcard.show(contentPane, \"4_2\");\n\t\t\tupdateCellsVector_42();\n\t\t\ttable_42.updateUI();\n\t\t}\n\n\t\tif (e.getActionCommand() == \"查询用户分享心得\") {\n\t\t\tcard.show(contentPane, \"4_3\");\n\t\t\tupdateCellsVector_43();\n\t\t\ttable_43.updateUI();\n\t\t}\n\t\tif (e.getActionCommand() == \"查看项目完成情况\") {\n\t\t\tarray = operator.getArray(userEmail);\n\t\t\tChartDemo demo = new ChartDemo(array);\n\t\t\tdemo.pack();\n\t\t\tRefineryUtilities.centerFrameOnScreen(demo);\n\t\t\tdemo.setVisible(true);\n\t\t}\n\n\t\tif (e.getActionCommand() == \"修改密码\") {\n\t\t\tLogin_Change Lg = new Login_Change(userEmail);\n\t\t}\n\n\t\t// 保存清单\n\t\tif (source == button_11) {\n\t\t\tString content = textArea_11.getText().trim();\n\t\t\toperator.insertList(userEmail, content);\n\t\t\ttextArea_11.setText(\"\");\n\t\t}\n\n\t\t// 保存清单记录的修改\n\t\tif (source == button_12_1) {\n\t\t\tString content = textArea_12.getText().trim();\n\t\t\tString cTime = cellsVector_12.get(table_12.getSelectedRow()).get(0);\n\n\t\t\toperator.updateList(content, userEmail, cTime);\n\t\t\tupdateCellsVector_12();\n\t\t\ttable_12.updateUI();\n\n\t\t\ttextArea_12.setText(\"\");\n\n\t\t}\n\n\t\t// 删除所选清单记录\n\t\tif (source == button_12_2) {\n\n\t\t\tString cTime = cellsVector_12.get(table_12.getSelectedRow()).get(0);\n\t\t\toperator.delList(cTime, userEmail);\n\t\t\tupdateCellsVector_12();\n\t\t\ttable_12.updateUI();\n\t\t}\n\n\t\t// 保存项目\n\t\tif (source == button_21) {\n\t\t\tString name = textField_21.getText().trim();\n\t\t\tString remark = textArea_21.getText().trim();\n\t\t\toperator.insertProject(userEmail, name, remark);\n\t\t\ttextArea_21.setText(\"\");\n\t\t\ttextField_21.setText(\"\");\n\t\t}\n\n\t\t// 保存项目状态记录的修改\n\t\tif (source == button_22_1) {\n\t\t\tString projStatus = textField_22.getText().trim();\n\t\t\tint projId = Integer.parseInt(cellsVector_22.get(table_22.getSelectedRow()).get(0));\n\n\t\t\toperator.updateProj(projStatus, projId);\n\t\t\tupdateCellsVector_22();\n\t\t\ttable_22.updateUI();\n\n\t\t\ttextField_22.setText(\"\");\n\n\t\t}\n\n\t\t// 删除所选项目记录\n\t\tif (source == button_22_2) {\n\t\t\tint projId = Integer.parseInt(cellsVector_22.get(table_22.getSelectedRow()).get(0));\n\t\t\toperator.delProj(projId);\n\t\t\tupdateCellsVector_22();\n\t\t\ttable_22.updateUI();\n\t\t}\n\n\t\t// 保存任务\n\t\tif (source == button_31) {\n\t\t\tint projId = Integer.parseInt(textField_31_1.getText().trim());\n\t\t\tString taskname = textField_31_2.getText().trim();\n\t\t\tString remark = textArea_31.getText().trim();\n\n\t\t\toperator.insertTask(projId, taskname, remark);\n\n\t\t\ttextField_31_1.setText(\"\");\n\t\t\ttextField_31_2.setText(\"\");\n\t\t\ttextArea_31.setText(\"\");\n\n\t\t}\n\n\t\t// 查询项目中的任务\n\t\tif (source == button_32_1) {\n\t\t\tupdateCellsVector_32();\n\t\t\ttable_32.updateUI();\n\t\t}\n\n\t\t// 保存任务修改\n\t\tif (source == button_32_2) {\n\t\t\tString taskStatus = textField_32.getText().trim();\n\t\t\tint row = table_32.getSelectedRow();\n\t\t\tint taskId = Integer.parseInt(cellsVector_32.get(row).get(0));\n\n\t\t\toperator.updateTask(taskId, taskStatus);\n\t\t\tupdateCellsVector_32();\n\t\t\ttable_32.updateUI();\n\n\t\t\ttextField_32.setText(\"\");\n\t\t}\n\n\t\t// 删除所选任务\n\t\tif (source == button_32_3) {\n\t\t\tint row = table_32.getSelectedRow();\n\t\t\tint taskId = Integer.parseInt(cellsVector_32.get(row).get(0));\n\n\t\t\toperator.delTask(taskId);\n\t\t\tupdateCellsVector_32();\n\t\t\ttable_32.updateUI();\n\t\t}\n\n\t\t// 查看任务完成情况图表\n\t\tif (source == button_32_4) {\n\t\t\tString projname = (String) comboBox_32.getSelectedItem();\n\t\t\tarray = operator.getArray_2(projname);\n\t\t\tChartDemo demo = new ChartDemo(array);\n\t\t\tdemo.pack();\n\t\t\tRefineryUtilities.centerFrameOnScreen(demo);\n\t\t\tdemo.setVisible(true);\n\t\t}\n\t\t// 保存新建心得\n\t\tif (source == button_41) {\n\t\t\tString title = textField_41.getText().trim();\n\t\t\tString content = textArea_41.getText().trim();\n\n\t\t\toperator.insertIdeas(userEmail, title, content);\n\n\t\t\ttextField_41.setText(\"\");\n\t\t\ttextArea_41.setText(\"\");\n\n\t\t}\n\n\t\t// 保存心得记录的修改\n\t\tif (source == button_42_1) {\n\n\t\t\tString cTime = cellsVector_42.get(table_42.getSelectedRow()).get(0);\n\t\t\tString title = textField_42_1.getText().trim();\n\t\t\tString content = textArea_42.getText().trim();\n\n\t\t\toperator.updateIdeas(title, content, userEmail, cTime);\n\t\t\tupdateCellsVector_42();\n\t\t\ttable_42.updateUI();\n\n\t\t\ttextField_42_1.setText(\"\");\n\t\t\ttextArea_42.setText(\"\");\n\t\t}\n\n\t\t// 删除所选心得记录\n\t\tif (source == button_42_2) {\n\n\t\t\tString cTime = cellsVector_42.get(table_42.getSelectedRow()).get(0);\n\t\t\toperator.delIdeas(cTime, userEmail);\n\t\t\tupdateCellsVector_42();\n\t\t\ttable_42.updateUI();\n\t\t}\n\n\t}",
"@Override\n\tpublic void pressed(PushButton button) {\n\t\tvm.getConfigurationPanel().getButton(index);\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource().equals(button)) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Woohoo!\");\n\t\t\tif (rand == 0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"APEL\");\n\t\t\t}\n\t\t\tif (rand == 1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"APUSH\");\n\t\t\t}\n\t\t\tif (rand == 2) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"AP Physics\");\n\t\t\t}\n\t\t\tif (rand == 3) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"AP Bio\");\n\t\t\t}\n\t\t\tif (rand == 4) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"AP Calc\");\n\t\t\t}\n\t\t\trand = new Random().nextInt(5);\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == statusfield || e.getActionCommand().equals(\"Change Status\")) {\n\t\t\tupdateStatus();\n\t\t\t//showCurrentProfile();\n\t\t}\n\t\telse if (e.getSource() == picturefield || e.getActionCommand().equals(\"Change Picture\")) {\n\t\t\tupdatePicture();\n\t\t\t//showCurrentProfile();\n\t\t}\n\t\telse if (e.getSource() == friendfield || e.getActionCommand().equals(\"Add Friend\")) {\n\t\t\taddFriend();\n\t\t\t//showCurrentProfile();\n\t\t}\n\t\telse if (e.getActionCommand().equals(\"Add\")) {\n\t\t\taddName();\n\t\t\t//showCurrentProfile();\n\t\t}\n\t\telse if (e.getActionCommand().equals(\"Delete\")) {\n\t\t\tdeleteName();\n\t\t\t//showCurrentProfile();\n\t\t}\n\t\telse if (e.getActionCommand().equals(\"Lookup\")) {\n\t\t\tlookUpName();\n\t\t\t//showCurrentProfile();\n\t\t}\n\t\t\t\n\t}",
"public FinalActionButtons()\n {\n eliminateButton = new JButton( \"Eliminate a Candidate\" );\n eliminateButton.setPreferredSize( new Dimension( 300, 100 ) );\n eliminateButton.addActionListener( this );\n add( eliminateButton );\n eliminateButton.setFont( new Font( \"Helvetica\", Font.PLAIN, 20 ) );\n\n doneButton = new JButton( \"Get Statistics\" );\n doneButton.setPreferredSize( new Dimension( 300, 100 ) );\n doneButton.addActionListener( this );\n add( doneButton );\n doneButton.setFont( new Font( \"Helvetica\", Font.PLAIN, 20 ) );\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource().getClass().equals(talkbot.Buttons.class)) {\r\n\t\t\t// int bn;\r\n\t\t\t/*if (on)\r\n\t\t\t\tbn=1;\r\n\t\t\telse\r\n\t\t\t\tbn=2; */\r\n\t\t\tButtons temp = (Buttons) e.getSource(); \r\n\t\t\t//bn = temp.getbtnNumber();\r\n\t\t\t\r\n\t\t\tString tempath = this.con.getPathToAudioFile(currentset+1, temp.getbtnNumber());\r\n\t\t\tplaySound(tempath);\r\n\t\t\tlogger.info(\"Set \" + currentset + \" - Button \" + temp.getbtnNumber());\r\n\t\t} else if (categories.contains((JButton) e.getSource())) {\r\n\t\t\tif (currentset != categories.indexOf((JButton) e.getSource())) {\r\n\t\t\tfor (int i = 0; i < tbuttons.get(currentset).size(); i++) {\r\n\t\t\t\tsp.remove(tbuttons.get(currentset).get(i));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrentset= categories.indexOf((JButton) e.getSource());\r\n\t\t\t//System.out.println(currentset); \r\n\t\t\tif (!tbuttons.get(currentset).isEmpty()) {\r\n\t\t\tfor (int i = 0; i < tbuttons.get(currentset).size(); i++) {\r\n\t\t\t\tsp.add(tbuttons.get(currentset).get(i));\r\n\t\t\t\ttbuttons.get(currentset).get(i).addActionListener(this);\r\n\t\t\t\ttbuttons.get(currentset).get(i).setVisible(true);\r\n\t\t\t}}\r\n\t\t\tthis.revalidate(); this.repaint(); }\r\n\t\t\tlogger.info(\"Set - \" + currentset);\r\n\t\t} \r\n\t}",
"public static void scheduleButtonListener(ActionEvent evt){\r\n MyButton button = (MyButton) evt.getSource();\r\n button.switchChosen();\r\n if(button.isChosen()){\r\n checkCollisions(button);\r\n }\r\n setButtonsColor();\r\n }",
"public void update() {\n\n// If the button is clicked, call the click method and play sound effect\n if (isClicked()) {\n clickSound.play(Main.sfxVolume / 10f);\n click();\n }\n }",
"@Override\n\t\t\t\t\t\tpublic void onComplete(Bundle values) {\n\t\t\t\t\t\t\tupdateButtonImage();\n\t\t\t\t\t\t}",
"public void upd_btn_in_pub_prof_after_conn_follow_unfollow(int position, String condition)\n {\n if(condition.equals(\"connect\"))\n {\n btn_connect.setText(\"Request Sent\");\n\n }\n// else if(condition.equals(\"follow\"))\n// {\n// //btn_follow.setText(context.getResources().getString(R.string.Following));\n//// int incr_foll_count = Integer.parseInt(txt_following.getText().toString()) + 1;\n//// txt_following.setText(String.valueOf(incr_foll_count));//update following count in public profile page\n//\n// }\n// else if(condition.equals(\"unfollow\"))\n// {\n// //btn_follow.setText(context.getResources().getString(R.string.Follow));\n//// int decr_foll_count = Integer.parseInt(txt_following.getText().toString()) - 1;\n//// txt_following.setText(String.valueOf(decr_foll_count));//update following count in public profile page\n//\n// }\n\n if(from_Activity.equals(\"My_Suggestions\"))\n {\n //upd_peopleyou_row_in_sugg_page_frm_publicprofile(user_id,\"connect\");\n upd_row_in_sugg_page(position, condition);\n }\n\n\n }",
"private void updateTextButtons() {\n CrewMember crewMember = department.getCrewMember();\n repair.setText(\"Click to repair your ship for \"+getHealCost()+ \" gold!\");\n upgrade.setText(\"Click to upgrade \" + crewMember.getName() + \" for \"+crewMember.getUpgradeCost()+\" gold!\");\n }",
"void actionButton ( ) throws IOException {\n String textOfField = this.gui.wdgInputText.getText();\n this.gui.widgOutput.append(\"Button1 \" + (++this.ctKeyStroke1) + \" time, text=\" + textOfField + \"\\n\");\n }",
"public void updateUI() {\n\t setUI( LinkButtonUI.createUI( this));\n\t}",
"public void updateButtons(int index) {\n\t\tbuttons.get(index).setText(upgrades.get(index).toString());\n\t}"
] | [
"0.6927085",
"0.6895211",
"0.68828315",
"0.6837726",
"0.67989856",
"0.67686886",
"0.676536",
"0.67438453",
"0.67275304",
"0.66945237",
"0.6670906",
"0.66573966",
"0.6650527",
"0.6649568",
"0.66312927",
"0.6628895",
"0.6626747",
"0.6618086",
"0.6605405",
"0.66027784",
"0.66024625",
"0.6600686",
"0.6593129",
"0.6589667",
"0.65887797",
"0.6582248",
"0.6580508",
"0.65752274",
"0.65705466",
"0.6562956",
"0.65600616",
"0.6538833",
"0.6534766",
"0.65098053",
"0.6487701",
"0.6486877",
"0.6472381",
"0.6467045",
"0.6451401",
"0.64500374",
"0.644006",
"0.63964564",
"0.6395139",
"0.63591754",
"0.6357028",
"0.6349876",
"0.63426304",
"0.6332438",
"0.63241416",
"0.63219684",
"0.6321439",
"0.63106954",
"0.6308128",
"0.63042617",
"0.62794363",
"0.62694925",
"0.6264574",
"0.62592536",
"0.6252817",
"0.6247992",
"0.62389827",
"0.6233931",
"0.6229066",
"0.6223739",
"0.6222965",
"0.6222649",
"0.6221042",
"0.6218464",
"0.6207344",
"0.6205465",
"0.620217",
"0.6196444",
"0.6174665",
"0.61614233",
"0.6160746",
"0.6160602",
"0.614644",
"0.6134966",
"0.6129185",
"0.6127789",
"0.612379",
"0.612262",
"0.6116871",
"0.61107033",
"0.610781",
"0.6105182",
"0.609996",
"0.609192",
"0.60846436",
"0.6084514",
"0.6084178",
"0.60816747",
"0.6080171",
"0.60786736",
"0.6078093",
"0.6075665",
"0.6070238",
"0.60590273",
"0.6046474",
"0.6046399",
"0.60453343"
] | 0.0 | -1 |
draw button in sprite batch | public void render(SpriteBatch sb) {
sb.draw(tex, x - width / 2, y - height / 2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void draw(SpriteBatch batch) {\n// If there is no image (word button)\n if (texture == null) {\n\n// If any menu cursor...\n for (MenuCursor cursor : Main.cursors) {\n\n// Is over the button, change the colour to the \"selected\" version\n if (isCursorOver(cursor)) {\n layout.setText(Main.menuFont, string, selectedColor, 0, Align.center, false);\n break;\n\n// Is not over the button, change the colour to the \"unselected\" version\n } else {\n layout.setText(Main.menuFont, string, unselectedColor, 0, Align.center, false);\n }\n }\n\n// Draw the text\n Main.menuFont.draw(batch, layout, pos.x, pos.y);\n\n// If there is an image\n } else {\n\n// If there is no cursors\n if (Main.cursors.size() == 0) {\n\n// If previously selected draw regular texture\n if (prevSelect) {\n batch.draw(texture, buttonRect.x, buttonRect.y);\n\n// Otherwise, draw the selected texture\n } else {\n batch.draw(selectTexture, buttonRect.x, buttonRect.y);\n }\n\n// If there is a cursor\n } else {\n\n// Cycle through all cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor is over the button, draw the selected texture\n if (isCursorOver(cursor)) {\n batch.draw(selectTexture, buttonRect.x, buttonRect.y);\n prevSelect = false;\n break;\n\n// Otherwise, draw the regular texture, previously selected is now true\n } else {\n batch.draw(texture, buttonRect.x, buttonRect.y);\n prevSelect = true;\n }\n }\n }\n }\n }",
"public void drawButton(Minecraft mc, int mouseX, int mouseY) {\n/* 20 */ if (this.visible) {\n/* */ \n/* 22 */ mc.getTextureManager().bindTexture(GuiButton.buttonTextures);\n/* 23 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 24 */ boolean var4 = (mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height);\n/* 25 */ int var5 = 106;\n/* */ \n/* 27 */ if (var4)\n/* */ {\n/* 29 */ var5 += this.height;\n/* */ }\n/* */ \n/* 32 */ drawTexturedModalRect(this.xPosition, this.yPosition, 0, var5, this.width, this.height);\n/* */ } \n/* */ }",
"@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(\"/gui/book.png\"));\n int var5 = 0;\n int var6 = 192;\n\n if (var4)\n {\n var5 += 23;\n }\n\n if (!this.nextPage)\n {\n var6 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, var6, 23, 13);\n }\n }",
"public void drawButton(Minecraft par1Minecraft, int par2, int par3) {\r\n\t\tif(this.visible) {\r\n\t\t\tRenderUtils.bindTexture(texture);\r\n\t\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\t\tint posX = 176;\r\n\t\t\tint posY = 10;\r\n\t\t\t\r\n\t\t\tif(this.enabled) {\r\n\t\t\t\tposY = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!this.field_73749_j) {\r\n\t\t\t\tposX += 15;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.drawTexturedModalRect(this.xPosition, this.yPosition, posX, posY, this.width, this.height);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(SteamCraft.guiLocation + \"researchpaper.png\"));\n int var5 = 209;\n int var6 = 13;\n\n if (this.nextPage)\n {\n var6 += 91;\n var5 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, 0, 10, var6);\n }\n }",
"public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_)\n {\n if (this.visible)\n {\n FontRenderer fontrenderer = p_146112_1_.fontRendererObj;\n p_146112_1_.getTextureManager().bindTexture(ThemeRegistry.curTheme().guiTexture());\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n this.hovered = p_146112_2_ >= this.xPosition && p_146112_3_ >= this.yPosition && p_146112_2_ < this.xPosition + this.width && p_146112_3_ < this.yPosition + this.height;\n int k = this.getHoverState(this.hovered);\n GlStateManager.enableBlend();\n GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);\n GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);\n \n GlStateManager.pushMatrix();\n float sh = height/20F;\n float sw = width >= 196? width/200F : 1F;\n float py = yPosition/sh;\n float px = xPosition/sw;\n GlStateManager.scale(sw, sh, 1F);\n \n if(width > 200) // Could use 396 but limiting it to 200 this makes things look nicer\n {\n \tGlStateManager.translate(px, py, 0F); // Fixes floating point errors related to position\n \tthis.drawTexturedModalRect(0, 0, 48, k * 20, 200, 20);\n } else\n {\n \tthis.drawTexturedModalRect((int)px, (int)py, 48, k * 20, this.width / 2, 20);\n \tthis.drawTexturedModalRect((int)px + width / 2, (int)py, 248 - this.width / 2, k * 20, this.width / 2, 20);\n }\n \n GlStateManager.popMatrix();\n \n this.mouseDragged(p_146112_1_, p_146112_2_, p_146112_3_);\n int l = 14737632;\n\n if (packedFGColour != 0)\n {\n l = packedFGColour;\n }\n else if (!this.enabled)\n {\n l = 10526880;\n }\n else if (this.hovered)\n {\n l = 16777120;\n }\n \n String txt = this.displayString;\n \n if(fontrenderer.getStringWidth(txt) > width) // Auto crop text to keep things tidy\n {\n \tint dotWidth = fontrenderer.getStringWidth(\"...\");\n \ttxt = fontrenderer.trimStringToWidth(txt, width - dotWidth) + \"...\";\n }\n \n this.drawCenteredString(fontrenderer, txt, this.xPosition + this.width / 2, this.yPosition + (this.height - 8) / 2, l);\n }\n }",
"public void drawPauseButton(){\r\n\t\tBatch b = canvas.getBatch();\r\n\t\tpauseButton.setPosition(camera.position.x+PAUSE_BUTTON_OFFSETX, camera.position.y+PAUSE_BUTTON_OFFSETY);\r\n\t\tpauseButton.draw(b, 1);\r\n\t}",
"private void drawButtonBackground(int x, int y)\n {\n this.drawSprite(x, y, 0, 0);\n }",
"Button(int ID, Texture image) {\n\n this.ID = ID;\n objectTexture = image;\n\n //Player 1 buttons\n int buttonx = Gdx.graphics.getWidth() - (Gdx.graphics.getHeight() / 4);\n int button1y = 0;\n int button2y = Gdx.graphics.getHeight() / 4;\n int button3y = Gdx.graphics.getHeight() / 2;\n int button4y = (3 * Gdx.graphics.getHeight()) / 4;\n //Player 2 buttons\n int buttonx2 = 0;\n int button5y = (3 * Gdx.graphics.getHeight()) / 4;\n int button6y = Gdx.graphics.getHeight() / 2;\n int button7y = Gdx.graphics.getHeight() / 4;\n int button8y = 0;\n //StartGame Button\n int startGameX = (Gdx.graphics.getWidth()/2)-((Gdx.graphics.getWidth()/3)/2);\n int startGameY = (Gdx.graphics.getHeight()/3)-(Gdx.graphics.getWidth()/3/2/2);\n\n //check which button we are\n switch (ID) {\n case 1:\n currentPosition = new GridPoint2(buttonx, button1y);\n break;\n case 2:\n currentPosition = new GridPoint2(buttonx, button2y);\n break;\n case 3:\n currentPosition = new GridPoint2(buttonx, button3y);\n break;\n case 4:\n currentPosition = new GridPoint2(buttonx, button4y);\n break;\n case 5:\n currentPosition = new GridPoint2(buttonx2, button5y);\n break;\n case 6:\n currentPosition = new GridPoint2(buttonx2, button6y);\n break;\n case 7:\n currentPosition = new GridPoint2(buttonx2, button7y);\n break;\n case 8:\n currentPosition = new GridPoint2(buttonx2, button8y);\n break;\n case 9:\n currentPosition = new GridPoint2(startGameX, startGameY);\n break;\n }\n\n //Now set the area to be clicked. first two parameters are position, then size\n if (ID == 9)\n {\n clickArea = new Rectangle(startGameX, Gdx.graphics.getHeight()-startGameY-(Gdx.graphics.getWidth()/3/2),\n Gdx.graphics.getWidth()/3, (Gdx.graphics.getWidth()/3)/2);\n }\n else {\n clickArea = new Rectangle(currentPosition.x, currentPosition.y,\n Gdx.graphics.getHeight() / 4, Gdx.graphics.getHeight() / 4);\n }\n }",
"public void drawButton(Minecraft mc, int mouseX, int mouseY)\n {\n if (visible)\n {\n mc.getTextureManager().bindTexture(GuiButton.buttonTextures);\n GlStateManager.color(1.0F, 1.0F, 1.0F, alpha);\n GlStateManager.enableBlend();\n GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);\n GlStateManager.blendFunc(770, 771);\n\n boolean flag = mouseX >= xPosition && mouseY >= yPosition && mouseX < xPosition + width && mouseY < yPosition + height;\n\n drawTexturedModalRect(xPosition, yPosition, texX, texY + (!forceEnabled ? 0 : (flag ? height : 0)), width, height);\n }\n }",
"@Override\n public void draw(SpriteBatch batch) {\n sprite.draw(batch);\n }",
"public abstract void Draw(SpriteBatch spriteBatch);",
"void render(SpriteBatch batch){\n sprite.draw(batch);\r\n }",
"public void draw(ShapeRenderer sr, SpriteBatch batch, boolean debug){\n if(debug){\n if(this.isPressed) {\n sr.setColor(Color.RED);\n DrawTools.rec(sr, super.getRect());\n }\n else{\n sr.setColor(Color.BLUE);\n DrawTools.rec(sr,super.getRect());\n }\n }\n else{\n if(this.isPressed){\n DrawTools.textureRect(batch,super.getRect(),pressed);\n }\n else{\n DrawTools.textureRect(batch,super.getRect(),unpressed);\n }\n }\n }",
"public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)\n {\n if (this.visible)\n {\n mc.getTextureManager().bindTexture(buttonTexture);\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n boolean flag = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;\n int i = 106;\n\n if (flag)\n {\n i += this.height;\n }\n\n this.drawTexturedModalRect(this.x, this.y, 0, i, this.width, this.height);\n }\n }",
"public void drawButtons() {\n\t\tfill(color(221, 221, 221));\n\t\tfor (int i = 0; i < NUM_BUTTONS; i++) {\n\t\t\trect(BUTTON_LEFT_OFFSET + i * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET, BUTTON_WIDTH, BUTTON_HEIGHT);\n\t\t}\n\n\t\t// set text color on the buttons to blue\n\t\tfill(color(0, 0, 255));\n\n\t\ttext(\"Add Cards\", BUTTON_LEFT_OFFSET + 18, BUTTON_TOP_OFFSET + 22);\n\t\ttext(\" Find Set\", BUTTON_LEFT_OFFSET + 18 + BUTTON_WIDTH + 12, BUTTON_TOP_OFFSET + 22);\n\t\ttext(\"New Game\", BUTTON_LEFT_OFFSET + 18 + 2 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\tif (state == State.PAUSED) {\n\t\t\ttext(\"Resume\", BUTTON_LEFT_OFFSET + 45 + 3 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\t} else {\n\t\t\ttext(\"Pause\", BUTTON_LEFT_OFFSET + 54 + 3 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\t}\n\t}",
"@Override\n public void draw(Batch batch, float alpha) {\n \t\n \t batch.draw(tr,this.getX(), this.getY(),this.getWidth(),this.getHeight());\n }",
"public void drawButton(Minecraft mc, int mouseX, int mouseY) {\n if(this.visible) {\n this.hovered = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + getButtonWidth() && mouseY < this.yPosition + this.height;\n GlStateManager.enableAlpha();\n GL11.glColor4d(1, 1, 1, 0);\n GuiUtils.drawGradientRect(30, this.xPosition - 2, this.yPosition - 2, this.xPosition + getBackgroundSize(), this.yPosition + height + 2, 0x9F100010, 0x9F100010);\n GlStateManager.disableAlpha();\n GuiUtils.drawContinuousTexturedBox(BUTTON_TEXTURES, this.xPosition, this.yPosition, 0, 46, 11, this.height, 200, 20, 2, 3, 2, 2, this.zLevel);\n this.mouseDragged(mc, mouseX, mouseY);\n int color = 14737632;\n\n if(packedFGColour != 0) {\n color = packedFGColour;\n } else if(!this.enabled) {\n color = 10526880;\n }\n\n if(this.isChecked()) {\n this.drawGradientRect(this.xPosition + 2, this.yPosition + 2, this.xPosition + 11 - 2, this.yPosition + height - 2, Color.cyan.darker().getRGB(), Color.cyan.darker().getRGB());\n }\n\n this.drawString(mc.fontRendererObj, displayString, xPosition + 11 + 2, yPosition + 2, color);\n }\n }",
"public void drawButtons(){\r\n\t\tGuiBooleanButton showDirection = new GuiBooleanButton(1, 10, 20, 150, 20, \"Show Direction\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowdir(), \"showdir\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showdir\").split(\";\"));\r\n\t\tGuiChooseStringButton dirpos = new GuiChooseStringButton(2, width/2+50, 20, 150, 20, \"Dir-Position\", GuiPositions.getPosList(), \"posdir\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosDir()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showFPS= new GuiBooleanButton(3, 10, 45, 150, 20, \"Show FPS\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowfps(), \"showfps\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfps\").split(\";\"));\r\n\t\tGuiChooseStringButton fpspos = new GuiChooseStringButton(4, width/2+50, 45, 150, 20, \"FPS-Position\", GuiPositions.getPosList(), \"posfps\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosFPS()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showCoor = new GuiBooleanButton(5, 10, 70, 150, 20, \"Show Coor\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowcoor(), \"showcoor\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showcoor\").split(\";\"));\r\n\t\tGuiChooseStringButton coorpos = new GuiChooseStringButton(6, width/2+50, 70, 150, 20, \"Coor-Position\", GuiPositions.getPosList(), \"poscoor\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosCoor()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showworldage = new GuiBooleanButton(7, 10, 95, 150, 20, \"Show WorldAge\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowWorldAge(), \"showworldage\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showworldage\").split(\";\"));\r\n\t\tGuiChooseStringButton worldagepos = new GuiChooseStringButton(8, width/2+50, 95, 150, 20, \"WorldAge-Position\", GuiPositions.getPosList(), \"posworldage\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosWorldAge()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\tGuiBooleanButton showFriendly = new GuiBooleanButton(7, 10, 120, 150, 20, \"Mark friendly spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingFriendlySpawns(), \"showfmobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfriendlymobspawn\").split(\";\"));\r\n\t\tGuiBooleanButton showAggressiv = new GuiBooleanButton(7, 10, 145, 150, 20, \"Mark aggressiv spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingAggressivSpawns(), \"showamobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showaggressivmobspawn\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton dynamic = new GuiBooleanButton(7, width/2+50, 120, 150, 20, \"dynamic selection\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isDynamic(), \"dynamichsel\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.dynamicselection\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tGuiButton back = new GuiButton(9, width/2-100,height-50 , \"back to game\");\r\n\t\t\r\n\t\tbuttonList.add(showworldage);\r\n\t\tbuttonList.add(worldagepos);\r\n\t\tbuttonList.add(dirpos);\r\n\t\tbuttonList.add(fpspos);\r\n\t\tbuttonList.add(coorpos);\r\n\t\tbuttonList.add(showCoor);\r\n\t\tbuttonList.add(showFPS);\r\n\t\tbuttonList.add(showDirection);\r\n\t\t\r\n\t\tbuttonList.add(showFriendly);\r\n\t\tbuttonList.add(showAggressiv);\r\n\t\tbuttonList.add(dynamic);\r\n\t\t\r\n\t\tbuttonList.add(back);\r\n\t}",
"public void drawPlayerResources(Player player) {\n //This method draws the buttons representing the player's resources, alter this method if you want to change how resources are represented.\n float x = 10.0f;\n //The value of y is set based on how much space the header texts and goals have taken up (assumed that 3 goals are always present for a consistent interface)\n float y = 300.0f;\n \n int xCounter = 0;\n\n //Clears the resource buttons so that the other player's resources are not displayed\n resourceButtons.remove();\n resourceButtons.clear();\n \n resourceImages.remove();\n resourceImages.clear();\n\n for (final Resource resource : player.getResources()) {\n \n \t//This if statement is used to determine what type of resource is being drawn. This is necessary as each resource needs to have a different click listener assigned to its button.\n // draw train boxes first, then skip box after\n \tif (resource instanceof Train) {\n Train train = (Train) resource;\n\n // Don't show a button for trains that have been placed, trains placed are still part of the 7 total upgrades\n //If a train is not placed then its position is null so this is used to check\n if (train.getPosition() == null) {\n //Creates a clickListener for the button and adds it to the list of buttons\n TrainClicked listener = new TrainClicked(context, train);\n //TextButton button = new TextButton(resource.toString(), context.getSkin());\n ImageButton button = new ImageButton(context.getSkin());\n button.setWidth(82);\n button.setHeight(99);\n button.addListener(listener);\n resourceButtons.addActor(button);\n button.setPosition(x, y);\n xCounter += 1;\n \n Texture buttonText = null;\n Image buttonImage;\n \n if (resource.toString().equals(\"Bullet Train\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_bullet.png\"));\n }\n else if (resource.toString().equals(\"Diesel Train\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_diesel.png\"));\n }\n else if (resource.toString().equals(\"Electric Train\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_electric.png\"));\n }\n else if (resource.toString().equals(\"Kamikaze\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_kamikaze.png\"));\n }\n else if (resource.toString().equals(\"MagLev Train\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_maglev.png\"));\n }\n else if (resource.toString().equals(\"Nuclear Train\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_nuclear.png\"));\n }\n else if (resource.toString().equals(\"Petrol Train\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_petrol.png\"));\n }\n else if (resource.toString().equals(\"Pioneer\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_pioneer.png\"));\n }\n else if (resource.toString().equals(\"Steam Train\")) {\n \tbuttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_steam.png\"));\n }\n \n buttonImage = new Image(buttonText);\n buttonImage.setWidth(82);\n buttonImage.setHeight(99);\n resourceImages.addActor(buttonImage);\n buttonImage.setPosition(x, y);\n \n if (xCounter == 3) {\n \ty -= 105;\n \tx = 10.0f;\n \txCounter = 0;\n }\n else {\n \tx += button.getWidth() + 10;\n }\n \n }\n\n } \n }\n \n for (final Resource resource : player.getResources()) {\n \n \t//This if statement is used to determine what type of resource is being drawn. This is necessary as each resource needs to have a different click listener assigned to its button.\n // NEED to draw train boxes first, then skip box after\n \tif (resource instanceof Skip) {\n //Creates a clickListener for the button and adds it to the list of buttons\n Skip skip = (Skip) resource;\n SkipClicked listener = new SkipClicked(context, skip);\n ImageButton button = new ImageButton(context.getSkin());\n button.setWidth(267);\n button.setHeight(40);\n button.addListener(listener);\n resourceButtons.addActor(button);\n \n if (xCounter == 0) {\n \tx = 10.0f;\n \ty += 60;\n }\n else {\n \tx = 10.0f;\n \ty -= 45;\n }\n \n button.setPosition(x, y);\n \n Texture buttonText = new Texture(Gdx.files.internal(\"Resource Buttons/btn_skip.png\"));\n Image buttonImage = new Image(buttonText);\n buttonImage.setWidth(267);\n buttonImage.setHeight(40);\n resourceImages.addActor(buttonImage);\n buttonImage.setPosition(x, y);\n \n \n } \n }\n\n //Adds all generated buttons to the stage\n context.getStage().addActor(resourceImages);\n context.getStage().addActor(resourceButtons);\n }",
"@Override\n public void draw(Batch batch) {\n batch.draw(sprite.getTexture(),\n this.position.x * Game.UNIT_SCALE,\n this.position.y * Game.UNIT_SCALE,\n sprite.getWidth() / 2 * Game.UNIT_SCALE,\n sprite.getHeight() / 2 * Game.UNIT_SCALE,\n this.sprite.getWidth() * Game.UNIT_SCALE,\n this.sprite.getHeight() * Game.UNIT_SCALE,\n 1.0f,\n 1.0f,\n 0,\n sprite.getRegionX(),\n sprite.getRegionY(),\n sprite.getRegionWidth(),\n sprite.getRegionHeight(),\n isFlipped, false\n );\n\n if (Game.getDebugMode()) {\n batch.draw(debug.getTexture(),\n this.position.x * Game.UNIT_SCALE,\n this.position.y * Game.UNIT_SCALE,\n aabb.getWidth() / 2 * Game.UNIT_SCALE,\n aabb.getHeight() / 2 * Game.UNIT_SCALE,\n this.aabb.getWidth() * Game.UNIT_SCALE,\n this.aabb.getHeight() * Game.UNIT_SCALE,\n 1.0f,\n 1.0f,\n 0,\n sprite.getRegionX(),\n sprite.getRegionY(),\n sprite.getRegionWidth(),\n sprite.getRegionHeight(),\n isFlipped, false\n );\n }\n }",
"public void draw(SpriteBatch batch, SpriteBatch hudbatch, ShapeRenderer render, SpriteBatch dragBatch)\r\n\t{\r\n\t\tbatch.begin();\r\n\t\tbackground.draw(batch);\r\n\t\tgrid.draw(batch);\r\n\t\tplayer.draw(batch);\r\n\t\tif(levelEditingMode)//drawing the make button\r\n\t\t{\r\n\t\t\tmakeButton.draw(batch);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.draw(batch);\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.draw(batch);\r\n\t\t}\r\n\t\tbatch.end();\r\n\t\tmenu.draw(hudbatch, render, dragBatch);\r\n\t\thudbatch.begin();//the hud batch that has no projection matrix\r\n\t\tplayButton.draw(hudbatch);\r\n\t\t//if the string key exists (returns the key when string is null)\r\n\t\tif(!AndroidGame.lang.getString(\"tut\"+levelNum).equals(\"tut\"+levelNum)&&!LevelScreen.isRunning)\r\n\t\t{\r\n\t\t\ttutorialRender.drawWrapped(hudbatch, AndroidGame.lang.getString(\"tut\"+levelNum), 75, AndroidGame.h-AndroidGame.h/4, AndroidGame.w/1.5f);\r\n\t\t}\r\n\t\thudbatch.end();\r\n\t}",
"@Override\n\tpublic void render(SpriteBatch batch) {\n\t}",
"public abstract void render(SpriteBatch batch);",
"public void draw(Batcher batch) {\n sprite.draw(pos, batch, facing);\n }",
"public void draw(SpriteBatch batch){\n this.draw(null,batch,false);\n }",
"public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}",
"public void render(Graphics g){\r\n if(!goButtonAdded&&a2>250){\r\n buttons.add(new Button(game,g,0,null,\"START\",(int)(w*0.40),(int)(h*0.93),(int)(w*0.2),(int)(h*0.14),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),75,15,false,true));\r\n goButtonAdded = true;\r\n }\r\n if(!buttonsAdded){\r\n for(int i = 1; i < Missions.NUMBER_OF_MISSIONS+1;i++){\r\n if(data.missionCompletion[i-1]==-1){\r\n missionButtons.add(new Button(game,g,Assets.redExclamationPoint,wiresX[(i-1)*3]-50,wiresY[(i-1)*3]-110,100,220,false));\r\n }else if(data.missionCompletion[i-1]==0){\r\n missionButtons.add(new Button(game,g,Assets.exclamationPoint,wiresX[(i-1)*3]-50,wiresY[(i-1)*3]-110,100,220,false));\r\n }else if(data.missionCompletion[i-1]==1){\r\n missionButtons.add(new Button(game,g,Assets.checkMark,wiresX[(i-1)*3]-80,wiresY[(i-1)*3]-110,100,220,false));\r\n }else{\r\n missionButtons.add(new Button(game,g,Assets.stars.get(0),wiresX[(i-1)*3]-50,wiresY[(i-1)*3]-110,100,220,false));\r\n }\r\n }\r\n buttons.add(new Button(game,g,0,null,\"Log Out\",(int)(w*0.03),(int)(h*0.11),(int)(w*0.14),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),40,15,false,true));\r\n buttons.add(new Button(game,g,0,null,\">\",(int)(w*0.79),(int)(h*0.70),(int)(w*0.10),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),180,15,false,true));\r\n buttons.add(new Button(game,g,0,null,\"<\",(int)(w*0.11),(int)(h*0.70),(int)(w*0.10),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),180,15,false,true));\r\n buttonsAdded = true;\r\n }\r\n if(reAddButtons){\r\n buttons.add(new Button(game,g,0,null,\"Log Out\",(int)(w*0.03),(int)(h*0.11),(int)(w*0.14),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),40,15,false,true));\r\n buttons.add(new Button(game,g,0,null,\">\",(int)(w*0.79),(int)(h*0.70),(int)(w*0.10),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),180,15,false,true));\r\n buttons.add(new Button(game,g,0,null,\"<\",(int)(w*0.11),(int)(h*0.70),(int)(w*0.10),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),180,15,false,true));\r\n goButtonAdded = false;\r\n reAddButtons = false;\r\n }\r\n drawBackground(g);\r\n if(!moving){\r\n drawMissionBox(g);\r\n missionButtons.get(currentMission-1).drawButton(g,game,screenOffsetX,screenOffsetY);\r\n g.setColor(Colors.ColorAlpha(Colors.lightReds,a1));\r\n g.setFont(game.font60);\r\n g.drawString(\"Please Select a Mission\",Display.centerString\r\n (\"Please Select a Mission\",g,game.font60,game),(int)(h*0.12));\r\n Button.drawButtons(g,game,buttons,0,0);\r\n Button.drawButtonShine(g,game);\r\n g.setColor(Colors.ColorAlpha(Colors.lightReds,a1));\r\n g.setFont(game.font50);\r\n g.drawString(\"Mission \"+currentMission+\": \"+Missions.missions[currentMission-1].Type,Display.centerString\r\n (\"Mission \"+currentMission+\": \"+Missions.missions[currentMission-1].Type,g,game.font50,game),(int)(h*0.33));\r\n g.drawString(Missions.missions[currentMission-1].toString(),Display.centerString\r\n (Missions.missions[currentMission-1].toString(),g,game.font50,game),(int)(h*0.73));\r\n }else{\r\n Button.drawButtons(g,game,missionButtons,screenOffsetX,screenOffsetY);\r\n MouseManager.mousePressed = false;\r\n KeyboardManager.keyPressed = false;\r\n a2=0;\r\n }\r\n }",
"public void draw(Batch batch) {\n\n //System.out.format(\"currentFrame: %d%n\", currentFrame);\n //System.out.format(\"x: %f y: %f z: %f%n\", position.x, position.y, position.z);\n\n int scrx = (int) this.position.x;\n int scry = (int) this.position.y;\n int shadx = scrx + (int) (this.position.z / 2);\n int shady = scry + (int) (this.position.z / 2);\n\n this.currentFrame = shadx - scrx;\n if (this.currentFrame < 4) {\n //low ball, shadow contained in sprite\n scry += this.position.z / 2;\n if (this.currentFrame >= 0 && this.currentFrame < 8) {\n batch.draw(this.frames[0][this.currentFrame], scrx - SPRITE_WIDTH / 2, scry - SPRITE_HEIGHT / 2);\n }\n } else {\n //draw the shadow\n int shadowFrame = 8;\n batch.draw(this.frames[0][shadowFrame], shadx - SPRITE_WIDTH / 2, shady - SPRITE_HEIGHT / 2);\n //draw the ball\n scry += (this.position.z / 2);\n this.currentFrame = (int) Math.min(3, this.position.z / 32);\n int ballFrame = this.currentFrame + 4;\n batch.draw(this.frames[0][ballFrame], scrx - SPRITE_WIDTH / 2, scry - SPRITE_HEIGHT / 2);\n }\n }",
"@Override\n\t\tpublic void renderButton(int mouseX, int mouseY){\n\t\t}",
"public Button(Vector2 pos, Main game, Texture[] texture) {\n// Setting variables\n this.buttonRect = new Rectangle();\n this.pos = pos;\n this.string = null;\n this.texture = texture[0];\n if (texture[1] != null) {\n this.selectTexture = texture[1];\n }\n this.game = game;\n\n// Adding the button to the list of buttons\n Main.buttons.add(this);\n\n// Setting position\n this.buttonRect.set(pos.x - (texture[0].getWidth() / 2f), pos.y - (texture[0].getHeight() / 2f), texture[0].getWidth(), texture[0].getHeight());\n clickSound = Gdx.audio.newSound(Gdx.files.internal(\"audio/sound effects/menuChoose.wav\"));\n }",
"@Override\n\tpublic void render(float delta) {\n\t\tsetupDisplay();\n\t\tcamera.update();\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\t\n\t\t//Matrix4 normalProjection = new Matrix4().setToOrtho2D(0, 0,\n\t\t//\t\tGdx.graphics.getWidth(), Gdx.graphics.getHeight()); //required to render sprites properly\n\t\t//batch.setProjectionMatrix(normalProjection);\n\t\tbatch.begin();\n\t\t\n\t\t//Draw Background\n\t\tdrawBackground();\n\t\t\n\t\t//Draw Buttons (if input falls in the draw region for a button, change the image to a 'clicked' button)\n\t\tdrawButtons();\n\t\t\n\t\t//Draw Text(if you draw anything else after this, the projection matrix must be reset)\n\t\tdrawText();\n\t\tbatch.end();\n\t}",
"public abstract void render(SpriteBatch spriteBatch);",
"public JButton drawButton ()\n {\n\n if (isAlive())\n {\n button.setBackground(ALIVE_COLOUR);\n }\n else \n {\n button.setBackground(DEAD_COLOUR);\n }\n\n button.addActionListener(this);\n return button;\n }",
"private void createButtons() {\n\tTexture startGameTex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_start.png\"));\n\tTexture plane_p1_tex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_player1.png\"));\n\tTexture plane_p2_tex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_player2.png\"));\n\n\tplayButton = new Button(\"\", font, 0, 0, new TextureRegion(startGameTex,\n\t\t0, 0, 161, 20), new TextureRegion(startGameTex, 0, 0, 161, 20),\n\t\tnew ScreenSwitchHandler(Screen.GAME));\n\tplaneButton_p1 = new Button(\"\", font, 0, 0, new TextureRegion(\n\t\tplane_p1_tex, 0, 0, 161, 20), new TextureRegion(plane_p1_tex,\n\t\t0, 0, 161, 20), new ScreenSwitchHandler(Screen.PLANE_P1));\n\tplaneButton_p2 = new Button(\"\", font, 0, 0, new TextureRegion(\n\t\tplane_p2_tex, 0, 0, 161, 20), new TextureRegion(plane_p2_tex,\n\t\t0, 0, 161, 20), new ScreenSwitchHandler(Screen.PLANE_P2));\n\toptionsButton = new Button(\"Options\", font, new ScreenSwitchHandler(\n\t\tScreen.OPTIONS));\n\texitButton = new Button(\"Exit\", font, new ButtonHandler() {\n\t @Override\n\t public void onClick() {\n\t\tGdx.app.exit();\n\t }\n\n\t @Override\n\t public void onRelease() {\n\t\t// TODO Auto-generated method stub\n\n\t }\n\t});\n }",
"public void draw() {\n \n }",
"@Override\r\n\t\t\tpublic void onClick(ButtonSprite button, float arg1, float arg2) {\n\r\n\t\t\t\tif (button == settingBtn) {\r\n\t\t\t\t\tif (isSetting) {\r\n\t\t\t\t\t\tisSetting = false;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tisSetting = true;\r\n\t\t\t\t\t\tMainActivity.playScene.pauseGame();\r\n\t\t\t\t\t\tbgSettingSpr.setVisible(true);\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (button == musicBtn) {\r\n\t\t\t\t\tif (ConfigManager.IS_MUSIC) {\r\n\t\t\t\t\t\tConfigManager.IS_MUSIC = false;\r\n\t\t\t\t\t\tif (MainActivity.playScene.bgMusic.isPlaying()) {\r\n\t\t\t\t\t\t\tMainActivity.playScene.bgMusic.stop();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tConfigManager.IS_MUSIC = true;\r\n\t\t\t\t\t\tMainActivity.playScene.bgMusic.play();\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(0);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (button == soundBtn) {\r\n\t\t\t\t\tif (ConfigManager.IS_SOUND) {\r\n\t\t\t\t\t\tConfigManager.IS_SOUND = false;\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tConfigManager.IS_SOUND = true;\r\n\t\t\t\t\t\tbutton.setCurrentTileIndex(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}",
"public void render(){\n spriteBatch.begin();\n drawEnemies();\n drawPlayer();\n drawBullets();\n spriteBatch.end();\n if(debug){\n drawDebug();\n }\n }",
"private void drawSprite(int x, int y, int u, int v)\n {\n GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.getTextureManager().bindTexture(STAT_ICONS);\n float f = 0.0078125F;\n float f1 = 0.0078125F;\n int i = 18;\n int j = 18;\n Tessellator tessellator = Tessellator.getInstance();\n BufferBuilder bufferbuilder = tessellator.getBuffer();\n bufferbuilder.begin(7, DefaultVertexFormats.POSITION_TEX);\n bufferbuilder.pos((double)(x + 0), (double)(y + 18), (double)this.zLevel).tex((double)((float)(u + 0) * 0.0078125F), (double)((float)(v + 18) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 18), (double)(y + 18), (double)this.zLevel).tex((double)((float)(u + 18) * 0.0078125F), (double)((float)(v + 18) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 18), (double)(y + 0), (double)this.zLevel).tex((double)((float)(u + 18) * 0.0078125F), (double)((float)(v + 0) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 0), (double)(y + 0), (double)this.zLevel).tex((double)((float)(u + 0) * 0.0078125F), (double)((float)(v + 0) * 0.0078125F)).endVertex();\n tessellator.draw();\n }",
"protected void drawGUI() {\n batch.draw(background, 0, 0);\n }",
"@Override\n public void draw(Batch batch, float alpha) {\n\t\t if(reverse)\n \tbatch.draw(plat,this.getX()+69, this.getY(),plat.getWidth()*px,plat.getHeight()*py,0,0,plat.getWidth(),plat.getHeight(),reverse,false);\n\t\t else\n\t\t\t batch.draw(plat,this.getX(), this.getY(),plat.getWidth()*px,plat.getHeight()*py);\n \tif(!reverse){\n \tbatch.draw(bar1,this.getX()+9,this.getY()+142,330/maxBlood*blood*px,bar1.getHeight()*py);\n \tbatch.draw(bar2,this.getX()+9,this.getY()+95,240*magic/maxMagic*px,bar2.getHeight()*py);\n \t}else{\n \t\tbatch.draw(bar1,this.getX()+688-330/maxBlood*blood*px,this.getY()+142,330/maxBlood*blood*px,bar1.getHeight()*py);\n \tbatch.draw(bar2,this.getX()+688-240*magic/maxMagic*px,this.getY()+95,240*magic/maxMagic*px,bar2.getHeight()*py);\n \t}\n \t}",
"private void createButtons() {\n Texture playButtonIdle, playButtonPressed,settingsButtonIdle, settingsButtonPressed, creditsButtonIdle, creditsButtonPressed;\n\n if(game.getLocale().getCountry().equals(\"FI\")){\n playButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startgame_FIN.png\");\n playButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startgame_FIN_PRESSED.png\");\n\n settingsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startsettings_FIN.png\");\n settingsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startsettings_FIN_PRESSED.png\");\n\n creditsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_credits_FIN.png\");\n creditsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_credits_FIN_PRESSED.png\");\n }else{\n playButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startgame_ENG.png\");\n playButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startgame_ENG_PRESSED.png\");\n\n settingsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startsettings_ENG.png\");\n settingsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startsettings_ENG_PRESSED.png\");\n\n creditsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_credits_ENG.png\");\n creditsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_credits_ENG_PRESSED.png\");\n }\n\n ImageButton playButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(playButtonIdle)), new TextureRegionDrawable(new TextureRegion(playButtonPressed)));\n\n playButton.setPosition(95, 12);\n stage.addActor(playButton);\n\n playButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(gameScreen);\n }\n });\n\n ImageButton settingsButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(settingsButtonIdle)), new TextureRegionDrawable(new TextureRegion(settingsButtonPressed)));\n\n settingsButton.setPosition(175, 12);\n stage.addActor(settingsButton);\n\n settingsButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new OptionsScreen(game));\n }\n });\n\n ImageButton creditsButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(creditsButtonIdle)), new TextureRegionDrawable(new TextureRegion(creditsButtonPressed)));\n\n creditsButton.setPosition(15, 12);\n stage.addActor(creditsButton);\n\n creditsButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new CreditsScreen(game));\n }\n });\n }",
"public void draw(){\n hit();\n hit();\n }",
"public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}",
"@Override\r\n\tpublic void draw(Canvas canvas) {\n\t\tthing.getSprite().draw(canvas);\r\n\t}",
"private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }",
"@Override\n public void draw(Batch batch, float parentAlpha) {\n\n if(vidas == 0){\n sprite.setBounds(body.getPosition().x-7,body.getPosition().y-12,16,16);\n sprite.draw(batch);\n\n }else{\n sprite.setBounds(body.getPosition().x-7,body.getPosition().y-7,16,16);\n sprite.setPosition(body.getPosition().x - 9f, body.getPosition().y - 9);\n sprite.draw(batch);\n patrullar();\n }\n\n\n }",
"protected void drawButtons() {\n\t\tint spaceX = 50;\n\t\tint spaceY = 500;\t\n\t\t\n\t\tint aux = 1;\n\t\tfor(int i = 65; i < 91; i++) {\n\n\t\t\tLetterButton button = new LetterButton((char) i, (25 + spaceX ) * aux, spaceY);\n\t\t\taux++;\n\t\t\tif(aux == 14) {\n\t\t\t\tspaceY += 25 + 50;\n\t\t\t\taux = 1;\n\t\t\t}\n\t\t\tthis.add(button);\n\t\t}\n\t\t\n\t}",
"public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);",
"public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.getFont());\n addMouseListener(this);\n setVisible(true);\n }",
"public void createGameButtons() {\n \tcreateGameButton(myResources.getString(\"startcommand\"), 1, GAME_BUTTON_XLOCATION, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"stopcommand\"), 0, GAME_BUTTON_XLOCATION * 3, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"speedup\"), SPEED_INCREASE, GAME_BUTTON_XLOCATION*5, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"slowdown\"), 1/SPEED_INCREASE, GAME_BUTTON_XLOCATION*7, GAME_BUTTON_YLOCATION);\n }",
"public void draw() {\n \n // TODO\n }",
"public void paint() {\r\n\t\tBufferStrategy bf = base.frame.getBufferStrategy();\r\n\t\ttry {\r\n\t\t\tg = bf.getDrawGraphics();\r\n\t\t\tg.clearRect(0, 0, 1024, 768);\r\n\t\t\tg.setFont(normal);\r\n\t\t\tif (gameState == 1) {\r\n\t\t\t\tg.drawImage(playButton, playButtonXM, playButtonYM, playButtonWidthM, playButtonHeightM, this);\t\t\t\t\r\n\t\t\t}else if (gameState == 3){\r\n\t\t\t\tint weaponPosX = ((arrow2X-arrowX) /2) + arrowX - 20;\r\n\t\t\t\tint weaponPosY = arrowY - 15;\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY2ndRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY2ndRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY3rdRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY3rdRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY4thRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY4thRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(playButton, playButtonX, playButtonY, playButtonWidth, playButtonHeight, this);\r\n\r\n\t\t\t\t//text boxes above choices\r\n\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\tg.drawString(\"Weapon\", weaponPosX, weaponPosY);\r\n\t\t\t\tg.drawString(\"Difficulty\", weaponPosX, (arrowY2ndRow - 15));\r\n\t\t\t\tg.drawString(\"Number of AI\", weaponPosX - 12, (arrowY3rdRow - 15));\r\n\t\t\t\tg.drawString(\"Number of players\", weaponPosX - 20, (arrowY4thRow - 15));\r\n\r\n\t\t\t\tif (getDifficulty() == 1){\r\n\t\t\t\t\tg.drawImage(Easy, difficultyXPos, arrowY2ndRow, difficultyWidth , arrowHeight, this);\r\n\t\t\t\t}else if (getDifficulty() == 2) {\r\n\t\t\t\t\tg.drawImage(Normal, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tg.drawImage(Hard, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tif (getAttackStyle() == 2) {\r\n\t\t\t\t\tg.drawImage(Arrowr, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 280, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//due to the sword using all of the x positions the width is slightly different\r\n\t\t\t\t\tg.drawImage(SwordL, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 300, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tint AIXPos = weaponPosX;\r\n\t\t\t\tif (AINum >= 10 && AINum<100) {\r\n\t\t\t\t\tAIXPos -=25;\r\n\t\t\t\t} else if (AINum >= 100 && AINum < 1000) {\r\n\t\t\t\t\t//the reason why this grows by 40 instead of an additional 20 is because we are not storing the variable\r\n\t\t\t\t\t//of current position anywhere so we just add another 20 onto the decrease\r\n\t\t\t\t\tAIXPos-=50;\r\n\t\t\t\t} else if (AINum >= 1000) {\r\n\t\t\t\t\tAIXPos-=75;\r\n\t\t\t\t}\r\n\t\t\t\tg.setFont(numbers);\r\n\t\t\t\tString currentNum = Integer.toString(AINum);\r\n\t\t\t\tString currentPlayerString = Integer.toString(currentPlayer);\r\n\t\t\t\tg.drawString(currentNum, AIXPos, arrowY3rdRow + 72);\r\n\t\t\t\tg.drawString(currentPlayerString, weaponPosX, arrowY4thRow + 72);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ((!escape) && (!dead) &&(!allAIDead)) {\r\n\t\t\t\t\tg.drawImage(picture, 0, 0, base.frame.getWidth(), base.frame.getHeight(), this);\r\n\t\t\t\t\tfor (int i = 0; i < playerObject.length; i++) {\r\n\t\t\t\t\t\tint playerX = (int) playerObject[i].getX();\r\n\t\t\t\t\t\tint playerY = (int) playerObject[i].getY();\r\n\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t// health bar\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, 100, healthY);\r\n\t\t\t\t\t\tg.setColor(Color.red);\r\n\t\t\t\t\t\tg.fillOval(playerX, playerY, 20, 20);\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, (int) (playerObject[i].getHealth()/2) , healthY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//AI\r\n\t\t\t\t\tfor (int i = 0; i < AIObject.length; i++) {\r\n\t\t\t\t\t\tif (!AIObject[i].isDead()) {\r\n\t\t\t\t\t\t\tint AIRoundedX = (int) AIObject[i].getAIX();\r\n\t\t\t\t\t\t\tint AIRoundedY = (int) AIObject[i].getAIY();\r\n\t\t\t\t\t\t\tif (AIObject[i].getColor() == null) {\r\n\t\t\t\t\t\t\t\tint red = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint green = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint blue = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tColor newColor = new Color(red,green,blue);\r\n\t\t\t\t\t\t\t\tg.setColor(newColor);\r\n\t\t\t\t\t\t\t\tAIObject[i].setColor(newColor);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tg.fillOval(AIRoundedX, AIRoundedY, 20, 20);\r\n\t\t\t\t\t\t\tAIDeadCount = 0;\r\n\t\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, AI_ORIG_HEALTH/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, (int) AIObject[i].getAIHealth()/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tAIDeadCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// early access banner\r\n\t\t\t\t\tg.drawImage(earlyAccess, 0, 24, this);\r\n\r\n\t\t\t\t\tif (attackStyle == 2) {\r\n\t\t\t\t\t\tif (drawArrow == true) {\r\n\t\t\t\t\t\t\tinFlight = true;\r\n\t\t\t\t\t\t\tshouldPlaySound = true;\r\n\t\t\t\t\t\t\tif ((fireLeft) && (currentlyDrawingArrow != 2)) {\r\n\t\t\t\t\t\t\t\tgoingLeft = true;\r\n\t\t\t\t\t\t\t\tgoingRight = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 1;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowl, Math.round(aX), Math.round(aY), this);\r\n\r\n\t\t\t\t\t\t\t} else if ((fireRight) && (currentlyDrawingArrow != 1)) {\r\n\t\t\t\t\t\t\t\tgoingRight = true;\r\n\t\t\t\t\t\t\t\tgoingLeft = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 2;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowr, Math.round(aX), Math.round(aY), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ((aX >= 1024) || (!drawArrow) || (aX <= 0)) {\r\n\t\t\t\t\t\t\tinFlight = false;\r\n\t\t\t\t\t\t\taX = playerObject[0].getX();\r\n\t\t\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t\t\t\tcurrentlyDrawingArrow = 0;\r\n\t\t\t\t\t\t\tdrawArrow = false;\r\n\t\t\t\t\t\t\tshouldPlaySound = false;\r\n\t\t\t\t\t\t\tnotPlayingSound = false;\r\n\t\t\t\t\t\t\talreadyShot = false;\r\n\t\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tint roundedX = Math.round(playerObject[0].getX());\r\n\t\t\t\t\t\tint roundedY = Math.round(playerObject[0].getY());\r\n\t\t\t\t\t\tif (drawSword) {\r\n\t\t\t\t\t\t\tswordCount++;\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX - 45, roundedY - 30, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX - 63, roundedY, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\t//image flip g.drawImage(SwordHorizontalL, Math.round(x) - 2, Math.round(y) - 45, -SwordHorizontalL.getWidth(this),SwordHorizontalL.getHeight(this),this);\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth,swordHorizontalLWidth,this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX + 80, roundedY - 30,\r\n\t\t\t\t\t\t\t\t\t\t\t-sword45LWidth, sword45LHeight, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX +90, roundedY, -swordLWidth, swordLHeight, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth, swordHorizontalLHeight, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (shield) {\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX - 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX + 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t-SwordHorizontalL.getWidth(this), SwordHorizontalL.getHeight(this), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tswordCount = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if (escape) {\r\n\t\t\t\t\tg.setColor(Color.white);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawString(\"PAUSED\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t\telse if (dead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"Dead\", 512, 389);\r\n\t\t\t\t} else if(allAIDead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"You win\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tg.dispose();\r\n\t\t}\r\n\t\t// Shows the contents of the backbuffer on the screen.\r\n\t\tbf.show();\r\n\t}",
"public void draw(){\n }",
"public void render(SpriteBatch batch){\n Utils.drawTextureRegion(batch, region ,position.x,position.y-1, 1.0F);\n }",
"public RectYellowWorldButton(World world) \n {\n super(world,\n \"buttonUnpressed.png\",\n \"buttonHovered.png\",\n \"buttonPressed.png\");\n }",
"@Override\r\n\tpublic void draw(Batch batch)\r\n\t{\n\t\t\r\n\t\tif(m_texRegion.isFlipX() && m_rightDirection)\r\n\t\t\tm_texRegion.flip(true, false);\r\n\t\telse if(!m_texRegion.isFlipX() && !m_rightDirection)\r\n\t\t\tm_texRegion.flip(true, false);\r\n\r\n\t\tif(this.m_isInvulnerable)\r\n\t\t\tbatch.setColor(1,1,1,0.5f);\r\n\t\telse\r\n\t\t\tbatch.setColor(new Color(Color.WHITE));\r\n\r\n\t\tthis.updateTransform();\r\n\t\tbatch.draw(m_texRegion, this.getDimension().x, this.getDimension().y, this.getTransform());\r\n\r\n\t\tbatch.setColor(new Color(Color.WHITE));\r\n\r\n\r\n\t\tm_lifeBar.setLife((int) this.m_life);\r\n\t\tm_lifeBar.setPosition(this.getPosition().add(0, 64));\r\n\t\tm_lifeBar.draw(batch);\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void render() {\r\n\r\n\t\tsb.setProjectionMatrix(cam.combined);\r\n\r\n\t\t// draw background\r\n\t\tbg.render(sb);\r\n\r\n\t\t// draw button\r\n\t\tlevel1.render(sb);\r\n\t\tlevel2.render(sb);\r\n\t\tlevel3.render(sb);\r\n\t\t\r\n\t\tif (gameMode == 1){\r\n\t\t\tplayer1press.render(sb);\r\n\t\t\tplayer2press.render(sb);\r\n\t\t}\r\n\t\telse \r\n\t\t\tplayerpress.render(sb);\r\n\t\t\r\n\t\t\r\n\t selectTheLevel.render(sb);\r\n\t\t\r\n\t\tmainMenuB.render(sb);\r\n\r\n\t\t// debug draw box2d\r\n\t\tif(debug) {\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH / 100, Game.V_HEIGHT / 100);\r\n\t\t\tb2dRenderer.render(world, cam.combined);\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH, Game.V_HEIGHT);\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic void draw(Batch batch) {\n\t\tbatch.draw(textureRegion, super.getPosition().x, super.getPosition().y);\n\t}",
"public void draw() {\n\n }",
"public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}",
"public void render(Screen screen) {\n\t\tscreen.renderInterface(x, y, width, height, button, clicked); //renders all 4 pieces of the 32x32 sprite. Modifying the x or y will change where the screen is centered.\n\t}",
"public LevelButton(int y, String number, int stars){\n this.stars = stars;\n this.name = number;\n this.number = new Sprite(new Texture(Gdx.files.internal(\"huds/numbers/\"+number+\".png\")));\n\n slot = new Sprite(new Texture(Gdx.files.internal(\"huds/menu/level slot.png\")));\n star1 = new Sprite(new Texture(Gdx.files.internal(\"huds/menu/star.png\")));\n star2 = new Sprite(star1.getTexture());\n star3 = new Sprite(star1.getTexture());\n slot.setSize(slot.getWidth()*2,slot.getHeight()*2);\n slot.setPosition(Initial.HEIGHT/5, Initial.WIDTH*0.69f - (slot.getHeight()+ 10)*y);\n this.number.setPosition(slot.getX()+slot.getWidth()*0.35f,slot.getY()+slot.getHeight()*0.3f);\n this.number.setSize(this.number.getWidth()*3,this.number.getHeight()*3);\n if(stars == 2){\n star3.setColor(Color.BLACK);\n }\n if(stars == 1){\n star2.setColor(Color.BLACK);\n star3.setColor(Color.BLACK);\n }\n if(stars == 0){\n star1.setColor(Color.BLACK);\n star2.setColor(Color.BLACK);\n star3.setColor(Color.BLACK);\n }\n star1.setPosition(slot.getX() + 5 + slot.getWidth(),slot.getY()+slot.getHeight()/6);\n star2.setPosition(slot.getX() + slot.getWidth()*2 -5,slot.getY()+slot.getHeight()/6);\n star3.setPosition(slot.getX() + slot.getWidth()*3 -10,slot.getY()+slot.getHeight()/6);\n star1.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n star2.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n star3.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n\n rect = new Rectangle(slot.getX(),slot.getY(), Initial.WIDTH/2.7f,slot.getHeight());\n }",
"@Override\n\tpublic void draw(Canvas canvas) {\n\t\tcanvas.drawBitmap(bmBack,0,0,null);\n\t\tbtnO.draw(canvas);\n\t\tbtnX.draw(canvas);\n\t}",
"@Override\r\n\tpublic void render(SpriteBatch sb) {\n\t\tsb.draw(this.getSpritesheet(), this.getPos().getX(), this.getPos().getY());\r\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) \n\t{\n\t\tbrush.draw();\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"public void draw(SpriteBatcher batcher) {\r\n\t\tif (playerControlled)\r\n\t\t\tbatcher.drawSprite(bounds, InvasionMicroGame.invasionPlayerShipRegion);\r\n\t\telse\r\n\t\t\tbatcher.drawSprite(bounds, InvasionMicroGame.invasionEnemyShipRegion);\r\n\t}",
"public void draw() {\n }",
"public void draw() {\r\n PennDraw.clear();\r\n\r\n for (int i = 0; i < targets.length; i++) {\r\n targets[i].draw();\r\n }\r\n\r\n bird.draw(); \r\n\r\n if (mouseWasPressedLastUpdate) {\r\n bird.drawVelocity();\r\n }\r\n\r\n PennDraw.advance();\r\n }",
"public void render(SpriteBatch batch){\n\n if(isInGame()) {\n draw(batch);\n }\n }",
"public void draw(SpriteBatch batch) {\n sprite.setCenter((float) getPosX(), (float) getPosY());\n sprite.draw(batch);\n }",
"private void drawActions() {\n\t\tif (state.getSelectedEntity() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tAction [] actions = state.isSelectedFront() ? state.getSelectedEntity().getActions() : state.getSelectedEntity().getSwapActions();\n\t\tfor (int i = 0; i < actions.length; i++) {\n\t\t\tactions[i].render(batch, 500 + 25 * i, 800);\n\n\t\t\t// Do we draw the cursor here?\n\t\t\tif (state.getActionCursorPos() == i) {\n\t\t\t\tcursor.setPosition(500 + 25 * i, 900);\n\t\t\t\tcursor.draw(batch);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta) {\n }",
"public void render(SpriteBatch batch) {\n\t\tsuper.render(batch);\n\t\t//cam.translate(x, y);\n\t\t//cam.update();\n\t}",
"private void drawScreen(Sprite spr) {\n\t\tTexture tex = spr.getTexture();\n\t\t\n\t\ttex.bind();\n\t\t\n\t\tglBegin(GL_QUADS);\n\t\t{\n\t\t\tglTexCoord2f(0, tex.getHeight());\n\t\t\tglVertex2f(0, spr.getHeight());\n\t\t\tglTexCoord2f(tex.getWidth(), tex.getHeight());\n\t\t\tglVertex2f(spr.getWidth(), spr.getHeight());\n\t\t\tglTexCoord2f(tex.getWidth(), 0);\n\t\t\tglVertex2f(spr.getWidth(), 0);\n\t\t\tglTexCoord2f(0, 0);\n\t\t\tglVertex2f(0, 0);\n\t\t}\n\t\tglEnd();\n\t}",
"public void render(float delta) {\n\t\t// TODO Auto-generated method stub\n\t\tGdx.gl.glClearColor(Constants.red, Constants.blue, Constants.green, 1);\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); // Don't know why but you need this\n\t\tstage.act(); // Starts button functionality\n\t\tstage.draw(); // Draws buttons\n\t\tGdx.gl.glClearColor(Constants.red, Constants.blue, Constants.green, 1);\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\tstage.act();\n\t\tstage.draw();\n\t\tif (Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE)) {\n\t\t\tGdx.app.exit();\n\t\t}\n\n\t}",
"private void drawButton(String s, int X, int Y, int margin, Graphics2D g2) {\n Color preColor=g2.getColor();\n // If the button data arrays doesn't already contain a button with the same name, then add it to the data arrays\n if(!buttonNames.contains(s.substring(0, 2))) {\n buttonNames.add(s.substring(0, 2));\n buttonBounds.add(new Rectangle(X, Y, 150, 50 - margin * 2));\n buttonVisibilities.add(true);\n }\n // Set the button visibility to true so it can be clicked\n buttonVisibilities.set(buttonNames.indexOf(s.substring(0, 2)), true);\n\n // Check if the latest mouse coordinates overlapped with the button's bounding box\n Rectangle r=new Rectangle(X, Y, 150, 50-margin*2);\n if(r.contains(mX, mY)) {\n // If the mouse isn't pressed, just show the hover color\n if(!mDown) g2.setColor(Color.LIGHT_GRAY);\n // If it is pressed, show the pressed color\n else g2.setColor(Color.GRAY);\n // Draw the actual background\n g2.fillRect((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight());\n }\n g2.setColor(Color.BLACK);\n // Draw the outline for the button\n g2.drawRect((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight());\n // Draw the button label\n drawCenteredString(s, X+75, Y+(50-margin*2)/2, STANDARD_FONT, g2);\n\n // Set the graphic's color to what is was before the calling of this method\n g2.setColor(preColor);\n }",
"public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}",
"@Override\n\tpublic void draw() {\n\t}",
"@Override\n\tpublic void render(float delta) {\n\t\tbatch.begin();\n\t\tbatch.draw(background, 0, 0);\n\t\tbatch.end();\n\t\t\n\t\tstage.act(delta);\n\t\tstage.draw();\n\t\t\n\t}",
"protected void drawBackButton() {\n backButton = new TextButton(\"Back\", skin);\n stage.addActor(backButton);\n\n setPrevious();\n }",
"@Override\r\n public void draw() {\n }",
"@Override\n\tprotected void loadButtons() {\n\t\tList<Button> buttons = new ArrayList<>();\n\t\tfinal int square_size = 100;\n\t\tfinal int seperator_size = 20;\n\t\tfinal int numButtons = 2;\n\t\tint y = (getHeight() - 100) / 2;\n\t\tint x = (getWidth() - (square_size * numButtons) - (seperator_size * (numButtons - 1))) / 2;\n\t\tint sep = square_size + seperator_size;\n\t\t// Paint button.\n\t\ttry {\n\t\t\tbuttons.add(new Button(getImage(IconHandler.path_paint), \"Toggle paint\", x, y,\n\t\t\t\t\tsquare_size, square_size, new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tsetUsingTextures(!isUsingTextures());\n\t\t\t\t\t\t\trepaint();\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t\tbuttons.add(new Button(getImage(IconHandler.path_fullscreen), \"Toggle full-screen\", x + sep, y,\n\t\t\t\t\tsquare_size, square_size, new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tgetFrame().toggleArrangeSide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsetButtons(buttons);\n\t}",
"public void draw() {\r\n\t\tthis.sprite.draw(this.col * MainApp.getGridSize(), this.row * MainApp.getGridSize());\r\n\t}",
"@Override\n\tpublic void draw(SpriteBatch batch, float parentAlpha) {\n\t\tif (current_action_frame != null) {\n\t\t\tbatch.draw(current_action_frame, getX(), getY(), getOriginX(),\n\t\t\t\t\tgetOriginY(), CG.map_box_value, CG.map_box_value,\n\t\t\t\t\tgetScaleX(), getScaleY(), getRotation());\n\t\t}\n\t\tif (current_beattack_frame != null) {\n\t\t\tbatch.draw(current_beattack_frame, getX() + px, getY() + py);\n\t\t}\n\t\tif (currentHp > 0) {\n\t\t\tbatch.draw(hp_back, getX(), getY() + CG.map_box_value - 2,\n\t\t\t\t\tgetOriginX(), getOriginY(), CG.map_box_value, 2,\n\t\t\t\t\tgetScaleX(), getScaleY(), getRotation());\n\t\t\tbatch.draw(hp, getX(), getY() + CG.map_box_value - 2, getOriginX(),\n\t\t\t\t\tgetOriginY(), CG.map_box_value * currentHp / maxHp, 2,\n\t\t\t\t\tgetScaleX(), getScaleY(), getRotation());\n\t\t}\n\t\tRole_logic();\n\t}",
"@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0f, 0f, 0f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n // tell our stage to do actions and draw itself\n stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));\n\n stage.getBatch().begin();\n backSprite.draw(stage.getBatch());\n stage.getBatch().end();\n\n stage.draw();\n\n\n }",
"public void draw(SpriteBatch spriteBatch) {\n if(isMoving) {\n\t\t\t//walkingParticleEffect.scaleEffect(walkingParticleEffectScale);\n walkingParticleEffect.draw(spriteBatch);\n }\n\n spriteBatch.setColor(1, colorValue, colorValue, 1);\n\n if(isMoving) {\n\t\t\tanimation.draw(spriteBatch, hitbox.getX()+xOffset, hitbox.getY()+yOffset, spriteWidth, spriteHeight);\n\t\t} else {\n\t\t\tanimation.drawStaticFrame(spriteBatch, hitbox.getX()+xOffset, hitbox.getY()+yOffset, spriteWidth, spriteHeight);\n\t\t}\n\n\t\tspriteBatch.setColor(1, 1, 1, 1);\n\n if(damaged) {\n \t//gettingHitParticleEffect.scaleEffect(gettingHitParticleEffectScale);\n gettingHitParticleEffect.draw(spriteBatch);\n }\n\n // Draw HP bar\n hpBar.draw(spriteBatch);\n\n /*\n // Debug draw enemie sprite hitbox\n hitboxSprite.draw(spriteBatch);\n\n // Debug draw enemie bullet hitboxes sprite\n for(Sprite bulletHitbox : bulletHitboxSpriteList) {\n \tbulletHitbox.draw(spriteBatch);\n\t\t}\n\n\t\tspriteBatch.draw(mapHitboxSprite, mapHitbox.getX(), mapHitbox.getY(), mapHitbox.getWidth(), mapHitbox.getHeight());\n\t\t*/\n }",
"@Override\n public void draw()\n {\n }",
"private void generateButtons(){\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t//Button button = new Button(coordX, coordY);\n\t\t//buttons.put(0, button);\n\t}",
"@Override\r\n public void render() {\n \r\n stage.act();\r\n stage.draw();\r\n }",
"public void paint(Graphics g) \n{ \n int i; \n int x=gRectangle.x;\n int y = gRectangle.y;\n int width=gRectangle.width;\n int height=gRectangle.height;\n \n g.setColor(ButtonColor); \n // Clickable Button \n // Unfortunately Java doesn't seem to have the concept of thickness \n // for borders. To get a border of a certain thickness, we have to \n // draw multiple rectangles having slightly different sizes \n \n for (i=0; i < GC_BUTTON_BORDER_THICKNESS; i++) \n { \n g.draw3DRect(x+i, y+i, width - 2*i+1, height - 2*i+1, raised); \n } \n g.fillRect(x+GC_BUTTON_BORDER_THICKNESS, \n y+GC_BUTTON_BORDER_THICKNESS, \n width -2* GC_BUTTON_BORDER_THICKNESS+2, \n height - 2*GC_BUTTON_BORDER_THICKNESS+2); \n \n // Put the label on the button \n \n g.setColor(Color.black); \n g.setFont(buttonFont);\n g.drawString(ButtonName, x+GC_BUTTON_BORDER_THICKNESS+GC_BUTTON_HORIZ_PAD,\n y+GC_BUTTON_BORDER_THICKNESS+GC_BUTTON_VERT_PAD+fontMaxAscent);\n \n \n // The following was added to see how big the alloted Canvas area was that was \n // made available to our MyButtonClass \n\n g.drawRect(0,0, gRectangle.width+2*GC_CANVAS_HORIZ_GAP-1,\n gRectangle.height+2*GC_CANVAS_VERT_GAP-1);\n\n }",
"public void draw(Window w) {\r\n\t\tw.drawButton(position.x, position.y, bounds(w).width, bounds(w).height, color);\r\n\t\tc.draw(w);\r\n\t}",
"@Override\r\n\tpublic void render () {\n\t if(Gdx.input.isKeyPressed(Input.Keys.LEFT))\r\n sprMstanding.translateX(-1f);\r\n\t if(Gdx.input.isKeyPressed(Input.Keys.RIGHT))\r\n sprMstanding.translateX(1f);\r\n\r\n //sprGoomba sliding across\r\n sprGoomba.translateX(-1f);\r\n\r\n\r\n\t //background\r\n\t\tGdx.gl.glClearColor(0, 0, 1, 1);\r\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\r\n\t\tbatch.begin();\r\n\t\t//draw Mario\r\n\t\tbatch.draw(sprMstanding, sprMstanding.getX(), sprMstanding.getY(),sprMstanding.getWidth()/2,sprMstanding.getHeight()/2,\r\n sprMstanding.getWidth(),sprMstanding.getHeight(),sprMstanding.getScaleX(),sprMstanding.getScaleY(),sprMstanding.getRotation());\r\n\t\t//draw sprGoomba\r\n batch.draw(sprGoomba, sprGoomba.getX(), sprGoomba.getY(), sprGoomba.getWidth()/2,sprGoomba.getHeight()/2,\r\n sprGoomba.getWidth(), sprGoomba.getHeight(),sprGoomba.getScaleX(), sprGoomba.getScaleY(), sprGoomba.getRotation());\r\n\t\tbatch.end();\r\n\t}",
"@Override\n\tpublic void draw(Batch batch, float alpha) {\n\n\t\tbatch.draw(textureRegion, getX(), getY(), this.getOriginX(),\n\t\t\t\tthis.getOriginY(), this.getWidth(), this.getHeight(),\n\t\t\t\tthis.getScaleX(), this.getScaleY(), this.getRotation());\n\t}",
"@Override\n public void draw() {\n }"
] | [
"0.7587109",
"0.7387989",
"0.7374278",
"0.7240585",
"0.7239397",
"0.71698457",
"0.6967569",
"0.6947714",
"0.6680623",
"0.6670478",
"0.6575404",
"0.65673715",
"0.65550536",
"0.6544661",
"0.6535151",
"0.6517745",
"0.65066636",
"0.6496491",
"0.6459217",
"0.64535296",
"0.6451618",
"0.6401732",
"0.63997203",
"0.6342323",
"0.6336971",
"0.6333879",
"0.631738",
"0.6304325",
"0.63028127",
"0.6272958",
"0.6245276",
"0.62445396",
"0.6234908",
"0.6232329",
"0.62110674",
"0.61957145",
"0.6192551",
"0.6172335",
"0.6161744",
"0.61561567",
"0.6150921",
"0.6142747",
"0.61124176",
"0.61076033",
"0.6089984",
"0.60848343",
"0.6080698",
"0.60715187",
"0.60666555",
"0.6059207",
"0.6051804",
"0.6048185",
"0.6045057",
"0.6041611",
"0.60343736",
"0.6027673",
"0.601712",
"0.60121953",
"0.6008786",
"0.59990305",
"0.599791",
"0.59965616",
"0.5994249",
"0.59911746",
"0.5982521",
"0.59815586",
"0.59815586",
"0.5977186",
"0.5977127",
"0.5977127",
"0.5968538",
"0.5968538",
"0.5956536",
"0.5955815",
"0.59372574",
"0.5931712",
"0.5931133",
"0.592845",
"0.591904",
"0.5913588",
"0.5896214",
"0.58959764",
"0.58909404",
"0.5886733",
"0.58744687",
"0.5869565",
"0.584877",
"0.58429277",
"0.584271",
"0.5838588",
"0.5836603",
"0.58365107",
"0.58360046",
"0.5834292",
"0.5831211",
"0.58273774",
"0.5823216",
"0.58218324",
"0.58201677",
"0.58063924",
"0.58032036"
] | 0.0 | -1 |
Disposes of button image | public void dispose(){
tex.dispose();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeImage() {\n\n\t}",
"@Override\n\tpublic void dispose() \n\t{\n\t\tbackground.dispose();\n\t\tplayBtn.dispose();\t\n\t}",
"public void dispose() {\n this.img.dispose();\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tdispose();\n\t\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tRbilet.dispose();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t \r\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\r\n\t\t\t}",
"private void kembali_btnActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdispose();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdispose();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdispose();\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdispose();\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tRez.dispose();\n\t\t\t}",
"private void itemExitActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n }",
"public void btncanel_ActionPerformed(ActionEvent e) {\n\t\tthis.dispose();\n\t}",
"private void initImage() {\n BufferedImage closebtn = null;\n BufferedImage mulaiBtn = null;\n try {\n mulaiBtn = ImageIO.read(new File(\"image\\\\button\\\\mulai_btn.png\"));\n closebtn = ImageIO.read(new File(\"image\\\\button\\\\closeX_btn.png\"));\n ImageIcon mulaiBtnImage = new ImageIcon(mulaiBtn.getScaledInstance(126, 32, Image.SCALE_SMOOTH));\n ImageIcon closeBtnImage = new ImageIcon(closebtn.getScaledInstance(42, 42, Image.SCALE_SMOOTH));\n button_mulai.setIcon(mulaiBtnImage);\n button_close.setIcon(closeBtnImage);\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n button_mulai.setText(\"\");\n button_close.setText(\"\");\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tRkarnet.dispose();\n\t\t\t}",
"public void destroy(){\n\t\tcimg.destroy();\n\t}",
"@Override\n\tpublic void dispose() {\n\t\tdropImage.dispose();\n\t\tbaddroplet.dispose();\n\t\tdeathraindropImage.dispose();\n\t\tbucketImage.dispose();\n\t\tdropSound.dispose();\n\t\tskinButton.dispose();\n\t\tfont.dispose();\n\t\tbuttonAtlas.dispose();\n\t\trainMusic.dispose();\n\t\tbatch.dispose();\n\t\tstage.dispose();\n\t}",
"@Override\n\tpublic void dispose() {\n\t\tstage.dispose();\n\t\tvoltarImg.dispose();\n\t}",
"private void botonSalirMouseClicked(MouseEvent e) {\n\t\tthis.dispose();\n\t}",
"private void btnCancelaActionPerformed(java.awt.event.ActionEvent evt) {\n this.dispose();\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\tframe.dispose();\r\n\t\t\t\t\t}",
"@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\tframe.dispose();\r\n\t\t\t\t\t}",
"private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n\n dispose();\n \n }",
"@Override\n public void dispose() {\n font.dispose();\n background.dispose();\n if (triggered) {\n stage.dispose();\n }\n }",
"public void closeDown() {\n\t\tdispose();\n\n\t}",
"@Override\n public void actionPerformed(ActionEvent arg0)\n {\n frame.dispose();\n }",
"public void close()\n {\n setVisible (false);\n dispose();\n }",
"public void actionPerformed(java.awt.event.ActionEvent evt) {\n \tdispose();\r\n }",
"public void panelGone() {\n\t\tdisplayPanel.removeImage(this);\r\n\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}",
"private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n }",
"public void exit() {\r\n\t\tdispose();\r\n\t}",
"@Override\n public void dispose() {\n background.dispose();\n logo.dispose();\n game.dispose();\n batch.dispose();\n mySkin.dispose();\n stage.dispose();\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tframe.dispose();\n\n\t}",
"private void exit() {\n dispose();\r\n }",
"protected void finalize() {\n\t\tdestroyImages();\n\t}",
"public void actionPerformed(ActionEvent e) {\n \t\tframe.dispose();\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnpd.dispose();\n\t\t\t\t}",
"public void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tSystem.out.println(\"disposing the window..\");\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\t\t}",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n this.dispose();\r\n }",
"public void actionPerformed(ActionEvent e)\n {\n setVisible(false);\n dispose();\n }",
"@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) { l1.dispose(); }",
"public void becomeEaten(){\n\t\tthis.setIcon(null);\n\t}",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n // TODO add your handling code here:\n dispose();\n }",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n this.dispose();\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tVAdmin.this.dispose();\r\n\t\t\t}",
"private void close(){\n this.dispose();\n }",
"private JButton createCloseButton() {\r\n\r\n\t\tJButton button = new JButton(BundleUtil.getString(BundleUtil.Command_Close));\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn button;\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) \n\t{\n\t\tjoinDia.dispose();\n\t}",
"private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }",
"public void freeResources() {\n borderPane = null;\n }",
"public void closeClick() {\n timeline.stop();\n threadWorker.shutDownExecutor();\n Platform.exit();\n }",
"@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}",
"@Override\n\tpublic void onDestroy() {\n\t\tquitAllFocus();\n\t\timg.setImageBitmap(null);\n\t\tclearMemory();\n\t\tsuper.onDestroy();\n\t\ttry {\n\t\t\t//GARBAGE COLLECTOR\n\t\t\tSystem.gc();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n setVisible(false);\r\n dispose();\r\n }",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tthis.dispose();\n\t}",
"public void disposeResources() {\n Arrays.fill(icons, null);\n iconComponent.removeAncestorListener(this);\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (img_help != null){\n\t\t\timg_help.setImageResource(0);\n\t\t}\n\t\tSystem.gc();\n\t}",
"public void terminouCamadas() {\n Platform.runLater(() -> {\n camadas.setExpandedPane(null);\n setaImagem.setVisible(false);\n });\n }",
"public void finished() {\n this.setVisible(false);\n this.dispose();\n }",
"private void jBtn_QuitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_QuitterActionPerformed\n ImageIcon img = new ImageIcon(\"images/hal-9000-space-odyssey.png\");\n JOptionPane.showMessageDialog(null, \"I'm sorry Dave, I'm afraid I can't \"\n + \"do that\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n JOptionPane.showMessageDialog(null, \"I know you and Frank were planning \"\n + \"to disconnect me. And that's something I cannot allow to happen\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n JOptionPane.showMessageDialog(null, \"Look Dave, I can see you're really \"\n + \"upset about this. I honestly think you ought to sit down calmly,\"\n + \" take a stress pill, and think things over\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n /*Runtime runtime = Runtime.getRuntime();\n try {\n Process proc = runtime.exec(\"shutdown -s -t 0\");\n } catch (IOException ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }*/\n System.exit(0);\n }",
"public void button3Pushed(ActionEvent event)\r\n {\n GraphicsContext gc = canvas.getGraphicsContext2D();\r\n \r\n gc.clearRect(0, 0, canvas.getWidth(), canvas.getHeight());\r\n \r\n \r\n \r\n }",
"private void closeActionPerformed(java.awt.event.ActionEvent evt) {\n this.dispose();\n }",
"@Override\n\tpublic void dispose() {\n\t\tbox.close();\n\t\tthis.myThready.interrupt();\n\t\tSystem.exit(0);\n\t}",
"@Source(\"close_btn.gif\")\n\tpublic DataResource closeButtonIconResource();",
"void kill () {if (img != null) {img.flush (); img = null;}}",
"public void Exit_button() {\n\t \t Stage stage = (Stage) btnExit.getScene().getWindow();\n\t \t \n\t \t stage.close();\n\t }",
"public void dispose( ){\r\n int respuesta = JOptionPane.showConfirmDialog(this,\"¿Cerrar el Sistema Experto SESP?\",\"Confirmacion para salir\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n if (respuesta == JOptionPane.YES_OPTION){\r\n super.dispose();\r\n }\r\n }",
"protected void do_mntmExit_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t}",
"@Override\n\t\t\t\tpublic void onClick() {\n\t\t\t\t\tshowSDImg();\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void actionPerformed(ActionEvent pActionEvent_) \n {\n Object oSource = pActionEvent_.getSource();\n if (oSource instanceof JButton) \n {\n dispose();\n }\n }",
"public static void closeBtnPressed () {\r\n PCNMClientStart.switchPanels(new NetMapSCR());\r\n }",
"public void setDisplayCloseButton(boolean dispClose) {\n if (dispClose) {\n MTSvgButton keybCloseSvg = new MTSvgButton(this.getRenderer(), MT4jSettings.getInstance().getDefaultSVGPath()\n + \"keybClose.svg\");\n //Transform\n keybCloseSvg.scale(0.5f, 0.5f, 1, new Vector3D(0, 0, 0));\n keybCloseSvg.translate(new Vector3D(this.getWidthXY(TransformSpace.RELATIVE_TO_PARENT) - 45, 2, 0));\n keybCloseSvg.setBoundsPickingBehaviour(AbstractShape.BOUNDS_ONLY_CHECK);\n keybCloseSvg.addActionListener(new CloseActionListener(new MTComponent[]{this, keybCloseSvg}));\n//\t\t\tpic.addChild(keybCloseSvg);\n keybCloseSvg.setName(\"closeButton\");\n this.addChild(keybCloseSvg);\n } else {\n //Remove svg button and destroy child display lists\n MTComponent[] childs = this.getChildren();\n for (MTComponent component : childs) {\n if (component.getName().equals(\"closeButton\")) {\n MTSvgButton svgButton = (MTSvgButton) component;\n svgButton.destroy();\n }\n }\n }\n }",
"public void onClosingFinished() {\n super.onClosingFinished();\n resetHorizontalPanelPosition();\n setClosingWithAlphaFadeout(false);\n }",
"private void btnSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalirActionPerformed\n this.dispose();\n }",
"@Override\n\tpublic void dispose(GLAutoDrawable arg0) {\n\t\t\n\t}",
"public void actionPerformed(ActionEvent ae) {\n\t setVisible(false); dispose();\n\t}",
"@Override\n\tpublic void dispose() {\n\t\tbackground.dispose();\n\t\ttexture.dispose();\n\t\ttexture2.dispose();\n\t\tspriteBatch.dispose();\n\t\tclient.removeListener(listener);\n\t\tui.dispose();\n\t}",
"private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed\n dispose();\n }",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tview.removeButton();\n\t}",
"private void actionOnClicExit() {\r\n\t\tframe.setVisible(false);\r\n\t\tframe.dispose();\r\n\t}",
"void close() {\r\n this.setVisible(false);\r\n this.dispose();\r\n }",
"@Override\n\tpublic void onExit() {\n\t\tlabelHelp = null;\n\t\tlayer_force = null;\n\t\tmSoundBtn = null;\n\t\tboxMessage = null;\n\n\t\tSystem.gc();\n\t\tsuper.onExit();\n\t}",
"public void closeActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t\tthis.dispose();\n\t\tgetJCpgUIReference().setEnabled(true);\n\t\t\n\t}",
"public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n mask = null;\r\n\r\n if (keepProgressBar == false) {\r\n disposeProgressBar();\r\n }\r\n\r\n try {\r\n super.finalize();\r\n } catch (Throwable er) { }\r\n }",
"@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tclose();\n\t\t\t}",
"@Override\n public void dispose(GLAutoDrawable drawable) {\n }",
"@PreDestroy\n public void onClose() {\n progSpin.progressProperty().unbind();\n progLabel.textProperty().unbind();\n processButton.disableProperty().unbind();\n }",
"private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n this.dispose();\n }",
"public void onEscPressed(){\n if(!timerStopped){\n App.getTimer().stop();\n timerStopped=true;\n ImageView bg = new ImageView(new Image(\"Sprites\\\\pause_screen.png\"));\n BackgroundImage backgroundImage = new BackgroundImage( new Image( \"Sprites\\\\Button_bg.png\"), BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, new BackgroundSize(300,100,false,false,false,false));\n Background background = new Background(backgroundImage);\n bg.setFitHeight(App.getHEIGHT());\n bg.setFitWidth(App.getWIDTH());\n App.getRoot().getChildren().add(bg);\n ImageView pause = new ImageView(new Image(\"Sprites\\\\Pause.png\"));\n pause.setFitWidth(400);\n pause.setFitHeight(150);\n pause.setX((App.getWIDTH()-pause.getFitWidth())/2);\n pause.setY(30);\n App.getRoot().getChildren().add(pause);\n Button cont = new Button(\"Continue\");\n cont.setBackground(background);\n cont.setTextFill(Color.web(\"ffffff\"));\n cont.setFont(new Font(50));\n cont.setPrefWidth(300);\n cont.setTranslateX(350);\n cont.setTranslateY(250);\n App.getRoot().getChildren().add(cont);\n Button exit = new Button(\"Exit\");\n exit.setFont(new Font(50));\n exit.setBackground(background);\n exit.setTextFill(Color.web(\"ffffff\"));\n exit.setPrefWidth(300);\n exit.setTranslateX(350);\n exit.setTranslateY(400);\n App.getRoot().getChildren().add(exit);\n Button plus = new Button(\"+\");\n //plus.setBackground(background);\n plus.setPrefWidth(50);\n plus.setPrefHeight(50);\n plus.setTranslateX(155);\n plus.setTranslateY(540);\n plus.setStyle(\"-fx-background-color: Orange\");\n plus.setFont(new Font(20));\n plus.setOnAction(event -> {\n try {\n if(App.getVolume()<1) {\n App.setVolume(App.getVolume() + 0.1);\n App.getApp().getMediaPlayer().setVolume(App.getVolume()/2);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n Button minus = new Button(\"-\");\n //minus.setBackground(background);\n minus.setPrefWidth(50);\n minus.setPrefHeight(50);\n minus.setTranslateX(45);\n minus.setTranslateY(540);\n minus.setStyle(\"-fx-background-color: Orange\");\n minus.setFont(new Font(20));\n minus.setOnAction(event -> {\n try {\n if(App.getVolume()>0) {\n App.setVolume(App.getVolume() - 0.1);\n App.getApp().getMediaPlayer().setVolume(App.getVolume()/2);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n ImageView volume = new ImageView(new Image(\"Sprites/Sound.png\"));\n volume.setFitWidth(50);\n volume.setFitHeight(50);\n volume.setX(100);\n volume.setY(540);\n cont.setOnAction(event -> {\n try {\n App.getRoot().getChildren().remove(bg);\n App.getRoot().getChildren().remove(pause);\n App.getRoot().getChildren().remove(cont);\n App.getRoot().getChildren().remove(exit);\n App.getRoot().getChildren().remove(plus);\n App.getRoot().getChildren().remove(minus);\n App.getRoot().getChildren().remove(volume);\n App.getTimer().start();\n timerStopped=false;\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n exit.setOnAction(event -> {\n try {\n GameEngine.cleanScreen();\n App.getApp().initMainMenu();\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n App.getRoot().getChildren().add(volume);\n App.getRoot().getChildren().add(plus);\n App.getRoot().getChildren().add(minus);\n\n }\n\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tjd.dispose(); \n\t\t\t\t}"
] | [
"0.72560185",
"0.6871528",
"0.68692505",
"0.67777824",
"0.6758232",
"0.6751032",
"0.6751032",
"0.67345023",
"0.67345023",
"0.67345023",
"0.67345023",
"0.6730833",
"0.6724206",
"0.6660438",
"0.66591156",
"0.6654877",
"0.6654877",
"0.6654877",
"0.6581293",
"0.6573862",
"0.65545297",
"0.6521686",
"0.65213925",
"0.65199107",
"0.6415705",
"0.6412873",
"0.63528657",
"0.63345116",
"0.6323244",
"0.63084465",
"0.62859046",
"0.62859046",
"0.6280904",
"0.62542164",
"0.6245697",
"0.6228963",
"0.6205276",
"0.6181303",
"0.61455584",
"0.61421734",
"0.6131294",
"0.61086977",
"0.6106319",
"0.6103652",
"0.6098246",
"0.6084285",
"0.6080701",
"0.6067077",
"0.60654294",
"0.6046982",
"0.6044736",
"0.6044258",
"0.6043566",
"0.6039293",
"0.6035907",
"0.6033855",
"0.60202944",
"0.60104805",
"0.6009588",
"0.6001386",
"0.59998715",
"0.5995388",
"0.5994448",
"0.599338",
"0.5992832",
"0.59864104",
"0.59798986",
"0.59793854",
"0.59782445",
"0.59768915",
"0.597617",
"0.59700525",
"0.5963461",
"0.5951789",
"0.59377366",
"0.5933937",
"0.59245896",
"0.5924572",
"0.5923337",
"0.59184104",
"0.59078574",
"0.59049743",
"0.59007114",
"0.58981127",
"0.589534",
"0.5880119",
"0.5873194",
"0.5867082",
"0.58617836",
"0.5861386",
"0.58598477",
"0.58546954",
"0.5852507",
"0.58502185",
"0.585004",
"0.58489794",
"0.58406776",
"0.5840368",
"0.58359224",
"0.5832243",
"0.5828433"
] | 0.0 | -1 |
Initialises the layout for the frame. | private void initFrame() {
setLayout(new BorderLayout());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setupLayout() {\n // left empty for subclass to override\n }",
"private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }",
"public void init() {\n setLayout(new BorderLayout());\n }",
"public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\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\tAlignment.LEADING)\n\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\tgroupLayout\n\t\t\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\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\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\t225,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\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\tgroupLayout\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.LEADING)\n\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\tp_execute,\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\t957,\n\t\t\t\t\t\t\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\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\tp_container,\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\t957,\n\t\t\t\t\t\t\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\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\t1188,\n\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.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\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\tAlignment.LEADING)\n\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\tp_commands,\n\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\t603,\n\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\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\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\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\t549,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tp_execute,\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\t48,\n\t\t\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.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\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\tAlignment.LEADING)\n\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\tp_view,\n\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\t955,\n\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.addGroup(\n\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\tgl_p_container\n\t\t\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\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tbt_revert))\n\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\tgl_p_container\n\t\t\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\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\ttf_name,\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\t893,\n\t\t\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.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\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\tAlignment.BASELINE)\n\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\ttf_name,\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\t\tGroupLayout.DEFAULT_SIZE,\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.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\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\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\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\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\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\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\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\tAlignment.BASELINE)\n\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\tta_header,\n\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\t44,\n\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.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\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\tAlignment.LEADING)\n\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\tp_tree,\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\t\t211,\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\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\tGroupLayout.DEFAULT_SIZE,\n\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.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.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(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}",
"private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }",
"private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}",
"private void init(){\r\n\t\tsetLayout(new FlowLayout());\r\n\t\tsetPreferredSize(new Dimension(40,40));\r\n\t\tsetVisible(true);\r\n\t}",
"private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }",
"private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}",
"protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}",
"private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }",
"private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstField, -24, SpringLayout.SOUTH, this);\n\t}",
"private void setLayout() {\n if (!mImageFragment.isAdded()) {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(\n MATCH_PARENT, MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n } else {\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE){\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n\n else {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT,\n MATCH_PARENT));\n }\n }\n }",
"private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}",
"private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }",
"private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}",
"public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }",
"private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }",
"@Override\r\n\tprotected void initializeLayout() {\r\n\t\tlayout = GraphLayoutFactory.createLayout(layoutType, graph, 250, 250, properties, AttributeMapSet.PROCEDURES);\r\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\r\n\t\t\t\tColumnSpec.decode(\"8dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"15dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"80dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"35dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"15dlu\"),\r\n\t\t\t\tFormSpecs.BUTTON_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"12dlu\"),\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"100dlu\"),\r\n\t\t\t\tFormSpecs.BUTTON_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"8dlu\"),},\r\n\t\t\tnew RowSpec[] {\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tRowSpec.decode(\"50dlu\"),\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tRowSpec.decode(\"53dlu\"),\r\n\t\t\t\tFormSpecs.UNRELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.PARAGRAPH_GAP_ROWSPEC,}));\r\n\t\t\r\n\t\tJLabel uxAddCourseLabel = new JLabel(\"Add Course\");\r\n\t\tuxAddCourseLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\r\n\t\tframe.getContentPane().add(uxAddCourseLabel, \"2, 2, 6, 1\");\r\n\t\t\r\n\t\tJLabel uxSearchByLabel = new JLabel(\"Search by\");\r\n\t\tuxSearchByLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\r\n\t\tframe.getContentPane().add(uxSearchByLabel, \"3, 4, 7, 1\");\r\n\t\t\r\n\t\tJLabel uxClickCourseLabel = new JLabel(\"Double Click a Course to Add It\");\r\n\t\tuxClickCourseLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxClickCourseLabel, \"8, 4, 3, 1, left, bottom\");\r\n\t\t\r\n\t\tJLabel uxCourseNumberLabel = new JLabel(\"Course number\");\r\n\t\tuxCourseNumberLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNumberLabel, \"3, 6, 8, 1\");\r\n\t\t\r\n\t\tsearchResults = new DefaultListModel<Course>();\r\n\t\tuxSearchResultsList = new JList<Course>(searchResults);\r\n\t\tuxSearchResultsList.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tuxSearchResultsList.addMouseListener(manager.new ResultsDoubleClickListener());\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane(uxSearchResultsList);\r\n\t\tframe.getContentPane().add(scrollPane, \"8, 6, 3, 24, fill, fill\");\r\n\t\t\r\n\t\tuxCourseNumberField = new JTextField();\r\n\t\tuxCourseNumberField.setText(courseNumberDefaultText);\r\n\t\tuxCourseNumberField.setForeground(Color.GRAY);\r\n\t\tuxCourseNumberField.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNumberField, \"3, 8, 4, 1, fill, default\");\r\n\t\tuxCourseNumberField.setColumns(10);\r\n\t\tuxCourseNumberField.addFocusListener(manager.new TextFieldDefaultHandler());\r\n\t\t\r\n\t\tJLabel uxCourseNameLabel = new JLabel(\"Course name\");\r\n\t\tuxCourseNameLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNameLabel, \"3, 10, 7, 1\");\r\n\t\t\r\n\t\tuxCourseNameField = new JTextField();\r\n\t\tuxCourseNameField.setText(courseNameDefaultText);\r\n\t\tuxCourseNameField.setForeground(Color.GRAY);\r\n\t\tuxCourseNameField.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNameField, \"3, 12, 4, 1, fill, default\");\r\n\t\tuxCourseNameField.setColumns(10);\r\n\t\tuxCourseNameField.addFocusListener(manager.new TextFieldDefaultHandler());\r\n\t\t\r\n\t\tJCheckBox uxCheckBox = new JCheckBox(\"Show Global Campus\");\r\n\t\tuxCheckBox.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCheckBox, \"3, 13, 2, 2\");\r\n\t\tuxCheckBox.addActionListener(manager.new GlobalCampusListener());\r\n\t\t\r\n\t\tJButton uxSearchButton = new JButton(\"Search\");\r\n\t\tuxSearchButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxSearchButton, \"6, 14, 1, 1\");\r\n\t\tuxSearchButton.addActionListener(manager.new SearchButtonListener());\r\n\t\t\r\n\t\tselectedCourses = new DefaultListModel<Course>();\r\n\t\tuxSelectedCoursesList = new JList<Course>(selectedCourses);\r\n\t\tuxSelectedCoursesList.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\t\r\n\t\tJScrollPane scrollPane2 = new JScrollPane(uxSelectedCoursesList);\r\n\t\tframe.getContentPane().add(scrollPane2, \"3, 16, 4, 14, default, fill\");\r\n\t\t\r\n\t\tJButton uxRemoveCourseButton = new JButton(\"Remove Course\");\r\n\t\tuxRemoveCourseButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxRemoveCourseButton, \"4, 31, 3, 1\");\r\n\t\tuxRemoveCourseButton.addActionListener(manager.new RemoveItemButtonListener());\r\n\t\t\r\n\t\tJButton uxCreateScheduleButton = new JButton(\"Create Schedule\");\r\n\t\tuxCreateScheduleButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCreateScheduleButton, \"10, 31, 1, 1\");\r\n\t\tuxCreateScheduleButton.addActionListener(manager.new CreateScheduleListener());\r\n\t\t\r\n\t\tframe.getRootPane().setDefaultButton(uxSearchButton);\r\n\t\t\t\t\r\n\t\tframe.pack();\r\n\t\t\r\n\t\tDimension frameSize = frame.getSize();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\r\n\t\tframe.setLocation((int) (0.5 * (screenSize.getWidth() - frameSize.getWidth())), (int) (0.5 * (screenSize.getHeight() - frameSize.getHeight())));\r\n\t}",
"private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.NORTH, queryButton, 70, SpringLayout.NORTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, queryButton, 49, SpringLayout.WEST, this);\n\t}",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setBounds(new Rectangle(0, 0, 780, 530));\n\t\tthis.add(getJPanel_table(), BorderLayout.CENTER);\n\t\tthis.add(getJPanel_button(), BorderLayout.EAST);\n\t}",
"private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}",
"private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"private void setupFrame() {\n this.setTitle(TITRE);\n this.setPreferredSize(new Dimension(TAILLE_FRAME[1], TAILLE_FRAME[0]));\n this.setResizable(false);\n \n this.getContentPane().setBackground(new Color(0,153,0));\n this.getContentPane().setLayout(new GridLayout(3,1)); \n \n this.pack();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setVisible(true);\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 410, 288);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),},\n\t\t\tnew RowSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,}));\n\t\t\n\t\tlblLogin = new JLabel(\"Login\");\n\t\tframe.getContentPane().add(lblLogin, \"12, 6\");\n\t\t\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\n\t\tframe.getContentPane().add(lblUsername, \"10, 10\");\n\t\t\n\t\tusernameField = new JTextField();\n\t\tframe.getContentPane().add(usernameField, \"12, 10, fill, default\");\n\t\tusernameField.setColumns(10);\n\t\t\n\t\tlblPassword = new JLabel(\"Password:\");\n\t\tframe.getContentPane().add(lblPassword, \"10, 14\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tframe.getContentPane().add(passwordField, \"12, 14\");\n\t\t\n\t\tbtnLogin = new JButton(\"Login\");\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.login(usernameField.getText(), passwordField.getText());\n\t\t\t\t\tparent.setVisible(true);\n\t\t\t\t\tframe.dispose();\t\t\t\t\t\n\t\t\t\t\tparentProjWindow.displayProjects();\n\t\t\t\t\t\n\t\t\t\t} catch (RemoteAccessException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Server unreacheable!\", \"Network Error!\", 0, null);\n\t\t\t\t}\t\n\t\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong credentials!\", \"Access denied!\", 0, null);\n\t\t\t\t} catch (RemoteException 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});\n\t\tframe.getContentPane().add(btnLogin, \"12, 18\");\n\t}",
"private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}",
"private void setupLayout() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tanimeLabel = new JLabel();\r\n\t\tanimeLabel.setSize(m.getWidth(), m.getHeight());\r\n\t\tanimeLabel.setBounds(0, 0, m.getWidth(), m.getHeight());\r\n\t\tthis.add(animeLabel, BorderLayout.CENTER);\r\n\t}",
"private void init() {\n setBackground(LIGHT_GRAY);\n Box layout = new Box(BoxLayout.Y_AXIS);\n\n jump = createButton(\"Jump\", null);\n exit = createButton(\"Exit!\", null);\n fly = createButton(\"Fly\", null);\n Jfloat = createButton(\"Float\", null);\n layout.add(Box.createRigidArea(new Dimension(0, 150)));\n layout.add(jump);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(Jfloat);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(fly);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(exit);\n add(layout);\n }",
"private void initializeLayout(){\n String title = mStrInfo;\n String subtitle = mClientItem.clientName;\n mHomeToolbar.setGymRatToolbarTitle(title, subtitle);\n\n //initialize maids\n initializeMaid();\n\n //initialize bottom navigation\n initializeBottomNavigation();\n }",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}",
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}",
"private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}",
"private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}",
"private void initialize() {\n\t\tthis.setSize(629, 270);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setPreferredSize(new Dimension(629, 270));\n\t\tthis.setMinimumSize(new Dimension(629, 270));\n\t\tthis.setMaximumSize(new Dimension(629, 270));\n\t\tthis.add(getJSplitPane2(), BorderLayout.CENTER);\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(\r\n\t\t\t\tnew MigLayout(\"\", \"[][][]\", \"[][][][][][][][][][]\"));\r\n\r\n\t\tJLabel lblName = new JLabel(\"Name:\");\r\n\t\tframe.getContentPane().add(lblName, \"cell 0 0\");\r\n\r\n\t\tJLabel lblPatient = new JLabel(\"\");\r\n\t\tframe.getContentPane().add(lblPatient, \"cell 2 0\");\r\n\r\n\t\tJLabel lblDoctor = new JLabel(\"Doctor:\");\r\n\t\tframe.getContentPane().add(lblDoctor, \"cell 0 1\");\r\n\r\n\t\tJLabel lblDoc = new JLabel(\"\");\r\n\t\tframe.getContentPane().add(lblDoc, \"cell 2 1\");\r\n\r\n\t\tJLabel lblDueDate = new JLabel(\"Due Date:\");\r\n\t\tframe.getContentPane().add(lblDueDate, \"cell 0 2\");\r\n\r\n\t\tJLabel lblDate = new JLabel(\"\");\r\n\t\tframe.getContentPane().add(lblDate, \"cell 2 2\");\r\n\r\n\t\tJLabel lblTotal = new JLabel(\"Total:\");\r\n\t\tframe.getContentPane().add(lblTotal, \"cell 0 8\");\r\n\r\n\t\tJLabel lblTot = new JLabel(\"\");\r\n\t\tframe.getContentPane().add(lblTot, \"cell 2 8\");\r\n\r\n\t\tJLabel lblPaid = new JLabel(\"Paid:\");\r\n\t\tframe.getContentPane().add(lblPaid, \"cell 0 9,aligny baseline\");\r\n\r\n\t\tJLabel lblDone = new JLabel(\"\");\r\n\t\tframe.getContentPane().add(lblDone, \"cell 2 9\");\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"private void setLayout() {\n\t\ttxtNickname.setId(\"txtNickname\");\n\t\ttxtPort.setId(\"txtPort\");\n\t\ttxtAdress.setId(\"txtAdress\");\n\t\tlblNickTaken.setId(\"lblNickTaken\");\n\n\t\tgrid.setPrefSize(516, 200);\n\t\tbtnLogin.setDisable(true);\n\t\ttxtNickname.setPrefSize(200, 25);\n\t\tlblNickTaken.setPrefSize(250, 10);\n\t\tlblNickTaken.setText(null);\n\t\tlblNickTaken.setTextFill(Color.RED);\n\t\tlblNick.setPrefSize(120, 50);\n\t\ttxtAdress.setText(\"localhost\");\n\t\ttxtPort.setText(\"4455\");\n\t\tlblCardDesign.setPrefSize(175, 25);\n\t\tcomboBoxCardDesign.getSelectionModel().select(0);\n\t\tbtnLogin.setGraphic(imvStart);\n\t}",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(300, 200);\n this.setPreferredSize(new java.awt.Dimension(450, 116));\n this.add(getListPanel(), java.awt.BorderLayout.CENTER);\n this.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n }",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300,200);\n\t\tthis.add(getJPanel(), java.awt.BorderLayout.CENTER);\n\t\tthis.add(getJPanel1(), java.awt.BorderLayout.SOUTH);\n\t}",
"@Override\n public void layout() {\n // TODO: not implemented\n }",
"private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(50, 50, 1050, 650);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tmtopJPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t\tframe.getContentPane().add(mtopJPanel, BorderLayout.NORTH);\n\t\ttopPanel();\n\t\t\n\t\tmleftJPanel = new JPanel();\n\t\tframe.getContentPane().add(mleftJPanel, BorderLayout.WEST);\n\t\twestPanel();\n\t\t\n\t\tmcenterJPanel = new JPanel();\n\t\tframe.getContentPane().add(mcenterJPanel, BorderLayout.CENTER);\n\t\tcenterPanel();\n\t\t\n\t\tmbottomJPanel = new JPanel();\n\t\tframe.getContentPane().add(mbottomJPanel, BorderLayout.SOUTH);\n\t\tbottomPanel();\n\t\t\n\t}",
"public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }",
"private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }",
"private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"public void createInitialLayout(IPageLayout layout) {\n \n\t}",
"@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 733, 481);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"default:grow\"),\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,},\r\n\t\t\tnew RowSpec[] {\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tRowSpec.decode(\"default:grow\"),}));\r\n\t\t\r\n\t\tJLabel lblScreen = new JLabel(\"Screen\");\r\n\t\tlblScreen.setBorder(new LineBorder(Color.RED));\r\n\t\tframe.getContentPane().add(lblScreen, \"1, 1, 59, 16\");\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tframe.getContentPane().add(panel, \"1, 17, 59, 20, fill, fill\");\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBorder(new LineBorder(Color.BLUE, 1, true));\r\n\t\tpanel_1.setBounds(114, 0, 457, 80);\r\n\t\tpanel.add(panel_1);\r\n\t\t\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_2.setBounds(114, 81, 457, 106);\r\n\t\tpanel.add(panel_2);\r\n\t}",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}",
"public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }",
"private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"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 void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}",
"@SuppressWarnings(\"UnnecessaryBoxing\")\r\n private void initLayoutDimensions() {\r\n leftPanelWidth = Page.getScreenWidth() * 20 / 100;\r\n leftPanelHeight = Page.getScreenHeight() - 225;\r\n middlePanelWidth = Page.getScreenWidth() / 2;\r\n if (Double.valueOf(middlePanelWidth) % 2.0 > 0.0) {\r\n middlePanelWidth = middlePanelWidth - 1;\r\n }\r\n rightPanelWidth = Page.getScreenWidth() - (leftPanelWidth + 2 + middlePanelWidth + 2);\r\n }",
"public void init() {\n fIconkit = new Iconkit(this);\n\n\t\tsetLayout(new BorderLayout());\n\n fView = createDrawingView();\n\n Panel attributes = createAttributesPanel();\n createAttributeChoices(attributes);\n add(\"North\", attributes);\n\n Panel toolPanel = createToolPalette();\n createTools(toolPanel);\n add(\"West\", toolPanel);\n\n add(\"Center\", fView);\n Panel buttonPalette = createButtonPanel();\n createButtons(buttonPalette);\n add(\"South\", buttonPalette);\n\n initDrawing();\n setBufferedDisplayUpdate();\n setupAttributes();\n }",
"private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }",
"public BattleMatLayout() {\n\t\tcreateConent();\n\t\tinitWidget(dockPanel);\n\t\t// ensure this widget takes up as much space as possible\n\t\tthis.setSize(\"100%\", \"100%\");\n\t\tsetupEventHandler();\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\n\t\tJLabel lblDesignCopyrights = new JLabel(\"design copyrights \\u00A9 chinmaya\");\n\t\tlblDesignCopyrights.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\n\t\tlblDesignCopyrights.setForeground(new Color(255, 255, 224));\n\t\tlblDesignCopyrights.setBounds(1711, 1018, 183, 23);\n\t\tframe.getContentPane().add(lblDesignCopyrights);\n\t\t\n\t\tJPanel background = new JPanel();\n\t\tbackground.setLayout(null);\n\t\tbackground.setBackground(Color.DARK_GRAY);\n\t\tbackground.setBounds(14, 200, 1880, 809);\n\t\tframe.getContentPane().add(background);\n\t\t\n\t\t\n\t\tJLabel lblTypesOfMachine = new JLabel(\"MACHINE NAME\");\n\t\tlblTypesOfMachine.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblTypesOfMachine.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTypesOfMachine.setForeground(Color.WHITE);\n\t\tlblTypesOfMachine.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblTypesOfMachine.setBounds(69, 378, 178, 30);\n\t\tbackground.add(lblTypesOfMachine);\n\t\t\n\t\t\n\t\tJLabel lblAppointment = new JLabel(\"LIST TO DO\");\n\t\tlblAppointment.setForeground(Color.WHITE);\n\t\tlblAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblAppointment.setBounds(69, 117, 319, 48);\n\t\tbackground.add(lblAppointment);\n\t\t\n\t\tJLabel lblQuantity = new JLabel(\"QUANTITY\");\n\t\tlblQuantity.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblQuantity.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuantity.setForeground(Color.WHITE);\n\t\tlblQuantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblQuantity.setBounds(69, 428, 178, 30);\n\t\tbackground.add(lblQuantity);\n\t\t\n\t\tPanel panel = new Panel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setBounds(0, 30, 1880, 67);\n\t\tbackground.add(panel);\n\t\t\n\t\tJButton cusbtn = new JButton(\"CUSTOMER\");\n\t\tcusbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t customer cr = new customer();\n\t\t cr.csStart();\n\t\t frame.dispose();\n\t\t\t}\n\t\t});\n\t\tcusbtn.setForeground(Color.WHITE);\n\t\tcusbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcusbtn.setBackground(Color.BLACK);\n\t\tcusbtn.setBounds(1257, 11, 613, 44);\n\t\tpanel.add(cusbtn);\n\t\t\n\t\tJButton bilbtn = new JButton(\"INVOICE\");\n\t\tbilbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tadminInvoice inv= new adminInvoice();\n\t\t\t\tinv. adminInvoiceStart();\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\t\t});\n\t\tbilbtn.setForeground(Color.WHITE);\n\t\tbilbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbilbtn.setBackground(Color.BLACK);\n\t\tbilbtn.setBounds(633, 11, 613, 44);\n\t\tpanel.add(bilbtn);\n\t\t\n\t\tJButton prdbtn = new JButton(\"PRODUCTS\");\n\t\tprdbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tadminproducts prd = new adminproducts();\n\t\t\t\tprd.adminPrd();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprdbtn.setForeground(Color.WHITE);\n\t\tprdbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tprdbtn.setBackground(Color.BLACK);\n\t\tprdbtn.setBounds(10, 11, 613, 44);\n\t\tpanel.add(prdbtn);\n\t\t\n\t\tJLabel lblCustomerName = new JLabel(\"CUSTOMER NAME\");\n\t\tlblCustomerName.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblCustomerName.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblCustomerName.setForeground(Color.WHITE);\n\t\tlblCustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblCustomerName.setBounds(69, 278, 178, 30);\n\t\tbackground.add(lblCustomerName);\n\t\t\n\t\tJLabel lblMachineType = new JLabel(\"MACHINE TYPE\");\n\t\tlblMachineType.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblMachineType.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblMachineType.setForeground(Color.WHITE);\n\t\tlblMachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblMachineType.setBounds(69, 328, 178, 30);\n\t\tbackground.add(lblMachineType);\n\t\t\n\t\t\n\t\tJButton btnStore = new JButton(\"STORE\");\n\t\tbtnStore.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tString dateEntry=date.getText();\n\t\t\t\tString cusname= customerName.getText();\t\n\t\t\t\tString machType=machineType.getText();\n\t\t\t\tString machName=machineName.getText();\n\t\t\t\tString quan=quantity.getText();\n\t\t\t\tString dl= deadline.getText();\n\t\t\t\tConnection con;\n\t\t\t\tPreparedStatement insert;\n\t\t\t\t\n\t\t\t\tif(dateEntry.isEmpty()||cusname.isEmpty()||machName.isEmpty()||machType.isEmpty()||quan.isEmpty()||dl.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"no field must be left empty\",\"registration error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\t\n\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Appointment added!!\");\n\t\t\t\t}\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t\t\t\tinsert = con.prepareStatement(\"insert into appointment (date,cusname,machType,machName,quan,deadline) values (?,?,?,?,?,?)\");\n\t\t insert.setString(1, dateEntry);\n\t\t insert.setString(2, cusname);\n\t\t insert.setString(3, machType);\n\t\t insert.setString(4, machName);\n\t\t insert.setString(5, quan);\n\t\t insert.setString(6, dl);\n\t\t insert.executeUpdate();\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnStore.setForeground(Color.WHITE);\n\t\tbtnStore.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnStore.setBackground(Color.BLACK);\n\t\tbtnStore.setBounds(580, 578, 116, 44);\n\t\tbackground.add(btnStore);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setBounds(1000, 230, 613, 267);\n\t\tbackground.add(scrollPane);\n\t\t\n\t\tinvoice = new JTable();\n\t\tscrollPane.setViewportView(invoice);\n\t\t\n\t\tJLabel lblInvoice = new JLabel(\"VIEW TO-DO LIST\");\n\t\tlblInvoice.setForeground(Color.WHITE);\n\t\tlblInvoice.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblInvoice.setBounds(1010, 117, 387, 48);\n\t\tbackground.add(lblInvoice);\n\t\t\n\t\tquantity = new JTextField();\n\t\tquantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tquantity.setColumns(10);\n\t\tquantity.setBounds(279, 428, 289, 30);\n\t\tbackground.add(quantity);\n\t\t\n\t\tmachineName = new JTextField();\n\t\tmachineName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineName.setColumns(10);\n\t\tmachineName.setBounds(279, 328, 289, 30);\n\t\tbackground.add(machineName);\n\t\t\n\t\tmachineType = new JTextField();\n\t\tmachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineType.setColumns(10);\n\t\tmachineType.setBounds(279, 378, 289, 30);\n\t\tbackground.add(machineType);\n\t\t\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(279, 278, 289, 30);\n\t\tbackground.add(customerName);\n\t\t\n\t\tJLabel deadlineLbl = new JLabel(\"DEADLINE\");\n\t\tdeadlineLbl.setVerticalAlignment(SwingConstants.TOP);\n\t\tdeadlineLbl.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tdeadlineLbl.setForeground(Color.WHITE);\n\t\tdeadlineLbl.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tdeadlineLbl.setBounds(69, 481, 178, 30);\n\t\tbackground.add(deadlineLbl);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"DATE\");\n\t\tlblDate.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblDate.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblDate.setForeground(Color.WHITE);\n\t\tlblDate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblDate.setBounds(69, 228, 178, 30);\n\t\tbackground.add(lblDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(279, 228, 289, 30);\n\t\tbackground.add(date);\n\t\t\n\t\tJButton btnView = new JButton(\"VIEW\");\n\t\tbtnView.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tConnection con = null;\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t String query=\"select * from appointment \";\n\t\t\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnView.setForeground(Color.WHITE);\n\t\tbtnView.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnView.setBackground(Color.BLACK);\n\t\tbtnView.setBounds(1584, 578, 116, 44);\n\t\tbackground.add(btnView);\n\t\t\n\t\tdeadline = new JTextField();\n\t\tdeadline.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdeadline.setColumns(10);\n\t\tdeadline.setBounds(279, 481, 289, 30);\n\t\tbackground.add(deadline);\n\t\t\n\t\tJPanel header = new JPanel();\n\t\theader.setLayout(null);\n\t\theader.setBackground(Color.DARK_GRAY);\n\t\theader.setBounds(14, 23, 1880, 163);\n\t\tframe.getContentPane().add(header);\n\t\t\n\t\tJPanel mwtitle = new JPanel();\n\t\tmwtitle.setLayout(null);\n\t\tmwtitle.setForeground(Color.WHITE);\n\t\tmwtitle.setBackground(Color.BLACK);\n\t\tmwtitle.setBounds(209, 7, 649, 151);\n\t\theader.add(mwtitle);\n\t\t\n\t\tJLabel label = new JLabel(\"MACHINE WORKS\");\n\t\tlabel.setForeground(Color.WHITE);\n\t\tlabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 69));\n\t\tlabel.setBounds(20, 11, 605, 72);\n\t\tmwtitle.add(label);\n\t\t\n\t\tJLabel lblWhereAllThe = new JLabel(\"Where all the WORK is done by MACHINE\");\n\t\tlblWhereAllThe.setForeground(Color.ORANGE);\n\t\tlblWhereAllThe.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblWhereAllThe.setBounds(38, 94, 581, 48);\n\t\tmwtitle.add(lblWhereAllThe);\n\t\t\n\t\tJLabel logolbl = new JLabel(\"\");\n\t\tlogolbl.setIcon(new ImageIcon(\"C:\\\\Users\\\\CHINMAYA SH\\\\Pictures\\\\download.png\"));\n\t\tlogolbl.setBounds(58, 7, 151, 151);\n\t\theader.add(logolbl);\n\t\t\n\t\tJButton lgbtn = new JButton(\"LOGOUT\");\n\t\tlgbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged out Successfull !!\");\n\t\t\t\tindex ind = new index();\n\t\t\t\tind.indexStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tlgbtn.setForeground(Color.WHITE);\n\t\tlgbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tlgbtn.setBackground(Color.BLACK);\n\t\tlgbtn.setBounds(1674, 60, 116, 44);\n\t\theader.add(lgbtn);\n\t\t\n\t\tJButton button_1 = new JButton(\"SIGN UP\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tsignup sg = new signup();\n\t\t\t\tsg.signupStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbutton_1.setForeground(Color.WHITE);\n\t\tbutton_1.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbutton_1.setBackground(Color.BLACK);\n\t\tbutton_1.setBounds(1488, 60, 116, 44);\n\t\theader.add(button_1);\n\t\t\n\t\tJButton btnAppointment = new JButton(\"TO-DO\");\n\t\tbtnAppointment.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tappointments ap = new appointments();\n\t\t\t\tap.appointmentList();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnAppointment.setForeground(Color.WHITE);\n\t\tbtnAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnAppointment.setBackground(Color.BLACK);\n\t\tbtnAppointment.setBounds(1309, 60, 125, 44);\n\t\theader.add(btnAppointment);\n\t\tframe.setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1920\t, 1080);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\n\t}",
"private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setPreferredSize(new java.awt.Dimension(686, 530));\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, 699, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 541, Short.MAX_VALUE)\n );\n\n pack();\n }",
"private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}",
"private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }",
"public void initGUI(){\n\t\t\n\t\t//the layout is a new BorderLayout\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t//the label will be north\t\n\t\tadd(createHeroList(), BorderLayout.NORTH);\n\t\t\n\t\t//the questions will be displayed center\t\t\n\t\tadd(createQuestions(), BorderLayout.CENTER);\n\t\t//the button panel should be south\n\t\tadd(createAnswerButtonPanel(), BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t \n\t}",
"private void setLayout (){\r\n /* define placeholders for content*/\r\n HBox mainFrame= new HBox(); //the Main frame component.\r\n root.getChildren().add(mainFrame); //add it to the scene\r\n \r\n \r\n \r\n mainFrame.getChildren().addAll(leftPane,rightPane);\r\n \r\n Rectangle leftR= new Rectangle(600.0, 900.0);\r\n leftR.setFill(Color.WHITE);\r\n Rectangle rightR= new Rectangle(300.0, 900.0);\r\n rightR.setFill(Color.RED);\r\n rightPane.getChildren().add(rightR);\r\n leftPane.getChildren().add(leftR);\r\n \r\n \r\n }",
"public void init ()\n\t// layout the applet\n\t{\tPlotarea=new Plot();\n\t\tPanel panel1=new Panel();\n\t\tPanel panel2=new Panel();\n\t\tClear=new Button(\" Clear \");\n\t\tRandomize=new Button(\" Random \");\n\t\tNRandom=new TextField(\"\",4);\n\t\tLocalOptimize=new Button(\"Local Optimum\");\n\t\tNIterations=new TextField(\"\",4);\n\t\tpanel1.add(Clear);\n\t\tpanel1.add(Randomize);\n\t\tpanel1.add(NRandom);\n\t\tpanel2.add(LocalOptimize);\n\t\tpanel2.add(new Label(\" Iterations:\"));\n\t\tpanel2.add(NIterations);\n\t\tsetLayout(gridbag);\n\t\tsetConstrain(Plotarea,0,0,1,1,\n\t\t\tGridBagConstraints.BOTH,GridBagConstraints.CENTER,\n\t\t\t1.0,1.0);\n\t\tadd(Plotarea);\n\t\tsetConstrain(panel1,0,2,1,1,\n\t\t\tGridBagConstraints.NONE,GridBagConstraints.CENTER,\n\t\t\t1.0,0.0);\n\t\tadd(panel1);\n\t\tsetConstrain(panel2,0,3,1,1,\n\t\t\tGridBagConstraints.NONE,GridBagConstraints.CENTER,\n\t\t\t1.0,0.0);\n\t\tadd(panel2);\n\t}",
"private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }",
"private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}",
"private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }",
"private void initialize() {\r\n\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\tgridBagConstraints1.gridx = 0;\r\n\t\tgridBagConstraints1.gridy = 1;\r\n\t\tlaunchSubLabel = new JLabel();\r\n\t\tlaunchSubLabel.setText(Message.getMessage(\"reportmaker.process.sublabel\"));\r\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\tgridBagConstraints.gridx = 0;\r\n\t\tgridBagConstraints.gridy = 0;\r\n\t\tthis.setSize(800, 400);\r\n\t\tthis.setLayout(new GridBagLayout());\r\n\t\tthis.setPreferredSize(new Dimension(800, 400));\r\n\t\tthis.setBackground(Color.white);\r\n\t\tthis.add(getLaunchButton(), gridBagConstraints);\r\n\r\n\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\tgridBagConstraints2.insets = new Insets(50, 0, 0, 0);\r\n\t\tgridBagConstraints2.gridx = 0;\r\n\t\tgridBagConstraints2.gridy = 2;\r\n\t\tthis.add(getViewButton(), gridBagConstraints2);\r\n\t\tthis.add(launchSubLabel, gridBagConstraints1);\r\n\t}",
"private void setUp() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tsetupMessagePanel();\n\t\tsetupHomeButtonPanel();\n\t}",
"private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }",
"private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}",
"private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300, 200);\n\t\tthis.add(getJScrollPane(), java.awt.BorderLayout.CENTER);\n\t}",
"private void setUpFrame() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new BorderLayout());\n rootPanel.setBackground(Color.darkGray);\n }",
"public Layout() {\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.NORTH);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"New label\");\n\t\tpanel.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\tpanel.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tpanel.add(lblNewLabel_1);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\tpanel.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tframe.getContentPane().add(panel_1, BorderLayout.SOUTH);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tframe.getContentPane().add(panel_2, BorderLayout.WEST);\n\t\tpanel_2.setLayout(new GridLayout(2, 1, 0, 0));\n\t\t\n\t\tJButton btnNewButton = new JButton(\"New button\");\n\t\tpanel_2.add(btnNewButton);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"New button\");\n\t\tpanel_2.add(btnNewButton_1);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\tframe.getContentPane().add(panel_3, BorderLayout.EAST);\n\t}",
"private void init() {\n\t\tcreateSubjectField();\n\t\tcreateTextField();\n\t\tcreateButton();\n\t\tsetupSubjectPanel();\n\t\tsetupToDoPanel();\n\n\t\tsetBorder(BorderFactory.createTitledBorder(\"To Do List\"));\n\t\tsetLayout(new BorderLayout());\n\t\tadd(pnlSubject, BorderLayout.NORTH);\n\t\tadd(scroll, BorderLayout.CENTER);\n\t\tadd(pnlButton, BorderLayout.SOUTH);\n\t}",
"public void init()\r\n\t{\r\n\r\n\t\tsetLayout(new BorderLayout());\r\n\t\t\r\n\t\tb1=new Button(\"Ok\");\r\n\t\tadd(b1,BorderLayout.SOUTH);\r\n\t\t\r\n\t\t//GRID LAYOUT\r\n\r\n\t\t/*setLayout(new GridLayout(1,2));\r\n\t\tb1=new Button(\"Submit\");\r\n\t\tadd(b1);\r\n\t\tb2=new Button(\"Submit\");\r\n\t\tadd(b2);*/\r\n\r\n\t\t//CARD LAYOUT\r\n\r\n\t\t/*setLayout(new CardLayout(100,200));\r\n\t\tt1=new TextField(20);\r\n\t\tadd(b1);*/\r\n\t\r\n\t\t/*t2=new TextField(\"Submit\");\r\n\t\tadd(b2);*/\r\n\t\t//b1.addActionListener(this);\r\n\t\t\t\t\r\n\t\t\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t}",
"public void init()\n\t\t{\n\t\t\t//Makes Lists\n\t\t\tmakeLists();\n\n\t\t\t//layout for GUI\n\t\t\tGridLayout layout = new GridLayout(2,4, 5 ,5);\n\t\t\tsetLayout(layout);\n\n\t\t\t//add panels to window\n\t\t\tadd(Panel_1);\n\t\t\tadd(Panel_2);\n\t\t\tadd(Panel_3);\n\t\t\tadd(Panel_4);\n\n\t\t\t//create buttons\n\t\t\tCalculateButton = new JButton(\"Calculate\");\n\t\t ExitButton = new JButton(\"Exit\");\n\n\t\t\t//connect event handlers to buttons\n\t\t CalculateButton.addActionListener(new ButtonListener());\n\t\t ExitButton.addActionListener(new ButtonListener());\n\n\t\t\t//add buttons to window\n\t\t add(CalculateButton);\n\t\t add(ExitButton);\n\n\t\t //make window visible\n\t\t\tsetVisible(true);\n\t\t}",
"private void init() {\n\t\tsetModal(true);\n\t\t\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(new GridBagLayout());\n\t\tc = new GridBagConstraints();\n\t\tc.insets = new Insets(10, 10, 10, 10);\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}",
"private void InitView() {\n\n\t\tframe_element = new Frame_element();// 初始化保存框架元素的类\n\n\t\tframe_element\n\t\t\t\t.setRel_body_content((RelativeLayout) findViewById(R.id.rel_body_content));// 保存中间内容框架\n\t\tframe_element\n\t\t\t\t.setRel_top_bar((RelativeLayout) findViewById(R.id.rel_top_bar));// 保存顶部BAR框架\n\n\t\tframe_element\n\t\t\t\t.setRel_frist_bar((RelativeLayout) findViewById(R.id.rel_frist_bar));// 保存顶部首页BAR\n\t\t// 顶部右侧‘更多’按钮点击事件\n\t\timagebtn_more = (ImageButton) findViewById(R.id.imagebtn_more);\n\t\timagebtn_userhead_icon = (ImageButton) findViewById(R.id.imagebtn_userhead_icon);\n\t\timagebtn_more.setOnClickListener(this);\n\t\timagebtn_userhead_icon.setOnClickListener(this);\n\n\t}",
"private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tjTextFieldIp = new JTextField(ChatPreferences.getIp());\n\t\tjTextFieldPort = new JTextField(ChatPreferences.getPort());\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tFlowLayout flowlayout = new FlowLayout(FlowLayout.CENTER);\n\t\t\tsetLayout(flowlayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\n\t\t}",
"public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}",
"public FrameDesign() {\n initComponents();\n }",
"public void initUI() {\n\t\tadd(board);\r\n\t\t//Set if frame is resizable by user\r\n\t\tsetResizable(false);\r\n\t\t//call pack method to fit the \r\n\t\t//preferred size and layout of subcomponents\r\n\t\t//***important head might not work correctly with collision of bottom and right borders\r\n\t\tpack();\r\n\t\t//set title for frame\r\n\t\tsetTitle(\"Snake\");\r\n\t\t//set location on screen(null centers it)\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t//set default for close button of frame\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initMainFrame(){\n \n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n this.setSize(MAINFRAMESIZE);\n BoxLayout bl = new BoxLayout(getContentPane(), BoxLayout.Y_AXIS);\n this.getContentPane().setLayout(bl);\n this.setPreferredSize(MAINFRAMESIZE);\n this.setResizable(false);\n this.pack();\n }",
"private void initLayout() {\n ListView<PropertyWrapper> attributes = new ListView<PropertyWrapper>(\"attributes\", createAttributesModel()) {\n\n @Override\n protected void populateItem(ListItem<PropertyWrapper> listItem) {\n populateListItem(listItem);\n\n if (!showEmptyProperties && isEmpty(listItem)) {\n listItem.setVisible(false);\n }\n }\n };\n add(attributes);\n\n //todo remove !!!\n final MultiLineLabel label = new MultiLineLabel(\"debug\", new AbstractReadOnlyModel<String>() {\n\n @Override\n public String getObject() {\n return showStatus();\n }\n });\n label.add(new AjaxEventBehavior(\"onClick\") {\n\n @Override\n protected void onEvent(AjaxRequestTarget target) {\n target.add(label);\n }\n });\n add(label);\n }"
] | [
"0.75576144",
"0.7504312",
"0.74532986",
"0.7354736",
"0.7311218",
"0.7307859",
"0.7271616",
"0.72172904",
"0.71272725",
"0.71083796",
"0.7092987",
"0.70643723",
"0.7046891",
"0.7016041",
"0.701457",
"0.70062864",
"0.70025724",
"0.68994236",
"0.68610775",
"0.68608975",
"0.6859008",
"0.685349",
"0.684872",
"0.6837066",
"0.682957",
"0.6829022",
"0.68211114",
"0.68003744",
"0.67930734",
"0.67902255",
"0.6786462",
"0.67697793",
"0.6769745",
"0.6761322",
"0.6755669",
"0.6749407",
"0.67454183",
"0.6733506",
"0.67226636",
"0.6698344",
"0.66859645",
"0.6684895",
"0.66815543",
"0.6677891",
"0.6670057",
"0.6665431",
"0.6655897",
"0.66454613",
"0.66389805",
"0.66358376",
"0.66285425",
"0.6628191",
"0.6618045",
"0.66162354",
"0.6601592",
"0.65975636",
"0.65867317",
"0.6582499",
"0.6579768",
"0.65713644",
"0.6559737",
"0.65484846",
"0.65457475",
"0.6544318",
"0.6540471",
"0.65327585",
"0.65317273",
"0.65279907",
"0.6522996",
"0.6515396",
"0.65125906",
"0.6505072",
"0.65020984",
"0.6501054",
"0.6497503",
"0.64846355",
"0.64841795",
"0.6471116",
"0.64699644",
"0.6464578",
"0.64605796",
"0.64398587",
"0.64302325",
"0.64191157",
"0.6417107",
"0.64003354",
"0.6398917",
"0.6384489",
"0.63681597",
"0.63619035",
"0.6354302",
"0.63490796",
"0.63418645",
"0.63338184",
"0.6322385",
"0.6315453",
"0.631508",
"0.6311276",
"0.6308706",
"0.63041353"
] | 0.7487546 | 2 |
Creates and assigns the panel for the buttons, setting the relevant actions for each button | private JPanel initButtonPanel() {
JPanel buttonPanel = new JPanel();
buttonPanel.setLayout(new FlowLayout(SwingUtilities.HORIZONTAL));
completeButton = new JButton(new AbstractAction("Complete") {
@Override
public void actionPerformed(ActionEvent e) {
task.setStatus(TaskStatus.COMPLETED);
dialog.setVisible(false);
}
});
buttonPanel.add(completeButton);
closeButton = new JButton(new AbstractAction("Close") {
@Override
public void actionPerformed(ActionEvent e) {
dialog.setVisible(false);
}
});
buttonPanel.add(closeButton);
return buttonPanel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createButtonsPanel() {\r\n Composite buttonsPanel = new Composite(this, SWT.NONE);\r\n buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\r\n buttonsPanel.setLayout(new GridLayout(4, true));\r\n\r\n getButtonFromAction(buttonsPanel, \"New\", new NewAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Save\", new SaveAction());\r\n getButtonFromAction(buttonsPanel, \"Delete\", new DeleteAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Cancel\", new CancelAction());\r\n }",
"public JButtonsPanel() {\r\n setBorder(BorderFactory.createEtchedBorder(Color.GREEN, new Color(148, 145, 140)));\r\n\r\n jOpen.setText(BTN_OPEN);\r\n jOpen.setToolTipText(MSG_OPEN);\r\n jOpen.setBounds(new Rectangle(BTN_LEFT, BTN_VSPACE, BTN_WIDTH, BTN_HEIGHT));\r\n add(jOpen);\r\n\r\n jCheckHealth.setText(BTN_CHECK_HEALTH);\r\n jCheckHealth.setToolTipText(MSG_CHECK_HEALTH);\r\n jCheckHealth.setBounds(new Rectangle(BTN_LEFT, (int) (jOpen.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jCheckHealth);\r\n\r\n jClose.setText(BTN_CLOSE);\r\n jClose.setToolTipText(MSG_CLOSE);\r\n jClose.setBounds(new Rectangle(BTN_LEFT, (int) (jCheckHealth.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClose);\r\n\r\n jClaim.setText(BTN_CLAIM);\r\n jClaim.setToolTipText(MSG_CLAIM);\r\n jClaim.setBounds(new Rectangle(BTN_LEFT, (int) (jClose.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClaim);\r\n\r\n jRelease.setText(BTN_RELEASE);\r\n jRelease.setToolTipText(MSG_RELEASE);\r\n jRelease.setBounds(new Rectangle(BTN_LEFT, (int) (jClaim.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jRelease);\r\n\r\n jDeviceEnable.setText(BTN_DEVICE_ENABLE);\r\n jDeviceEnable.setToolTipText(MSG_DEVICE_ENABLE);\r\n jDeviceEnable.setBounds(new Rectangle(BTN_LEFT, (int) (jRelease.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jDeviceEnable);\r\n\r\n jDeviceDisable.setText(BTN_DEVICE_DISABLE);\r\n jDeviceDisable.setToolTipText(MSG_DEVICE_DISABLE);\r\n jDeviceDisable.setBounds(new Rectangle(BTN_LEFT, (int) (jDeviceEnable.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jDeviceDisable);\r\n\r\n jClearData.setText(BTN_CLEAR_DATA);\r\n jClearData.setToolTipText(MSG_CLEAR_DATA);\r\n jClearData.setBounds(new Rectangle(BTN_LEFT, (int) (jDeviceDisable.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClearData);\r\n\r\n jBeginEnrollCapture.setText(BTN_BEGIN_ENROLL_CAPTURE);\r\n jBeginEnrollCapture.setToolTipText(MSG_BEGIN_ENROLL_CAPTURE);\r\n jBeginEnrollCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jClearData.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jBeginEnrollCapture);\r\n\r\n jEndCapture.setText(BTN_END_CAPTURE);\r\n jEndCapture.setToolTipText(MSG_END_CAPTURE);\r\n jEndCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jBeginEnrollCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jEndCapture);\r\n\r\n jBeginVerifyCapture.setText(BTN_BEGIN_VERIFY_CAPTURE);\r\n jBeginVerifyCapture.setToolTipText(MSG_BEGIN_VERIFY_CAPTURE);\r\n jBeginVerifyCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jEndCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jBeginVerifyCapture);\r\n\r\n jIdentifyMatch.setText(BTN_IDENTIFY_MATCH);\r\n jIdentifyMatch.setToolTipText(MSG_IDENTIFY_MATCH);\r\n jIdentifyMatch.setBounds(new Rectangle(BTN_LEFT, (int) (jBeginVerifyCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jIdentifyMatch);\r\n\r\n jVerifyMatch.setText(BTN_VERIFY_MATCH);\r\n jVerifyMatch.setToolTipText(MSG_VERIFY_MATCH);\r\n jVerifyMatch.setBounds(new Rectangle(BTN_LEFT, (int) (jIdentifyMatch.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jVerifyMatch);\r\n\r\n jIdentify.setText(BTN_IDENTIFY);\r\n jIdentify.setToolTipText(MSG_IDENTIFY);\r\n jIdentify.setBounds(new Rectangle(BTN_LEFT, (int) (jVerifyMatch.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jIdentify);\r\n\r\n jVerify.setText(BTN_VERIFY);\r\n jVerify.setToolTipText(MSG_VERIFY);\r\n jVerify.setBounds(new Rectangle(BTN_LEFT, (int) (jIdentify.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jVerify);\r\n }",
"private void initPanelButtons() {\r\n\t\tthis.panelButtons = new JPanel(new GridBagLayout());\r\n\t\tthis.panelButtons.setBorder(BorderFactory.createEmptyBorder(10, 5, 0, 5));\r\n\t\tthis.panelButtons.setOpaque(false);\r\n\t\tGridBagConstraints gbc = new GridBagConstraints();\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tgbc.gridwidth = 1;\r\n\t\tgbc.gridheight = 1;\r\n\t\tgbc.weightx = 1;\r\n\t\tgbc.weighty = 1;\r\n\t\tthis.returnButton.setBackground(ConstantView.COLOR_BUTTON_LOGIN);\r\n\t\tthis.returnButton.setForeground(Color.WHITE);\r\n\t\tthis.returnButton.setFocusable(false);\r\n\t\tthis.returnButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tthis.returnButton.setFont(ConstantView.FONT_PRINCIPAL_LABELS);\r\n\t\tthis.panelButtons.add(returnButton, gbc);\r\n\r\n\t\tgbc.gridx = 7;\r\n\t\tthis.okButton.setBackground(ConstantView.COLOR_BUTTON_LOGIN);\r\n\t\tthis.okButton.setForeground(Color.WHITE);\r\n\t\tthis.okButton.setFocusable(false);\r\n\t\tthis.okButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tthis.okButton.setFont(ConstantView.FONT_PRINCIPAL_LABELS);\r\n\t\tthis.okButton.addActionListener(ControlClient.getInstance());\r\n\t\tthis.okButton.setActionCommand(ClientCommands.OK_SIGN_IN.toString());\r\n\t\tthis.panelButtons.add(okButton, gbc);\r\n\t}",
"private void makeButtonPanel()\n {\n \n this.buttonPanel.setLayout(new GridLayout(10, 2, 30, 10));\n \n \n this.buttonPanel.add(this.fLabel);\n this.fName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.fName);\n\n this.buttonPanel.add(this.lLabel);\n this.lName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.lName);\n\n this.buttonPanel.add(this.idLabel);\n this.iD.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.iD);\n\n this.buttonPanel.add(this.courseLabel);\n this.course.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.course);\n\n this.buttonPanel.add(this.instructorLabel);\n this.instructor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.instructor);\n\n this.buttonPanel.add(this.tutorLabel);\n this.tutor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.tutor);\n \n this.buttonPanel.add(this.commentsLable);\n this.comments.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.comments);\n //Removed for appointment tabel\n //this.buttonPanel.add(this.appointmentLable);\n //this.buttonPanel.add(this.appointment);\n this.buttonPanel.add(this.sessionLenLabel);\n this.sessionLength.setColumns(COL_WIDTH);\n this.sessionLength.setText(\"30\");\n this.buttonPanel.add(this.sessionLength);\n\n this.ADD_BUTTON.addActionListener(new AddButtonListener());\n //buttonPanel.add(ADD_BUTTON);\n \n \n this.addSessionPlaceHolder.add(this.buttonPanel);\n }",
"private void setButtonPanelComponents(){\n\t\tJPanel buttonPane = new JPanel();\n\t\tbuttonPane.setPreferredSize(new Dimension(-1,32));\n\t\tbuttonPane.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\n\t\t\n\t\tsaveButton = Utilities.getInstance().initializeNewButton(\n\t\t\t-1, -1, -1, -1,\n\t\t\tImages.getInstance().saveBtnDialogImg,\n\t\t\tImages.getInstance().saveBtnDialogImgHover\n\t\t);\n\t\tbuttonPane.add(saveButton);\n\t\n\n\t\n\t}",
"protected void createButtons(Panel panel) {\n panel.add(new Filler(24,20));\n\n Choice drawingChoice = new Choice();\n drawingChoice.addItem(fgUntitled);\n\n\t String param = getParameter(\"DRAWINGS\");\n\t if (param == null)\n\t param = \"\";\n \tStringTokenizer st = new StringTokenizer(param);\n while (st.hasMoreTokens())\n drawingChoice.addItem(st.nextToken());\n // offer choice only if more than one\n if (drawingChoice.getItemCount() > 1)\n panel.add(drawingChoice);\n else\n panel.add(new Label(fgUntitled));\n\n\t\tdrawingChoice.addItemListener(\n\t\t new ItemListener() {\n\t\t public void itemStateChanged(ItemEvent e) {\n\t\t if (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t loadDrawing((String)e.getItem());\n\t\t }\n\t\t }\n\t\t }\n\t\t);\n\n panel.add(new Filler(6,20));\n\n Button button;\n button = new CommandButton(new DeleteCommand(\"Delete\", fView));\n panel.add(button);\n\n button = new CommandButton(new DuplicateCommand(\"Duplicate\", fView));\n panel.add(button);\n\n button = new CommandButton(new GroupCommand(\"Group\", fView));\n panel.add(button);\n\n button = new CommandButton(new UngroupCommand(\"Ungroup\", fView));\n panel.add(button);\n\n button = new Button(\"Help\");\n\t\tbutton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n\t\t showHelp();\n\t\t }\n\t\t }\n\t\t);\n panel.add(button);\n\n fUpdateButton = new Button(\"Simple Update\");\n\t\tfUpdateButton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n if (fSimpleUpdate)\n setBufferedDisplayUpdate();\n else\n setSimpleDisplayUpdate();\n\t\t }\n\t\t }\n\t\t);\n\n // panel.add(fUpdateButton); // not shown currently\n }",
"private void buttonsPanel(JPanel panel_buttons) {\n\t\t//BUTTON COMPONENETS\n\t\tJButton btnDraw = new JButton(\"DRAW\");\n\t\tbtnDraw.setMinimumSize(new Dimension(81, 34));\n\t\tbtnDraw.setMaximumSize(new Dimension(81, 34));\n\t\tbtnDraw.setOpaque(true);\n\t\tbtnDraw.setBorderPainted(false);\n\t\tbtnDraw.setHideActionText(true);\n\t\tbtnDraw.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n\t\tbtnDraw.setSelected(true);\n\t\tbtnDraw.setRequestFocusEnabled(false);\n\t\tbtnDraw.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnDraw.setFont(UIManager.getFont(\"ColorChooser.font.green\"));\n\t\tbtnDraw.setBackground(Color.BLACK);\n\t\tbtnDraw.setForeground(Color.GREEN);\n\t\tbtnDraw.setFont(UIManager.getFont(\"ColorChooser.font.green\"));\n\t\t\n\t\tJButton btnReset = new JButton(\"RESET\");\n\t\tbtnReset.setForeground(Color.RED);\n\t\tbtnReset.setFont(UIManager.getFont(\"Button.font\"));\n\t\tbtnReset.setBorder(null);\n\t\tbtnReset.setOpaque(true);\n\t\tbtnReset.setBackground(Color.BLACK);\n\t\tbtnReset.setName(\"\");\n\t\t\n\t\tJButton btnQuit = new JButton(\"QUIT\");\n\t\tbtnQuit.setMaximumSize(new Dimension(81, 29));\n\t\tbtnQuit.setMinimumSize(new Dimension(81, 29));\n\t\tbtnQuit.setOpaque(true);\n\t\tbtnQuit.setBackground(Color.BLACK);\n\t\tbtnQuit.setBorderPainted(false);\n\t\tbtnQuit.setForeground(Color.WHITE);\n\t\tbtnQuit.setFont(UIManager.getFont(\"ColorChooser.font\"));\n\t\tbtnQuit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//PANEL LAYOUT FOR BUTTONS\n\t\tGroupLayout gl_panel_Buttons = new GroupLayout(panel_buttons);\n\t\tgl_panel_Buttons.setHorizontalGroup(\n\t\t\tgl_panel_Buttons.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addComponent(btnReset, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)\n\t\t\t\t.addComponent(btnQuit, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)\n\t\t\t\t.addComponent(btnDraw, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)\n\t\t);\n\t\tgl_panel_Buttons.setVerticalGroup(\n\t\t\tgl_panel_Buttons.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_Buttons.createSequentialGroup()\n\t\t\t\t\t.addComponent(btnDraw, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnReset, GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnQuit, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE))\n\t\t);\n\t\tpanel_buttons.setLayout(gl_panel_Buttons);\n\t}",
"private void generateButtonPanel() {\n buttonsPanel = new JPanel();\n playPauseButton = addButton(\"Play/Pause\");\n restartButton = addButton(\"Restart\");\n speedUpButton = addButton(\"Speed Up\");\n slowDownButton = addButton(\"Slow Down\");\n loopbackButton = addButton(\"Loopback\");\n keyCommandsButton = addButton(\"Key Commands\");\n textViewButton = addButton(\"Animation Text\");\n\n addShapeButton = addButton(\"Add Shape\");\n removeShapeButton = addButton(\"Remove Shape\");\n addKeyframeButton = addButton(\"Add Keyframe\");\n removeKeyframeButton = addButton(\"Remove Keyframe\");\n editKeyframeButton = addButton(\"Edit Keyframe\");\n clearAnimationButton = addButton(\"Clear Animation\");\n clearShapeButton = addButton(\"Clear Shape\");\n buttonsPanel.setLayout(new FlowLayout());\n\n mainPanel.add(buttonsPanel);\n }",
"private void setupButtons() {\n final ButtonGroup btngrp = new ButtonGroup();\n\n for (final AbstractAction actn : myToolActions) {\n final JToggleButton btn = new JToggleButton(actn);\n btn.addActionListener(actn);\n btngrp.add(btn);\n add(btn);\n }\n\n btngrp.clearSelection();\n btngrp.getElements().nextElement().setSelected(true);\n\n }",
"private JPanel initBtnPanel() {\n\t\tconvBtn = new JButton();\n\t\tconvBtn.addActionListener(new ConversionBtnListener());\n\t\tconvBtn.setFont(new AppFont());\n\n\t\t// A button to switch the input and output scales\n\t\tswitchBtn = new JButton();\n\t\tswitchBtn.addActionListener(new SwitchListener());\n\t\tswitchBtn.setFont(new AppFont());\n\n\t\t// The panel that displays the buttons\n\t\tJPanel btnPanel = new JPanel();\n\t\tbtnPanel.setLayout(new FlowLayout());\n\t\tbtnPanel.add(convBtn);\n\t\tbtnPanel.add(switchBtn);\n\n\t\treturn btnPanel;\n\t}",
"public void initializeButtons() {\n\t\tif(null!=itemPanel)\n\t\t\tremove(itemPanel);\n\t\t\n\t\titemPanel = new JPanel();\n\t\titemPanel.setLayout(new FlowLayout());\n\t\tList<Item> allItems = itemDao.readAll();\n\t\t\n\t\t//Sort list of items based on item code.\n\t\tCollections.sort(allItems, new Comparator<Item>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Item o1, Item o2) {\n\t\t\t\tCharacter c1 = o1.getCode();\n\t\t\t\tCharacter c2 = o2.getCode();\n\t\t\t\treturn c1.compareTo(c2);\n\t\t\t}\n\t\t});\n\t\t\n\t\tfor(final Item item : allItems){\n\t\t\tJButton addButton = new JButton(item.getName());\n\t\t\tDeal deal = item.getDeal();\n\t\t\tString dealName = deal == null ? \"\" : \"<br>\" + deal.getName();\n\t\t\t//Set tool tip as description and deal if available\n\t\t\taddButton.setToolTipText(\"<html>\"+item.getDescription()+\"<br>Price: $\"+item.getPrice()\n\t\t\t\t\t+ dealName+\"</html>\");\n\t\t\t//Add item to cart when pressed, also update cartLabel.\n\t\t\taddButton.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tcart.addItem(item.getCode());\n\t\t\t\t\tcartLabel.setText(cart.size()+ \" items in your cart\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t//addButton.setBounds(10, frameHeight, 75, 20);\n\t\t\taddButton.setSize(new Dimension(75, 20));\n\t\t\titemPanel.add(addButton);\n\t\t}\n\t\t\n\t\titemPanel.setBounds(10, 30, 280, 150);\n\t\tadd(itemPanel);\n\t\tMain.getFrame().setVisible(true);;\n\t}",
"private void constructButtonPanel() {\n //boolean manualAdvance = true;\n \n buttonPanel = new JPanel();\n buttonPanel.setBorder(BorderFactory.createTitledBorder(\"Admin Actions\"));\n buttonPanel.setLayout(new GridLayout(2, 2, 20, 15));\n \n JPanel startExpPanel = new JPanel();\n startExpButton = new JButton(\"Start Experiment\");\n startExpButton.setEnabled(false);\n startExpButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (allConnected || JOptionPane.showConfirmDialog(null, \"<html>Start the game even though all clients are not yet connected?</html>\", \"Premature Start\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n startExperiment();\n }\n });\n startExpPanel.add(startExpButton);\n \n JPanel startPeriodPanel = new JPanel();\n startPeriodButton = new JButton(\"Start Period\");\n startPeriodButton.setEnabled(false);\n startPeriodPanel.add(startPeriodButton);\n startPeriodButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (JOptionPane.showConfirmDialog(null, \"<html>Start this period?</html>\", \"Confirm Exit\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n startPeriod();\n }\n });\n \n JPanel switchButtonPanel = new JPanel();\n switchButton = new JButton(autoSwitchString);\n switchButton.setEnabled(true);\n switchButtonPanel.add(switchButton);\n switchButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n manualAdvance = !manualAdvance;\n setSwitchStatus();\n }\n });\n \n JPanel stopExpPanel = new JPanel();\n stopExpButton = new JButton(\"Stop Experiment\");\n stopExpButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (JOptionPane.showConfirmDialog(null, \"<html>Terminate the current experiment?<br>(This will exit this interface)</html>\", \"Confirm Exit\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n stopExperiment();\n }\n });\n stopExpButton.setEnabled(false);\n stopExpPanel.add(stopExpButton);\n \n buttonPanel.add(startExpPanel);\n buttonPanel.add(startPeriodPanel);\n buttonPanel.add(stopExpPanel);\n buttonPanel.add(switchButtonPanel);\n \n buttonPanel.setPreferredSize(relativeSize(0.25f, 0.15f));\n }",
"private JPanel createButtons()\r\n\t{\r\n\t\tJPanel buttons = new JPanel();\r\n\t\tbuttons.setLayout(new FlowLayout(FlowLayout.TRAILING));\r\n\r\n\r\n\t\tButton save = new Button(PrimeMain1.texts.getString(\"save\"));\r\n\t\tsave.addActionListener(this);\r\n\t\tsave.setActionCommand(\"save\");\r\n\r\n\t\tButton cancel = new Button(PrimeMain1.texts.getString(\"cancel\"));\r\n\t\tcancel.addActionListener(this);\r\n\t\tcancel.setActionCommand(\"cancel\");\r\n\r\n\r\n\t\tbuttons.add(save);\r\n\t\tbuttons.add(cancel);\r\n\r\n\t\treturn buttons;\r\n\t}",
"private void initializeButtonPanel() {\n buttonPanel = new ButtonPanel();\n radioPanel = new JPanel(new GridLayout(0, 1));\n ButtonGroup buttonGroup = new ButtonGroup();\n Collections.addAll(toDoButtonList,task1,task2,task3,task4,task5,task6);\n for (int i=0;i<toDoButtonList.size();i++){\n JRadioButton task = toDoButtonList.get(i);\n buttonGroup.add(task);\n radioPanel.add(task);\n }\n\n refresh();\n\n }",
"private void buttonPanel() {\n totalButton = new JButton(\"Calculate Total\");\r\n totalButton.setPreferredSize(new Dimension(150, 60));\r\n\r\n //add an action listener to the total.\r\n totalButton.addActionListener(new TotalButtonListener());\r\n\r\n //create a button to Submit Order.\r\n orderButton = new JButton(\"Submit Order\");\r\n orderButton.setPreferredSize(new Dimension(150, 60));\r\n orderButton.setEnabled(false);\r\n\r\n //add an action listener to the button.\r\n orderButton.addActionListener(new OrderButtonListener());\r\n\r\n //create a button to reset the checkboxes.\r\n resetButton = new JButton(\"Reset\");\r\n resetButton.setPreferredSize(new Dimension(150, 60));\r\n\r\n //add an action listener to the button.\r\n resetButton.addActionListener(new ResetButtonListener());\r\n\r\n //create a button to exit the application.\r\n exitButton = new JButton(\"Exit\");\r\n exitButton.setPreferredSize(new Dimension(150, 60));\r\n\r\n //add an action listener to the button.\r\n exitButton.addActionListener(new ExitButtonListener());\r\n\r\n //put the buttons in their own panel.\r\n buttonPanel = new JPanel();\r\n buttonPanel.setLayout(new GridLayout(1, 4));\r\n buttonPanel.add(totalButton);\r\n buttonPanel.add(orderButton);\r\n buttonPanel.add(resetButton);\r\n buttonPanel.add(exitButton);\r\n }",
"private void buttonInit() {\n panel.add(createButton);\n panel.add(editButton);\n panel.add(changeButton);\n createButton.addActionListener(this);\n editButton.addActionListener(this);\n changeButton.addActionListener(this);\n submitNewUser.addActionListener(this);\n editAccTypeBtn.addActionListener(this);\n changePassBtn.addActionListener(this);\n }",
"public ActionButtonPanel() {\n\t\tthis.setBackground(new Color(33, 162, 246));\n\t\tthis.setLayout(new FlowLayout());\n\t\t\n\t\tmoveShepherdButton = new ActionButton(new ImageIcon(Default.moveShepherdButtonUrl));\n\t\tmoveSheepButton = new ActionButton(new ImageIcon(Default.moveSheepButtonUrl));\n\t\tcoupleButton = new ActionButton(new ImageIcon(Default.coupleButtonUrl));\n\t\tcoupleSheepsButton = new ActionButton(new ImageIcon(Default.coupleSheepsButtonUrl));\n\t\tkillButton = new ActionButton(new ImageIcon(Default.killButtonUrl));\n\t\tbuyCardButton = new ActionButton(new ImageIcon(Default.buyCardButtonUrl));\n\t\t\n\t\tthis.add(moveShepherdButton);\n\t\tthis.add(moveSheepButton);\n\t\tthis.add(coupleButton);\n\t\tthis.add(coupleSheepsButton);\n\t\tthis.add(killButton);\n\t\tthis.add(buyCardButton);\n\t\t\n\t\tmoveShepherdButton.setEnabled(false);\n\t\tmoveSheepButton.setEnabled(false);\n\t\tcoupleButton.setEnabled(false);\n\t\tcoupleSheepsButton.setEnabled(false);\n\t\tkillButton.setEnabled(false);\n\t\tbuyCardButton.setEnabled(false);\n\t}",
"private ButtonJPanel(){\n GridLayout layout = new GridLayout(0, 1);//creates a grid layout with 1 column and unlimited rows, for the buttons\n setLayout(layout);//sets the JPanel layout\n layout.setVgap(5);//sets the vertical gap between the buttons\n setBackground(Color.WHITE);//sets the color of the panel to WHITE\n \n fillrecimg = new ImageIcon(\"src/fillrec.png\");//assigns a png image to the ImageIcon\n fillovalimg = new ImageIcon(\"src/filloval.png\");\n emptyrecimg = new ImageIcon(\"src/emptyrec.png\");\n emptyovalimg = new ImageIcon(\"src/emptyoval.png\");\n linedrawimg = new ImageIcon(\"src/linedraw.png\");\n \n clear = new JButton(\"Clear\");//initializes the buttons, either with text or an icon\n (fillrec = new JButton(fillrecimg)).setActionCommand(\"Filled Rectangle\");//icon buttons are assigned a string ActionCommand\n (filloval = new JButton(fillovalimg)).setActionCommand(\"Filled Oval\");\n (emptyrec = new JButton(emptyrecimg)).setActionCommand(\"Empty Rectangle\");\n (emptyoval = new JButton(emptyovalimg)).setActionCommand(\"Empty Oval\");\n (linedraw = new JButton(linedrawimg)).setActionCommand(\"Line Drawing\");\n opencolor = new JButton(\"Color Chooser\");\n \n JButton[] buttons = {clear, fillrec, filloval, emptyrec, emptyoval, linedraw, opencolor};//an array of all the buttons\n \n for(JButton button : buttons){//for each button...\n button.addActionListener(this);//add a listener\n add(button);//add the button to the panel\n button.setOpaque(true);//make the color visable\n button.setBackground(Color.BLACK);//set background to black\n button.setFont(new Font(Font.DIALOG, Font.PLAIN, 13));//sets the font, style, and size\n }\n }",
"public void addPanelControls() {\n\t\tlist_sort = new JComboBox<>(new String[] { \"MSSV\", \"HoTen\", \"NTNS\" });\r\n\t\tbtn_sapxep = new JButton(\"Sap xep\");\r\n\t\tbtn_them = new JButton(\"Them\");\r\n\t\tbtn_xoa = new JButton(\"Xoa\");\r\n\t\tbtn_save = new JButton(\"Save\");\r\n\t\tbtn_load = new JButton(\"Load\");\r\n\r\n\t\tJPanel mControlPanel = new JPanel(new GridLayout(5, 1));\r\n\t\tmControlPanel.add(btn_them);\r\n\t\tmControlPanel.add(btn_xoa);\r\n\t\tJPanel sapxepPanel = new JPanel();\r\n\t\tsapxepPanel.add(list_sort);\r\n\t\tsapxepPanel.add(btn_sapxep);\r\n\t\tmControlPanel.add(sapxepPanel);\r\n\t\tmControlPanel.add(btn_save);\r\n\t\tmControlPanel.add(btn_load);\r\n\r\n\t\tmControlPanel.setPreferredSize(new Dimension(380, 200));\r\n\t\tmControlPanel.setBorder(new TitledBorder(\"Controls\"));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx = 0.5;\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 0;\r\n\t\tpanel.add(mControlPanel,c);\r\n\t}",
"private void initButton() {\r\n\t\tthis.panelButton = new JPanel();\r\n\t\tthis.panelButton.setLayout(new BoxLayout(this.panelButton,\r\n\t\t\t\tBoxLayout.LINE_AXIS));\r\n\t\tthis.modifyButton = new JButton(\"Modify\");\r\n\t\tthis.buttonSize(this.modifyButton);\r\n\t\tthis.deleteButton = new JButton(\"Delete\");\r\n\t\tthis.buttonSize(this.deleteButton);\r\n\t\tthis.cancelButton = new JButton(\"Cancel\");\r\n\t\tthis.buttonSize(this.cancelButton);\r\n\r\n\t\tthis.modifyButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.deleteButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.cancelButton.addActionListener(this.editWeaponControl);\r\n\r\n\t\tthis.panelButton.add(this.modifyButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.deleteButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.cancelButton);\r\n\t}",
"private DisplayPanel(){\r\n\t\t\t\tControlActionListenter cal = new ControlActionListenter();\r\n\t\t\t\tsetLayout(new BorderLayout());\r\n\t\t\t\tfinal JButton btn1 = new JButton(\"First\");\r\n\t\t\t\tbtn1.setFocusable(false);\r\n \t \tbtn1.addActionListener(cal);\r\n \t\t\tfinal JButton btn2 = new JButton(\"Next\");\r\n \t\t\tbtn2.addActionListener(cal);\r\n \t\t\t\tfinal JButton btn3 = new JButton(\"Previous\");\r\n \t\t \tbtn3.addActionListener(cal);\r\n \t\t final JButton btn4 = new JButton(\"Last\");\r\n \t\tbtn4.addActionListener(cal);\r\n \t\tbtn2.setFocusable(false);\r\n \t\tbtn3.setFocusable(false);\r\n \t\tbtn4.setFocusable(false);\r\n \t\t \tJPanel controlButtons = new JPanel(new GridLayout(2,2,5,5));\r\n \t\t \tcontrolButtons.add(btn3);\r\n \t\t \tcontrolButtons.add(btn2);\r\n \t\t \tcontrolButtons.add(btn1);\r\n \t\tcontrolButtons.add(btn4);\r\n \t\tcontrolButtons.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n \t\tadd(controlButtons, BorderLayout.PAGE_END);\r\n\t\t\t}",
"private void setupButtons() {\n\t\tsetupCreateCourse();\n\t\tsetupRemoveCourse();\n\t\tsetupCreateOffering();\n\t\tsetupRemoveOffering();\n\t\tsetupAddPreReq();\n\t\tsetupRemovePreReq();\n\t\tsetupBack();\n\t}",
"private void createButtonsForPanel(JPanel queueButtonPanel) {\n JButton playbutton = new JButton(\"Play\");\n JButton addsongbutton = new JButton(\"Add song\");\n playButtonActionListener(playbutton);\n addSongButtonActionListener(addsongbutton);\n queueButtonPanel.add(playbutton);\n queueButtonPanel.add(addsongbutton);\n }",
"private void addButtonsToButtonPanel() {\n // The button to change the login accounts password\n changePasswordButton = new JButton(\"Change Password\");\n changePasswordButton.setPreferredSize(new Dimension(150, 45));\n changePasswordButton.addActionListener(this);\n changePasswordButton.setToolTipText(\"<html> Click this button to change the login accounts <b> password</b>. </html>\");\n changePasswordButton.setIcon(new ImageIcon(\"images/icons/bullet_edit.png\"));\n \n // Adds the change login accounts password to the button panel\n buttonPanel.add(changePasswordButton);\n \n \n // The button to change the login accounts security question and answer\n changeSecurityQ = new JButton(\"Change Security Question & Answer\");\n changeSecurityQ.setPreferredSize(new Dimension(250, 45));\n changeSecurityQ.addActionListener(this);\n changeSecurityQ.setToolTipText(\"<html> Click this button to change the login accounts <b> security question & answer</b>. </html>\");\n changeSecurityQ.setIcon(new ImageIcon(\"images/icons/bullet_edit.png\"));\n \n // Adds the change login accounts security question and answer to the button panel\n buttonPanel.add(changeSecurityQ);\n \n \n // The button to change the login accounts security question and answer\n cancelButton = new JButton(\"Cancel editting\");\n cancelButton.setPreferredSize(new Dimension(150, 45));\n cancelButton.addActionListener(this);\n cancelButton.setToolTipText(\"<html> Click this button to <b> cancel</b> the editing of the login account. </html>\");\n cancelButton.setIcon(new ImageIcon(\"images/icons/cancel.png\"));\n \n // Adds the change login accounts security question and answer to the button panel\n buttonPanel.add(cancelButton);\n \n // Updates the UI of the button panel\n buttonPanel.updateUI();\n }",
"private void populateControlPanel() {\n \n ControlListener control = new ControlListener();\n startStopButton = new JButton(\"Start/Stop\");\n startStopButton.addActionListener(control);\n \n saveButton = new JButton(\"Save\");\n saveButton.addActionListener(control);\n \n loadButton = new JButton(\"Load\");\n loadButton.addActionListener(control);\n \n resetButton = new JButton(\"Reset\");\n resetButton.addActionListener(control);\n \n add(startStopButton);\n add(saveButton);\n add(loadButton);\n add(resetButton);\n }",
"private void createpanel4() {\r\n\t\tpanels[3].setLayout(new FlowLayout(FlowLayout.CENTER, 20, 0));\r\n\r\n\t\texecute = new JButton(\"Login\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\texecute.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\texecute.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\texecute.setForeground(Color.BLACK);\r\n\t\texecute.setBorderPainted(true);\r\n\t\texecute.setContentAreaFilled(false);\r\n\t\texecute.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcancel = new JButton(\"Cancel\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcancel.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcancel.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcancel.setForeground(Color.BLACK);\r\n\t\tcancel.setBorderPainted(true);\r\n\t\tcancel.setContentAreaFilled(false);\r\n\t\tcancel.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcreateAccount = new JButton(\"New Account\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcreateAccount.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcreateAccount.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcreateAccount.setForeground(Color.BLACK);\r\n\t\tcreateAccount.setBorderPainted(true);\r\n\t\tcreateAccount.setContentAreaFilled(false);\r\n\t\tcreateAccount.setFont(customFont.deriveFont(10f));\r\n\r\n\t\tcancel.setPreferredSize(new Dimension(120, 30));\r\n\t\tcreateAccount.setPreferredSize(new Dimension(120, 30));\r\n\t\texecute.setPreferredSize(new Dimension(120, 30));\r\n\r\n\t\tpanels[3].add(execute);\r\n\t\tpanels[3].add(createAccount);\r\n\t\tpanels[3].add(cancel);\r\n\t\tpanels[3].setOpaque(false);\r\n\t\tallComponents.add(panels[3]);\r\n\t\tthis.backPanel.add(allComponents);\r\n\t\tthis.getContentPane().add(backPanel);\r\n\t\tpanels[3].revalidate();\r\n\r\n\t\tcreateAccount.addMouseListener(\r\n\t\t\t\tnew LoginListener(createAccount, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\tcancel.addMouseListener(new LoginListener(cancel, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\texecute.addMouseListener(\r\n\t\t\t\tnew LoginListener(execute, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t}",
"private void createActionsPanel() {\n DefaultActionGroup group = new DefaultActionGroup();\n group.add(new CloseAction());\n ActionManager actionManager = ActionManager.getInstance();\n JComponent actionsToolbar = actionManager\n .createActionToolbar(ActionPlaces.CODE_INSPECTION, group, false)\n .getComponent();\n JPanel actionsPanel = new JPanel(new BorderLayout());\n actionsPanel.add(actionsToolbar, BorderLayout.WEST);\n add(actionsPanel, BorderLayout.WEST);\n }",
"private void initBoardPanel()\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n for(int j = 0; j < 3; j++)\r\n {\r\n buttons[i][j] = new JButton(\" \");\r\n buttons[i][j].addActionListener(bh);\r\n buttons[i][j].setEnabled(false);\r\n boardpanel.add(buttons[i][j]);\r\n }\r\n }\r\n }",
"private void buttonInit(){\n for(int i=0; i < 3; i++){\n choice[i] = new JButton();\n\n }\n choice[0].setText(\"10x10 / 8 bombs\");\n choice[0].setBackground(new Color(86, 160, 189));\n\n\n choice[0].addActionListener(l-> makeGamePanel(10, 8));\n\n choice[1].setText(\"15x15 / 30 bombs\");\n choice[1].setBackground(new Color(238, 160, 160));\n\n\n choice[1].addActionListener(l-> makeGamePanel(15,30));\n\n choice[2].setText(\"24x24 / 70 bombs\");\n choice[2].setBackground(new Color(253, 230, 122));\n choice[2].setFont(new Font(Font.MONOSPACED, Font.BOLD, 30));\n choice[2].setForeground(new Color(45, 68, 73));\n\n choice[2].addActionListener(l-> makeGamePanel(24,70));\n\n this.add(choice[0], BorderLayout.LINE_START); this.add(choice[1], BorderLayout.LINE_END); this.add(choice[2], BorderLayout.CENTER);\n }",
"public void createButtons() {\n\t\tbutton1 = new JButton(\"Button1\");\n\t\tbutton2 = new JButton(\"Button2\");\n\t\tbutton3 = new JButton(\"Button3\");\n\t\tbutton4 = new JButton(\"Button4\");\n\t\tbutton5 = new JButton(\"Button5\");\n\t}",
"public void createButtons() {\n\n addRow = new JButton(\"Add row\");\n add(addRow);\n\n deleteRow = new JButton(\"Delete row\");\n add(deleteRow);\n }",
"private void buildButtonPanel() // buildButtonPanel method start\n\t{\n\t\tsubmit = new JButton(\"Submit\");\n\t\treset = new JButton(\"Reset\");\n\t\t\n\t\tbuttonPanel.add(reset);\n\t\tbuttonPanel.add(submit);\n\t\t\n\t\tsubmit.addActionListener(new SubmitHandler());\n\t\treset.addActionListener(new ResetHandler());\n\t}",
"public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void createOperationsPanel() {\n\t\toperationsPanel = new JPanel(new GridLayout(5, 1));\n\n\t\tspanningTreeButton = new JButton(\"Árvore de cobertura\");\n\t\tspanningTreeButton.addActionListener(new SpanningTreeHandler());\n\n\t\tblockingStatesButton = new JButton(\"Estados bloqueantes\");\n\t\tblockingStatesButton.addActionListener(new BlockingStatesHandler());\n\n\t\tnonLimitedStatesButton = new JButton(\"Estados não-limitados\");\n\t\tnonLimitedStatesButton.addActionListener(new NonLimitedStatesHandler());\n\n\t\tnetworkConservationButton = new JButton(\"Conservação da rede\");\n\t\tnetworkConservationButton.addActionListener(new NetworkConservationHandler());\n\n\t\treachabelStateButton = new JButton(\"Estado alcançável\");\n\t\treachabelStateButton.addActionListener(new ReachableStateHandler());\n\n\t\toperationsPanel.add(spanningTreeButton);\n\t\toperationsPanel.add(blockingStatesButton);\n\t\toperationsPanel.add(nonLimitedStatesButton);\n\t\toperationsPanel.add(networkConservationButton);\n\t\toperationsPanel.add(reachabelStateButton);\n\n\t\tthis.add(operationsPanel, BorderLayout.WEST);\n\t}",
"private void createButtons() {\n Button helpSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -5797923866320649518L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateToHelp();\n }\n });\n\n// Button skillSettingsButton = new Button(\"\",\n// new Button.ClickListener() {\n// private static final long serialVersionUID = 7147554466396214893L;\n//\n// @Override\n// public void buttonClick(ClickEvent event) {\n// settingsPresenter.navigateToSkills();\n// }\n// });\n// skillSettingsButton.addStyleName(\"icon-cog\");\n\n Button medicSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = 7147554466396214893L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateToMedic();\n }\n });\n\n\n Button logoutButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -1096188732209266611L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateBack();\n }\n });\n logoutButton.addStyleName(\"default\");\n\n // Adding and aligning the 3 Buttons.\n //Setting a Description for the buttons which is displayed when flying over the button\n super.verticalNavigation.addComponent(helpSettingsButton);\n super.verticalNavigation.setComponentAlignment(helpSettingsButton, Alignment.MIDDLE_CENTER);\n helpSettingsButton.setDescription(\"Set the Help options for the Patient\");\n helpSettingsButton.setIcon(new ThemeResource(\"img/contacgg.png\"), BUTTON_HELP_SETTINGS);\n helpSettingsButton.setWidth(BUTTON_WIDTH);\n helpSettingsButton.setHeight(BUTTON_HEIGHT);\n\n super.verticalNavigation.addComponent(medicSettingsButton);\n super.verticalNavigation.setComponentAlignment(medicSettingsButton, Alignment.MIDDLE_CENTER);\n medicSettingsButton.setDescription(\"Set the Medication options for the Patient\");\n medicSettingsButton.setIcon(new ThemeResource(\"img/medicine-icon-cog.png\"),BUTTON_MEDIC_SETTINGS);\n medicSettingsButton.setWidth(BUTTON_WIDTH);\n medicSettingsButton.setHeight(BUTTON_HEIGHT);\n\n// addComponent(skillSettingsButton);\n// setComponentAlignment(skillSettingsButton, Alignment.MIDDLE_CENTER);\n// skillSettingsButton.setDescription(\"Set the Skill options for the Patient\");\n// skillSettingsButton.setIcon(new ThemeResource(\"img/skill2-icon-cog.png\"), BUTTON_SKILL_SETTINGS);\n// skillSettingsButton.setWidth(BUTTON_WIDTH);\n// skillSettingsButton.setHeight(BUTTON_HEIGHT);\n\n logoutButton.setWidth(BUTTON_WIDTH);\n super.verticalNavigation.addComponent(logoutButton);\n super.verticalNavigation.setComponentAlignment(logoutButton, Alignment.MIDDLE_CENTER);\n logoutButton.setDescription(\"You will be logged out\");\n logoutButton.setIcon(new ThemeResource(\"img/logout.png\"), BUTTON_LOGOUT);\n logoutButton.setWidth(BUTTON_WIDTH);\n logoutButton.setHeight(BUTTON_HEIGHT);\n\n }",
"private void setButtons()\n\t{\n\t\tstartSim = new JButton(\"Start Sim\");\n\t\tstartSim.addActionListener(this);\n\t\tpauseSim = new JButton(\"Pause Sim\");\n\t\tpauseSim.addActionListener(this);\n\t\taddEat = new JButton(\"Add Eatery\");\n\t\taddEat.addActionListener(this);\n\t\tsubEat = new JButton(\"Subtract Eatery\");\n\t\tsubEat.addActionListener(this);\n\t\taddCash = new JButton(\"Add Cashier\");\n\t\taddCash.addActionListener(this);\n\t\tsubCash = new JButton(\"Subtract Cashier\");\n\t\tsubCash.addActionListener(this);\n\t}",
"void createButtons(Container cp) {\r\n JPanel pn4 = new JPanel(); // create a panel\r\n pn4.setLayout(new FlowLayout(FlowLayout.LEFT)); // set the layout\r\n for (int i=0; i<strClEx.length; i++) {\r\n // repeat for the number of the buttons\r\n bt[i] = new JButton(strClEx[i]); // create a button\r\n bt[i].addActionListener(this); // add the action listener to the button\r\n pn4.add(bt[i]); // add the button to the panel\r\n }\r\n cp.add(pn4); // add the panel to the container\r\n }",
"protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }",
"ButtonPanel() {\n setLayout(new GridLayout(0,3));\n setPreferredSize(new Dimension(1000,100));\n setVisible(true);\n setMaximumSize(new Dimension(1000,250));\n reservationButton = new JButton(\"Reservation View\");\n bookingButton = new JButton(\"Booking View\");\n searchButton = new JButton(\"Search View\");\n add(reservationButton);\n add(bookingButton);\n add(searchButton);\n \n }",
"private Component getButtonPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"getButtonPanel\");\r\n\r\n JButton btnOK = new JButton(\"OK\");\r\n\r\n btnOK.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(@SuppressWarnings(\"unused\")\r\n final ActionEvent e) {\r\n updateMsdtFilterMap();\r\n\t\t\t\tclosePanel();\r\n }\r\n });\r\n\r\n JButton btnApply = new JButton(\"Apply\");\r\n\r\n btnApply.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(@SuppressWarnings(\"unused\")\r\n final ActionEvent e) {\r\n updateMsdtFilterMap();\r\n }\r\n });\r\n\r\n JButton btnCancel = new JButton(\"Cancel\");\r\n\r\n btnCancel.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(@SuppressWarnings(\"unused\")\r\n final ActionEvent e) {\r\n\t\t\t\tclosePanel();\r\n }\r\n });\r\n\r\n JButton btnClearAll = new JButton(\"Clear all\");\r\n\r\n btnClearAll.addActionListener(new ActionListener() {\r\n\r\n @SuppressWarnings( {\"synthetic-access\", \"unqualified-field-access\"})\r\n public void actionPerformed(@SuppressWarnings(\"unused\")\r\n final ActionEvent e) {\r\n for (JCheckBox chkMsdt : chkMsdtSelection.values()) {\r\n chkMsdt.setSelected(false);\r\n }\r\n\r\n }\r\n });\r\n\r\n JButton btnRestore = new JButton(\"Restore\");\r\n\r\n btnRestore.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(@SuppressWarnings(\"unused\")\r\n final ActionEvent e) {\r\n refreshCheckBoxes();\r\n\r\n }\r\n\r\n });\r\n\r\n JPanel pnlButtons = new JPanel();\r\n\r\n pnlButtons.add(btnRestore);\r\n\r\n pnlButtons.add(btnClearAll);\r\n\r\n pnlButtons.add(btnCancel);\r\n\r\n pnlButtons.add(btnApply);\r\n\r\n\t\tpnlButtons.add(btnOK);\r\n\r\n logger.exiting(this.getClass().getName(), \"getButtonPanel\", pnlButtons);\r\n\r\n return pnlButtons;\r\n }",
"private void setupButtonPanel() {\n\n Dimension btnSize = new Dimension(100, 50);\n\n exitButton = new JButton(\"Exit\");\n playAgainButton = new JButton(\"Play Again\");\n\n exitButton.setPreferredSize(btnSize);\n playAgainButton.setPreferredSize(btnSize);\n\n buttonPanel.add(playAgainButton);\n buttonPanel.add(exitButton);\n fullPanel.add(buttonPanel, BorderLayout.SOUTH);\n\n playAgainButton.addActionListener(actionEvent -> {\n GameOver.this.dispose();\n new MainScreen();\n });\n exitButton.addActionListener(actionEvent -> System.exit(0));\n }",
"private void setupActionButtons() {\n setupLikeActionButton();\n setupRepostActionButton();\n setupMoreActionButton();\n }",
"private void setButtons(JPanel menuContent) {\r\n\t \t \r\n \tJButton button_start = new JButton(start);\r\n \tbutton_start.setText(\"button_start\");\r\n\t \tbutton_start.setLocation(450, 300);\r\n\t\tbutton_start.setSize(405, 50);\r\n\t\tbutton_start.setBorderPainted(false);\r\n\t\tbutton_start.setFocusPainted(false);\r\n\t\tbutton_start.setContentAreaFilled(false);\r\n\t\tbutton_start.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tbutton_start.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t \t \r\n\t \tJButton button_howto = new JButton(howto);\r\n\t \tbutton_howto.setText(\"button_howto\");\r\n\t \tbutton_howto.setLocation(450, 360);\r\n\t \tbutton_howto.setSize(405, 50);\r\n\t \tbutton_howto.setBorderPainted(false);\r\n\t \tbutton_howto.setFocusPainted(false);\r\n\t \tbutton_howto.setContentAreaFilled(false);\r\n\t \tbutton_howto.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t \tbutton_howto.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}\r\n\t\t});\r\n\t \t\r\n\t \tJButton button_options = new JButton(options);\r\n\t \tbutton_options.setText(\"button_options\");\r\n\t \tbutton_options.setLocation(450, 420);\r\n\t \tbutton_options.setSize(405, 50);\r\n\t \tbutton_options.setBorderPainted(false);\r\n\t \tbutton_options.setFocusPainted(false);\r\n\t \tbutton_options.setContentAreaFilled(false);\r\n\t \tbutton_options.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t \tbutton_options.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t \tJButton button_lboards = new JButton(lboards);\r\n\t \tbutton_lboards.setText(\"button_lboards\");\r\n\t \tbutton_lboards.setLocation(450, 480);\r\n\t \tbutton_lboards.setSize(405, 50);\r\n\t \tbutton_lboards.setBorderPainted(false);\r\n\t \tbutton_lboards.setFocusPainted(false);\r\n\t \tbutton_lboards.setContentAreaFilled(false);\r\n\t \tbutton_lboards.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t \tbutton_lboards.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}\r\n\t\t});\r\n\t \t\r\n\t \tJButton button_exit = new JButton(exit);\r\n\t \tbutton_exit.setText(\"button_exit\");\r\n\t \tbutton_exit.setLocation(450, 540);\r\n\t \tbutton_exit.setSize(405, 50);\r\n\t \tbutton_exit.setBorderPainted(false);\r\n\t \tbutton_exit.setFocusPainted(false);\r\n\t \tbutton_exit.setContentAreaFilled(false);\r\n\t \tbutton_exit.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t \tbutton_exit.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}\r\n\t\t});\r\n\t \t\r\n\t \t//adds the buttons to the JPanel\r\n\t menuContent.add(button_start);\r\n\t menuContent.add(button_howto);\r\n\t menuContent.add(button_options);\r\n\t menuContent.add(button_lboards);\r\n\t menuContent.add(button_exit);\r\n\t\t\r\n\t}",
"public void createButtonGrid() {\n\t\tbuttonPanel.setOpaque(false);\n\t\t\n\t\t// designs array of buttons\n\t\tfor (int counter = 1; counter <= 20; counter++) {\n\t\t\tbuttonArray[counter] = new JButton();\n\t\t\tbuttonArray[counter].setOpaque(false);\n\t\t\tbuttonArray[counter].setVisible(true);\n\t\t\tbuttonArray[counter].setBorderPainted(false);\n\t\t\tbuttonArray[counter].setHorizontalTextPosition(JButton.CENTER);\n\t\t\tbuttonArray[counter].setVerticalTextPosition(SwingConstants.CENTER);\n\t\t\tbuttonArray[counter].setFont(new Font(\"Courier\", Font.PLAIN, 15));\n\t\t\tbuttonArray[counter].setText(\"<html><font color = white>\" + Integer.toString(counter) + \"</font></html>\");\n\t\t\t// add action listener to each button\n\t\t\tbuttonArray[counter].addActionListener(eventsMain);\n\t\t\t// add each button to the container\n\t\t\tbuttonPanel.add(buttonArray[counter]);\n\t\t}\n\t\t\n\t\t// set colour for ach row of buttons\n\t\tfor (int counter = 1; counter <= 20; counter++) {\n\t\t\tif (counter >= 1 && counter < 6) {\n\t\t\t\tbuttonArray[counter].setIcon(btnBlue);\n\t\t\t} else if (counter > 5 && counter < 11) {\n\t\t\t\tbuttonArray[counter].setIcon(btnGreen);\n\t\t\t} else if (counter > 10 && counter < 16) {\n\t\t\t\tbuttonArray[counter].setIcon(btnRed);\n\t\t\t} else if (counter > 15 && counter < 21) {\n\t\t\t\tbuttonArray[counter].setIcon(btnGray);\n\t\t\t}\n\t\t}\n\t}",
"private JComponent getButtonPanel() {\n JPanel buttonPanel = new JPanel();\n // Open\n OpenAction openAction = new OpenAction();\n buttonPanel.add(new JButton(openAction));\n // Save\n SaveAction saveAction = new SaveAction();\n buttonPanel.add(new JButton(saveAction));\n // Save as\n SaveAsAction saveAsAction = new SaveAsAction(saveAction);\n buttonPanel.add(new JButton(saveAsAction));\n return buttonPanel;\n }",
"private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }",
"private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }",
"private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}",
"public void addPanelActionListeners() {\n\n iconBase = new IconFactory();\n\n JButton[] iconsArray = LeftPanel.getIconsArray();\n for (JButton button : iconsArray) {\n button.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n super.mouseClicked(e);\n selectedIconText = button.getText();\n }\n });\n\n button.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseReleased(MouseEvent e) {\n super.mouseReleased(e);\n int tabIndex = jTabbedPane.getSelectedIndex();\n WorkingPanel tab = (WorkingPanel) jTabbedPane.getComponent(tabIndex);\n if (tab.getMousePosition() != null) {\n addIconToTab(tab, button.getText());\n tab.repaint();\n }\n\n }\n });\n\n button.addMouseMotionListener(new MouseAdapter() {\n @Override\n public void mouseDragged(MouseEvent e) {\n super.mouseDragged(e);\n selectedIconText = button.getText();\n\n int tabIndex = jTabbedPane.getSelectedIndex();\n WorkingPanel tab = (WorkingPanel) jTabbedPane.getComponent(tabIndex);\n\n icon = iconBase.getIconObject(button.getText(), tab);\n if (icon != null) {\n icon.draw(getGraphics(), (int) (MouseInfo.getPointerInfo().getLocation().getX() - button.getWidth() / 3),\n (int) (MouseInfo.getPointerInfo().getLocation().getY() - button.getHeight() / 3));\n }\n repaint();\n }\n });\n }\n }",
"@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }",
"private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }",
"private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }",
"public void setupWindowButtons(){\n focusPropertyButton(btnExitProgramPlannerPlanPane);\n focusPropertyButton(btnExitProgramPlannerShoppingListPane);\n focusPropertyButton(btnExitProgramPlannerCupboardPane);\n focusPropertyButton(btnMinimiseProgramPlannerPlanPlane);\n focusPropertyButton(btnMinimiseProgramPlannerShoppingListPane);\n focusPropertyButton(btnMinimiseProgramPlannerCupboardPane);\n focusPropertyButton(btnExitProgramMealsBrowsePane);\n focusPropertyButton(btnMinimiseProgramMealsBrowsePane);\n focusPropertyButton(btnExitProgramMealsAddPane);\n focusPropertyButton(btnMinimiseProgramMealsAddPane);\n focusPropertyButton(btnExitProgramIngredBrowse);\n focusPropertyButton(btnMinimiseProgramIngredBrowse);\n focusPropertyButton(btnExitProgramIngredAdd);\n focusPropertyButton(btnMinimiseProgramIngredAdd);\n\n }",
"private void preparePanel()\r\n\t{\r\n\t\t\r\n\t\tSystem.out.println(\"[INFO] <RADIOBUTTON_PANEL> Running preparePanel\"); // Debug\r\n\t\t\r\n\t\tthis.setLayout(new GridLayout(0,2)); // Infinite rows 2 columns\r\n\t\t\r\n\t\t// Create a button group for the radio buttons\r\n\t\tgroup = new ButtonGroup();\r\n\t\t\r\n\t\tfor (JRadioButton button : buttons) // Add each button to the array\r\n\t\t{\r\n\t\t\tthis.add(button);\r\n\t\t\tgroup.add(button); // Add the buttons to the button group\r\n\t\t}\r\n\t\t\r\n\t\t// Calculate the number of rows\r\n\t\tint numberOfRows = (buttons.length + 1)/2;\r\n\t\t\r\n\t\t// Make the panel the correct size, 40px per row\r\n\t\tthis.setPreferredSize(new Dimension(700,40*numberOfRows));\r\n\t\tthis.setMaximumSize(new Dimension(700,50*numberOfRows));\r\n\t}",
"public PizzaPalacePanel() \r\n\t{\t\t\r\n\t\tcustomer = new JButton (\"Order Form\");\r\n\t\tmanager = new JButton (\"Inventory Manger\");\r\n\t\tnewStock = new JButton (\"New Inventory\");\r\n\t\t\r\n\t\tadd (customer);\r\n\t\tadd (manager);\r\n\t\tadd (newStock);\r\n\r\n\t\tcustomer.addActionListener (buttonListener);\r\n\t\tmanager.addActionListener (buttonListener);\r\n\t\tnewStock.addActionListener (buttonListener);\r\n\t}",
"private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }",
"public MenuPanel(ActionListener addCreature1, ActionListener addCreature2,\n ActionListener addCreature3, ActionListener placePortal,\n String name, int winCondition) {\n\n setLayout(new GridLayout(9,0));\n setPreferredSize(new Dimension(200,700));\n Font f = new Font(\"Courier New\", Font.PLAIN, 15);\n Font f2 = new Font(\"Courier New\", Font.PLAIN, 25);\n this.winCondition = winCondition;\n JLabel mapName = new JLabel(name,SwingConstants.CENTER);\n mapName.setFont(f2);\n add(mapName);\n\n JButton button = new JButton();\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setFont(f);\n button.setText(\"<html><b>Speed Demon</b><br>Cost: \" +\n SpeedDemon.COST + \"<br>Speed: \"+SpeedDemon.SPEED+\"<br>HP: \"+\n SpeedDemon.MAXHEALTH+\"</html>\");\n button.setIcon(new ImageIcon(SpeedDemon.image));\n button.addActionListener(addCreature1);\n add(button);\n\n button = new JButton();\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setFont(f);\n button.setText(\"<html><b>Grunt</b><br>Cost: \" +\n Grunt.COST + \"<br>Speed: \"+Grunt.SPEED+\"<br>HP: \"+\n Grunt.MAXHEALTH+\"</html>\");\n button.setIcon(new ImageIcon(Grunt.image));\n button.addActionListener(addCreature2);\n add(button);\n\n button = new JButton();\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setFont(f);\n button.setText(\"<html><b>PortalusTotalus</b><br>Cost: \" +\n PortalusTotalus.COST + \"<br>Speed: \"+ PortalusTotalus.SPEED +\n \"<br>HP: \"+ PortalusTotalus.MAXHEALTH +\"</html>\");\n button.setIcon(new ImageIcon(PortalusTotalus.image));\n button.addActionListener(addCreature3);\n add(button);\n\n button = new JButton();\n button.setFont(f);\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setIcon(new ImageIcon(ImageLoader.getImageLoader().getImage(\n \"portal.png\")));\n button.setText(\"<html><b>Place Portal</b></html>\");\n button.addActionListener(placePortal);\n add(button);\n\n winProgressLabel = new JLabel(\"\",SwingConstants.LEFT);\n winProgressLabel.setFont(f);\n\n creditLabel = new JLabel(\"\",SwingConstants.LEFT);\n creditLabel.setFont(f);\n\n scoreLabel = new JLabel(\"\",SwingConstants.LEFT);\n scoreLabel.setFont(f);\n\n updateStats(0,0,0);\n add(winProgressLabel);\n add(creditLabel);\n add(scoreLabel);\n\n }",
"private void createButtons() {\n\t\tfor (int x = 0; x < buttons.length; x++)\n\t\t\tfor (int y = 0; y < buttons[x].length; y++) {\n\t\t\t\tif ((x % 2 == 0 && y % 2 == 0) || (x % 2 == 1 && y % 2 == 1))\n\t\t\t\t\tbuttons[x][y] = new DarkButton();\n\t\t\t\telse\n\t\t\t\t\tbuttons[x][y] = new LightButton();\n\n\t\t\t\tbuttonListener(x, y);\n\t\t\t}\n\t\t\t\n\t\t\tinitButtonIcons();\n\t}",
"private void $$$setupUI$$$() {\n myContentPanel = new JPanel();\n myContentPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n myContentPanel.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n myAcceptYoursButton = new JButton();\n myAcceptYoursButton.setEnabled(false);\n myAcceptYoursButton.setText(\"Accept Yours\");\n myAcceptYoursButton.setMnemonic('Y');\n myAcceptYoursButton.setDisplayedMnemonicIndex(7);\n panel1.add(myAcceptYoursButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n myAcceptTheirsButton = new JButton();\n myAcceptTheirsButton.setEnabled(false);\n myAcceptTheirsButton.setText(\"Accept Theirs\");\n myAcceptTheirsButton.setMnemonic('T');\n myAcceptTheirsButton.setDisplayedMnemonicIndex(7);\n panel1.add(myAcceptTheirsButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myMergeButton = new JButton();\n myMergeButton.setEnabled(false);\n myMergeButton.setText(\"Merge\");\n myMergeButton.setMnemonic('M');\n myMergeButton.setDisplayedMnemonicIndex(0);\n panel1.add(myMergeButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JBScrollPane jBScrollPane1 = new JBScrollPane();\n myContentPanel.add(jBScrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n myItemsTable = new JBTable();\n myItemsTable.putClientProperty(\"Table.isFileList\", Boolean.FALSE);\n jBScrollPane1.setViewportView(myItemsTable);\n }",
"private void addComponents(){\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.anchor = GridBagConstraints.WEST;\n constraints.insets = new Insets(5, 5, 5, 5);\n constraints.fill = GridBagConstraints.BOTH;\n \n // Add components to the panel\n // Note>> the constraints are applied to both panels\n constraints.gridx = 0;\n constraints.gridy = 0; \n subPanel1.add(onDo1, constraints); // Add button to pane 1\n\n constraints.gridx = 1;\n subPanel1.add(onDo2, constraints); // Add button to pane 1\n \n constraints.gridx = 0;\n constraints.gridy = 1; \n subPanel1.add(onDo3, constraints); // Add button to pane 1\n subPanel2.add(l1, constraints); // Add button to pane 2\n \n constraints.gridx = 1;\n constraints.gridy = 1;\n subPanel1.add(onDo4, constraints); // Add button to pane 1\n \n\n // Set border for sub panel 1 \n subPanel1.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createEtchedBorder(), \"Events\"));\n \n // Set border for sub panel 2 \n subPanel2.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createEtchedBorder(), \"Debug\"));\n }",
"public ButtonsPanel(final List<JButton> buttons) {\n super();\n this.buttons = buttons;\n\n init();\n }",
"private void initButtons() {\n\t\taddGoalkeeper = new JButton(\"+\");\n\t\taddGoalkeeper.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(0, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddDefence1 = new JButton(\"+\");\n\t\taddDefence1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(1, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddDefence2 = new JButton(\"+\");\n\t\taddDefence2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(2, e);\n\t\t\t}\n\t\t});\n\t\t\t\t\n\t\taddDefence3 = new JButton(\"+\");\n\t\taddDefence3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(3, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddDefence4 = new JButton(\"+\");\n\t\taddDefence4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(4, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddMiddle1 = new JButton(\"+\");\n\t\taddMiddle1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(5, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddMiddle2 = new JButton(\"+\");\n\t\taddMiddle2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(6, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddMiddle3 = new JButton(\"+\");\n\t\taddMiddle3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(7, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddMiddle4 = new JButton(\"+\");\n\t\taddMiddle4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(8, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddForward1 = new JButton(\"+\");\n\t\taddForward1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(9, e);\n\t\t\t}\n\t\t});\n\t\t\n\t\taddForward2 = new JButton(\"+\");\n\t\taddForward2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangePlayer(10, e);\n\t\t\t}\n\t\t});\n\t}",
"private JPanel initButtons() {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout(FlowLayout.CENTER, 3, 3));\n\t\tsigninButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tsigninButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// validate the credentials of the user being logged in \n\t\t\t\tif(ValidCredentials()){\n\t\t\t\t\t// if credentials are valid, initialize differnt panes\n\t\t\t\t\t// search , committee, update profile and logout tabs\n\t\t\t\t\tparentFrame.getContentPane().removeAll();\n\t\t\t\t\tparentFrame.getContentPane().revalidate();\n\t\t\t\t\tparentFrame.getContentPane().repaint();\n\t\t\t\t\tparentFrame.getContentPane().setLayout(new BorderLayout());\n\t\t\t\t\t\n\t\t\t\t\tJTabbedPane tabbedPane = new JTabbedPane();\n\t\t\t\t\ttabbedPane.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\t\t\t\ttabbedPane.addTab(\"Search\", new SearchUI(null));\n\t\t\t\t\ttabbedPane.addTab(\"Committee List\", new CommitteeListUI());\n\t\t\t\t\ttabbedPane.addTab(\"Update Profile\", new UpdateProfileUI());\n\t\t\t\t\t\n\t\t\t\t\ttabbedPane.add(\"Logout\", new LogoutUI());\n\t\t\t\t\tparentFrame.getContentPane().add(tabbedPane);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// if the credentials are invalid, pop up the following message window\n\t\t\t\t\tjOptionPane.showMessageDialog(LoginUI.this,\n\t\t\t\t\t\t\t\"Invalid username or password\",\n\t\t\t\t\t\t\t\"Login\",\n\t\t\t\t\t\t\tjOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t// reset username and password\n\t\t\t\t\tuserNameField.setText(\"\");\n\t\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tpanel.add(signinButton);\n\t\treturn panel;\n\t}",
"private void createBottomActionButtons() {\n Composite actionControlComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n actionControlComp.setLayout(gl);\n actionControlComp.setLayoutData(gd);\n\n Button okBtn = new Button(actionControlComp, SWT.PUSH);\n okBtn.setText(\" OK \");\n okBtn.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n if (verifySelection()) {\n close();\n }\n }\n });\n\n Button cancelBtn = new Button(actionControlComp, SWT.PUSH);\n cancelBtn.setText(\" Cancel \");\n cancelBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n close();\n }\n });\n }",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstField);\n\t}",
"public FinalActionButtons()\n {\n eliminateButton = new JButton( \"Eliminate a Candidate\" );\n eliminateButton.setPreferredSize( new Dimension( 300, 100 ) );\n eliminateButton.addActionListener( this );\n add( eliminateButton );\n eliminateButton.setFont( new Font( \"Helvetica\", Font.PLAIN, 20 ) );\n\n doneButton = new JButton( \"Get Statistics\" );\n doneButton.setPreferredSize( new Dimension( 300, 100 ) );\n doneButton.addActionListener( this );\n add( doneButton );\n doneButton.setFont( new Font( \"Helvetica\", Font.PLAIN, 20 ) );\n }",
"private JPanel createAddAndRemoveButtons() {\n JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEADING));\n panel.add(createAddResourceButton());\n panel.add(createRemoveResourceButton());\n\n return panel;\n }",
"private JPanel createButtonPanel()\n\t{\n\t\tfinal String OK_COMMAND = \"Ok\";\n\t\tfinal String CANCEL_COMMAND = \"Cancel\";\n\t\tfinal String APPLY_COMMAND = \"Apply\";\n\n\t\tJPanel buttonPanel = new JPanel();\n\t\tbuttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tActionListener buttonListener = new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tif (e.getActionCommand().equals(OK_COMMAND))\n\t\t\t\t{\n\t\t\t\t\tStyleEditorFrame.this.setVisible(false);\n\n\t\t\t\t\tguiController.displayProgressWhileRebuilding(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStyleEditorFrame.this.applyCurrentStyle();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tStyleEditorFrame.this.getCurrentStyleTree().updateTree();\n\t\t\t\t}\n\t\t\t\telse if (e.getActionCommand().equals(CANCEL_COMMAND))\n\t\t\t\t{\n\t\t\t\t\tStyleEditorFrame.this.setVisible(false);\n\t\t\t\t\tStyleEditorFrame.this.getCurrentStyleTree().updateTree();\n\t\t\t\t}\n\t\t\t\telse if (e.getActionCommand().equals(APPLY_COMMAND))\n\t\t\t\t{\n\t\t\t\t\tguiController.displayProgressWhileRebuilding(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStyleEditorFrame.this.applyCurrentStyle();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tStyleEditorFrame.this.getCurrentStyleTree().updateTree();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t{\n\t\t\tJButton applyButton = new JButton(\"Apply\");\n\t\t\tapplyButton.setActionCommand(APPLY_COMMAND);\n\t\t\tbuttonPanel.add(applyButton);\n\t\t\tapplyButton.addActionListener(buttonListener);\n\t\t}\n\t\t{\n\t\t\tJButton okButton = new JButton(\"Ok\");\n\t\t\tokButton.setActionCommand(OK_COMMAND);\n\t\t\tbuttonPanel.add(okButton);\n\t\t\tokButton.addActionListener(buttonListener);\n\t\t}\n\t\t{\n\t\t\tJButton cancelButton = new JButton(\"Cancel\");\n\t\t\tcancelButton.setActionCommand(CANCEL_COMMAND);\n\t\t\tbuttonPanel.add(cancelButton);\n\t\t\tcancelButton.addActionListener(buttonListener);\n\t\t}\n\n\t\treturn buttonPanel;\n\t}",
"public ButtonPanel(MainPanel m) {\n\n\t\t// Send a reference to the Main Panel\n\t\t// to all of the buttons.\n\n\t\tstep = new StepButton(m);\n\t\tslow = new RunSlowButton(m);\n\t\tfast = new RunFastButton(m);\n\t\tstop = new StopButton(m);\n\t\tlower = new LowerHalfButton(m);\n\t\tupper = new UpperHalfButton(m);\n\t\trepeat = new RepeatButton(m);\n\t\tclear = new ResetButton(m);\n\t\tsetLayout(new FlowLayout());\n\n\t\t// Add all of the buttons\n\n\t\tadd(step);\n\t\tadd(slow);\n\t\tadd(fast);\n\t\tadd(stop);\n\t\tadd(lower);\n\t\tadd(upper);\n\t\tadd(repeat);\n\t\tadd(clear);\n\t}",
"private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }",
"public ZeePanel(Spel spel) {\n this.spel = spel;\n buttons = new JButton[16][16];\n setLayout(new GridLayout(16,16,5,5));\n for (int rij=0;rij<16;rij++)\n {\n for (int kolom=0;kolom<16;kolom++)\n {\n buttons[rij][kolom] = new JButton();\n buttons[rij][kolom].setBackground(Color.CYAN);\n add(buttons[rij][kolom]);\n buttons[rij][kolom].addActionListener(this);\n buttons[rij][kolom].setActionCommand(rij + \",\" + kolom);\n }\n }\n }",
"private void addButtonsToPanel() {\n\t\tselectionPanel.add(rock, BorderLayout.WEST);\n\t\tselectionPanel.add(paper, BorderLayout.CENTER);\n\t\tselectionPanel.add(scissors, BorderLayout.EAST);\n\n\t\t// Adds a border with given text\n\t\tselectionPanel.setBorder(BorderFactory\n\t\t\t\t.createTitledBorder(\"Choose wisely. . .\"));\n\t}",
"public void initPanel(){\r\n\t \r\n\t\t//Titre\r\n\t\tlabel.setFont(new Font(\"Verdana\",1,40));\r\n\t label.setForeground(Color.black);\r\n\t label.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label.setBounds(110,0,575,50);\r\n\t\tthis.panel.setLayout(null);\t \r\n\t this.panel.add(label);\r\n\t \r\n\t //dc\r\n\t this.panel.add(label1, BorderLayout.CENTER);\r\n\t label1.setFont(new Font(\"Verdana\",1,40));\r\n\t label1.setForeground(Color.black);\r\n\t label1.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label1.setBounds(150,500,100,50);\r\n\t //ab\r\n\t this.panel.add(label2);\r\n\t label2.setFont(new Font(\"Verdana\",1,40));\r\n\t label2.setForeground(Color.black);\r\n\t label2.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label2.setBounds(550,500,100,50);\r\n\t //Button dc\r\n\t\tdc.setBounds(50,200,300,250);\r\n\t\tthis.panel.add(dc);\r\n\t\tdc.addActionListener(this);\r\n\t\t//Button ab\r\n\t\tab.setBounds(450,200,300,250);\r\n\t\tthis.panel.add(ab);\r\n\t\tab.addActionListener(this);\r\n\t\t\r\n\t\tthis.panel.add(label3);\r\n\t label3.setFont(new Font(\"Verdana\",1,20));\r\n\t label3.setForeground(Color.black);\r\n\t label3.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label3.setBounds(90,575,220,30);\r\n\t \r\n\t this.panel.add(label4);\r\n\t label4.setFont(new Font(\"Verdana\",1,20));\r\n\t label4.setForeground(Color.black);\r\n\t label4.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label4.setBounds(490,575,220,30);\r\n\t}",
"private void initializeButton(JPanel myPanel) {\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n JButton myButton = new JButton();\n buttonGrid[row][col] = myButton;\n setButtonIcon(row,col);\n if ((row + col) % 2 == 0)\n myButton.setBackground(Color.WHITE);\n else\n myButton.setBackground(Color.GRAY);\n myButton.setOpaque(true);\n myButton.setBorderPainted(false);\n myButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n pieceButtonClicked(e);\n }\n });\n myPanel.add(myButton);\n }\n }\n }",
"private void addButtons() {\r\n\t\troot.getChildren().add(button); // creating the Easy button \r\n\t\tb1 = new Button(\"Easy\");\r\n\t\tb1.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Easy\";\r\n\t\t\t}\r\n\t\t});\r\n\t\troot.getChildren().add(b1); // creating the Normal button\r\n\t\tb2 = new Button(\"Normal\");\r\n\t\tb2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Normal\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb2.setLayoutX(50);\r\n\t\troot.getChildren().add(b2); // creating the Hard button\r\n\t\tb3 = new Button(\"Hard\");\r\n\t\tb3.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Hard\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb3.setLayoutX(115);\r\n\t\troot.getChildren().add(b3);\r\n\t}",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n servicesButton = new JButton();\n servicesButton.setText(\"Services management\");\n panel1.add(servicesButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n surveysManagementButton = new JButton();\n surveysManagementButton.setText(\"Surveys management\");\n panel1.add(surveysManagementButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n connectingAndResultsButton = new JButton();\n connectingAndResultsButton.setText(\"Conecting surveys to services\");\n panel1.add(connectingAndResultsButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Choose option below\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n results = new JButton();\n results.setText(\"Browse the results\");\n panel1.add(results, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}",
"public void createComponents(JComponent panel) {\r\n\t\t// Array display\r\n\t\tpanel.setLayout(new FlowLayout());\r\n\t\tpanel1.setLayout(new BorderLayout());\r\n\t\tcanvas.addMouseListener(aml);\r\n\t\tcanvas.addMouseMotionListener(aml);\r\n\t\tpanel1.add(canvas);\r\n\t\tpanel1.add(instr, BorderLayout.NORTH);\r\n\t\t\r\n\t\tpanel.add(panel1);\r\n\r\n\t\t// Controls\r\n\t\tpanel2.setLayout(new GridLayout(5, 2));\t\r\n\t\t\r\n\t\tJButton createArrayButton = new JButton(\"Create Customized Array\");\r\n\t\tpanel2.add(createArrayButton);\r\n\t\tcreateArrayButton.addActionListener(new createArrayListener());\r\n\r\n\t\tJButton changeValueButton = new JButton(\"Change Element Value\");\r\n\t\tpanel2.add(changeValueButton);\r\n\t\tchangeValueButton.addActionListener(new changeValueListener());\r\n\r\n\t\tJButton accessButton = new JButton(\"Access Element\");\r\n\t\tpanel2.add(accessButton);\r\n\t\taccessButton.addActionListener(new accessListener());\r\n\t\t\r\n\t\tJButton findButton = new JButton(\"Search Element\");\r\n\t\tpanel2.add(findButton);\r\n\t\tfindButton.addActionListener(new findListener());\r\n\t\t\r\n\t\tJButton clearButton = new JButton(\"Clear Previous Content\");\r\n\t\tpanel2.add(clearButton);\r\n\t\tclearButton.addActionListener(new ClearListener());\t\r\n\t\t\r\n\t\tpanel.add(panel2);\t\r\n\t}",
"private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }",
"private void numbersPanel(JPanel panel_Numbers) {\n\t\tJButton btnNumButton = new JButton(\"0\");\n\t\tbtnNumButton.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbtnNumButton.setBackground(Color.LIGHT_GRAY);\n\t\tbtnNumButton.setBounds(0, 0, 52, 35);\n\t\tpanel_Numbers.add(btnNumButton);\n\t\t\n\t\tJButton button = new JButton(\"1\");\n\t\tbutton.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton.setBackground(Color.LIGHT_GRAY);\n\t\tbutton.setBounds(52, 0, 52, 35);\n\t\tpanel_Numbers.add(button);\n\t\t\n\t\tJButton button_1 = new JButton(\"2\");\n\t\tbutton_1.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_1.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_1.setBounds(105, 0, 52, 35);\n\t\tpanel_Numbers.add(button_1);\n\t\t\n\t\tJButton button_2 = new JButton(\"3\");\n\t\tbutton_2.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_2.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_2.setBounds(157, 0, 52, 35);\n\t\tpanel_Numbers.add(button_2);\n\t\t\n\t\tJButton button_3 = new JButton(\"4\");\n\t\tbutton_3.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_3.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_3.setBounds(210, 0, 52, 35);\n\t\tpanel_Numbers.add(button_3);\n\t\t\n\t\tJButton button_4 = new JButton(\"5\");\n\t\tbutton_4.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_4.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_4.setBounds(263, 0, 52, 35);\n\t\tpanel_Numbers.add(button_4);\n\t\t\n\t\tJButton button_5 = new JButton(\"6\");\n\t\tbutton_5.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_5.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_5.setBounds(316, 0, 52, 35);\n\t\tpanel_Numbers.add(button_5);\n\t\t\n\t\tJButton button_6 = new JButton(\"7\");\n\t\tbutton_6.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_6.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_6.setBounds(0, 37, 52, 35);\n\t\tpanel_Numbers.add(button_6);\n\t\t\n\t\tJButton button_7 = new JButton(\"8\");\n\t\tbutton_7.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_7.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_7.setBounds(52, 37, 52, 35);\n\t\tpanel_Numbers.add(button_7);\n\t\t\n\t\tJButton button_8 = new JButton(\"9\");\n\t\tbutton_8.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_8.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_8.setBounds(105, 37, 52, 35);\n\t\tpanel_Numbers.add(button_8);\n\t\t\n\t\tJButton button_9 = new JButton(\"10\");\n\t\tbutton_9.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_9.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_9.setBounds(157, 37, 52, 35);\n\t\tpanel_Numbers.add(button_9);\n\t\t\n\t\tJButton button_10 = new JButton(\"11\");\n\t\tbutton_10.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_10.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_10.setBounds(210, 37, 52, 35);\n\t\tpanel_Numbers.add(button_10);\n\t\t\n\t\tJButton button_11 = new JButton(\"12\");\n\t\tbutton_11.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_11.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_11.setBounds(263, 37, 52, 35);\n\t\tpanel_Numbers.add(button_11);\n\t\t\n\t\tJButton button_12 = new JButton(\"13\");\n\t\tbutton_12.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_12.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_12.setBounds(316, 37, 52, 35);\n\t\tpanel_Numbers.add(button_12);\n\t\t\n\t\tJButton button_13 = new JButton(\"14\");\n\t\tbutton_13.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_13.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_13.setBounds(0, 74, 52, 35);\n\t\tpanel_Numbers.add(button_13);\n\t\t\n\t\tJButton button_14 = new JButton(\"15\");\n\t\tbutton_14.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_14.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_14.setBounds(52, 74, 52, 35);\n\t\tpanel_Numbers.add(button_14);\n\t\t\n\t\tJButton button_15 = new JButton(\"16\");\n\t\tbutton_15.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_15.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_15.setBounds(105, 74, 52, 35);\n\t\tpanel_Numbers.add(button_15);\n\t\t\n\t\tJButton button_16 = new JButton(\"17\");\n\t\tbutton_16.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_16.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_16.setBounds(157, 74, 52, 35);\n\t\tpanel_Numbers.add(button_16);\n\t\t\n\t\tJButton button_17 = new JButton(\"18\");\n\t\tbutton_17.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_17.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_17.setBounds(210, 74, 52, 35);\n\t\tpanel_Numbers.add(button_17);\n\t\t\n\t\tJButton button_18 = new JButton(\"19\");\n\t\tbutton_18.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_18.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_18.setBounds(263, 74, 52, 35);\n\t\tpanel_Numbers.add(button_18);\n\t\t\n\t\tJButton button_19 = new JButton(\"20\");\n\t\tbutton_19.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_19.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_19.setBounds(316, 74, 52, 35);\n\t\tpanel_Numbers.add(button_19);\n\t\t\n\t\tJButton button_20 = new JButton(\"21\");\n\t\tbutton_20.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_20.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_20.setBounds(0, 108, 52, 35);\n\t\tpanel_Numbers.add(button_20);\n\t\t\n\t\tJButton button_21 = new JButton(\"22\");\n\t\tbutton_21.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_21.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_21.setBounds(52, 108, 52, 35);\n\t\tpanel_Numbers.add(button_21);\n\t\t\n\t\tJButton button_22 = new JButton(\"23\");\n\t\tbutton_22.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_22.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_22.setBounds(105, 108, 52, 35);\n\t\tpanel_Numbers.add(button_22);\n\t\t\n\t\tJButton button_23 = new JButton(\"24\");\n\t\tbutton_23.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_23.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_23.setBounds(157, 108, 52, 35);\n\t\tpanel_Numbers.add(button_23);\n\t\t\n\t\tJButton button_24 = new JButton(\"25\");\n\t\tbutton_24.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_24.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_24.setBounds(210, 108, 52, 35);\n\t\tpanel_Numbers.add(button_24);\n\t\t\n\t\tJButton button_25 = new JButton(\"26\");\n\t\tbutton_25.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_25.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_25.setBounds(263, 108, 52, 35);\n\t\tpanel_Numbers.add(button_25);\n\t\t\n\t\tJButton button_26 = new JButton(\"27\");\n\t\tbutton_26.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_26.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_26.setBounds(316, 108, 52, 35);\n\t\tpanel_Numbers.add(button_26);\n\t\t\n\t\tJButton button_34 = new JButton(\"35\");\n\t\tbutton_34.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_34.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_34.setBounds(0, 181, 52, 35);\n\t\tpanel_Numbers.add(button_34);\n\t\t\n\t\tJButton button_35 = new JButton(\"36\");\n\t\tbutton_35.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_35.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_35.setBounds(52, 181, 52, 35);\n\t\tpanel_Numbers.add(button_35);\n\t\t\n\t\tJButton button_36 = new JButton(\"37\");\n\t\tbutton_36.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_36.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_36.setBounds(105, 181, 52, 35);\n\t\tpanel_Numbers.add(button_36);\n\t\t\n\t\tJButton button_37 = new JButton(\"38\");\n\t\tbutton_37.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_37.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_37.setBounds(157, 181, 52, 35);\n\t\tpanel_Numbers.add(button_37);\n\t\t\n\t\tJButton button_38 = new JButton(\"39\");\n\t\tbutton_38.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_38.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_38.setBounds(210, 181, 52, 35);\n\t\tpanel_Numbers.add(button_38);\n\t\t\n\t\tJButton button_39 = new JButton(\"40\");\n\t\tbutton_39.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_39.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_39.setBounds(263, 181, 52, 35);\n\t\tpanel_Numbers.add(button_39);\n\t\t\n\t\tJButton button_40 = new JButton(\"41\");\n\t\tbutton_40.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_40.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_40.setBounds(316, 181, 52, 35);\n\t\tpanel_Numbers.add(button_40);\n\t\t\n\t\tJButton button_41 = new JButton(\"42\");\n\t\tbutton_41.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_41.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_41.setBounds(0, 216, 52, 35);\n\t\tpanel_Numbers.add(button_41);\n\t\t\n\t\tJButton button_42 = new JButton(\"43\");\n\t\tbutton_42.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_42.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_42.setBounds(52, 216, 52, 35);\n\t\tpanel_Numbers.add(button_42);\n\t\t\n\t\tJButton button_43 = new JButton(\"44\");\n\t\tbutton_43.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_43.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_43.setBounds(105, 216, 52, 35);\n\t\tpanel_Numbers.add(button_43);\n\t\t\n\t\tJButton button_44 = new JButton(\"45\");\n\t\tbutton_44.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_44.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_44.setBounds(157, 216, 52, 35);\n\t\tpanel_Numbers.add(button_44);\n\t\t\n\t\tJButton button_45 = new JButton(\"46\");\n\t\tbutton_45.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_45.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_45.setBounds(210, 216, 52, 35);\n\t\tpanel_Numbers.add(button_45);\n\t\t\n\t\tJButton button_46 = new JButton(\"47\");\n\t\tbutton_46.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_46.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_46.setBounds(263, 216, 52, 35);\n\t\tpanel_Numbers.add(button_46);\n\t\t\n\t\tJButton button_47 = new JButton(\"48\");\n\t\tbutton_47.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_47.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_47.setBounds(316, 216, 52, 35);\n\t\tpanel_Numbers.add(button_47);\n\t\t\n\t\tJButton button_27 = new JButton(\"28\");\n\t\tbutton_27.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_27.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_27.setBounds(0, 143, 52, 35);\n\t\tpanel_Numbers.add(button_27);\n\t\t\n\t\tJButton button_28 = new JButton(\"29\");\n\t\tbutton_28.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_28.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_28.setBounds(52, 143, 52, 35);\n\t\tpanel_Numbers.add(button_28);\n\t\t\n\t\tJButton button_29 = new JButton(\"30\");\n\t\tbutton_29.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_29.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_29.setBounds(105, 143, 52, 35);\n\t\tpanel_Numbers.add(button_29);\n\t\t\n\t\tJButton button_30 = new JButton(\"31\");\n\t\tbutton_30.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_30.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_30.setBounds(157, 143, 52, 35);\n\t\tpanel_Numbers.add(button_30);\n\t\t\n\t\tJButton button_31 = new JButton(\"32\");\n\t\tbutton_31.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_31.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_31.setBounds(210, 143, 52, 35);\n\t\tpanel_Numbers.add(button_31);\n\t\t\n\t\tJButton button_32 = new JButton(\"34\");\n\t\tbutton_32.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_32.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_32.setBounds(316, 143, 52, 35);\n\t\tpanel_Numbers.add(button_32);\n\t\t\n\t\tJButton button_33 = new JButton(\"33\");\n\t\tbutton_33.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\tbutton_33.setBackground(Color.LIGHT_GRAY);\n\t\tbutton_33.setBounds(263, 143, 52, 35);\n\t\tpanel_Numbers.add(button_33);\n\t}",
"private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}",
"public Box getButtonPanel() {\n\t\tBox buttonsPanel = new Box(BoxLayout.Y_AXIS);\n\t\tbuttonsPanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\t\tBox treeBox = new Box(BoxLayout.Y_AXIS);\n\t\ttreeBox.setBorder(new TitledBorder(\"Schema\"));\n\n\t\tBox associationBox = new Box(BoxLayout.Y_AXIS);\n\t\tassociationBox.setBorder(new TitledBorder(\"Association\"));\n\n\t\tBox outputBox = new Box(BoxLayout.Y_AXIS);\n\t\toutputBox.setBorder(new TitledBorder(\"Output\"));\n\n\t\tBox numerotationBox = new Box(BoxLayout.X_AXIS);\n\t\tnumerotationBox.setBorder(new TitledBorder(\"Numerotation\"));\n\t\t/* add a button for loading a XML Schema */\n\t\tJButton loadFileb = new JButton(\"Open schema\");\n\t\tUtils.setDefaultSize(loadFileb);\n\t\tloadFileb.addActionListener(new LoadSchemaListener());\n\n\t\t/*\n\t\t * add a button for associating the content of a node to a line in the\n\t\t * flat file\n\t\t */\n\t\tJButton selectLineNodeb = new JButton(\"Main node\");\n\t\tUtils.setDefaultSize(selectLineNodeb);\n\t\tselectLineNodeb.addActionListener(new SelectLineNodeListener());\n\n\t\tJButton selectNodeb = new JButton(\"Select\");\n\t\tUtils.setDefaultSize(selectNodeb);\n\t\tselectNodeb.addActionListener(new SelectNodeListener());\n\n\t\tJButton unselectNodeb = new JButton(\"Unselect\");\n\t\tUtils.setDefaultSize(unselectNodeb);\n\t\tunselectNodeb.addActionListener(new UnselectNodeListener());\n\n\t\tJButton nameb = new JButton(\"Name\");\n\t\tUtils.setDefaultSize(nameb);\n\t\tnameb.addActionListener(new associateNameListener());\n\n\t\tJButton filterb = new JButton(\"Filter\");\n\t\tUtils.setDefaultSize(filterb);\n\t\tfilterb.addActionListener(new AssociateFilterListener());\n\n\t\tJButton infosb = new JButton(\"About\");\n\t\tUtils.setDefaultSize(infosb);\n\t\tinfosb.addActionListener(new InfosListener());\n\n\t\tassociationBox.add(selectNodeb);\n\t\tassociationBox.add(unselectNodeb);\n\t\tassociationBox.add(nameb);\n\t\tassociationBox.add(filterb);\n\t\tfilter = new JLabel(\"no filter\");\n\t\tassociationBox.add(filter);\n\n\t\ttreeBox.add(loadFileb);\n\n\t\tassociationBox.add(infosb);\n\n\t\tJButton loadXmlFileb = new JButton(\"Open document (XML)\");\n\t\tUtils.setDefaultSize(loadXmlFileb);\n\t\tloadXmlFileb.addActionListener(new LoadDocumentListener());\n\n\t\tJButton setSeparatorb = new JButton(\"Separator\");\n\t\tUtils.setDefaultSize(setSeparatorb);\n\t\tsetSeparatorb.addActionListener(new SetSeparatorListener());\n\n\t\tJButton printTabFileb = new JButton(\"Print\");\n\t\tUtils.setDefaultSize(printTabFileb);\n\t\tprintTabFileb.addActionListener(new PrintFlatFileListener());\n\n\t\ttreeBox.add(loadXmlFileb);\n\t\ttreeBox.add(selectLineNodeb);\n\n\t\toutputBox.add(setSeparatorb);\n\t\toutputBox.add(printTabFileb);\n\n\t\tnumerotationButtons = new ButtonGroup();\n\n\t\tnumericb = new JRadioButton(\"1\");\n\t\thighAlphabeticb = new JRadioButton(\"A\");\n\t\tlowAlphabeticb = new JRadioButton(\"a\");\n\t\tnoneb = new JRadioButton(\"none\");\n\n\t\tnumericb.addActionListener(new NumerotationListener());\n\t\thighAlphabeticb.addActionListener(new NumerotationListener());\n\t\tlowAlphabeticb.addActionListener(new NumerotationListener());\n\t\tnumerotationBox.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tnumerotationButtons.add(numericb);\n\t\tnumerotationButtons.add(highAlphabeticb);\n\t\tnumerotationButtons.add(lowAlphabeticb);\n\t\tnumerotationButtons.add(noneb);\n\n\t\tswitch (((XsdTreeStructImpl) xsdTree).numerotation_type) {\n\t\tcase XsdTreeStructImpl.HIGH_ALPHABETIC_NUMEROTATION:\n\t\t\thighAlphabeticb.setSelected(true);\n\t\t\tbreak;\n\t\tcase XsdTreeStructImpl.LOW_ALPHABETIC_NUMEROTATION:\n\t\t\tlowAlphabeticb.setSelected(true);\n\t\t\tbreak;\n\t\tcase XsdTreeStructImpl.NUMERIC_NUMEROTATION:\n\t\t\tnumericb.setSelected(true);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tnoneb.setSelected(true);\n\t\t\tbreak;\n\t\t}\n\n\t\tnumerotationBox.add(numericb);\n\t\tnumerotationBox.add(highAlphabeticb);\n\t\tnumerotationBox.add(lowAlphabeticb);\n\t\tnumerotationBox.add(noneb);\n\n\t\tbuttonsPanel.add(treeBox);\n\t\tbuttonsPanel.add(associationBox);\n\t\tbuttonsPanel.add(outputBox);\n\t\tbuttonsPanel.add(numerotationBox);\n\n\t\tdisplayExample = new JCheckBox(\"preview\");\n\t\tbuttonsPanel.add(displayExample);\n\t\tdisplayExample.addActionListener(new PreviewListener());\n\t\t\n\t\treturn buttonsPanel;\n\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tAllSongs allSongs = new AllSongs();\n\t\t\t\t\t// AllSongs allSongs = new AllSongs();\n\t\t\t\t\tJPanel jp = allSongs.displaySongsOnThePanel(new File(playListPath), false);\n\t\t\t\t\tjavax.swing.GroupLayout allSongsLayout = new javax.swing.GroupLayout(jp);\n\t\t\t\t\tjp.setLayout(allSongsLayout);\n\t\t\t\t\tallSongsLayout.setHorizontalGroup(\n\t\t\t\t\t\t\tallSongsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 510,\n\t\t\t\t\t\t\t\t\tShort.MAX_VALUE));\n\t\t\t\t\tallSongsLayout.setVerticalGroup(\n\t\t\t\t\t\t\tallSongsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 420,\n\t\t\t\t\t\t\t\t\tShort.MAX_VALUE));\n\t\t\t\t\t// JFrame frame3 = new JFrame();\n\t\t\t\t\t// frame3.setSize(500,500);\n\t\t\t\t\t// frame3.setLocation(300,200);\n\t\t\t\t\t// frame3.add(jp);\n\t\t\t\t\t// frame3.setVisible(true);\n//\t\t\t\t\tMusicPlayer.window.add(jp);\n\t\t\t\t\tMusicPlayer.window.getContentPane().add(jp);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(playListFile));\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\t * On click of crete playlist button, I should be able to\n\t\t\t\t\t * create another button and add it to the panel\n\t\t\t\t\t * ????????????\n\t\t\t\t\t */\n\n\t\t\t\t}",
"private JComponent buildButtons() {\n Panel panel = new Panel();\n panel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n JButton button = Buttons.create(\"Create\").onClick((ev) -> {\n try {\n group.setName(name.getText());\n group.clearUsers();\n list.getSelectedValuesList().forEach((item) -> {\n group.addUser(item);\n });\n if (group.getName().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Name is required\");\n return;\n }\n if (!group.hasUsers()) {\n JOptionPane.showMessageDialog(null, \"Users are required\");\n return;\n }\n if (group.getId() == 0) {\n GroupRepository.get().save(group);\n } else {\n GroupRepository.get().update(group);\n }\n SwingUtilities.getWindowAncestor(this).dispose();\n } catch (RepositoryException ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n });\n button.setIcon(IconFactory.get().create(\"fa:check\"));\n panel.add(button);\n return panel;\n }",
"private void $$$setupUI$$$() {\n adminSelectFunctionPanel = new JPanel();\n adminSelectFunctionPanel.setLayout(new GridLayoutManager(4, 3, new Insets(30, 30, 30, 30), 10, 30, true, false));\n adminSelectFunctionPanel.setBackground(new Color(-1));\n adminSelectFunctionPanel.setForeground(new Color(-1));\n adminSelectFunctionPanel.setMinimumSize(new Dimension(800, 600));\n adminSelectFunctionPanel.setPreferredSize(new Dimension(800, 600));\n changeATMBalanceButton = new JButton();\n changeATMBalanceButton.setBackground(new Color(-10592674));\n Font changeATMBalanceButtonFont = this.$$$getFont$$$(null, -1, 20, changeATMBalanceButton.getFont());\n if (changeATMBalanceButtonFont != null) changeATMBalanceButton.setFont(changeATMBalanceButtonFont);\n changeATMBalanceButton.setForeground(new Color(-1));\n changeATMBalanceButton.setText(\"Change ATM Balance\");\n adminSelectFunctionPanel.add(changeATMBalanceButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n changeLocaleButton = new JButton();\n changeLocaleButton.setBackground(new Color(-10592674));\n Font changeLocaleButtonFont = this.$$$getFont$$$(null, -1, 20, changeLocaleButton.getFont());\n if (changeLocaleButtonFont != null) changeLocaleButton.setFont(changeLocaleButtonFont);\n changeLocaleButton.setForeground(new Color(-1));\n changeLocaleButton.setText(\"Change Locale\");\n adminSelectFunctionPanel.add(changeLocaleButton, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n addAdminButton = new JButton();\n addAdminButton.setBackground(new Color(-10592674));\n Font addAdminButtonFont = this.$$$getFont$$$(null, -1, 20, addAdminButton.getFont());\n if (addAdminButtonFont != null) addAdminButton.setFont(addAdminButtonFont);\n addAdminButton.setForeground(new Color(-1));\n addAdminButton.setText(\"Add Admin\");\n adminSelectFunctionPanel.add(addAdminButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n atmStateLabel = new JLabel();\n atmStateLabel.setBackground(new Color(-15024996));\n Font atmStateLabelFont = this.$$$getFont$$$(null, -1, 24, atmStateLabel.getFont());\n if (atmStateLabelFont != null) atmStateLabel.setFont(atmStateLabelFont);\n atmStateLabel.setForeground(new Color(-1));\n atmStateLabel.setHorizontalAlignment(0);\n atmStateLabel.setHorizontalTextPosition(0);\n atmStateLabel.setOpaque(true);\n atmStateLabel.setText(\"\");\n adminSelectFunctionPanel.add(atmStateLabel, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(100, -1), null, 0, false));\n removeAdminButton = new JButton();\n removeAdminButton.setBackground(new Color(-10592674));\n Font removeAdminButtonFont = this.$$$getFont$$$(null, -1, 20, removeAdminButton.getFont());\n if (removeAdminButtonFont != null) removeAdminButton.setFont(removeAdminButtonFont);\n removeAdminButton.setForeground(new Color(-1));\n removeAdminButton.setText(\"Remove Admin\");\n adminSelectFunctionPanel.add(removeAdminButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n queryATMBalanceButton = new JButton();\n queryATMBalanceButton.setBackground(new Color(-10592674));\n Font queryATMBalanceButtonFont = this.$$$getFont$$$(null, -1, 20, queryATMBalanceButton.getFont());\n if (queryATMBalanceButtonFont != null) queryATMBalanceButton.setFont(queryATMBalanceButtonFont);\n queryATMBalanceButton.setForeground(new Color(-1));\n queryATMBalanceButton.setText(\"Query ATM Balance\");\n adminSelectFunctionPanel.add(queryATMBalanceButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n toggleStateButton = new JButton();\n toggleStateButton.setBackground(new Color(-10592674));\n Font toggleStateButtonFont = this.$$$getFont$$$(null, -1, 20, toggleStateButton.getFont());\n if (toggleStateButtonFont != null) toggleStateButton.setFont(toggleStateButtonFont);\n toggleStateButton.setForeground(new Color(-1));\n toggleStateButton.setText(\"Toggle State\");\n adminSelectFunctionPanel.add(toggleStateButton, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n logoutButton = new JButton();\n logoutButton.setBackground(new Color(-10592674));\n Font logoutButtonFont = this.$$$getFont$$$(null, -1, 20, logoutButton.getFont());\n if (logoutButtonFont != null) logoutButton.setFont(logoutButtonFont);\n logoutButton.setForeground(new Color(-1));\n logoutButton.setText(\"Logout\");\n adminSelectFunctionPanel.add(logoutButton, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(150, 50), null, 0, false));\n }",
"public ButtonBar() {\n scrollPane = new JScrollPane();\n scrollPane.setBorder(null);\n scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants\n .HORIZONTAL_SCROLLBAR_NEVER);\n scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants\n .VERTICAL_SCROLLBAR_AS_NEEDED);\n scrollPane.setMinimumSize(new Dimension(0,buttonHeight\n + ((int) PlatformDefaults.getUnitValueX(\"related\").getValue()) * 2));\n \n buttons = Collections.synchronizedMap(new TreeMap<FrameContainer<?>,\n JToggleButton>(new FrameContainerComparator()));\n position = FramemanagerPosition.getPosition(\n IdentityManager.getGlobalConfig().getOption(\"ui\",\n \"framemanagerPosition\"));\n \n if (position.isHorizontal()) {\n buttonPanel = new ButtonPanel(new MigLayout(\"ins rel, fill, flowx\"),\n this);\n } else {\n buttonPanel = new ButtonPanel(new MigLayout(\"ins rel, fill, flowy\"),\n this);\n }\n scrollPane.getViewport().add(buttonPanel);\n }",
"@Override\n\tprotected void createCompButtons() {\n\t\tbuildCompButtons();\n\t}",
"public ButtonPanel(CalculatorController appController)\n\t{\n\t\tsuper();\n\t\tthis.appController = appController;\n\t\tnumberLayout = new GridLayout(5, 4, 10, 10);\n\t\tzero = new CalculatorButton(appController, \"0\", Color.GRAY);\n\t\tone = new CalculatorButton(appController, \"1\", Color.GRAY);\n\t\ttwo = new CalculatorButton(appController, \"2\", Color.GRAY);\n\t\tthree = new CalculatorButton(appController, \"3\", Color.GRAY);\n\t\tfour = new CalculatorButton(appController, \"4\", Color.GRAY);\n\t\tfive = new CalculatorButton(appController, \"5\", Color.GRAY);\n\t\tsix = new CalculatorButton(appController, \"6\", Color.GRAY);\n\t\tseven = new CalculatorButton(appController, \"7\", Color.GRAY);\n\t\teight = new CalculatorButton(appController, \"8\", Color.GRAY);\n\t\tnine = new CalculatorButton(appController, \"9\", Color.GRAY);\n\t\tpoint = new CalculatorButton(appController, \".\", Color.GRAY);\n\t\tmultiply = new CalculatorButton(appController, \"x\", Color.BLUE);\n\t\tdivide = new CalculatorButton(appController, \"/\", Color.BLUE);\n\t\tadd = new CalculatorButton(appController, \"+\", Color.BLUE);\n\t\tsubtract = new CalculatorButton(appController, \"-\", Color.BLUE);\n\t\tans = new CalculatorButton(appController, \"Ans\", new Color(0, 170, 100));\n\t\tequals = new JButton();\n\t\tclear = new JButton();\n\t\tbackspace = new JButton();\n\t\tnegative = new JButton();\n\t\tsetupPanel();\n\t\tsetupButtons();\n\t\tsetupListeners();\n\t}",
"private void initComponents() {\n buttonGroup = new javax.swing.ButtonGroup();\n buttonGroupMethod = new javax.swing.ButtonGroup();\n buttonGroupExtMethod = new javax.swing.ButtonGroup();\n buttonGroupExtMsg = new javax.swing.ButtonGroup();\n buttonGroupBERSource = new javax.swing.ButtonGroup();\n buttonGroupBERTarget = new javax.swing.ButtonGroup();\n jPanelMainMenu = new javax.swing.JPanel();\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel2 = new javax.swing.JPanel();\n jPanelMenu3 = new javax.swing.JPanel();\n jLabelMenu3 = new javax.swing.JLabel();\n jPanelMenu4 = new javax.swing.JPanel();\n jLabelMenu4 = new javax.swing.JLabel();\n jPanelMenu5 = new javax.swing.JPanel();\n jLabelMenu5 = new javax.swing.JLabel();\n jPanelMenu6 = new javax.swing.JPanel();\n jLabelMenu6 = new javax.swing.JLabel();\n jPanelMenu7 = new javax.swing.JPanel();\n jLabelMenu7 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jPanelSideCenter = new javax.swing.JPanel();\n jPanelGraph1 = new javax.swing.JPanel();\n jPanelGraph2 = new javax.swing.JPanel();\n jToolBarPlayer = new javax.swing.JToolBar();\n jButtonStop = new javax.swing.JButton();\n jButtonPlay = new javax.swing.JButton();\n jButtonPause = new javax.swing.JButton();\n jButtonRecord = new javax.swing.JButton();\n jPanelSideRight1 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n jListPlaylist = new javax.swing.JList();\n jPanel9 = new javax.swing.JPanel();\n jLabel35 = new javax.swing.JLabel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTableProperties = new javax.swing.JTable();\n jPanel11 = new javax.swing.JPanel();\n jToolBar2 = new javax.swing.JToolBar();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"ARMS: Audio wateRMarking System\");\n setBackground(new java.awt.Color(255, 255, 255));\n setResizable(false);\n jPanelMainMenu.setLayout(new java.awt.BorderLayout());\n\n jSplitPane1.setBorder(null);\n jSplitPane1.setDividerLocation(80);\n jSplitPane1.setDividerSize(3);\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu3.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseExited(evt);\n }\n });\n\n jLabelMenu3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ins.png\")));\n jLabelMenu3.setText(\"Insert Mark\");\n jLabelMenu3.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu3.add(jLabelMenu3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 70));\n\n jPanelMenu4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu4.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseExited(evt);\n }\n });\n\n jLabelMenu4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ext.png\")));\n jLabelMenu4.setText(\"Extract Mark\");\n jLabelMenu4.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu4.add(jLabelMenu4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 70, 80, 70));\n\n jPanelMenu5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu5.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseExited(evt);\n }\n });\n\n jLabelMenu5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/tes.png\")));\n jLabelMenu5.setText(\"Error Test\");\n jLabelMenu5.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu5.add(jLabelMenu5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 140, 80, 70));\n\n jPanelMenu6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu6.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseExited(evt);\n }\n });\n\n jLabelMenu6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/bitcheck.png\")));\n jLabelMenu6.setText(\"Recovery Test\");\n jLabelMenu6.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu6.add(jLabelMenu6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 210, 80, 70));\n\n jPanelMenu7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu7.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu7MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu7MouseExited(evt);\n }\n });\n\n jLabelMenu7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ady1.jpg\")));\n jLabelMenu7.setText(\"About\");\n jLabelMenu7.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu7.add(jLabelMenu7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 80));\n\n jPanel2.add(jPanelMenu7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 280, 80, 90));\n\n jSplitPane1.setLeftComponent(jPanel2);\n\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelSideCenter.setBackground(new java.awt.Color(255, 255, 255));\n jPanelGraph1.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.add(jPanelGraph1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 520, 210));\n\n jPanelGraph2.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.add(jPanelGraph2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, 520, 210));\n\n jToolBarPlayer.setBorder(null);\n jButtonStop.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/stop.png\")));\n jButtonStop.setText(\"Stop\");\n jButtonStop.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonStop.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonStop.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonStopActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonStop);\n\n jButtonPlay.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/play.png\")));\n jButtonPlay.setText(\"Play\");\n jButtonPlay.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonPlay.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonPlay.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonPlayActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonPlay);\n\n jButtonPause.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/pause.png\")));\n jButtonPause.setText(\"Pause\");\n jButtonPause.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonPause.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonPause.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonPauseActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonPause);\n\n jButtonRecord.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/record.png\")));\n jButtonRecord.setText(\"Record\");\n jButtonRecord.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRecord.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRecord.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRecordActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonRecord);\n\n jPanelSideCenter.add(jToolBarPlayer, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 450, 710, -1));\n\n jPanelSideRight1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelSideRight1.setBackground(new java.awt.Color(255, 255, 255));\n jScrollPane5.setBorder(null);\n jListPlaylist.setSelectionBackground(new java.awt.Color(104, 121, 144));\n jListPlaylist.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jListPlaylistValueChanged(evt);\n }\n });\n\n jScrollPane5.setViewportView(jListPlaylist);\n\n jPanelSideRight1.add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 240, 170, 190));\n\n jPanel9.setLayout(new java.awt.BorderLayout());\n\n jPanel9.setBackground(new java.awt.Color(51, 95, 130));\n jLabel35.setForeground(new java.awt.Color(255, 255, 255));\n jLabel35.setText(\" Available Stream\");\n jPanel9.add(jLabel35, java.awt.BorderLayout.CENTER);\n\n jPanelSideRight1.add(jPanel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 220, 170, 20));\n\n jScrollPane6.setBorder(null);\n jTableProperties.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Properties\", \"Value\"\n }\n ));\n jTableProperties.setSelectionBackground(new java.awt.Color(104, 121, 144));\n jScrollPane6.setViewportView(jTableProperties);\n\n jPanelSideRight1.add(jScrollPane6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, 220));\n\n jPanel11.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jToolBar2.setBorder(null);\n jButton4.setText(\" add \");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton4);\n\n jButton5.setText(\" sav \");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton5);\n\n jButton6.setText(\" rem \");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton6);\n\n jPanel11.add(jToolBar2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, 20));\n\n jPanelSideRight1.add(jPanel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 430, 170, 20));\n\n jPanelSideCenter.add(jPanelSideRight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(539, 0, 170, 450));\n\n jPanel3.add(jPanelSideCenter, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setRightComponent(jPanel3);\n\n jPanelMainMenu.add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanelMainMenu, java.awt.BorderLayout.CENTER);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jPanel1.setBackground(new java.awt.Color(102, 121, 187));\n jLabel1.setFont(new java.awt.Font(\"Harlow Solid Italic\", 0, 36));\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/head3.jpg\")));\n jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-800)/2, (screenSize.height-600)/2, 800, 600);\n }",
"private void initGUI() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Patient Menu\");\n\t\tsetPreferredSize(new Dimension(800, 700));\n\t\tsetIconImage(new ImageIcon(this.getClass().getClassLoader().getResource(\"icons/heisenbug.png\")).getImage());\n\t\t\n\t\tlblPatient = new JLabel(\"Patient Menu\");\n\t\tlblPatient.setFont(new Font(\"Tahoma\", Font.PLAIN, 40));\n\t\t\n\t\t// A panel for the buttons are defined\n\t\tJPanel buttonsPanel = new JPanel();\n\t\tbuttonsPanel.setLayout(new GridBagLayout());\n\t\t\n\t\t// buttons\n\t\tJButton btnSearch = new JButton(\"Search Patient\");\n\t\tImage searchImg = new ImageIcon(this.getClass().getClassLoader().getResource(\"icons/Patient menu/search.png\")).getImage();\n\t\tbtnSearch.setIcon(new ImageIcon(searchImg));\n\t\tbtnSearch.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tbtnSearch.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\t\n\t\tJButton btnRegister = new JButton(\"Register Patient\");\n\t\tImage registerImg = new ImageIcon(this.getClass().getClassLoader().getResource(\"icons/Patient menu/register.png\")).getImage();\n\t\tbtnRegister.setIcon(new ImageIcon(registerImg));\n\t\tbtnRegister.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tbtnRegister.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\t\n\t\tJButton btnMove = new JButton(\"Move Between Departs\");\n\t\tImage moveImg = new ImageIcon(this.getClass().getClassLoader().getResource(\"icons/Patient menu/move.png\")).getImage();\n\t\tbtnMove.setIcon(new ImageIcon(moveImg));\n\t\tbtnMove.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tbtnMove.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\t\n\t\tJButton btnEdit = new JButton(\"Edit Patient\");\n\t\tImage editImg = new ImageIcon(this.getClass().getClassLoader().getResource(\"icons/Patient menu/edit.png\")).getImage();\n\t\tbtnEdit.setIcon(new ImageIcon(editImg));\n\t\tbtnEdit.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tbtnEdit.setHorizontalTextPosition(SwingConstants.CENTER); \n\t\t\n\t\tJButton btnDischarge = new JButton(\"Discharge Patient\");\n\t\tImage dischargeImg = new ImageIcon(this.getClass().getClassLoader().getResource(\"icons/Patient menu/discharge.png\")).getImage();\n\t\tbtnDischarge.setIcon(new ImageIcon(dischargeImg));\n\t\tbtnDischarge.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tbtnDischarge.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\t\n\t\tJButton btnAdmit = new JButton(\"Admit Patient\");\n\t\tImage admitImg = new ImageIcon(this.getClass().getClassLoader().getResource(\"icons/Patient menu/admit.png\")).getImage();\n\t\tbtnAdmit.setIcon(new ImageIcon(admitImg));\n\t\tbtnAdmit.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tbtnAdmit.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\t\n\t\tJButton btnMoveBed = new JButton(\"Move Between Beds\");\n\t\tImage moveBedImg = new ImageIcon(this.getClass().getClassLoader().getResource(\"icons/Patient menu/movebed.png\")).getImage();\n\t\tbtnMoveBed.setIcon(new ImageIcon(moveBedImg));\n\t\tbtnMoveBed.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tbtnMoveBed.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\t\n\t\t\n\t\tJButton btnBack = new JButton(\"Back\");\n\t\tbtnBack.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tbtnBack.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\t\n\t\t//Listeners:\n\t\tbtnBack.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.Back2Main();\n\t\t\t}\n\t\t});\n\t\tbtnAdmit.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.ToAdmit();\n\t\t\t}\n\t\t});\n\t\tbtnMoveBed.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.ToMoveBed();\n\t\t\t}\n\t\t});\n\t\tbtnEdit.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.ToEdit();\n\t\t\t}\n\t\t});\n\t\tbtnRegister.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.ToRegister();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnSearch.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.ToSearch();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnMove.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.ToDepartmentMove();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnDischarge.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.ToDischarge();\n\t\t\t}\n\t\t});\n\t\t\n\t\tmenuTop.btnAdd.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.ToAddPassword();\n\t\t\t}\n\t\t});\n\t\t\n\t\tmenuTop.btnChange.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tcontroller.ToChangePassword();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Buttons are added to the button panel and the users clearance is checked\n\t\tbuttonsPanel.add(btnEdit, GridBagLayoutUtils.constraint(1, 1, 0, 0, 0,10,50,10));\n\t\t\n\t\tif(clear == JobTypes.Nurse || clear == JobTypes.ICTOfficer || clear == JobTypes.Clerk ) {\n\t\tbuttonsPanel.add(btnRegister, GridBagLayoutUtils.constraint(2, 1, 0, 0, 0,10,50,10));}\n\t\t\n\t\tif(clear == JobTypes.Clerk || clear == JobTypes.ICTOfficer ) {\n\t\tbuttonsPanel.add(btnAdmit, GridBagLayoutUtils.constraint(2, 2, 0, 0, 0,10,50,10));}\n\n\t\tif(clear == JobTypes.Doctor || clear == JobTypes.ICTOfficer || clear == JobTypes.Nurse ) {\n\t\tbuttonsPanel.add(btnMove, GridBagLayoutUtils.constraint(4, 1, 0, 0, 0,10,50,10));\n\t\tbuttonsPanel.add(btnSearch, GridBagLayoutUtils.constraint(3, 1, 0, 0, 0,10,50,10));\n\t\tbuttonsPanel.add(btnDischarge, GridBagLayoutUtils.constraint(1, 2, 0, 0, 0,10,50,10));\n\t\tbuttonsPanel.add(btnMoveBed, GridBagLayoutUtils.constraint(3, 2, 0, 0, 0,10,50,10));\t\n\t\t}\n\t\t\n\t\t\n\t\t// all the components are added to the frame\n\t\tadd(buttonsPanel, BorderLayout.CENTER);\n\t\tadd(menuTop, BorderLayout.NORTH);\n\t\tadd(btnBack, BorderLayout.SOUTH);\n\t\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t\t\n\t}",
"private void initComponents() {\r\n String textoBotones[]={\"Listado Almacen\", \r\n \"Listado por producto\",\"Pedidos por almacén\"};\r\n \r\n botones=new JButton[textoBotones.length];\r\n //Utilizo todo el fondo del JFrame\r\n contenedor=(ImagePanel) this.getContentPane();\r\n //Inicializo un layout\r\n contenedor.setLayout(new GridLayout(textoBotones.length, 1, 5, 5)); \r\n //Inicializo los objetos\r\n for (int x=0;x<textoBotones.length;x++) {\r\n botones[x]=new JButton();\r\n botones[x].setText(textoBotones[x]);\r\n botones[x].setActionCommand(Integer.toString(x));\r\n botones[x].addActionListener(this); \r\n contenedor.add(botones[x]);\r\n }\r\n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(table);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonRegister = new JButton();\n buttonRegister.setText(\"Track\");\n panel1.add(buttonRegister, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonMenu = new JButton();\n buttonMenu.setText(\"Menu\");\n panel1.add(buttonMenu, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"private void initComponents() {\n\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n miSave = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n miUndo = new javax.swing.JMenuItem();\n miRedo = new javax.swing.JMenuItem();\n bgMode = new javax.swing.ButtonGroup();\n bgStrength = new javax.swing.ButtonGroup();\n bgColor = new javax.swing.ButtonGroup();\n jToggleButton1 = new javax.swing.JToggleButton();\n jPanel1 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n btnSave = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JToolBar.Separator();\n jToggleButton2 = new javax.swing.JToggleButton();\n jToggleButton3 = new javax.swing.JToggleButton();\n jToggleButton4 = new javax.swing.JToggleButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n jToggleButton9 = new javax.swing.JToggleButton();\n jToggleButton5 = new javax.swing.JToggleButton();\n jToggleButton6 = new javax.swing.JToggleButton();\n jToggleButton7 = new javax.swing.JToggleButton();\n jToggleButton8 = new javax.swing.JToggleButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n btnUndo = new javax.swing.JButton();\n btnRedo = new javax.swing.JButton();\n tbColor = new javax.swing.JToolBar();\n btnColor = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n miSave = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n miUndo = new javax.swing.JMenuItem();\n miRedo = new javax.swing.JMenuItem();\n\n jMenu1.setText(\"File\");\n\n miSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n miSave.setText(\"Item\");\n jMenu1.add(miSave);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n miUndo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\n miUndo.setText(\"Item\");\n jMenu2.add(miUndo);\n\n miRedo.setText(\"Item\");\n jMenu2.add(miRedo);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n bgMode.add(jToggleButton1);\n jToggleButton1.setText(\"\\u9078\\u629e\");\n jToggleButton1.setEnabled(false);\n jToggleButton1.setFocusable(false);\n jToggleButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"\\u3089\\u3075\\u305f\\u3093\");\n\n jPanel1.setLayout(new java.awt.GridLayout(0, 1));\n\n jToolBar1.setRollover(true);\n\n btnSave.setText(\"\\u4fdd\\u5b58\");\n btnSave.setFocusable(false);\n btnSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnSave);\n jToolBar1.add(jSeparator2);\n\n bgMode.add(jToggleButton2);\n jToggleButton2.setSelected(true);\n jToggleButton2.setText(\"\\u7dda\");\n jToggleButton2.setActionCommand(\"LINE\");\n jToggleButton2.setFocusable(false);\n jToggleButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton2);\n\n bgMode.add(jToggleButton3);\n jToggleButton3.setText(\"\\u5857\\u308a\");\n jToggleButton3.setActionCommand(\"FILL\");\n jToggleButton3.setFocusable(false);\n jToggleButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton3);\n\n bgMode.add(jToggleButton4);\n jToggleButton4.setText(\"\\u6d88\\u3057\\u30b4\\u30e0\");\n jToggleButton4.setActionCommand(\"ERASE\");\n jToggleButton4.setFocusable(false);\n jToggleButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton4);\n jToolBar1.add(jSeparator1);\n\n bgStrength.add(jToggleButton9);\n jToggleButton9.setText(\"\\u6975\\u7d30\");\n jToggleButton9.setActionCommand(\"1\");\n jToggleButton9.setFocusable(false);\n jToggleButton9.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton9.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton9);\n\n bgStrength.add(jToggleButton5);\n jToggleButton5.setSelected(true);\n jToggleButton5.setText(\"\\u7d30\");\n jToggleButton5.setActionCommand(\"3\");\n jToggleButton5.setFocusable(false);\n jToggleButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton5);\n\n bgStrength.add(jToggleButton6);\n jToggleButton6.setText(\"\\u4e2d\");\n jToggleButton6.setActionCommand(\"8\");\n jToggleButton6.setFocusable(false);\n jToggleButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton6);\n\n bgStrength.add(jToggleButton7);\n jToggleButton7.setText(\"\\u592a\");\n jToggleButton7.setActionCommand(\"15\");\n jToggleButton7.setFocusable(false);\n jToggleButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton7);\n\n bgStrength.add(jToggleButton8);\n jToggleButton8.setText(\"\\u6975\\u592a\");\n jToggleButton8.setActionCommand(\"32\");\n jToggleButton8.setFocusable(false);\n jToggleButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton8);\n jToolBar1.add(jSeparator3);\n\n btnUndo.setText(\"\\u5143\\u306b\\u623b\\u3059\");\n btnUndo.setFocusable(false);\n btnUndo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnUndo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnUndo);\n\n btnRedo.setText(\"\\u518d\\u5b9f\\u884c\");\n btnRedo.setFocusable(false);\n btnRedo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnRedo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnRedo);\n\n jPanel1.add(jToolBar1);\n\n tbColor.setRollover(true);\n\n btnColor.setText(\"\\u8272\");\n btnColor.setFocusable(false);\n btnColor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnColor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnColor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnColorActionPerformed(evt);\n }\n });\n tbColor.add(btnColor);\n\n jPanel1.add(tbColor);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);\n\n jMenu1.setText(\"File\");\n\n miSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n miSave.setText(\"Item\");\n jMenu1.add(miSave);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n miUndo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\n miUndo.setText(\"Item\");\n jMenu2.add(miUndo);\n\n miRedo.setText(\"Item\");\n jMenu2.add(miRedo);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-622)/2, (screenSize.height-502)/2, 622, 502);\n }",
"private void createControls() {\n JScrollPane votesScroller = new JScrollPane(votesTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel bottomPanel = new JPanel();\n JPanel buttonsPanel = new JPanel();\n JLabel votesLabel = new JLabel(\"<html><div style='text-align: center; width: \" + PANEL_SIZE.width + \";'><h3>Votes</h3></html>\");\n \n // Enables/disables buttons.\n enableAdding();\n \n // Hooks up the controller on the action listeners.\n loadButton.addActionListener((e) -> controller.loadVotes());\n addButton.addActionListener((e) -> {\n // Uses the selected indexes of the combo boxes to determine the candidate IDs.\n ArrayList<Integer> candidateIds = new ArrayList<>();\n comboBoxes.forEach((comboBox) -> candidateIds.add(comboBox.getSelectedIndex() - 1));\n \n // Requests that the controller adds a vote with the given candidate IDs.\n controller.addVote(candidateIds);\n });\n \n // Lays out the components.\n panel.setLayout(new BorderLayout());\n panel.add(votesLabel, BorderLayout.PAGE_START);\n panel.add(votesScroller, BorderLayout.CENTER);\n panel.add(bottomPanel, BorderLayout.PAGE_END);\n \n bottomPanel.setLayout(new BorderLayout());\n bottomPanel.add(createComboBoxes(), BorderLayout.PAGE_START);\n bottomPanel.add(buttonsPanel, BorderLayout.PAGE_END);\n \n buttonsPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n buttonsPanel.add(addButton);\n buttonsPanel.add(loadButton);\n \n \n panel.setPreferredSize(PANEL_SIZE);\n }",
"public void actionListenner()\n\t{\n\t\t// Add action Listener to each JButton.\n\t\t// WelcomePanel\n\t\tview.getFrame().add(view.getWelcomePanel().getWelcomePanel());\t\n\t\tview.getFrame().setVisible(true);\n\t\t\n\t\t// welcomeButton\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().remove(view.getWelcomePanel().getWelcomePanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().pack());\n\n\t\t// MainPanel\n\t\t// playgameButton\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\t\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().add(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//leaderboardButton\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.add(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//quit\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().add(view.getQuitPanel().getQuitPane()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// PlayerPanel\n\t\t// createButton\n\t\tview.getPlayerPanel().getCreateButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tString input = view.getPlayerPanel().getInputBox().getText();\n\t\t\t\tSystem.out.println(input);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tboolean validname = gameInfo.getModel().getLeaderboard().isValidNewPlayers(input);\n\t\t\t\tSystem.out.println(validname);\n\t\t\t\t\n\t\t\t\tif(validname)\n\t\t\t\t{\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().addNewPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getGameRule().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(input);\n\t\t\t\t\tview.getInGamePanel().setLabelName(input);\t\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setPlayerName(input);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(1));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(0));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(0);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\n\t\t\t\t\tview.getFrame().add(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().setFocusable(true);\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().requestFocusInWindow();\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tview.getFrame().setSize(800, 890);\n\t\t\t\t\tview.getFrame().repaint();\t\t\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!validname)\n\t\t\t\t{\n\t\t\t\t\tview.getPlayerPanel().getInputBox().setText(\"INVALID NAME\");\n\t\t\t\t\tview.getPlayerPanel().getInputBox().addMouseListener(new MouseAdapter(){\n\t\t\t @Override\n\t\t\t public void mouseClicked(MouseEvent e){\n\t\t\t \tview.getPlayerPanel().getInputBox().setText(\"\");\n\t\t\t }\n\t\t\t });\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t// loadPlayer\n\t\tint numberOfLoadPlayer = view.getPlayerPanel().getExistPlayerButton().length;\n\t\tfor(int i = 0; i < numberOfLoadPlayer; i++)\n\t\t{\n\t\t\tview.getPlayerPanel().getExistPlayerButton()[i].addMouseListener(new MouseAdapter()\n\t\t\t{\n\t\t\t\tpublic void mousePressed(MouseEvent e)\n\t\t\t\t{\n\t\t\t\t\tObject o = e.getSource();\n\t\t\t\t\tJButton pressedButton = (JButton) o;\n\t\t\t\t\tString text = pressedButton.getText();\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(text);\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(gameInfo.getModel().getGameRule().getScores()));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(gameInfo.getModel().getGameRule().getScores());\n\t\t\t\t\tview.getInGamePanel().setLabelName(text);\n\t\t\t\t\t\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(text);\n\t\t\t\t\t\n\t\t\t\t\tview.getPlayerPanel().setLoadPlayer(gameInfo.getModel().getLeaderboard().loadPlayer(text));\t\t\t\n\t\t\t\t\tview.setSelectLevelPanel();\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\t\t\n\t\t\t\t\tview.getFrame().add(view.getSelectLevelPanel().getSelectLevelPanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\t//view.getFrame().pack();\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\t// InGamePanel\n\t\t\t\t\t//case select level unlock\n\t\t\t\t\tfor(int i = 1; i <= 5; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(gameInfo.getModel().getLeaderboard().loadPlayer(text).isLevelUnlocked(i) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString selectLevel = Integer.toString(i);\n\t\t\t\t\t\t\tint level = i;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setPlayerName(gameInfo.getModel().getLeaderboard().loadPlayer(text).getName()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(gameInfo.getModel().getGameRule().getLevel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> gameInfo.getModel().getGameRule().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setLevelLabel(selectLevel));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().remove(view.getSelectLevelPanel().getSelectLevelPanel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setSize(800, 890));\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().requestFocusInWindow());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().setFocusable(true));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().repaint());\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setVisible(true));\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\n\t\t\t\t}\t\n\t\t});\t\t\n\t\t}\n\t\t\n\t\t// back\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// LeaderboardPanel\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// QuitPanel\n\t\t// no\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().remove(view.getQuitPanel().getQuitPane()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().repaint());\t\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// yes\n\t\tview.getQuitPanel().getYes().addActionListener(event -> view.getFrame().dispatchEvent(new WindowEvent(view.getFrame(), WindowEvent.WINDOW_CLOSING)));\n\t\t\n\t\t\n\t\t// InGamePanel\n\t\tview.getInGamePanel().getInGamePanel().addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyTyped(KeyEvent e) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tswitch (e.getKeyCode()) {\n\n\t\t\t\t// Case press esc to pause the game\n\t\t\t\tcase KeyEvent.VK_ESCAPE:\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\tview.getFrame().remove(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getFrame().add(view.getPausePanel().getPausePanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_LEFT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_RIGHT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_Z:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.ROTATE_LEFT);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_SPACE:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.FASTER);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\tif(lost)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(false);\n\t\t\t\t\t\tlost = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.RESTART);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(winLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setWinLevel(false);\n\t\t\t\t\t\twinLevel = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEXTLEVEL);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void keyReleased(KeyEvent e) {}\n\t\t});\n\t\t\n\t\t// PausePanel\n\t\t// back\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().setSize(800, 890));\t\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\n\t\t// LeaderBoardInPausePanel\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().add(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// ControlsPanel\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().add(view.getControlsPanel().getControlsPanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\tview.getPausePanel().getReturnToMainManuButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\t\t\t\t\n\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEWGAME);\n\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\n\t\t\t\tview.getFrame().remove(view.getPausePanel().getPausePanel());\n\t\t\t\tview.getFrame().add(view.getMainPanel().getMainPanel());\t\n\t\t\t\tview.getFrame().pack();\n\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\n\t\t\t\t//viewAllPanels.getFrame().pack();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t// LeaderboardInGame\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(Event -> view.getFrame().remove(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\t// ControlPanel\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().remove(view.getControlsPanel().getControlsPanel()));\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t}",
"public void createButtons() {\n\t\tescapeBackground = new GRect(200, 150, 300, 400);\n\t\tescapeBackground.setFilled(true);\n\t\tescapeBackground.setColor(Color.gray);\n\n\t\tbutton1 = new GButton(\"Return to Game\", 250, 175, 200, 50, Color.cyan);\n\t\tbutton3 = new GButton(\"Exit Level\", 250, 330, 200, 50, Color.cyan);\n\t\tbutton4 = new GButton(\"Return to Menu\", 250, 475, 200, 50, Color.cyan);\n\n\t\tescapeButtons.add(button1);\n\t\tescapeButtons.add(button3);\n\t\tescapeButtons.add(button4);\n\n\t}",
"protected JBPanel getButtonsPanel() {\n return buttonsPanel;\n }",
"private void initButtons() {\n HBox buttons = new HBox(50);\n yes = new Button(\"Yes!\");\n no = new Button(\"No!\");\n buttons.getChildren().addAll(yes,no);\n buttons.setAlignment(Pos.CENTER);\n root.getChildren().addAll(buttons);\n }",
"public void initializeButtons(){\n\t\t\tplay.setBounds(40,90,280,30);\n\t\t\tadd(play);\n\t\t\tplay.addActionListener(new PlayGame());\n\t\t\tplay.setVisible(true);\n\t\t\t\n\t\t\tenterquestion.setBounds(40,140,280,30);\n\t\t\tadd(enterquestion);\n\t\t\tenterquestion.addActionListener(new EnterQuestion());\n\t\t\tenterquestion.setVisible(true);\n\t\t\t\n\t\t\tdirections.setBounds(40,190,280,30);\n\t\t\tadd(directions);\n\t\t\tdirections.addActionListener(new Instructor());\n\t\t\tdirections.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t}",
"private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n pan1 = new JPanel();\n pan1.setLayout(new GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(pan1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Название номера\");\n pan1.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Дата регистрации\");\n pan1.add(label2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Дата истечения\");\n pan1.add(label3, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_VERTICAL, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n pan1.add(spacer2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(0, 25), new Dimension(0, 25), new Dimension(0, 25), 0, false));\n number = new JTextField();\n pan1.add(number, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n pan1.add(creationDatePanel, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n pan1.add(expirationDatePanel, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }"
] | [
"0.80213624",
"0.7834703",
"0.7705287",
"0.75831664",
"0.75714684",
"0.75669223",
"0.75509334",
"0.74522114",
"0.7433989",
"0.7354928",
"0.73422766",
"0.73408616",
"0.73226327",
"0.7314871",
"0.72937304",
"0.7293564",
"0.72836065",
"0.726408",
"0.7256103",
"0.7253676",
"0.71757877",
"0.7138042",
"0.71324164",
"0.71097213",
"0.71089995",
"0.70731735",
"0.7045172",
"0.7044587",
"0.7030341",
"0.7020658",
"0.69833475",
"0.6969214",
"0.6958591",
"0.69232565",
"0.69224405",
"0.6886723",
"0.6875086",
"0.6857425",
"0.685221",
"0.6849502",
"0.6841195",
"0.6836496",
"0.68334824",
"0.6811213",
"0.6808492",
"0.6803569",
"0.6800829",
"0.6799556",
"0.67949206",
"0.6784943",
"0.67801416",
"0.6767892",
"0.6763343",
"0.6739136",
"0.67362744",
"0.6733756",
"0.6722099",
"0.67120457",
"0.67078125",
"0.67041624",
"0.6704152",
"0.67039967",
"0.6696885",
"0.66887486",
"0.66815835",
"0.66761273",
"0.6676079",
"0.6675987",
"0.667403",
"0.66678727",
"0.6663389",
"0.6654108",
"0.6644783",
"0.6643167",
"0.6642333",
"0.6641682",
"0.66209555",
"0.66181",
"0.661527",
"0.6614514",
"0.6611681",
"0.6610193",
"0.66094744",
"0.6605986",
"0.65977407",
"0.6590571",
"0.6587135",
"0.65829396",
"0.6578849",
"0.6577132",
"0.65640455",
"0.6558902",
"0.65529037",
"0.65511376",
"0.6541529",
"0.65356815",
"0.6531858",
"0.65155494",
"0.65138644",
"0.6509003"
] | 0.6695164 | 63 |
Defines whether a cell with given row and column index is editable directly by the user. In TaskerCLI the whole 'comments' column should be editable, which corresponds to the column with index 1. | @Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
return columnIndex == 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isCellEditable(int row, int column) {\n return editable;\n }",
"@Override\n public boolean isCellEditable(int row, int column) {\n return editable;\n }",
"public boolean isCellEditable(int row, int column){\n return true;\n }",
"public boolean isCellEditable(int row, int column){ \r\n return false; \r\n }",
"@Override\r\n\t\t\t\t public boolean isCellEditable(int row, int column) {\n\t\t\t\t return column == 3 || column == 4;\r\n\t\t\t\t }",
"@Override\n public boolean isCellEditable(int row, int column) {\n return isEditable[column];\n }",
"public boolean isCellEditable(int row, int col) { return (col!=0); }",
"@Override\r\n\t\tpublic boolean isCellEditable(int row, int col) {\n\t\t\tif (col == 1 || col == 2) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}",
"public boolean isCellEditable(int row, int col) {\r\n return true;\r\n }",
"@Override\n\tpublic boolean isCellEditable(int row, int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\treturn true;\n\t\tcase 1:\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isCellEditable(int row, int column){\r\n return false;\r\n }",
"@Override\n public boolean isCellEditable(int row, int col) {\n return col == 2;\n }",
"public boolean isCellEditable(int row, int col) {\n return true;\n }",
"@Override\r\n public boolean isCellEditable(int row, int col) {\r\n return true;\r\n }",
"public boolean isCellEditable(int row, int column) {\n\t\t if(column == 3){ \r\n\t\t \treturn true;\r\n\t\t }\r\n\t\t else{\r\n\t\t \treturn false;\r\n\t\t }\r\n\t\t }",
"public boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}",
"public boolean isCellEditable(int row, int col) {\n\t\t if (col ==2) {\r\n\t\t return true;\r\n\t\t } else {\r\n\t\t return false;\r\n\t\t }\r\n\t\t }",
"@Override\n\t\t public boolean isCellEditable(int row, int column) {\n\t\t //all cells false therefore they are not editable\n\t\t return false;\n\t\t }",
"public boolean isCellEditable(int row, int column) {\n\t\t\t\tif(column == 3 || column == 6){ \r\n\t\t \treturn true;\r\n\t\t }\r\n\t\t else{\r\n\t\t \treturn false;\r\n\t\t }\r\n\t\t }",
"public boolean isCellEditable(int row, int column)\r\n\t{\r\n\t\treturn true;\r\n\t}",
"public boolean isCellEditable(int row, int col)\n {\n return col != 0;\n }",
"public boolean isCellEditable(int row, int col) {\n\t if (col ==1) {\r\n\t return true;\r\n\t } else {\r\n\t return false;\r\n\t }\r\n\t }",
"public boolean isCellEditable(int row, int column) {\n return false;\n }",
"public boolean isCellEditable(int row, int col) {\r\n return false;\r\n }",
"@Override\n\tpublic boolean isCellEditable(int arg0, int arg1) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isCellEditable(int arg0, int arg1) {\n\t\treturn false;\n\t}",
"@Override\n\t public boolean isCellEditable(int row, int column)\n\t {\n\t return false;\n\t }",
"@Override\n public boolean isCellEditable(int arg0, int arg1) {\n return false;\n }",
"@Override\n public boolean isCellEditable(int arg0, int arg1) {\n return false;\n }",
"public boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t}",
"public boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}",
"public boolean isCellEditable(int row, int column) \n\t {\n\t return false;\n\t }",
"@Override\n public boolean isCellEditable(int row, int col) {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n return col==0;\n }",
"public boolean isCellEditable(int row, int col) {\n\t\treturn true;\n\t}",
"@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean isCellEditable(int row,int column){\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean isCellEditable(int row, int col) {\r\n\t\t\t\treturn col == 2;\r\n\t\t\t}",
"@Override\n public boolean isCellEditable(int row, int column) { \n return model.isCellEditable(row, column); \n }",
"@Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return (columnIndex == SEL_INDEX);\n }",
"@Override\n\t\t public boolean isCellEditable(int row, int column) {\n\t\t //all cells false\n\t\t return false;\n\t\t }",
"@Override\n public boolean isCellEditable(int rowIndex, int columnIndex)\n {\n return columnIndex == 1;\n }",
"@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }",
"@Override\n public boolean isCellEditable(int iRow, int iCol) {\n return false;\n }",
"public boolean isCellEditable(int row, int column)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean isCellEditable(int row, int column)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean isCellEditable(int row, int col) {\n\t\t\treturn false;\n\t\t}",
"public boolean isCellEditable(int row, int col) {\n\t\t\treturn false;\n\t\t}",
"public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n\t return false;\r\n\t }",
"public boolean isCellEditable(int row, int col)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean isCellEditable (int rowIndex, int columnIndex) {\n return true;\n }",
"public boolean isCellEditable(int row, int col)\n\t{\n\t\tif(col>0) return true;\n\t\treturn false;\n\t}",
"public boolean isCellEditable(int row, int col) {\n \tswitch(col){\n \tcase 0:\n \t\treturn false;\n \tcase 1:\n \t\treturn false;\n \tcase 2:\n \t\treturn false;\n \tdefault:\n \t\treturn false;\n \t}\n }",
"@Override\r\n\tpublic boolean isCellEditable(int rowIndex, int columnIndex)\r\n\t{\r\n\t\treturn columnIndex == 1 || columnIndex == 2;\r\n\t}",
"@Override\n public boolean isCellEditable(int row, int column) {\n\n return false;\n\n }",
"public boolean isCellEditable(int row, int col) {\r\n \tif(this.creation == Creation.COLUMN){\r\n \t\tif(col == 0){\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}\r\n \telse{\r\n \t\treturn true;\r\n \t}\r\n \r\n }",
"public boolean isCellEditable(int row, int col) {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n // set 0 to some value\n if (col < 1) {\n return false;\n } else {\n return true;\n }\n }",
"public boolean isCellEditable(int row, int col) {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n return false;\n }",
"public boolean isCellEditable(int row, int col) {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n return false;\n }",
"@Override\n public boolean isCellEditable(int row, int column) \n {\n return false;\n }",
"@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }",
"@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }",
"public boolean isCellEditable(int row, int col) {\n\t\treturn col > 0;\n\t}",
"@Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }",
"@Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }",
"@Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }",
"public boolean isCellEditable(int rowIndex, int columnIndex) {\r\n return (columnIndex == 0 || columnIndex == 2);\r\n }",
"@Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\n return false;\r\n }",
"public boolean isCellEditable(int row, int col) {\n \t\t//Note that the data/cell address is constant,\n \t\t//no matter where the cell appears onscreen.\n \t\tif (col < 0) {\n \t\t\treturn false;\n \t\t} else {\n \t\t\treturn true;\n \t\t}\n \t}",
"@Override\r\n public boolean isCellEditable(int row, int col) {\n return (col == Column.Active.ordinal());\r\n }",
"@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }",
"public boolean isCellEditable(int row, int col) {\n\t\t// Note that the data/cell address is constant,\n\t\t// no matter where the cell appears onscreen.\n\t\tif (col <= 1) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isCellEditable (int rowIndex, int columnIndex)\n\t{\n\t\treturn true;\n\t}",
"@Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M no sera editable\r\n return false;\r\n }",
"public boolean isCellEditable(int rowIndex, int columnIndex)\r\n {\r\n if( columnIndex == 0 ) return false;\r\n if( rowIndex == 5 ) return false;\r\n if( rowIndex < 5 && columnIndex > 1 ) return false;\r\n return true;\r\n }",
"@Override\n public boolean isCellEditable(int i, int i1) {\n return false;\n }",
"@Override\n public boolean isCellEditable(int row, int column)\n {\n return column == NOTES;\n }",
"public boolean isCellEditable(int row, int col) \n {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n return this.getColumnClass(col) != String.class;\n }",
"@Override\r\n\tpublic boolean isCellEditable(int rowIndex, int columnIndex) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean isCellEditable(int rowIndex, int columnIndex) {\n\t\treturn false;\r\n\t}",
"@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t// khong cho chinh sua column 3 return column !=3\n\n\t\t\t\t// khong cho chinh sua\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public boolean isCellEditable(int rowIndex,\n int columnIndex) {\n return false;\n }",
"public boolean isCellEditable(int row, int col) {\n\t\t\t//Note that the data/cell address is constant,\n\t\t\t//no matter where the cell appears onscreen.\n\t\t\t// # = total Col -1\n\t\t\t//if (col == 12 || col == 1 || col == 2 || col== 9 || col == 0) {\n\t\t\tif (col == 12 || col == 0) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"@Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M le decimos que no seran editables los componetnes\r\n return false;\r\n }",
"public boolean isCellEditable(int row, int column)\n\t{\n\t\t// if the first column holds a boolean and it is false, it is not editable\n\t\tif (column != 0\n\t\t\t&& (getValueAt(row, 0) instanceof Boolean)\n\t\t\t&& !((Boolean)getValueAt(row, 0)).booleanValue())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// is the column read/write?\n\t\tif (m_readWriteColumn.contains(new Integer(column)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"@Override\n public boolean isCellEditable(int row, int col) {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n if(!LoginForm.userRole.equals(\"sa\") && col == 2){\n return false;\n }\n else {\n return true;\n }\n \n }",
"public boolean isCellEditable(int row, int column) {\r\n if (PAGESELECTION==column){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }",
"public boolean isCellEditable(int row, int col) {\n \t// first column can be edited only for non-simple selections\n \tif ((col==0) && ! smartPrescaleTable.simple(row)) return true;\n\n \t// smart prescale column can be edited only for simple se;ection\n \tif ((col==1) && smartPrescaleTable.simple(row)) return true;\n \t\n \t// the rest of the columns cannot be edited.\n \treturn false;\n }",
"@Override\n\tpublic boolean isCellEditable(int rowIndex, int columnIndex) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isCellEditable(int rowIndex, int columnIndex) {\n\t\treturn false;\n\t}",
"@Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return false;\n }",
"@Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return false;\n }",
"public boolean isCellEditable(int rowIndex, int columnIndex) {\n return (columnIndex == 0);\n }",
"@Override\n public boolean isCellEditable(int row, int col) {\n if (col == 0) return false;\n String attribute = data[row][0].toString();\n return attribute.equals(\"Description\")||\n attribute.equals(\"Generated\")||\n attribute.equals(\"Scannum\")||\n attribute.equals(\"Patient ID\")||\n attribute.equals(\"Exp Date\")||\n attribute.equals(\"Exp Time\")||\n attribute.equals(\"db_name\") ||\n attribute.equals(\"Data type string\") ||\n attribute.equals(\"History\");\n }",
"@Override\r\n\tpublic boolean isCellEditable(EventObject anEvent) {\n\t\treturn true;\r\n\t}",
"@Override\n public boolean isCellEditable(int row, int column) {\n if(isAdmin) return false;\n Spedizione element = spedizioni.elementAt(row);\n return element.getAssicurata().equals(\"Si\") && element.getStato().equals(\"FALLITA\");\n }",
"public boolean isCellEditable(int rowIndex, int columnIndex) {\n\t\treturn false;\r\n\t}"
] | [
"0.83561254",
"0.83561254",
"0.8249647",
"0.8205646",
"0.8204504",
"0.8199663",
"0.8195714",
"0.81539595",
"0.8147317",
"0.81331384",
"0.81160766",
"0.8111599",
"0.810365",
"0.80980814",
"0.8097728",
"0.8089781",
"0.8080516",
"0.8071225",
"0.80565816",
"0.8046728",
"0.80229634",
"0.80208755",
"0.801543",
"0.8010066",
"0.80017227",
"0.80017227",
"0.80008626",
"0.79982024",
"0.79982024",
"0.7994692",
"0.7982683",
"0.7966941",
"0.7964266",
"0.7960282",
"0.79556006",
"0.79556006",
"0.79556006",
"0.79556006",
"0.79556006",
"0.7945976",
"0.7940737",
"0.7933991",
"0.7923656",
"0.7905827",
"0.7892388",
"0.78718066",
"0.786322",
"0.78502995",
"0.78502995",
"0.7849645",
"0.7849645",
"0.78486127",
"0.7847273",
"0.78421116",
"0.78397584",
"0.7837823",
"0.7837551",
"0.783109",
"0.7829782",
"0.78260046",
"0.77997315",
"0.77997315",
"0.77717304",
"0.776668",
"0.776668",
"0.7748087",
"0.7735993",
"0.7735993",
"0.7735993",
"0.7732241",
"0.77301663",
"0.77296036",
"0.7728486",
"0.77082735",
"0.7688316",
"0.7673092",
"0.765291",
"0.7651601",
"0.76503503",
"0.76474226",
"0.7629793",
"0.7615738",
"0.7615738",
"0.76151466",
"0.76083064",
"0.76055247",
"0.75988",
"0.7574956",
"0.7573918",
"0.75551665",
"0.7553023",
"0.75526494",
"0.75526494",
"0.7523203",
"0.7523203",
"0.7513402",
"0.75081295",
"0.7499092",
"0.74889517",
"0.7470835"
] | 0.7909957 | 43 |
This method splits a line from a comma separated values file into an array of strings | public static String[] splitLine(String line) {
StringBuffer buffer = new StringBuffer();
ArrayList<String> stockStrs = new ArrayList<String>();
char[] chars = line.toCharArray();
boolean inQuotes = false;
for (char ch: chars) {
if (inQuotes) {
if (ch == '"') {
inQuotes = false;
} else {
buffer.append(ch);
}
} else {
if (ch == '"') {
inQuotes = true;
} else if (ch == ',') {
stockStrs.add(buffer.toString());
buffer.delete(0, buffer.length());
} else {
buffer.append(ch);
}
}
}
stockStrs.add(buffer.toString());
String[] stockStrsArray = stockStrs.toArray(new String[stockStrs.size()]);
return stockStrsArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String[] splitLine(String line)\n\t{\n\t\treturn line.split(CSV_SEPARATOR);\n\t}",
"@Override\n protected void processLine(String line) {\n String[] lines = line.split(\",\");\n for (String l : lines) {\n data.add(l);\n }\n }",
"private List<String> read_level_row(String line){\r\n List<String> row = new ArrayList<>();\r\n try (Scanner rowScanner = new Scanner(line)){\r\n rowScanner.useDelimiter(\",\");\r\n while (rowScanner.hasNext()) {\r\n row.add(rowScanner.next());\r\n }\r\n }\r\n return row;\r\n }",
"public static String[] parseCommaSeparatedList(String line) {\n \tArrayList myList = new ArrayList();\n \t\n \tString myLine = new String(line);\n \t\n \twhile(myLine.contains(\",\")) {\n \t\tString item = myLine.substring(0, myLine.indexOf(\",\"));\n \t\titem = StringUtilities.removeEdgeWhitespace(item);\n \t\tmyList.add(item);\n \t\tmyLine = myLine.substring((myLine.indexOf(\",\") + 1));\n \t}\n \tmyLine = StringUtilities.removeEdgeWhitespace(myLine);\n \tif(myLine.compareTo(\"\") != 0) myList.add(myLine);\n\n \tString[] list = new String[myList.size()];\n \tfor(int i = 0; i < myList.size(); i++) {\n \t\tlist[i] = new String((String)myList.get(i));\n \t}\n \t\n \treturn list;\n }",
"public Iterable<String> call(String line) throws Exception {\n\t\t\t\treturn Arrays.asList(line.split(\",\"));\n\t\t\t}",
"public void setReaderToArray(){\n try{\n String client, number = null;\n\n File reader = new File(\"clientFile/clientInfo.txt\");\n\n Scanner scn = new Scanner(reader);\n scn.useDelimiter(\",\");\n\n while(scn.hasNext()){\n number = scn.next();\n client = scn.next();\n\n clientList.add(client + \" - \" + number);\n }\n scn.close();\n }catch (FileNotFoundException exception){\n System.out.println(\"An error occurred.\");\n }\n }",
"public static List<String> parseValues(String fileName)\n throws CLIException\n {\n BufferedReader in = null;\n List<String> values = new ArrayList<String>();\n \n try {\n in = new BufferedReader(new FileReader(fileName));\n String line = in.readLine();\n while (line != null) {\n line = line.trim();\n if (line.length() > 0) {\n values.add(line);\n }\n line = in.readLine();\n }\n } catch (IOException e) {\n throw new CLIException(e, ExitCodes.IO_EXCEPTION);\n } finally {\n if (in !=null ) {\n try {\n in.close();\n } catch (IOException e) {\n //ignore cannot close input stream\n }\n }\n }\n return values;\n }",
"private static String[] parseInstance(String line) {\n line = line.trim();\n String[] instance = line.split(\",\");\n return instance;\n }",
"public String[] parseLine() {\n String[] tokens = null;\n try {\n tokens = csvReader.readNext();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return tokens;\n }",
"private static ArrayList<String> splitString(String line) {\n String[] splits = line.split(DELIMITER);\n return new ArrayList<>(Arrays.asList(splits));\n }",
"public List<String[]> parseCSV(String filename) throws FileNotFoundException {\n Scanner scanner = new Scanner(new File(filename));\n List<String[]> list = new ArrayList<>();\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n list.add(line.split(\", \"));\n }\n scanner.close();\n return list;\n }",
"public static List<List<String>> getCSV2(String filepath) { //this method words the best\r\n List<List<String>> records = new ArrayList<>();\r\n try (BufferedReader br = new BufferedReader(new FileReader(filepath))) {\r\n String line;\r\n int lineCounter = 1; // this is to stop it from reading lines after the data is done\r\n while ((line = br.readLine()) != null) {\r\n String[] values = line.split(\",\");\r\n if (values.length < 2 && lineCounter > 14) { // <----- the 14th line is chosen arbitrarily.\r\n System.out.println(\"end of file\");\r\n break;\r\n } else {\r\n records.add(Arrays.asList(values));\r\n lineCounter++;\r\n }\r\n }\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return records;\r\n }",
"public static String[] split(String value) {\r\n\t\tif(value == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn value.trim().split(\",\");\r\n\t}",
"public String[] split(String line, String delimit) {\r\n\t\tlog.debug(\"line = \" + line);\r\n\t\tString[] a = null;\r\n\t\tVector<String> lines = new Vector<String>();\r\n\t\tline = line.replaceAll(\"\\\\\\\\\" + delimit, \"\\\\e\");\r\n\t\ta = line.split(delimit);\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tString thisLine = a[i];\r\n\t\t\tlog.debug(\"thisLine[\" + i + \"] = \" + thisLine);\r\n\t\t\tif (quoteText && thisLine.startsWith(\"\\\"\")) {\r\n\t\t\t\twhile (!thisLine.endsWith(\"\\\"\") && i < a.length) {\r\n\t\t\t\t\tthisLine += \",\" + a[++i];\r\n\t\t\t\t}\r\n\t\t\t\tif (i == line.length()) {\r\n\t\t\t\t\tthrow new RuntimeException(\"unterminated string quote\");\r\n\t\t\t\t}\r\n\t\t\t\tthisLine = thisLine.substring(1, thisLine.length()-2);\r\n\t\t\t\tthisLine.replaceAll(\"\\\\e\", delimit);\r\n\t\t\t}\r\n\t\t\tlines.add(thisLine);\r\n\t\t}\r\n\t\ta = new String[1];\r\n\t\treturn lines.toArray(a);\r\n\t}",
"public void readFile(String filePath) {\n\n\t\tFile file = new File(filePath);\n\t\t\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n \t while(sc.hasNextLine() ) {\t\t \t \n\t\t \t String line = sc.nextLine();\t\t \t \n\t\t \t linesArray.add( line.split(\",\") );\t\n\t\t \t \n\t\t\t}\n\t\t \t\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t\n\t}",
"public static String[] getTeamInfo(){\n List<String> input = null;\n String[] output = null;\n try {\n Path path = Paths.get(Constants.TEAM_FILE_PATH);\n input = Files.readAllLines(path, StandardCharsets.UTF_8);\n output = input.get(0).split(\",\");\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n return output;\n }",
"List<String[]> readCsv(String inputFilePath)throws IOException;",
"private static String[] parseCSVLine(String line, boolean convertToLowerCase ) {\r\n\t\t\r\n\t\t//split the line om commas, but only if that comma is not between quotes (0 or even nr of quotes ahead)\r\n\t\tString[] tokens = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\r\n\t\t\r\n\t\tString[] result = new String[tokens.length];\r\n\t\t\r\n\t\t//get rid of spaces and enclosing double quotes\r\n\t\tfor (int i=0; i<tokens.length; i++) {\r\n\t\t\t\r\n\t\t\tString t = tokens[i].trim().replaceAll(\"^\\\"|\\\"$\", \"\");\r\n\t\t\t\r\n\t\t\tif (convertToLowerCase) {\r\n\t\t\t\tt = t.toLowerCase();\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tresult[i] = t;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public ArrayList<String[]> read(String s) throws IOException,\n\t\t\tFileNotFoundException {\n\t\tArrayList<String[]> result = new ArrayList<String[]>();\n\t\tFileReader fr = new FileReader(s);\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\tString[] row = new String[6];\n\t\tString line;\n\t\twhile (true) {\n\t\t\tline = br.readLine();\n\t\t\tif (line == null) {\n\t\t\t\tbr.close();\n\t\t\t\treturn result;\n\t\t\t}\n\n\t\t\trow = line.split(\",\");\n\t\t\tresult.add(row);\n\t\t}\n\t}",
"List<String[]> readCsv(String inputFilePath, char separator)throws IOException;",
"private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\n }",
"private List<String[]> parseFileByName(String name){\n\n List<String[]> content = new ArrayList<>();\n String csvFile = name;\n BufferedReader br = null;\n String line = \"\";\n String cvsSplitBy = \",\";\n\n try {\n\n br = new BufferedReader(new FileReader(csvFile));\n while ((line = br.readLine()) != null) {\n\n // use comma as separator\n String[] data = line.split(cvsSplitBy);\n content.add(data);\n\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return content;\n }",
"private static List<String> parseLine(String csvLine) {\n List<String> result = new ArrayList<>();\n if (Objects.isNull(csvLine) || csvLine.isEmpty()) {\n return result;\n }\n StringBuilder charSet = new StringBuilder();\n char[] chars = csvLine.toCharArray();\n for (char character : chars) {\n if (character == DEFAULT_SEPARATOR) {\n result.add(charSet.toString().trim());\n charSet = new StringBuilder();\n } else {\n charSet.append(character);\n }\n }\n result.add(charSet.toString().trim());\n return result;\n }",
"public static ArrayList<String> CSVtoArrayList(String Line) {\n\t\tArrayList<String> Result = new ArrayList<String>();\n\t\t\n\t\tif (Line != null) \n {\n\t\t\tString[] splitData = Line.split(\"\\\\s*,\\\\s*\");\n\t\t\tfor (int i = 0; i < splitData.length; i++) \n {\n\t\t\t\tif (!(splitData[i] == null) || !(splitData[i].length() == 0)) {\n\t\t\t\t\tResult.add(splitData[i].trim());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn Result;\n\t}",
"private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}",
"public String[] parseLine() throws IOException, FHIRException {\n\t\tList<String> res = new ArrayList<String>();\n\t\tStringBuilder b = new StringBuilder();\n\t\tboolean inQuote = false;\n\n\t\twhile (more() && !finished(inQuote, res.size())) {\n\t\t\tchar c = peek();\n\t\t\tnext();\n\t\t\tif (c == '\"' && doingQuotes) {\n\t\t\t\tif (ready() && peek() == '\"') {\n\t b.append(c);\n next();\n\t\t\t\t} else {\n\t\t\t inQuote = !inQuote;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (!inQuote && c == delimiter ) {\n\t\t\t\tres.add(b.toString().trim());\n\t\t\t\tb = new StringBuilder();\n\t\t\t}\n\t\t\telse \n\t\t\t\tb.append(c);\n\t\t}\n\t\tres.add(b.toString().trim());\n\t\twhile (ready() && (peek() == '\\r' || peek() == '\\n')) {\n\t\t\tnext();\n\t\t}\n\t\t\n\t\tString[] r = new String[] {};\n\t\tr = res.toArray(r);\n\t\treturn r;\n\t}",
"private String[] readFile(BufferedReader reader) throws IOException {\r\n // Read each line in the file, add it to the ArrayList lines\r\n ArrayList<String> lines = new ArrayList<String>();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n lines.add(line);\r\n }\r\n reader.close();\r\n // Convert the list to an array of type String and return\r\n String[] ret = new String[1];\r\n return (lines.toArray(ret));\r\n }",
"public static String[] obtenerIds() throws IOException{\n\t\tint numOfLines=countLines(HOSPITALES_DATA_FILE) ;\n\t String[] idsArr = new String[numOfLines];\n\t BufferedReader fileReader = null;\n fileReader = new BufferedReader(new FileReader(HOSPITALES_DATA_FILE));\n String line = \"\";\n int counter = 0;\n while ((line = fileReader.readLine()) != null)\n {\n String[] tokens = line.split(DELIMITER);\n \n idsArr[counter] = tokens[0];\n counter++;\n }\t\t\t\n fileReader.close();\n\t\treturn idsArr; \n\t}",
"List<String[]> readCsv(String inputFilePath,int skipLine)throws IOException;",
"private static String[] readFile(String file){\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\t\t\tString line;\n\t\t\tString data = \"\";\n\t\t\twhile((line = in.readLine()) != null){\n\t\t\t\tdata = data + '\\n' + line;\t\t\t}\n\t\t\tin.close();\n\t\t\tString[] data_array = data.split(\"\\\\n\");\n\t\t\treturn data_array;\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tString[] shouldNeverReturn = new String[1];\n\t\treturn shouldNeverReturn;\n\t}",
"public static String[] readGraphFile( String fileName ) throws FileNotFoundException, IllegalArgumentException, InvalidRouteException{\n\t \n\t\tFile file = new File(fileName); \n\t Scanner s = new Scanner(file); \n\t \n \tString in = s.nextLine();\n\t\tString[] parts = in.toUpperCase().split(\"\\\\s+|,\\\\s*\");\n \n\t\tfor( String route: parts ) IO.validateData(route);\n\t\ts.close();\n\t \n\t return parts;\n\t }",
"public static List read(String file){\n\t\tLinkedList<String> data =\tnew LinkedList<String>();\n\t\tString dataRow;\n\t\t\n\t\ttry {\n\t\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\n\t\twhile((dataRow = br.readLine())!=null);{\t\n\t\t\tString[] dataRecord = dataRow.split(\",\");\n\t\t\tdata.addAll(dataRecord);\n\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not found file\");\n\t\t\te.printStackTrace();\n\t\t}catch (IOException e) {\n\t\tSystem.out.println(\"Could Not read file\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}",
"String[] readFile(String path) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader;\n File file;\n\n try {\n file = new File(path);\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n return output;\n }",
"public List<String> loadFromFile(String fileName) {\n String line;\n List<String> listValuesFieldsEmployees = new ArrayList<>();\n\n try (FileReader fileReader = new FileReader(fileName);\n BufferedReader reader = new BufferedReader(fileReader)) {\n while ((line = reader.readLine()) != null) {\n listValuesFieldsEmployees.add(line);\n }\n } catch (IOException exc) {\n exc.printStackTrace();\n }\n return listValuesFieldsEmployees;\n }",
"private String[] readLine( String line ) throws IOException {\n if ( StringUtils.isBlank( line ) ) {\n return null;\n }\n if ( line.startsWith( \"#\" ) ) {\n return null;\n }\n\n String[] fields = StringUtils.splitPreserveAllTokens( line, '\\t' );\n if ( fields.length < 2 ) {\n throw new IOException( \"Illegal format, expected at least 2 columns, got \" + fields.length );\n }\n return fields;\n\n }",
"public static List<String> parseCSVFile(final String filePath) {\n\t\tLOG.info(\"Entred in to parseCSVFile()\");\n\t\tLOG.info(\"File path is : {}\", filePath);\n\n\t\tList<String> dataList = new ArrayList<>();\n\t\tCSVReader csvReader = null;\n\t\ttry {\n\t\t\tcsvReader = new CSVReader(new FileReader(filePath));\n\t\t\tString[] nextLine;\n\t\t\tint lineNumber = 0;\n\t\t\twhile ((nextLine = csvReader.readNext()) != null) {\n\t\t\t\tlineNumber++;\n\t\t\t\tif (lineNumber == 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tString data = String.join(ReportingDataConstants.CSV_DATA_SPERATOR, nextLine);\n\t\t\t\tLOG.info(\"The data is {}\", data);\n\t\t\t\tdataList.add(data);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(\"CSV File not found, please check the file paths\");\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"CSV File parse exception, please check the file format\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (csvReader != null)\n\t\t\t\t\tcsvReader.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLOG.error(\"Exception occured while closing reader: {}\", e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\n\t\tLOG.info(\"Exit from parseCSVFile()\");\n\t\treturn dataList;\n\t}",
"public HashMap<String, String[]> convertToArray() throws IOException\n\t{\n\t HashMap<String, String[]> map = new HashMap<String, String[]>();\n\t String[] list;\n\t \n\t String line;\n\t BufferedReader reader;\n\t\t\n\t try {\n\t\t\treader = new BufferedReader(new FileReader(filePath));\n\t\t\t\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t {\n\t\t\t\tString key = line;\n\t\t\t\tString value = \"\";\n\t\t\t\tString tmp;\n\t\t\t\t\n\t\t\t\twhile(!(tmp=reader.readLine()).equals(\"$\"))\n\t\t\t\t{\t\n\t\t\t\t\tvalue = value+tmp; \n\t\t\t\t}\n\t\t\t\tString values = value.replaceAll(\"\\\"\", \"\");\n\t\t\t\t\n\t\t\t\tString[] parts = values.split(\",\");\n\t\t map.put(key, parts);\n\t\t }\n\t\t\t\n\t\t\t/*for (String key : map.keySet())\n\t\t {\n\t\t System.out.println(key);\n\t\t for(int i=0; i < map.get(key).length; i++)\n\t\t {\n\t\t \tSystem.out.println(map.get(key)[i]);\n\t\t }\n\t\t }*/\n\t\t\t\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t \n\t return map;\n\t}",
"List<String[]> readCsv(String inputFilePath,int skipLine,char separator)throws IOException;",
"public void splitter(String values) {\n\n\t\tfor(int i=0; i < values.length(); i++) {\n\t\t\tnewString += values.charAt(i);\n\n\t\t\tif(semi == values.charAt(i)) {\n\t\t\t\tnewString = newString.replaceAll(\";\", \"\");\n\t\t\t\tnewString = newString.replaceAll(\"\\n\", \"\");\n\t\t\t\tsplittedString.add(newString);\n\t\t\t\tnewString = \"\";\n\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i < splittedString.size()-1; i++) {\n\t\t\tsection = splittedString.get(i);\n\t\t\tString[] dev = section.split(\",\");\n\t\t\tboolean validValues = true;\n\t\t\tfor(int x1 = 0; x1 < dev.length; x1+=3) {\n\t\t\t\tString xx1 = dev[x1];\n\t\t\t\tif(isInteger(xx1) && validValues) {\n\t\t\t\t\tx.add(Integer.parseInt(xx1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tfor(int y1= 1; y1 <dev.length; y1+=3) {\n\t\t\t\tString yy1 = dev[y1];\n\t\t\t\tif(isInteger(yy1) && validValues) {\n\t\t\t\t\ty.add(Integer.parseInt(yy1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tfor(int z1= 2; z1 <dev.length; z1+=3) {\n\t\t\t\tString zz1 = dev[z1];\n\t\t\t\tif(isInteger(zz1) && validValues) {\n\t\t\t\t\tz.add(Integer.parseInt(zz1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"private void valuesToArray() {\n arrayValues = new int[Board.ROWS][Board.COLUMNS];\n StringTokenizer tokenizer = new StringTokenizer(boardValuesString, \",\");\n\n for (int i = 0; i < Board.ROWS; i++) {\n for (int j = 0; j < Board.COLUMNS; j++) {\n // skip the * at the beginning for user placed values.\n String cellValueString = tokenizer.nextToken();\n int cellValue;\n if (!cellValueString.contains(BoardSaver.CELL_USER_VALUE_INDICATOR)) {\n cellValue = Integer.parseInt(cellValueString);\n } else {\n cellValue = Integer.parseInt(cellValueString.substring(1));\n }\n arrayValues[i][j] = cellValue;\n }\n }\n }",
"protected String[] splitLine(String line) {\n return StringUtils.splitPreserveAllTokens(line, TabbedLineReader.this.delim);\n }",
"private String[] commaDelimited(String str) {\n StringTokenizer st = new StringTokenizer(str,\",\");\n String strs[] = new String[st.countTokens()];\n for (int i=0;i<strs.length;i++) strs[i] = Utils.decFmURL(st.nextToken());\n return strs;\n }",
"public static String[] splitSepValuesLine(String s, String delimiter, boolean remCommas) {\n\t\tLinkedList<String> output = new LinkedList<String>();\n\t\tString curVal = \"\";\n\t\tboolean inQuotes = false;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tchar curChar = s.charAt(i);\n\t\t\tif (curChar == '\\\"')\n\t\t\t\tinQuotes = !inQuotes;\n\t\t\telse if (curChar == delimiter.charAt(0) && !inQuotes) {\n\t\t\t\tString toAdd = curVal.trim();\n\t\t\t\tif (remCommas)\n\t\t\t\t\ttoAdd=removeCommas(toAdd);\n\t\t\t\toutput.add(toAdd);\n\t\t\t\tcurVal = \"\";\n\t\t\t} else {\n\t\t\t\tcurVal += curChar;\n\t\t\t}\n\t\t}\n\t\tif (curVal.length() > 0) {\n\t\t\tString toAdd = curVal.trim();\n\t\t\tif (remCommas)\n\t\t\t\ttoAdd=removeCommas(toAdd);\n\t\t\toutput.add(toAdd);\n\t\t}\n\t\tString[] outputArr = new String[output.size()];\n\t\toutput.toArray(outputArr);\n\t\treturn outputArr;\n\t}",
"public List<String> getStrings(String fileName) throws IOException {\n\n List<String> items = readFile (fileName);\n String text = String.join (\"\", items);\n\n return normalizeCsv (text + \" \");\n }",
"protected final List getValuesAsList(String values)\r\n {\r\n List list = new LinkedList();\r\n StringTokenizer tok = new StringTokenizer(values, DELIMITER);\r\n\r\n while(tok.hasMoreTokens())\r\n {\r\n // extract each value, trimming whitespace\r\n list.add(tok.nextToken().trim());\r\n }\r\n\r\n // return the list\r\n return list;\r\n }",
"private String[] splitLine (String fileLine){\n String[] ans = new String[5];\n ans[0] = fileLine.substring(0, fileLine.indexOf(\"!\"));\n ans[1] = fileLine.substring(fileLine.indexOf(\"[\") + 1, fileLine.indexOf(\"]\"));\n String dfTf = fileLine.substring(fileLine.indexOf(\"]!\") + 2);\n ans[3] = dfTf;\n ans[2] = dfTf.substring(0, dfTf.indexOf(\"!\"));\n if (dfTf.contains(\"^\")) {\n ans[4] = dfTf.substring(dfTf.length() - 1);\n ans[3] = ans[3].substring(ans[3].indexOf(\"!\") + 1, ans[3].length() - 2);\n } else\n ans[3] = ans[3].substring(dfTf.indexOf(\"!\") + 1);\n\n return ans;\n }",
"private String[] getValoresLinhaItem(int flag, String nomArquivo) throws Exception\n\t{\n\t\tString dirOrigem = getPropriedade(\"ordemVoucher.dirArquivos\");\n\t\tString nomArqItem\t= dirOrigem+System.getProperty(\"file.separator\")+nomArquivo;\n\n\t\tFileReader \t\tfReader = new FileReader(nomArqItem);\n\t\tBufferedReader \tbReader\t= new BufferedReader(fReader);\n\t\tString linha \t\t\t= null;\n\t\tString linhaResultado \t= null;\n\t\t// Realiza a leitura do arquivo, caso a linha desejada seja a primeira\n\t\t// entao ja para o laco na primeira iteracao senao continua lendo o arquivo\n\t\t// ate o final sendo entao a ultima linha lida o resultado\n\t\twhile ( (linha = bReader.readLine()) != null)\n\t\t{\n\t\t\tlinhaResultado = linha;\n\t\t\tif (flag == GPPTransferenciaVoucher.FLAG_PRIMEIRA_LINHA)\n\t\t\t\tbreak;\n\t\t}\n\t\t// Quebra os valores da linha resultado e retorna tais valores\n\t\tStringTokenizer strToken = new StringTokenizer(linhaResultado,\",\");\n\t\tString campos[] = new String[strToken.countTokens()];\n\t\tfor (int i=0; i < campos.length; i++)\n\t\t\tcampos[i] = strToken.nextToken();\n\t\t\t\n\t\treturn campos;\n\t}",
"public String[][] toRawArray(String fileName, int rows) throws FileNotFoundException{\n String[][] toReturn = new String[5][rows];\n Scanner file = new Scanner(new File(fileName+\".csv\"));\n file.nextLine();\n file.nextLine();\n for(int j=0; j<rows; j++){ //each row\n String line = file.nextLine();\n String[] lineSplit = line.split(\",\");\n for (int i=0; i<5; i++){\n toReturn[i][j] = lineSplit[i]; //fill columns, hold row constant\n } \n } \n return toReturn; \n }",
"private List<String[]> extract(String file) {\n List<String[]> readIn = null;\n try {\n // instantiate file reader object\n FileReader fr = new FileReader(file);\n\n // instantiate csv reader object\n CSVReader csvReader = new CSVReaderBuilder(fr).build();\n readIn = csvReader.readAll();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return readIn;\n }",
"public static LinkedList<Patient> importSepValuesFilePatient(File f, String delimiter) {\n\t\tLinkedList<Patient> output = new LinkedList<Patient>();\n\t\tScanner fileReader;\n\t\ttry {\n\t\t\tfileReader = new Scanner(f);\n\t\t} catch (FileNotFoundException e1) { // If the file doesn't exist, abort\n\t\t\tSystem.out.println(\"File not Found\");\n\t\t\tMainApp.printError(e1);\n\t\t\treturn null;\n\t\t}\n\n\t\twhile (fileReader.hasNextLine()) // Parses the file line by line\n\t\t\toutput.add(makePatient(splitSepValuesLine(fileReader.nextLine(), delimiter)));\n\t\tfileReader.close();\n\t\treturn output;\n\t}",
"public ArrayList<Double> readFile(String m){\n ArrayList<Double> a = new ArrayList<Double>();\n Scanner r = null;\n try {\n File f = new File(m);\n r = new Scanner(f);\n String scan;\n while(r.hasNextLine()) {\n scan = r.nextLine();\n //System.out.println(scan);\n // look for comma because our price starts after comma\n int commaPosition = scan.indexOf(',');\n //go to next index of the string in one line\n int nextIndex = commaPosition + 1;\n // make a string named price to keep the price from one line\n //substring method takes two parameters- start point and end point(which is integers)\n //price = smaller string = \"2.50\", scan = bigger string = \"bananas,2.50\"\n String price = scan.substring(nextIndex,scan.length());\n double doublePrice = Double.parseDouble(price);\n //System.out.println(doublePrice);\n a.add(doublePrice);\n }\n } catch (FileNotFoundException ex) {\n\n } catch (IOException ex) {\n\n } finally {\n if(r!=null) r.close();\n }\n return a;\n\n }",
"private static List<City> getCitiesFromString(String line, SocialNetwork r) {\n List<City> cities = new LinkedList<City>();\n String[] splitString = line.split(\",\");\n for (int i = 2; i < splitString.length; i++) {\n City city = r.getListOfCities().getCityByName(splitString[i]);\n cities.add(city);\n }\n return cities;\n }",
"public String[] ReadAllFileLines(String sFilePath) throws Exception {\n File f = null;\n FileInputStream fstream = null;\n DataInputStream in = null;\n BufferedReader br = null;\n String strLine = \"\";\n String[] stemp = null;\n StringBuffer strbuff = new StringBuffer();\n try {\n //getting file oject\n f = new File(sFilePath);\n if (f.exists()) {\n //get object for fileinputstream\n fstream = new FileInputStream(f);\n // Get the object of DataInputStream\n in = new DataInputStream(fstream);\n //get object for bufferreader\n br = new BufferedReader(new InputStreamReader(in, \"UTF-8\"));\n //Read File Line By Line\n while ((strLine = br.readLine()) != null) {\n strbuff.append(strLine + \"##NL##\");\n }\n\n stemp = strbuff.toString().split(\"##NL##\");\n } else {\n throw new Exception(\"File Not Found!!\");\n }\n\n return stemp;\n } catch (Exception e) {\n throw new Exception(\"ReadAllFileLines : \" + e.toString());\n } finally {\n //Close the input stream\n try {\n br.close();\n } catch (Exception e) {\n }\n try {\n fstream.close();\n } catch (Exception e) {\n }\n try {\n in.close();\n } catch (Exception e) {\n }\n }\n }",
"private static Set<String> getFriendsFromString(String line, SocialNetwork r) {\n Set<String> friends = new HashSet<>();\n String[] splitString = line.split(\",\");\n for (String string : splitString) {\n\n friends.add(string);\n }\n return friends;\n }",
"public double[] LerValoresEsperados() throws FileNotFoundException {\n File treinamento = new File(\"resultado.csv\");\n\n String linha = new String();\n\n Scanner leitor = new Scanner(treinamento);\n\n while (leitor.hasNext()) {\n linha = leitor.nextLine();\n String[] valoresEntreVirgulas = linha.split(\";\");\n double[] valoresDouble = Arrays.stream(valoresEntreVirgulas).mapToDouble(Double::parseDouble).toArray();\n return valoresDouble;\n //System.out.println(valoresEntreVirgulas[0] + valoresEntreVirgulas[1] + valoresEntreVirgulas[2]);\n }\n\n return null;\n }",
"public String[][] loadData(String fileName)\n{\n String[] rows = loadStrings(fileName);\n String[][] dataa = new String [24][7];\n int i = 0;\n for (String row : rows) \n {\n String[] columns = row.split(\",\");\n if (columns.length >= 7) \n {\n for (int j = 0; j < 7; j=j+1)\n {\n dataa [i][j]=columns[j];\n }\n i = i +1;\n }\n }\n return dataa;\n}",
"@Override\n\tpublic ArrayList<BigDecimal> input(String line) {\n\t\tArrayList<BigDecimal> list = new ArrayList<BigDecimal>();\n\t\tfor (String s : line.split(\"\\\\s+\")) {\n\t\t\tBigDecimal num = new BigDecimal(Double.parseDouble(s));\n\t\t\tlist.add(num);\n\t\t}\n\n\t\treturn list;\n\t}",
"String[] readFile(File file) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader = null;\n try {\n if (file.isFile()) {\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n return output;\n }",
"@Override\r\n\tpublic ArrayList<String> getValues(String key) {\r\n\t\tArrayList<String> vals = meta.get(key); \r\n\r\n\t\t// May be multiple sampleIDs per key separated by commas\r\n\t\tif (key.equals(\"sampleIDs\")) {\r\n\t\t\tArrayList<String> newVals = new ArrayList<String>();\r\n\t\t\tfor (String v: vals) {\r\n\t\t\t\tString[] parts = v.split(\",\");\r\n\t\t\t\tfor (String p: parts) {\r\n\t\t\t\t\t// Duplicates may occur\r\n\t\t\t\t\tString pt = p.trim();\r\n\t\t\t\t\tif (newVals.contains(pt) == false) {\r\n\t\t\t\t\t\tnewVals.add(pt);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn newVals;\r\n\t\t}\r\n\r\n\t\treturn vals;\r\n\t}",
"public String[] readLines() {\n\t\tVector linesVector = new Vector(); ;\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\twhile (!eof) {\n\t\t\t\tString line = 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\tlinesVector.add(line);\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\tString[] lines = new String[linesVector.size()];\n\t\tfor (int i = 0; i < lines.length; i++) {\n\t\t\tlines[i] = (String) (linesVector.get(i));\n\t\t}\n\t\treturn lines;\n\t}",
"private static String[] lineSplit(String input) {\r\n String[] tokens = input.split(delimiter);\r\n return tokens;\r\n }",
"public static ArrayList<String> topiclist(){\n ArrayList<String> temp = new ArrayList<String>();\n Scanner topicer;\n try {\n topicer = new Scanner(new File(\"Topics.txt\"));\n topicer.useDelimiter(\",~ *\\n*\");\n while (topicer.hasNext()){\n String[] key = topicer.next().split(\",\");\n //String value = \"\";\n if(topicer.hasNext())\n topicer.next();\n for (int i = 0; i < key.length; i++)\n \ttemp.add(key[i]);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }",
"public ArrayList loadItems (String file) {\n ArrayList<Item> itemList = new ArrayList<>();\n\n File itemFile = new File(file);\n\n Scanner scanner = null;\n\n try{\n scanner = new Scanner(itemFile);\n\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }\n\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n String [] oneItem = line.split(\"=\");\n itemList.add(new Item(oneItem[0],Integer.parseInt(oneItem[1])));\n }\n\n\n return itemList;\n }",
"public List<Country> readCountriesFromCSV(String fileName){\n try {\n Scanner scanner = new Scanner(new File(fileName));\n scanner.useDelimiter(\",\");\n scanner.nextLine();\n while(scanner.hasNextLine()){\n lsta.add(createCountry(scanner.nextLine().split(\",\")));\n// System.out.println(pyr.get_pharaoh()+\"|\"+pyr.get_modern_name()+\"|\"+pyr.get_site()+\"|\"+pyr.get_height()+\"|\");\n }\n scanner.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(CityCSVDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return lsta;\n }",
"public static String[] DataCollection(String a) throws FileNotFoundException {\n\tFile file = new File(a); \n \tScanner sc = new Scanner(file); \n \n // Counter variable to count the number of entries in text file\n\tint counter = 0;\n\n\t\n \n\tString[] data = new String[2976];\n // While loop to take in data from text file \n\twhile(sc.hasNextLine())\n\t{\n\t\n\tsc.useDelimiter(\"\\\\Z\"); \n\t\n\t// Inserting data in each line to array\n\tdata[counter] = sc.nextLine();\n\tcounter = counter + 1;\n\t\n\t}\n\treturn data;\n \t}",
"public List<Lender> readCSVFile(String path){\r\n\r\n List<Lender> inputList = new ArrayList<>();\r\n try{\r\n File inputF = new File(path);\r\n InputStream inputFS = new FileInputStream(inputF);\r\n BufferedReader br = new BufferedReader(new InputStreamReader(inputFS));\r\n // skip the header of the csv\r\n inputList = br.lines().skip(1).map(mapToItem).collect(Collectors.toList());\r\n br.close();\r\n } catch (IOException e) {\r\n throw new QuoteException(\"Error reading the csv file\", e);\r\n }\r\n\r\n return inputList ;\r\n }",
"public static List<String[]> parseFile(String filePath, String headstandards)\n throws MalformedParametersException, FileNotFoundException {\n int numberOfParams = headstandards.split(\",\").length;\n List<String[]> toReturn = new LinkedList<>();\n File file;\n BufferedReader br;\n try {\n file = new File(filePath);\n br = new BufferedReader(new FileReader(file));\n\n String firstLine = br.readLine();\n if (!(firstLine.equals(headstandards))) {\n throw new MalformedParametersException(\n \"first line doesn't match header standards\");\n }\n String line = br.readLine();\n while (line != null) {\n String[] parsed = line.split(\",\");\n if (parsed.length != numberOfParams) {\n throw new MalformedParametersException(\"CSV data is malformed\");\n } else {\n toReturn.add(parsed);\n }\n\n line = br.readLine();\n }\n } catch (IOException e) {\n throw new FileNotFoundException(\"couldn't open file\");\n }\n\n try {\n br.close();\n } catch (IOException e) {\n throw new FileNotFoundException(\"trouble closing reader\");\n }\n\n return toReturn;\n\n }",
"public List<String> splitCommaSepareatedValues(String commaSepareatedValues) {\n\t\treturn Arrays.asList(commaSepareatedValues.split(\",\"));\n\t}",
"private ArrayList parseStringToList(String data){\n ArrayList<String> result = new ArrayList<String>();\n String[] splitResult = data.split(\",\");\n for(String substring : splitResult){\n result.add(substring);\n }\n return result;\n }",
"private void get_values(File f1){\n String line;\n Scanner read_file=null;\n try{\n read_file= new Scanner(f1);\n }catch(FileNotFoundException e){\n System.out.println(\"The specified file of the Student cannot be found.\");\n return;\n }\n line=read_file.nextLine();\n while(!(line.contains(\"OOP\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n //System.out.println(line.substring(8));\n OOP[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[2]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[3]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DE\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DE[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DSA\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DSA[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n line=read_file.nextLine();\n total_marks=Float.parseFloat(line.substring(13));\n average=total_marks/10;\n\n read_file.close();\n }",
"public static void main(String[] args){\n String path=\"C:/Users/SAMUEL/imag98908es.csv\";\n String linea=\" \";\n try{\n BufferedReader br= new BufferedReader(new FileReader(path));\n ArrayList<Integer> datos=new ArrayList<Integer>();\n while((linea=br.readLine())!=null){\n String[] valores=linea.split(\",\");\n List<String> list=Arrays.asList(valores);\n System.out.println(list);\n }\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }catch(IOException e){\n e.printStackTrace();\n }\n }",
"private String[] parseArray(String val) {\n String[] arrayVals;\n val = val.trim();\n if (emptyVal(val)) {\n arrayVals = Constants.EMPTY_STRING_ARRAY;\n } else {\n arrayVals = val.split(\"\\\\s+\");\n }\n return arrayVals;\n }",
"private static String[] readFile(final String pathToFile) {\n try (BufferedReader reader = new BufferedReader(new FileReader(pathToFile))) {\n final List<String> lines = new ArrayList<>();\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n if (!line.startsWith(\"#\")) {\n lines.add(line);\n }\n }\n return lines.toArray(new String[lines.size()]);\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't read properties file - \" + pathToFile, e);\n }\n }",
"private Object[] fetchTextFile(String filePathString){\n try (Stream<String> stream = Files.lines(Paths.get(filePathString))) {\n return stream.toArray();\n }\n catch (IOException ioe){\n System.out.println(\"Could not find file at \" + filePathString);\n return null;\n }\n\n }",
"default String[][] txtReader(String fileString) {\n\t\ttry {\n\t\t\tScanner myReader = new Scanner(new File(fileString));\n\t\t\tArrayList<String[]> lines = new ArrayList<>();\n\n\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\tString[] splitted = myReader.nextLine().split(\" \");\n\t\t\t\tlines.add(splitted);\n\t\t\t}\n\n\t\t\tString[][] result = new String[lines.size()][];\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tresult[i] = lines.get(i);\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file is not occurred \" + e.getMessage());\n\t\t}\n\t\treturn null;\n\n\t}",
"protected void parseValues(File file){\r\n\t\ttry {\r\n\t\t\tScanner scanner = new Scanner(file);\r\n\t\t\tString line;\r\n\t\t\tif(scanner.hasNext()) \r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\taddToSupplyValues(line);\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static int [] readMatrix(){\n int[] matrix=null;\n try {\n String linea;\n if((linea = br.readLine()) != null){\n String[] split = linea.split(\",\");\n matrix = new int[split.length];\n for (int i = 0; i < matrix.length; i++) {\n matrix[i] = Integer.parseInt(split[i]);\n }\n }else{\n br.close();\n }\n } catch (IOException ex) {\n System.err.println(\"Error al leer del buffer\");\n }\n return matrix;\n }",
"private String[] parseLine(final String nextLine, final boolean readLine)\n throws IOException {\n String line = nextLine;\n if (line.length() == 0) {\n return new String[0];\n } else {\n\n final List<String> fields = new ArrayList<String>();\n StringBuilder sb = new StringBuilder();\n boolean inQuotes = false;\n boolean hadQuotes = false;\n do {\n if (inQuotes && readLine) {\n sb.append(\"\\n\");\n line = getNextLine();\n if (line == null) {\n break;\n }\n }\n for (int i = 0; i < line.length(); i++) {\n final char c = line.charAt(i);\n if (c == CsvConstants.QUOTE_CHARACTER) {\n hadQuotes = true;\n if (inQuotes && line.length() > i + 1\n && line.charAt(i + 1) == CsvConstants.QUOTE_CHARACTER) {\n sb.append(line.charAt(i + 1));\n i++;\n } else {\n inQuotes = !inQuotes;\n if (i > 2 && line.charAt(i - 1) != this.fieldSeparator\n && line.length() > i + 1\n && line.charAt(i + 1) != this.fieldSeparator) {\n sb.append(c);\n }\n }\n } else if (c == this.fieldSeparator && !inQuotes) {\n hadQuotes = false;\n if (hadQuotes || sb.length() > 0) {\n fields.add(sb.toString());\n } else {\n fields.add(null);\n }\n sb = new StringBuilder();\n } else {\n sb.append(c);\n }\n }\n } while (inQuotes);\n if (sb.length() > 0 || fields.size() > 0) {\n if (hadQuotes || sb.length() > 0) {\n fields.add(sb.toString());\n } else {\n fields.add(null);\n }\n }\n return fields.toArray(new String[0]);\n }\n }",
"@SuppressWarnings(\"resource\")\n \tpublic String[] readTextFileOutputLinesArray(String path, String fileName) throws IOException{\n \t BufferedReader in = new BufferedReader(new FileReader(path + File.separator + fileName));\n \t String str=null;\n \t ArrayList<String> lines = new ArrayList<String>();\n \t while ((str = in.readLine()) != null) {\n \t if (!str.contains(\"helper\") && (str.length() != 0)) { lines.add(str); }\n \t }\n \t String[] linesArray = lines.toArray(new String[lines.size()]);\n \t return linesArray;\n \t}",
"public static ArrayList<double[]> getInputFromFile(String path, String separator, Boolean shuffle){\n\n ArrayList<double[]> outList = new ArrayList<>();\n try {\n InputStream data = new FileInputStream(new File(path));\n Scanner sc = new Scanner(data);\n ArrayList<String> dataList = new ArrayList<>();\n\n sc.forEachRemaining(dataList::add);\n\n dataList.forEach(element ->{\n\n String[] contentArray = element.split(separator);\n double[] contentArrayDouble = new double[contentArray.length];\n\n for(int i = 0; i<contentArray.length; i++)\n contentArrayDouble[i] = Double.parseDouble(contentArray[i]);\n\n outList.add(contentArrayDouble);\n });\n\n if(shuffle)\n Collections.shuffle(outList);\n\n }\n\n catch (IOException e){\n e.printStackTrace();\n }\n\n return outList;\n }",
"public String[] readFromFile(Path destination) throws IOException {\n\t\ttry (BufferedReader buffer = Files.newBufferedReader(destination)) {\n\t\t\treturn (buffer.lines().collect(Collectors.joining(\"\\n\"))).split(\",\");\n\t\t}\n\t}",
"public String[] parse() {\n String line = input.nextLine();\n line = line.trim();\n if (StringUtils.isNotEmpty(line)) {\n return StringUtils.split(line, \" \");\n }\n return null;\n }",
"public static ArrayList<String> convertCSVToStringList(String fileName) throws Exception\n\t{\n\t\tArrayList<String> stringList = new ArrayList<String>();\n\t\tBufferedReader br=new BufferedReader(new FileReader(fileName));\n\t\tfor (String lineOfCSV=\"\"; lineOfCSV!=(null); lineOfCSV=br.readLine())\n\t\t{\n\t\t\tif(lineOfCSV!=\"\")\n\t\t\tstringList.add(lineOfCSV);\n\t\t}\n\t\tbr.close();\n\t\tif (stringList.isEmpty())\n\t\t\t{\n\t\t\tthrow new Exception(\"CSV File was empty\");\n\t\t\t}\n\t\treturn stringList;\n\t}",
"public Integer[] compressFileReader() {\n\t\tint index = 0;\n\t\tString input = \"\";\n\t\ttry {\n\t\t\tint nextChar = 0;\n\t\t\twhile (nextChar != (int) '\\n') {\n\t\t\t\tnextChar = 0;\n\t\t\t\tfor (int i = 0; i < codeLength; i++) {\n\t\t\t\t\tnextChar <<= 1;\n\t\t\t\t\tif (bufferCount == 0) {\n\t\t\t\t\t\tbuffer = in.read();\n\t\t\t\t\t\tbufferCount = 8;\n\t\t\t\t\t}\n\t\t\t\t\tif (buffer == -1) {// in.close();\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tbufferCount--;\n\t\t\t\t\tif ((buffer >> (bufferCount) & 1) == 1)\n\t\t\t\t\t\tnextChar |= 1;\n\t\t\t\t}\n\t\t\t\tinput = input + nextChar + \",\";\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString[] str = input.split(\",\");\n\t\tInteger[] inputArray = new Integer[str.length];\n\t\tfor (String st : str)\n\t\t\tinputArray[index++] = Integer.parseInt(st);\n\t\treturn inputArray;\n\n\t}",
"public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }",
"private ArrayList<Card> readHandString(String handLine)\n {\n ArrayList<Card> hand = new ArrayList<Card>();\n Scanner handLineScanner = new Scanner(handLine);\n handLineScanner.useDelimiter(\",\");\n while (handLineScanner.hasNext())\n {\n String cardString = handLineScanner.next();\n Card card = readCardString(cardString);\n hand.add(card);\n }\n handLineScanner.close();\n return hand;\n }",
"protected String[] getStringValues(String varName) {\n if (_textDataMap == null) readAllData();\n String[] values = _textDataMap.get(varName);\n return values;\n }",
"public static synchronized List<Pair<String, double[]>> getDataFromFile(String fileName) throws Exception\r\n\t{\t\r\n\t\tValidationHelper.validateIfParameterIsNullOrEmpty(fileName, \"fileName\");\r\n\t\t\r\n\t\tif (_dataCache.containsKey(fileName)) \r\n\t\t\treturn _dataCache.get(fileName);\r\n\t\t\r\n\t\tFile file = new File(fileName);\r\n\t\t\r\n\t\tValidationHelper.validateIfFileParameterExists(file, fileName);\r\n\t\t\r\n\t\tArrayList<Pair<String, double[]>> inputData = new ArrayList<Pair<String, double[]>>();\r\n\t\t\r\n\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\r\n\t\t\r\n\t\tString temp = null;\r\n\t\t\r\n\t\twhile ((temp = reader.readLine()) != null)\r\n\t\t{\r\n\t\t\ttemp = temp.replaceAll(\" \", \"\");\r\n\t\t\t\r\n\t\t\tString[] tokens = temp.split(\",\");\r\n\t\t\t\r\n\t\t\tif (tokens != null && tokens.length > 0)\r\n\t\t\t{\r\n\t\t\t\tdouble[] input = new double[tokens.length - 1];\r\n\t\t\t\tfor (int i = 0; i < tokens.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tString token = tokens[i];\r\n\r\n\t\t\t\t\tif (i == tokens.length-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tinputData.add(new Pair<String, double[]>(token, input));\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 (token.matches(\"-{0,1}[0-9]{1,}(.[0-9]{1,}){0,1}\"))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdouble data = Double.parseDouble(token);\r\n\t\t\t\t\t\t\tinput[i] = data;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (!_dataCache.containsKey(fileName))\r\n\t\t\t_dataCache.put(fileName, inputData);\r\n\t\t\r\n\t\treturn inputData;\r\n\t}",
"private void readVenueFile(String path)\n {\n FileIO fileIO = new FileIO();\n fileIO.setFileName(path);\n String fileData = fileIO.readFile();\n String[] data = fileData.split(\"\\\\n\"); // split data by new line character\n for(int i = 0 ; i < data.length ; i++)\n {\n String[] values = data[i].split(\",\"); //split each row by ,\n getVenues().addVenue(values[0], Integer.parseInt(values[1]),Integer.parseInt(values[2]), Double.parseDouble(values[3])); // add a venue to the collection\n } \n }",
"private SensorReading extractReading(String line) {\n\t\tList<Integer> tempArray = new ArrayList<Integer>();\n\t\tString[] sr = line.split(\",\");\n\t\tfor(int i=0; i<sr.length; i++) {\n\t\t\tint num = Integer.MIN_VALUE;\n\t\t\ttry {\n\t\t\t\tnum = Integer.parseInt(sr[i]);\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\t// if num is not integer, skip the current line\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttempArray.add(num);\n\t\t}\t\t\t\n\t\tif(tempArray.size() == sr.length) {\n\t\t\treturn new SensorReading(tempArray, zeroValues);\n\t\t}\n\t\treturn null;\n\t}",
"List<CountryEntity> parseLines(List<String> line);",
"private static String[] readFile(String path) throws FileNotFoundException{\n\t\tjava.io.File file = new java.io.File(path);\n\t\tjava.util.Scanner sc = new java.util.Scanner(file); \n\t\tStringBuilder content = new StringBuilder();\n\t\twhile (sc.hasNextLine()) {\n\t\t String line = sc.nextLine();\n\t\t if (!line.startsWith(\"!--\")){\n\t\t \tline = line.trim();\n\t\t \tString[] lineContent = line.split(\"/\");\n\t\t \tfor (String entry : lineContent){\n\t\t \t\tcontent.append(entry);\n\t\t \t\tcontent.append(\"/\");\n\t\t \t}\n\t\t \tcontent.append(\"!\");\n\t\t }\n\t\t}\n\t\tsc.close();\n\t\treturn content.toString().split(\"!\");\n\t}",
"@TypeConverter\r\n public String[] fromString(String value) {\r\n String[] split = value.split(SEPERATOR.toString());\r\n return value.isEmpty() ? split : split;\r\n }",
"public double[] readVector(String line, int index) {\n\n String[] list = line.split(\" \");\n int numColumns = Integer.parseInt(list[index]);\n double[] res = new double[numColumns];\n\n int num = index + 1;\n for (int j = 0; j < numColumns; j++) {\n res[j] = Double.parseDouble(list[num]);\n num++;\n }\n return res;\n }",
"public static String[][][] schematic(File file) {\n try {\n blocks = new String[8][11][11];\n \n BufferedReader bufRdr = new BufferedReader(new FileReader(file));\n String line;\n //read each line of text file\n for (int level = 0; level < 8; level++) {\n for (int row = 0; row < 11; row++) {\n line = bufRdr.readLine();\n String[] strArr = line.split(\",\");\n System.arraycopy(strArr, 0, blocks[level][row], 0, 11);\n }\n }\n } catch (IOException io) {\n System.err.println(Constants.MY_PLUGIN_NAME + \" Could not read csv file\");\n }\n return blocks;\n }",
"private void getEachElementOfTheLine() {\n int nbOfComa = 0;\n String idItemCraft = \"\";\n ArrayList<String> idItemNeeded = new ArrayList<>();\n ArrayList<String> quantityItemNeeded = new ArrayList<>();\n boolean isFinished = false;\n for (int c = 0; c < line.length() && !isFinished; c++) {\n switch (nbOfComa) {\n\n case 2:\n quantityItemNeeded.add(new String(\"\" + line.charAt(c)));\n if (line.charAt(c + 1) == '.') {\n isFinished = true;\n } else if (line.charAt(c + 1) == ';') {\n nbOfComa = 1;\n c++;\n }\n break;\n\n case 1:\n idItemNeeded.add(new String(\"\" + line.charAt(c)));\n if (line.charAt(c + 1) == ',') {\n nbOfComa++;\n c++;\n }\n break;\n\n case 0:\n idItemCraft = idItemCraft + line.charAt(c);\n if (line.charAt(c + 1) == ';') {\n nbOfComa++;\n c++;\n }\n break;\n\n default:\n break;\n }\n }\n this.idItemCraft = idItemCraft;\n this.idItemNeeded = idItemNeeded;\n this.quantityItemNeeded = quantityItemNeeded;\n }",
"public static List<List<String>> readFile() {\r\n List<List<String>> out = new ArrayList<>();\r\n File dir = new File(\"./tmp/data\");\r\n dir.mkdirs();\r\n File f = new File(dir, \"storage.txt\");\r\n try {\r\n f.createNewFile();\r\n Scanner s = new Scanner(f);\r\n while (s.hasNext()) {\r\n String[] tokens = s.nextLine().split(\"%%%\");\r\n List<String> tokenss = new ArrayList<>(Arrays.asList(tokens));\r\n out.add(tokenss);\r\n }\r\n return out;\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }",
"private static ArrayList<ArrayList<Integer>> populateListOfInputs() {\n\t\t\n\t\tArrayList<ArrayList<Integer>> listOflist = new ArrayList<ArrayList<Integer>>();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(filePath);\n\t\t\tBufferedReader br = new BufferedReader(fr);\t\t\n\t\t\t\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t// Remove all spaces, '[' and ']'\n\t\t\t\tString numbers = line.replace(\" \", \"\");\n\t\t\t\tnumbers = numbers.replace(\"[\", \"\");\n\t\t\t\tnumbers = numbers.replace(\"]\", \"\");\n\t\t\t\t\n\t\t\t\tif(line.equals(\"\")) {\n\t\t\t\t\t//if empty line leave it and continue the loop\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\t\t\n\t\t\t\tString[] individualnums = numbers.split(\",\");\n\t\t\t\tfor (int i = 0; i < individualnums.length; i++) {\t\t\t\t\t\n\t\t\t\t\tlist.add(Integer.parseInt(individualnums[i]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlistOflist.add(list);\t\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listOflist;\n\t}",
"protected abstract DataTypes[] processLine(MutableCharArrayString line);",
"public static ArrayList<ArrayList<String>> readGrid(String fileName) {\n\t\t\n\n\t\tFile input = new File(fileName);\n\t\tArrayList<ArrayList<String>> information = new ArrayList<ArrayList<String>>();\n\t\t\n\t\t\n\t\t//uses a simple try catch to read the file\n\t\ttry {\n\t\t\t\n\t\t\tScanner fileReader = new Scanner(input);\n\t\t\tArrayList<String> row = new ArrayList<String>();\n\t\t\tString rowInfo;\n\t\t\twhile(fileReader.hasNextLine()) {\n\t\t\t\trowInfo = fileReader.nextLine();\n\t\t\t\trow = new ArrayList<String>(Arrays.asList(rowInfo.split(\",\")));\n\t\t\t\tinformation.add(row);\n\t\t\t}\n\t\t\t\n\t\t\tfileReader.close();\n\t\t} catch(FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn information;\n\t}"
] | [
"0.70933497",
"0.6928092",
"0.68053263",
"0.6757063",
"0.67359436",
"0.6623387",
"0.6575938",
"0.6561029",
"0.6406892",
"0.6351458",
"0.6336013",
"0.63036305",
"0.627799",
"0.6276479",
"0.6231198",
"0.6221276",
"0.62157875",
"0.61111265",
"0.60258603",
"0.59754837",
"0.5926553",
"0.59026724",
"0.58959",
"0.5895293",
"0.58556116",
"0.58530146",
"0.5842229",
"0.5841868",
"0.58309907",
"0.5824296",
"0.5820052",
"0.5818199",
"0.58155847",
"0.58098644",
"0.5808267",
"0.58064723",
"0.5805264",
"0.57921934",
"0.578176",
"0.5765765",
"0.57429945",
"0.5741229",
"0.57411385",
"0.57276964",
"0.5722879",
"0.57103264",
"0.57093674",
"0.5706333",
"0.56972736",
"0.5654192",
"0.56459004",
"0.56202847",
"0.561152",
"0.5611453",
"0.56104976",
"0.55953324",
"0.558583",
"0.55495375",
"0.5548546",
"0.5520795",
"0.5517596",
"0.55140394",
"0.55138737",
"0.5510447",
"0.5510418",
"0.55081576",
"0.550737",
"0.5506228",
"0.5489381",
"0.5483025",
"0.547821",
"0.5462286",
"0.5460527",
"0.54445827",
"0.53797287",
"0.53763545",
"0.53750896",
"0.5372214",
"0.53654045",
"0.5347928",
"0.5333183",
"0.53318346",
"0.53271455",
"0.5326197",
"0.5323852",
"0.53070015",
"0.5302465",
"0.52905935",
"0.5289666",
"0.5286379",
"0.52845764",
"0.52817786",
"0.5281621",
"0.5280208",
"0.5278394",
"0.5267956",
"0.5263722",
"0.52614",
"0.5251428",
"0.52511126"
] | 0.6681295 | 5 |
Highlights empty EditText fields and returns true if fields were highlighted, false otherwise. | @Override
public boolean highlightEmptyFields() {
boolean returnValue = false;
if (titleField.getText().toString().trim().isEmpty()) {
titleField.setError("This field cannot be empty");
returnValue = true;
}
if (descriptionField.getText().toString().trim().isEmpty()) {
descriptionField.setError("This field cannot be empty");
returnValue = true;
}
if (questionField.getText().toString().trim().isEmpty()) {
questionField.setError("This field cannot be empty");
returnValue = true;
}
if (answer1Field.getText().toString().trim().isEmpty()) {
answer1Field.setError("This field cannot be empty");
returnValue = true;
}
if (answer2Field.getText().toString().trim().isEmpty()) {
answer2Field.setError("This field cannot be empty");
returnValue = true;
}
if (answer3Field.getText().toString().trim().isEmpty()) {
answer3Field.setError("This field cannot be empty");
returnValue = true;
}
if (answer4Field.getText().toString().trim().isEmpty()) {
answer4Field.setError("This field cannot be empty");
returnValue = true;
}
if (answer5Field.getText().toString().trim().isEmpty()) {
answer5Field.setError("This field cannot be empty");
returnValue = true;
}
return returnValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkIfAllFieldsAreFilled(EditText[] editTexts) {\n\n boolean allFilled = true;\n\n for (EditText currentField : editTexts) {\n\n if (currentField.getText().toString().length() <= 0) {\n currentField.setBackground(ContextCompat.getDrawable(Objects.requireNonNull(getContext()), R.drawable.rounded_blue_edittext));\n allFilled = false;\n }\n\n }\n\n return allFilled;\n\n }",
"private boolean checkIfAllFieldsAreFilled(EditText[] editTexts) {\n\n boolean allFieldsAreFilled = true;\n\n for (EditText currentField : editTexts) {\n\n if (currentField.getText().toString().length() <= 0) {\n currentField.setBackground(ContextCompat.getDrawable(Objects.requireNonNull(this), R.drawable.rounded_blue_edittext));\n allFieldsAreFilled = false;\n }\n\n }\n\n return allFieldsAreFilled;\n\n }",
"private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }",
"public boolean isFilled() {\n return(!this.getText().trim().equals(\"\"));\n }",
"private boolean emptyBoxes() {\n return (FirstName.getText().toString().isEmpty() || LastName.getText().toString().isEmpty() ||\n ID.getText().toString().isEmpty() || PhoneNumber.getText().toString().isEmpty() ||\n EmailAddress.getText().toString().isEmpty() || CreditCard.getText().toString().isEmpty() ||\n Password.getText().toString().isEmpty());\n }",
"private boolean fieldsFilled(){\n return !editTextEmail.getText().toString().isEmpty() &&\n !editTextPassword.getText().toString().isEmpty();\n }",
"private Boolean isFieldEmpty(EditText field) {\n return field.getText().toString().trim().equals(\"\");\n }",
"private boolean isEmpty(EditText etText) {\n\t\tif (etText.getText().toString().trim().length() > 0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"protected boolean isFieldEmpty(EditText text) {\n if (text.getText().toString().trim().length() == 0) {\n text.setError(getString(R.string.empty_field));\n text.requestFocus();\n return true;\n }\n return false;\n }",
"private boolean areFieldsNotBlank() {\r\n boolean ok=true;\r\n if (dogNameField.getText() == null) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n } else if (dogNameField.getText().isBlank()) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n }\r\n return ok;\r\n }",
"public boolean isEmpty(EditText etText){\n return etText.getText().toString().length() == 0;\n }",
"private boolean isEmpty(EditText etText) {\n return etText.getText().toString().trim().length() <= 0;\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSelection() == null);\n\t}",
"public boolean check(){\n for(TextField texts:textFields){\n if(texts.getText().isEmpty()){\n return false;\n }\n }\n return true;\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"private boolean isAnyEmpty(){\n //get everything\n return (fname.getText().toString().trim().length() == 0)\n || (lname.getText().toString().trim().length() == 0)\n || (email.getText().toString().trim().length() == 0)\n || (password.getText().toString().trim().length() == 0);\n }",
"private static boolean isEmpty(EditText etText) {\n if (etText.getText().toString().trim().length() > 0)\n return false;\n\n return true;\n }",
"public boolean checkBlankCorrectness(LinearLayout layout) {\n boolean isCorrect = false;\n int count = layout.getChildCount();\n try {\n for (int i = 0; i < count; i++) {\n EditText view = ((EditText) layout.getChildAt(i));\n if (!TextUtils.isEmpty(view.getTag().toString().trim())) {\n\n /*Replacing ck-editor ghost character with blank*/\n String correctAnswer = view.getTag().toString().trim();\n correctAnswer = correctAnswer.replace(ConstantUtil.CK_EDITOR_GHOST_CHARACTER, ConstantUtil.BLANK);\n\n isCorrect = correctAnswer.trim().equalsIgnoreCase(view.getText().toString().trim());\n\n } else {\n return false;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return isCorrect;\n }",
"private boolean isEmptyField (EditText editText){\n boolean result = editText.getText().toString().length() <= 0;\n if (result)\n Toast.makeText(UserSignUp.this, \"Fill all fields!\", Toast.LENGTH_SHORT).show();\n return result;\n }",
"boolean isEmpty(EditText text){\n CharSequence check = text.getText().toString().trim();\n return TextUtils.isEmpty(check);\n }",
"public boolean textboxIsEmpty(EditText editText) {\n return editText.getText().toString().trim().length() == 0;\n }",
"private boolean noFieldsEmpty() {\n if ( nameField.getText().isEmpty()\n || addressField.getText().isEmpty()\n || cityField.getText().isEmpty()\n || countryComboBox.getSelectionModel().getSelectedItem() == null\n || divisionComboBox.getSelectionModel().getSelectedItem() == null\n || postalField.getText().isEmpty()\n || phoneField.getText().isEmpty() ) {\n errorLabel.setText(rb.getString(\"fieldBlank\"));\n return false;\n }\n return true;\n }",
"public void CheckEditTextIsEmptyOrNot()\r\n {\r\n ename_holder = name_event.getText().toString();\r\n edesc_holder = desc_event.getText().toString();\r\n eloc_holder = loc_event.getText().toString();\r\n edate_holder = date_event.getText().toString();\r\n etime_holder = time_event.getText().toString();\r\n elat_holder = lat_event.getText().toString();\r\n elong_holder = long_event.getText().toString();\r\n\r\n if(TextUtils.isEmpty(ename_holder) || TextUtils.isEmpty(edesc_holder) || TextUtils.isEmpty(eloc_holder) || TextUtils.isEmpty(edate_holder) || TextUtils.isEmpty(etime_holder) || TextUtils.isEmpty(elat_holder) || TextUtils.isEmpty(elong_holder))\r\n {\r\n CheckEditText = false;\r\n }\r\n else\r\n {\r\n CheckEditText = true;\r\n }\r\n }",
"private boolean isEmpty(TextInputEditText textInputEditText) {\n if (textInputEditText.getText().toString().trim().length() > 0)\n return false;\n return true;\n }",
"public boolean fieldsAreFilled(){\r\n boolean filled = true;\r\n if(txtFName.getText().trim().isEmpty() | txtFEmail.getText().trim().isEmpty() | txtFPhone.getText().trim().isEmpty()){\r\n filled = false;\r\n }\r\n return filled;\r\n }",
"public static boolean isEmpty(EditText et) {\n return TextUtils.isEmpty(et.getText().toString().trim());\n }",
"protected boolean isAllRequiredTxtFieldsFilled() {\r\n JTextField[] txtFields = {\r\n txtFieldFirstName, txtFieldLastName,\r\n txtFieldDateOfBirth, txtFieldIBAN,\r\n txtFieldState, txtFieldHouseNumber,\r\n txtFieldPostcode, txtFieldLocation,\r\n txtFieldCountry, txtFieldState\r\n };\r\n\r\n for (JTextField txtField : txtFields) {\r\n if (txtField.getText().equals(\"\")) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"private boolean check()\n\t{\n\t\tComponent[] comp = contentPanel.getComponents();\n\t\tint check=0;\n\t\tfor(Component c:comp)\n\t\t{\n\t\t\tif(c instanceof JTextField)\n\t\t\t{\n\t\t\t\tif(((JTextField)c).getText().trim().equals(\"\"))\n\t\t\t\t\tcheck++;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn check==0 ? true : false;\n\t}",
"public boolean isBlank() {\n return (tags.length() == 0);\n }",
"private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }",
"public boolean isEmpty() {\n return labeledFieldEmptyOrHidden;\n }",
"public void CheckEditTextStatus(){\n\n // Getting value from All EditText and storing into String Variables.\n NameHolder = Name.getText().toString();\n EmailHolder = Email.getText().toString();\n PasswordHolder = Password.getText().toString();\n\n // Checking EditText is empty or no using TextUtils.\n if( TextUtils.isEmpty(NameHolder)|| TextUtils.isEmpty(EmailHolder)|| TextUtils.isEmpty(PasswordHolder)){\n\n EditTextEmptyHolder = false ;\n\n }\n else {\n\n EditTextEmptyHolder = true ;\n }\n }",
"private void checkFieldsForEmptyValues() {\n String s1 = edtEmail.getText().toString();\n String s2 = edtDisplayName.getText().toString();\n String s3 = edtPaswd.getText().toString();\n\n if (s1.equals(\"\") || s2.equals(\"\") || s3.equals(\"\")) { //disables the button\n btnRegister.setEnabled(false);\n } else { //enables the button\n btnRegister.setEnabled(true);\n }\n }",
"private boolean checkfields() {\n try {\n Integer.parseInt(checknum.getText().toString());\n Integer.parseInt(banknum.getText().toString());\n Integer.parseInt(branchnum.getText().toString());\n Integer.parseInt(accountnum.getText().toString()); //was commented\n\n } catch (NumberFormatException e) { // at least one of these numbers is not Integer\n return false;\n }\n\n if (checknum.getText().toString().equals(null) || banknum.getText().toString().equals(null) ||branchnum.getText().toString().equals(null)|| accountnum.getText().toString().equals(null))\n return false; // At least one of the fields is empty\n\n return true;\n }",
"public boolean isEmpty() {\n return (this.text == null);\n }",
"public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(name, phone, email, tags);\n }",
"public boolean isSelectionEmpty() {\n\t\t\treturn tablecolselectmodel.isSelectionEmpty();\n\t\t}",
"private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }",
"public boolean isSelectionEmpty() {\n return selectionEmpty;\n }",
"public boolean isLabeledFieldEmptyOrHidden() {\n return labeledFieldEmptyOrHidden;\n }",
"public static boolean isEditTextEmpty(EditText editText, String warning,\n\t\t\tDrawable drawable) {\n\t\t// reference is null\n\t\tif (editText == null) {\n\t\t\treturn true;\n\t\t}\n\t\t// this is emptyfield\n\t\tif (isTextEmpty(editText.getText().toString())) {\n\t\t\t// display warning in editText\n\t\t\tif (!isTextEmpty(warning)) {\n\t\t\t\tif (drawable == null) {\n\t\t\t\t\teditText.setError(warning);\n\t\t\t\t} else {\n\t\t\t\t\teditText.setError(warning, drawable);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean checkEmptyEditText(EditText text, TextInputLayout TFB, String massage) {\n\n if (text.getText().toString().isEmpty())\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n\n }",
"public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }",
"public static boolean isEditTextEmpty(EditText editText, String warning) {\n\t\treturn isEditTextEmpty(editText, warning, null);\n\t}",
"private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }",
"public boolean noFill(){\n return fillCharacter == EMPTY_CHAR;\n }",
"public boolean enableSubmit(EditText... editTexts){\n for(EditText values:editTexts){\n if(values.getError() != null){\n return false;\n }\n if(values.getText().toString().length() == 0){\n return false;\n }\n }\n return true;\n }",
"public boolean isSelectAllEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getCharCount() > 0;\n \t}",
"@Override\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\n }",
"public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(name);\n }",
"private boolean isFormEmpty(){\n if(pickupLocationInput.getText().toString().length() != 0){\n return false;\n }\n\n if(destinationInput.getText().toString().length() != 0){\n return false;\n }\n\n if(notesInput.getText().toString().length() != 0){\n return false;\n }\n\n return true;\n }",
"private boolean checkAllFields() {\n formValues.clear();\n\n if (genderRadio != null) {\n RadioButton gender = (RadioButton) findViewById(genderRadio.getCheckedRadioButtonId());\n formValues.add(gender.getText().toString());\n }\n\n boolean shouldPassToActivity = true;\n for (Map.Entry<EditText, Boolean> entry : map.entrySet()) {\n if (!checkFieldColor(entry.getKey(), entry.getValue())) shouldPassToActivity = false;\n if (shouldPassToActivity) formValues.add(entry.getKey().getText().toString());\n }\n\n return shouldPassToActivity;\n }",
"private boolean checkEmptyTitle(TextInputLayout name) {\n if (\"\".equals(Objects.requireNonNull(name.getEditText()).getText().toString())) {\n name.setErrorEnabled(true);\n name.setError(getString(R.string.non_empty_field));\n return false;\n }\n\n return true;\n }",
"public boolean dataEntered() {\n \t\n \t//finds all the views\n \tEditText txtmatch = (EditText) this.findViewById(R.id.te_match_num);\n\t\tEditText txtteam = (EditText) this.findViewById(R.id.te_team_num);\n\t\tRadioButton btnBlue = (RadioButton) this.findViewById(R.id.btn_blue);\n\t\tRadioButton btnRed = (RadioButton) this.findViewById(R.id.btn_red);\n\t\t\n\t\tif(!txtmatch.getText().toString().matches(\"\") && \t\t//Checks to make sure a match number was entered\n\t\t !txtteam.getText().toString().matches(\"\") && \t\t//checks to make sure a team number was entered\n\t\t (btnBlue.isChecked() || btnRed.isChecked())){\t\t//checks to make sure an alliance color was selected\n\t\t\treturn true;\n\t\t}return false;\n }",
"public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(title, moduleCode, credits, memo, description, semester, tags);\n }",
"@Override\r\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\r\n }",
"public static boolean checkEmptyFields(Node... itemToCheck) {\n List<Node> failedFields = new ArrayList<>();\n toolTip.setStyle(\"-fx-background-color: linear-gradient(#FF6B6B , #FFA6A6 );\"\n + \" -fx-font-weight: bold;\");\n hackTooltipStartTiming(toolTip);\n for (Node n : arrayToList(itemToCheck)) {\n // Validate TextFields\n if (n instanceof TextField) {\n TextField textField = (TextField) n;\n textField.textProperty().addListener((ObservableValue<? extends String> observable, String oldValue, String newValue) -> {\n removeToolTipAndBorderColor(textField, toolTip);\n });\n if (textField.getText() == null || textField.getText().trim().equals(\"\")) {\n failedFields.add(n);\n addToolTipAndBorderColor(textField, toolTip);\n } else {\n removeToolTipAndBorderColor(textField, toolTip);\n }\n } // Validate Combo Box\n else if (n instanceof ComboBox) {\n ComboBox comboBox = (ComboBox) n;\n comboBox.valueProperty().addListener((ObservableValue observable, Object oldValue, Object newValue) -> {\n removeToolTipAndBorderColor(comboBox, toolTip);\n });\n if (comboBox.getValue() == null) {\n failedFields.add(n);\n addToolTipAndBorderColor(comboBox, toolTip);\n } else {\n removeToolTipAndBorderColor(comboBox, toolTip);\n }\n } // Validate TextArea\n else if (n instanceof TextArea) {\n TextArea textArea = (TextArea) n;\n textArea.textProperty().addListener((ObservableValue<? extends String> observable, String oldValue, String newValue) -> {\n removeToolTipAndBorderColor(textArea, toolTip);\n });\n if (textArea.getText() == null || textArea.getText().trim().equals(\"\")) {\n failedFields.add(n);\n addToolTipAndBorderColor(textArea, toolTip);\n } else {\n removeToolTipAndBorderColor(textArea, toolTip);\n }\n }\n //ADD YOUR VALIDATION HERE\n //TODO\n }\n\n return failedFields.isEmpty();\n }",
"private boolean checkFieldColor(EditText et, Boolean bool) {\n\n if (et.getHint().toString().contains(\"Email\") && bool && !isValidEmail(et.getText().toString())) {\n et.setBackground(getResources().getDrawable(R.color.progressWeak));\n return false;\n\n } else if (et.getText().length() == 0 && bool == true) {\n et.setBackgroundColor(Color.RED);\n return false;\n } else\n return true;\n }",
"public static boolean isEmpty(TextView view) {\n if (view != null && view.getText() != null) {\n return getString(view).length() == 0;\n }\n return false;\n }",
"public abstract boolean isBlank() throws Exception;",
"public boolean isEmpty() {\n return cursor==-1 && lines.isEmpty();\n }",
"@Override\n\t\tprotected boolean isTextValid()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (getField().getText().isEmpty())\n\t\t\t\t\tthrow new AppException(ErrorId.NO_FILTER);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (AppException e)\n\t\t\t{\n\t\t\t\tGuiUtils.setFocus(getField());\n\t\t\t\tJOptionPane.showMessageDialog(this, e, App.SHORT_NAME, JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(title, type, author, details, tags);\n }",
"private boolean badEntryFound() {\n boolean flag = false;\n \n if(positionComboBox.getSelectedIndex() <= 0)\n {\n positionLabel.setForeground(Color.red);\n positionComboBox.requestFocusInWindow();\n flag = true;\n }\n else\n {\n positionLabel.setForeground(Color.black);\n }\n \n if(firstTextField.getText().trim().isEmpty())\n {\n fNameLabel.setForeground(Color.red);\n firstTextField.requestFocusInWindow();\n flag = true;\n }\n else\n {\n fNameLabel.setForeground(Color.black);\n }\n \n if(lastTextField.getText().trim().isEmpty())\n {\n lNameLabel.setForeground(Color.red);\n lastTextField.requestFocusInWindow();\n flag = true;\n }\n else\n {\n lNameLabel.setForeground(Color.black);\n }\n \n if(codeTextField.getText().trim().isEmpty())\n {\n codeLabel.setForeground(Color.red);\n codeTextField.requestFocusInWindow();\n flag = true;\n }\n else\n {\n codeLabel.setForeground(Color.black);\n }\n \n \n return flag;\n }",
"protected boolean areIntFieldsBlank(EditText age, EditText mobilenum) {\n if (age.getText().toString().isEmpty() || mobilenum.getText().toString().isEmpty()) {\n Toast.makeText(FreelanceEditProfileActivity.this,\n \"ERROR: You may not leave any of the fields empty.\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n else\n return false;\n }",
"public boolean isEmpty() {\r\n return lastCursor - firstCursor == 1;\r\n }",
"private boolean hayCamposVacios() {\r\n\t\tif(nomTextField.getText().isEmpty()\r\n\t\t\t|| claveTextField.getText().isEmpty()\r\n\t\t\t\t|| reingresoTextField.getText().isEmpty()\r\n\t\t\t\t\t|| preguntaTextField.getText().isEmpty()\r\n\t\t\t\t\t\t|| respuestaTextField.getText().isEmpty())\r\n\t\t\treturn true;\t\t\r\n\t\treturn false;\r\n\t}",
"@JsonIgnore\n\tpublic boolean isEmptyEdit() {\n\t\treturn getUpdatedStatements().isEmpty();\n\t}",
"boolean isHighlighted();",
"protected boolean skipBlankValues() {\n return true;\n }",
"public static boolean isEmpty (TextFragment textFragment) {\r\n \t\treturn (textFragment == null || (textFragment != null && textFragment.isEmpty()));\r\n \t}",
"private boolean isInvalid(JTextField campo) {\n return campo.getText().isEmpty();\n }",
"protected boolean isValid() {\n \t\t\treturn fStart > -1 && fEnd > -1 && fText != null;\n \t\t}",
"public final boolean hasAllRequiredField() {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n CharSequence obj = editText.getText().toString();\n int length = obj.length() - 1;\n int i = 0;\n boolean z = false;\n while (i <= length) {\n boolean z2 = obj.charAt(!z ? i : length) <= ' ';\n if (!z) {\n if (!z2) {\n z = true;\n } else {\n i++;\n }\n } else if (!z2) {\n break;\n } else {\n length--;\n }\n }\n String obj2 = obj.subSequence(i, length + 1).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n CharSequence obj3 = editText2.getText().toString();\n int length2 = obj3.length() - 1;\n int i2 = 0;\n boolean z3 = false;\n while (i2 <= length2) {\n boolean z4 = obj3.charAt(!z3 ? i2 : length2) <= ' ';\n if (!z3) {\n if (!z4) {\n z3 = true;\n } else {\n i2++;\n }\n } else if (!z4) {\n break;\n } else {\n length2--;\n }\n }\n String obj4 = obj3.subSequence(i2, length2 + 1).toString();\n if (TextUtils.isEmpty(obj2) || TextUtils.isEmpty(obj4)) {\n return false;\n }\n return true;\n }",
"public boolean isSimple() {\r\n return this.mTextBackgroundColor == 1 && this.mTextSelectionStart == 0 && this.mTextSelectionEnd == 0 && this.mLineCharOffsets == null && this.mLineBaselines == null && this.mHint == null;\r\n }",
"public Boolean EsDefecto()\n {\n return (m_szTextoDefecto.isEmpty()) || (getText().toString().trim().equals(m_szTextoDefecto));\n }",
"public boolean isPaintingAnnotations() {\n \t\treturn !fConfiguredAnnotationTypes.isEmpty() || !fConfiguredHighlightAnnotationTypes.isEmpty();\n \t}",
"private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"public Boolean getAllowEmptyFields() {\n return (Boolean) getExtProperty(\"allowEmptyFields\", DatabaseConfig.FEATURE_ALLOW_EMPTY_FIELDS);\n }",
"public boolean isHighlighted() {\r\n\t\treturn view.isHighlighted();\r\n\t}",
"@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (s.toString().equalsIgnoreCase(\"\")) {\n mTextTarget.setTextColor(getResources().getColor(R.color.black));\n mTextTarget.setEnabled(false);\n } else {\n //Not sure what this color is exactly doing\n //mTextTarget.setTextColor(getResources().getColorStateList(R.color.text_field_back_color));\n mTextTarget.setEnabled(true);\n }\n\n }",
"public boolean isEditingEnabled() {\r\n // Additional business logic can go here\r\n return (getContactSelection().getMinSelectionIndex() != -1);\r\n }",
"public void validateTextField ()\r\n\t{\r\n\t\tif (isEditValid ())\r\n\t\t{\r\n\t\t\tsuper.setBackground (UIConstants.GEOPOD_GREEN);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.setBackground (UIConstants.GEOPOD_RED);\r\n\t\t}\r\n\t}",
"protected boolean areStrFieldsBlank(String password, String firstname,\n String midname, String lastname, String email,\n String profile, String educ, String expertise,\n String location) {\n if (password.isEmpty() || firstname.isEmpty() || midname.isEmpty()\n || lastname.isEmpty() || email.isEmpty() || profile.isEmpty() ||\n educ.isEmpty() || expertise.isEmpty() || location.isEmpty()) {\n Toast.makeText(FreelanceEditProfileActivity.this,\n \"ERROR: You may not leave any of the fields empty.\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n else\n return false;\n }",
"@Override\r\n public boolean checkNull() {\r\n // Check if the two textfields are null or default \r\n return newIng_ingName.getText().equals(\"\") || newIng_ingCal.getText().equals(\"\");\r\n }",
"public boolean validateData(){\n boolean dataOk=true;\n if (etName.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Name field is void.\");\n dataOk=false;\n }\n if (etSurname.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Surname field is void.\");\n dataOk=false;\n }\n if (etDescription.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Description field is void.\");\n dataOk=false;\n }\n return dataOk;\n }",
"public boolean isEmpty() {\n return gestures.isEmpty();\n\n }",
"public boolean externalFilled() {\n return firstName != null && !firstName.isEmpty()\n || lastName != null && !lastName.isEmpty()\n || email != null && !email.isEmpty();\n }",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\tif(!tfPolje.getText().trim().equals(\"\")){\r\n\t\t\ttfPolje.setBackground(Color.WHITE);\r\n\t\t}\r\n\t}",
"public boolean isFilled(){\n\t\tfor(int i=0;i<size;i++){\n\t\t\tfor(int j=0;j<size;j++){\n\t\t\t\tif(board[i][j] == '\\u0000')\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isEmpty() {\n\n \tif (numLines == 0) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\t\n }",
"@Override\n public boolean isValid() {\n if((eMultipleAnswerType == null && textAnswerIn.getText().toString().trim().isEmpty()) || (eMultipleAnswerType != null && !compoundButtonController.isChecked())){\n try {\n invalidText = getResources().getString(R.string.output_invalidField_questionAnswering_notAnswered);\n } catch (NullPointerException e){\n e.printStackTrace();\n }\n return false;\n }\n return true;\n }",
"public boolean hasValidAnnotatedItemSelected() {\n return !(autoComplete.getSelection() == null\n || ((Comboitem)autoComplete.getSelection()).getAnnotatedProperties() == null\n || ((Comboitem)autoComplete.getSelection()).getAnnotatedProperties().isEmpty());\n }",
"private boolean checkInputValidation(){\n if(facility_EDT_value.getText().toString().trim().isEmpty()){\n Toast.makeText(getContext(), \"Please enter search value!\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"public boolean hasText() {\n return !TextUtils.isEmpty(mText);\n }",
"private boolean validateInputs() {\n if (Constants.NULL.equals(review)) {\n reviewET.setError(\"Must type a review!\");\n reviewET.requestFocus();\n return false;\n }\n if (Constants.NULL.equals(heading)) {\n headingET.setError(\"Heading cannot be empty\");\n headingET.requestFocus();\n return false;\n }\n return true;\n }",
"public boolean isEmpty()\r\n {\r\n return getCharacters().isEmpty();\r\n }",
"public abstract boolean canMatchEmpty();",
"public boolean isEmpty() { return this.filterExpression.length()==0; }",
"public boolean isFilled() {\n return filled;\n }"
] | [
"0.7086846",
"0.700864",
"0.65773684",
"0.65716136",
"0.65477365",
"0.6481",
"0.6437921",
"0.6389267",
"0.63498175",
"0.63304055",
"0.63190526",
"0.6316032",
"0.6307565",
"0.6302029",
"0.62824637",
"0.62767273",
"0.626057",
"0.6200189",
"0.61724466",
"0.6088689",
"0.6024354",
"0.60036546",
"0.5998371",
"0.5984843",
"0.5973835",
"0.5940995",
"0.58766586",
"0.58760726",
"0.57856625",
"0.5776178",
"0.57407403",
"0.5696707",
"0.56932765",
"0.5612903",
"0.5607426",
"0.56027085",
"0.5586277",
"0.5584962",
"0.5560015",
"0.5557368",
"0.55468386",
"0.5538263",
"0.55272424",
"0.548064",
"0.54698354",
"0.54583794",
"0.5441897",
"0.5435035",
"0.5428889",
"0.54254335",
"0.5416594",
"0.5415103",
"0.5403759",
"0.54019743",
"0.53906727",
"0.539062",
"0.53903174",
"0.5386452",
"0.53812623",
"0.5361763",
"0.5352282",
"0.5349473",
"0.5330994",
"0.5320085",
"0.53135306",
"0.525779",
"0.5256715",
"0.5249738",
"0.52423036",
"0.52339864",
"0.5228259",
"0.5198358",
"0.5195916",
"0.5194165",
"0.5173109",
"0.51587915",
"0.51487684",
"0.51479644",
"0.514346",
"0.5115106",
"0.5103382",
"0.50999326",
"0.5098578",
"0.50974894",
"0.5082396",
"0.50739926",
"0.50705963",
"0.5069832",
"0.50677407",
"0.5063432",
"0.50587326",
"0.50483197",
"0.5044927",
"0.50444967",
"0.5043387",
"0.5024269",
"0.5004581",
"0.5003429",
"0.50012696",
"0.50004584"
] | 0.7543114 | 0 |
set some date, so we can clean it | @Test
public void testClean() {
setReferenceDate_openPopup_check();
assertCalendarInputEqualsTo("Jan 1, 2012 12:00");
// invoke clean key
keyboard.sendKeys(CLEAN_KEY);
// apply
Graphene.guardAjax(keyboard).sendKeys(Keys.ENTER);
// the input should be empty
assertCalendarInputEqualsTo("");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDate(Date data);",
"public void setDate(Date date) {\n setDate(date, null);\n }",
"public void SetDate(Date date);",
"@Override\n\tprotected void setDate() {\n\n\t}",
"void unsetDate();",
"@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}",
"public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}",
"public void setDate(String date) {\n while (!date.endsWith(\"00\")){\n date+=\"0\";\n }\n try{\n this.date = FORMATTER.parse(date.trim());\n }catch (ParseException e){\n throw new RuntimeException(e);\n }\n\n }",
"private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}",
"void setDate(java.lang.String date);",
"void unsetFoundingDate();",
"void setCreateDate(Date date);",
"public void setDate() {\n this.date = new Date();\n }",
"private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}",
"public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }",
"public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }",
"public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }",
"public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}",
"private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }",
"public void setDate(String newDate)throws Exception{\n\t\t\n\t\tif (Pattern.matches(\"\\\\d\\\\d/\\\\d\\\\d/\\\\d\\\\d\\\\d\\\\d\", newDate)){\n\t\t\tthis.date = newDate;\n\t\t\toverWriteLine(\"Date\", newDate);\n\t\t}\n\t\n\t}",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n this.mDate = null;\n }\n }",
"public void setDate(long date)\r\n/* 199: */ {\r\n/* 200:299 */ setDate(\"Date\", date);\r\n/* 201: */ }",
"public void setDate(Date date) {\r\n this.date = date;\r\n }",
"public void setDueDate(Date d){dueDate = d;}",
"public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }",
"public void setDate (String s) {\n date = s;\n }",
"public void setDate(DateTime \n date) {\n this.date = date;\n }",
"public void setDate(int dt) {\n date = dt;\n }",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"private void setUnpaidSongCountDate(String val) {\n\t\tref.edit().putString(COL_UNPAID_SONG_COUNT_DATE, val).commit();\n\t}",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }",
"public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }",
"public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}",
"public void setString (String s) { //set method\n full_Date = s;\n if(!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\");\n\n Year = Integer.parseInt(full_Date.substring(0,3));\n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n\n \n}",
"public void setDate(String date){\n this.date = date;\n }",
"private void setDate(String headerName, long date)\r\n/* 329: */ {\r\n/* 330:483 */ SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMATS[0], Locale.US);\r\n/* 331:484 */ dateFormat.setTimeZone(GMT);\r\n/* 332:485 */ set(headerName, dateFormat.format(new Date(date)));\r\n/* 333: */ }",
"private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }",
"public abstract void setFecha_termino(java.lang.String newFecha_termino);",
"public void setDueDate(String newDueDate) {\n if (this.validateDate(newDueDate)) {\n dueDate = new GregorianCalendar();\n DateFormat dateForm = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n\n try {\n dueDate.setTime(dateForm.parse(newDueDate));//set this.DueDate = new due date\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n }",
"private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }",
"public void setDate(long value) {\n this.date = value;\n }",
"public void setDate(int date){\n this.date = date;\n }",
"public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }",
"void setBirthDate(Date birthDate);",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(String date){\n this.date = date;\n }",
"public void setDate(long date) {\r\n\t\tthis.date = new Date(date);\r\n\t}",
"public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}",
"protected void setReturnDate(Date d){ this.returnDate = d; }",
"public void setMakedate(Date makedate) {\n this.makedate = makedate;\n }",
"public void setDate(Date date) {\n\t\tthis._date = date;\n\t}",
"public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}",
"public void setDate(Date date) {\n mDate = date;\n }",
"private void setDate(final BibTex bibtex, final Post<BibTex> post) {\n\t\tfinal String dateField = bibtex.removeMiscField(BibTexUtils.ADDITIONAL_MISC_FIELD_DATE);\n\t\tif (present(dateField)) {\n\t\t\ttry {\n\t\t\t\tpost.setDate(dateFormat.parse(dateField));\n\t\t\t} catch (java.text.ParseException ex) {\n\t\t\t\t// ignore parse errors\n\t\t\t}\n\t\t}\n\t}",
"public void setDate(String newDate)\n\t{\n\t\tthis.date = newDate;\n\t}",
"void xsetDate(org.apache.xmlbeans.XmlString date);",
"public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }",
"public void setStartDate(Date s);",
"public void resetSelectedDate() {\r\n selectedDate = null;\r\n }",
"void setExpiredDate(Date expiredDate);",
"@SuppressWarnings(\"deprecation\")\n public void setDate(View view) {\n showDialog(999);\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Calendar calendar = new GregorianCalendar();\n //calendar.set(Calendar.MILLISECOND, 0);\n calendar.set(year, month, dayOfMonth, 0, 0, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n //Set the milliseconds to 0 because java.util.Date is not accurate on milliseconds\n mDate = calendar.getTime();\n updateDateText();\n updateText();\n }",
"public void setDate(Calendar date) {\n\tthis.date = date;\n }",
"public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}",
"public void setDate(String date) {\r\n this.date = date;\r\n }",
"public void setDealingTime(Date dealingTime)\n/* */ {\n/* 171 */ this.dealingTime = dealingTime;\n/* */ }",
"abstract public void setServiceAppointment(Date serviceAppointment);",
"public void setServiceDate(java.util.Date value);",
"public abstract void setFecha_inicio(java.lang.String newFecha_inicio);",
"public void setDate(final Date date) {\n this.date = date;\n }",
"public void setGioBatDau(Date gioBatDau);",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n // Do something with the date chosen by the user\n GregorianCalendar calendar = new GregorianCalendar(year, month, day);\n try {\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setUnsharedAt(calendar.getTime()));\n } catch (Exception e){\n Toast.makeText(BoxSharedLinkAccessActivity.this, \"invalid time selected\", Toast.LENGTH_LONG).show();\n }\n }",
"public void setDate(String parName, Date parVal) throws HibException;",
"public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}",
"private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }",
"public void setDate(Calendar date)\n {\n this.date = date;\n }",
"public void setRequestDate(Date requestDate);",
"public void datei (String datei) {\n\t\tthis.datei = datei;\n\t\tzwischenspeicher.clear();\n\t}",
"public void updateBDate() {\n bDate = new Date();\n }",
"public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}",
"private void removeDate() {\r\n\t\tMyReportProperties.removeProperties(IreportConstant.CLASS_NAME);\r\n\t\tMyReportProperties.removeProperties(IreportConstant.METHOD_NAME);\r\n\t}",
"public void resetDates() {\r\n selectedDate = null;\r\n currentDate = Calendar.getInstance();\r\n }",
"public static void setExpireDate(ParsePush push, long date ) {\t \n\t\tpush.setExpirationTime(date);\n\t}",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }"
] | [
"0.7402274",
"0.7168842",
"0.7147282",
"0.7136948",
"0.7110411",
"0.7059645",
"0.6954044",
"0.69472724",
"0.69409126",
"0.69204444",
"0.6915322",
"0.6902076",
"0.6884517",
"0.6878861",
"0.6859003",
"0.68497634",
"0.68325675",
"0.6818439",
"0.68047464",
"0.6779245",
"0.6770798",
"0.6766169",
"0.6718057",
"0.67157304",
"0.6707314",
"0.6702699",
"0.669358",
"0.6674644",
"0.6674439",
"0.66723144",
"0.66723144",
"0.66723144",
"0.66716826",
"0.66249794",
"0.66249794",
"0.66249794",
"0.66249794",
"0.66249794",
"0.66249794",
"0.66249794",
"0.66249794",
"0.66249794",
"0.66191673",
"0.66124874",
"0.6588254",
"0.65812814",
"0.65757644",
"0.65690225",
"0.6550549",
"0.6547592",
"0.65404683",
"0.6538886",
"0.6519044",
"0.6516371",
"0.6498991",
"0.64956576",
"0.649477",
"0.649477",
"0.649477",
"0.6476033",
"0.6460687",
"0.64600414",
"0.6456221",
"0.6448416",
"0.6442982",
"0.64365166",
"0.6436402",
"0.64313775",
"0.6431082",
"0.64307934",
"0.64282614",
"0.64227724",
"0.6415676",
"0.6411962",
"0.64078206",
"0.6407116",
"0.640294",
"0.64002985",
"0.6397088",
"0.63891363",
"0.63818187",
"0.63800323",
"0.63780785",
"0.6370179",
"0.6369526",
"0.6365632",
"0.6357185",
"0.63514864",
"0.6350429",
"0.63456535",
"0.63415563",
"0.63317806",
"0.63272005",
"0.6323987",
"0.63220435",
"0.63186264",
"0.631617",
"0.63157105",
"0.63157105",
"0.63157105",
"0.63134545"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void reduce() {
} | {
"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 |
private Map _objs = new LinkedHashMap(); | @Nonnull
@Override
public Map<DoodId, Obj> getObjs() {
return _objs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }",
"protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }",
"public Map<String, Object> getObjects() {\n return objects;\n }",
"public IntObjectHashMap() {\n resetToDefault();\n }",
"public MyHashMap() {\n array = new TreeNode[1024];\n\n }",
"public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }",
"public static void main(String[] args) {\n LinkedHashMap<Integer, Pracownik> mapa = new LinkedHashMap<>();\n Pracownik[] pracownicy = {\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\")\n };\n\n for(Pracownik pracownik: pracownicy){\n mapa.put(pracownik.getID(),pracownik);\n }\n System.out.println(mapa);\n\n mapa.remove(3);\n\n\n mapa.put(4,new Pracownik(\"Asia\"));\n mapa.put(3,new Pracownik(\"Patryk\"));\n\n\n\n mapa.entrySet();\n System.out.println(mapa);\n for(Map.Entry<Integer,Pracownik> wpis: mapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n\n\n }\n System.out.println(\"---------------------------------------------------------------\");\n TreeMap<Integer,Pracownik> mapaPosotrowana = new TreeMap<Integer, Pracownik>(mapa);\n\n Map<Integer,Pracownik> subMapa = mapaPosotrowana.subMap(0,4);\n\n for(Map.Entry<Integer,Pracownik> wpis: subMapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n if(subMapa.isEmpty()){\n System.out.println(\"PUSTO\");\n }else{\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n }\n\n }\n\n Map<Date, Event> exampleMap;\n\n\n\n\n\n\n\n\n\n }",
"public LinkedHashMap<String, SharedDataInfo> sharedData(){\n return new LinkedHashMap<String, SharedDataInfo>();\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"@Test\n\tpublic void testLinkedHashMap() {\n\t\tLinkedHashMap lhm = new LinkedHashMap();\n\t\tlhm.put(\"evyaan\", 700);\n\t\tlhm.put(\"varun\", 100);\n\t\tlhm.put(\"dolly\", 300);\n\t\tlhm.put(\"vaishu\", 400);\n\t\tlhm.put(\"vaishu\", 300);\n\t\tlhm.put(null, 500);\n\t\tlhm.put(null, 600);\n\n\t\tassertEquals(\"{evyaan=700, varun=100, dolly=300, vaishu=300, null=600}\", lhm.toString());\n\t}",
"public final Map<String, Object> buildMap(Object... objs) {\n Map<String, Object> out = new LinkedHashMap<>();\n for (int i = 0; i < objs.length; i += 2) {\n out.put(objs[i].toString(), objs[i + 1]);\n }\n return out;\n }",
"public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }",
"public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"LinkedHashMap<Long, City> getAllCitiesMap();",
"public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }",
"private IMapData<Integer, String> getLinkedHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public ImageFileNameMap()\r\n {\r\n prevMap = null;\r\n }",
"public RBTMap() {\n RBT = new TreeMap<K,V>();\n \n }",
"public CjtMap(){\r\n cjtMap = new TreeMap();\r\n sequence = new Sequence(1, 0, 1, false);\r\n }",
"@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}",
"public void makeMap(){\r\n\t\tint m =1;\r\n\t\t//EnvironObj temp = new EnvironObj(null, 0, 0);\r\n\t\tfor(int i=0; i<map.size(); i++){\r\n\t\t\tfor(int j =0; j<map.get(i).size(); j++){\r\n\t\t\t\tString o = map.get(i).get(j);\r\n\t\t\t\t//System.out.println(\"grabbing o from map, o = \" + o);\r\n\t\t\t\tif(o.equals(\"t\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"treee.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\t//System.out.println(\"objectList: \" + objectList);\r\n\t\t\t\t}else if(o.equals(\"p\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"path.png\", j+m, i*20, true);\r\n\t\t\t\t\t//dont need to add to obj list bc its always in back\r\n\t\t\t\t\twalkables.add(temp);\r\n\r\n\t\t\t\t}else if(o.equals(\"h\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"house.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t}else if(o.equals(\"g\")){\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t}\r\n\t\t\t\telse if(!o.equals(\"g\")){\r\n\t\t\t\t\tString fn = o +\".txt\";\r\n\t\t\t\t\tSystem.out.println(\"filename for NPC: \" + fn);\r\n\t\t\t\t\tnp = new NPC(o, fn, j+m, i*20);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\tcharacters.add(np);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tm=0;\r\n\t\t}\r\n\t}",
"public MyHashMap() {\n hashMap = new ArrayList<>();\n }",
"protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }",
"public MapToken() {\n\t\tmData = new FastMap<String, Object>();\n\t}",
"private void processEntitesMap(LinkedHashMap obj, String currKey, List<Entity> entities, String rELATIONAL_KEY2) {\n\t\t\n\t}",
"public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }",
"public Map() {\n\t\t//intially empty\n\t}",
"public interface MapObjectType {\n}",
"public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }",
"public Map<Concept, List<Obs>> getObsMap() {\n \treturn obsMap;\n }",
"public MyHashMap() {\n\n }",
"private void mapObject(Object obj) {\n if (!objectIdMap.containsKey(obj))\n objectIdMap.put(obj, objectIdMap.size());\n if (obj instanceof Map) {\n Map dict = (Map) obj;\n Set<Map.Entry<String, Object>> de = dict.entrySet();\n for (Map.Entry<String, Object> e : de)\n mapObject(e.getKey());\n for (Map.Entry<String, Object> e : de)\n mapObject(e.getValue());\n } else if (obj instanceof List) {\n List list = (List) obj;\n for (int i = 0; i < list.size(); i++)\n mapObject(list.get(i));\n } else if (obj instanceof String || obj instanceof Float || obj instanceof Double ||\n obj instanceof Integer || obj instanceof Long || obj instanceof byte[] ||\n obj instanceof Date || obj instanceof Boolean) {\n // do nothing.\n } else\n throw new IllegalStateException(\"Incompatible object \" + obj + \" found\");\n }",
"public MyHashMap() {\n map = new HashMap();\n }",
"public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }",
"public void EstaticCache(){\n LinkedHashMap<String, String> ParticionAux = new LinkedHashMap <String,String>();\n Cache.add(ParticionAux);\n for (int i = 0; i < Estatico.length; i++) {\n \n Cache.get(0).put(Estatico[i], ResEstatico[i]);\n // System.out.println(\"===== Particion de Cache N°\"+ParticionAux.values()+\" =====\");\n \n }\n //this.Cache.add(ParticionAux); // carga el hashMap en una particion del cache\n //System.out.println(\"===== Particion de Cache AQUIAQUI\"+Cache.get(0).values()+\" =====\");\n // ParticionAux.clear(); // limpia el Hashmap aux\n }",
"public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}",
"public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}",
"private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}",
"public Dictionary(){\n front = null;\n numItems = 0;\n }",
"public ObjectMappers() {\n\t\tthis.objectMappers = ImmutableList.of();\n\t}",
"MAP createMAP();",
"public JSONNode() {\n map = new HashMap<>();\n }",
"public Player(String name, Map<Integer,Element> moves){\n this.name = name;\n this.moves = moves;\n}",
"@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }",
"public ObservableHashMap()\n {\n super();\n }",
"public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }",
"@Override\n public List<IMapData<Integer, String>> getLinkedHashMapData() {\n List<IMapData<Integer, String>> data = new ArrayList<>();\n\n data.add(this.getLinkedHashMapData1());\n data.add(this.getLinkedHashMapData2());\n\n return data;\n }",
"public COSDictionary getCOSDictionary() {\n/* 62 */ return this.dictionary;\n/* */ }",
"public Dictionary(){\n root = null;\n numItems = 0;\n }",
"public int sizeOfMap(){return size;}",
"protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}",
"public DesignHashSet() {\n map=new HashMap<>();\n }",
"public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }",
"public MyHashMap() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n }",
"public RenderKitBean()\r\n {\r\n _renderers = new TreeMap();\r\n }",
"@Override\r\n\tpublic void saveMap() {\n\r\n\t}",
"public ObjectStack() {collection = new ArrayIndexedCollection();}",
"public void setObsMap(Map<Concept, List<Obs>> obsMap) {\n \tthis.obsMap = obsMap;\n }",
"private void processNameToObjectMap() {\r\n for (int i = 0; i < this.getObjectGroupCount(); i++) {\r\n ObjectGroup g = this.objectGroups.get(i);\r\n this.objectGroupNameToOffset.put(g.name, i);\r\n HashMap<String, Integer> nameToObjectMap = new HashMap<String, Integer>();\r\n for (int ib = 0; ib < this.getObjectCount(i); ib++) {\r\n nameToObjectMap.put(this.getObjectName(i, ib), ib);\r\n }\r\n g.setObjectNameMapping(nameToObjectMap);\r\n }\r\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"private void init() {\n UNIGRAM = new HashMap<>();\n }",
"public void testGetObjects()\n {\n assertNotNull( map.getObjects() );\n }",
"public TravelMap() {\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tadjacencyList.add(new ArrayList<>());\n\t\t}\n\t}",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}",
"public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }",
"public MyHashMap() {\n\n }",
"public OCRSet() {\r\n this.map = new HashMap<Integer, E>();\r\n }",
"public Dict(Obj value) {\n this.value = value;\n }",
"@Override\r\n public NavigableMap<K, V> descendingMap() {\n return null;\r\n }",
"@SuppressWarnings(\"unchecked\")\n protected void setSimpleObjects(Object obj) {\n simpleObjects = (Map<String, Object>) obj;\n }",
"private static Map<String, Object> sortAsDeclaredOrder(Object obj, Map<String, Object> unordered_mp)\n {\n Map<String, Object> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Object m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }",
"public MagicDictionary() {\n this.map = new HashMap<>();\n }",
"public static void main(String[] args) {\n\t\tLinkedHashMap obj=new LinkedHashMap();\n\t\tobj.put(1, \"sayan\");\n\t\tobj.put(3,\"saikat\");\n\t\tobj.put(3, \"biki\");\n\t\tobj.put(9, \"onjit\");\n\t\tobj.put(8,\"Shaswata\");\n\t\tSystem.out.println(obj);\n\t\t\n\t\tSet set=obj.entrySet();\n\t\tIterator itr=set.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMap.Entry me= (Map.Entry) itr.next();\n\t\t\t\n\t\t\tSystem.out.println(me.getKey()+\" ===> \"+me.getValue());\n\t\t}\n\t}",
"void writeObject(Map<Object, Object> map);",
"WordList(){\r\n\t\tm_words = new HashMap();\r\n\t}",
"LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"private Map<String, Drone> getDroneMap(){\n\t\treturn this.drones;\n\t}",
"public GenericDomainObject() {\n\tkeys = new LinkedHashMap<String, Object>();\n\tattributes = new LinkedHashMap<String, Object>();\n }",
"void setHashMap();",
"public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }",
"public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }",
"public Map<Position, String> createGraphics(){\n\n Map<Position, String> justObjectGraphs = this.ALLObjects.stream()\n .collect(Collectors.toMap(MapObject::getPozycja, MapObject::getDrawSymbol) );\n\n Map<Position, String> emptyGraphs = this.getMapa().getEmptyPositions().stream()\n .collect(Collectors.toMap(poz -> poz , poz -> \" \") );\n\n Map<Position, String> wynik = new TreeMap<>();\n wynik.putAll(justObjectGraphs);\n wynik.putAll(emptyGraphs);\n\n return wynik;\n }",
"public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }",
"private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}",
"public DocMap(Gedcomx doc) {\n // Build all the maps.\n update(doc);\n }",
"public Map(SpriteLoader sprites) {\n\n this.sprites = sprites;\n\n }",
"private IMapData<Integer, String> getLinkedHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"c\"),\n KeyValueNode.make(1, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"BaseDatosMemoria() {\n baseDatos = new HashMap<>();\n secuencias = new HashMap<>();\n }",
"public LRUMapCache(int maxObjects) {\n\t\tthis.maxObjects = maxObjects;\n\t\tcacheMap = new HashMap<K, V>(maxObjects);\n\t\thitMap = new HashMap<K, Integer>();\n\t}",
"public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }",
"@PostConstruct\r\n public void init() {\n List<Person> personList = personRepository.findAll();\r\n for(Person person:personList)\r\n personHashMap.put(person.getId(),person);\r\n }",
"public interface Map<K, V>\n{\n // Adds the specified key-value pair to the map. Does nothing if the key already\n // exists in the map.\n void add(K key, V value);\n\n // Returns the value associated with the specified key, or null of that key doesn't\n // exist in the map\n V get(K key);\n\t\n // Removes the key-value pair with the specified key from the map. Does nothing if\n // the key doesn't exist in the map.\n void remove(K key);\n}",
"public void createTreeMap() {\n myList = new TreeMap<>();\n scrabbleList = new TreeMap<>();\n }",
"private DataCache() {\n this.people = new HashMap<>();\n this.events = new HashMap<>();\n this.personEvents = new HashMap<>();\n this.currentPersonEvents = new HashMap<>();\n this.eventTypes = new ArrayList<>();\n this.childrenMap = new HashMap<>();\n this.maleSpouse = new HashSet<>();\n this.femaleSpouse = new HashSet<>();\n this.paternalAncestorsMales = new HashSet<>();\n this.paternalAncestorsFemales = new HashSet<>();\n this.maternalAncestorsMales = new HashSet<>();\n this.maternalAncestorsFemales = new HashSet<>();\n }",
"@Override\n public boolean contains(Object o) {\n return map.containsKey(o);\n }"
] | [
"0.6033894",
"0.59752154",
"0.5960367",
"0.5868073",
"0.5815894",
"0.5766468",
"0.57524186",
"0.57482576",
"0.5743257",
"0.5705193",
"0.5703235",
"0.5660658",
"0.56578594",
"0.565398",
"0.564899",
"0.56207436",
"0.5587893",
"0.55848193",
"0.5577402",
"0.5576773",
"0.5570658",
"0.55698794",
"0.55674815",
"0.55590457",
"0.55402046",
"0.5539159",
"0.5536038",
"0.5528595",
"0.5527967",
"0.55259407",
"0.55205435",
"0.5510791",
"0.55062187",
"0.55043787",
"0.55033517",
"0.550219",
"0.54924625",
"0.54721826",
"0.5467954",
"0.54671973",
"0.54599583",
"0.54495156",
"0.5448652",
"0.5433337",
"0.54276574",
"0.5407141",
"0.5397686",
"0.53874683",
"0.5378343",
"0.5375943",
"0.5370089",
"0.53675795",
"0.536546",
"0.536537",
"0.5364136",
"0.53611445",
"0.5358199",
"0.5356926",
"0.53553",
"0.53538734",
"0.53502554",
"0.5347848",
"0.534305",
"0.5333886",
"0.5331116",
"0.53280455",
"0.53251666",
"0.53224766",
"0.53200644",
"0.5311652",
"0.53058046",
"0.5293504",
"0.5276142",
"0.52698827",
"0.526887",
"0.5268119",
"0.52646804",
"0.5264416",
"0.52592975",
"0.52590513",
"0.5250793",
"0.52502996",
"0.5248529",
"0.52440494",
"0.52363753",
"0.5227738",
"0.522769",
"0.5215442",
"0.52112424",
"0.5210126",
"0.52081186",
"0.52069044",
"0.52041656",
"0.5198668",
"0.51935047",
"0.5179495",
"0.5179332",
"0.5175311",
"0.5168978",
"0.51627845"
] | 0.60680413 | 0 |
Used to define Map structures that have complex keys. | @SuppressWarnings({ "rawtypes" })
public DataClassDefinitionImpl(Class<? extends Map> mapClass, DataClassDefinition keyClassDefinition, DataClassDefinition elementClassDefinition) {
super(mapClass, keyClassDefinition, elementClassDefinition);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ComplexKeyMap<K, V> extends Map<K, V> {\n\n}",
"public Rule simpleMapType()\n \t{\n \t\treturn sequence(nonSimpleMapTypes(), noNl(), SP_COL, noNl(), nonSimpleMapTypes(),\n \t\t\t\toptional(\n \t\t\t\t// Not enforcing [] because of problems with maps like this Str:int[\"\":5]\n \t\t\t\tsequence(noNl(), optional(SP_QMARK), noNl(), SQ_BRACKET_L, SQ_BRACKET_R)), // list of '?[]'\n \t\t\t\toptional(sequence(noNl(), SP_QMARK))); // nullable\n \t}",
"public void setReferencedInKey(String complexTypeName);",
"XClass getMapKey();",
"public MultiKeyMap() {\n this.map = new java.util.HashMap<String,V>();\n return;\n }",
"protected MapElement(long key) {\r\n super(key);\r\n }",
"private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }",
"public MapElement(int key) {\n this.key = key;\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }",
"public CjtMap(){\r\n cjtMap = new TreeMap();\r\n sequence = new Sequence(1, 0, 1, false);\r\n }",
"@Test\n public void mapKeys() {\n check(MAPKEYS);\n query(\"for $i in \" + MAPKEYS.args(\n MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i+1\"))) + \" order by $i return $i\", \"1 2 3\");\n query(\"let $map := \" + MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i + 1\")) +\n \"for $k in \" + MAPKEYS.args(\"$map\") + \" order by $k return \" +\n MAPGET.args(\"$map\", \"$k\"), \"2 3 4\");\n }",
"private LinkedHashMap<String, Type> scalarMappingODU() {\r\n\t\tLinkedHashMap<String, Type> scalarMapping = new LinkedHashMap<String, Type>();\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODUID, StandardBasicTypes.LONG); // 0\r\n\t\tscalarMapping.put(DaoConstants.MAP_SITE_GROUP,\r\n\t\t\t\tStandardBasicTypes.STRING); // 1\r\n\t\tscalarMapping.put(DaoConstants.MAP_PARENT_CHILD,\r\n\t\t\t\tStandardBasicTypes.STRING); // 2\r\n\t\tscalarMapping.put(DaoConstants.MAP_NAME, StandardBasicTypes.STRING); // 3\r\n\t\tscalarMapping.put(DaoConstants.MAP_CENTRAL_ADDRESS,\r\n\t\t\t\tStandardBasicTypes.STRING); // 4\r\n\t\tscalarMapping.put(DaoConstants.MAP_PARENT_ID, StandardBasicTypes.LONG); // 5\r\n\t\tscalarMapping.put(DaoConstants.MAP_TYPE, StandardBasicTypes.STRING); // 6\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMAXLATITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 7\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMAXLONGITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 8\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMINLATITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 9\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMINLONGITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 10\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODU_SVG_PATH,\r\n\t\t\t\tStandardBasicTypes.STRING); // 11\r\n\t\tscalarMapping.put(DaoConstants.MAP_SEVERITY, StandardBasicTypes.STRING); // 12\r\n\t\tscalarMapping.put(DaoConstants.MAP_SLINKADD, StandardBasicTypes.STRING); // 13\r\n\t\tscalarMapping.put(DaoConstants.MAP_ALARM_CODE,\r\n\t\t\t\tStandardBasicTypes.STRING); // 14\r\n\t\tscalarMapping.put(DaoConstants.MAP_C2, StandardBasicTypes.DOUBLE); // 15\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Outdoor\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Temp\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_1, StandardBasicTypes.LONG); // 16\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_1\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_2, StandardBasicTypes.LONG); // 17\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_2\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_3, StandardBasicTypes.LONG); // 18\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_3\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_4, StandardBasicTypes.LONG); // 19\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// PAC\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_5, StandardBasicTypes.LONG); // 20\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// EngineWorkingHrs\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_6, StandardBasicTypes.LONG); // 21\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// NOT_IN_USE_EnginOilChange\r\n\t\tscalarMapping.put(DaoConstants.MAP_G44, StandardBasicTypes.STRING); // 22\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// GenerationPower\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGID, StandardBasicTypes.LONG); // 23\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGNAME, StandardBasicTypes.STRING); // 24\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS1, StandardBasicTypes.DOUBLE); // 25\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS2, StandardBasicTypes.DOUBLE); // 26\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS3, StandardBasicTypes.DOUBLE); // 27\r\n\t\tscalarMapping.put(DaoConstants.MAP_PACHRS, StandardBasicTypes.DOUBLE); // 28\r\n\t\tscalarMapping.put(DaoConstants.MAP_GHPHRS, StandardBasicTypes.DOUBLE); // 29\r\n\t\tscalarMapping.put(DaoConstants.MAP_GHPOIL, StandardBasicTypes.DOUBLE); // 30\r\n\t\tscalarMapping.put(DaoConstants.MAP_SITEPATH, StandardBasicTypes.STRING); // 31\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPANYNAME,\r\n\t\t\t\tStandardBasicTypes.STRING); // 32\r\n\t\tscalarMapping.put(DaoConstants.MAP_CASTATUS, StandardBasicTypes.STRING); // 33\r\n\t\tscalarMapping.put(DaoConstants.MAP_V23, StandardBasicTypes.STRING); // 34\r\n\t\t// Demand\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR1,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 35\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR2,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 36\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR3,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 37\r\n\t\t//add by shanf\r\n\t\tscalarMapping.put(DaoConstants.DEVICE_MODEL,\r\n\t\t\t\tStandardBasicTypes.STRING); // 38\r\n\r\n\t\treturn scalarMapping;\r\n\t}",
"MAP createMAP();",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public abstract void createMap();",
"@Nonnull\n private static MultimapBuilder.SetMultimapBuilder<Comparable, Object> newMapBuilder()\n {\n return MultimapBuilder.SetMultimapBuilder\n .treeKeys()\n .hashSetValues();\n }",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"InfiniteMap<K,V> build(MapTypes type);",
"public MagicDictionary() {\n this.map = new HashMap<>();\n }",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"private static void createTypeMap() {\n\n }",
"private com.hps.july.persistence.StoragePlaceKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.StoragePlaceKey keyClass = new com.hps.july.persistence.StoragePlaceKey();\n keyClass.storageplace = f0;\n return keyClass;\n }",
"protected abstract Map<String, Serializable> getEventKeyAndIdMap();",
"private SimpleMap(Builder builder) {\n super(builder);\n }",
"public boolean isReferencedInKey(String complexTypeName);",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }",
"public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }",
"public interface GeoTiffKey {\n\n /** ID defining the crs model, http://www.remotesensing.org/geotiff/spec/geotiff6.html#6.3.1.1 */\n public static final int GTModelTypeGeoKey = 1024;\n\n /** ID defining the raster sample type, http://www.remotesensing.org/geotiff/spec/geotiff6.html#6.3.1.2 */\n public static final int GTRasterTypeGeoKey = 1025;\n\n /** ID defining a geographic crs, http://www.remotesensing.org/geotiff/spec/geotiff6.html#6.3.2.1 */\n public static final int GeographicTypeGeoKey = 2048;\n\n /** ID defining a projected crs, http://www.remotesensing.org/geotiff/spec/geotiff6.html#6.3.3.1 */\n public static final int ProjectedCSTypeGeoKey = 3072;\n\n /** http://www.remotesensing.org/geotiff/spec/geotiff6.html#6.3.4.1 */\n public static final int VerticalCSTypeGeoKey = 4096;\n\n /**\n * Value defining the raster sample point is center (area),\n * http://www.remotesensing.org/geotiff/spec/geotiff2.5.html#2.5.2.2\n */\n public static final char RasterPixelIsArea = 1;\n\n /**\n * Value defining the raster sample point is outer (point),\n * http://www.remotesensing.org/geotiff/spec/geotiff2.5.html#2.5.2.2\n */\n public static final char RasterPixelIsPoint = 2;\n\n /** Value defining the crs to be a projected model, http://www.remotesensing.org/geotiff/spec/geotiff6.html#6.3.1.1 */\n public static final char ModelTypeProjected = 1;\n\n /** Value defining the crs to be a geographic model, http://www.remotesensing.org/geotiff/spec/geotiff6.html#6.3.1.1 */\n public static final char ModelTypeGeographic = 2;\n\n /** Value defining the crs to be a geocentric model, http://www.remotesensing.org/geotiff/spec/geotiff6.html#6.3.1.1 */\n public static final char ModelTypeGeocentric = 3;\n}",
"private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n typeMapping.put(\"unsignedByte\", \"short\");\n typeMapping.put(\"short\", \"short\");\n typeMapping.put(\"unsignedShort\", \"int\");\n typeMapping.put(\"int\", \"int\");\n typeMapping.put(\"integer\", \"java.math.BigDecimal\");\n typeMapping.put(\"positiveInteger\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedInt\", \"java.math.BigInteger\");\n typeMapping.put(\"long\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedLong\", \"java.math.BigDecimal\");\n typeMapping.put(\"decimal\", \"java.math.BigDecimal\");\n typeMapping.put(\"string\", \"String\");\n typeMapping.put(\"hexBinary\", \"byte[]\");\n typeMapping.put(\"base64Binary\", \"byte[]\");\n typeMapping.put(\"dateTime\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"time\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"date\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonthDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYear\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYearMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"duration\", \"javax.xml.datatype.Duration\");\n typeMapping.put(\"NOTATION\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"QName\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"anyURI\", \"String\");\n typeMapping.put(\"Name\", \"String\");\n typeMapping.put(\"NCName\", \"String\");\n typeMapping.put(\"negativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"NMTOKEN\", \"String\");\n typeMapping.put(\"nonNegativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"nonPositiveInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"normalizedString\", \"String\");\n typeMapping.put(\"token\", \"String\");\n typeMapping.put(\"any\", \"Object\");\n\n return typeMapping;\n }",
"public MultiKey() {}",
"public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }",
"private com.hps.july.persistence.SuperRegionKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionKey keyClass = new com.hps.july.persistence.SuperRegionKey();\n keyClass.supregid = f0;\n return keyClass;\n }",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"private void buildKeyMap() {\n\t\tcharMapKey = new HashMap<Character , Integer>();\n\t\tcharMapKey.put('a', 0);\n\t\tcharMapKey.put('b', 0);\n\t\tcharMapKey.put('c', 1);\n\t\tcharMapKey.put('d', 1);\n\t\tcharMapKey.put('e', 2);\n\t\tcharMapKey.put('f', 2);\n\t\tcharMapKey.put('g', 3);\n\t\tcharMapKey.put('h', 3);\n\t\tcharMapKey.put('i', 4);\n\t\tcharMapKey.put('j', 4);\n\t\tcharMapKey.put('k', 5);\n\t\tcharMapKey.put('l', 5);\n\t\tcharMapKey.put('m', 6);\n\t\tcharMapKey.put('n', 6);\n\t\tcharMapKey.put('o', 7);\n\t\tcharMapKey.put('p', 7);\n\t\tcharMapKey.put('q', 8);\n\t\tcharMapKey.put('r', 8);\n\t\tcharMapKey.put('s', 9);\n\t\tcharMapKey.put('t', 9);\n\t\tcharMapKey.put('u', 10);\n\t\tcharMapKey.put('v', 10);\n\t\tcharMapKey.put('w', 11);\n\t\tcharMapKey.put('x', 11);\n\t\tcharMapKey.put('y', 12);\n\t\tcharMapKey.put('z', 12);\n\t}",
"public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }",
"private com.hps.july.persistence.CarKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.CarKey keyClass = new com.hps.july.persistence.CarKey();\n keyClass.car = f0;\n return keyClass;\n }",
"@Override\n\t\t\t\t\tpublic Attribute handleMapKey(Element parent, FTypeRef src) {\n\t\t\t\t\t\treturn super.handleMapKey(parent, src);\n\t\t\t\t\t}",
"public OwnMap(int capacity) {\n super(capacity);\n keySet = new OwnSet();\n }",
"boolean hasSimpleMap();",
"public static void main(String[] args) throws IllegalAccessException, InvocationTargetException, InstantiationException {\n\r\n Map<String, Shape> shapeMap = new HashMap<>();\r\n\r\n shapeMap.put(\"Triangle\", new SimpleTriangle(3, 5, 5));\r\n shapeMap.put(\"Circle\", new SimpleCircle(5));\r\n\r\n for (Map.Entry<String, Shape> entry : shapeMap.entrySet()) {\r\n System.out.println(\"Key - \" + entry.getKey() + \" Value \" + entry.getValue());\r\n }\r\n\r\n //Write a Java program to count the number of key-value (size) mappings in a map\r\n\r\n int size = shapeMap.size();\r\n System.out.println(size);\r\n\r\n //Write a Java program to copy all of the mappings from the specified map to another map.\r\n\r\n Map<String, Shape> shapeMap1 = new HashMap<>();\r\n shapeMap1.put(\"Square7\", new SimpleSquare(7));\r\n shapeMap1.put(\"Square9\", new SimpleSquare(9));\r\n\r\n shapeMap.putAll(shapeMap1);\r\n\r\n System.out.println(shapeMap);\r\n\r\n //Write a Java program to check whether a map contains key-value mappings (empty) or not.Try to use .clear()\r\n\r\n shapeMap1.clear();\r\n System.out.println(shapeMap1.isEmpty());\r\n\r\n //Write a Java program to test if a map contains a mapping for the specified key.\r\n\r\n boolean what = shapeMap.containsKey(\"Square7\");\r\n System.out.println(what);\r\n\r\n //Write a Java program to test if a map contains a mapping for the specified value.\r\n\r\n boolean whatValue = shapeMap.containsValue(new SimpleSquare(7));\r\n System.out.println(whatValue);\r\n\r\n //Write a Java program to create a set view of the mappings contained in a map.\r\n\r\n\r\n //Tree Set\r\n\r\n Set<Employee> treeSet = new TreeSet<>();\r\n treeSet.add(new Employee(17_000, \"J\"));\r\n treeSet.add(new Employee(20_000, \"K\"));\r\n\r\n System.out.println(treeSet);\r\n\r\n final EmployeeAgeComparator ageComparator = new EmployeeAgeComparator();\r\n Set<Employee> treeSetByAge = new TreeSet<>(ageComparator);\r\n treeSetByAge.add(new Employee(22_000, 35, \"L\"));\r\n treeSetByAge.add(new Employee(78_000, 19, \"J\"));\r\n treeSetByAge.add(new Employee(93_000, 55, \"P\"));\r\n\r\n System.out.println(treeSetByAge);\r\n\r\n final EmployeeSalaryComparator salaryComparator = new EmployeeSalaryComparator();\r\n Set<Employee> treeSetBySalary = new TreeSet<>(salaryComparator);\r\n treeSetBySalary.add(new Employee(98_120, 59, \"LA\"));\r\n treeSetBySalary.add(new Employee(92_000, 79, \"AA\"));\r\n treeSetBySalary.add(new Employee(18_100, 44, \"AC\"));\r\n\r\n System.out.println(treeSetBySalary);\r\n\r\n System.out.println(\"==============================================\");\r\n\r\n Set<Employee> treeSetByName = new TreeSet<Employee>((o1, o2) -> o1.getName().compareTo(o2.getName()));\r\n\r\n treeSetByName.add(new Employee(98_120, 59, \"LA\"));\r\n treeSetByName.add(new Employee(92_000, 79, \"AA\"));\r\n treeSetByName.add(new Employee(18_100, 44, \"AC\"));\r\n\r\n System.out.println(treeSetByName);\r\n\r\n Employee newEmployee = null;\r\n final Constructor<?>[] constructorsEmp = Employee.class.getConstructors();\r\n for (Constructor constructor : constructorsEmp) {\r\n System.out.println(constructor.getParameterCount());\r\n if (constructor.getParameterCount() == 2) {\r\n newEmployee = (Employee) constructor.newInstance(66_000, \"From Reflection\");\r\n }\r\n }\r\n if(newEmployee != null){\r\n System.out.println(newEmployee);\r\n }\r\n\r\n }",
"private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }",
"Map<String, String> mo14888a();",
"public Map() {\n\n\t\t}",
"private void createMapOfSecondType(){\n\n this.typeOfMap=2;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n\n }",
"protected WumpusMap() {\n\t\t\n\t}",
"public void buildContainerFocusKeys(HashSet currentFocusSet, HashMap focus_key_map, Container container, CompositeFocusKey compositeKey) {\r\n\t\tfor (int index = 0; index < container.getComponentCount(); index++) {\r\n\t\t\tComponent comp = container.getComponent(index);\r\n\t\t\tif (currentFocusSet.contains(comp)) {\r\n\t\t\t\tCompositeFocusKey ckey = (CompositeFocusKey) compositeKey.clone();\r\n\t\t\t\tckey.add(new ContainerFocusKey(index, comp));\r\n\t\t\t\tfocus_key_map.put(comp, ckey);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// this comp must be a container that contains components that\r\n\t\t\t\t// are in the focus policy\r\n\t\t\t\tif (comp instanceof Container) {\r\n\t\t\t\t\tCompositeFocusKey ckey = (CompositeFocusKey) compositeKey.clone();\r\n\t\t\t\t\tckey.add(new ContainerFocusKey(index, comp));\r\n\t\t\t\t\tbuildContainerFocusKeys(currentFocusSet, focus_key_map, (Container) comp, ckey);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void treeMapDemo() {\n TreeMap intMap = new TreeMap();\n TreeMap abcMap = new TreeMap();\n \n // Add values to tMap\n intMap.put(1, \"Jonathan\");\n intMap.put(3, \"Kevin\");\n intMap.put(4, \"Craig\");\n \n abcMap.put(\"Name\", \"Jonathan\");\n abcMap.put(\"Age\", 26);\n abcMap.put(\"Hometown\", \"Denham Springs\");\n \n System.out.println(intMap.toString());\n \n System.out.println(abcMap.toString());\n \n // Add new value to fill the 2 position\n intMap.put(2, \"Jasmine\");\n \n // Add new value to abcMap\n abcMap.put(\"Acrobatic Skill\", \"Bad\");\n abcMap.put(\"Zoology Skill\", \"Decent\");\n \n System.out.println(intMap.toString());\n \n System.out.println(abcMap.toString());\n \n }",
"Map<Element, Map<Element, Element>> getOperationMap();",
"public static Map<String, Property> getDefaultMapping() {\n\t\tMap<String, Property> props = new HashMap<String, Property>();\n\t\tprops.put(\"nstd\", Property.of(p -> p.nested(n -> n.enabled(true))));\n\t\tprops.put(\"properties\", Property.of(p -> {\n\t\t\t\tif (nestedMode()) {\n\t\t\t\t\tp.nested(n -> n.enabled(true));\n\t\t\t\t} else {\n\t\t\t\t\tp.object(n -> n.enabled(true));\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t}\n\t\t));\n\t\tprops.put(\"latlng\", Property.of(p -> p.geoPoint(n -> n.nullValue(v -> v.text(\"0,0\")))));\n\t\tprops.put(\"_docid\", Property.of(p -> p.long_(n -> n.index(false))));\n\t\tprops.put(\"updated\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\t\tprops.put(\"timestamp\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\n\t\tprops.put(\"tag\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"id\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"key\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"name\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"type\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"tags\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"token\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"email\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"appid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"groups\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"password\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"parentid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"creatorid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"identifier\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\treturn props;\n\t}",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"private com.hps.july.persistence.SuperRegionAccKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionAccKey keyClass = new com.hps.july.persistence.SuperRegionAccKey();\n keyClass.accessid = f0;\n return keyClass;\n }",
"private void createMapOfThirdType(){\n\n this.typeOfMap=3;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n }",
"public void setupKeys()\n {\n KeyAreaInfo keyArea = null;\n keyArea = new KeyAreaInfo(this, Constants.UNIQUE, \"PrimaryKey\");\n keyArea.addKeyField(\"ID\", Constants.ASCENDING);\n keyArea = new KeyAreaInfo(this, Constants.SECONDARY_KEY, \"CurrencyCode\");\n keyArea.addKeyField(\"CurrencyCode\", Constants.ASCENDING);\n keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, \"Description\");\n keyArea.addKeyField(\"Description\", Constants.ASCENDING);\n }",
"@Override\n public HashMap<String, List<String>> initializeMapping(HashMap<String, List<String>> mapping) {\n mapping.put(\"xEncoder\", Arrays.asList(\"outtakeMotor1\", \"outtake1\"));\n mapping.put(\"yEncoder\", Arrays.asList(\"wobbleMotor\"));\n\n return mapping;\n }",
"@Override\n\tpublic void VisitMapLiteralNode(BunMapNode Node) {\n\n\t}",
"public static <K, V> MapBuilder<TreeMap<K, V>, K, V> treeMap()\n {\n return new MapBuilder<TreeMap<K, V>, K, V>(new TreeMap<K, V>());\n }",
"private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\n\t}",
"public interface MapObjectType {\n}",
"private static Map<String,Node> buildFOCMap(List<Node> focs) throws Exception\n\t{\n\t\tMap<String,Node> known_focs = new HashMap<String,Node>();\n\t\t\n\t\tfor(Node foc : focs)\n\t\t{\n\t\t\tString n = (String)foc.getProperty(FeatureOrientedChangeNode._name);\n\t\t\tif(!known_focs.containsKey(n))\n\t\t\t\tknown_focs.put(n,foc);\n\t\t}\n\n\t\treturn known_focs;\n\t}",
"public abstract Map<K, V> a();",
"@Nonnull\n protected KeyExpression buildPrimaryKey() {\n return Key.Expressions.concat(\n Key.Expressions.recordType(),\n Key.Expressions.list(constituents.stream()\n .map(c -> Key.Expressions.field(c.getName()).nest(c.getRecordType().getPrimaryKey()))\n .collect(Collectors.toList())));\n }",
"@Test\r\n public void testParamterizedWithComplexTypeParameters()\r\n {\r\n test(Types.create(Map.class)\r\n .withSubtypeOf(Number.class)\r\n .withSupertypeOf(Comparable.class)\r\n .build());\r\n }",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }",
"public abstract AnnotationMap mo30683d();",
"public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"@Override\n\tpublic String getMapKey()\n\t{\n\t\tsbTemp.delete(0, sbTemp.length());\n\t\tsbTemp.append(areaCell.iCityID);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iAreatype);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iAreaID);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iECI);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iTime);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iInterface);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.kpiSet);\n\t\treturn sbTemp.toString();\n\t}",
"public void initMap()\r\n/* */ {\r\n///* 36 */ putHandler(\"vwkgcode\", PDWkHeadTailVWkgcodeHandler.class);\r\n///* 37 */ putHandler(\"fcapacitycalc\", PDWkHeadTailFcapacitycalcHandler.class);\r\n///* 38 */ putHandler(\"bprodline\", PDWkHeadTailBprodlineHandler.class);\r\n/* */ }",
"private void defineComplexAttribute(final String attributeName,\n \t\t\tfinal CyAttributes attributes, final Att curAtt,\n \t\t\tbyte[] attributeDefinition, int attributeDefinitionCount,\n \t\t\tfinal int numKeys) {\n \n \t\t// if necessary, init attribute definition\n \t\tif (attributeDefinition == null) {\n \t\t\tattributeDefinition = new byte[numKeys];\n \t\t}\n \n \t\t// get current interaction interator and attribute\n \t\tfinal Iterator complexIt = curAtt.getContent().iterator();\n \t\tfinal Att complexItem = (Att) complexIt.next();\n \t\tif (attributeDefinitionCount < numKeys) {\n \t\t\tattributeDefinition[attributeDefinitionCount++] = getMultHashMapTypeFromAtt(complexItem);\n \t\t\tif (attributeDefinitionCount < numKeys) {\n \t\t\t\tdefineComplexAttribute(attributeName, attributes, complexItem,\n \t\t\t\t\t\tattributeDefinition, attributeDefinitionCount, numKeys);\n \t\t\t}\n \t\t}\n \n \t\t// ok, if we are here, we've gotten all the keys\n \t\tif (attributeDefinitionCount == numKeys) {\n \t\t\t// go one more level deep to get value(s) type\n \t\t\tfinal Iterator nextComplexIt = complexItem.getContent().iterator();\n \t\t\tfinal Att nextComplexItem = (Att) nextComplexIt.next();\n \t\t\tfinal byte valueType = getMultHashMapTypeFromAtt(nextComplexItem);\n \t\t\tfinal MultiHashMapDefinition mhmd = attributes\n \t\t\t\t\t.getMultiHashMapDefinition();\n \t\t\tmhmd.defineAttribute(attributeName, valueType, attributeDefinition);\n \t\t}\n \t}",
"void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);",
"public Map() {\n\t\t//intially empty\n\t}",
"ParamMapEntry createParamMapEntry();",
"private void createMapOfFourthType() {\n\n this.typeOfMap=4;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.PURPLE, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n }",
"private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }",
"public interface Map<K, V> {\n\n /**\n *\n * Returns the number of elements in this map (its cardinality).\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * </ol><br />\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> The number of elements in the map being represented\n * is returned as output. </li>\n * <li> The represented map has not been changed. </li>\n * </ol>\n *\n * @return The size of the set being represented\n *\n */\n\n int size ();\n\n /**\n *\n * Reports whether the given key has a value defined for it in this map.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An element k of type K has been supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied </li>\n * <li> The Map being represented has not been changed </li>\n * <li> The value true is returned as output if a value is\n * defined for the input key k, and false is returned\n * otherwise.\n * </li>\n * </ol>\n *\n * @param k A key whose inclusion in the Map is being queried\n * @return true if a value is defined for the key k, and false otherwise\n *\n */\n\n boolean defined(K k);\n \n /**\n *\n * Reports the value defined for a given key.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An element k of type K has been supplied as input. </li>\n * </ol><br />\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> The Map being represented has not been changed. </li>\n * <li> If a value is defined for the input key k then this\n * value is returned as output. An UndefinedException\n * is thrown, otherwise. </li>\n * </ol>\n *\n * @param k A key whose inclusion in the Map is being queried\n * @return The value associated with this key in this Map\n * @throws UndefinedException if no value is sssocated with this\n * key in this Map\n *\n */\n\n V get(K k) throws UndefinedException;\n\n /**\n *\n * Defines or changes the value associated with a given key.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> A key k of type K and value v of type V are supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> If this is a Bounded Map, there is no value already associated\n * with the input key k, and the size of this map is less than its\n * capacity, then the input value is associated (under this map)\n * to the input key k. If there is no value already associated\n * with the input key and the size of this Map is already equal to\n * its capacity, then an OverflowException is thrown and the\n * represented map is not changes. Finally, if there is already a\n * value associated with the input key k then this value is replaced\n * by the input value v.\n * </li>\n * <li> If this is an Unbounded Map and there is no value already\n * associated with the input key ke, then the input value v\n * is associated with the input key. If there is already a value\n * assocated with the input key k then this value is replaced\n * by the input value v.\n * </li>\n * </ol>\n *\n * @param k the key whose value is to be defined\n * @param v the value to be associated with the input key\n * @throws OverflowException if this is a Bounded Map, k does not already\n * have a value associated with it, and the Bounded Map’Set\n * size is already equal to its capacity\n *\n */\n\n void set(K k, V v) throws OverflowException;\n\n /**\n *\n * Removes the value associated with an input key (effectively causing\n * the mapping to be “undefined” at the input key, if a value\n * is already associated with the input key\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> A key k of type K is supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> If there is currently a value associated with the input key k\n * then this part of the mapping is removed, so that the\n * mapping is now “undefined” at k.\n * Otherwise the mapping is not changed.\n * </li>\n * </ol>\n *\n * @param k for which the mapping should now become “undefined”\n *\n */\n\n void unset(K k);\n\n\n /**\n *\n * Returns an iterator over the keys for which the mappins is defined.\n * The keys are returned in no particular order (unless this Map\n * is also an instance of some class that provides a guarantee).\n * <br />\n *\n * <p>\n * <strong>Preconditon:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An Iterator over the keys for which values are defined\n * is returned as output. </li>\n * <li> The Map being represented has not been changed. </li>\n * </ol>\n *\n * @return an iterator over the keys for which values are defined\n *\n */\n\n Iterator<K> iterator();\n\n}",
"public Sitedoc2SplaceKey() {\n\tsuper();\n}",
"public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }",
"private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}",
"@Override\n protected final Map<String, String> getGroupMap(final DocWorkUnit docWorkUnit) {\n final Map<String, String> root = super.getGroupMap(docWorkUnit);\n\n /**\n * Add-on super-category definitions. The super-category and spark value strings need to be the\n * same as used in the Freemarker template.\n */\n root.put(\"supercat\", HelpConstants.getSuperCategoryProperty(docWorkUnit.getGroupName()));\n\n return root;\n }",
"public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }",
"private MapTransformer(Map map) {\n super();\n iMap = map;\n }",
"public MyHashMap() {\n\n }",
"Graph<Integer, DefaultEdge> buildMap();",
"protected Map getKeyMethodMap() {\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"cmd.planilla.lista\", \"lista\");\n\t\tmap.put(\"cmd.planilla.buscar\", \"buscar\");\n\t\tmap.put(\"cmd.planilla.verificar\", \"verificar\");\n\t\tmap.put(\"cmd.planilla.cargar\", \"cargar\");\n\t\tmap.put(\"cmd.planilla.actualizar\", \"actualizar\");\n\t\tmap.put(\"cmd.planilla.generar\", \"generar\");\n\t\tmap.put(\"cmd.planilla.cargaFin\", \"cargaFin\");\n\t\tmap.put(\"cmd.planilla.descEmpleadoFiador\", \"descEmpleadoFiador\");\n\t\tmap.put(\"cmd.planilla.verReporte\", \"verReporte\");\n\t\treturn map;\n\t}",
"public Map instantiateBackingMap(String sName);",
"<K extends Object, V extends Object> Map<K, V> getMap(String mapName);",
"InfiniteMap<K,V> build();",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"public Map(){\n this.matrix = new int[10][10];\n }",
"public IDataKey(String key, boolean literal) {\n if (key == null) throw new NullPointerException(\"key must not be null\");\n\n for (String part : literal ? new String[] { key } : key.split(SEPARATOR)) {\n add(new Part(part, literal));\n }\n }",
"private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}",
"private IMapData<Integer, String> getLinkedHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public Map(){\r\n map = new Square[0][0];\r\n }",
"private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public MapToken() {\n\t\tmData = new FastMap<String, Object>();\n\t}"
] | [
"0.7154947",
"0.6021446",
"0.5988447",
"0.5871319",
"0.5810503",
"0.5801294",
"0.5773447",
"0.5701238",
"0.56766546",
"0.5629418",
"0.5614787",
"0.55837905",
"0.5575247",
"0.54930407",
"0.54836303",
"0.5472649",
"0.54620224",
"0.5457952",
"0.53958815",
"0.5383928",
"0.53831685",
"0.5363229",
"0.5362437",
"0.53624094",
"0.53551376",
"0.5354493",
"0.5317291",
"0.53167385",
"0.5312002",
"0.53119826",
"0.5303621",
"0.53023034",
"0.5278682",
"0.52660733",
"0.52645195",
"0.52620566",
"0.5245985",
"0.5245017",
"0.5244321",
"0.5242416",
"0.5241476",
"0.52372426",
"0.52350116",
"0.52335215",
"0.52319854",
"0.52294487",
"0.52244425",
"0.5221619",
"0.522003",
"0.5217494",
"0.52158463",
"0.52138716",
"0.5207682",
"0.5207682",
"0.52049404",
"0.5200795",
"0.51961076",
"0.51893216",
"0.51792836",
"0.5174569",
"0.5173432",
"0.5169588",
"0.51504",
"0.5146084",
"0.5143415",
"0.5140771",
"0.5133168",
"0.5126927",
"0.51261264",
"0.5125278",
"0.5123787",
"0.5123741",
"0.51237166",
"0.5120565",
"0.512002",
"0.511363",
"0.5111372",
"0.510965",
"0.5102959",
"0.5097926",
"0.5094504",
"0.50818753",
"0.50707746",
"0.50697756",
"0.5069154",
"0.5064714",
"0.50642556",
"0.5063502",
"0.50601214",
"0.50555366",
"0.505511",
"0.5053862",
"0.5048673",
"0.5041966",
"0.50389534",
"0.5038644",
"0.5035053",
"0.50216174",
"0.5020529",
"0.5015134"
] | 0.53848594 | 19 |
TODO: should there be indexed collection concept? List: index is integer, map index is object ( therefore List is just special case of map?? ) | @Override
public Class<?> getKeyClass() {
return this.isCollection() && this.getKeyDataClassDefinition() != null?this.getKeyDataClassDefinition().getDataClass():null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface List extends Collection{\r\n\t/**\r\n\t * Returns the object that is stored in backing \r\n\t * list at position index.\r\n\t * @param index position of the element\r\n\t * @return element\r\n\t */\r\n\tObject get(int index);\r\n\t/**\r\n\t * Inserts (does not overwrite) the given value \r\n\t * at the given position in list.\r\n\t * @param value\r\n\t * @param position\r\n\t */\r\n\tvoid insert(Object value, int position);\r\n\t/**\r\n\t * Searches the collection and returns the index \r\n\t * of the first occurrence of the given value or -1 \r\n\t * if the value is not found.\r\n\t * @param value list element\r\n\t * @return index\r\n\t */\r\n\tint indexOf(Object value);\r\n\t/**\r\n\t * Removes element at specified \r\n\t * index from collection.\r\n\t * @param index specified position\r\n\t */\r\n\tvoid remove(int index);\r\n\r\n}",
"@Override\n\tpublic void indexObject(List<ModelKey> list) throws ASException {\n\t\t\n\t}",
"void itemAddedToIndex(Object key, Object o);",
"public interface List<T> extends Collection<T> {\n\t\n\t/**\n\t * Returns the object that is stored in the list at position <code>index</code>.\n\t * @param index position from which the object will be returned\n\t * @return the object that is stored at position <code>index</code>\n\t * @throws IndexOutOfBoundsException index must be between 0 and size-1\n\t */\n\tT get(int index);\n\t\n\t/**\n\t * Inserts the object at the specified position. It does not overwrite the given value at the given position, \n\t * it shifts the elements at greater positions one place toward the end.\n\t * @param value object to be inserted\n\t * @param position index where the object should be inserted\n\t * @throws NullPointerException <code>null</code> object will not be inserted into the list\n\t * @throws IndexOutOfBoundsException index must be between 0 and size\n\t */\n\tvoid insert(T value, int position);\n\t\n\t/**\n\t * Searches the collection and returns the index of the first occurrence of the given value\n\t * or -1 if the value is not found.\n\t * @param value object that will be searched\n\t * @return index of the first occurrence of the given object or -1 if the value is not found\n\t */\n\tint indexOf(Object value);\n\t\n\t/**\n\t * Removes element at specified index from collection. \n\t * Element that was previously at location index+1 after this operation is on location index , etc.\n\t * @param index index at which the element should be removed\n\t * @throws IndexOutOfBoundsException index must be between 0 and size-1\n\t */\n\tvoid remove(int index);\n}",
"public interface List<E> extends Collection<E> {\n\n E get(int index);\n\n E set(int index, E element);\n\n E remove(int index);\n\n @Override\n int size();\n\n @Override\n boolean isEmpty();\n\n @Override\n boolean contains(Object o);\n\n @Override\n boolean add(E element);\n\n void add(int index, E element);\n\n @Override\n boolean addAll(Collection<? extends E> c);\n\n @Override\n boolean remove(Object o);\n\n @Override\n void clear();\n\n @Override\n Iterator<E> iterator();\n\n @Override\n int hashCode();\n\n @Override\n boolean equals(Object o);\n}",
"public interface List<T> extends Collection<T> {\n\n public void insert(T element, int index);\n public T replace(T element, int index);\n public T remove(int index);\n public T removeFirst();\n public T removeLast();\n public int indexOf(T element);\n public T get(int index);\n public T first();\n public T last();\n \n}",
"public void testAddIndex() {\r\n list.add(\"B\");\r\n list.add(0, \"A\");\r\n assertEquals(\"A\", list.get(0));\r\n assertEquals(2, list.size());\r\n list.add(2, \"D\");\r\n assertEquals(\"D\", list.get(2));\r\n list.add(2, \"C\");\r\n assertEquals(\"C\", list.get(2));\r\n }",
"@Override\r\n public ParaMap index(ParaMap inMap) throws Exception {\n return null;\r\n }",
"public abstract java.util.Map<java.lang.Double, java.util.List<java.lang.Integer>> pnlListMap();",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodAsList() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asList() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }",
"public interface List<E> {\n /** Returns the number of elements in this list */\n int size();\n /** Returns whether the list is empty */\n boolean isEmpty();\n\n E get(int i) throws IndexOutOfBoundsException;\n\n E set(int i, E e) throws IndexOutOfBoundsException;\n\n void add(int i, E e) throws IndexOutOfBoundsException;\n\n E remove(int i) throws IndexOutOfBoundsException;\n}",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"protected HashMap<String, BPTree<Double, FoodItem>> getIndexes(){\n \treturn this.indexes;\n }",
"public static void main(String[] args) {\n\r\n\t\tList<Integer> l = new ArrayList<Integer>();\r\n\t\t//List<Integer> l = new ArrayList<Integer>(Collection c); is also valid\r\n\t\t\r\n\t\tfor(int i=1;i<=10;i++){\r\n\t\t\tl.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(l);//[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\t//index based operations\r\n\t\t\r\n\t\tSystem.out.println(l.get(1));//2(element at position 1)\r\n\t\tSystem.out.println(l.set(1,12));//2(returns and replaces the element at position 1)\r\n\t\tSystem.out.println(l);//[1, 12, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\tl.add(1,11);//inserts 11 at position 1\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\tList<Integer> l1 = Arrays.asList(97,23,34);\r\n\t\tl.addAll(4,l1);//inserts collection elements at position 4\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 97, 23, 34, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\tSystem.out.println(l.remove(new Integer(4)));//true ( removes the first occurrence of object 4 )\r\n\t\tSystem.out.println(l.remove(4));//97 (removes the object at position 4)\r\n\t\r\n\t\tSystem.out.println(l.add(11));\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 23, 34, 5, 6, 7, 8, 9, 10,11]\r\n\t\t\r\n\t\tSystem.out.println(l.indexOf(new Integer(11)));//1\r\n\t\tSystem.out.println(l.lastIndexOf(new Integer(11)));//12\r\n\t\t\r\n\t\tSystem.out.println(l.subList(3, 8));//[3, 23, 34, 5, 6]\r\n\t\r\n\t\t\r\n\t}",
"public interface IList<T> {\n \n public boolean isEmpty();\n \n public T getFirst();\n \n public T getLast();\n \n public T get(int i); // a[3] a.get(3)\n \n public void set(T p, int i);\n \n public int size(); // a.length a.size()\n \n public LinkedList<T> addLast(T p);\n \n public LinkedList<T> add(T p, int i);\n \n public void remove(T p);\n \n public void remove(int i);\n \n public boolean contains(T p);\n \n}",
"public interface ListWithKeys<T> extends List<T> {\n\t/**\n\t * What is the key field for the given index\n\t * @param index to find the key for\n\t * @return key value for that index\n\t */\n\tString getKey(int index);\n}",
"private int getInternalListIndex(int index) {\n return index-1;\n }",
"public List<Index> getIndexes();",
"public abstract int indexFor(Object obj);",
"public abstract int getIndex();",
"public TreeMap<GenericDocument, LinkedList<Posting>> getDocumentBasedIndex(Collection collection) { \r\n\t\tTreeMap<GenericDocument, LinkedList<Posting>> result = new TreeMap<GenericDocument, LinkedList<Posting>>();\r\n\t\t\r\n\t\tfor(java.util.Collection<Posting> bag : map.values()) {\r\n\t\t\tfor (Posting posting : bag) {\r\n\t\t\t\tGenericDocument doc = collection.findArticle(posting.getDocumentID());\r\n\t\t\t\tif (doc != null) {\r\n\t\t\t\t\tif (result.containsKey(doc))\r\n\t\t\t\t\t\tresult.get(doc).add(posting);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tLinkedList<Posting> list = new LinkedList<Posting>();\r\n\t\t\t\t\t\tlist.add(posting);\r\n\t\t\t\t\t\tresult.put(doc, list);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t \r\n\t\t}\r\n\t\t \r\n\t\tSystem.out.println(\"Document based indexing complete.\");\r\n\t\treturn result;\r\n\t}",
"public abstract long getIndex();",
"public int index();",
"Nda<V> getAt( List<?> key );",
"public Object get(int index);",
"public Object get(int index);",
"public Object get(ListField list, int index) {\nif ( list == _lfBoys ) {\nreturn _listBoys.elementAt(index);\n} else {\nreturn _listGirls.elementAt(index);\n}\n}",
"public interface IList<T> {\r\n boolean pushFront(T item);\r\n\r\n boolean pushBack(T item);\r\n\r\n boolean deleteFront();\r\n\r\n boolean deleteBack();\r\n\r\n int size();\r\n\r\n boolean del(T item);\r\n\r\n T get(int pos);\r\n\r\n List<T> get(int pos, int num);\r\n\r\n List<T> rget(int pos, int num);\r\n\r\n boolean insert(int pos, T key);\r\n\r\n boolean set(int pos, T key);\r\n\r\n boolean clear();\r\n\r\n\r\n}",
"public int getIndex(\n )\n {return index;}",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public interface List<E> {\n\n /**\n * Return number of elements in the list\n * @return Number of elements\n */\n int size();\n\n /**\n * Returns whether the list is empty\n * @return True if the list is empty, false otherwise\n */\n boolean isEmpty();\n\n /**\n * Returns the element at index i\n * @param i Index\n * @return Element at i\n * @exception IndexOutOfBoundsException If i is not valid, exception\n */\n E get(int i) throws IndexOutOfBoundsException;\n\n /**\n * Replaces the element at index i with e, and returns the replaced element\n * @param i Index\n * @param e New element\n * @return Element replaced by e\n * @exception IndexOutOfBoundsException If i is not valid, exception\n */\n E set(int i, E e) throws IndexOutOfBoundsException;\n\n /**\n * Inserts element e to be at index i, shifting all subsequent elements later\n * @param i Index\n * @param e New element\n * @exception IndexOutOfBoundsException If i is not valid, exception\n */\n void add(int i, E e) throws IndexOutOfBoundsException;\n\n /**\n * Removes and returns the element at index i, shifting subsequent elements\n * earlier\n * @param i Index\n * @return Element previously at i\n * @exception IndexOutOfBoundsException If i is not valid, exception\n */\n E remove(int i) throws IndexOutOfBoundsException;\n\n /**\n * Empty the list\n */\n public void clear();\n\n /**\n * Construct a clone (copy) of the object.\n * @return New list object with the same structure. This copy should be\n * shallow, i.e., the individual elements are not cloned.\n */\n public List<E> clone();\n}",
"public interface IList<E> {\n\n public static final int DEFAULT_CAPACITY = 10;\n\n public void add(E e);\n\n public E get(int i);\n\n public boolean remove(E e);\n\n public int size();\n\n public boolean isEmpty();\n\n public boolean contains(E e);\n\n public int indexOf(E e);\n\n public void clear();\n\n public Iterable<E> iterable();\n\n}",
"@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"public interface Map<K,V> {\n\n int size();\n\n boolean isEmpty();\n\n boolean containsKey(Object key);\n\n boolean containsValue(Object value);\n\n V get(Object key);\n\n V put(K key, V value);\n\n void putAll(Map<? extends K, ? extends V > m);\n\n void clear();\n\n //views\n Set<K> keySet();\n\n Collection<V> values();\n\n Set<Map.Entry<K,V>> entrySet();\n\n interface Entry<K,V>{\n K getKey();\n\n V getValue();\n\n V setValue(V value);\n\n boolean equals(Object o);\n\n int hashCode();\n\n }\n\n boolean equals(Object o);\n\n int hashCode();\n\n}",
"public abstract Object get(int pos) throws IndexOutOfBoundsException;",
"StorableIndexInfo getIndexInfo();",
"T getElementFromIndex(int index) throws ListException;",
"@Override\n @SuppressWarnings(\"unchecked\")\n public void put(int index, Object value) {\n switch (index) {\n case 0:\n this.creationTimes = (List<String>)value;\n break;\n\n case 1:\n this.elapsedRenderTimeSeconds = (List<Long>)value;\n break;\n\n case 2:\n this.jobIds = (List<Long>)value;\n break;\n\n case 3:\n this.paths = (List<String>)value;\n break;\n\n case 4:\n this.renderedBytes = (List<Long>)value;\n break;\n\n case 5:\n this.renderedFrames = (List<Long>)value;\n break;\n\n case 6:\n this.renderedPercents = (List<Long>)value;\n break;\n\n case 7:\n this.requests = (List<String>)value;\n break;\n\n case 8:\n this.status = (List<String>)value;\n break;\n\n case 9:\n this.ttls = (List<Long>)value;\n break;\n\n case 10:\n this.info = (Map<String, String>)value;\n break;\n\n default:\n throw new IndexOutOfBoundsException(\"Invalid index specified.\");\n }\n }",
"public int getIndex() { return this.index; }",
"Object get(int index);",
"Object get(int index);",
"protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }",
"public LinkedListIndexedCollection() {\n\t\tthis.first=null;\n\t\tthis.last=null;\n\t\tthis.size=0;\n\t}",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();",
"public interface Map<K,T> {\n\t/**\n\t * Puts a value <code>elem</code> associated with the <code>key</code>\n\t * @param key The key associated to the value\n\t * @param elem The value to store\n\t */\n\tpublic void put(K key, T elem);\n\t\n\t/**\n\t * Returns the corresponding element associated to the <code>key</code>\n\t * @param key The key identifying an element\n\t * @return The element associated to the <code>key</code>. If there is no such element, returns null\n\t */\n\tpublic T get(K key);\n\t\n\t/**\n\t * Returns the number of elements in the map\n\t * @return the number of elements in the map\n\t */\n\tpublic int size();\n\t\n\t/**\n\t * Returns a collection of the keys in the map.\n\t * @return a collection of the keys in the map\n\t */\n\tpublic List<K> keys();\n\t\n\t/**\n\t * Returns a collection of the values in the map.\n\t * @return a collection of the values in the map.\n\t */\n\tpublic List<T> values();\n\n\t/**\n\t * Removes the element correspondong to the <code>key</code> from the map\n\t * @param key\n\t */\n public void remove(K key);\n}",
"public int sizeOfMap(){return size;}",
"void add(int index, Object element);",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"E get( int index );",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public void indexMap(LWMap map) {\n vueComponentMap.clear();\n removeAll();\n indexAdd(map);\n }",
"public List<?> getMap(int vectorIndex) {\n ListVector vector = (ListVector) table.getVector(vectorIndex);\n return vector.getObject(rowNumber);\n }",
"public interface Collection<E> {\n\n /**\n * 获取迭代器.\n * @return 迭代器\n */\n Iterator<E> iterator();\n\n /**\n * 获取集合容量.\n * @return The size of collection\n */\n int size();\n\n /**\n * 根据索引获取该位置上的值.\n * @param index 位置索引\n * @return 索引位置的值\n */\n E get(int index);\n\n}",
"java.util.List<Index>\n getIndicesList();",
"public interface CacheIndex {\n \n /**\n * Puts index on indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void put(Object indexedKey, Object key);\n \n /**\n * Removes the index from indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void remove(Object indexedKey, Object key);\n \n /**\n * Equals to.\n *\n * @param expectedValue the expected value\n * @return the list\n */\n List<Object> equalsTo(Object expectedValue);\n \n /**\n * Less than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThan(Object value);\n \n /**\n * Less than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThanOrEqualsTo(Object value);\n \n /**\n * Greater than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThan(Object value);\n \n /**\n * Greater than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThanOrEqualsTo(Object value);\n \n /**\n * Between.\n *\n * @param lowerBound the lower bound\n * @param upperBound the upper bound\n * @return the list\n */\n List<Object> between(Object lowerBound, Object upperBound);\n \n}",
"void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);",
"public interface ISimpleList<Type> extends Iterable<Type> {\n /**\n * Add a value to the end of this list.\n * \n * @param t is the value added to this list\n */\n public void add(Type t);\n\n /**\n * Add a value at a specified index in the list, shifting other values to\n * make room.\n * \n * @param index is the index at which new value added\n * @param t the new value added\n * @throws IndexOutOfBoundsException\n * if index is greater than size of list or less than zero\n */\n public void add(int index, Type t);\n\n /**\n * Returns an iterator over this list's values, the iterator supports\n * remove.\n * \n * @return iterator (supporting remove))\n */\n public Iterator<Type> iterator();\n\n /**\n * Remove and return the value at the specified index, shifting other values\n * \n * @param index of value to remove\n * @return the removed value\n * @throws IndexOutOfBoundsException\n * if index < 0 or >= size()\n */\n public Type remove(int index);\n\n /**\n * Remove first occurrence of a value, and return true iff removal succeeds.\n * \n * @param t is value removed\n * @return true if a value is removed, false otherwise\n */\n public boolean remove(Type t);\n\n /**\n * Return the value at the specified index.\n * \n * @param index of value to return\n * @return value at specified index\n * @throws IndexOutOfBoundsException\n * if index < 0 or >= size()\n */\n public Type get(int index);\n\n /**\n * Return index of first occurrence of a value, or -1 if not found.\n * \n * @param t is valuel searched for\n * @return index of first occurrence of t, or -1 if t not found\n */\n public int indexOf(Type t);\n\n /**\n * Returns number of elements in this list.\n * \n * @return number of elements in list\n */\n public int size();\n}",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}",
"boolean isIndexed();",
"boolean isIndexed();",
"@Test\n public void testIndexOf() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.indexOf(arg);\n int expResult = 2;\n\n assertEquals(expResult, result);\n\n }",
"@Test\r\n\tpublic void testAddByIndex() {\r\n\t\tlist.add(3, new Munitions(3, 4, \"ferrum\"));\r\n\t\tlist.add(5, new Munitions(34, 4, \"iron\"));\r\n\t\tAssert.assertEquals(17, list.size());\r\n\t\tAssert.assertTrue(list.get(3).equals(new Munitions(3, 4, \"ferrum\")));\r\n\t}",
"public interface Map<K, V>\n{\n // Adds the specified key-value pair to the map. Does nothing if the key already\n // exists in the map.\n void add(K key, V value);\n\n // Returns the value associated with the specified key, or null of that key doesn't\n // exist in the map\n V get(K key);\n\t\n // Removes the key-value pair with the specified key from the map. Does nothing if\n // the key doesn't exist in the map.\n void remove(K key);\n}",
"public AutoIndexMap()\n\t\t{\n\t\t\t// Initialise instance variables\n\t\t\tindices = new IdentityHashMap<>();\n\t\t}",
"@VTID(10)\n int getIndex();",
"public interface Map<K, V> {\n /** Returns the number of entries in the map. */\n public int size();\n\n /** Returns whether the map is empty or not. */\n public boolean isEmpty();\n\n /**\n * Puts a given key and value pair into the map, replaces the previous\n * one, if exits. And returns the old value, if exits, otherwise returns\n * null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V put(K key, V value) throws InvalidKeyException;\n\n /**\n * Gets the value by given key.\n * If the key cannot be found, return null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V get(K key) throws InvalidKeyException;\n\n /**\n * Removes the key-value pair by given key.\n * Returns the value if found the key, otherwise return null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V remove(K key) throws InvalidKeyException;\n\n /**\n * Returns iterable object containing all the keys in the map.\n */\n public Iterable<K> keys();\n\n /**\n * Returns iterable object containing all the values in the map.\n */\n public Iterable<V> values();\n\n /**\n * Returns iterable object containing all the entries in the map.\n */\n public Iterable<Entry<K, V>> entries();\n}",
"public Type get(int index);",
"private static <K, V> int keyIndexIn(kotlin.reflect.jvm.internal.pcollections.ConsPStack r2, java.lang.Object r3) {\n /*\n r0 = 0\n L_0x0001:\n if (r2 == 0) goto L_0x001b\n int r1 = r2.size()\n if (r1 <= 0) goto L_0x001b\n E r1 = r2.first\n kotlin.reflect.jvm.internal.pcollections.MapEntry r1 = (kotlin.reflect.jvm.internal.pcollections.MapEntry) r1\n K r1 = r1.key\n boolean r1 = r1.equals(r3)\n if (r1 == 0) goto L_0x0016\n return r0\n L_0x0016:\n kotlin.reflect.jvm.internal.pcollections.ConsPStack<E> r2 = r2.rest\n int r0 = r0 + 1\n goto L_0x0001\n L_0x001b:\n r2 = -1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.pcollections.HashPMap.keyIndexIn(kotlin.reflect.jvm.internal.pcollections.ConsPStack, java.lang.Object):int\");\n }",
"@Override\n public final int getIndex() {\n return index;\n }",
"Object getElementAt(int index);",
"public interface IMList<T> {\r\n boolean pushFront(String listName,T item);\r\n\r\n boolean pushBack(String listName,T item);\r\n\r\n boolean deleteFront(String listName);\r\n\r\n boolean deleteBack(String listName);\r\n\r\n int size(String listName);\r\n\r\n boolean del(String listName,T item);\r\n\r\n T get(String listName,int pos);\r\n\r\n List<T> get(String listName,int pos, int num);\r\n\r\n List<T> rget(String listName,int pos, int num);\r\n\r\n boolean insert(String listName,int pos, T key);\r\n\r\n boolean set(String listName,int pos, T key);\r\n\r\n boolean clear(String listName);\r\n\r\n\r\n}",
"private HashMap<String, HashSet<String>> convertIndexToMap(IndexReader reader) throws IOException{\n\t\t HashMap<String, HashSet<String>> hmap = new HashMap<String, HashSet<String>>();\n\t\t HashSet<String> docIdSet;\n\t\t \n\t\t for(int i=0; i<reader.numDocs(); i++){\n\t\t\t Fields termVect = reader.getTermVectors(i);\n\n\t\t\t if(termVect == null)\n\t\t\t\t continue;\n\t\t\t \n\t for (String field : termVect) {\n\t \t \n\t Terms terms = termVect.terms(field);\n\t TermsEnum termsEnum = terms.iterator();\n\t Document doc = reader.document(i);\n\t \n\t while(termsEnum.next() != null){\n\t \t BytesRef term = termsEnum.term();\n\t \t String strTerm = term.utf8ToString();\n\t \t \n\t \t if (hmap.containsKey(strTerm)){\n\t \t\t docIdSet = hmap.get(strTerm);\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t } else{\n\t \t\t docIdSet = new HashSet<String>();\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t\t hmap.put(strTerm, docIdSet);\n\t \t }\n\t }\n\t }\n\t\t }\n\t\t \n\t\t return hmap;\n\t}",
"E get(int i) throws IndexOutOfBoundsException;",
"public abstract List<T> mo2625k();",
"public static void main(String[] args) {\n\tMap map=new HashMap();\n\tmap.put(100,\"java\");\n\tSystem.out.println(map);\n\t\n\tArrayList<String> arr=new ArrayList<>();\n\tarr.add(\"java\");\n\tarr.add(\"Santosh\");\n\tString s=arr.get(1);\n\tSystem.out.println(s);\n\t\n\t\n}",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"@Override\r\n\tpublic Object visitListOrMapElemExpression(\r\n\t\t\tListOrMapElemExpression listOrMapElemExpression, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tString ident = listOrMapElemExpression.identToken.getText();\r\n\t\tDeclaration dec = symbolTable.lookup(ident);\r\n\t\tcheck(dec != null, \"undeclare MapElemExpression\", listOrMapElemExpression);\r\n\t\tif (!(dec instanceof VarDec)) {\t\t\t\r\n\t\t\tthrow new TypeCheckException(ident + \" is not defined as a variable\", listOrMapElemExpression);\r\n\t\t}\t\r\n\t\tString varType = (String) ((VarDec)dec).type.visit(this, arg);\r\n\t\tif (varType.substring(0, varType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\tString lomrExprType = (String) listOrMapElemExpression.expression.visit(this, arg);\r\n\t\t\tcheck(lomrExprType.equals(intType), \"List subscript must be int\", listOrMapElemExpression);\r\n\t\t\tString elementType = varType.substring(varType.indexOf(\"<\") + 1, varType.lastIndexOf(\">\"));\r\n\t\t\tlistOrMapElemExpression.setType(elementType);\r\n\t\t\treturn elementType;\r\n\t\t} else {\r\n\t\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\r\n\t\t}\r\n\t}",
"void createIndex(){\n int index=0;\n for(int i=0;i<ancogs.size();i++)\n if(!cogToIndex.containsKey(ancogs.get(i).getValue2()))\n cogToIndex.put(ancogs.get(i).getValue2(), index++);\n}",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }"
] | [
"0.6338603",
"0.6104033",
"0.60573477",
"0.60406506",
"0.59323025",
"0.59002566",
"0.5894424",
"0.5818003",
"0.5799476",
"0.5757783",
"0.57254237",
"0.56742114",
"0.56742114",
"0.56742114",
"0.5656376",
"0.5642815",
"0.56023127",
"0.5586396",
"0.5567665",
"0.556575",
"0.5516276",
"0.55114245",
"0.55112535",
"0.5502482",
"0.5497954",
"0.549251",
"0.5488821",
"0.5488821",
"0.54733866",
"0.54509205",
"0.54424345",
"0.5441016",
"0.54333204",
"0.54212856",
"0.54194593",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.54020154",
"0.53876877",
"0.5383456",
"0.5381687",
"0.538042",
"0.5365166",
"0.5354769",
"0.53358835",
"0.53358835",
"0.5330058",
"0.5325168",
"0.5310565",
"0.5297012",
"0.5295263",
"0.5286039",
"0.5275144",
"0.52643484",
"0.52643484",
"0.52643484",
"0.52612066",
"0.52571267",
"0.5248361",
"0.52450967",
"0.52426755",
"0.5241651",
"0.523053",
"0.52267885",
"0.5216019",
"0.5210283",
"0.520206",
"0.520206",
"0.52008426",
"0.519974",
"0.519781",
"0.5182838",
"0.5180482",
"0.51760155",
"0.51748925",
"0.51710016",
"0.51663053",
"0.51636684",
"0.51632136",
"0.5154168",
"0.51516336",
"0.5148874",
"0.5146988",
"0.5143903",
"0.5143903",
"0.51438",
"0.51405513",
"0.5135879",
"0.5135879",
"0.5135879",
"0.51294893"
] | 0.0 | -1 |
JCVideoPlayerStandard player = (JCVideoPlayerStandard) findViewById(R.id.player_video); | private void initVideo(String videoPath) {
JCVideoPlayerStandard.startFullscreen(this, JCVideoPlayerStandard.class,
videoPath,"");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void playVideo() {\n }",
"private void setupPlayer() {\n\n\n\n Video video = createVideoFromUrl(\"https://sonyhdslive-lh.akamaihd.net/i/LIVELINEARCHANNELWAHSD_2@324771/index_100_av-p.m3u8?sd=10&rebase=on&id=AgC2SfL6YBG2JpMHMVl8BkTC0SpVbBy%2frYkaeUHMRu8inYQ3DHLx4I+pRLNhOPyxeLBTSrs2hL4lZw%3d%3d&hdntl=exp=1496471827~acl=%2fi%2f*~data=hdntl~hmac=808df26a60cb28eff4d28a242510d2dba361d9d8658f1e3bbe3090f85e633632\");\n brightcoveVideoView.add(video);\n brightcoveVideoView.start();\n// ImaManager.setupIma(brightcoveVideoView, googleAds);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=inflater.inflate(R.layout.fragment_trainee__third, container, false);\n\n Record_button=(Button)v.findViewById(R.id.record_button);\n vView=(VideoView)v.findViewById(R.id.videoView);\n MediaController mediaController = new MediaController(v.getContext());\n mediaController.setAnchorView(vView);\n// set media controller object for a video view\n vView.setMediaController(mediaController);\n Record_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dispatchTakeVideoIntent();\n\n\n }\n });\n return v;\n\n\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_video_play);\n\n videoView = findViewById(R.id.video_view);\n// String path = Environment.getExternalStorageDirectory().getAbsolutePath()+\" Path name \";\n// videoView.setVideoPath();\n videoView.setVideoURI(Uri.parse(\"android.resource://\" + getPackageName() + \"/raw/video_transparent\"));\n\n\n MediaController mediaController = new MediaController(this);\n videoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(videoView);\n\n }",
"private void initiatePlayer() {\n ExoPlayerVideoHandler.getInstance().initiateLoaderController(\n this,\n loadingImage,\n exoPlayerView,\n ExoPlayerVideoHandler.getInstance().getVideoResolution()!=null?ExoPlayerVideoHandler.getInstance().getVideoResolution():getString(R.string.default_resolution),\n this\n );\n ExoPlayerVideoHandler.getInstance().playVideo();\n content = ExoPlayerVideoHandler.getInstance().getCurrentVideoInfo();\n //ExoPlayerVideoHandler.getInstance().goToForeground();\n setSpinnerValue();\n }",
"private void InitVideoPlayer(String videoPlayPath) {\n if (mVideoPlayView != null) {\n if (!Tools.isVideoStreamlessModeOn()) {\n mVideoPlayView.stopPlayback();\n }\n\n mVideoPlayView.setPlayerCallbackListener(myPlayerCallback);\n }\n\n Log.i(TAG, \"*******videoPlayPath*****\" + videoPlayPath + \"SDK_INT: \" + Build.VERSION.SDK_INT);\n videoPlayPath = Tools.fixPath(videoPlayPath);\n\n \n if (videoPlayPath != null) {\n mVideoPlayView.setVideoPath(videoPlayPath);\n }\n mVideoPlayView.setHandler(videoHandler);\n\n }",
"public void onVideoStarted () {}",
"private void setUpMediaPlayer(){\n //Inicializar Media PLayer\n mGlue = new LiveMediaPlayerGlue(getActivity(),this) {\n @Override\n protected void onRowChanged(PlaybackControlsRow row) {\n\n }\n };\n\n //Fragment de Video\n Fragment videoSurfaceFragment = getFragmentManager()\n .findFragmentByTag(VideoSurfaceFragment.TAG);\n\n SurfaceView surface = (SurfaceView) videoSurfaceFragment.getView();\n surface.getHolder().addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder holder) {\n mGlue.setDisplay(holder);\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n mGlue.resetPlayer();\n mGlue.releaseMediaSession();\n mGlue.setDisplay(null);\n mGlue.enableProgressUpdating(false);\n ;\n }\n });\n }",
"@Override\n public void onVideoStarted() {\n }",
"public interface VideoContract {\n interface P extends VideoControl{\n void onCreate(Context context);\n void setBuilder(VideoBuilder builder);\n void onPause();\n void onResume();\n void onDestroy();\n void playOrPause();\n void onViewDownTouch();\n void stopHideControlRunnable();\n void startHideControlRunnable();\n }\n interface V extends VideoControl{\n void showNotFoundVideo();\n //是否显示播放的按钮,则是在暂停的时候显示\n void setIsShowPlayIcon(boolean isShow);\n void setTimeTotal(int seconds);\n void setBufferingUpdatePosition(int seconds);\n void setTimeCurrent(int seconds);\n void playCompleteCleanFlags();\n void setTitle(String title);\n void showControlView();\n void hideControlView();\n }\n interface VideoControl {\n void seekToSecond(int seconds);\n void pauseVideo();\n void resumeVideo();\n void stopVideo();\n void playVideo(String url);\n }\n}",
"@Override\n public void onStarted(EasyVideoPlayer player) {\n }",
"@Override\n public void onClick(View v) {\n View viewVideo = LayoutInflater.from(mContext).inflate(R.layout.dialog_video,null);\n AlertDialog.Builder layoutDialogVideo = new AlertDialog.Builder(mContext);\n\n VideoView vvVideoView = viewVideo.findViewById(R.id.vv_dialogVideo_video);\n vvVideoView.setVideoPath(item.getVideo());\n vvVideoView.seekTo(0);\n vvVideoView.start();\n MediaController mediaController = new MediaController(mContext);\n vvVideoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(vvVideoView);\n\n layoutDialogVideo.setView(viewVideo);\n Dialog dialogVideo = layoutDialogVideo.create();\n\n dialogVideo.show();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gimn, container, false);\n\n surface = (SurfaceView) view.findViewById(R.id.video);\n holder = surface.getHolder();\n final Button play = (Button) view.findViewById(R.id.play);\n Button stop = (Button) view.findViewById(R.id.stop);\n\n play.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n player = MediaPlayer.create(getContext(), R.raw.gimn);\n player.setDisplay(holder);\n\n player.start();\n }\n });\n\n stop.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if ( player != null && player.isPlaying() ) {\n player.stop();\n player.release();\n }\n }\n });\n\n return view;\n }",
"public interface IVideoController {\n\n void setAnchorView(View view);\n\n void setEnabled(boolean enabled);\n\n void setMediaPlayer(MediaController.MediaPlayerControl player);\n\n void showOnce(View view);\n\n void setVisibility(int visibility);\n\n boolean isVisible();\n\n}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_video_show);\n\n try\n {\n this.getSupportActionBar().hide();\n }\n catch (NullPointerException e){}\n\n videoView = findViewById(R.id.videoView);\n Bundle extras = getIntent().getExtras();\n Uri videoUri = (Uri) extras.get(\"videoUri\");\n videoView.setVideoURI(videoUri);\n MediaController mediaController = new MediaController(this);\n videoView.setMediaController(mediaController);\n mediaController.setAnchorView(videoView);\n videoView.start();\n }",
"@Override\n public void onCompletion(EasyVideoPlayer player) {\n }",
"com.google.ads.googleads.v6.resources.Video getVideo();",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_video);\n\t\tex = getIntent().getExtras();\n\t\t \n\n\t HashMap<String, String> mp = new HashMap<String, String>();\n\t\t mp.put(\"tag\", \"realVid\");\n\t\t if(ex.getString(\"cat\").equals(new String(\"ppv\")))\n\t\t {\n\t\t\t String vidttl =\"\";\n String vidtitle = ex.getString(\"title\");\n\t\t \t int pos = vidtitle.indexOf(\"Pay Per View\");\n\t\t\t\tif(pos!= -1)\n\t\t\t\t\tvidttl = vidtitle.substring(0,pos-1);\n\t\t\t\tmp.put(\"title\",vidttl);\n\t\t }\n\t\t else\n\t\t\t mp.put(\"title\", ex.getString(\"title\"));\n\t\t GetRealVidData gvd = new GetRealVidData(mp,this);\n\t\t gvd.execute(serverUrl);\n\t\t youTubeView1 = (YouTubePlayerView)findViewById(R.id.youtube_view1);\n\t\t \n\t\t \n\t\t/*\n\t\t if(ex!=null)\n\t\t \tvid = ex.getString(\"url\");\n\t\t//TextView tv = (TextView)findViewById(R.id.textView1);\n\t\t//VideoView videoView = (VideoView)findViewById(R.id.videoV);\n\t\tint pos = vid.indexOf(\"?rel\");\n\t\tif(pos!= -1)\n\t\t\tvidid = vid.substring(0, pos);\n\t\telse \n\t\t\tvidid = vid;\n\t\t\n\t\tVIDEO = vidid;\n YouTubePlayerView youTubeView = (YouTubePlayerView)findViewById(R.id.youtube_view);\n */\n // youTubeView.initialize(DEVELOPER_KEY, this);\n\n }",
"@Override\n public void onClick(View v) {\n playVideo();\n }",
"@Override\n public void onServerStart(String videoStreamUrl)\n {\n\n\n\n Log.d(\"Activity\",\"URL: \"+ videoStreamUrl);\n\n\n video = (VideoView)findViewById(R.id.video);\n\n Uri uri = Uri.parse(videoStreamUrl);\n video.setVideoURI(uri);\n video.start();\n\n\n\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\n\t\tView rootView = inflater.inflate(R.layout.one_video_frag,container,false);\n\t\tvideoView = (VideoView)rootView.findViewById(R.id.videoView);\n\t\t\n\t\tMediaController mc=new MediaController(rootView.getContext());\n\t\tmc.setAnchorView(videoView);\n\t\tmc.setMediaPlayer(videoView);\n\t\t\n\t\t//Toast.makeText(rootView.getContext(),videoFile,Toast.LENGTH_LONG).show();\n\t\tvideoView.setMediaController(mc);\n\t\tvideoView.setVideoURI(Uri.parse(videoFile));\n\t\tvideoView.start();\n\t\tvideoView.setOnErrorListener(new OnErrorListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onError(MediaPlayer mp, int what, int extra) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(\"Error in Video playing\",\"\"+what);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\treturn rootView;\n\t\t\n\t}",
"public VideoUI getVideoUI() {\n return new VideoUI(this.mActivity, this, this.mActivity.getModuleLayoutRoot());\n }",
"public void playVideo() {\n \t\t try {\n \t\t\t videoView.setOnPreparedListener(new OnPreparedListener() {\n \n \t\t\t\t @Override\n \t\t\t\t public void onPrepared(MediaPlayer mp) {\n \t\t\t\t\t mp.setLooping(true); \n \t\t\t\t }\n \t\t\t });\n \t\t\t videoView.setVideoPath(SAVE_PATH);\n \t\t\t videoView.start();\n \t\t } catch (Exception e) {\n \t\t\t Log.e(\"Video\", \"error: \" + e.getMessage(), e);\n \t\t }\n \t }",
"public VideoFragment() {\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_live);\n\n initView();\n initPlayer();\n\n }",
"@Override\r\n public void onClick(View v) {\n String path = \"http://techslides.com/demos/sample-videos/small.mp4\";\r\n// Uri uri=Uri.parse(path);\r\n// videoView.setVideoURI(uri);\r\n //MediaController mc = new MediaController(TransformDetailActivity.this);\r\n\r\n //videoView.start();\r\n// videoView.setOnTouchListener(new View.OnTouchListener() {\r\n// @Override\r\n// public boolean onTouch(View v, MotionEvent event) {\r\n// System.out.print(videoView.isPlaying());\r\n// if(videoView.isPlaying()) {\r\n// stopPosition[0] = videoView.getCurrentPosition();\r\n// videoView.pause();\r\n// } else {\r\n// videoView.seekTo(stopPosition[0]);\r\n// videoView.start();\r\n// }\r\n// return false;\r\n// }\r\n// });\r\n// String path = \"android.resource://\" + getPackageName() + \"/\" + R.raw.welcome;\r\n// Uri videoUri = Uri.parse(path);\r\n// Intent intent = new Intent(Intent.ACTION_VIEW, videoUri);\r\n// intent.setDataAndType(videoUri, \"video/*\");\r\n// startActivity(intent);\r\n\r\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(path));\r\n intent.setDataAndType(Uri.parse(path), \"video/mp4\");\r\n startActivity(intent);\r\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_video);\n\t}",
"@SuppressLint(\"NewApi\") @Override\n\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\tplayer = mp;\n\t\t\tpb.setVisibility(View.GONE);\n\t\t\t//img_volumvideo.setVisibility(View.VISIBLE);\n\t\t\t mp.setVideoScalingMode(MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING);\n\t\t\t\tStringBuffer sbf = new StringBuffer();\n\t\t\t\tsbf.append(Constant.AppVideoApi);\n\t\t\t\tsbf.append(\"offer_id=\"\n\t\t\t\t\t\t+AppofferUtil.getIntsance().getList().get(0).getOffer_id());\n\t\t\t\tsbf.append(\"&dev_id=\" + AppofferUtil.getIntsance().getList().get(0).getDev_id());\n\t\t\t\tsbf.append(\"&app_id=\" + AppofferUtil.getIntsance().getList().get(0).getApp_id());\n\t\t\t\tsbf.append(\"&is_integral=\" + AppofferUtil.getIntsance().getList().get(0).getIs_integral());\n\t\t\t\tsbf.append(\"&ad_type=\" + AppofferUtil.getIntsance().getList().get(0).getApp_type());\n\t\t\t\tsbf.append(\"&android_id=\" + Constant.getAndroidID(AlertVideoActivity.this));\n\t\t\t\tTapfunsCommandExecute.getInstance().executeGet(AlertVideoActivity.this, sbf.toString(),\n\t\t\t\t\t\tnew RequestCallBack() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void getRequestResult(String command) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tTapfunsLogUtil.logI(command);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t mp.setOnInfoListener(new MediaPlayer.OnInfoListener() {\n\t\t\t\t\t @Override\n\t\t\t\t\t public boolean onInfo(MediaPlayer mp, int what, int extra) {\n\n\t\t\t\t\t if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START) {\n\t\t\t\t\t // video started\n\t\t\t\t\t videoView.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\t\t return true;\n\t\t\t\t\t }\n\t\t\t\t\t return false;\n\t\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t mp.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t // video started\n\t\t\t\t\t videoView.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\t\t}\n\t\t\t\t}); \n\t\t}",
"public void onPrepared(MediaPlayer mediaPlayer) {\n progressDialog.dismiss();\n //if we have a position on savedInstanceState, the video playback should start from here\n videoView.seekTo(position);\n if (position == 0) {\n } else {\n //if we come from a resumed activity, video playback will be paused\n videoView.pause();\n }\n// mediaController.setAnchorView(videoView);\n\n // TODO Auto-generated method stub\n int duration = mediaPlayer.getDuration() / 1000;\n int hours = duration / 3600;\n int minutes = (duration / 60) - (hours * 60);\n int seconds = duration - (hours * 3600) - (minutes * 60);\n String formatted = String.format(\"%02d:%02d\", minutes, seconds);\n //Toast.makeText(getApplicationContext(), \"duration is \" + formatted , Toast.LENGTH_LONG).show();\n textViewDuration.setText(formatted);\n initComponentVideo(videoView, floatingActionButton, appCompatSeekBarProgressBar, (int) java.util.concurrent.TimeUnit.MINUTES.toSeconds(minutes) + seconds, mediaPlayer, textViewDuration, smallPlayButton, soundButton, fullScreenButton);\n\n // appCompatSeekBarProgressBar.setProgress(videoView.getDuration());\n\n }",
"@Override\n\tpublic void videoStart() {\n\t\t\n\t}",
"private void initializePlayer(String videoUrl, View rootView, Bundle savedInstanceState) {\n\n // Make sure that the Player is not initiated before\n if(mSimplePlayer == null) {\n // Parse the url string to Uri\n Uri mediaUri = Uri.parse(videoUrl);\n\n // Create an instance TrackSelector and LoadControl\n TrackSelector trackSelector = new DefaultTrackSelector();\n LoadControl loadControl = new DefaultLoadControl();\n // Create an instance of the simple player\n mSimplePlayer = ExoPlayerFactory.newSimpleInstance(rootView.getContext(),\n trackSelector,loadControl);\n // Set the player to the player view\n mExoPlayerView.setPlayer(mSimplePlayer);\n // Prepare the MediaSource.\n String userAgent = Util.getUserAgent(rootView.getContext(),\"bakingapp\");\n MediaSource mediaSource = new ExtractorMediaSource(mediaUri, new DefaultDataSourceFactory(\n rootView.getContext(), userAgent), new DefaultExtractorsFactory(),\n null, null);\n // Prepare the simple player and set play when ready\n mSimplePlayer.prepare(mediaSource);\n\n // If it's only a rotation\n if(savedInstanceState != null) {\n long position = savedInstanceState.getLong(PLAYBACK_POSITION);\n // Prepare the simple player and set play when ready\n mSimplePlayer.seekTo(position);\n mSimplePlayer.setPlayWhenReady(true);\n } else {\n if(videoPosition != 0) {\n mSimplePlayer.seekTo(videoPosition);\n mSimplePlayer.setPlayWhenReady(true);\n }\n }\n\n // If orientation is Landscape Play\n if(getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE) {\n mSimplePlayer.setPlayWhenReady(true);\n }\n }\n }",
"@Override\n public void onClick(View view) {\n youTubePlayerFragment.initialize(YoutubeAPI_KEY, new YouTubePlayer.OnInitializedListener() {\n\n @Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player, boolean wasRestored) {\n if (!wasRestored) {\n player.setPlayerStyle(YouTubePlayer.PlayerStyle.DEFAULT);\n player.loadVideo(\"MOJRWYzevLg\");\n player.play();\n }\n }\n\n @Override\n public void onInitializationFailure(YouTubePlayer.Provider provider, YouTubeInitializationResult error) {\n // YouTube error\n // String errorMessage = error.toString();\n }\n });\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.page_video_playing_start, container, false);\n\t\tVideoView mVideoView =(VideoView)view.findViewById(R.id.video_view);\n\t\tmVideoView.setVideoPath(\"android.resource://\" + getActivity().getPackageName() + \"/\" + R.raw.video);\n\t\tmVideoView.start();\n\t\treturn view;\n\t\t//return super.onCreateView(inflater, container, savedInstanceState);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n if (android.os.Build.VERSION.SDK_INT > 9) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()\n .permitAll().build();\n StrictMode.setThreadPolicy(policy);\n }\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n // Define UI elements\n mView = (VideoView) findViewById(R.id.video_preview);\n connectionStatus = (TextView) findViewById(R.id.connection_status_textview);\n mHolder = mView.getHolder();\n mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n\n // Run new thread to handle socket communications\n Thread sendVideo = new Thread(new SendVideoThread());\n sendVideo.start();\n }",
"public ABLVideo Video() {\r\n \treturn new ABLVideo(BrickFinder.getDefault().getVideo());\r\n }",
"public void onFinishInflate() {\n super.onFinishInflate();\n this.o = getResources().getDimensionPixelSize(R.dimen.view_dimen_1000);\n this.p = getResources().getDimensionPixelSize(R.dimen.view_dimen_561);\n this.f5336c = (TextView) findViewById(R.id.title);\n this.f5337d = (TextView) findViewById(R.id.video_repeat);\n this.e = (RelativeLayout) findViewById(R.id.video_container);\n this.f = (ImageView) findViewById(R.id.banner);\n this.i = (ShowTextCountTextView) findViewById(R.id.content);\n this.m = (ImageView) findViewById(R.id.sounds_btn);\n this.i.setTexColor(getResources().getColor(R.color.color_black_trans_40));\n this.j = (DataNetVideoPlayBtn) findViewById(R.id.video_play_btn);\n this.n = (RelativeLayout) findViewById(R.id.jump_view);\n this.r = (PlayerView) findViewById(R.id.player_view);\n this.r.setControllerVisibilityListener(this);\n this.r.requestFocus();\n if (Build.VERSION.SDK_INT < 26) {\n ((SurfaceView) this.r.getVideoSurfaceView()).getHolder().setFormat(-3);\n }\n this.j.setOnClickListener(this);\n this.m.setOnClickListener(this);\n this.i.setOnClickListener(this);\n this.n.setOnClickListener(this);\n this.f5337d.setOnClickListener(this);\n this.s = a(true);\n this.v = new DefaultTrackSelector.ParametersBuilder().build();\n this.l = (ImageView) findViewById(R.id.loading);\n this.k = ObjectAnimator.ofFloat(this.l, AnimatedProperty.PROPERTY_NAME_ROTATION, new float[]{0.0f, 719.0f});\n this.k.setDuration(3000);\n this.k.setRepeatCount(-1);\n this.k.setInterpolator(new LinearInterpolator());\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tx.view().inject(this);\n\t\tcontext= this;\n\t\tlayoutInflater = LayoutInflater.from(this);\n\t\tIntent intent = getIntent();\n\t\tString title = intent.getStringExtra(\"title\");\n\t\tString url = intent.getStringExtra(\"url\");\n\t\t vid = intent.getStringExtra(\"vid\");\n\t\tif(intent.hasExtra(\"pic\"))\n\t\tpic = intent.getStringExtra(\"pic\");\n\t\t//is_vip = intent.getStringExtra(\"v_is_vip\");\n\t\timageLoader = ImageLoader.getInstance();\n\t\toptions = UsedUtil.getDisplayImageOptions();\n\t\thandler.sendMessage(handler.obtainMessage(10));\n\t\timageWidth = (DeviceInfo.screenWidth - DeviceInfo.dip2px(31))/2;\n\t\timageHeight = (int)(imageWidth*0.618);\n\t\tif(title != null)\n\t\t\ttv_title.setText(title);\n\t\turl = getURL(url);\n\t\tcf = this.getResources().getConfiguration();\n\t\tUri uri = Uri.parse(url);\n\t\tvideo.setVideoURI(uri);\n\t\tvideo.setOnPreparedListener(this);\n\t\tmMediaController = new MediaController(this);\n\n\t\tvideo.setMediaController(mMediaController);\n\t\tvideo.setFocusableInTouchMode(false);\n\t\tvideo.setFocusable(false);\n\t\tvideo.setEnabled(false);\n\t\t//videoView.setVideoURI(Uri.parse(\"android.resource://\" + getPackageName() + \"/\" + R.raw.shouyekaichang));\n\t\t//videoView.setVideoQuality(MediaPlayer.VIDEOQUALITY_LOW);//高画质\n\n\n\t\tvideo.setPlayPauseListener(new CustomVideoView.PlayPauseListener() {\n\n\t\t\tpublic void onPlay() {\n\t\t\t\tLogUtil.e(\"video is playing\");\n\t\t\t\tiv_paly.setVisibility(View.GONE);\n\t\t\t\tiv_pic.setVisibility(View.GONE);\n\t\t\t\tvideoPause();\n\t\t\t}\n\n\t\t\tpublic void onPause() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//LogUtil.e(\"video is paused\");\n\t\t\t\tiv_paly.setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t});\n\t\tvideo.start();\n\t\tvideo.pause();\n\t\t//video.requestFocus();\n\n\n\t\tIMSI = UsedUtil.getIMSI(this);\n\t\tLogUtil.e(\"vid==\" + vid+\",imsi=\"+IMSI);\n\t\tRequestParams params = new RequestParams(HttpUtil.Details_URL);\n\t\tparams.addBodyParameter(\"vid\",vid);\n\t\tparams.addBodyParameter(\"u_imsi\",IMSI);\n\n\t\thttpPost(params, 101);\n\n\t\tadapter = new ArrayAdapter<HolderInfo>(layoutInflater.getContext(),\n\t\t\t\tR.layout.item_gridview_home) {\n\n\t\t\tpublic android.view.View getView(int position,\n\t\t\t\t\t\t\t\t\t\t\t android.view.View convertView, android.view.ViewGroup parent) {\n\t\t\t\tViewHolder holder = null;\n\t\t\t\tif (convertView == null) {\n\t\t\t\t\tconvertView = layoutInflater.inflate(R.layout.item_gridview_home, null);\n\t\t\t\t\tholder = new ViewHolder();\n\t\t\t\t\tx.view().inject(holder, convertView);\n\t\t\t\t\tconvertView.setTag(holder);\n\t\t\t\t} else {\n\t\t\t\t\tholder = (ViewHolder) convertView.getTag();\n\t\t\t\t}\n\t\t\t\tHolderInfo itm = getItem(position);\n\t\t\t\tholder.initview(itm);\n\n\t\t\t\treturn convertView;\n\t\t\t}\n\t\t};\n\t}",
"public String getVideo() {\n return video;\n }",
"public By videoCover(){\r\n\t\t return By.xpath(\"//div[@class='player']\");\r\n\t}",
"@Override\n public void onSubmit(EasyVideoPlayer player, Uri source) {\n }",
"private void initVideoView(Context context) {\n IjkMediaPlayer.loadLibrariesOnce(null);\n IjkMediaPlayer.native_profileBegin(\"libijkplayer.so\");\n\n mAppContext = context.getApplicationContext();\n mActivity = (Activity) context;\n if (mActivity != null) {\n this.mBrightness = mActivity.getWindow().getAttributes().screenBrightness;\n }\n this.mAudioManager = (AudioManager) mAppContext.getSystemService(Context.AUDIO_SERVICE);\n this.mVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (mMediaController != null) {\n mMediaController.setVideoView(this);\n }\n screenWidthPixels = getScreenWidth(context);\n\n setRender(mCurrentRender);\n\n mVideoWidth = 0;\n mVideoHeight = 0;\n // REMOVED: getHolder().addCallback(mSHCallback);\n // REMOVED: getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n setFocusable(true);\n setFocusableInTouchMode(true);\n requestFocus();\n // REMOVED: mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>();\n setCurrentState(STATE_IDLE);\n mTargetState = STATE_IDLE;\n\n subtitleDisplay = new TextView(context);\n subtitleDisplay.setTextSize(16);\n subtitleDisplay.setShadowLayer(3, 5, 5, getResources().getColor(R.color.black));\n subtitleDisplay.setGravity(Gravity.CENTER);\n subtitleDisplay.setTextColor(getResources().getColor(R.color.white));\n// subtitleDisplay.setBackgroundResource(R.color.red);\n LayoutParams layoutParams_txt = new LayoutParams(\n LayoutParams.MATCH_PARENT,\n LayoutParams.WRAP_CONTENT,\n Gravity.BOTTOM);\n addView(subtitleDisplay, layoutParams_txt);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tParse.initialize(this, \"W5vtHZQ3gyzSNOxNIhJSbzpUA9mB2Z5UjpbrTfDr\",\n\t\t\t\t\"zMC1dkN3PTIsI1FPMrdD3rbI51p6vtsA75hsBbLQ\");\n\t\turlVid = getIntent();\n\t\tString url = urlVid.getStringExtra(\"url\");\n\t\tid = urlVid.getStringExtra(\"id\");\n\t\tsetContentView(R.layout.camera);\n\t\tsetActionBar();\n\t\tvid = (VideoView) findViewById(R.id.videoView1);\n\n\t\tMediaController mc = new MediaController(this);\n\t\tmc.setAnchorView(vid);\n\t\tUri uri = Uri.parse(url);\n\t\tvid.setMediaController(mc);\n\t\tmc.setMediaPlayer(vid);\n\t\tvid.setVideoURI(uri);\n\t\tvid.start();\n\t\t\n\t\tvid.setOnPreparedListener(new OnPreparedListener() {\n\n\t\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\t\tduration = vid.getDuration();\n\t\t\t\tvid.start();\n\n\t\t\t}\n\t\t});\n\n\t\tback = (ImageButton) findViewById(R.id.back);\n\t\tforward = (ImageButton) findViewById(R.id.forward);\n\t\tback.setOnClickListener(this);\n\t\tforward.setOnClickListener(this);\n\t\tback.setOnTouchListener(this);\n\t\tforward.setOnTouchListener(this);\n\t}",
"private void initializePlayer() {\n mBufferingTextView.setVisibility(VideoView.VISIBLE);\n\n // Buffer and decode the video sample.\n Uri videoUri = getMedia(VIDEO_URL);\n mVideoView.setVideoURI(videoUri);\n\n // Listener for onPrepared() event (runs after the media is prepared).\n mVideoView.setOnPreparedListener(\n new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mediaPlayer) {\n\n // Hide buffering message.\n mBufferingTextView.setVisibility(VideoView.INVISIBLE);\n previewImageview.setVisibility(View.GONE);\n // Restore saved position, if available.\n if (mCurrentPosition > 0) {\n mVideoView.seekTo(mCurrentPosition);\n } else {\n // Skipping to 1 shows the first frame of the video.\n mVideoView.seekTo(1);\n }\n\n // Start playing!\n mVideoView.start();\n }\n });\n\n // Listener for onCompletion() event (runs after media has finished\n // playing).\n mVideoView.setOnCompletionListener(\n new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n// TODO Restart video\n\n // Return the video position to the start.\n mVideoView.seekTo(0);\n mVideoView.start();\n }\n });\n }",
"public Videojuegos() {\n initComponents();\n }",
"@Override\n public void onPrepared(MediaPlayer mediaPlayer) {\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n playerView = (PlayerView) findViewById(R.id.ExoPlayerVIew);\n initPlayer();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.pro);\n Button info=(Button)findViewById(R.id.info);\n Button back=(Button) findViewById(R.id.back);\n Button power=(Button) findViewById(R.id.power);\n Button home=(Button) findViewById(R.id.home);\n Button next=(Button) findViewById(R.id.next);\n // pro=(VideoView)findViewById(R.id.videoView1);\n \n MediaController mc = new MediaController(this);\n \n VideoView vv = (VideoView)this.findViewById(R.id.video);\n vv.setMediaController(mc);\n String fileName = \"android.resource://\" + getPackageName() + \"/\" + R.raw.backhand_male;\n vv.getDuration();\n vv.setVideoURI(Uri.parse(fileName));\n \n vv.start();\n vv.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n \n public void onCompletion(MediaPlayer mp) {\n // not playVideo\n // playVideo();\n\n \tIntent intent = new Intent(Probackhandmale.this, Probackhandmale.class);\n \t startActivity(intent);\n \t finish();\n }\n });\n \n power.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \t power(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n \n back.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \t back(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n next.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n \t \n \t Context context = getApplicationContext();\n \tCharSequence text = \"Please press back then proceed to record a video.\";\n \tint duration = Toast.LENGTH_SHORT;\n \tToast toast = Toast.makeText(context, text, duration);\n \ttoast.show();\n \t \t \t \n\t \t }\n\t });\n info.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \tinfo(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n home.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n \t home(); \n \t \n \t \t \t \n \t }\n });\n \n \t }",
"private MyPlayerAdapter(){\n if (playerAdapter != null){\n throw new RuntimeException(\n \"Use getInstance() method to get the single instance of this class.\"\n );\n }\n if (mContext == null) {\n mContext = MyApplication.context();\n }\n if( mSession == null ) {\n initMediaSession();\n }\n\n\n mPlayer = getMediaPlayer();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);\n getWindow().setFormat(PixelFormat.UNKNOWN);\n setContentView(R.layout.activity_game_video_feed);\n\n mp4 = MediaPlayer.create(this,R.raw.videomusic);\n mp4.setLooping(true);\n mp4.start();\n\n\n VideoView videoView = (VideoView) findViewById(R.id.videoView003);\n\n Random rank = new Random();\n int num = rank.nextInt(4) + 1;\n\n videoView.setVideoPath(\"storage/emulated/0/Movies/cat1/eat/eat\" + num + \".mp4\");\n videoView.requestFocus();\n videoView.start();\n videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n mp.setVolume(0, 0);\n }\n });\n\n videoView.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n /*Intent intent = new Intent();\n intent.setClass(Game_video_play.this, MainActivity.class);\n startActivity(intent);*/\n mp4.stop();\n Game_video_feed.this.finish();\n }\n });\n\n /* button.setOnClickListener(new Button.OnClickListener() {\n @Override\n public void onClick(View v) {\n VideoView videoView = (VideoView) findViewById(R.id.videoView);\n String uriPath = \"android.resource://example.prgguru.com.myapplication/\"+R.raw.ykzzldx;\n Uri uri = Uri.parse(uriPath);\n videoView.setVideoURI(uri);\n videoView.requestFocus();\n videoView.start();\n\n }\n });*/\n\n\n }",
"@Override\r\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\r\n\t\tplayView = view.findViewById(R.id.play);\r\n\t\tplayView.setOnClickListener(this);\r\n\t\tvideoView = (VideoView) view.findViewById(R.id.video);\r\n\t\tListView listView = (ListView) view.findViewById(R.id.listview);\r\n\t\tadapter = new LiveListAdapter(getActivity(), list);\r\n\t\tlistView.setAdapter(adapter);\r\n\t\trequest();\r\n\t}",
"String getVideoId() {\r\n return videoId;\r\n }",
"public void playVideo(View view){\n YT_View.initialize(YouTubeConfig.getApiKey(), onInitializedListener);\n }",
"private void onPlayVideoClick() {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndType(Uri.parse(\"file://\" + mediaPath), \"video/mp4\");\n startActivity(intent);\n }",
"@Override\n public void onVideoSizeChanged(MediaPlayer player, int width, int height) {\n \n }",
"public void playVideo(View view) {\n ImageView video = (ImageView) view;\n String tag = video.getTag().toString();\n listener.playVideo(tag);\n }",
"public String getVideoDevice();",
"@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tUtils.printLog(TAG, \"onCreate start 20160621\");\r\n\t\tresolver = getContentResolver();\r\n\t\tsetContentView(R.layout.video_player);\r\n\t\t\r\n\t\tmAmanager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);\r\n\t\tsoundManager = TTvSoundManager.getInstance(this);\r\n\t\tmPicmanager = TTvPictureManager.getInstance(this);\r\n\t\tmTvmanager = TvManager.getInstance(this);\r\n\t\tmTTvmanager = TTvManager.getInstance(this);\r\n\t\tapplication = (MediaPlayerApplication) getApplication();\r\n\t\t\r\n\t\t\r\n\t\tmTTvmanager.addHandler(setSourceHandler, TTvUtils.TV_HANDLER_INDEX_TV_SET_SOURCE);\r\n\t\t\r\n\t\t// 切信源\r\n\t\tEnTCLInputSource curSource = TTvCommonManager.getInstance(this).getCurrentInputSource();\r\n\r\n\t\tUtils.printLog(TAG, \"onCreate curSource==\" + curSource);\r\n\t\tif (curSource != EnTCLInputSource.EN_TCL_STORAGE) {\r\n//\t\t\tTTvCommonManager.getInstance(this).setInputSource(EnTCLInputSource.EN_TCL_STORAGE);\r\n\t\t\tTTvCommonManager.getInstance(this).setInputSource(EnTCLInputSource.EN_TCL_STORAGE,true);\r\n\t\t\tUtils.printLog(TAG, \"setInputSource EN_TCL_STORAGE 1\");\r\n\t\t}else{\r\n\t\t\tisSourceChanged = true;\r\n\t\t\tUtils.printLog(TAG, \"InputSource EN_TCL_STORAGE 2\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t\tTDeviceInfo devinfo = TDeviceInfo.getInstance();\r\n\t\tclienttype = devinfo.getClientType(devinfo.getProjectID());\r\n\t\tUtils.printLog(TAG, \"clienttype is \" + clienttype);\r\n\t\tif (clienttype != null) {\r\n\t\t\tsplitArrayStrings = clienttype.split(\"-\");\r\n\t\t}\r\n\r\n\t\tif (!getPlayList(getIntent())) {\r\n\t\t\texitPlayforNoPlayList();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/***先获取参数,确认是否启动极简播放器后,再show loading**/\r\n//\t\tshowWatingDialog(isSimple);\r\n\t\tif (mCurrIndex < 0) {\r\n\t\t\tmCurrIndex = 0;\r\n\t\t}\r\n\t\tUtils.printPlayList(mList);\r\n\t\tseekBarPopWindow = new SeekBarPopWindow(this, mMediaHanler);\r\n\t\tpopWindow = new NotePopupWindow(this, mMediaHanler);\r\n\t\tfindView();\r\n\t\tmVideoContrl = new IVideoPlayControlHandler(this);\r\n\t\tmVideoContrl.registerCallback(mCallback);\r\n\t\tapplication.setVideoContrl(mVideoContrl);\r\n\t\tmBookMark = new BookMarkDB(this);\r\n\t\tmSurfaceView = (SurfaceView) this.findViewById(R.id.surfaceView);\r\n\t\tholder = mSurfaceView.getHolder();\r\n\t\tholder.addCallback(mVideoContrl);\r\n\t\tholder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\r\n\t\tmTime = new Timer();\r\n\t\tmTime.schedule(mTimerTask, 0, 1000);\r\n\t\t//startPlayEventTimer();\r\n\t\tIntentFilter intentFilter2 = new IntentFilter();\r\n\t\tintentFilter2.addAction(ConnectivityManager.CONNECTIVITY_ACTION);\r\n\t\tthis.registerReceiver(mConnectionChangeReceiver, intentFilter2);\r\n\r\n\t\tIntentFilter intentFilter3 = new IntentFilter();\r\n//\t\tintentFilter3.addAction(VideoPlayerUIConst.COLLECTION_OPERATE_DONE);\r\n\t\tintentFilter3.addAction(VideoPlayerUIConst.ATV_OSD_OPEN);\r\n\t\tintentFilter3.addAction(CommonConst.CLOSE_VIDEO_PLAY);\r\n\t\tintentFilter3.addAction(CommonConst.HOME_PRESSED);\r\n\t\tintentFilter3.addAction(CommonConst.STR_PORWER_CHANGE);\r\n\t\tintentFilter3.addAction(CommonConst.TV_PRESSED);\r\n\t\tintentFilter3.addAction(CommonConst.CHANGE_SOURCE_PRESSED);\r\n\t\tintentFilter3.addAction(Intent.ACTION_SHUTDOWN); \r\n\t\tintentFilter3.addAction(CommonConst.EXIT_3D);\r\n\t\tintentFilter3.addAction(CommonConst.HISTORYRECORD);\r\n\t\tintentFilter3.addAction(CommonConst.SOURCE_CHANGEandVOICEASS);\r\n\t\tintentFilter3.addAction(CommonConst.LanuageChange);\r\n\t\tintentFilter3.addAction(CommonConst.VIDEO_HDR_HLG_BROADCAST);\r\n\t\tthis.registerReceiver(myCollectionBroadcastReceiver, intentFilter3);\r\n\r\n\t\tIntentFilter intentFilter4 = new IntentFilter();\r\n\t\tintentFilter4.addAction(CommonConst.VOICE_CONTROL);\r\n\t\tthis.registerReceiver(mVoiceReceiver, intentFilter4);\r\n\t\tsendStopWidgetMusicBroadcast();\r\n\r\n\t\tif (isDMR) {\r\n\t\t\tmVideoContrl.setPlayType(VideoPlayerContrlConsts.MEDIA_SEQUENCE_PLAY);\r\n\t\t} else {\r\n\t\t\tmVideoContrl.setPlayType(getSavedPlayerType());\r\n\t\t}\r\n\r\n\t\tlistDialog = new VideoFileListDialog(this, mList, application);\r\n\t\tlistDialog.setCallback(this);\r\n\r\n\t\tmenuDialog = new VideoMenuSettingDialog(this, application);\r\n\t\tmenuDialog.setCallback(this);\r\n\t\t//设置屏幕保持唤醒\r\n\t\tPowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE);\r\n\t\twakeLock = powerManager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, \"VideoPlayer\");\r\n\t\t//退出屏保 \r\n\t\tint sysVersion = VERSION.SDK_INT; \r\n\t\tLog.v(TAG, \"onCreate sysVersion= \"+sysVersion);\r\n\t\tif (sysVersion>=17) {\r\n\t\t\t//退出屏保 minSdkVersion=\"17\"\r\n\t\t\tpowerManager.wakeUp(SystemClock.uptimeMillis());\r\n\t\t\tUtils.printLog(TAG, \"powerManager.wakeUp\");\r\n\t\t}\r\n\t\t\r\n\t\tint versionCode = Utils.getVersionCodeFromAPP(this);\r\n\t\tUtils.printLog(TAG, \"onCreate end ,versionCode=\"+versionCode);\r\n\t}",
"public void onPlayStart(){\n\n\t}",
"public void onPrepared(MediaPlayer player) {\n //player.start();\n }",
"public static VideoPlayers createVideoPlayers(){\n return new VideoPlayers();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tv, container, false);\n WebView webView_video = view.findViewById(R.id.webView_video);\n String url = \"https://www.google.com/\";\n webView_video.loadUrl(url);\n// String header = \"<iframe width=\\\"\\\" height=\\\"480\\\" src=\\\"https://www.youtube.com/embed/MM4ShEnKw3A\\\" frameborder=\\\"0\\\" allow=\\\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\\\" allowfullscreen></iframe>\";\n// webView_video.loadData(header, \"text/html\", \"UTF-8\");\n webView_video.setWebViewClient(new WebViewClient());\n webView_video.getSettings().setJavaScriptEnabled(true);\n// webView_video.setWebViewClient(new WebViewClient(){\n// @Override\n// public boolean shouldOverrideUrlLoading(WebView view, String url){\n// view.loadUrl(url);\n// return false;\n// }\n// });\n return view;\n }",
"public Video() {\n\t}",
"public PlayerView getPlayerView() {\n return playerView;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n \tsetContentView(R.layout.video_info);\n \t\n \tBundle extras = getIntent().getExtras();\n \tfinal Integer pos = extras.getInt(\"video_pos\", 0);\n \t\n \t\n \tswitch (pos) {\n \t\tcase 0: \n \t\t\ttitle = \"Title\";//(String) getResources().getText(R.string.v1_title);\n \t\t\tdescription = \"Description\";// (String) getResources().getText(R.string.v1_description);\n \t\t\turl = \"URL\";//(String) getResources().getText(R.string.v1_url);\n \t\t\thash = \"\";//(String) getResources().getText(R.string.v1_hash);\n \t\t\ttracker = \"\";//(String) getResources().getText(R.string.v1_tracker);\n \t\t\tdestination = \"\";// (String) getResources().getText(R.string.v1_destination);\n\n \t}\n \t\n \tTextView t = (TextView) findViewById(R.id.title);\n \tt.setText(title);\n \tt = (TextView) findViewById(R.id.description);\n \tt.setText(description);\n\n \tButton b_play = (Button) findViewById(R.id.b_play);\n \t \n \tb_play.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \tIntent intent = new Intent(getBaseContext(), VideoPlayerActivity.class);\n \t \tintent.putExtra(\"hash\", hash);\n \t \tintent.putExtra(\"tracker\", tracker);\n \t \tintent.putExtra(\"destination\", destination);\n \t \tstartActivity(intent);\n \t }\n \t});\n \t\n \tButton b_web_info = (Button) findViewById(R.id.b_web_info);\n \t \t \n \tb_web_info.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \t//Start video\n \t \tIntent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n \t \tstartActivity(intent);\n \t }\n \t});\n }",
"public interface LiveVideoAllCallBack extends VideoAllCallBack{\n //暂时保留standardVideo方法\n //点击了空白区域开始播放\n void onClickStartThumb(String url, Object... objects);\n\n //点击了播放中的空白区域\n void onClickBlank(String url, Object... objects);\n\n //点击了全屏播放中的空白区域\n void onClickBlankFullscreen(String url, Object... objects);\n}",
"public ShowVideoResponse() {\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.my_layout);\n\t\t\n\t\tvideoview = (VideoView) findViewById(R.id.videoview);\n\t\tUri uri = Uri.parse(\"android.resource://com.wilsonflying.playVideoByUri/\"+R.raw.mingrisoft);\n\t\t\n\t\tvideoview.setVideoURI(uri);\n\t\tvideoview.requestFocus();\n\t\tvideoview.start();\n\t\t\n\t\tvideoview.setOnCompletionListener(new OnCompletionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tToast.makeText(getApplicationContext(), \"播放完毕\", Toast.LENGTH_SHORT).show();\n\t\t\t\t/****************重播***************/\n//\t\t\t\tvideoview.start();\n\t\t\t\t/****************重播***************/\n\t\t\t\t\n\t\t\t\t/****************另外一种播放方式***************/\n\t\t\t\tUri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()+\"/Movies/mingrisoft.mp4\");\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setAction(Intent.ACTION_VIEW);\n\t\t\t\tintent.setDataAndType(uri, \"video/mp4\");\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tToast.makeText(MainActivity.this, \"ACTION_VIEW 重播失败\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"sdcard path:\"+Environment.getExternalStorageDirectory().getPath());\n\t\t\t\tSystem.out.println(\"sdcard path:\"+Environment.getExternalStorageDirectory());\n\t\t\t\t/****************另外一种播放方式***************/\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t}",
"private SurfaceViewRenderer getVideoView(String peerId) {\n if (skylinkConnection == null) {\n return null;\n }\n return skylinkConnection.getVideoView(peerId);\n }",
"public void recordVideo() {\n\n }",
"public void createPlayer() {\n mainHandler = new Handler();\n videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);\n trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);\n player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);\n }",
"public void startVideoPlayer(Context context, String url) {\n Resource item = new Resource();\n item.setType(context.getString(R.string.typeVideo));\n item.setUrlMain(url);\n context.startActivity(PlayVideoFullScreenActivity.getStartActivityIntent(context, ConstantUtil.BLANK, ConstantUtil.BLANK, PlayVideoFullScreenActivity.NETWORK_TYPE_ONLINE, (Resource) item));\n }",
"@NonNull\n public static ActivityVideoPlayerBinding bind(@NonNull View rootView) {\n int id;\n missingId: {\n ConstraintLayout coordinatorLayout = (ConstraintLayout) rootView;\n\n id = R.id.toolbar2;\n Toolbar toolbar2 = rootView.findViewById(id);\n if (toolbar2 == null) {\n break missingId;\n }\n\n id = R.id.videoAppBarLayout;\n AppBarLayout videoAppBarLayout = rootView.findViewById(id);\n if (videoAppBarLayout == null) {\n break missingId;\n }\n\n id = R.id.videoView;\n VideoView videoView = rootView.findViewById(id);\n if (videoView == null) {\n break missingId;\n }\n\n return new ActivityVideoPlayerBinding((ConstraintLayout) rootView, coordinatorLayout,\n toolbar2, videoAppBarLayout, videoView);\n }\n String missingId = rootView.getResources().getResourceName(id);\n throw new NullPointerException(\"Missing required view with ID: \".concat(missingId));\n }",
"public Video getVideo(int id) {\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t/*\n\t\t * Cursor cursor = db.query(TABLE_CONTACTS, new String[] { KEY_ID,\n\t\t * KEY_NAME, KEY_PH_NO }, KEY_ID + \"=?\", new String[] {\n\t\t * String.valueOf(id) }, null, null, null, null);\n\t\t */\n\t\tCursor cursor = db.query(VivaFrame.TABLE_NAME, new String[] {\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_ID, VivaFrame.COLUMN_NAME_VI_FOLDER,\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_NAME, VivaFrame.COLUMN_NAME_VI_URL },\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_ID + \"=?\",\n\t\t\t\tnew String[] { String.valueOf(id) }, null, null, null, null);\n\t\tif (cursor != null)\n\t\t\tcursor.moveToFirst();\n\n\t\tVideo video = new Video(Integer.parseInt(cursor.getString(0)),\n\t\t\t\tInteger.parseInt(cursor.getString(1)), cursor.getString(2),\n\t\t\t\tcursor.getString(3));\n\t\t// return contact\n\t\treturn video;\n\t}",
"public static View getBtVideo(LinearLayout debugRootView) {\n if (debugRootView == null) {\n return null;\n }\n for (int i = 0; i < debugRootView.getChildCount(); i++) {\n View childView = debugRootView.getChildAt(i);\n if (childView instanceof Button) {\n if (((Button) childView).getText().toString().equalsIgnoreCase(debugRootView.getContext().getString(R.string.video))) {\n return childView;\n }\n }\n }\n return null;\n }",
"@Override\n\tpublic void videoComplete() {\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tif (!LibsChecker.checkVitamioLibs(this))\n\t\t\treturn;\n\t\t// Vitamio.initialize(this); //先初始化\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);// 不要标题栏,必须在setContentview之前\n\t\t// 设置全屏\n\t\tthis.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\tsetContentView(R.layout.videoview);\n\t\tmVideoView = (VideoView) findViewById(R.id.surface_view);\n\t\tthis.mAudioManager = (AudioManager) this\n\t\t\t\t.getSystemService(AUDIO_SERVICE);\n\t\tthis.getWindow().setFlags(\n\t\t\t\tWindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,\n\t\t\t\tWindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);// 屏幕常亮\n\t\tIntent intent = this.getIntent();\n\t\tthis.name = intent.getStringExtra(\"name\");\n\t\tthis.url = intent.getStringExtra(\"url\");\n\t\tthis.username = intent.getStringExtra(\"username\");\n\t\tthis.courseid = intent.getStringExtra(\"courseid\");\n\t\tthis.httpUrl = intent.getStringExtra(\"httpUrl\");\n\t\tSystem.out.println(\"试听地址:\"+url);\n\t\tSystem.out.println(\"http地址:\"+httpUrl);\n\t\tthis.playType = intent.getStringExtra(\"playType\");\n\t\t/* 2014.06.19修改\n\t\tif (!\"free\".equals(playType)) {\n\t\t\tif (isLocalUrl()) {\n\t\t\t\t// 表示从文件里读取,看文件是否存在\n\t\t\t\tFile file = new File(url);\n\t\t\t\tif (!file.exists()) {\n\t\t\t\t\tToast.makeText(this, \"本地文件已经被删除\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\t// 修改courseTab中的记录,结束\n\t\t\t\t\tnew CourseDao(this).updateState(httpUrl, 0, username);\n\t\t\t\t\tif (\"local\".equals(intent.getStringExtra(\"loginType\"))) {\n\t\t\t\t\t\tthis.finish();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(!FileUtil.checkSDCard(file.length())){\n\t\t\t\t\t\t//磁盘空间不足\n\t\t\t\t\t\tToast.makeText(this, \"磁盘空间不足,b\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}else{\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\tLayoutInflater inflater = LayoutInflater.from(this);\n\t\tView t = inflater.inflate(R.layout.title, null);\n\t\tt.getBackground().setAlpha(0);\n\t\tView bar = inflater.inflate(R.layout.videocontrol, null);\n\n\t\tthis.videoloadingLayout = (RelativeLayout) this\n\t\t\t\t.findViewById(R.id.videoloadingLayout);\n\t\tWindowManager wm = (WindowManager) this\n\t\t\t\t.getSystemService(Context.WINDOW_SERVICE);\n\t\twidth = wm.getDefaultDisplay().getWidth();// 屏幕宽度\n\t\theight = wm.getDefaultDisplay().getHeight();// 屏幕高度\n\t\tthis.title = new PopupWindow(t, 400, 50);\n\t\tthis.title.setAnimationStyle(R.style.AnimationFade);\n\t\tthis.toolbar = new PopupWindow(bar);\n\t\tthis.toolbar.setAnimationStyle(R.style.AnimationFade);\n\t\tvideoloadingLayout.setVisibility(View.VISIBLE);\n\t\tLooper.myQueue().addIdleHandler(new IdleHandler() {\n\t\t\t@Override\n\t\t\tpublic boolean queueIdle() {\n\t\t\t\t// 显示两个popupwindow\n\t\t\t\tif (title != null && mVideoView.isShown()) {\n\t\t\t\t\ttitle.showAtLocation(mVideoView, Gravity.TOP, 0, 0);\n\t\t\t\t\ttitle.update(height - 50, 0, width, 50);\n\t\t\t\t}\n\t\t\t\tif (toolbar != null && mVideoView.isShown()) {\n\t\t\t\t\ttoolbar.showAtLocation(mVideoView, Gravity.BOTTOM, 0, 0);\n\t\t\t\t\ttoolbar.update(0, 0, width, 220);\n\t\t\t\t}\n\t\t\t\t// 显示正在加载\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\treturnBtn = (ImageButton) t.findViewById(R.id.imageBack);\n\t\ttitleTxt = (TextView) t.findViewById(R.id.videoName);\n\t\ttitleTxt.setText(name);\n\t\tseekbar = (SeekBar) bar.findViewById(R.id.seekBar);// 视频进度条\n\t\tvolumnBar = (SeekBar) t.findViewById(R.id.seekBar1);// 音量拖拽条\n\t\tvolumnSize = (TextView) t.findViewById(R.id.volumnSize);// 音量百分数\n\t\tvolumnMax = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n\t\tint current = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n\t\tseekbar.setMax(1000);\n\t\tvolumnBar.setMax(volumnMax);\n\t\tvolumnBar.setProgress(current);\n\t\tvolumnSize.setText(current * 100 / volumnMax + \"%\");\n\t\tplaybtn = (ImageButton) bar.findViewById(R.id.imagePlay);\n\t\tprev = (ImageButton) bar.findViewById(R.id.imagePrevious);\n\t\tnext = (ImageButton) bar.findViewById(R.id.imageNext);\n\t\ttotalTime = (TextView) bar.findViewById(R.id.totalTime);\n\t\tcurrentTime = (TextView) bar.findViewById(R.id.playTime);\n\t\tClickEvent c = new ClickEvent();\n\t\treturnBtn.setOnClickListener(c);\n\t\tplaybtn.setOnClickListener(c);\n\t\tprev.setOnClickListener(c);\n\t\tnext.setOnClickListener(c);\n\t\tsetVolumeControlStream(AudioManager.STREAM_MUSIC);\n\t\tvolumnBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC,\n\t\t\t\t\t\tseekBar.getProgress(), 8);\n\t\t\t\tvolumnSize.setText(seekBar.getProgress() * 100\n\t\t\t\t\t\t/ seekBar.getMax() + \"%\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t\thandler = new MyHandler(this);\n\t\tinitUrl();\n\t\tif (!\"free\".equals(playType)) {\n\t\t\tinitRecord();\n\t\t\tif (isLocalUrl()) {\n\t\t\t\t// 表示从文件里读取,看文件是否存在\n\t\t\t\tfinal File file = new File(url);\n\t\t\t\tif (!file.exists()) {\n\t\t\t\t\tToast.makeText(this, \"本地文件已经被删除\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\t// 修改courseTab中的记录,结束\n\t\t\t\t\tnew CourseDao(this).updateState(httpUrl, 0, username);\n\t\t\t\t\tif (\"local\".equals(intent.getStringExtra(\"loginType\"))) {\n\t\t\t\t\t\tthis.finish();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(!FileUtil.checkSDCard(file.length())){\n\t\t\t\t\t\t//磁盘空间不足\n\t\t\t\t\t\tToast.makeText(VideoActivity3.this, \"磁盘空间不足,改由网络播放\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\turl = httpUrl;\t//切换到web模式\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnew Thread(){\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\t\t\t\t\t\t\tString filePath = dir.getPath()+File.separator+\"eschool\"+\"temp_\";\n\t\t\t\t\t\t\t\t\tif(!new File(filePath).exists()){\n\t\t\t\t\t\t\t\t\t\tnew File(filePath).mkdirs();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\tFileUtil.encode(new File(url), Constant.OFFSET.getBytes().length, filePath+File.separator+\"current.flv\");\n\t\t\t\t\t\t\t\t\t\turl = filePath+File.separator+\"current.flv\";\n\t\t\t\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\t\t\t\tToast.makeText(VideoActivity3.this, \"文件解析出错,改由网络播放\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\turl = httpUrl;\t//切换到web模式\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}.start();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n\t\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(), videoloadingLayout, url);\n\t\t\t}\n\t\t} else {\n\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n\t\t}\n//\t\tif(isLocalUrl()) //是本地文件不用检查网络\n//\t\t{\n//\t\t\tif (!\"free\".equals(playType)) {\n//\t\t\t\tinitRecord();\n//\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(),\n//\t\t\t\t\tvideoloadingLayout, url);\n//\t\t\t} else {\n//\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n//\t\t\t}\n//\t\t}else\n//\t\t{\n//\t\t\tif(checkNetWork())\n//\t\t\t{\n//\t\t\t\tif (!\"free\".equals(playType)) {\n//\t\t\t\t\tinitRecord();\n//\t\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(),\n//\t\t\t\t\t\tvideoloadingLayout, url);\n//\t\t\t\t} else {\n//\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\n\t\t// 监听播完事件\n\t\t// 开一个线程等准备好就开始播放\n\t\t// new Thread() {\n\t\t// public void run() {\n\t\t// while (true) {\n\t\t// if (player.isCreated()) {\n\t\t// String url = \"http://www.youeclass.com:8090/2013yjssssjj2-1.flv\";\n\t\t// String url2 =\n\t\t// \"http://www.youeclass.com:8090/test_video.mp4\";//2013yjssssjj2-1.flv\";\n\t\t// // 网络视频地址\n\t\t// try {\n\t\t// player.playUrl(url);\n\t\t// handler.sendEmptyMessage(1);\n\t\t// break;\n\t\t// } catch (Exception e) {\n\t\t// handler.sendEmptyMessage(-1);\n\t\t// break;\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// };\n\t\t// }.start();\n\t\tthis.mGestureDetector = new GestureDetector(this, this);\n\t\tthis.mVideoView.setOnTouchListener(this);\n\t\tthis.mVideoView.setLongClickable(true);\n\t\tthis.mVideoView.setFocusable(true);\n\t\tthis.mVideoView.setClickable(true);\n//\t\tthis.mVideoView.setOnErrorListener(new OnErrorListener() {\n//\t\t\t@Override\n//\t\t\tpublic boolean onError(MediaPlayer mp, int what, int extra) {\n//\t\t\t\t// TODO Auto-generated method stub\n//\t\t\t\tToast.makeText(VideoActivity3.this, \"未知媒体错误\", Toast.LENGTH_LONG).show();\n//\t\t\t\ttry{\n//\t\t\t\t\tplayer.stop();\n//\t\t\t\t}catch(Exception e)\n//\t\t\t\t{\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t\t\t\tVideoActivity3.this.finish();\n//\t\t\t\treturn false;\n//\t\t\t}\n//\t\t});\n\t\tmGestureDetector.setIsLongpressEnabled(true);\n\t}",
"public interface OnVideoClickListener {\n void onClick(VideoInfo info, int position);\n\n void onLongClick(VideoInfo info, int position);\n}",
"@Override\n public void onVideoEnd() {\n super.onVideoEnd();\n }",
"public void onPrepared(MediaPlayer mp) {\n\n videoViewFull.start();\n }",
"public interface IMojingAppCallback {\n\n public void changeVideoType(String path,int video3dType,int videoModeType);\n\n}",
"default void onVideoStarted() {\n }",
"private void releasePlayer() {\n mVideoView.stopPlayback();\n }",
"public Video( ) { \n\t\tsuper( );\n\t}",
"String getVideoId() {\n return videoId;\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t//全屏\r\n\t\tthis.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n\t\t//标题去掉\r\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsetContentView(R.layout.playingfullscreen);\r\n\r\n\t\tsurfaceView = (SurfaceView) findViewById(R.id.videoView02);\r\n\t\tsurfaceHolder = surfaceView.getHolder();\r\n\t\tsurfaceHolder.addCallback(this);\r\n\t\tsurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\r\n\r\n\t\tmediaPlayer = new MediaPlayer();\r\n\r\n\t\tmediaPlayer.setOnCompletionListener(this);\r\n\t\tmediaPlayer.setOnErrorListener(this);\r\n\t\tmediaPlayer.setOnInfoListener(this);\r\n\t\tmediaPlayer.setOnPreparedListener(this);\r\n\t\tmediaPlayer.setOnSeekCompleteListener(this);\r\n\t\tmediaPlayer.setOnVideoSizeChangedListener(this);\r\n\r\n\t\tmediaController = new MediaController(this);\r\n\t\tBundle bundle = this.getIntent().getExtras();\r\n\t\tplayURI=bundle.getString(\"playurl\");//当前播放文件的路径\r\n\t\tif (playURI!=null) {\r\n\t\t try {\r\n\t\t\tmediaPlayer.setDataSource(playURI);\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tLog.v(LOGTAG, e.getMessage());\r\n\t\t\tfinish();\r\n\t\t} catch (IllegalStateException e) {\r\n\t\t\tLog.v(LOGTAG, e.getMessage());\r\n\t\t\tfinish();\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.v(LOGTAG, e.getMessage());\r\n\t\t\tfinish();\r\n\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tcurrentDisplay = getWindowManager().getDefaultDisplay();\r\n\t}",
"public interface VideoPlayerHost\n{\n void shutDownForce(String s);\n}",
"private void findViews() {\n tv_loading_netspeed = findViewById(R.id.tv_loading_netspeed);\n ll_loading = findViewById(R.id.ll_loading);\n media_controller = findViewById(R.id.media_controller);\n llTop = (LinearLayout) findViewById(R.id.ll_top);\n tvName = (TextView) findViewById(R.id.tv_name);\n ivBattery = (ImageView) findViewById(R.id.iv_battery);\n tvSystemItem = (TextView) findViewById(R.id.tv_system_item);\n btnVoice = (Button) findViewById(R.id.btn_voice);\n btnSwichPlayer = (Button) findViewById(R.id.btn_swich_player);\n llBottom = (LinearLayout) findViewById(R.id.ll_bottom);\n tvCurrentItem = (TextView) findViewById(R.id.tv_current_item);\n tvDuration = (TextView) findViewById(R.id.tv_duration);\n btnExit = (Button) findViewById(R.id.btn_exit);\n btnPre = (Button) findViewById(R.id.btn_pre);\n btnVideoStartPause = (Button) findViewById(R.id.btn_video_start_pause);\n btnVideoNext = (Button) findViewById(R.id.btn_video_next);\n btnVideoVideoSwitchScree = (Button) findViewById(R.id.btn_video_video_switch_scree);\n seekbarVideo = findViewById(R.id.seekbarVideo);\n seekbarAudio = findViewById(R.id.seekbarAudio);\n ll_buffer = findViewById(R.id.ll_buffer);\n tv_netspeed = findViewById(R.id.tv_netspeed);\n btnVoice.setOnClickListener(this);\n btnSwichPlayer.setOnClickListener(this);\n btnExit.setOnClickListener(this);\n btnPre.setOnClickListener(this);\n btnVideoStartPause.setOnClickListener(this);\n btnVideoNext.setOnClickListener(this);\n btnVideoVideoSwitchScree.setOnClickListener(this);\n seekbarVideo.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if (fromUser) {\n videoView.seekTo(progress);\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n handler.removeMessages(HIDE_MEDIACONTROLLER);\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n handler.sendEmptyMessageDelayed(HIDE_MEDIACONTROLLER, 5000);\n }\n\n\n });\n\n\n }",
"public Video(String nombre) {\n super(nombre);\n }",
"public interface VideoClickHandler {\n\n void onClick(Video video);\n }",
"@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.loadVideo(videoId);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.d(TAG, \"onCreateView: \");\n View view = inflater.inflate(R.layout.fragment_video_play, container, false);\n surfaceView = view.findViewById(R.id.surface);\n mediaPlayer = new MediaPlayer();\n seekBar = view.findViewById(R.id.seekbar);\n seekBar.setEnabled(false);\n checkBox = view.findViewById(R.id.loop_checkbox);\n checkBox.setChecked(true);\n checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n Log.d(TAG, \"onCheckedChanged: \");\n if(isChecked){\n seekBar.setEnabled(true);\n mediaPlayer.pause();\n }else{\n seekBar.setEnabled(false);\n mediaPlayer.start();\n }\n }\n });\n\n seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if(!fromUser){\n return;\n }\n Log.d(TAG, \"onProgressChanged: FromUser\");\n double len = mediaPlayer.getDuration();\n double cur = (progress*len/100.0);\n mediaPlayer.seekTo((int)cur);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }\n });\n\n try {\n if(resource!=null) {\n mediaPlayer.setDataSource(getActivity(), resource);\n }else{\n mediaPlayer.setDataSource(getResources().openRawResourceFd(R.raw.yuminhong));\n }\n surfaceView.getHolder().addCallback(new PlayerCallBack());\n mediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n Log.d(TAG, \"onPrepared: start progess=\"+progess);\n fit();\n mediaPlayer.start();\n checkBox.setChecked(false);\n double len = mediaPlayer.getDuration();\n double cur = progess/100.0*len;\n mediaPlayer.seekTo((int)cur);\n seekBar.setProgress((int)progess);\n }\n });\n mediaPlayer.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() {\n @Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n Log.d(TAG, \"onBufferingUpdate: \");\n }\n });\n mediaPlayer.prepare();\n Log.d(TAG, \"onCreateView: end prepare\");\n }catch (Exception e){\n Log.d(TAG, \"onCreate: \"+e.getMessage());\n }\n handler.sendMessage(Message.obtain(handler,REFRESH_PROCGRESS));\n return view;\n }",
"public void attachPlayerView() {\n simpleExoPlayerView.setPlayer(player);\n }",
"@Override\n public void onPreparing(EasyVideoPlayer player) {\n // TODO handle if needed\n }",
"public VideoChannel getVideoChannel()\n {\n WeakReference<VideoChannel> wvc = this.weakVideoChannel;\n return wvc != null ? wvc.get() : null;\n }",
"public @Nullable\n ExoPlayer getMediaPlayer() {\n return mediaPlayer;\n }",
"public void setVideo(String video) {\n this.video = video;\n }",
"public int getVideoPort();",
"public VideoActivationPolicy getVideoActivationPolicy();",
"private void getVideo() {\n // create the url\n String temp = movie.getId().toString();\n String url = API_BASE_URL+\"/movie/\"+temp+\"/videos\";\n // set the request parameters\n RequestParams params = new RequestParams();\n params.put(API_KEY_PARAM, getString(R.string.api_key)); // Always needs API key\n // request a GET response expecting a JSON object response\n\n client.get(url,params, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n // load the results into movies list\n\n try {\n JSONArray results = response.getJSONArray(\"results\");\n JSONObject curMovie = results.getJSONObject(0);\n key = curMovie.getString(\"key\");\n\n } catch (JSONException e) {\n logError(\"Failed to parse play_video endpoint\", e, true);\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n logError(\"Failed to get data from Now_playing endpoint\", throwable, true);\n }\n });\n\n }"
] | [
"0.68102694",
"0.677308",
"0.66183674",
"0.6594399",
"0.6526425",
"0.64861494",
"0.647357",
"0.64245206",
"0.64156497",
"0.6380974",
"0.6342686",
"0.63133323",
"0.62560505",
"0.62274843",
"0.62168384",
"0.6213403",
"0.61935264",
"0.6186733",
"0.6162001",
"0.6156982",
"0.6150149",
"0.61254543",
"0.6116273",
"0.6106818",
"0.6081842",
"0.60429",
"0.60422105",
"0.603755",
"0.60315233",
"0.6029704",
"0.60292923",
"0.60140103",
"0.60099167",
"0.60085803",
"0.6000798",
"0.5994512",
"0.5983949",
"0.5950074",
"0.5949588",
"0.59393954",
"0.59390974",
"0.59382814",
"0.5934852",
"0.5921836",
"0.5919797",
"0.5905983",
"0.59055954",
"0.590222",
"0.5900318",
"0.5899405",
"0.5899171",
"0.58733875",
"0.58692485",
"0.58602715",
"0.5847122",
"0.58438504",
"0.58431643",
"0.58304423",
"0.5825631",
"0.5823998",
"0.5822265",
"0.5821316",
"0.579242",
"0.5788127",
"0.578622",
"0.5772517",
"0.5769862",
"0.5762684",
"0.57560134",
"0.5754346",
"0.5741521",
"0.5741428",
"0.57397985",
"0.5734601",
"0.5728762",
"0.5727368",
"0.57247376",
"0.5721567",
"0.5717454",
"0.57142293",
"0.5709244",
"0.56962407",
"0.56961673",
"0.5691324",
"0.5690994",
"0.5683321",
"0.5682738",
"0.56651336",
"0.56634885",
"0.564919",
"0.56467843",
"0.5639623",
"0.56390077",
"0.5638724",
"0.5635544",
"0.56349945",
"0.5633949",
"0.5633608",
"0.5628815",
"0.5627331"
] | 0.66116595 | 3 |
/ / C O N S T R U C T O R / | public
HfsOPLibsAction()
{
super("HfsOPLibs", new VersionID("1.0.0"), "Temerity",
"Generates an OPlibraries file which specifies the OTLs to be loaded by Houdini.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private USI_TRLT() {}",
"private static void cajas() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"public UCharacterThreadTest()\n {\n }",
"public void mo21879u() {\n }",
"public void xuat() {\n\n\t}",
"private char toChar(int u)\r\n { \r\n return (char)(u + 64);\r\n }",
"public abstract void mo20899UO();",
"private char toChar(int u) {\n\t\t \n\t\treturn (char)(u + 64);\n\t}",
"public void baocun() {\n\t\t\n\t}",
"private AsciiUtils() {\r\n\t}",
"public T processData(CreatedCharacter p);",
"private String done(int r, int c) {\n\t\tset(r, c, -1);\n\t\treturn r + \"\" + c;\n\t}",
"private void UpdateMethod() {\n \tif(!mCenterL || !mCenterR || (mTimeoutCounter>=mMaxTimeoutCount && mMaxTimeoutCount>-1) ) {\n \t\t// limit to {0..100}\n \t\t\n \t\tbyte[] x_message = new byte[3];\n\t \tbyte[] y_message = new byte[3];\n \t\t\n \t\tx_message = Updating_x_y_for_sending(x_axeL);\n\t \ty_message = Updating_x_y_for_sending(y_axeL);\n \t\t\n\t \tbyte radiusL = (byte) ( Math.min( mRadiusL, 10.0 ) );\n\t \tbyte radiusR = (byte) ( Math.min( mRadiusR, 10.0 ) );\n \t\t// scale to {0..35}\n\t \tbyte angleL = (byte) ( mAngleL * 18.0 / Math.PI + 36.0 + 0.5 );\n\t \tbyte angleR = (byte) ( mAngleR * 18.0 / Math.PI + 36.0 + 0.5 );\n\t \tif( angleL >= 36 )\tangleL = (byte)(angleL-36);\n\t \tif( angleR >= 36 )\tangleR = (byte)(angleR-36);\n\t \t\n\t \tif (D) {\n\t \t\tLog.d(TAG, String.format(\"%d, %d, %d, %d\", radiusL, angleL, radiusR, angleR ) );\n\t \t}\n\t \t\n\t \tif( mDataFormat==4 ) {\n\t \t\t// raw 4 bytes\n\t \t\tsendMessage( new String(new byte[] {\n\t\t \t\t\tradiusL, angleL, radiusR, angleR } ) );\n\t \t}else if( mDataFormat==5 ) {\n\t \t\t// start with 0x55\n\t\t \tsendMessage( new String(new byte[] {\n\t\t \t\t\t0x55, radiusL, angleL, radiusR, angleR } ) );\n\t \t}else if( mDataFormat==6 ) {\n\t \t\t// use STX & ETX\n\t\t \tsendMessage( new String(new byte[] {\n\t\t \t\t\t0x02, x_message[0], x_message[1], x_message[2], y_message[0], y_message[1], x_message[2], 0x03 } ) );\n\t \t}\n\t \t\n\t \tmTimeoutCounter = 0;\n \t}\n \telse{\n \t\tif( mMaxTimeoutCount>-1 )\n \t\t\tmTimeoutCounter++;\n \t}\t\n }",
"private String newUploadData(List<Character> data, Character cCMsg, Character nodeForward) {\n\t\tString stegText = nodeForward + \":\" + cCMsg + \":\";\n\t\t\n\t\tfor(int i = 0; i < data.size(); i++) {\n\t\t\tstegText = stegText + data.get(i);\n\t\t}\n\t\t\n\t\t\n\t\treturn stegText;\n\t}",
"protected void mo6255a() {\n }",
"char getChar () { \n return m_pos < m_len ? m_buffer.charAt (m_pos) : '\\0';\n }",
"@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}",
"private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}",
"private USI_ADRC() {}",
"@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\t\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\t\t\tAE_Bit=(Status_Byte&(0x04))>>2;\n\t\t\t\n\t\t\t\t\tif((AA_Bit==0)&&(AE_Bit==0)) {\n\t\t\t\t\t\tstate2=2;\n\t\t\t\t\t\ttimerflag2=false;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"uicargs createuicargs();",
"int getIO_time();",
"private void remplirUtiliseData() {\n\t}",
"public static void c0() {\n\t}",
"public static void main(String[] args) {\n\n\n BasicProducer basicProducer = new BasicProducer(\"3-part-topic\");\n long t0 = System.currentTimeMillis();\n basicProducer.postSynchMessage(\"Synched 8 Message\");\n long t1 = System.currentTimeMillis();\n System.out.println(\"time taken basicProducer.postSynchMessage=\" + (t1-t0)); // 192 // 193\n\n long t2 = System.currentTimeMillis();\n basicProducer.postAsynchMessage(\"async 8 Message\");\n long t3 = System.currentTimeMillis();\n System.out.println(\"time taken basicProducer.postSynchMessage=\" + (t3-t2)); //14\n\n\n }",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"C5727e mo33224a();",
"@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\t\n\t\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\t\tAE_Bit=(Status_Byte&(0x04))>>2;\n\t\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\t\t\t\n\t\t\t\t\tif(AE_Bit==1) {\n\t\t\t\t\t\tstate=2;\n\t\t\t\t\t\ttimerflag3=false;\n\t\t\t\t\t\t\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }",
"private void m6635c(String str) {\n this.f5456za = new C1289c(this, (C1296Ua) null);\n this.f5456za.execute(new String[]{str});\n }",
"public char[] uid2_GET(Bounds.Inside ph, char[] dst_ch, int pos)\n {\n for(int BYTE = ph.BYTE, dst_max = pos + 18; pos < dst_max ; pos++, BYTE += 1)\n dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1));\n return dst_ch;\n }",
"public abstract void mo20900UP();",
"private static native String getStringForActionOrigin(long pointer, int origin);",
"private static String localUnique(){\n\t\tfinal long counterValue = instanceCounter.getAndIncrement();\n\t\tString unique = uniqueTop + String.format(\"%08d\", counterValue);\n\t\treturn unique;\t\t\n\t}",
"void makeMove(char c0, char r0, char c1, char r1) {\n makeMove(Move.move(c0, r0, c1, r1, null));\n }",
"public EchoClientHandler()\n {\n String data = \"hello zhang kylin \" ;\n firstMessage = Unpooled.buffer(2914) ;\n firstMessage.writeBytes(data.getBytes()) ;\n }",
"@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }",
"public void mo21783H() {\n }",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void run() {\n//\t\t\t\t\n//\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\n\t\t\t\tif((TO_Bit_old!=TO_Bit)&&(AA_Bit==1)) {\n\t\t\t\t\tTO_Bit_old=TO_Bit;\n\t\t\t\t\tstate=1;\n\t\t\t\t\ttimerflag2=false;\n\t\t\t\t\tthis.cancel();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public abstract void mo53562a(C18796a c18796a);",
"private String msg3() {\n return(\"[\" + (System.currentTimeMillis() - system_start_time) + \"] \");\n }",
"private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }",
"static int size_of_sui(String passed){\n\t\treturn 2;\n\t}",
"private void m50366E() {\n }",
"Room mo12151c();",
"public static String t() {\n int n10;\n Object object;\n Object object2;\n String string2 = c;\n if (string2 != null) {\n return string2;\n }\n c = string2 = \"\";\n int n11 = 0;\n Object object3 = null;\n try {\n object2 = Runtime.getRuntime();\n object = \"cat /proc/version\";\n object3 = ((Runtime)object2).exec((String)object);\n }\n catch (IOException iOException) {}\n object3 = ((Process)object3).getInputStream();\n object = Charset.defaultCharset();\n object2 = new InputStreamReader((InputStream)object3, (Charset)object);\n int n12 = 8192;\n object3 = new BufferedReader((Reader)object2, n12);\n object2 = string2;\n try {\n while ((object = ((BufferedReader)object3).readLine()) != null) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append((String)object2);\n stringBuilder.append((String)object);\n object2 = stringBuilder.toString();\n }\n }\n catch (IOException iOException) {}\n if ((n10 = TextUtils.equals((CharSequence)object2, (CharSequence)string2)) == 0) {\n n10 = ((String)object2).indexOf(\"version \") + 8;\n string2 = ((String)object2).substring(n10);\n object3 = \" \";\n n11 = string2.indexOf((String)object3);\n object2 = null;\n c = string2 = string2.substring(0, n11);\n }\n return c;\n }",
"abstract String mo1748c();",
"public static void test() {\n\t\tbyte[] get = makeACommandByte(1,(byte) 0x01, (byte) 0x03);\n\t\tfor (int i = 0; i < get.length; i++) {\n\t\t}\n\t}",
"private char readUnicodeChar() throws IOException, DasmError {\n int result = 0;\n for (int i = 0; i < 4; i++) {\n readNextChar();\n if (nextChar == -1) return 0;\n\n int tmp = Character.digit((char) nextChar, 16);\n if (tmp == -1)\n throw new DasmError(\"Invalid '\\\\u' escape sequence\");\n result = (result << 4) | tmp;\n }\n return (char) result;\n }",
"private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }",
"public static void main(String[] args) {\n\t\tchar first = 'T';\n\t\tchar second = 'R' ;\n\t\tchar third = 'H';\n\t\t\n\t System.out.println( first + \".\" + second + \".\" + third + \".\" );\n\t}",
"void mo88524c();",
"@Override\n\tprotected void interr() {\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public final void run() {\n /*\n r10 = this;\n r8 = 2;\n r7 = 1;\n r6 = 0;\n r2 = com.uc.apollo.media.impl.O.UNKNOWN;\n r1 = 0;\n r0 = r10.e;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r3 = r10.f;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r0 = com.uc.apollo.media.b.c.a(r0, r3);\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n if (r0 == 0) goto L_0x004b;\n L_0x0010:\n r2 = com.uc.apollo.media.impl.O.M3U8;\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n r1 = r0.c();\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n if (r1 == 0) goto L_0x00db;\n L_0x0018:\n r1 = com.uc.apollo.media.impl.O.M3U8_LIVE;\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n L_0x001a:\n r2 = r10.h;\t Catch:{ d -> 0x00d5, Throwable -> 0x0090 }\n if (r2 == 0) goto L_0x0022;\n L_0x001e:\n r2 = 1;\n r0.a(r2);\t Catch:{ d -> 0x00d5, Throwable -> 0x0090 }\n L_0x0022:\n r2 = com.uc.apollo.media.impl.O.UNKNOWN;\n if (r1 == r2) goto L_0x0030;\n L_0x0026:\n r2 = new java.lang.StringBuilder;\n r3 = \"content type is \";\n r2.<init>(r3);\n r2.append(r1);\n L_0x0030:\n r2 = r10.g;\n if (r2 == 0) goto L_0x004a;\n L_0x0034:\n r2 = c;\n r3 = r10.d;\n r4 = 3;\n r4 = new java.lang.Object[r4];\n r5 = r10.g;\n r4[r6] = r5;\n r4[r7] = r1;\n r4[r8] = r0;\n r0 = r2.obtainMessage(r8, r3, r6, r4);\n r0.sendToTarget();\n L_0x004a:\n return;\n L_0x004b:\n r0 = com.uc.apollo.media.impl.O.PARSE_FAILURE;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x0022;\n L_0x0051:\n r0 = move-exception;\n r9 = r0;\n r0 = r2;\n r2 = r9;\n L_0x0055:\n r3 = r2.a();\n if (r3 == 0) goto L_0x007e;\n L_0x005b:\n r4 = r3.length;\n r5 = 8;\n if (r4 < r5) goto L_0x007e;\n L_0x0060:\n r4 = 4;\n r4 = r3[r4];\n r5 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x0067:\n r4 = 5;\n r4 = r3[r4];\n r5 = 116; // 0x74 float:1.63E-43 double:5.73E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x006e:\n r4 = 6;\n r4 = r3[r4];\n r5 = 121; // 0x79 float:1.7E-43 double:6.0E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x0075:\n r4 = 7;\n r3 = r3[r4];\n r4 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n if (r3 != r4) goto L_0x007e;\n L_0x007c:\n r0 = com.uc.apollo.media.impl.O.MP4;\n L_0x007e:\n r3 = com.uc.apollo.media.impl.O.UNKNOWN;\n if (r0 != r3) goto L_0x008c;\n L_0x0082:\n r3 = new java.lang.StringBuilder;\n r4 = \"parse failure, msg: \";\n r3.<init>(r4);\n r3.append(r2);\n L_0x008c:\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x0022;\n L_0x0090:\n r0 = move-exception;\n r1 = com.uc.apollo.media.impl.O.PARSE_FAILURE;\n r1 = a;\n r2 = new java.lang.StringBuilder;\n r3 = \"parse failure: \";\n r2.<init>(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n android.util.Log.w(r1, r2);\n r1 = r10.g;\n if (r1 == 0) goto L_0x004a;\n L_0x00ab:\n r1 = c;\n r2 = r10.d;\n r3 = new java.lang.Object[r8];\n r4 = r10.g;\n r3[r6] = r4;\n r4 = new java.lang.StringBuilder;\n r5 = \"parse failure: \";\n r4.<init>(r5);\n r0 = r4.append(r0);\n r0 = r0.toString();\n r3[r7] = r0;\n r0 = r1.obtainMessage(r7, r2, r6, r3);\n r0.sendToTarget();\n goto L_0x004a;\n L_0x00cf:\n r1 = move-exception;\n r9 = r1;\n r1 = r0;\n r0 = r2;\n r2 = r9;\n goto L_0x0055;\n L_0x00d5:\n r2 = move-exception;\n r9 = r0;\n r0 = r1;\n r1 = r9;\n goto L_0x0055;\n L_0x00db:\n r1 = r2;\n goto L_0x001a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.uc.apollo.media.impl.f.run():void\");\n }",
"private synchronized String m28998b(String str, String str2, String str3) {\n if (this.mContext == null) {\n Log.e(TAG, \"no context!\");\n return \"\";\n }\n String str4 = \"\";\n if (C6802f.m29026a(this.mContext)) {\n str4 = AidRequester.m29002a(this.mContext).mo32651a(str, str2, str3, AidStorageController.m29011a(this.mContext, str, str2));\n }\n AidStorageController.m29013a(this.mContext, str, str4, str2);\n return str4;\n }",
"C2841w mo7234g();",
"private int convertUnicodeLiteralToChar(int n) {\n\n final int START_STATE = 1;\n final int MODIFIED_DATA_STATE = START_STATE + 1;\n final int START_OF_ESCAPE = MODIFIED_DATA_STATE + 1;\n final int UNICODE_NIBBLE1 = START_OF_ESCAPE + 1;\n final int UNICODE_NIBBLE2 = UNICODE_NIBBLE1 + 1;\n final int UNICODE_NIBBLE3 = UNICODE_NIBBLE2 + 1;\n final int UNICODE_NIBBLE4 = UNICODE_NIBBLE3 + 1;\n\n int state = START_STATE;\n boolean data_buffer_modified = false;\n\n int ucount = 0;\n\n char u1 = 0, u2 = 0, u3 = 0, c = 0;\n\n int i = 0, j = 0;\n while (i < n) {\n c = data[i++];\n switch (state) {\n case START_STATE:\n if (c == '\\\\') {\n j = i - 1;\n state = START_OF_ESCAPE;\n }\n break;\n case MODIFIED_DATA_STATE:\n if (c != '\\\\') {\n data[j++] = c;\n } else {\n state = START_OF_ESCAPE;\n }\n break;\n case START_OF_ESCAPE:\n if (c != 'u') {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n } else {\n ucount = 1;\n state = UNICODE_NIBBLE1;\n }\n break;\n case UNICODE_NIBBLE1:\n if (isHexadecimalDigit(c)) {\n u1 = c;\n state = UNICODE_NIBBLE2;\n } else if (c == 'u') {\n ucount++;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE2:\n if (isHexadecimalDigit(c)) {\n u2 = c;\n state = UNICODE_NIBBLE3;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE3:\n if (isHexadecimalDigit(c)) {\n u3 = c;\n state = UNICODE_NIBBLE4;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE4:\n if (isHexadecimalDigit(c)) {\n if (!data_buffer_modified) {\n data_buffer_modified = true;\n }\n data[j++] = (char) ((((((map[u1] << 4) + map[u2]) << 4) + map[u3]) << 4) + map[c]);\n state = MODIFIED_DATA_STATE;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n }\n }\n // afterthoughts\n if (data_buffer_modified) {\n switch (state) {\n case START_OF_ESCAPE:\n data[j++] = '\\\\';\n break;\n case UNICODE_NIBBLE1:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n break;\n case UNICODE_NIBBLE2:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n break;\n case UNICODE_NIBBLE3:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n break;\n case UNICODE_NIBBLE4:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n break;\n }\n n = j;\n }\n return n;\n }",
"java.lang.String getUa();",
"private char processChar(char r11) {\n /*\n // Method dump skipped, instructions count: 152\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.xmp.impl.FixASCIIControlsReader.processChar(char):char\");\n }",
"public void mo3376r() {\n }",
"String getATCUD();",
"public void mo12628c() {\n }",
"C45321i mo90380a();",
"private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }",
"public abstract String mo9239aw();",
"public void mo1611c() {\r\n Message.obtain(this.f4603a.f4598n, 6, null).sendToTarget();\r\n }",
"@Override\n\tpublic void onInitUDPDone(byte arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private static int slowCharToNibble( char c ) \r\n { \r\n if ( '0' <= c && c <= '9' ) \r\n { \r\n return c - '0'; \r\n } \r\n else if ( 'a' <= c && c <= 'f' ) \r\n { \r\n return c - 'a' + 0xa; \r\n } \r\n else if ( 'A' <= c && c <= 'F' ) \r\n { \r\n return c - 'A' + 0xa; \r\n } \r\n else \r\n { \r\n throw new IllegalArgumentException( \"Invalid hex character: \" + c ); \r\n } \r\n }",
"public final String deu() {\n String str;\n AppMethodBeat.i(26738);\n String str2 = \"\";\n synchronized (this) {\n try {\n if (this.iPr == null || this.iPr.size() <= 0) {\n str = \"\";\n } else {\n int i = 0;\n while (i < this.iPr.size()) {\n com.tencent.mm.plugin.wenote.model.a.c cVar = (com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i);\n switch (cVar.getType()) {\n case -1:\n str = str2 + \"<hr/>\";\n break;\n case 1:\n i iVar = (i) cVar;\n if (!bo.isNullOrNil(iVar.content)) {\n str2 = str2 + iVar.content;\n if (i + 1 < this.iPr.size() && ((com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i + 1)).getType() == 1 && !bo.isNullOrNil(((i) this.iPr.get(i + 1)).content)) {\n str = str2 + \"<br/>\";\n break;\n }\n }\n str = str2 + \"<br/>\";\n break;\n case 2:\n str = str2 + dO(((f) cVar).uOo, 2);\n break;\n case 3:\n str = str2 + dO(((g) cVar).uOo, 3);\n break;\n case 4:\n l lVar = (l) cVar;\n str = str2 + dO(lVar.uOo, lVar.getType());\n break;\n case 5:\n str = str2 + dO(((d) cVar).uOo, 5);\n break;\n case 6:\n str = str2 + dO(((k) cVar).uOo, 6);\n break;\n case 20:\n str = str2 + dO(((com.tencent.mm.plugin.wenote.model.a.b) cVar).uOo, 20);\n break;\n default:\n str = str2;\n break;\n }\n i++;\n str2 = str;\n }\n str = str2.replaceAll(IOUtils.LINE_SEPARATOR_UNIX, \"<br/>\");\n AppMethodBeat.o(26738);\n }\n } finally {\n while (true) {\n AppMethodBeat.o(26738);\n }\n }\n }\n return str;\n }",
"String get_str(ThreadContext tc, RakudoObject classHandle);",
"@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\t\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k>=3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\teeipClient.ForwardClose();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttimerflag1=false;\n\t\t\t\t\t\tMessagerec[0]=1;\n\t\t\t\t\t\tstate2=3;\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k>=10) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\teeipClient.ForwardClose();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\ttimerflag1=false;\n\t\t\t\t\t\tstatus_write=true;\n\t\t\t\t\t\tstate=3;\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"java.lang.String getCurrentrun();",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Test(timeout = 4000)\n public void test095() throws Throwable {\n String string0 = DBUtil.escape(\"Ucb\");\n assertEquals(\"Ucb\", string0);\n }",
"public abstract String mo8770a();",
"public void mo21793R() {\n }",
"char getEChar();",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"public String getUc() {\n return uc;\n }",
"public void mo6081a() {\n }",
"@Override\n public void onReceivedData(byte[] arg0) {\n String data = null;\n try {\n data = new String(arg0, \"UTF-8\");\n data.concat(\"/n\");\n //tvAppend(textView, data);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n\n }",
"public void mo97906c() {\n }",
"void mo57278c();",
"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 void mo55254a() {\n }",
"static void sui_with_acc(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(passed.substring(4));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}",
"private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"private String waitPrint(){return \"waiting for other players...\";}",
"public void mo5996r() {\n Message obtainMessage = this.f5396P.obtainMessage(1);\n this.f5396P.removeMessages(1);\n this.f5396P.sendMessageDelayed(obtainMessage, 16);\n RecordService.C1445b bVar = this.f5401U;\n if (bVar != null) {\n this.f5441s = (float) bVar.mo6344e();\n this.f5443t = this.f5401U.mo6348i();\n }\n if (C1413m.m6844f()) {\n this.f5392L.mo6498a(this.f5443t, this.f5431n);\n this.f5392L.mo6500b(this.f5441s);\n } else if (m6595L()) {\n this.f5391K.mo6585a(this.f5443t, this.f5431n);\n this.f5391K.mo6586b(this.f5441s);\n } else {\n this.f5392L.mo6498a(this.f5443t, this.f5431n);\n this.f5392L.mo6500b(this.f5441s);\n }\n this.f5431n = false;\n }"
] | [
"0.5552488",
"0.50764114",
"0.5062583",
"0.50257885",
"0.49900228",
"0.49886066",
"0.49172089",
"0.49145615",
"0.48942167",
"0.48754257",
"0.47966373",
"0.4772874",
"0.47481668",
"0.47258678",
"0.47254875",
"0.4716102",
"0.47157446",
"0.47141892",
"0.47048616",
"0.46877024",
"0.4681926",
"0.4659612",
"0.46576512",
"0.46492618",
"0.46439493",
"0.46365824",
"0.46337438",
"0.46294636",
"0.46078467",
"0.46065095",
"0.46045825",
"0.45978647",
"0.45806113",
"0.4580582",
"0.45762694",
"0.4561924",
"0.4553902",
"0.45526502",
"0.4547477",
"0.45447686",
"0.4539371",
"0.4532643",
"0.45303228",
"0.4529752",
"0.4529186",
"0.45244753",
"0.45230046",
"0.45225236",
"0.45210525",
"0.45208445",
"0.45206124",
"0.45175552",
"0.4515673",
"0.45156237",
"0.45151046",
"0.450689",
"0.450551",
"0.45035082",
"0.45035082",
"0.45015615",
"0.4498115",
"0.4494969",
"0.44925824",
"0.44923508",
"0.4492169",
"0.44863653",
"0.44755504",
"0.4469565",
"0.44684786",
"0.44652525",
"0.44632804",
"0.44615254",
"0.44574842",
"0.44545993",
"0.44464532",
"0.44460386",
"0.44456643",
"0.44449943",
"0.44428146",
"0.4441369",
"0.44400373",
"0.44398823",
"0.44353297",
"0.4434352",
"0.44341195",
"0.4432596",
"0.44293165",
"0.44293165",
"0.44279036",
"0.44265163",
"0.44215497",
"0.44206142",
"0.44185045",
"0.44177315",
"0.44148183",
"0.4414674",
"0.4414497",
"0.4413982",
"0.44134268",
"0.44116098",
"0.4410826"
] | 0.0 | -1 |
Creates a new instance. | public static GoldenCopy create(
final String snapshotName,
final String viewName,
final Instant valuationTime,
final CalculationResults calculationResults) {
return new GoldenCopy(snapshotName, viewName, valuationTime, calculationResults);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Instance createInstance();",
"public void create(){}",
"public Instance() {\n }",
"private Instantiation(){}",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"void create(T instance) throws IOException;",
"public void create() {\n\t\t\n\t}",
"Reproducible newInstance();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public T newInstance();",
"public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}",
"@Override\n\tpublic void create() {\n\n\t}",
"T create();",
"T create();",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"public CMObject newInstance();",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"@Override\n\tpublic void create () {\n\n\t}",
"void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }",
"private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}",
"public abstract void create();",
"InstanceModel createInstanceOfInstanceModel();",
"public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }",
"public Instance() {\n super(Routing.NAMESPACE, \"instance\");\n }",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}",
"public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }",
"public Factory() {\n\t\tsuper();\n\t}",
"private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public T newInstance()\n throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n if (constructor_ == null) {\n constructor_ = getRawClass().getConstructor();\n }\n\n return (T)constructor_.newInstance();\n }",
"public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public abstract boolean create(T newInstance);",
"private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}",
"public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}",
"@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}",
"<T> T newInstance(URI description) throws EnvironmentException;",
"public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}",
"public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}",
"public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}",
"@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public Factory() {\n this(getInternalClient());\n }",
"For createFor();",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }",
"T create() throws PersistException;",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public ApplicationCreator() {\n }",
"@Override\r\n public void instantiate() {\r\n }",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public SingleRequest<?> create() {\n return new SingleRequest<>();\n }",
"public ObjectFactory() {\n\t}",
"public ObjectFactory() {\r\n\t}",
"public Open() {\n //creates a new open instance\n }",
"protected abstract void construct();",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"@Override\r\n\tpublic ItemInstance createItemInstance() {\n\t\treturn new HpInstance();\r\n\t}",
"private static void createInstance() {\n if (mApiInterface == null) {\n synchronized(APIClient.class) {\n if (mApiInterface == null) {\n mApiInterface = buildApiClient();\n }\n }\n }\n }",
"Klassenstufe createKlassenstufe();",
"Snapshot create();",
"public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }",
"public static synchronized void constructInstance()\n {\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, false );\n\n if ( ourInstance != null )\n {\n throw new IllegalStateException( myName + \" Already Constructed\" );\n }\n ourInstance = new ElbowSubsystem();\n\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, true );\n }",
"public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }",
"public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}",
"public static IPCGCallDetailCreator instance()\r\n {\r\n if (instance == null)\r\n {\r\n instance = new IPCGCallDetailCreator();\r\n }\r\n return instance;\r\n }",
"public Object buildNewInstance() throws DescriptorException {\n if (this.isUsingDefaultConstructor()) {\n return this.buildNewInstanceUsingDefaultConstructor();\n } else {\n return this.buildNewInstanceUsingFactory();\n }\n }",
"void create(T t);",
"void create( State state );",
"public Activator() {\r\n\t}",
"OBJECT createOBJECT();",
"public Produto() {}",
"public T safeNewInstance() {\n try {\n return newInstance();\n } catch (NoSuchMethodException e) {\n throw new IllegalArgumentException(e);\n } catch (IllegalAccessException e) {\n throw new IllegalArgumentException(e);\n } catch (InvocationTargetException e) {\n throw new IllegalArgumentException(e);\n } catch (InstantiationException e) {\n throw new IllegalArgumentException(e);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic AnalysisGraph createNewInstance() {\n\t\tAnalysisGraph graph = new AnalysisGraph();\n\t\tgraph.currentIndex = currentIndex;\n\t\t\n\t\tgraph.nodes = (HashMap<String, Node>) nodes.clone();\n\t\tgraph.nodeList = (ArrayList<Node>)((ArrayList<Node>) nodeList).clone();\n\t\tgraph.links = (ArrayList<Link>)((ArrayList<Link>) links).clone();\n\t\treturn graph;\n\t}",
"DynamicInstance createDynamicInstance();",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] | [
"0.7834167",
"0.72893584",
"0.70771503",
"0.7048765",
"0.70209944",
"0.6839274",
"0.67782235",
"0.6770133",
"0.67429745",
"0.6701039",
"0.6690158",
"0.6630354",
"0.66046286",
"0.6600776",
"0.6600776",
"0.6597608",
"0.6592152",
"0.6564594",
"0.65268713",
"0.652679",
"0.6475239",
"0.6442598",
"0.63414943",
"0.63365746",
"0.63303816",
"0.63249475",
"0.627689",
"0.627521",
"0.6227869",
"0.620804",
"0.6167403",
"0.6164787",
"0.610737",
"0.6102229",
"0.60939527",
"0.60640883",
"0.60597515",
"0.60330635",
"0.60064733",
"0.600185",
"0.59933734",
"0.59891814",
"0.5978862",
"0.5975761",
"0.59642875",
"0.59642875",
"0.59642875",
"0.595006",
"0.5948986",
"0.5939949",
"0.5935609",
"0.59320545",
"0.5930863",
"0.5930863",
"0.5930808",
"0.59303784",
"0.59288776",
"0.59219015",
"0.5912657",
"0.5900076",
"0.58830214",
"0.5879637",
"0.5878685",
"0.58779675",
"0.58684635",
"0.5859659",
"0.5852349",
"0.5844357",
"0.5844119",
"0.58357304",
"0.582402",
"0.581462",
"0.58129567",
"0.5803098",
"0.58003926",
"0.5787434",
"0.5786469",
"0.57835597",
"0.578337",
"0.5780014",
"0.57761306",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006"
] | 0.0 | -1 |
Returns a builder used to create an instance of the bean. | public static GoldenCopy.Builder builder() {
return new GoldenCopy.Builder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder(){ return new Builder(); }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"public static ProductBuilder builder() {\n return ProductBuilder.of();\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"@Inject\n public Builder() {\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"public Builder() { }",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"private Builder() {}",
"public static MappableBuilder createMappableBuilder()\r\n {\r\n\r\n return new MappableBuilder( createMappableBuilderFactory() );\r\n }",
"public Builder() {\n\t\t}",
"public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }",
"public Builder(){\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public Builder() {\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"private Builder() {\n\t\t}",
"public static Builder builder() {\n return new Report.Builder();\n }",
"public static LinkBuilder builder() {\n return new LinkBuilder();\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public static DummyBuilder fromInstance(Object instance) {\n return new DummyBuilder(instance);\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"public interface Builder<T> {\n\n T build();\n\n}",
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }",
"public Leilao builder() {\n\t\treturn this.leilao;\r\n\t}",
"public static ProxyBuilder getBuilder() {\r\n\t\tClassProxyBuilder builder = new ClassProxyBuilder();\r\n\t\treturn builder;\r\n\t}",
"static ComponentBuilder getBuilder(Instance instance, Heap heap) {\n if (DetailsUtils.isSubclassOf(instance, JLabel.class.getName())) {\n return new JLabelBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JPanel.class.getName())) {\n return new JPanelBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JToolBar.class.getName())) {\n return new JToolBarBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, Box.Filler.class.getName())) {\n return new BoxFillerBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, Box.class.getName())) {\n return new BoxBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JScrollBar.class.getName())) {\n return new JScrollBarBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JToolBar.Separator.class.getName())) {\n return new JToolBarSeparatorBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JPopupMenu.Separator.class.getName())) {\n return new JPopupMenuSeparatorBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JSeparator.class.getName())) {\n return new JSeparatorBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JProgressBar.class.getName())) {\n return new JProgressBarBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JSlider.class.getName())) {\n return new JSliderBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JSpinner.class.getName())) {\n return new JSpinnerBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JPopupMenu.class.getName())) {\n return new JPopupMenuBuilder(instance, heap);\n }\n return null;\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public interface Builder<T> {\n\n /**\n * The final function that creates the object built.\n * @return the built object\n */\n T build();\n}",
"private Builder builder() {\n\n\t\tif (!(message instanceof Builder)) {\n\t\t\tthrow new IllegalStateException(\"Message is not a builder\");\n\t\t}\n\n\t\treturn (Builder) message;\n\n\t}",
"private Builder()\n {\n }",
"public interface Builder<T> {\n /**\n * Builds final object.\n * @return object of type {@link T}\n */\n @SuppressWarnings(\"unused\")\n T create();\n}",
"public static CustomHazelcastBuilder builder () {\n return new CustomHazelcastBuilder();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public Person build(){\n return new Person(this);\n }",
"public static FXMLLoaderBuilder builder() {\n return new FXMLLoaderBuilder();\n }",
"public static HelpDisplayBuilder builder() {\n return new HelpDisplayBuilder();\n }",
"public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }",
"public grpc.messages.Messages.Employee.Builder getEmployeeBuilder() {\n \n onChanged();\n return getEmployeeFieldBuilder().getBuilder();\n }",
"public grpc.messages.Messages.Employee.Builder getEmployeeBuilder() {\n \n onChanged();\n return getEmployeeFieldBuilder().getBuilder();\n }",
"public XULTemplateBuilder getBuilder() //readonly\n\t{\n\t\tif(xulTemplateBuilder == null && getDatabase() != null) {\n\t\t\tRDFService rdfService = null; //TODO get the RDFService\n\t\t\txulTemplateBuilder = new XULTemplateBuilderImpl(rdfService, this);\n\t\t}\n\t\treturn xulTemplateBuilder;\n\t}",
"public static ProductVariantBuilder builder() {\n return ProductVariantBuilder.of();\n }",
"public static Builder builder(Context context){\n return new Builder(context);\n }",
"public Customer build() {\n return new Customer(this);\n }",
"public static DeviceIdentifierBuilder builder() {\n return new DeviceIdentifierBuilder();\n }",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"public ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern build() {\n return new ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern(\"hi\");\n }",
"@Nonnull\n public static UBL23WriterBuilder <BusinessCardType> businessCard ()\n {\n return UBL23WriterBuilder.create (BusinessCardType.class);\n }",
"public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }",
"public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }",
"public PaymentType builder()\n {\n return new PaymentType(this);\n }"
] | [
"0.76800627",
"0.76800627",
"0.74424213",
"0.74424213",
"0.74424213",
"0.740198",
"0.740198",
"0.740198",
"0.740198",
"0.73879284",
"0.73879284",
"0.73879284",
"0.73879284",
"0.73879284",
"0.73879284",
"0.73879284",
"0.73879284",
"0.73879284",
"0.73879284",
"0.73879284",
"0.728689",
"0.72838926",
"0.7269598",
"0.72676957",
"0.69962174",
"0.69456977",
"0.69456977",
"0.69456977",
"0.6926643",
"0.6926643",
"0.6926643",
"0.6926643",
"0.6912117",
"0.6912117",
"0.6912117",
"0.6886147",
"0.6872588",
"0.68635833",
"0.68635833",
"0.68635833",
"0.68635833",
"0.68635833",
"0.68635833",
"0.68635833",
"0.6857271",
"0.68213886",
"0.68022007",
"0.67970264",
"0.6770292",
"0.67617184",
"0.67617184",
"0.6735958",
"0.67272687",
"0.66940033",
"0.66829276",
"0.66796815",
"0.6663729",
"0.66463786",
"0.65260315",
"0.65260315",
"0.65260315",
"0.65260315",
"0.6510381",
"0.6510381",
"0.6507532",
"0.64702874",
"0.6468017",
"0.6363526",
"0.63622993",
"0.6358457",
"0.6358457",
"0.63401735",
"0.6300226",
"0.62967503",
"0.6277628",
"0.625283",
"0.62449133",
"0.6243586",
"0.623778",
"0.62261933",
"0.621158",
"0.6201994",
"0.6188939",
"0.6163681",
"0.6153913",
"0.61361563",
"0.61115915",
"0.60896045",
"0.6084844",
"0.6084844",
"0.608241",
"0.6080222",
"0.6079265",
"0.6076521",
"0.6067468",
"0.6051462",
"0.6045159",
"0.60207635",
"0.6006474",
"0.6006474",
"0.59827137"
] | 0.0 | -1 |
Returns a builder that allows this bean to be mutated. | public Builder toBuilder() {
return new Builder(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"public static Builder builder(){ return new Builder(); }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"private Builder builder() {\n\n\t\tif (!(message instanceof Builder)) {\n\t\t\tthrow new IllegalStateException(\"Message is not a builder\");\n\t\t}\n\n\t\treturn (Builder) message;\n\n\t}",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern build() {\n return new ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern(\"hi\");\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public Builder getThis() { return this; }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static ProductBuilder builder() {\n return ProductBuilder.of();\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"@Override\n public Builder<?> toBuilder() {\n return addLocalFieldsToBuilder(builder());\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public static GoldenCopy.Builder builder() {\n return new GoldenCopy.Builder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }",
"public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }",
"public BeanDeserializerBuilder updateBuilder(DeserializationConfig config, BeanDescription beanDesc, BeanDeserializerBuilder builder)\n/* */ {\n/* 77 */ return builder;\n/* */ }",
"public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {\n \n onChanged();\n return getModifiedAtFieldBuilder().getBuilder();\n }",
"private Builder() {}",
"public static MappableBuilder createMappableBuilder()\r\n {\r\n\r\n return new MappableBuilder( createMappableBuilderFactory() );\r\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public com.yangtian.matrix.Matrix.Builder getCBuilder() {\n \n onChanged();\n return getCFieldBuilder().getBuilder();\n }",
"public Builder clearBuilder() {\n \n builder_ = getDefaultInstance().getBuilder();\n onChanged();\n return this;\n }",
"private Builder() {\n\t\t}",
"protected Builder stateBuilder() {\n return this.stateBuilder();\n }",
"public Builder setUser(\n People.Builder builderForValue) {\n copyOnWrite();\n instance.setUser(builderForValue);\n return this;\n }",
"public trinsic.services.common.v1.CommonOuterClass.JsonPayload.Builder getAttributesBuilder() {\n \n onChanged();\n return getAttributesFieldBuilder().getBuilder();\n }",
"public Builder() { }",
"public DataModelBuilder but() {\n DataModelBuilder _builder = create();\n _builder.m_featureEntitySet = m_featureEntitySet;\n _builder.m_entity = m_entity;\n _builder.m_featureEntityBuilder = m_featureEntityBuilder;\n _builder.m_featureNameSet = m_featureNameSet;\n _builder.m_name = m_name;\n return _builder;\n }",
"public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder getDefBuilder() {\n bitField0_ |= 0x00000020;\n onChanged();\n return getDefFieldBuilder().getBuilder();\n }",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"public static ProductVariantBuilder builder() {\n return ProductVariantBuilder.of();\n }",
"public Leilao builder() {\n\t\treturn this.leilao;\r\n\t}",
"public com.google.protobuf.Struct.Builder getMetadataBuilder() {\n \n onChanged();\n return getMetadataFieldBuilder().getBuilder();\n }",
"public grpc.messages.Messages.Employee.Builder getEmployeeBuilder() {\n \n onChanged();\n return getEmployeeFieldBuilder().getBuilder();\n }",
"public grpc.messages.Messages.Employee.Builder getEmployeeBuilder() {\n \n onChanged();\n return getEmployeeFieldBuilder().getBuilder();\n }",
"private SetProperty(Builder builder) {\n super(builder);\n }",
"public trinsic.services.common.v1.CommonOuterClass.JsonPayload.Builder getDocumentBuilder() {\n \n onChanged();\n return getDocumentFieldBuilder().getBuilder();\n }",
"public trinsic.services.common.v1.CommonOuterClass.JsonPayload.Builder getDocumentBuilder() {\n \n onChanged();\n return getDocumentFieldBuilder().getBuilder();\n }",
"public trinsic.services.common.v1.CommonOuterClass.JsonPayload.Builder getDocumentBuilder() {\n \n onChanged();\n return getDocumentFieldBuilder().getBuilder();\n }",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public static SetExternalIdChangeBuilder builder() {\n return SetExternalIdChangeBuilder.of();\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"public Builder(){\n }",
"public go.micro.runtime.RuntimeOuterClass.UpdateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public alluxio.proto.journal.File.SetAttributeEntry.Builder getSetAttributeBuilder() {\n bitField0_ |= 0x08000000;\n onChanged();\n return getSetAttributeFieldBuilder().getBuilder();\n }",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }",
"public com.google.protobuf2.Any.Builder getObjectBuilder() {\n \n onChanged();\n return getObjectFieldBuilder().getBuilder();\n }",
"public Builder() {\n\t\t}",
"Builder addProducer(Person.Builder value);",
"public static MPOpenAPIBuilder builder() {\n return new MPOpenAPIBuilder();\n }",
"private Builder() {\n }"
] | [
"0.7082287",
"0.69044983",
"0.68497646",
"0.6818486",
"0.6818486",
"0.6818486",
"0.6775444",
"0.6775444",
"0.6775444",
"0.6775444",
"0.67683727",
"0.67683727",
"0.67683727",
"0.67683727",
"0.67683727",
"0.67683727",
"0.67683727",
"0.67683727",
"0.67683727",
"0.67683727",
"0.67683727",
"0.6715238",
"0.66202843",
"0.66140795",
"0.6549323",
"0.6549323",
"0.6549323",
"0.6549323",
"0.6546903",
"0.6529259",
"0.6529259",
"0.6529259",
"0.649799",
"0.64966047",
"0.6493545",
"0.6475754",
"0.6475754",
"0.64708626",
"0.6437043",
"0.6437043",
"0.63851744",
"0.63816386",
"0.6371223",
"0.635455",
"0.630451",
"0.6304139",
"0.62402636",
"0.62402636",
"0.62402636",
"0.62402636",
"0.6237159",
"0.6237159",
"0.62167907",
"0.6188035",
"0.61527413",
"0.6128033",
"0.6118173",
"0.6094232",
"0.6094232",
"0.6094232",
"0.6089433",
"0.60818416",
"0.60789245",
"0.6077435",
"0.6051009",
"0.6032256",
"0.60242236",
"0.601691",
"0.6013492",
"0.6011027",
"0.6009152",
"0.59883875",
"0.5945412",
"0.5943465",
"0.5943465",
"0.5932679",
"0.59305197",
"0.59305197",
"0.59305197",
"0.59150666",
"0.5914853",
"0.59022075",
"0.5898342",
"0.58833486",
"0.5873868",
"0.5868126",
"0.5864885",
"0.5848405",
"0.58477145",
"0.58426344",
"0.583932",
"0.58366966",
"0.5830671",
"0.5828731"
] | 0.7292235 | 6 |
TODO Autogenerated method stub | public static void main(String[] args) {
int input1=123,input2=456,input3=345,input4=5043;
String in1 = Integer.toString(input1);
String in2 = Integer.toString(input2);
String in3 = Integer.toString(input3);
String in4 = Integer.toString(input4);
StringBuilder obj = new StringBuilder();
obj.append(in1);
obj.append(in2);
obj.append(in3);
obj.append(in4);
String str = obj.toString();
char ch[] = str.toCharArray();
int count[] = new int[10];
for(int i = 0 ;i < ch.length;i++)
{
count[ Character.getNumericValue(ch[i]) ]++;
}
int max= 0,value=0;
for(int i = 0 ; i < count.length;i++)
{
if( max <= count[i])
{max = count[i];
value = i;
}
}
System.out.println(Arrays.toString(count ));
System.out.println(max);
System.out.println(value);
} | {
"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 method returns the session user only if one exists, so check if it returns null or use the isUser method before. | public static Integer getUserIdFromSessionOrNull(HttpSession session) {
return (Integer) session.getAttribute(ATTRIBUTE_USER_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic UtenteBase getSessionUser() {\n\t\tUtenteBase user = (UtenteBase) getThreadLocalRequest().getSession().getAttribute(\"user\");\n\t\treturn user;\n\t}",
"public User getLoggedInUser() throws NoUserLoggedInException{\r\n\t\tif(this.user != null){\r\n\t\t\treturn this.user;\r\n\t\t}//-if\r\n\t\telse{\r\n\t\t\tthrow new NoUserLoggedInException(ExceptionType.ERROR);\r\n\t\t}//-else\r\n\t}",
"protected User getUser(HttpSession session) {\r\n\t\t// get the user form from the session\r\n\t\treturn (User) session.getAttribute(Constants.USER_KEY);\r\n\t}",
"public User getLoggedInUser() {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n User retval = null;\n User managedUser = realm.where(User.class).equalTo(\"IsLoggedIn\", true).findFirst();\n if (managedUser != null) {\n retval = realm.copyFromRealm(managedUser);\n } else {\n retval = realm.copyFromRealm(realm.where(User.class).equalTo(\"UserId\", \"anonymous\").findFirst());\n }\n\n if (mRealm == null)\n realm.close();\n\n return retval;\n }",
"public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT_USER_DETAILS_ATTRIBUTE_KEY);\n if (currentUser == null) {\n return null;\n } else {\n return currentUser;\n }\n }",
"public UserDetails getLoggedInUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null && auth.isAuthenticated()\n && !(SecurityContextHolder.getContext().getAuthentication() instanceof AnonymousAuthenticationToken)) {\n return (UserDetails) auth.getPrincipal();\n } else {\n LOGGER.debug(\"Tried getting a logged in user, but none was available.\");\n return null;\n }\n }",
"@Override\n\tpublic User getCurrentUser() {\n\t\tint id = sessionService.getCurrentUserId();\n\t\treturn userDao.findById(id);\n\t}",
"public User getUserFromSession(String token){\n\t\tfor(Session s: getSessionSet()){\n\t\t\tif(s.getToken().equals(token) && s.isValid())\n\t\t\t\treturn getUserByName(s.getName());\n\t\t}\n\t\treturn null;\n\t}",
"public User getLoggedUser() throws Exception {\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n\r\n\t\tUserDetails loggedUser = null;\r\n\r\n\t\t//Verificar que ese objeto traido de sesion es el usuario\r\n\t\tif (principal instanceof UserDetails) {\r\n\t\t\tloggedUser = (UserDetails) principal;\r\n\t\t}\r\n\t\t\r\n\t\tUser myUser = userRepository\r\n\t\t\t\t.findByusername(loggedUser.getUsername()).orElseThrow(() -> new Exception(\"\"));\r\n\t\tif(loggedUserHasRole(\"ROLE_ADMIN\")) {\r\n\t\t\tmyUser.setIsAdmin(true);\r\n\t\t}\r\n\t\telse if(loggedUserHasRole(\"ROLE_SUPERVISOR\")) {\r\n\t\t\tmyUser.setIsSuper(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmyUser.setIsUser(true);\r\n\t\t}\r\n\t\treturn myUser;\r\n\t}",
"private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}",
"public User getSession(){\n\t\treturn this.session;\n\t}",
"private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }",
"public User getUserFromSession(String sessionId) {\n for (User u : table.values()) {\n if (u.hasSession(sessionId)) {\n return u;\n }\n }\n return null;\n }",
"public User getUserFromSession(String sessionId) {\n for (User u : table.values()) {\n if (u.hasSession(sessionId)) {\n return u;\n }\n }\n return null;\n }",
"private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}",
"public User findCurrentUser() {\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n return userRepository.findByUsername(username);\n }",
"User getCurrentLoggedInUser();",
"public User getCurrentUser() {\n\t\tString id = contextHolder.getUserId();\r\n\t\treturn userRepository.get(id);\r\n\t}",
"protected AuthenticatedUser getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n\n if (auth.getPrincipal() instanceof AuthenticatedUser) {\n return (AuthenticatedUser) auth.getPrincipal();\n }\n\n return null;\n }",
"public synchronized static User getUser() {\n return null;\n }",
"LoggedUser getLoggedUser();",
"@Override\r\n\tpublic User getCurrentUser() {\r\n\t\tString currentUserName = this.getCurrentUserName();\r\n\t\tUser userdetails = this.getByUsername(currentUserName);\r\n\t\treturn userdetails;\r\n\t}",
"@Override\n public Single<SessionEntity> createUserSession() {\n return this.userRepository.getUser().firstOrError().flatMap(userEntity -> {\n if (!userEntity.isGuestUser()) {\n if (userEntity.getSessionId().isEmpty()) {\n return newSession(userEntity);\n }\n else if (userEntity.isHasOpenSession()) {\n return Single.just(new SessionEntity(userEntity.isHasOpenSession(), userEntity.getSessionId()));\n }\n }\n return Single.just(new SessionEntity(false, \"\"));\n });\n }",
"private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}",
"public String getLoggedInUser() {\n\t\treturn null;\r\n\t}",
"public User getLoggedUser();",
"public User getUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n return userRepository.findByEmail(auth.getName()).get();\n }",
"public IUser getUser() {\n \t\treturn null;\n \t}",
"public User getUser(String userId) {\n if (!isAlive()) {\n Log.e(LOG_TAG, \"getUser : the session is not anymore active\");\n return null;\n } else {\n User user = mStore.getUser(userId);\n\n if (null == user) {\n user = mLeftRoomsStore.getUser(userId);\n }\n\n return user;\n }\n }",
"@Override\n public DocumentUser getUser() {\n UserService userService = UserServiceFactory.getUserService();\n User user = userService.getCurrentUser();\n if (user != null){\n String email = user.getEmail();\n AuthenticationToken at = AuthenticationToken.getUserToken(email);\n if (at != null) {\n DocumentUser docUser = new DocumentUser();\n docUser.setToken(at.getPublicToken());\n docUser.setName(user.getNickname());\n docUser.setEmail(user.getEmail());\n docUser.setId(user.getUserId());\n return docUser;\n }\n }\n return null;\n }",
"@RequestMapping(value=\"get_current_user.do\",method= RequestMethod.POST)\r\n @ResponseBody\r\n public ServerResponse<User> getCurrentUser(HttpSession session){\r\n User user = (User) session.getAttribute(Constant.CURRENT_USER);\r\n if(user != null){\r\n return ServerResponse.createBySuccessData(user);\r\n }\r\n return ServerResponse.createByErrorMsg(\"User has not logged in.\");\r\n }",
"public static String getUserId() {\r\n\t\tHttpSession session = getSession();\r\n\t\tif (session != null)\r\n\t\t\treturn (String) session.getAttribute(\"userid\");\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public TokenUser findTokenUser() {\n\t\treturn securityContextService != null && securityContextService.getAuthentication() != null\n\t\t\t\t? (TokenUser) securityContextService.getAuthentication().getDetails()\n\t\t\t\t: null;\n\t}",
"@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}",
"@Override\n\tpublic boolean isUserLoggedIn() {\n\t\treturn sessionService.getCurrentUserId() != null;\n\t}",
"public boolean isExistingUser() {\r\n return isExistingUser;\r\n }",
"public static User getCurrentUser() {\n return sInstance == null ? null : sInstance.mCurrentUser;\n }",
"public static UserAccount getLoginedUser(HttpSession session) {\n UserAccount loginedUser = (UserAccount) session.getAttribute(\"loginedUser\");\n return loginedUser;\n }",
"private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}",
"@Override\n public User getLoggedUser() {\n User tmp = null;\n try\n {\n\t\tFileInputStream fin = new FileInputStream(System.getProperty(\"user.home\")+\"\\\\user.ser\");\n\t\tObjectInputStream oos = new ObjectInputStream(fin); \n\t\ttmp = (User) oos.readObject();\n\t\toos.close();\t \n\t}\n catch(Exception ex){ ex.printStackTrace();return null;}\n \n return tmp;\n }",
"public User usuario() {\r\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\r\n User user = userService.findUserByEmail(auth.getName());\r\n return user;\r\n }",
"public User usuario() {\r\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\r\n User user = userService.findUserByEmail(auth.getName());\r\n return user;\r\n }",
"public static String getUserId() {\r\n\t\tHttpSession session = getSession(true);\r\n\t\tif (session != null)\r\n\t\t\treturn (String) session.getAttribute(\"userid\");\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"User getBySession(String session);",
"public static UserSession getUserSession(HttpServletRequest request) {\n return (UserSession) request.getSession().getAttribute(Constants.USER_SESSION_KEY);\n }",
"public Usuario verUsuario() {\n\t\tString id = session.getAttribute(\"id\").toString();\n\t\tInteger idUsuario = Integer.parseInt(id);\n\t\tUsuario usuario = usuarioService.buscarUsuarioPorId(idUsuario);\n\t\tif (usuario != null) {\n\t\t\treturn usuario;\n\t\t}\n\t\treturn new Usuario();\n\t}",
"public abstract User getLoggedInUser();",
"private EndUser getCurrentLoggedUserDetails() {\n\n\t\tEndUser endUser = endUserDAOImpl.findByUsername(getCurrentLoggedUserName()).getSingleResult();\n\n\t\treturn endUser;\n\n\t}",
"synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}",
"public static User getCurrentUser() {\n\t\treturn ApplicationContext.getInstance().getCurrentUser();\n\t}",
"public LocalUser getLoginUser(){\n\t\treturn new Select().from(LocalUser.class).executeSingle();\n\t}",
"@Override\n\tpublic ReturnedUser getrUser() {\n\t\treturn null;\n\t}",
"public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return new User(\n sharedPreferences.getInt(AppConfig.ID, -1),\n sharedPreferences.getString(AppConfig.NAME, null),\n sharedPreferences.getString(AppConfig.EMAIL, null),\n sharedPreferences.getString(AppConfig.AGE, null),\n sharedPreferences.getString(AppConfig.GENDER, null),\n sharedPreferences.getString(AppConfig.ADDRESS, null)\n\n\n );\n }",
"public User findUser(String name) {\n\t\treturn null;\r\n\t}",
"public User getUserEntity() {\n Authentication authentication = getAuthentication();\n if(authentication == null) {\n throw new AuthenticationCredentialsNotFoundException(\"No user is currently logged in.\");\n }\n return userDAO.getById(getUserInfo().getId());\n }",
"public eu.aladdin_project.xsd.User getUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.xsd.User target = null;\n target = (eu.aladdin_project.xsd.User)get_store().find_element_user(USER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public boolean hasUser() {\n return user_ != null;\n }",
"public boolean hasUser() {\n return user_ != null;\n }",
"Session getValidSession() {\n final Session session = sessionProvider.getActiveSession();\n // Only use session if it has auth token.\n if (session != null && session.getAuthToken() != null &&\n !session.getAuthToken().isExpired()) {\n return session;\n } else {\n return null;\n }\n }",
"public boolean hasUser() {\n return user_ != null;\n }",
"public User getCurrentUser() {\n\t\treturn users.get(userTurn);\n\t}",
"public boolean hasUser() {\n return instance.hasUser();\n }",
"public boolean getUser () {\n return user;\n }",
"public final User getUser() {\t\r\n\t\treturn this.user;\r\n\t}",
"private boolean loggedIn() {\n boolean exist = false;\n UsuarioBean u = (UsuarioBean) FacesUtil.getBean(\"usuarioBean\");\n if (u.getLoggedIn() != null) {\n exist = u.getLoggedIn().booleanValue();\n }\n return exist;\n }",
"public User getUser(int id) {\n User user = null;\n Session session = null;\n try {\n session = openSession();\n user = (User) session.get(User.class, id);\n } catch (HibernateException he) {\n logger.error(\"Hibernate Exception: \" + he);\n } catch (Exception e) {\n logger.error(\"Exception: \" + e);\n } finally {\n if (session != null) {\n session.close();\n }\n }\n return user;\n }",
"public Optional<WorkspaceUser> getUser() {\n\t\treturn user;\n\t}",
"@Override\n\tpublic User getUser(String email){\n\t\tif (userExists(email) == true)\n\t\t\treturn users[searchIndex(email)];\n\t\telse\n\t\t\treturn null;\n\t}",
"private User getUser(Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = mgr.find(User.class, id);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}",
"public MyUser getMyUser() {\n checkIfAlive();\n\n IMXStore store = getStore();\n\n // MyUser is initialized as late as possible to have a better chance at having the info in storage,\n // which should be the case if this is called after the initial sync\n if (mMyUser == null) {\n mMyUser = new MyUser(store.getUser(mCredentials.userId));\n mMyUser.setDataHandler(this);\n\n // assume the profile is not yet initialized\n if (null == store.displayName()) {\n store.setAvatarURL(mMyUser.getAvatarUrl(), System.currentTimeMillis());\n store.setDisplayName(mMyUser.displayname, System.currentTimeMillis());\n } else {\n // use the latest user information\n // The user could have updated his profile in offline mode and kill the application.\n mMyUser.displayname = store.displayName();\n mMyUser.setAvatarUrl(store.avatarURL());\n }\n\n // Handle the case where the user is null by loading the user information from the server\n mMyUser.user_id = mCredentials.userId;\n } else if (null != store) {\n // assume the profile is not yet initialized\n if ((null == store.displayName()) && (null != mMyUser.displayname)) {\n // setAvatarURL && setDisplayName perform a commit if it is required.\n store.setAvatarURL(mMyUser.getAvatarUrl(), System.currentTimeMillis());\n store.setDisplayName(mMyUser.displayname, System.currentTimeMillis());\n } else if (!TextUtils.equals(mMyUser.displayname, store.displayName())) {\n mMyUser.displayname = store.displayName();\n mMyUser.setAvatarUrl(store.avatarURL());\n }\n }\n\n // check if there is anything to refresh\n mMyUser.refreshUserInfos(null);\n\n return mMyUser;\n }",
"public static User getCurrentUser() {\n if (cacheUser != null)\n return cacheUser;\n\n User user;\n String jsonData = getSharedPreferences().getString(PREF_KEY_USER_INFO, \"\");\n\n //Convert back to User data model\n try {\n user = (new Gson()).fromJson(jsonData, User.class);\n } catch (Exception e) {\n String message = \"null\";\n if (e != null) {\n message = e.getMessage();\n }\n LogUtils.logInDebug(LOG_TAG, \"getCurrentUserInfo error: \" + message);\n user = null;\n }\n\n cacheUser = user;\n\n if (user != null)\n cacheAccessToken = user.secret;\n\n return cacheUser;\n }",
"public HashSet<User> findUser() {\n\t\treturn null;\r\n\t}",
"@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }",
"public user getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return new user(\n sharedPreferences.getInt(KEY_ID, -1),\n sharedPreferences.getInt(KEY_NATIONAL_ID, -1),\n sharedPreferences.getString(KEY_FIRST_NAME, null),\n sharedPreferences.getString(KEY_SECOND_NAME, null),\n sharedPreferences.getString(KEY_EMAIL, null),\n sharedPreferences.getString(KEY_MOBILE_NUMBER, null),\n sharedPreferences.getString(KEY_REG_DATE, null),\n sharedPreferences.getString(KEY_dob, null),\n sharedPreferences.getString(KEY_address, null),\n sharedPreferences.getString(KEY_city, null),\n sharedPreferences.getString(KEY_country, null)\n );\n }",
"public static int getCurrentUserId() {\n return session.get().getUserId();\n }",
"public UserSession getUserForName(String name) throws SessionQueryException\n {\n UserSession returnedSession = null;\n\n SessionManagementComponent sampleComponent = new SessionManagementComponent(name, false, false);\n\n UserSession[] allSessions = getUserSessions(name);\n\n if(allSessions != null)\n {\n int index = Arrays.binarySearch(allSessions, sampleComponent, getNameComparator());\n\n if(index >= 0)\n {\n returnedSession = allSessions[index];\n }\n }\n\n return returnedSession;\n }",
"public User getAuthenticatedUser() {\n\t\tif(SecurityContextHolder.getContext().getAuthentication().getPrincipal().equals(\"anonymousUser\"))\n\t\t\treturn null;\n\t\treturn ((UserAuthorization) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUser();\n\t}",
"@RequestMapping(\"/currentuser\")\n\tpublic User getCurrentlyLoggedInUser() throws NoLoginInfoFoundException, URISyntaxException {\n\t\tUser currentUser = null;\n\t\tString username = loginService.getCurrentUsername();\n\t\tif (username != null) {\n\t\t\tList<User> allUsers = myUserDetailsService.getAllUsers();\n\t\t\tfor (User user : allUsers) {\n\t\t\t\tif (user.getEmail().equals(username)) {\n\t\t\t\t\tcurrentUser = user;\n\t\t\t\t\tURI uri = new URI(Constants.orderBaseurl + Constants.orderGetUserUrl);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tResponseEntity<User> response = restTemplate.postForEntity(uri, currentUser, User.class);\n\t\t\t\t\t\tSystem.out.println(response.getBody());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new NoLoginInfoFoundException(\"Please login to continue\");\n\t\t}\n\n\t\treturn currentUser;\n\t}",
"private AuthenticatedUser getUser(AuthenticationContext context) {\n StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(context.getCurrentStep() - 1);\n return stepConfig.getAuthenticatedUser();\n }",
"private User ensureUser(HttpServletRequest request) {\n\t\tHttpSession session = request.getSession();\n\t\tUser user = (User)session.getAttribute(\"user\");\n\t\t\n\t\tif (null == user) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif (user.isTokenExpired()) {\n\t\t\tString authServlet = user.isConsentedForOrg() ? \"AuthorizeOrganization\" : \"AuthorizeUser\";\n\t\t\tStringBuffer requestUrl = request.getRequestURL();\n\t\t\tString redirectUrl = requestUrl.replace(requestUrl.lastIndexOf(\"/\") + 1, requestUrl.length(), authServlet).toString();\n\t\t\t\n\t\t\tuser.setTokenObj(AuthHelper.getTokenSilently(user, redirectUrl, this.getServletContext()));\n\t\t\tsession.setAttribute(\"user\", user);\n\t\t}\n\t\t\n\t\treturn user;\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public static User getLoggedUser(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"loggedUserPrefs\", 0);\n User user = (new Gson()).fromJson(prefs.getString(\"user\", null), User.class);\n return user;\n }",
"public User getUser() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n return mUser;\n }",
"public User getLoggedUser(){\n\t\treturn loggedUser;\n\t}",
"public SimpleUser getUser() {\n return user;\n }",
"public UserModel getUser() {\n return userRepository.findById(getUserID())\n .orElseThrow(() -> new ResourceNotFoundException(\"User not found with id: \" + getUserID()));\n }",
"public static Optional<UUID> getLoggedUserUuid() {\n SecurityContext securityContext = SecurityContextHolder.getContext();\n Authentication authentication = securityContext.getAuthentication();\n if (authentication instanceof UsernamePasswordAuthenticationToken) {\n return Optional.of(UUID.fromString(authentication.getName()));\n }\n return Optional.empty();\n }",
"@Nullable\n public User getUser() {\n return mUser;\n }",
"public User get() {\n\t\treturn null;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getToUser() {\r\n Long __key = this.to;\r\n if (toUser__resolvedKey == null || !toUser__resolvedKey.equals(__key)) {\r\n if (daoSession == null) {\r\n throw new DaoException(\"Entity is detached from DAO context\");\r\n }\r\n UserDao targetDao = daoSession.getUserDao();\r\n User toUserNew = targetDao.load(__key);\r\n synchronized (this) {\r\n toUser = toUserNew;\r\n \ttoUser__resolvedKey = __key;\r\n }\r\n }\r\n return toUser;\r\n }",
"public User getUser(Integer id) {\n\t\treturn null;\n\t}",
"public User getUser() {\n\t\treturn this.user;\n\t}"
] | [
"0.76370865",
"0.74488705",
"0.73420966",
"0.72969365",
"0.72548026",
"0.71754634",
"0.7171022",
"0.71390957",
"0.70526844",
"0.6955734",
"0.69285023",
"0.69048786",
"0.6827729",
"0.6827729",
"0.6825037",
"0.68133837",
"0.67567694",
"0.67305535",
"0.67178756",
"0.6707775",
"0.6698478",
"0.66798055",
"0.667975",
"0.6678053",
"0.6640212",
"0.6624616",
"0.6615918",
"0.65989834",
"0.65923667",
"0.6584814",
"0.65794474",
"0.65724254",
"0.6571264",
"0.65682065",
"0.6567683",
"0.6562135",
"0.65578187",
"0.65504277",
"0.6548661",
"0.6545676",
"0.6514469",
"0.6514469",
"0.65136945",
"0.65131736",
"0.6482866",
"0.64565283",
"0.64524394",
"0.6444535",
"0.644148",
"0.6435785",
"0.640719",
"0.638321",
"0.63795906",
"0.635796",
"0.63573784",
"0.6352447",
"0.6351012",
"0.6351012",
"0.63456213",
"0.6343697",
"0.6338792",
"0.6319974",
"0.6318954",
"0.6291602",
"0.62844074",
"0.6283136",
"0.62658834",
"0.6261346",
"0.62551194",
"0.62534153",
"0.6247693",
"0.6244338",
"0.6231674",
"0.6222931",
"0.62192464",
"0.6197115",
"0.61889565",
"0.6181875",
"0.6181487",
"0.61790526",
"0.61766255",
"0.61766255",
"0.61766255",
"0.61765397",
"0.6170752",
"0.61665404",
"0.6165224",
"0.61651397",
"0.61551946",
"0.6149659",
"0.61392665",
"0.61369133",
"0.61369133",
"0.61369133",
"0.61369133",
"0.61369133",
"0.61369133",
"0.6131622",
"0.6130425",
"0.6106071"
] | 0.66557735 | 24 |
This method returns the session pizzeria only if one exists, so check if it returns null or use the isPizzeria method before. | public static Integer getPizzeriaIdFromSessionOrNull(HttpSession session) {
return (Integer) session.getAttribute(ATTRIBUTE_PIZZERIA_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasSession();",
"@Override\r\n public PhoenixSession getSession()\r\n {\n return null;\r\n }",
"Session getValidSession() {\n final Session session = sessionProvider.getActiveSession();\n // Only use session if it has auth token.\n if (session != null && session.getAuthToken() != null &&\n !session.getAuthToken().isExpired()) {\n return session;\n } else {\n return null;\n }\n }",
"public boolean inAnySession() {\n\t\treturn getSession(player).isPresent();\n\t}",
"private static String firstSessionId() {\n\t\t// do we have any stored sessions from earlier login events?\n\t\tif (pmaSessions.size() > 0) {\n\t\t\t// yes we do! This means that when there's a PMA.core active session AND\n\t\t\t// PMA.core.lite version running,\n\t\t\t// the PMA.core active will be selected and returned\n\t\t\treturn pmaSessions.keySet().toArray()[0].toString();\n\t\t} else {\n\t\t\t// ok, we don't have stored sessions; not a problem per se...\n\t\t\tif (pmaIsLite()) {\n\t\t\t\tif (!pmaSlideInfos.containsKey(pmaCoreLiteSessionID)) {\n\t\t\t\t\tpmaSlideInfos.put(pmaCoreLiteSessionID, new HashMap<String, Object>());\n\t\t\t\t}\n\t\t\t\tif (!pmaAmountOfDataDownloaded.containsKey(pmaCoreLiteSessionID)) {\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(pmaCoreLiteSessionID, 0);\n\t\t\t\t}\n\t\t\t\treturn pmaCoreLiteSessionID;\n\t\t\t} else {\n\t\t\t\t// no stored PMA.core sessions found NOR PMA.core.lite\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"public com.weizhu.proto.WeizhuProtos.Session getSession() {\n return session_;\n }",
"@Override\n\tpublic Session getSession() throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic MemberVO getSession() {\n\t\treturn null;\n\t}",
"com.weizhu.proto.WeizhuProtos.Session getSession();",
"Object getNativeSession();",
"public PSUserSession getSession();",
"Session getCurrentSession();",
"Session getCurrentSession();",
"@Override\n\t\tpublic HttpSession getSession() {\n\t\t\treturn null;\n\t\t}",
"com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();",
"public boolean isSession() {\n\t\treturn config.getBoolean(QuestConfigurationField.SESSION.getKey(), \n\t\t\t\t(boolean) QuestConfigurationField.SESSION.getDefault());\n\t}",
"public PortletSession getPortletSession() {\r\n\t\tif (_preq != null)\r\n\t\t\treturn _preq.getPortletSession();\r\n\t\telse\r\n\t\t\treturn null;\t\t\r\n\t}",
"public Session getSafeSession()\n {\n beginSession(false);\n return session;\n }",
"public boolean inicioSession(String usuario, String password, String aplicacion){\n Session session = obtenerConexion().authenticate( aplicacion, usuario, password);\n if(session != null){\n setSesion(session);\n return true;\n }else{\n return false;\n }\n }",
"@Override\n\t\tpublic HttpSession getSession(boolean create) {\n\t\t\treturn null;\n\t\t}",
"public String getSession() {\n return this.session;\n }",
"public Object getDelegateSession() throws UMOException\n {\n return null;\n }",
"protected Session getSession() {\n\n return (Session) getExtraData().get(ProcessListener.EXTRA_DATA_SESSION);\n }",
"public com.weizhu.proto.WeizhuProtos.Session getSession() {\n if (sessionBuilder_ == null) {\n return session_;\n } else {\n return sessionBuilder_.getMessage();\n }\n }",
"public static Session getCurrentSession() {\n if(currentSession != null){\n return currentSession;\n } else {\n createNewSession(new Point2D(300,300));\n return getCurrentSession();\n }\n }",
"public jkt.hms.masters.business.MasSession getSession () {\n\t\treturn session;\n\t}",
"private Session getSession(String type) {\n String hostUrl = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_HOST_URL);\n String user = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_USER);\n String password = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_PASSWORD);\n String cmisUrl = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_CMIS_URL);\n logger.info(\"Getting session \" + type + \": \" + hostUrl + \", user: \" + user);\n\n return CmisHelper.getSession(hostUrl, user, password, cmisUrl);\n }",
"public static Session getCurrentSession() {\r\n //LOG.debug(MODULE + \"Get CurrentSession\");\r\n\r\n /* This code is to find who has called the method only for debugging and testing purpose.\r\n try {\r\n throw new Exception(\"Who called Me : \");\r\n } catch (Exception e) {\r\n //LOG.debug(\"I was called by \" + e.getStackTrace()[2].getClassName() + \".\" + e.getStackTrace()[2].getMethodName() + \"()!\");\r\n LOG.debug(\"I was called by : \", e);\r\n }\r\n */\r\n return openSession();\r\n //return sessionFactory.getCurrentSession();\r\n }",
"public static Session getSession() {\n if(sesh == null) {\n return sesh = sf.openSession();\n }\n\n return sesh;\n }",
"public static Optional<ExchangeSession> getSession(Player player) {\n\t\treturn SESSIONS.stream().filter(s -> anyMatch(s, player.getName())).findAny();\n\t}",
"public static short getSession(){\n\t\treturn (short)++sessao;\n\t}",
"public static Session getSession() {\n return session;\n }",
"@Override\n\tprotected Session doReadSession(Serializable sessionId) {\n\t\treturn null;\n\t}",
"public String getSession() {\n return session;\n }",
"public User getSession(){\n\t\treturn this.session;\n\t}",
"public com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder() {\n return session_;\n }",
"public PortletSession getPortletSession(boolean arg1) {\r\n\t\tif (_preq != null)\r\n\t\t\treturn _preq.getPortletSession(arg1);\r\n\t\telse\r\n\t\t\treturn null;\t\t\r\n\t}",
"public SESSION getCurrentSessionForTest() {\n return currentSession;\n }",
"protected abstract SESSION getThisAsSession();",
"@Override\r\n \t\t\tpublic SSession getSession(long sessionId) throws SSessionNotFoundException {\n \t\t\t\treturn null;\r\n \t\t\t}",
"String getAssociatedSession();",
"public com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder() {\n if (sessionBuilder_ != null) {\n return sessionBuilder_.getMessageOrBuilder();\n } else {\n return session_;\n }\n }",
"private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}",
"public IEvolizerSession getEvolizerSession() throws EvolizerException {\n // IEvolizerSession session = EvolizerSessionHandler.getHandler().getCurrentSession(fDbUrl);\n // return session;\n\n return fSession;\n }",
"public static CustomSession get() {\r\n\t\treturn (CustomSession) Session.get();\r\n\t}",
"protected DatabaseSession getDbSession() {\n if(dbSession == null) {\n dbSession = getServerSession();\n }\n return dbSession;\n }",
"protected Session getSession() { return session; }",
"@Override\r\n\tpublic HttpSession getSession()\r\n\t{\r\n\t\t// This method was implemented as a workaround to __CR3668__ and Vignette Support ticket __247976__.\r\n\t\t// The issue seems to be due to the fact that both local and remote portlets try to retrieve\r\n\t\t// the session object in the same request. Invoking getSession during local portlets\r\n\t\t// processing results in a new session being allocated. Unfortunately, as remote portlets\r\n\t\t// use non-WebLogic thread pool for rendering, WebLogic seems to get confused and associates\r\n\t\t// the session created during local portlet processing with the portal request.\r\n\t\t// As a result none of the information stored originally in the session can be found\r\n\t\t// and this results in errors.\r\n\t\t// To work around the issue we maintain a reference to original session (captured on the\r\n\t\t// first invocation of this method during the request) and return it any time this method\r\n\t\t// is called. This seems to prevent the issue.\r\n\t\t// In addition, to isolate SPF code from the session retrieval issue performed by Axis\r\n\t\t// handlers used during WSRP request processing (e.g. StickyHandler), we also store\r\n\t\t// a reference to the session as request attribute. Newly added com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t// can then use the request attribute value instead of calling request.getSession()\r\n\t\t// which before this change resulted in new session being allocated and associated with\r\n\t\t// the portal request.\r\n\r\n\t\tif (mSession == null) {\r\n\t\t\tmSession = ((HttpServletRequest)getRequest()).getSession();\r\n\r\n\t\t\t// Store session in request attribute for com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t\tgetRequest().setAttribute(ORIGINAL_SESSION, mSession);\r\n\t\t}\r\n\r\n\t\treturn mSession;\r\n\t}",
"Session getSession();",
"Session getSession();",
"public static Session getSession() {\n\n if (serverRunning.get() && !session.isClosed()) {\n return session;\n } else {\n if (session.isClosed()) {\n throw new IllegalStateException(\"Session is closed\");\n } else {\n throw new IllegalStateException(\"Cluster not running\");\n }\n }\n }",
"protected Session getSession() {\n return sessionUtility.getSession();\n }",
"public ManagedBeanSession() {\r\n this.facesContext = FacesContext.getCurrentInstance();\r\n this.httpServletRequest = (HttpServletRequest) this.facesContext.getExternalContext().getRequest();\r\n if (this.httpServletRequest.getSession().getAttribute(\"sessionUsuario\") != null) {\r\n this.usuario = this.httpServletRequest.getSession().getAttribute(\"sessionUsuario\").toString();\r\n }\r\n }",
"private boolean isInSession()\n {\n return EngagementActivityManager.getInstance().getCurrentActivityAlias() != null;\n }",
"public Session getSession() { return session; }",
"public Session createSession() {\n\t\treturn this.session;\n\t}",
"public Session getSysSession() {\n\n sysSession.currentSchema =\n sysSession.database.schemaManager.getDefaultSchemaHsqlName();\n sysSession.isProcessingScript = false;\n sysSession.isProcessingLog = false;\n\n sysSession.setUser(sysSession.database.getUserManager().getSysUser());\n\n return sysSession;\n }",
"@Override\n\tpublic Session sessionFindById(int id) {\n\t\treturn null;\n\t}",
"public LocalSession session() { return session; }",
"protected final Session getSession() {\n\t\treturn m_sess;\n\t}",
"private Vaccinato getAuthVaccinated(IoSession session) {\n if (session != null) return (Vaccinato) session.getAttribute(\"vaccinato\");\n else return null;\n }",
"public Session getSession() {\n return session;\n }",
"@Override\n public CreateSessionResponse createSession()\n throws EwalletException {\n return null;\n }",
"DefaultSession getSession(String id);",
"public static MemberSession getMemberSession() {\n//\t\treturn getMemberSessionDo2(GPortalExecutionContext.getRequest().getSessionContext().getId());\n\t//\tGPortalExecutionContext.getRequest().getSessionContext().invalidate();\n\t\treturn getMemberSession(GPortalExecutionContext.getRequest().getSessionContext().getId());\n\t}",
"protected AraSessionBean getAraSessionBean() {\n return (AraSessionBean) getBean(\"AraSessionBean\");\n }",
"public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public abstract I_SessionInfo getSession(I_SessionName sessionName);",
"public Usuario verUsuario() {\n\t\tString id = session.getAttribute(\"id\").toString();\n\t\tInteger idUsuario = Integer.parseInt(id);\n\t\tUsuario usuario = usuarioService.buscarUsuarioPorId(idUsuario);\n\t\tif (usuario != null) {\n\t\t\treturn usuario;\n\t\t}\n\t\treturn new Usuario();\n\t}",
"public Session getSession()\n {\n return session;\n }",
"public Session getSession() {\n if (this.session == null) {\n this.logger.error(\"Sessão não iniciada.\");\n throw new IllegalStateException(\"A sessão não foi criada antes do uso do DAO\");\n }\n return this.session;\n }",
"public static String isMemberSession(String username) {\n\t\tint aid = SystemGlobals.getIntValue(ConfigKeys.ANONYMOUS_USER_ID);\n\n\t\tsynchronized (FQN) {\n\t\t\tList<MemberSession> memberSessionList = new ArrayList<MemberSession>();\n//\t\t\tObject object = cache.getValues(FQN);\n\t\t\tObject object = null;\n\t\t\tif (object != null) {\n\t\t\t\tmemberSessionList = (List<MemberSession>) object;\n\t\t\t}\n\t\t\tif (object == null || memberSessionList.size() == 0) {\n\t\t\t\tobject = cache.getValues(FQN);\n\t\t\t\tmemberSessionList = (List<MemberSession>) object;\n\t\t\t\tfor (MemberSession ms : memberSessionList) {\n\t\t\t\t\tcache.add(FQN, ms.getSessionId(), ms);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Iterator iter = memberSessionList.iterator(); iter.hasNext();) {\n\t\t\t\tMemberSession ms = (MemberSession) iter.next();\n\t\t\t\tString thisUsername = ms.getUsername();\n\n\t\t\t\tif (thisUsername == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (ms.getMemberId().intValue() != aid && thisUsername.equals(username)) {\n\t\t\t\t\treturn ms.getSessionId();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"boolean isSetSessionID();",
"public Session getSession() {\n\t\tSession session = this.session;\r\n\t\tif (session == null) {\r\n\t\t\t// 2. altrimenti genera una nuova sessione utilizzando la factory (e.g. Spring MVC)\r\n\t\t\tsession = this.sessionFactory.getCurrentSession();\r\n\t\t}\r\n\t\treturn session;\r\n\t}",
"public static Session currentSession() {\n \tif (sessionFactory == null) {\n \t\tinitialize();\n \t}\n \tif (singleSessionMode) {\n \t\tif (singleSession == null) {\n \t\t\tsingleSession = sessionFactory.openSession();\n \t\t}\n \t\treturn singleSession;\n \t} else {\n\t Session s = session.get();\n\t \n\t // Open a new Session, if this Thread has none yet\n\t if (s == null || !s.isOpen()) {\n\t s = sessionFactory.openSession();\n\t session.set(s);\n\t }\n\t return s;\n \t}\n }",
"private Session getCurrentSession() {\n return sessionFactory.getCurrentSession();\n }",
"protected Session getSession() {\r\n if (session == null || !session.isOpen()) {\r\n LOG.debug(\"Session is null or not open...\");\r\n return HibernateUtil.getCurrentSession();\r\n }\r\n LOG.debug(\"Session is current...\");\r\n return session;\r\n }",
"public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public Session getSession(){\n\t\treturn sessionFactory.openSession();\n\t}",
"protected final Session getSession() {\n return sessionTracker.getSession();\n }",
"public Session getSession();",
"public RDBMSSession getSession() {\r\n\t\treturn (RDBMSSession) session;\r\n\t}",
"private Session getSession() throws RepositoryException {\n return getRepository().loginAdministrative(null);\n }",
"public Session session() {\n return session;\n }",
"synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}",
"public Session getSession()\n\t{\n\t\treturn m_Session;\n\t}",
"private boolean loggedIn() {\n boolean exist = false;\n UsuarioBean u = (UsuarioBean) FacesUtil.getBean(\"usuarioBean\");\n if (u.getLoggedIn() != null) {\n exist = u.getLoggedIn().booleanValue();\n }\n return exist;\n }",
"@Override\n public SessionCookieConfig getSessionCookieConfig() {\n return null;\n }",
"protected Session getCurrentSession()\n \t{\n \t\treturn this.sessionFactory.getCurrentSession();\n \t}",
"synchronized Session getSession(long id) {\n return (Session) sessionMap.get(id);\n }",
"InternalSession findSession(String id);",
"private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }",
"public Session getSession() {\n return session;\n }",
"boolean hasSessionTemplate();",
"private Session getSession (String sessionID) {\n\t\tSession session;\n\t\tif (get(sessionID) != null) {\n\t\t\tsession = get(sessionID);\n\t\t} else {\n\t\t\tsession = new Session();\n\t\t\tput(session.getId(), session);\n\t\t}\n\t\treturn session;\n\t}",
"public static Optional<ExchangeSession> getSession(Player player, Player other) {\n\t\treturn SESSIONS.stream().filter(s -> allMatch(s, player.getName(), other.getName())).findAny();\n\t}",
"public Session getSession(@NotNull Http.Request request) {\n Session session;\n String sessionKey = request.getHeader(SESSION_FIELD_NAME);\n\n // Check Session Key\n if (sessionKey == null || sessionKey.isEmpty()) {\n return null;\n }\n\n // Get Session by Key & check a session was found\n session = this.sessionRepository.getById(sessionKey);\n if (session == null || !session.isValid()) {\n return null;\n }\n\n return session;\n }",
"public /*static*/ Session getSession() {\n return sessionFactory.getCurrentSession();\n }",
"@Override\n\tpublic HttpSession getSession(boolean flag) {\n\t\tboolean sessionInStock = false;\n if (flag) {\n if (!hasSession()) {\n for (Cookie c : cookieList) {\n if (c.getName().equalsIgnoreCase(\"JSESSIONID\")) {\n if (SessionContainer.getSession(c.getValue()) != null) {\n sessionInStock = true;\n m_session = SessionContainer.getSession(c.getValue());\n return m_session;\n }\n }\n }\n if (!sessionInStock) {\n m_session = new MyHttpSession();\n Cookie sessionCookie = new Cookie(\"JSESSIONID\",\n m_session.getSessoinId());\n buffer.addCookie(sessionCookie);\n SessionContainer.addSession(m_session);\n }\n }\n } else {\n if (!hasSession()) {\n m_session = null;\n }\n }\n return m_session;\n\t}",
"public abstract I_SessionInfo getSessionByPublicId(long publicSessionId);"
] | [
"0.62961954",
"0.6245051",
"0.621916",
"0.61651874",
"0.61065555",
"0.6078811",
"0.60202897",
"0.5990628",
"0.59684074",
"0.5947216",
"0.5935891",
"0.58797085",
"0.58797085",
"0.5857136",
"0.5844972",
"0.5817658",
"0.58057654",
"0.5778508",
"0.5774304",
"0.57640237",
"0.5759786",
"0.57528806",
"0.5738409",
"0.5735393",
"0.57259846",
"0.57140416",
"0.5707469",
"0.56913304",
"0.56901276",
"0.5688608",
"0.5668467",
"0.56661355",
"0.56640834",
"0.56614494",
"0.5660352",
"0.56588525",
"0.5656507",
"0.5645268",
"0.56434655",
"0.5632824",
"0.5631772",
"0.5624306",
"0.5606031",
"0.5606019",
"0.5599007",
"0.55885905",
"0.55863565",
"0.5578146",
"0.55748",
"0.55748",
"0.5563191",
"0.55550486",
"0.5553145",
"0.5548915",
"0.5530338",
"0.5527515",
"0.55106217",
"0.55098546",
"0.5498079",
"0.54950786",
"0.54922205",
"0.54799354",
"0.54653263",
"0.5460976",
"0.54418546",
"0.54381335",
"0.5435436",
"0.5431519",
"0.5430552",
"0.5428338",
"0.54216516",
"0.5421179",
"0.54018193",
"0.5400853",
"0.53984445",
"0.5398042",
"0.53951305",
"0.53902406",
"0.53696346",
"0.5365756",
"0.53651476",
"0.5359146",
"0.5352398",
"0.5352218",
"0.5350957",
"0.53481793",
"0.53398925",
"0.5336377",
"0.53354675",
"0.5331122",
"0.53247714",
"0.5324544",
"0.5322818",
"0.5314074",
"0.53139335",
"0.53097266",
"0.53084683",
"0.5308013",
"0.53027797",
"0.52874124"
] | 0.7008224 | 0 |
1.Take FileSystemXmlApplicationContext which is implementations ApplicationContext interface In this we have to provide the relative configuration XML file | public static void main(String[] args) {
AbstractApplicationContext appContext = new FileSystemXmlApplicationContext("src/ApplicationMetaData.xml");
Employee employee = appContext.getBean("tcsEmployee", Employee.class);
//2.Print out Employee Bean
System.out.println("**************");
System.out.println("Employee Id::"+ employee.getEmployeeId());
System.out.println("Employee Name::" + employee.getEmployeeName());
System.out.println("**************");
appContext.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getApplicationContextPath();",
"public static void main(String[] args){\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n /*\n Check to see if the file exists\n File file = new File(\"src/main/java/applicationContext.xml\");\n System.out.println(file.exists());\n \n */\n \n //retrieve bean from spring container\n Coach theCoach = context.getBean(\"myCoach\", Coach.class);\n //call methods on the bean\n System.out.println(theCoach.getDailyWorkout());\n //close the context\n \n context.close();\n \n /*Note: PUT THE FILE IN THE RESOURCES FOLDER, OR ELSE YOU'LL GET A FILE NOT FOUND ERROR*/\n }",
"public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}",
"String getApplicationContextPhyPath()\n {\n return configfile.application_context_phy_path;\n }",
"public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }",
"private static ConfigDocumentContext createConfigurationContext(String resource) \n throws LifecycleException \n {\n try {\n Object contextBean = null;\n URL configUrl = Thread.currentThread().getContextClassLoader().getResource(resource);\n if( configUrl == null ) {\n // we can't find the config so we just an instance of Object for the ConfigDocumentContext.\n if( log.isDebugEnabled() )\n log.debug(\"Cannot find configuration at resource '\"+resource+\"'.\");\n contextBean = new Object();\n } else {\n // we have a config, create a DOM out of it and use it for the ConfigDocumentContext.\n if( log.isDebugEnabled() ) {\n log.debug(\"Loading xchain config file for url: \"+configUrl.toExternalForm());\n }\n \n // get the document builder.\n DocumentBuilder documentBuilder = XmlFactoryLifecycle.newDocumentBuilder();\n \n InputSource configInputSource = UrlSourceUtil.createSaxInputSource(configUrl);\n Document document = documentBuilder.parse(configInputSource);\n contextBean = document;\n }\n // create the context\n ConfigDocumentContext configDocumentContext = new ConfigDocumentContext(null, contextBean, Scope.chain);\n configDocumentContext.setConfigUrl(configUrl);\n configDocumentContext.setLenient(true);\n return configDocumentContext;\n } catch( Exception e ) {\n throw new LifecycleException(\"Error loading configuration from resource '\"+resource+\"'.\", e);\n }\n }",
"@Override\n protected InputSource getGlobalWebXmlSource() {\n //FIXME : should use the config repository to find the resource\n return new InputSource(PeergreenContextConfig.class.getResource(\"/tomcat7-web.xml\").toExternalForm());\n }",
"public synchronized Context getContext() throws ConfigurationException {\n if (context == null) {\n if (contextXml.exists()) {\n // load configuration if already exists\n try {\n context = Context.createGraph(contextXml);\n } catch (IOException e) {\n String msg = NbBundle.getMessage(TomcatModuleConfiguration.class, \"MSG_ConfigurationXmlReadFail\", contextXml.getPath());\n throw new ConfigurationException(msg, e);\n } catch (RuntimeException e) {\n // context.xml is not parseable\n String msg = NbBundle.getMessage(TomcatModuleConfiguration.class, \"MSG_ConfigurationXmlBroken\", contextXml.getPath());\n throw new ConfigurationException(msg, e);\n }\n } else {\n // create context.xml if it does not exist yet\n context = genereateContext();\n TomcatModuleConfiguration.<Context>writeToFile(contextXml, () -> getContext());\n }\n }\n return context;\n }",
"private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}",
"public URI getConfigurationFile() {\n return configurationFile;\n }",
"public static LoggerContext configureRollingFile() {\n return configureFromXmlString(rollingFileXmlConfig);\n }",
"public DataSource getDataSource(){\n\n // open/read the applicliation context file\n // belove instruction to ger absolute path of current java apps\n //URL location = NaicsUtility.class.getProtectionDomain().getCodeSource().getLocation();\n //System.out.println(location);\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(\"./../db.xml\");\n DataSource dataSource = null;\n try{ \n dataSource = (DataSource) appContext.getBean(\"dataSource\");\n } catch ( Exception ex ) {\n logger.log( Level.SEVERE, \"ERROR: can't create spring context and data source from application context\", ex.getMessage() );\n } finally {\n appContext.close();\n }\n return dataSource;\n }",
"public void readConfigXml() throws SerializationException {\n\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n lf = pm.getLocalizationFile(lc, CONFIG_FILE_NAME);\n lf.addFileUpdatedObserver(this);\n File file = lf.getFile();\n // System.out.println(\"Reading -- \" + file.getAbsolutePath());\n if (!file.exists()) {\n System.out.println(\"WARNING [FFMP] FFMPRunConfigurationManager: \"\n + file.getAbsolutePath() + \" does not exist.\");\n return;\n }\n\n FFMPRunConfigXML configXmltmp = null;\n\n configXmltmp = jaxb.unmarshalFromXmlFile(file.getAbsolutePath());\n\n configXml = configXmltmp;\n isPopulated = true;\n applySourceConfigOverrides();\n }",
"private static CamelContext configureCamelContext(ApplicationContext context) throws Exception {\n //normal way of getting camel context but i have it defined in camelSpringApplicationContext.xml\n // CamelContext camel = new DefaultCamelContext();\n // CamelContext camel = new SpringCamelContext(context);\n CamelContext camel = (CamelContext) context.getBean(\"myCamelContext\");\n // shows up in jmx with this context name instead of camel-1\n camel.setNameStrategy(new DefaultCamelContextNameStrategy(\"steves_camel_driver\"));\n // camel.setTracing(true); // set in camelSpringApplicationContext.xml\n camel.addStartupListener(new StartupListener() {\n @Override\n public void onCamelContextStarted(CamelContext context, boolean alreadyStarted) throws Exception {\n LOG.info(\"Seeing when startup strategy is called. CamelContext=\" + context);\n }\n });\n\n return camel;\n }",
"public Context getApplicationContext();",
"public void init(boolean contextProvided) {\n\t\tFile file = null;\n\t\ttry {\n\t\t\tif(!contextProvided) file = new File(fileName);\n\t\t\telse {\n\t\t\t\tString path = sc.getRealPath(\"/META-INF/\" + fileName);\n\t\t\t\tif(path != null)\n\t\t\t\t\tfile = new File(path);\n\t\t\t\telse {\n\t\t\t\t\tfileName = fileName.replace(\"\\\\\", \"/\");\n\t\t\t\t\tpath = sc.getRealPath(\"/META-INF/\" + fileName.substring(0, fileName.indexOf(\"/\"))) + fileName.substring(fileName.indexOf(\"/\"));\n\t\t\t\t\tfile = new File(path);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Using bean config file at: \" + file.getAbsolutePath());\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.createNewFile();\n\t\t\t\tsetUpNewXMLFile(file);\n\t\t\t}\n\t\t\t\n\t\t\t//Get the XML Document.\n\t\t\tDocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t\t\tdocument = documentBuilder.parse(file);\n\t\t\t\n\t\t\t//Get the nodes of the file.\n\t\t\tnodes = document.getDocumentElement().getChildNodes();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error while instantiating XMLClient for \" + fileName);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public File getConfigurationFile();",
"public org.apache.axis2.context.xsd.ConfigurationContext getConfigurationContext(){\n return localConfigurationContext;\n }",
"private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}",
"@Override\n protected Path getConfigurationPath() {\n return null;\n }",
"@Override\n public void onStartup(ServletContext container) {\n AnnotationConfigWebApplicationContext rootContext =\n new AnnotationConfigWebApplicationContext();\n rootContext.register(ApplicationConfig.class);\n rootContext.setConfigLocation(\"example.spring\");\n\n // Manage the lifecycle of the root application context\n container.addListener(new ContextLoaderListener(rootContext));\n container.addListener(new RequestContextListener());\n\n // The following line is required to avoid having jersey-spring3 registering it's own Spring root context.\n container.setInitParameter(\"contextConfigLocation\", \"\");\n\n }",
"public static void main(String[] args) \r\n\t{\n\t\tString s = \"resources/spring.xml\";\r\nApplicationContext ac = new ClassPathXmlApplicationContext(s);\r\nCar c=(Car)ac.getBean(\"c\");\r\nc.printCarDetails();\r\n\t}",
"private static OMElement loadConfigXML() throws EventBrokerConfigurationException {\n\n String carbonConfigHome = CarbonBaseUtils.getCarbonConfigDirPath();\n File confFile = Paths.get(carbonConfigHome, EventBrokerConstants.EB_CONF).toFile();\n String path = confFile.toString();\n BufferedInputStream inputStream = null;\n try {\n inputStream = new BufferedInputStream(new FileInputStream(confFile));\n XMLStreamReader parser = XMLInputFactory.newInstance().\n createXMLStreamReader(inputStream);\n StAXOMBuilder builder = new StAXOMBuilder(parser);\n OMElement omElement = builder.getDocumentElement();\n omElement.build();\n return omElement;\n } catch (FileNotFoundException e) {\n throw new EventBrokerConfigurationException(EventBrokerConstants.EB_CONF\n + \"cannot be found in the path : \" + path, e);\n } catch (XMLStreamException e) {\n throw new EventBrokerConfigurationException(\"Invalid XML for \" + EventBrokerConstants.EB_CONF\n + \" located in the path : \" + path, e);\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException ingored) {\n throw new EventBrokerConfigurationException(\"Can not close the input stream\");\n }\n }\n }",
"@Override\n public void configureForXmlConformance() {\n mConfig.configureForXmlConformance();\n }",
"@StartStep(localName=\"config\", xmlns={\"xmlns:config='http://xchain.org/config/1.0'\"})\n public static void startConfiguration(LifecycleContext context, ConfigDocumentContext configDocContext) \n throws MalformedURLException \n {\n // Read DOM and set values on configContext\n ConfigContext configContext = Lifecycle.getLifecycleContext().getConfigContext();\n Boolean monitor = (Boolean)configDocContext.getValue(\"/config:config/config:monitor\", Boolean.class);\n if( monitor != null ) configContext.setMonitored(monitor);\n Integer catalogCacheSize = (Integer)configDocContext.getValue(\"/config:config/config:catalog-cache-size\", Integer.class);\n if( catalogCacheSize != null ) configContext.setCatalogCacheSize(catalogCacheSize);\n Integer templateCacheSize = (Integer)configDocContext.getValue(\"/config:config/config:templates-cache-size\", Integer.class);\n if( templateCacheSize != null ) configContext.setTemplatesCacheSize(templateCacheSize);\n \n addUrls(configDocContext, \"/config:config/config:resource-base-url/@config:system-id\", configContext.getResourceUrlList());\n addUrls(configDocContext, \"/config:config/config:source-base-url/@config:system-id\", configContext.getSourceUrlList());\n addUrls(configDocContext, \"/config:config/config:webapp-base-url/@config:system-id\", configContext.getWebappUrlList());\n \n // configure the URLFactory for file monitoring if requested\n if( configContext.isMonitored() ) {\n\n if( log.isDebugEnabled() ) {\n log.debug( \"Config: Monitoring is enabled, configuring URL translation strategies...\" );\n }\n\n // configure the resource protocol 'context-class-loader' authority for monitoring\n if( !configContext.getResourceUrlList().isEmpty() ) {\n\n CompositeUrlTranslationStrategy contextClassLoaderStrategy = new CompositeUrlTranslationStrategy();\n \n for( Iterator<URL> it = configContext.getResourceUrlList().iterator(); it.hasNext(); ) {\n URL baseUrl = it.next();\n BaseUrlUrlTranslationStrategy baseUrlStrategy =\n new BaseUrlUrlTranslationStrategy( baseUrl, BaseUrlUrlTranslationStrategy.URL_FACTORY_URL_SOURCE );\n contextClassLoaderStrategy.getTranslatorList().add( baseUrlStrategy );\n if( log.isDebugEnabled() ) {\n log.debug( \" Adding resource URL: \" + baseUrl );\n }\n }\n \n // now add the standard context class loader strategy\n contextClassLoaderStrategy.getTranslatorList().add( new ContextClassLoaderUrlTranslationStrategy() );\n \n // override the standard strategy with the new composite strategy\n ResourceUrlConnection.registerUrlTranslationStrategy( ResourceUrlConnection.CONTEXT_CLASS_LOADER_ATHORITY,\n contextClassLoaderStrategy );\n }\n }\n }",
"private SpringApplicationContextProvider() {\r\n\t}",
"public ApplicationConfig initialize() throws IOException {\n\t\tClassLoader classLoader = TCCLUtil.getThreadContextClassLoaderOrDefault(getClass());\n\n\t\t// Obtain a ResourceReader that is compatible with a startup ExternalContext\n\t\tResourceReader resourceReader = newResourceReader();\n\n\t\t// Obtain a SAX Parser Factory.\n\t\tSAXParserFactory saxParserFactory = ConcurrentSAXParserFactory.newInstance();\n\t\tsaxParserFactory.setValidating(false);\n\t\tsaxParserFactory.setNamespaceAware(true);\n\n\t\ttry {\n\n\t\t\t// Obtain a SAX Parser from the factory.\n\t\t\tSAXParser saxParser = saxParserFactory.newSAXParser();\n\n\t\t\t// Scan all the web.xml and web-fragment.xml descriptors in the classpath.\n\t\t\tWebConfigScanner webConfigScanner = newWebConfigScanner(classLoader, resourceReader, saxParser,\n\t\t\t\t\tresolveEntities);\n\t\t\tWebConfig webConfig = webConfigScanner.scan();\n\n\t\t\t// Scan all the faces-config.xml descriptors in the classpath.\n\t\t\tFacesConfigScanner facesConfigScanner = newFacesConfigScanner(classLoader, resourceReader, saxParser,\n\t\t\t\t\tresolveEntities, webConfig);\n\t\t\tFacesConfig facesConfig = facesConfigScanner.scan();\n\n\t\t\treturn new ApplicationConfigImpl(contextPath, facesConfig, webConfig);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new IOException(e);\n\t\t}\n\t}",
"@Test\n public void testExtendedXMLConfigurationProvider() throws ConfigurationException\n {\n factory.setFile(EXTENDED_PROVIDER_FILE);\n CombinedConfiguration cc = factory.getConfiguration(true);\n DefaultConfigurationBuilder.ConfigurationProvider provider = factory\n .providerForTag(\"test\");\n assertNotNull(\"Provider 'test' not registered\", provider);\n Configuration config = cc.getConfiguration(\"xml\");\n assertNotNull(\"Test configuration not present\", config);\n assertTrue(\"Configuration is not ExtendedXMLConfiguration, is \" +\n config.getClass().getName(), config instanceof ExtendedXMLConfiguration);\n }",
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }",
"public File getConfigRoot()\r\n\t{\n\t\treturn file.getParentFile();\r\n\t}",
"public UniqueResourcesAndLocations() {\n this.context = new ClassPathXmlApplicationContext(\"spring-dao.xml\");\n this.jtemp = (JdbcTemplate)context.getBean(\"jt\");\n\t}",
"public static void loadLog4jContext() throws FileNotFoundException {\n LoggerContext context = (LoggerContext) LogManager.getContext(false);\n final File log4jConfig = searchForLog4jConfig();\n context.setConfigLocation(log4jConfig.toURI());\n }",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"spring-test.xml\");\n\t\tSystem.out.println(context.getBean(\"test\"));\n\t\tSystem.out.println(context.getBean(MyConfig.class));\n\t\t//context.close();\n\t}",
"public interface MyApplicationContextAware {\n /**\n * 20:18 2020/11/15\n * @param \n * @return\n */\n void setAapplicationContext(MyApplicationContext application);\n}",
"public static void main( String[] args )\n {\n \tApplicationContext context=new FileSystemXmlApplicationContext(\"beans.xml\");\n \tTraveller traveller=(Traveller)context.getBean(\"traveller\"); //SPRING CONTAINER\n \tSystem.out.println(traveller.getTravelDetails());\n\n }",
"public void configureContextInitializationComponents(AppConfiguration appConfig,\n\t SpringBeansXMLBuilder builder);",
"public RelativeResourceHandlerConfig getRelativeResourceHandlerConfig() throws FacesException\n {\n RelativeResourceHandlerConfig config = new RelativeResourceHandlerConfig();\n\n // parse the standard config file\n RelativeResourceHandlerConfigParser configParser = new RelativeResourceHandlerConfigParser();\n try\n {\n configParser.parseClasspathResource(RelativeResourceHandler.CONFIG_FILE, config);\n }\n catch (Exception e)\n {\n throw new FacesException(\"Could not parse config file \" + RelativeResourceHandler.CONFIG_FILE, e);\n }\n\n return config;\n }",
"public static ApplicationContext getInstance() {\r\n\t\tsynchronized (SpringApplicationContextProvider.class) {\r\n\t\tif (applicationContext == null) {\r\n\t\t\tapplicationContext = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\tnew String[] { \"META-INF/app-context.xml\" });\r\n\t\t}\r\n\t\t}\r\n\t\treturn (ApplicationContext) applicationContext;\r\n\t}",
"public ConfigContext getConfigContext() {\n\n return (ConfigContext)getSource();\n\n }",
"public static XMLConfiguration getXMLConfiguration() throws ConfigurationException, IOException {\n\t\treturn getXMLConfiguration(DEFAULT_CONFIG_NAME);\n\t}",
"ApplicationContext getAppCtx();",
"public static Configuration get(String fileName) {\n String confLocation = PathUtils.getProjectPath();\n try {\n URL url;\n File file = new File(confLocation, fileName);\n if (confLocation == null || !file.exists()) {\n LOG.info(\"Looking for {} in classpath\", fileName);\n url = ApplicationProperties.class.getClassLoader().getResource(fileName);\n if (url == null) {\n LOG.info(\"Looking for /{} in classpath\", fileName);\n url = ApplicationProperties.class.getClassLoader().getResource(\"/\" + fileName);\n }\n } else {\n url = file.toURI().toURL();\n }\n LOG.info(\"Loading {} from {}\", fileName, url);\n Parameters params = new Parameters();\n FileBasedConfigurationBuilder<FileBasedConfiguration> builder =\n new FileBasedConfigurationBuilder<FileBasedConfiguration>(PropertiesConfiguration.class)\n .configure(params.properties()\n .setURL(url));\n FileBasedConfiguration configuration = builder.getConfiguration();\n logConfiguration(configuration);\n return configuration;\n } catch (Exception e) {\n throw new HiveHookException(\"Failed to load application properties\", e);\n }\n }",
"public TestGenericWebXmlContextLoader(String warRootDir, boolean isClasspathRelative) {\r\n\t\tsuper(warRootDir, isClasspathRelative);\r\n\t}",
"public static ApplicationContext loadCfg(URL springCfgUrl) throws GridException {\n GenericApplicationContext springCtx;\n\n try {\n springCtx = new GenericApplicationContext();\n\n new XmlBeanDefinitionReader(springCtx).loadBeanDefinitions(new UrlResource(springCfgUrl));\n\n springCtx.refresh();\n }\n catch (BeansException e) {\n throw new GridException(\"Failed to instantiate Spring XML application context [springUrl=\" +\n springCfgUrl + \", err=\" + e.getMessage() + ']', e);\n }\n\n return springCtx;\n }",
"@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn SpringConfigDslEditPlugin.INSTANCE;\r\n\t}",
"public static void main(String[] args) {\n\n ApplicationContext context = new ClassPathXmlApplicationContext(new String[]{\"applicationContext.xml\",\"application.xml\"});\n\n Student student = (Student) context.getBean(\"student\");\n\n\n// ClassPathResource resource = new ClassPathResource(\"applicationContext.xml\");\n// XmlBeanFactory beanFactory = new XmlBeanFactory(resource);\n// Student student = (Student) beanFactory.getBean(\"student\");\n//\n// //资源\n// ClassPathResource resource = new ClassPathResource(\"applicationContext.xml\");\n// //容器\n// DefaultListableBeanFactory factory = new DefaultListableBeanFactory();\n// //BeanDefinition读取器,通过回调配置给容器\n// XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);\n// //读取配置\n// reader.loadBeanDefinitions(resource);\n\n// Student student = (Student) factory.getBean(\"student\");\n// System.out.println(student);\n }",
"List<String> getApplicationContextResourcePaths();",
"public void loadConfig(XMLElement xml) {\r\n\r\n }",
"private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public org.apache.axis2.context.xsd.ConfigurationContext getRootContext(){\n return localRootContext;\n }",
"public static void main(String args[]) {\n\r\n\t\r\n\tApplicationContext ac = new ClassPathXmlApplicationContext(\"com/springcore/annotations/anootationconfig.xml\");\r\n\t \r\n Employee emp = ac.getBean(\"myemployee\", Employee.class);\r\n System.out.println(emp.toString());\r\n\t}",
"public static void main(String[] args)\n {\n ApplicationContext context=new ClassPathXmlApplicationContext(\"beans.xml\");\n Movie movie=context.getBean(\"movie\",Movie.class);\n movie.displayActor();\n\n // intialize XmlBeanFactory with beanx.xml\n BeanFactory beanFactory=new XmlBeanFactory(new ClassPathResource(\"beans.xml\"));\n Movie movie1=(Movie) beanFactory.getBean(\"movie\");\n movie1.displayActor();\n // intialize BeanDefinitionRegistry and BeanDefinitionReader with beanx.xml\n DefaultListableBeanFactory factory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry registry=new GenericApplicationContext(factory);\n BeanDefinitionReader reader = new XmlBeanDefinitionReader(registry);\n reader.loadBeanDefinitions(\"beans.xml\");\n Movie picture1 = (Movie) factory.getBean(\"movie\");\n picture1.displayActor();\n\n\n }",
"public void loadFromXml(File configFile) throws XMLQroxyConfigException {\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n saxParser.parse(configFile, this);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new XMLQroxyConfigException(\"Error while parsing the config file: \" + e.getMessage(), e);\n }\n }",
"@StartStep(localName=\"create-config-document-context\", after={\"xml-factory-lifecycle\"})\n public static void startCreateConfigDocumentContext() \n throws LifecycleException \n {\n Lifecycle.configDocumentContext = createConfigurationContext(XCHAIN_CONFIG);\n }",
"public LoggingXmlConfiguration(ConfigurationSource configSource) {\n super(configSource);\n }",
"public static void main(String[] args) {\n \n ApplicationContext context =\n new ClassPathXmlApplicationContext(\"spring-beans.xml\");\n \n \n Dependant dependant = context.getBean(\"dependant\", Dependant.class);\n \n }",
"public ApplicationContext getApplicationContext() {\n return applicationContext;\n }",
"public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }",
"public XMLConfiguration getConfigFile() {\n\t\tif (simulationConfig == null) {\n\t\t\tsimulationConfig = new XMLConfiguration();\n\t\t\ttry {\n\t\t\t\tsimulationConfig.load(getFile(CONFIG_FILE) );\t\t\t\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\"Error reading the simulation config file\", e);\n\t\t\t}\n\t\t}\n\t\treturn simulationConfig;\n\t}",
"@Override\n protected void configure() {\n bind(ApplicationContext.class).toInstance(ctxt);\n }",
"private static synchronized void changeXML(Path filepath, File conf, String name){\n try {\n // Строим объектную модель исходного XML файла\n DocumentBuilder db = DocumentBuilderFactory.newInstance()\n .newDocumentBuilder();\n Document doc = db.parse(conf);\n doc.normalize();\n \n NodeList appenders = doc.getElementsByTagName(\"appender\");\n for (int i = 0; i < appenders.getLength(); i++) {\n Node appender = appenders.item(i);\n //if this node is suitable appender, then change TextContext 'file'\n if (isMyRollingFileAppender(appender, name)) {\n NodeList childNodes = appender.getChildNodes();\n for (int j = 0; j < childNodes.getLength(); j++) {\n Node nextChild = childNodes.item(j);\n if (nextChild.getNodeName().equals(\"file\")) {\n nextChild.setTextContent(filepath.toString());\n break;\n }\n }\n break;\n }\n }\n // Write changes to XML-file\n Transformer transformer = TransformerFactory.newInstance()\n .newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(conf);\n transformer.transform(source, result);\n \n } catch (SAXException | IOException | ParserConfigurationException\n | TransformerConfigurationException ex) {\n System.out.println(\"Ошибка ввода-вывода при изменении XML-файла: \"+ex.getMessage());\n } catch (TransformerException ex) {\n System.out.println(\"Ошибка в траносформации XML \"+ex.getMessage());\n }\n }",
"public static InputStream getRelativeFileStream(String confPath) {\r\n\t\tInputStream in = ClientConfiguration.class.getClassLoader().getResourceAsStream(confPath);\r\n\t\t\r\n\t\treturn in;\r\n\t}",
"public static ApplicationContext getApplicationContext() {\n return appContext;\n }",
"@Override\r\n public File getProfileConfigurationFile() {\n return new File(getConfigurablePath(ConfigurablePathId.PROFILE_ROOT), MAIN_CONFIGURATION_FILENAME);\r\n }",
"public SpringJmsProviderMain(String appContextClasspathResource, String connectionFactoryBean, String destinationBean, String jmsTemplateBean) {\r\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(appContextClasspathResource);\r\n\t\tthis.jmsTemplate = (JmsTemplate) context.getBean(jmsTemplateBean);\r\n\t}",
"public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }",
"private CommonConfigBean(){\n\t\tsuper();\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\tFile fXmlFile = new File(PathTool.getAbsolute(RELATIVE_FILE_PATH));\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\t\t\t\n\t\t\t//optional, but recommended\n\t\t\t//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tSystem.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n\t NodeList nList = doc.getElementsByTagName(\"param\");\n\t params = new HashMap<>();\n\t for (int temp = 0; temp < nList.getLength(); temp++) {\n\t Node nodo = nList.item(temp);\n\t System.out.println(\"Elemento:\" + nodo.getNodeName());\n\t if (nodo.getNodeType() == Node.ELEMENT_NODE) {\n\t Element element = (Element) nodo;\n\t params.put(element.getAttribute(\"name\"), element.getAttribute(\"value\"));\n\t }\n\t }\n\t\t\t\n\t\t\t\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t}",
"@Before\n public void init() throws IOException {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"config/applicationContext.xml\");\n //this.test();\n bookMapper = context.getBean(BookMapper.class);\n }",
"public void setRootContext(org.apache.axis2.context.xsd.ConfigurationContext param){\n localRootContextTracker = true;\n \n this.localRootContext=param;\n \n\n }",
"protected String provideConfigFile(Properties rootProps,\n Properties configProps) {\n String configurationFile = getProperty(rootProps, configProps,\n CONFIG_FILE);\n if (configurationFile == null) {\n configurationFile = STANDARD_CONFIG_LOCATION;\n deployConfigIfNotexisting();\n }\n return configurationFile;\n }",
"protected String getConfigurationFileName() \n\t{\n\t\treturn configurationFileName;\n\t}",
"String getContextPath();",
"String getContextPath();",
"String getContextPath();",
"public LoggerContext getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation) {\n/* 39 */ return context;\n/* */ }",
"public void setConfigurationContext(org.apache.axis2.context.xsd.ConfigurationContext param){\n localConfigurationContextTracker = true;\n \n this.localConfigurationContext=param;\n \n\n }",
"private SpringApplicationContext() {}",
"public static Context getApplicationContext() { return mApplicationContext; }",
"public FileConfiguration loadConfiguration(File file);",
"@Override\n\tpublic void configure(Context arg0) {\n\n\t}",
"public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}",
"public static void main(String[] args) {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"classpath:data.xml\");\n\n Employee emp1 = context.getBean(\"employee1\", Employee.class);\n\n System.out.println(\"Employee Details \" + emp1);\n\n }",
"@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}",
"private void init(File contextXml) {\n //this.contextXml = contextXml;\n try {\n getContext();\n } catch (ConfigurationException e) {\n LOGGER.log(Level.INFO, null, e);\n }\n if (contextDataObject == null) {\n try {\n contextDataObject = DataObject.find(FileUtil.toFileObject(FileUtil.normalizeFile(contextXml)));\n contextDataObject.addPropertyChangeListener(this);\n } catch(DataObjectNotFoundException donfe) {\n LOGGER.log(Level.FINE, null, donfe);\n }\n }\n }",
"public static void main(String[] args) {\n\t\t\tResource r = new ClassPathResource(\"resources/spring.xml\");\n\t\t\tBeanFactory factory = new XmlBeanFactory(r);\n\t\t//ApplicationContext factory1 = new ClassPathXmlApplicationContext(\"resources/spring.xml\");\n\t\t\n\t\t\n\t\t\t//Test t1 = (Test)factory1.getBean(\"t\");\n\t\t\t//Test t2 = (Test)factory1.getBean(\"t\");\n\t\t\t//t1.hello();\n\t\t\t//t2.hello();\n\t\t\t//System.out.println(t1==t2);\n\t\t\n\t\tfactory.getBean(\"t\");\n\t}",
"public static void main(String[] args) {\nApplicationContext context=new ClassPathXmlApplicationContext(\"spring.xml\");\r\n\t\r\n\t\r\n\r\n\t\r\n\t\r\n\tCoach coach2=(Coach)context.getBean(\"myCCoach\");\r\n\r\n\t\r\n\tSystem.out.println(coach2);\r\n\t((ClassPathXmlApplicationContext)context).close();\r\n\t\r\n\t\r\n\tSystem.out.println(coach2.getDailyFortune());\r\n\t\r\n\t}",
"public synchronized void updateConfiguration(String configureFilePath) throws ParserConfigurationException, SAXException, IOException {\n\t\t// no need to consider concurrent problem when update configuration xml file.\n\t\t// if the last mConfiguration instance was being read when we change its reference to\n\t\t// a new instance, the last operation will continue to use the old instance.\n\t\tmConfiguration = parseXmlConfigFile(configureFilePath);\n\t}",
"@Test\n void configuration_mixedConfiguration() {\n ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfigThree.class);\n\n MessageRenderer messageRenderer = ctx.getBean(\"messageRenderer\", MessageRenderer.class);\n messageRenderer.render();\n }",
"@Override\n\tpublic void onApplicationEvent(ContextRefreshedEvent event) {\n\t\tif (event.getApplicationContext().getParent() == null) {\n\t\t\tconfigure();\n\t\t}\n\t}",
"private boolean springConfigExist(WebModule webModule) {\n FileObject dd = webModule.getDeploymentDescriptor();\n if (dd == null) {\n return false;\n }\n try {\n\n WebApp webApp = DDProvider.getDefault().getDDRoot(dd);\n InitParam[] parameters = webApp.getContextParam();\n for (InitParam param : parameters) {\n if (param.getParamName().startsWith(CONTEXT_CONFIG_LOCATION)) {\n return true;\n }\n }\n } catch (IOException e) {\n Logger.getLogger(\"global\").log(Level.INFO, null, e);\n }\n return false;\n }",
"protected static File getInternalConfigurationFile(String pathToApplication) {\r\n\t\t\r\n\t\tString configPath = PhotoConstants.PROPERTIES_PATH;\r\n\t\tString configFileName = PhotoConstants.SETUP_FILE;\r\n\t\t\r\n\t\t// read configuration\r\n\t\tFile configDir = new File(pathToApplication, configPath);\r\n\t\tFile configFile = new File (configDir, configFileName);\r\n\t\treturn configFile;\r\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext actx = new FileSystemXmlApplicationContext(\"/src/main/java/com/baby/springStudy/echoMsgConfig.xml\");\n\t\tEchoMsg echoMsg = (EchoMsg)actx.getBean(\"EchoMsg\");\n\t\tSystem.out.println(echoMsg.sayHello());\n\t}",
"public void initialJobContext(String configFileName) throws JobExecutionException;",
"@Before\n public void setUp() {\n this.context = new AnnotationConfigApplicationContext(\"com.fxyh.spring.config\");\n// this.context = new ClassPathXmlApplicationContext(\"classpath*:applicationContext-bean.xml\");\n this.user = this.context.getBean(User.class);\n this.user2 = this.context.getBean(User.class);\n this.department = this.context.getBean(Department.class);\n this.userService = (UserService) this.context.getBean(\"userService\");\n }",
"@Override\n public void configure(Context context) {\n this.context = context;\n this.projectConfigure = new ProjectConfigure(context.getString(\"project_conf_path\", \"\"));\n //初始化变量\n ProjectConfigure.BaseConfigure baseSinkConf = projectConfigure.checkUpdate();\n copyBaseSinkConf(baseSinkConf);\n\n Preconditions.checkArgument(this.batchSize > 0, \"batchSize must be greater than 0\");\n\n this.filePath = (String) Preconditions.checkNotNull((Object)context.getString(\"hdfs.path\"), \"hdfs.path is required\");\n if (this.filePath.endsWith(DIRECTORY_DELIMITER)) {\n this.filePath += DIRECTORY_DELIMITER;\n }\n\n if (this.sinkCounter == null) {\n this.sinkCounter = new SinkCounter(this.getName());\n }\n }",
"public static void main(String args[]) {\r\n\t\tApplicationContext appContext=new ClassPathXmlApplicationContext(\"beans.xml\");\r\n\t\tEmployeeBean emp1=(EmployeeBean) appContext.getBean(\"Employee\");\r\n\t\tSystem.out.println(emp1.getName());\r\n\t}",
"@Test\n public void testLoadConfigurationFromFileName()\n throws ConfigurationException\n {\n factory = new DefaultConfigurationBuilder(TEST_FILE.getAbsolutePath());\n checkConfiguration();\n }",
"public static void main(String[] args) {\n\t\tResource resource = new ClassPathResource(\"config/p51.xml\");\n\t\tBeanFactory factory = new XmlBeanFactory(resource);\n\t\t\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"config/p51.xml\");\n\t\t//context.getBean()....\n\t\t\n\t\t\n\t\tGreetingService greetingService =(GreetingService)factory.getBean(\"greeting\");\n\t\tSystem.out.println(greetingService.sayHello(\"아무거나 \"));\n\t\tGreetingService greetingService2 =(GreetingService)factory.getBean(\"greeting2\");\n\t\tSystem.out.println(greetingService2.sayHello(\"아무거나 \"));\n\n\t}",
"public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\n//\n// SpeakerService service = context.getBean(\"speakerService\", SpeakerService.class);\n//\n// System.out.println(service);\n//\n// System.out.println(service.findAll().get(0).getFirstName());\n//\n /*\n * In case of Singleton\n * This will not instantiate new object of SpeakerService because it is singleton\n * Same reference will be returned\n * */\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n\n // XML Configuration\n// ApplicationContext context = new ClassPathXmlApplicationContext(\"ApplicationContext.xml\");\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n }",
"@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n if(event.getApplicationContext().getDisplayName().equals(\"Root WebApplicationContext\")){\n System.out.println(\"避免spring-servlet.xml跟appicationContext.xml两次加载\");\n }\n if(event.getApplicationContext().getParent()==null){\n System.out.println(\"执行context上下文初始化\");\n ApplicationContextUtil.instance.init(event.getApplicationContext());\n }\n }"
] | [
"0.6533563",
"0.62009335",
"0.5992381",
"0.59843564",
"0.5965596",
"0.5901017",
"0.5719829",
"0.5707727",
"0.5705204",
"0.5631894",
"0.5624678",
"0.559824",
"0.55736494",
"0.55714047",
"0.5552406",
"0.5549763",
"0.55425906",
"0.5516014",
"0.5514452",
"0.55131805",
"0.5465933",
"0.54523534",
"0.54245335",
"0.5417227",
"0.5405997",
"0.5404426",
"0.53757846",
"0.5357725",
"0.5354809",
"0.53480625",
"0.5343983",
"0.5339844",
"0.5330714",
"0.5330584",
"0.5315581",
"0.5310553",
"0.5303786",
"0.52900684",
"0.5286755",
"0.5282827",
"0.52808726",
"0.5277306",
"0.5273491",
"0.5246526",
"0.52352107",
"0.5233885",
"0.520601",
"0.5191303",
"0.51662105",
"0.5164044",
"0.5162687",
"0.51621556",
"0.5146898",
"0.51449174",
"0.51160836",
"0.51099575",
"0.5105278",
"0.50992584",
"0.5088829",
"0.5088756",
"0.5080446",
"0.5073027",
"0.50691944",
"0.5068502",
"0.50677764",
"0.5063943",
"0.505958",
"0.50473547",
"0.504358",
"0.50433517",
"0.5041691",
"0.5040391",
"0.5040391",
"0.5040391",
"0.5036841",
"0.5027698",
"0.5027252",
"0.5026856",
"0.5018502",
"0.5017627",
"0.50136733",
"0.501277",
"0.50041753",
"0.50041753",
"0.49804795",
"0.49770936",
"0.49728888",
"0.49664435",
"0.49603721",
"0.49592704",
"0.4957186",
"0.49516883",
"0.4935532",
"0.49332362",
"0.49330124",
"0.4919244",
"0.4905819",
"0.49056512",
"0.49047714",
"0.49039754",
"0.48895988"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_market__cap__alert, container, false);
coins_spin = (Spinner) view.findViewById(R.id.market_cap_coins_spin);
curr_price = (TextView) view.findViewById(R.id.set_volume_price_text);
coins_spin.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
final String coins = coins_spin.getSelectedItem().toString().trim();
//connection
String URL = "https://cryptopricetracker.herokuapp.com/getCoinData";
JSONObject jsonBody2 = new JSONObject();
try {
jsonBody2.put("coin",coins);
} catch (JSONException e) {
e.printStackTrace();
}
final String mRequestBody2 = jsonBody2.toString();
final StringRequest jsObjRequest2 = new StringRequest(Request.Method.POST, URL, new Response.Listener<String>() {
@Override
public void onResponse(String response)
{
try
{
Log.i("response",response);
JSONObject jsonObject=new JSONObject(response);
final int Success = jsonObject.getInt("Success");
if(Success==1)
{
JSONObject data=jsonObject.getJSONObject("data");
curr_price.setText(""+data.getDouble("market_cap_usd"));
//Toast.makeText(getContext(), "Successfully Set Alert", Toast.LENGTH_SHORT).show();
}
else
{
Toast.makeText(getContext(), "Something Wrong Happens", Toast.LENGTH_SHORT).show();
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Log.i("error",new String(error.networkResponse.data));
}
})
{
@Override
public String getBodyContentType() {
return "application/json; charset=utf-8";
}
@Override
public byte[] getBody() throws AuthFailureError {
try {
return mRequestBody2 == null ? null : mRequestBody2.getBytes("utf-8");
} catch (UnsupportedEncodingException uee) {
VolleyLog.wtf("Unsupported Encoding while trying to get the bytes of %s using %s", mRequestBody2, "utf-8");
return null;
}
}
@Override
public Map<String, String> getHeaders() throws AuthFailureError {
HashMap<String, String> params = new HashMap<String, String>();
params.put("Content-Type","application/json");
return params;
}
};
jsObjRequest2.setRetryPolicy(new DefaultRetryPolicy(30000,DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
MySingleton.getInstance(getActivity()).addToRequestQueue(jsObjRequest2);
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
});
curr_price = (TextView) view.findViewById(R.id.set_market_cap_price_text);
dec_value =(EditText) view.findViewById(R.id.market_cap_dec);
inc_value = (EditText) view.findViewById(R.id.market_cap_inc);
btnsave =(Button) view.findViewById(R.id.market_cap_alert_save_btn);
btnsave.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
do_market_cap_save_alert();
}
});
btncancel =(Button) view.findViewById(R.id.market_cap_alert_cancel_btn);
btncancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
do_market_cap_cancel_alert();
}
});
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
Initialize the gyro. Calibrate the gyro by running for a number of samples and computing the center value. Then use the center value as the Accumulator center value for subsequent measurements. It's important to make sure that the robot is not moving while the centering calculations are in progress, this is typically done when the robot is first turned on while it's sitting at rest before the competition starts. | public void initGyro() {
result = new AccumulatorResult();
if (m_analog1 == null || m_analog2 == null) {
System.out.println("Null m_analog");
}
m_voltsPerDegreePerSecond = kDefaultVoltsPerDegreePerSecond;
m_analog1.setAverageBits(kAverageBits);
m_analog1.setOversampleBits(kOversampleBits);
m_analog2.setAverageBits(kAverageBits);
m_analog2.setOversampleBits(kOversampleBits);
double sampleRate = kSamplesPerSecond
* (1 << (kAverageBits + kOversampleBits));
AnalogInput.setGlobalSampleRate(sampleRate);
Timer.delay(1.0);
m_analog1.initAccumulator();
m_analog1.resetAccumulator();
m_analog2.initAccumulator();
m_analog2.resetAccumulator();
Timer.delay(kCalibrationSampleTime);
for(int i =0 ; i < mAnalogs.length; i++)
{
mAnalogs[i].getAccumulatorOutput(result);
m_centers[i]= (int) ((double) result.value / (double) result.count + .5);
m_offsets[i] = ((double) result.value / (double) result.count)
- m_centers[i];
mAnalogs[i].setAccumulatorCenter(m_centers[i]);
mAnalogs[i].resetAccumulator();
//LiveWindow.addSensor("Gyro", m_analog.getChannel(), this);
}
if(mMode == TWO_CANCEL) setDeadband(kCancelDeadband);
else if(mMode == TWO_DEADBAND) {
setDeadband1(0.0);
mAccumulatedAngle = 0;
}
mOffset = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void initialize() {\n \tRobot.gyroSubsystem.reset();\n \tstartAngle = Robot.gyroSubsystem.gyroPosition();\n \ttargetAngle = startAngle + goal;\n }",
"public Gyro (){\n try {\n /* Communicate w/navX MXP via the MXP SPI Bus. */\n /* Alternatively: I2C.Port.kMXP, SerialPort.Port.kMXP or SerialPort.Port.kUSB */\n /* See http://navx-mxp.kauailabs.com/guidance/selecting-an-interface/ for details. */\n gyro_board = new AHRS(SPI.Port.kMXP);\n\n last_world_linear_accel_x = gyro_board.getWorldLinearAccelX();\n last_world_linear_accel_y = gyro_board.getWorldLinearAccelY();\n last_check_time = Timer.getFPGATimestamp();\n\n initial_offset = gyro_board.getYaw();\n } catch (RuntimeException ex ) {\n DriverStation.reportError(\"Error instantiating navX MXP: \" + ex.getMessage(), true);\n }\n\n\n }",
"public void calibrateGyro() {\n gyro.SetYaw(0);\n }",
"void initialize() {\n setClockSource(MPU6050_CLOCK_PLL_INTERNAL);\n setFullScaleGyroRange(MPU6050_GYRO_FS_250);\n setFullScaleAccelRange(MPU6050_ACCEL_FS_2);\n }",
"public interface Gyro {\n /**\n * Get the amount of time the gyro spends calibrating\n *\n * @return Length of gyro calibration period\n */\n double getCalibrationPeriod();\n\n /**\n * Set the amount of time the gyro will spend calibrating\n *\n * @param calibrationPeriod Desired length of gyro calibration period\n */\n void setCalibrationPeriod(double calibrationPeriod);\n\n /**\n * Reset calibration and angle monitoring\n */\n void fullReset();\n\n /**\n * Starts calibrating the gyro. Resets the calibration value and begins\n * sampling gyro values to get the average 0 value. Sample time determined\n * by calibrationTicks\n */\n void startCalibration();\n\n /**\n * Finishes calibration. Stops calibrating and sets the calibration value.\n */\n void finishCalibration();\n\n /**\n * Gets the zero point for rate measurement\n *\n * @return The offset found by calibration\n */\n double getCalibrationOffset();\n\n /**\n * Checks if the gyro is currently calibrating.\n * If it is, measured rate and angle values are not guaranteed to be accurate.\n *\n * @return Whether the gyro is currently calibrating\n */\n boolean isCalibrating();\n\n /**\n * Gets the rate of yaw change from the gyro\n *\n * @return The rate of yaw change in degrees per second, positive is clockwise\n */\n double getRate();\n\n /**\n * Gets the yaw of the gyro\n *\n * @return The yaw of the gyro in degrees\n */\n double getAngle();\n\n /**\n * Resets the current angle of the gyro to zero\n */\n void resetAngle();\n}",
"public void updateGyro() {\n\t\tangleToForward = gyro.getAngle();\n\t\tif (angleToForward >= 360) {\n\t\t\tangleToForward -= 360;\n\t\t} else if (angleToForward < 0) {\n\t\t\tangleToForward += 360;\n\t\t}\n\n\t}",
"protected void initialize() {\n \tDrivetrain.gyro.reset();\n }",
"@Override public void init_loop() {\n if (gyro.isCalibrated()) {\n telemetry.addData(\"Gyro\", \"Calibrated\");\n }\n\n /** Place any code that should repeatedly run after INIT is pressed but before the op mode starts here. **/\n }",
"public void resetGyro(){\n //TODO:Reset the gyro(zero it)\n }",
"@Override\n public void robotInit() {\n\n // Motor controllers\n leftMotor = new CANSparkMax(1, MotorType.kBrushless);\n leftMotor.setInverted(false);\n leftMotor.setIdleMode(IdleMode.kBrake);\n\n CANSparkMax leftSlave1 = new CANSparkMax(2, MotorType.kBrushless);\n leftSlave1.setInverted(false);\n leftSlave1.setIdleMode(IdleMode.kBrake);\n leftSlave1.follow(leftMotor);\n\n CANSparkMax leftSlave2 = new CANSparkMax(3, MotorType.kBrushless);\n leftSlave2.setInverted(false);\n leftSlave2.setIdleMode(IdleMode.kBrake);\n leftSlave2.follow(leftMotor);\n\n rightMotor = new CANSparkMax(4, MotorType.kBrushless);\n rightMotor.setInverted(false);\n rightMotor.setIdleMode(IdleMode.kBrake);\n\n CANSparkMax rightSlave1 = new CANSparkMax(5, MotorType.kBrushless);\n rightSlave1.setInverted(false);\n rightSlave1.setIdleMode(IdleMode.kBrake);\n rightSlave1.follow(leftMotor);\n\n CANSparkMax rightSlave2 = new CANSparkMax(6, MotorType.kBrushless);\n rightSlave2.setInverted(false);\n rightSlave2.setIdleMode(IdleMode.kBrake);\n rightSlave2.follow(leftMotor);\n\n // Encoders\n leftEncoder = leftMotor.getEncoder();\n rightEncoder = rightMotor.getEncoder();\n\n // Gyro\n gyro = new ADXRS450_Gyro();\n\n }",
"protected void initialize() {\n if ( Math.abs( m_autorotateangle - Robot.drive.gyroGetAngle()) <= 45) {\n rampthreshold = 35;\n } else { // > 45 degrees}\n rampthreshold = Math.abs( m_autorotateangle - Robot.drive.gyroGetAngle()) / 2.5;\n }\n\n \tsetTimeout(m_timeout);\n\n }",
"private void initSensorManager() {\n\t\ttry {\n\t\t\tSensorManager sensorManage = (SensorManager) getSystemService(Context.SENSOR_SERVICE);\n\t\t\tList<Sensor> mySensors = sensorManage\n\t\t\t\t\t.getSensorList(Sensor.TYPE_ACCELEROMETER);\n\t\t\tmAccel = 0.00f;\n\t\t\tmAccelCurrent = SensorManager.GRAVITY_EARTH;\n\t\t\tmAccelLast = SensorManager.GRAVITY_EARTH;\n\t\t\tsensorManage.registerListener(new SensorEventListener() {\n\t\t\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n\t\t\t\t}\n\n\t\t\t\t@SuppressLint(\"FloatMath\")\n\t\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\n\t\t\t\t\tfloat x = event.values[0];// Get X-Coordinator\n\n\t\t\t\t\tfloat y = event.values[1];// Get Y-Coordinator\n\n\t\t\t\t\tfloat z = event.values[2];// Get Z-Coordinator\n\n\t\t\t\t\tmAccelLast = mAccelCurrent;\n\t\t\t\t\tmAccelCurrent = (float) Math\n\t\t\t\t\t\t\t.sqrt((double) (x * x + y * y + z * z));\n\t\t\t\t\tfloat delta = mAccelCurrent - mAccelLast;\n\t\t\t\t\tmAccel = mAccel * 0.9f + delta; // perform low-cut filter\n\n\t\t\t\t\tif (SHAKING_DELTA > mAccel\n\t\t\t\t\t\t\t&& CommonValues.getInstance().CameraMessage != CameraMessageStatus.Focused) {\n\t\t\t\t\t\t// BY SAM for start autofocusing\n\t\t\t\t\t\tif (!lock_autofocus) {\n\t\t\t\t\t\t\tif (autoFocusCounter > AUTO_FOCUS_START_INTERVAL\n\t\t\t\t\t\t\t\t\t&& CommonValues.getInstance().CameraMessage == CameraMessageStatus.Shacked) {\n//\t\t\t\t\t\t\t\tCameraManager.get().requestAutoFocus(handler,\n//\t\t\t\t\t\t\t\t\t\tR.id.auto_focus);\n\t\t\t\t\t\t\t\tautoFocusCounter = 0;\n\t\t\t\t\t\t\t\tCommonValues.getInstance().CameraMessage = CameraMessageStatus.Stopped;\n\t\t\t\t\t\t\t} else if (autoFocusCounter > AUTO_FOCUS_START_INTERVAL) {\n\t\t\t\t\t\t\t\tautoFocusCounter = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!lock_autofocus\n\t\t\t\t\t\t\t\t&& Math.abs(z - old_z) > SHAKING_Z_DELTA) {\n\n\t\t\t\t\t\t\tstatusView.setText(getString(R.string.set_focus));\n//\t\t\t\t\t\t\tCameraManager.get().requestAutoFocus(handler,\n//\t\t\t\t\t\t\t\t\tR.id.auto_focus);\n\t\t\t\t\t\t\tautoFocusCounter = 0;\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!lock_autofocus) {\n\n\t\t\t\t\t\t\t\tstatusView\n\t\t\t\t\t\t\t\t\t\t.setText(getString(R.string.brcd_img_middle));\n\t\t\t\t\t\t\t\tautoFocusCounter++;\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tstatusView\n\t\t\t\t\t\t\t\t\t\t.setText(getString(R.string.brcd_press_focus));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (mAccel > SHAKING_DELTA)// Shaking\n\t\t\t\t\t{\n\n\t\t\t\t\t\tstatusView.setText(getString(R.string.phone_silent));\n\t\t\t\t\t\tCommonValues.getInstance().CameraMessage = CameraMessageStatus.Shacked;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tstatusView.setText(getString(R.string.set_focus));\n\t\t\t\t\t\tCommonValues.getInstance().CameraMessage = CameraMessageStatus.Stopped;\n\n\t\t\t\t\t}\n\t\t\t\t\told_z = z;\n\n\t\t\t\t}\n\t\t\t}, mySensors.get(0), SensorManager.SENSOR_DELAY_NORMAL);\n\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"Unable to detect SensorManager. \",\n\t\t\t\t\t\"Error data \" + e.toString());\n\t\t}\n\t}",
"public void initialize() {\n\n Robot.driveSubsystem.resetGyro();\n\n }",
"@Override public void run()\n {\n robot.angles = robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n robot.gravity = robot.imu.getGravity();\n }",
"@Override\n public void runOpMode() {\n androidGyroscope = new AndroidGyroscope();\n\n // Put initialization blocks here.\n if (androidGyroscope.isAvailable()) {\n telemetry.addData(\"Status\", \"GyroAvailable\");\n }\n waitForStart();\n if (opModeIsActive()) {\n // Put run blocks here.\n androidGyroscope.startListening();\n androidGyroscope.setAngleUnit(AngleUnit.DEGREES);\n while (opModeIsActive()) {\n telemetry.addData(\"X Axis\", androidGyroscope.getX());\n telemetry.update();\n }\n }\n }",
"private void CalibrateGyro() {\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu.initialize(parameters);\n while (!imu.isGyroCalibrated()){}\n }",
"public void initialize() {\n\t\tdrivetrain.resetGyro();\n\t\tdrivetrain.setAngleTarget(getTargetAngle());\n\t\tLog.debug(this.getClass().toString()+ \".initialize called drivetrain.setAngleTarget(\" + getTargetAngle() + \")\");\n\t\t\n\n\t}",
"@Override\n public void run() {\n angles = imu.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX);\n gravity = imu.getGravity();\n }",
"public Drive() {\r\n \tgyro.calibrate();\r\n \tgyro.reset();\r\n }",
"public double GyroPosition() {\n\t\tswitch (gyroToUse) {\n\t\tcase ANALOG:\n\t\t\tgyroAngle = gyro.getAngle();\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tgyroAngle = spi.getAngle();\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\tgyroAngle = imu.getAngleZ();\n\t\t\tbreak;\n\t\t}\n\n\t\tgyroAngle = gyroAngle % 360;\n\n\t\t// SmartDashboard.putNumber(\"gyroAngle\", gyroAngle);\n\t\treturn gyroAngle;\n\n\t}",
"public void resetGyro () {\n gyro.reset();\n }",
"public double getGyroInRad(){\n return 0.0;//TODO:Pull and return gyro in radians\n }",
"protected void execute() {\n \tSystem.out.println(\"Gyro: \" + Drivetrain.gyro.getAngle());\n\t\tif (degrees > 0) {\n\t\t\twhile (Drivetrain.gyro.getAngle() < degrees) {\n\t\t\t\tDrivetrain.frontRight.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, 0.25);\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\twhile (Drivetrain.gyro.getAngle() > degrees) {\n\t\t\t\tDrivetrain.frontRight.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, -0.25);\n\t\t\t}\n\t\t}\n }",
"public void init() {\n//\t\tint anglesToEncTicks = (int) ((90 - currentAngle) * encoderTicksPerRev);\n//\t\tarmMotor.setEncPosition(anglesToEncTicks);\n\t\twhile (armMotor.isFwdLimitSwitchClosed() != true) {\n\t\t\tarmMotor.set(.2);\n\t\t}\n\t\tSystem.out.println(\"Calibrated!\");\n\t\tarmMotor.setEncPosition(0);\n\t}",
"@Override\n public void start() {\n runtime.reset();\n\n while (mrGyro.isCalibrating()) { //Ensure calibration is complete (usually 2 seconds)\n }\n\n if(LEDState){\n BallSensorreader.write8(3, 0); //Set the mode of the color sensor using LEDState\n }\n else{\n BallSensorreader.write8(3, 1); //Set the mode of the color sensor using LEDState\n }\n //Active - For measuring reflected light. Cancels out ambient light\n //Passive - For measuring ambient light, eg. the FTC Color Beacon\n }",
"public void resetGyroAngle() {\n\t\tgyro.reset();\n\t}",
"public void zeroGyroscope() {\n mGyroOffset = getGyroscopeRotation(false);\n }",
"protected void initialize() {\n \t\n \n \t\n \tRobotMap.motorLeftTwo.setSelectedSensorPosition(0,0,0);\n\t\tRobotMap.motorRightTwo.setSelectedSensorPosition(0,0,0);\n \t\n \torientation.setSetPoint(desiredAngle);\n \tstartTime = Timer.getFPGATimestamp();\n }",
"public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER && event.sensor.getType() != Sensor.TYPE_GYROSCOPE)\n return;\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n sensorCount++;\n\n if (sensorFirstRead) {\n nanotime = System.nanoTime();\n sensorFirstRead = false;\n } else {\n\n if (sensorCount > 0 && sensorCount % 10 == 0) {\n differenceNanoTime = System.nanoTime() - nanotime;\n if (differenceNanoTime > sensorCounterIntervalDelay) {\n differenceSeconds = (double) differenceNanoTime / 1000000000f;\n\n sensorAverageCount = sensorCount / differenceSeconds;\n sensorAverageCountTextView.setText(String.format(\"Read/s: %.2f\", sensorAverageCount));\n\n if (sensorFirstAverageCycle || Math.abs(sensorAverageCount - accValuesLimit * 2) > accValuesLimit * 0.2) {\n if (sensorFirstAverageCycle)\n sensorFirstAverageCycle = false;\n\n accValuesLimit = (int) sensorAverageCount / 2;\n gyroValuesLimit = accValuesLimit / 2;\n sensorCountLimitTextView.setText(String.format(\"Sensor count limit: %d\", accValuesLimit));\n\n stats.get(\"accX\").setLimit(accValuesLimit);\n stats.get(\"accY\").setLimit(accValuesLimit);\n stats.get(\"accZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeX\").setLimit(accValuesLimit);\n stats.get(\"accDegreeY\").setLimit(accValuesLimit);\n stats.get(\"accTotalAcceleration\").setLimit(accValuesLimit);\n stats.put(\"gyroX\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroY\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroZ\", new StatisticList(gyroValuesLimit));\n }\n\n sensorCount = 0;\n nanotime = System.nanoTime();\n }\n }\n }\n }\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n\n mAccelerometerSensorX = event.values[0];\n mAccelerometerSensorY = event.values[1];\n mAccelerometerSensorZ = event.values[2];\n\n mAccelerometerTotalAcceleration = Math.sqrt(Math.pow(mAccelerometerSensorX, 2) + Math.pow(mAccelerometerSensorY, 2) + Math.pow(mAccelerometerSensorZ, 2));\n\n stats.get(\"accX\").addValue(mAccelerometerSensorX);\n stats.get(\"accY\").addValue(mAccelerometerSensorY);\n stats.get(\"accZ\").addValue(mAccelerometerSensorZ);\n stats.get(\"accTotalAcceleration\").addValue(mAccelerometerTotalAcceleration);\n\n tmp_y = stats.get(\"accY\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage(); // g\n tmp_x = stats.get(\"accX\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n tmp_z = stats.get(\"accZ\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n\n mRotationDegreeZ = Math.asin(tmp_x) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeZ))\n mRotationDegreeZ = stats.get(\"accDegreeZ\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeX = Math.asin(tmp_z) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeX))\n mRotationDegreeX = stats.get(\"accDegreeX\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeY = Math.asin(tmp_y) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeY))\n mRotationDegreeY = stats.get(\"accDegreeY\").getAverage() > 0 ? 90 : -90;\n\n stats.get(\"accDegreeZ\").addValue(mRotationDegreeZ);\n stats.get(\"accDegreeX\").addValue(mRotationDegreeX);\n stats.get(\"accDegreeY\").addValue(mRotationDegreeY);\n\n updateLog(Sensor.TYPE_ACCELEROMETER);\n }\n else\n if(event.sensor.getType()==Sensor.TYPE_GYROSCOPE)\n {\n mGyroX = event.values[0];\n mGyroY = event.values[1];\n mGyroZ = event.values[2];\n\n stats.get(\"gyroX\").addValue(mGyroX);\n stats.get(\"gyroY\").addValue(mGyroY);\n stats.get(\"gyroZ\").addValue(mGyroZ);\n\n updateLog(Sensor.TYPE_GYROSCOPE);\n }\n }",
"protected void initialize() {\n //drivetrain.initGyro();\n }",
"protected void initialize() {\n \t\n \ttimeStarted = System.currentTimeMillis();\n \tangle = driveTrain.gyro.getYaw();\n \tspeed = RobotMap.speedAtFullVoltage * power;\n \ttimeToGo = (long)(distance / speed) * 1000;\n }",
"public void testGyroAngleCalibratedParameters() {\n // Get calibrated parameters to make new Gyro with parameters\n final double calibratedOffset = m_tpcam.getGyro().getOffset();\n final int calibratedCenter = m_tpcam.getGyro().getCenter();\n m_tpcam.freeGyro();\n m_tpcam.setupGyroParam(calibratedCenter, calibratedOffset);\n Timer.delay(TiltPanCameraFixture.RESET_TIME);\n // Repeat tests\n testInitial(m_tpcam.getGyroParam());\n testDeviationOverTime(m_tpcam.getGyroParam());\n testGyroAngle(m_tpcam.getGyroParam());\n }",
"@Override\n public final void onSensorChanged(SensorEvent event) {\n linearAccelerations = event.values;\n linearAccelerations[0] = linearAccelerations[0]-xOff;\n linearAccelerations[1] = linearAccelerations[1]-yOff;\n linearAccelerations[2] = linearAccelerations[2]-zOff;\n xAccel = (float) round(linearAccelerations[0]/9.8, 3);\n yAccel = (float) round(linearAccelerations[1]/9.8, 3);\n zAccel = (float) round(linearAccelerations[2]/9.8, 3);\n// Log.i(appLabel, \"Acceleration: (\"+xAccel+\", \"+yAccel+\", \"+zAccel+\")\");\n xAccelSquared = (float) round(xAccel*xAccel, 3);\n yAccelSquared = (float) round(yAccel*yAccel, 3);\n zAccelSquared = (float) round(zAccel*zAccel, 3);\n //If they are negative accelerations, squaring them will have made them positive\n if (xAccel < 0) {\n xAccelSquared = xAccelSquared*-1;\n }\n if (yAccel < 0) {\n yAccelSquared = yAccelSquared*-1;\n }\n if (zAccel < 0) {\n zAccelSquared = zAccelSquared*-1;\n }\n xAccelOutput.setText(String.valueOf(xAccel));\n yAccelOutput.setText(String.valueOf(yAccel));\n zAccelOutput.setText(String.valueOf(zAccel));\n// Log.i(appLabel, \"Acceleration squares: \"+xAccelSquared+\", \"+yAccelSquared+\", \"+zAccelSquared);\n float accelsSum = xAccelSquared+yAccelSquared+zAccelSquared;\n double accelsRoot;\n if (accelsSum < 0) {\n accelsSum = accelsSum * -1;\n accelsRoot = Math.sqrt(accelsSum) * -1;\n } else {\n accelsRoot = Math.sqrt(accelsSum);\n }\n// Log.i(appLabel, \"Acceleration squares sum: \"+accelsSum);\n// Log.i(appLabel, \"Acceleration sqrt:\"+accelsRoot);\n cAccel = (float) round(accelsRoot, 3);\n// Log.i(appLabel, \"Net Acceleration: \"+cAccel);\n //Store the maximum acceleration\n if (cAccel > maxAccel) {\n maxAccel = cAccel;\n }\n accelOutput.setText(String.valueOf(cAccel));\n if (isRunning) {\n setSpeed();\n }\n if (speed >= 60) {\n timeToSixty = seconds;\n timeToSixtyOutput.setText(String.valueOf(timeToSixty));\n stopTimer();\n }\n }",
"private void remapGyroVector(){\n\t\tif (referenceGyroMatrix == null){\n\t\t\ttempGyroMatrix = new float[16];\n\t\t\treferenceGyroMatrix = new float[16];\n\t\t\tMatrix.setIdentityM(tempGyroMatrix, 0);\n\t\t\tSensorManager.remapCoordinateSystem(tempGyroMatrix, remapX, remapY, referenceGyroMatrix);\n\t\t\tSystem.arraycopy(referenceGyroMatrix, 0, tempGyroMatrix, 0, 16);\n\t\t\tthis.remappedGyro = new float[4];\n\t\t\tthis.tempGyroValues = new float[4];\n\t\t\t//need to transpose, since sensor manager and matrix use different notations\n\t\t\t//Matrix.transposeM(referenceGyroMatrix, 0, tempGyroMatrix, 0);\n\t\t}\n\t\t\n\t\tfloat[] gyroValues = getValues(VALUE_KEYS.GYRO.name());\n\t\t//System.arraycopy(gyroValues, 0, this.gyroValues, 0, 3);\n\t\tSystem.arraycopy(gyroValues, 0, this.tempGyroValues, 0, 3);\n\t\tMatrix.multiplyMV(this.remappedGyro, 0, referenceGyroMatrix, 0, this.tempGyroValues, 0);\n\t\tSystem.arraycopy(this.remappedGyro, 0, this.finalGyroValues, 0, 3);\n\t\t\n\t}",
"public void start() {\n sensorManager.registerListener(this, gyroscope, SENSOR_DELAY);\n sensorManager.registerListener(this, rotationVector, SENSOR_DELAY);\n //sender = new UDPSender();\n }",
"protected void initialize() {\n \t starttime = Timer.getFPGATimestamp();\n \tthis.startAngle = RobotMap.navx.getAngle();\n \tangleorientation.setSetPoint(RobotMap.navx.getAngle());\n \t\n \tRobotMap.motorLeftTwo.enableControl();\n \tRobotMap.motorRightTwo.enableControl();\n \tRobotMap.motorLeftTwo.enableControl();\n \tRobotMap.motorRightTwo.enableControl();\n \n //settting talon control mode\n \tRobotMap.motorLeftTwo.changeControlMode(TalonControlMode.MotionMagic);\t\t\n\t\tRobotMap.motorLeftOne.changeControlMode(TalonControlMode.Follower);\t\n\t\tRobotMap.motorRightTwo.changeControlMode(TalonControlMode.MotionMagic);\t\n\t\tRobotMap.motorRightOne.changeControlMode(TalonControlMode.Follower);\n\t\t//setting peak and nominal output voltage for the motors\n\t\tRobotMap.motorLeftTwo.configPeakOutputVoltage(+12.0f, -12.0f);\n\t\tRobotMap.motorLeftTwo.configNominalOutputVoltage(0.00f, 0.0f);\n\t\tRobotMap.motorRightTwo.configPeakOutputVoltage(+12.0f, -12.0f);\n\t\tRobotMap.motorRightTwo.configNominalOutputVoltage(0.0f, 0.0f);\n\t\t//setting who is following whom\n\t\tRobotMap.motorLeftOne.set(4);\n\t\tRobotMap.motorRightOne.set(3);\n\t\t//setting pid value for both sides\n\t//\tRobotMap.motorLeftTwo.setCloseLoopRampRate(1);\n\t\tRobotMap.motorLeftTwo.setProfile(0);\n\t RobotMap.motorLeftTwo.setP(0.000014f);\n \tRobotMap.motorLeftTwo.setI(0.00000001);\n\t\tRobotMap.motorLeftTwo.setIZone(0);//325);\n\t\tRobotMap.motorLeftTwo.setD(1.0f);\n\t\tRobotMap.motorLeftTwo.setF(this.fGainLeft+0.014);//0.3625884);\n\t\tRobotMap.motorLeftTwo.setAllowableClosedLoopErr(0);//300);\n\t\t\n\t RobotMap.motorRightTwo.setCloseLoopRampRate(1);\n\t RobotMap.motorRightTwo.setProfile(0);\n\t\tRobotMap.motorRightTwo.setP(0.000014f);\n\t\tRobotMap.motorRightTwo.setI(0.00000001);\n\t\tRobotMap.motorRightTwo.setIZone(0);//325);\n\t\tRobotMap.motorRightTwo.setD(1.0f);\n\t\tRobotMap.motorRightTwo.setF(this.fGainRight);// 0.3373206);\n\t\tRobotMap.motorRightTwo.setAllowableClosedLoopErr(0);//300);\n\t\t\n\t\t//setting Acceleration and velocity for the left\n\t\tRobotMap.motorLeftTwo.setMotionMagicAcceleration(125);\n\t\tRobotMap.motorLeftTwo.setMotionMagicCruiseVelocity(250);\n\t\t//setting Acceleration and velocity for the right\n\t\tRobotMap.motorRightTwo.setMotionMagicAcceleration(125);\n\t\tRobotMap.motorRightTwo.setMotionMagicCruiseVelocity(250);\n\t\t//resets encoder position to 0\t\t\n\t\tRobotMap.motorLeftTwo.setEncPosition(0);\n\t\tRobotMap.motorRightTwo.setEncPosition(0);\n\t //Set Allowable error for the loop\n\t\tRobotMap.motorLeftTwo.setAllowableClosedLoopErr(300);\n\t\tRobotMap.motorRightTwo.setAllowableClosedLoopErr(300);\n\t\t\n\t\t//sets desired endpoint for the motors\n RobotMap.motorLeftTwo.set(motionMagicEndPoint);\n RobotMap.motorRightTwo.set(-motionMagicEndPoint );\n \t\n }",
"@Override\n public void init(double pNow) {\n if(mTargetHeading == null) {\n mTargetHeading = Rotation2d.fromDegrees(mData.imu.get(EGyro.YAW_DEGREES));\n }\n mInitialDistance = getAverageDriveDistance();\n mLastTime = pNow;\n\n mHeadingController.setContinuous(true);\n mHeadingController.setOutputRange(-1.0, 1.0);\n mHeadingController.reset();\n }",
"public void start() {\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR)==null){ // check if rotation sensor present\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD)==null\n || mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)==null){ // check if acc & mag sensors are present\n noSensorAlert(); // alert if no sensors are present\n }\n else { // use acc & mag sensors\n mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n mMagnetometer = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);\n haveSensor = mSensorManager.registerListener(this,mAccelerometer,SensorManager.SENSOR_DELAY_UI);\n haveSensor2 = mSensorManager.registerListener(this,mMagnetometer,SensorManager.SENSOR_DELAY_UI);\n }\n }\n else { // use rotation sensor\n mRotationV = mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);\n haveSensor = mSensorManager.registerListener(this,mRotationV,SensorManager.SENSOR_DELAY_UI);\n }\n }",
"@SuppressWarnings(\"ConstantConditions\")\n @Override\n public void run() {\n long start = System.currentTimeMillis();\n\n // Basic parameters for the IMU, so we get units we like and whatnot\n BNO055IMU.Parameters params = new BNO055IMU.Parameters();\n params.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n params.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n\n // Optionally select an integration algorithm\n if (INTEGRATOR != null) {\n params.accelerationIntegrationAlgorithm = INTEGRATOR;\n }\n\n // Optionally log to the phone's catlog\n if (LOG_NAME != null && !LOG_NAME.isEmpty()) {\n params.loggingEnabled = true;\n params.loggingTag = LOG_NAME;\n }\n\n // Optionally load static calibration data\n if (CALIBRATION_FILE != null && !CALIBRATION_FILE.isEmpty()) {\n params.calibrationDataFile = CALIBRATION_FILE;\n }\n\n // Init -- this is where we hang\n try {\n imu.initialize(params);\n } catch (Exception e) {\n fail();\n return;\n }\n if (System.currentTimeMillis() - start > TIMEOUT) {\n fail();\n return;\n }\n\n // Start from 0, 0, 0, 0 if things look good\n imu.startAccelerationIntegration(new Position(), new Velocity(), INTEGRATION_INTERVAL);\n\n // Make the gyro available\n parent.setGyro(imu);\n }",
"@Override\n\tpublic void onSensorChanged(SensorEvent se) {\n\t\teventIesim++;\n\t\tif(eventIesim == THRESHOLD_EVENTS)\n\t\t{\n\n\t\t\tswitch (se.sensor.getType())\n\t\t\t{\n\t\t\t\tcase Sensor.TYPE_ACCELEROMETER:\n\t\t\t\t{\n\t\t\t\t\taccelerometerValues = se.values.clone();\n\t\t\t\t\tnew ListenerThread(accelerometerValues,delta_orientation,context,gps).start(); // use the last orientation set\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase Sensor.TYPE_MAGNETIC_FIELD:\n\t\t\t\t{\n\t\t\t\t\tgeomagneticMatrix = se.values.clone();\n\t\t\t\t\tsensorReady = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t} \n\n\t\t\tif (geomagneticMatrix != null && accelerometerValues != null && sensorReady) \n\t\t\t{\n\t\t\t\tsensorReady = false;\n\n\t\t\t\tfloat[] R = new float[16];\n\t\t\t\tfloat[] I = new float[16];\n\n\t\t\t\tSensorManager.getRotationMatrix(R, I, accelerometerValues, geomagneticMatrix);\n\n\t\t\t\tfloat[] actual_orientation = new float[3];\n\t\t\t\tSensorManager.getOrientation(R, actual_orientation); // lastorientation filled with orientation in radiant\n\t\t\t\t\n\t\t\t\tdelta_orientation[0]= (delta_orientation[0] > actual_orientation[0]) ? (delta_orientation[0] - actual_orientation[0]) : (actual_orientation[0] - delta_orientation[0]);\n\t\t\t\tdelta_orientation[1]= (delta_orientation[1] > actual_orientation[1]) ? (delta_orientation[1] - actual_orientation[1]) : (actual_orientation[1] - delta_orientation[1]);\n\t\t\t\tdelta_orientation[2]= (delta_orientation[2] > actual_orientation[2]) ? (delta_orientation[2] - actual_orientation[2]) : (actual_orientation[2] - delta_orientation[2]);\n\n\t\t\t\tLog.i(TAG, \"acceleration with gravity x:\"+accelerometerValues[0]+\" y:\"+accelerometerValues[1]+\" z:\"+accelerometerValues[2]);\n\n\t\t\t\tnew ListenerThread(accelerometerValues,delta_orientation,context,gps).start();\n\n\t\t\t\tLog.i(TAG, \"orientation x:\"+delta_orientation[0]+\" y:\"+delta_orientation[1]+\" z:\"+delta_orientation[2]);\n\t\t\t\t//Toast.makeText(context, \"orientation x:\"+delta_orientation[0]+\" y:\"+delta_orientation[1]+\" z:\"+delta_orientation[2], Toast.LENGTH_SHORT).show();\n\t\t\t\t\n\t\t\t\tdelta_orientation = actual_orientation;\n\t\t\t}\n\t\t\teventIesim = 0;\n\t\t}\n\t\t\n\n\n\t}",
"@Override\n public void initialize() {\n m_drive.resetGyro();// first call\n m_drive.resetEncoders();\n m_drive.lockMotors();\n }",
"@Override\n public void initialize() {\n\n distanceTraveled = 0.0;\n timer.start();\n startTime = timer.get();\n\n leftEncoderStart = drivetrain.getMasterLeftEncoderPosition();\n rightEncoderStart = drivetrain.getMasterRightEncoderPosition();\n\n angleCorrection = 0;\n angleError = 0;\n speedCorrection = 1;\n\n shifter.shiftUp();\n\n }",
"protected void initialize() {\n \tSystem.out.println(\"Running: TurnXDegrees\");\n \tstartingAngle = Robot.gyro.getRawAngleDegrees();\n \tisFin = false;\n \tsetTimeout(5);\n \tif(angleTarget < 0) {\n \t\tSystem.out.println(\"Turning Left...\");\n \t\tisTurningLeft = true;\n \t}else {\n \t\tSystem.out.println(\"Turning Right...\");\n \t\tisTurningLeft = false;\n \t}\n \t\n }",
"protected void initialize() {\n \tm_cameraThread = new CameraThread();\n \tm_cameraThread.start();\n \tm_onTarget = false;\n \tm_moving = false;\n \tm_desiredYaw = Gyro.getYaw();\n \t\n \t\n \tcount = 0;\n }",
"public void initialize() {\n // RobotContainer.drive.zeroAngle();\n this.angle = this.angle + RobotContainer.drive.getAngle();\n }",
"protected void initialize() {\n \t_finalTickTargetLeft = _ticksToTravel + Robot.driveTrain.getEncoderLeft();\n \t_finalTickTargetRight = _ticksToTravel + Robot.driveTrain.getEncoderRight();\n \t\n }",
"protected void initialize() {\n \tRobot.io.bottomGyro.reset();\n \tRobot.io.topGyro.reset();\n \tpid.reset();\n \tpid.setSetpoint(rotAngle);\n \tpid.enable();\n }",
"@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n leftFrontMotor = new CANSparkMax(10, MotorType.kBrushless);\n leftBackMotor = new CANSparkMax(11, MotorType.kBrushless);\n rightFrontMotor = new CANSparkMax(12, MotorType.kBrushless);\n rightBackMotor = new CANSparkMax(13, MotorType.kBrushless);\n leftFrontMotor.setIdleMode(IdleMode.kCoast);\n leftBackMotor.setIdleMode(IdleMode.kCoast);\n rightFrontMotor.setIdleMode(IdleMode.kCoast);\n rightBackMotor.setIdleMode(IdleMode.kCoast);\n gyro = new ADXRS450_Gyro();\n gyro.calibrate();\n stick = new Joystick(1);\n controller = new XboxController(0);\n origGyro = 0;\n }",
"public void init() {\n \tpidControllers.add(leftMotorPID);\n\t\tpidControllers.add(rightMotorPID);\n\t\tpidControllers.add(leftMiniCIMMotorPID);\n\t\tpidControllers.add(rightMiniCIMMotorPID);\n\t\t\n \tgyro.initGyro();\n \tgyro.setSensitivity(RobotMap.gyroGain);\n \tgyro.calibrate();\n }",
"public void setCenterOfRotation(float[] cor) {\n\t\t//centerOfRotation.set(cor);\n\t}",
"public void init() {\n Log.d(\"in init()\", \"Initializing\");\n prevTime = System.currentTimeMillis();\n sensorListener = new SensorEventListener() {\n @Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n\n if (sensorEvent.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n x.add(sensorEvent.values[0]);\n y.add(sensorEvent.values[1]);\n z.add(sensorEvent.values[2]);\n timstamps.add(System.currentTimeMillis());\n }\n /*\n if (sensorEvent.sensor.getType() == Sensor.TYPE_GYROSCOPE) {\n x_g.add(sensorEvent.values[0]);\n y_g.add(sensorEvent.values[1]);\n z_g.add(sensorEvent.values[2]);\n }\n */\n curTime = System.currentTimeMillis();\n// Log.d(\"Time = \", \"\" + (curTime - prevTime) + \" > \" + MIN_TIME);\n if (curTime - prevTime > MIN_TIME) {\n //int minVal = Math.min(x.size(), x_g.size());\n if(isExternalStorageWritable()){\n //writeToFile(x,y,z,x_g,y_g,z_g,minVal);\n writeToFile(x,y,z,timstamps);\n }\n x.clear();\n y.clear();\n z.clear();\n timstamps.clear();\n //x_g.clear();\n //y_g.clear();\n //z_g.clear();\n prevTime = curTime;\n }\n\n /*\n if (x.size() != N_SAMPLES && y.size() != N_SAMPLES && z.size() != N_SAMPLES ){\n x.add(sensorEvent.values[0]);\n y.add(sensorEvent.values[1]);\n z.add(sensorEvent.values[2]);\n }else {\n if(isExternalStorageWritable()){\n writeToFile(x,y,z);\n }\n x.clear();\n y.clear();\n z.clear();\n }\n */\n\n }\n\n @Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n\n }\n };\n sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n sensorManager.registerListener(sensorListener,\n sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_NORMAL);\n// sensorManager.registerListener(sensorListener,\n// sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), SensorManager.SENSOR_DELAY_NORMAL);\n\n //Checks if the Accelerometer or Gyroscope sensor is available or not\n if(sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) == null ){\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(R.string.app_name);\n builder.setIcon(R.mipmap.ic_launcher);\n builder.setMessage(\"Accelerometer Sensor is not available, please exit\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n\n }",
"@Override\n\tpublic void robotInit() {\n\t\tm_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addOption(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\n\t\tm_frontRight = new PWMVictorSPX(0);\n\t\tm_frontLeft = new PWMVictorSPX(2);\n\t\tm_backRight = new PWMVictorSPX(1);\n\t\tm_backLeft = new PWMVictorSPX(3);\n\n\t\tx_aligning = false;\n\n\t\tJoy = new Joystick(0);\n\t\tmyTimer = new Timer();\n\n\t\tfinal SpeedControllerGroup m_left = new SpeedControllerGroup(m_frontLeft, m_backLeft);\n\t\tfinal SpeedControllerGroup m_right = new SpeedControllerGroup(m_frontRight, m_backRight);\n\n\t\tm_drive = new DifferentialDrive(m_left, m_right);\n\n\t\tdistanceToTarget = 0;\n\n\t\tcounter = new Counter(9);\n\t\tcounter.setMaxPeriod(10.0);\n\t\tcounter.setSemiPeriodMode(true);\n\t\tcounter.reset();\n\t}",
"public Gyro360 (AnalogChannel channel) {\n super(channel);\n }",
"@Override\n public void gyroYaw(int value, int timestamp) {\n }",
"protected void initialize() {\n \tRobot.driveBase.resetEnc(2);\n \tRobot.gyro.reset();\n \t//stop extraneous moving parts\n }",
"protected void initialize()\n {\n // Set the pid up for driving straight\n Robot.drivetrain.getAngleGyroController().setPID(Constants.DrivetrainAngleGyroControllerP, Constants.DrivetrainAngleGyroControllerI, Constants.DrivetrainAngleGyroControllerD);\n //Robot.drivetrain.resetGyro();\n if (setpointSpecified == true)\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.initialGyroAngle); \n }\n else\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.drivetrain.getGyroValue());\n }\n Robot.drivetrain.setDirection(driveDirection);\n Robot.drivetrain.setMagnitude(drivePower);\n Robot.drivetrain.getAngleGyroController().enable();\n timer.reset();\n timer.start();\n }",
"public DataStorage (SensorManager sensorManager, Sensor gyro, Sensor acceleromter) {\n this.sensorManager = sensorManager;\n this.sensor = gyro;\n\n dataPoints = new LinkedList<>();\n gyroListener = new GyroListener();\n accelListener = new AccelListener();\n sensorManager.registerListener(gyroListener, gyro, SensorManager.SENSOR_DELAY_GAME);\n sensorManager.registerListener(accelListener, acceleromter, SensorManager.SENSOR_DELAY_GAME);\n }",
"@Override\n public void gyroRoll(int value, int timestamp) {\n }",
"@Override\n public void initialize() {\n setPoint = (((targetAngle + driveSubsystem.getHeading() + 180) % 360) - 180);\n }",
"private void startOrientationSensor() {\n orientationValues = new float[3];\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n Sensor orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);\n sensorManager.registerListener(this, orientationSensor, SensorManager.SENSOR_DELAY_UI);\n }",
"protected void initialize() {\n \t//instantiate PIDs with motor groups\n \t\n \tPIDOutputGroup leftSide = new PIDOutputGroup(new PIDOutput[] {Robot.drive.frontLeftMotor, Robot.drive.backLeftMotor}, new Boolean[] {false, false}, 1.0);\n \t\n \tPIDOutputGroup rightSide = new PIDOutputGroup(new PIDOutput[] {Robot.drive.frontRightMotor, Robot.drive.backRightMotor}, new Boolean[] {true, true}, 1.0);\n\n \t//reset PIDs\n \tRobot.drive.leftEncoder.reset();\n \tRobot.drive.rightEncoder.reset();\n \t\n \t//set PID type\n \tRobot.drive.leftEncoder.setPIDSourceType(PIDSourceType.kRate);\n \tRobot.drive.rightEncoder.setPIDSourceType(PIDSourceType.kRate);\n \t\n \tleftEncoderPID = new PIDController(lEncoderP, lEncoderI, lEncoderD, Robot.drive.leftEncoder, leftSide);\n \t\n \trightEncoderPID = new PIDController(rEncoderP, rEncoderI, rEncoderD, Robot.drive.rightEncoder, rightSide);\n \t\n \tleftEncoderPID.setContinuous();\n \trightEncoderPID.setContinuous();\n \t\n \t\n \tleftEncoderPID.enable();\n \trightEncoderPID.enable();\n \t\n \t\n \t//timer things\n \ttimer = new Timer();\n \ttimer.start();\n \t\n \t//set timer times\n \ttAccelerating = maxVelocity / acceleration;\n \ttCruising = (distance - (Math.pow(maxVelocity, 2) / acceleration)) / maxVelocity;\n \ttTotal = 2 * tAccelerating + tCruising;\n \t\n \t//reset gyro\n \tRobot.gyroscope.reset();\n \t\n \t//set starting state\n \tcurrentState = DriveState.accelerating;\n }",
"public void calibrate(int num) {\n\t\tupdateGyro();\n\t\t\n\t\tsumX = 0;\t//Sum of avgX\n\t\tsumY = 0;\t//Sum of avgY\n\t\tsumZ = 0;\t//Sum of avgZ\n\t\t\n\t\tavgX.clear();\n\t\tavgY.clear();\n\t\tavgZ.clear();\n\t\t\n\t\tfor (int i=0; i < num; i++) {\n\t\t\tavgX.add(xl.getX());\n\t\t\tavgY.add(xl.getY());\n\t\t\tavgZ.add(xl.getZ());\n\t\t}\n\t\t\n\t\tfor (int i=0; i < avgX.size(); i++) {\n\t\t\tsumX += (double)avgX.get(i);\n\t\t\tsumY += (double)avgY.get(i);\n\t\t\tsumZ += (double)avgZ.get(i);\n\t\t}\n\t\t\n\t\texX = sumX / avgX.size();\n\t\texY = sumY / avgY.size();\n\t\texZ = sumZ / avgZ.size();\n\t\t\n\t\t//Data from calibrate()\n\t\tSmartDashboard.putNumber(\"test x\", exX * 9.8);\n\t\tSmartDashboard.putNumber(\"test y\", exY * 9.8);\n\t\tSmartDashboard.putNumber(\"test z\", exZ * 9.8);\n\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n float valueAzimuth = event.values[0];\n float valuePitch = event.values[1];\n\n parent.updateAccelerometer(\n valueAzimuth / maximumRange, -valuePitch / maximumRange);\n\n }",
"public double getGyroInDeg(){\n return 0.0;//TODO:Pull gyro in radians and convert to degrees\n }",
"protected void end() {\n \tSystem.out.println(\"Gyro: \" + Drivetrain.gyro.getAngle());\n \tDrivetrain.gyro.reset();\n \tDrivetrain.frontRight.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, 0.0);\n \t\n }",
"@Override\n public void init() {\n telemetry.addData(\">\", \"Initializing...\");\n telemetry.update();\n\n // Sensors\n gyro = new Gyro(hardwareMap, \"gyro\");\n if (!gyro.isAvailable()) {\n telemetry.log().add(\"ERROR: Unable to initalize gyro\");\n }\n\n // Drive motors\n tank = new WheelMotorConfigs().init(hardwareMap, telemetry);\n tank.stop();\n\n // Vuforia\n vuforia = new VuforiaFTC(VuforiaConfigs.AssetName, VuforiaConfigs.TargetCount,\n VuforiaConfigs.Field(), VuforiaConfigs.Bot());\n vuforia.init();\n\n // Wait for the game to begin\n telemetry.addData(\">\", \"Ready for game start\");\n telemetry.update();\n }",
"public double[] getGyro();",
"@Override\n public void init_loop() {\n\n\n if (robot.gyro.isCalibrating()) {\n telemetry.addData(\"we calibrating\", \"\");\n } else {\n telemetry.addData(\"Hell naw\", \"\");\n }\n telemetry.update();\n\n\n // Send telemetry message to signify robot waiting;\n // telemetry.addData(\"Say\", \"Dick\"); //\n // telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n\n\n // run until the end of the match (driver presses STOP)\n }",
"@Override\n public void resetAccelY()\n {\n }",
"@Override\n public void init() {\n touchSensor1 = hardwareMap.touchSensor.get(\"touchSensor1\");\n lightSensor1 = hardwareMap.lightSensor.get(\"lightSensor1\");\n motorLeft1 = hardwareMap.dcMotor.get(\"motorLeft1\");\n motorLeft2 = hardwareMap.dcMotor.get(\"motorLeft2\");\n motorRight1 = hardwareMap.dcMotor.get(\"motorRight1\");\n motorRight2 = hardwareMap.dcMotor.get(\"motorRight2\");\n\n //Setup Hardware\n motorLeft1.setDirection(DcMotor.Direction.REVERSE);\n motorLeft2.setDirection(DcMotor.Direction.REVERSE);\n\n // Set up the parameters with which we will use our IMU. Note that integration\n // algorithm here just reports accelerations to the logcat log; it doesn't actually\n // provide positional information.\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"AdafruitIMUCalibration.json\"; // see the calibration sample opmode\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n // parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n // Retrieve and initialize the IMU. We expect the IMU to be attached to an I2C port\n // on a Core Device Interface Module, configured to be a sensor of type \"AdaFruit IMU\",\n // and named \"imu\".\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n currentState = MotorState.WAIT_TO_START;\n nextState = MotorState.WAIT_TO_START;\n count = 0;\n composeTelemetry();\n }",
"public void robotInit() {\r\n\r\n shootstate = down;\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n initialpot = Components.ShooterPot.getAverageVoltage();\r\n //shootpotdown +=initialpot;\r\n //shootpotlow+= initialpot;\r\n //shootpotmiddle+= initialpot;\r\n //shootpothigh+=initialpot;\r\n\r\n }",
"@Override\n protected void initialize() {\n\n /* System clock starts */\n baseTime = System.currentTimeMillis();\n /* Determines time that robot has to timeout after */\n thresholdTime = baseTime + duration;\n\n /* Convert the starting angle */\n if (Robot.drivetrain.getGyroYaw() < 0.0f) {\n /* Negative turn to 180-360 */\n startingAngle = Robot.drivetrain.getGyroYaw() + 360.0f;\n } else {\n /* Positives stay 0-180 */\n startingAngle = Robot.drivetrain.getGyroYaw();\n }\n\n /* The total angle needed to turn */\n totalAngleTurn = startingAngle + inputAngle;\n\n /* Declare the turning direction of special cases when the angle passes over 0 or 360 */\n if (totalAngleTurn < 0.0f) { \n /* If the angle is negative, convert it */\n totalAngleTurn += 360.0f;\n /* Trigger special case */\n specialCase = true;\n /* Trigger counterclockwise */\n clockwise = false;\n }\n if (totalAngleTurn > 360.0f) {\n /* If the angle is above 360, subtract 360 */\n totalAngleTurn -= 360.0f;\n /* Trigger special case */\n specialCase = true;\n /* Trigger clockwise */\n clockwise = true;\n }\n /* Only run if the special cases do not already declare a turning direction */\n if (!specialCase) {\n /* If the input angle is bigger, turn clockwise */\n if (totalAngleTurn > startingAngle) {\n clockwise = true;\n }\n /* If the input angle is smaller, turn counterclockwise */\n if (totalAngleTurn < startingAngle) {\n clockwise = false;\n }\n }\n }",
"@Override\n public void init_loop() {\n hookPosDeg = HOOK_UP;\n clawPosDeg = CLAW_OPEN;\n hookPos = map(hookPosDeg, HOOK_MIN_POS_DEG, HOOK_MAX_POS_DEG, HOOK_MIN_POS, HOOK_MAX_POS);\n clawPos = map(clawPosDeg, CLAW_MIN_POS_DEG, CLAW_MAX_POS_DEG, CLAW_MIN_POS, CLAW_MAX_POS);\n hook.setPosition(hookPos);\n claw.setPosition(clawPos);\n\n// armTarget = ARM_CENTER;\n// arm.setTargetPosition(armTarget);\n// arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// arm.setPower(.3);\n }",
"@Override\n public void run() {\n hdt.gyroTurn180Fast(1500);\n hdt.gyroTurn180(1100);\n //sleep(1300);\n }",
"private void resetAngle() {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n startAngles = lastAngles;\n globalAngle = 0;\n }",
"protected void initialize() {\n \ttarget = (int) SmartDashboard.getNumber(\"target\", 120);\n \ttarget = (int) (target * Constants.TICKS_TO_INCHES);\n\t\tRobot.drive.stop();\n\t\tmaxCount = (int) SmartDashboard.getNumber(\"max count\", 0);\n\t\ttolerance = (int) SmartDashboard.getNumber(\"tolerance\", 0);\n\t\tRobot.drive.left.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\t\tRobot.drive.right.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n }",
"public void run() {\n\n EV3ColorSensor sensor = new EV3ColorSensor(usPort); // usSensor is the instance\n SampleProvider sensorProvider = sensor.getMode(\"Red\");\n MeanFilter filter = new MeanFilter(sensorProvider, 4);\n float[] sample = new float[sensor.sampleSize()];\n boolean inLine = false; // Flags whether the sensor is currently seeing a line\n boolean makeCorrection = false; // Tells the class to correct the odometer values\n double[] position = odometer.getXYT(); // Current odometer values\n Direction direction = Direction.INIT; // Direction of the robot's movement\n\n long correctionStart, correctionEnd;\n\n while (true) {\n correctionStart = System.currentTimeMillis();\n\n // Trigger correction (When do I have information to correct?)\n filter.fetchSample(sample, 0);\n boolean lineDetected = sample[0] < LINE_COLOR_VALUE;\n\n if (lineDetected) {\n if (!inLine) {\n inLine = true;\n makeCorrection = true;\n lineCount++;\n Sound.beep();\n }\n } else\n inLine = false;\n\n // Calculate new (accurate) robot position\n if (makeCorrection && lineCount < ((SQUARE_SIZE - 1) * 4)) {\n makeCorrection = false;\n position = odometer.getXYT();\n\n // Get the direction of movement according to the angle\n double theta = position[2];\n if (theta > 45 && theta < 135) {\n direction = Direction.EAST;\n } else if (theta > 135 && theta < 225) {\n direction = Direction.SOUTH;\n } else if (theta > 225 && theta < 315) {\n direction = Direction.WEST;\n } else {\n direction = Direction.NORTH;\n }\n\n // Update odometer with new calculated (and more accurate) vales\n double correctedX, correctedY;\n switch (direction) {\n case NORTH:\n correctedY = (YN * TILE_SIZE) - SENSOR_OFFSET;\n YN++;\n odometer.setXYT(position[0], correctedY, position[2]);\n // System.out.println(\"Correcting Y to: \" + correctedY);\n break;\n case EAST:\n correctedX = (XE * TILE_SIZE) - SENSOR_OFFSET;\n XE++;\n odometer.setXYT(correctedX, position[1], position[2]);\n // System.out.println(\"Correcting X to: \" + correctedX);\n break;\n case SOUTH:\n YS--;\n correctedY = (YS * TILE_SIZE) + SENSOR_OFFSET;\n odometer.setXYT(position[0], correctedY, position[2]);\n // System.out.println(\"Correcting Y to: \" + correctedY);\n break;\n case WEST:\n XW--;\n correctedX = (XW * TILE_SIZE) + SENSOR_OFFSET;\n odometer.setXYT(correctedX, position[1], position[2]);\n // System.out.println(\"Correcting X to: \" + correctedX);\n break;\n }\n }\n\n // this ensure the odometry correction occurs only once every period\n correctionEnd = System.currentTimeMillis();\n if (correctionEnd - correctionStart < CORRECTION_PERIOD) {\n try {\n Thread.sleep(CORRECTION_PERIOD - (correctionEnd - correctionStart));\n } catch (InterruptedException e) {\n // there is nothing to be done here\n }\n }\n }\n }",
"@Override\n\tpublic void onSensorChanged( SensorEvent event )\n\t{\n\t\tfloat y = -event.values[ 0 ] / GRAVITY;\n\t\tfloat x = event.values[ 1 ] / GRAVITY;\n\t\tfloat z = event.values[ 2 ] / GRAVITY;\n\t\t\n\t\tx = Math.abs(x);\n\n\t\t//Log.d( \"Control\", String.format( \"%+6f, %+6f, %+6f\", x, y, z ) );\n\n\t\t// The x component gives us tilt forward / backward\n\t\tx -= 0.5;\n\t\tx *= 200;\n\t\tif ( Math.abs(x) < 10 ) x = 0;\n\n\t\t// The y component gives us steering\n\t\ty *= 50;\n\t\tif ( Math.abs(y) < 10 ) y = 0;\n\n\t\tfloat\n\t\t\t\tmotorL = x + y,\n\t\t\t\tmotorR = x - y;\n\n\t\t//Log.d( \"Control\", String.format( \"%+6f, %+6f, %+6f\", motorL, motorR, 0f ) );\n\n\t\t// Clamp the values to [-100, 100]\n\t\tif ( motorL < -100 || motorL > 100 )\n\t\t{\n\t\t\tmotorL -= motorL % 100;\n\t\t}\n\t\tif ( motorR < -100 || motorR > 100 )\n\t\t{\n\t\t\tmotorR -= motorR % 100;\n\t\t}\n\t\t\n\t\tmovingAverageX = (movingAverageAlpha * motorL) + (1.0f - movingAverageAlpha) * movingAverageX;\n\t\tmovingAverageY = (movingAverageAlpha * motorR) + (1.0f - movingAverageAlpha) * movingAverageY;\n\n\t\tcallbackTarget.onControlEventResult( (int) movingAverageX, (int) movingAverageY, 0 );\n\t}",
"@Override\n public void robotInit() {\n robot = RobotSoftware.getInstance();\n CameraServer.getInstance().startAutomaticCapture(0);\n CameraServer.getInstance().startAutomaticCapture(1);\n watcher = new Watcher(robot.leftDistanceStream.getWatchable(\"left dist\"),\n robot.rightDistanceStream.getWatchable(\"right dist\"));\n watcher.outputToDashboard();\n robot.runCompressor.set(false);\n teleop = new TeleopMain(robot);\n toggleCompressor = true;\n teleop.init();\n }",
"protected void execute() {\n \t\n \tdouble angleDifference;\n \t\n \tif (useTargetAngle) {\n \t\tangleDifference = Math.abs(Gyroscope.simplifyAngle(Robot.gyroscope.getGlobalRotation()) - Gyroscope.simplifyAngle(targetAngle));\n \t}\n \telse {\n \t\tangleDifference = Math.abs(Robot.gyroscope.getRotation());\n \t}\n \t\n \tif (angleDifference > ROTATION_THRESHOLD) {\n \t\tif (Robot.gyroscope.getRotation() > 0) {\n \t\t\tadjustPercentRight = ROTATION_PERCENT;\n \t\t\tadjustPercentLeft = 1;\n \t\t}\n \t\telse {\n \t\t\tadjustPercentRight = 1;\n \t\t\tadjustPercentLeft = ROTATION_PERCENT;\n \t\t}\n \t}\n \t\n \trightEncoderPID.setSetpoint(getVelocity() * adjustPercentRight);\n \tleftEncoderPID.setSetpoint(getVelocity() * adjustPercentLeft);\n \t\n \t//print out debug data to smartdash\n \tSmartDashboard.putNumber(\"Left Encoder Vel:\", Robot.drive.leftEncoder.getRate());\n \tSmartDashboard.putNumber(\"Right Encoder Vel\", Robot.drive.rightEncoder.getRate());\n \t\n \tSmartDashboard.putNumber(\"Left Encoder Dist\", Robot.drive.leftEncoder.getDistance());\n \tSmartDashboard.putNumber(\"Right Encoder Dist\", Robot.drive.leftEncoder.getDistance());\n \t\n \tupdateState();\n \t\n \t//keep at low speed if decelerating period is up\n \tif (currentState == DriveState.decelerating && (timer.get() > tAccelerating)) {\n \trightEncoderPID.setSetpoint(FINAL_ADJUST_SPEED);\n \tleftEncoderPID.setSetpoint(FINAL_ADJUST_SPEED);\n \t}\n }",
"protected void initialize() {\n\t\tRobot._driveTrain.setAuton(true);\n\t\tRobot._driveTrain.clearEncoder();\n\t\tRobot._driveTrain.clearGyro();\n\t\tdistanceToCenter = SmartDashboard.getNumber(\"toteOffset\", 0);\n\t\tif (Robot._pneumatics.getArms() != DoubleSolenoid.Value.kReverse) {\n\t\t\tRobot._pneumatics.setArms(DoubleSolenoid.Value.kReverse);\n\t\t}\n\t}",
"public static Quaternion calculateQuaternionNineAxis(\n\t\t\tdouble accel1, double accel2, double accel3, \n\t\t\tdouble gyro1, double gyro2, double gyro3, \n\t\t\tdouble mag1, double mag2, double mag3){\n\t\t\n\t\tif(currentTime != 0){\n\t\t\tlong sampleTime = System.currentTimeMillis() - currentTime;\n//\t\t\tSystem.out.println(\"Sample time: \"+sampleTime);\n\t\t\tsampleFreq = 1.0 * 1000 / sampleTime;\n//\t\t\tSystem.out.println(\"Sample Freq: \"+sampleFreq);\n\t\t}\n\t\t\n\t\t// update current time when updating coordinate\n\t\tcurrentTime = System.currentTimeMillis();\n\t\t\n\t\tdouble normalizedDenominator;\n\t\tdouble s0, s1, s2, s3;\n\t\tdouble qDot1, qDot2, qDot3, qDot4;\n\t\tdouble hx, hy;\n\t\tdouble _2q0mx, _2q0my, _2q0mz, _2q1mx, _2bx, _2bz, _4bx, _4bz;\n\t\tdouble _2q0, _2q1, _2q2, _2q3, _2q0q2, _2q2q3, q0q0, q0q1, q0q2, q0q3, q1q1, q1q2, q1q3, q2q2, q2q3, q3q3;\n\n\t\t// Rate of change of quaternion from gyroscope\n\t\tqDot1 = 0.5f * (-q1 * gyro1 - q2 * gyro2 - q3 * gyro3);\n\t\tqDot2 = 0.5f * (q0 * gyro1 + q2 * gyro3 - q3 * gyro2);\n\t\tqDot3 = 0.5f * (q0 * gyro2 - q1 * gyro3 + q3 * gyro1);\n\t\tqDot4 = 0.5f * (q0 * gyro3 + q1 * gyro2 - q2 * gyro1);\n\n\t\t// Compute feedback only if accelerometer measurement valid (avoids NaN in accelerometer normalisation)\n\t\tif(!((accel1 == 0.0f) && (accel2 == 0.0f) && (accel3 == 0.0f))) {\n\n\t\t\t// Normalise accelerometer measurement\n\t\t\tnormalizedDenominator = 1 / Math.sqrt(accel1 * accel1 + accel2 * accel2 + accel3 * accel3);\n\t\t\taccel1 *= normalizedDenominator;\n\t\t\taccel2 *= normalizedDenominator;\n\t\t\taccel3 *= normalizedDenominator; \n\n\t\t\t// Normalise magnetometer measurement\n\t\t\tnormalizedDenominator = 1 / Math.sqrt(mag1 * mag1 + mag2 * mag2 + mag3 * mag3);\n\t\t\tmag1 *= normalizedDenominator;\n\t\t\tmag2 *= normalizedDenominator;\n\t\t\tmag3 *= normalizedDenominator;\n\n\t\t\t// Auxiliary variables to avoid repeated arithmetic\n\t\t\t_2q0mx = 2.0f * q0 * mag1;\n\t\t\t_2q0my = 2.0f * q0 * mag2;\n\t\t\t_2q0mz = 2.0f * q0 * mag3;\n\t\t\t_2q1mx = 2.0f * q1 * mag1;\n\t\t\t_2q0 = 2.0f * q0;\n\t\t\t_2q1 = 2.0f * q1;\n\t\t\t_2q2 = 2.0f * q2;\n\t\t\t_2q3 = 2.0f * q3;\n\t\t\t_2q0q2 = 2.0f * q0 * q2;\n\t\t\t_2q2q3 = 2.0f * q2 * q3;\n\t\t\tq0q0 = q0 * q0;\n\t\t\tq0q1 = q0 * q1;\n\t\t\tq0q2 = q0 * q2;\n\t\t\tq0q3 = q0 * q3;\n\t\t\tq1q1 = q1 * q1;\n\t\t\tq1q2 = q1 * q2;\n\t\t\tq1q3 = q1 * q3;\n\t\t\tq2q2 = q2 * q2;\n\t\t\tq2q3 = q2 * q3;\n\t\t\tq3q3 = q3 * q3;\n\n\t\t\t// Reference direction of Earth's magnetic field\n\t\t\thx = mag1 * q0q0 - _2q0my * q3 + _2q0mz * q2 + mag1 * q1q1 + _2q1 * mag2 * q2 + \n\t\t\t\t\t_2q1 * mag3 * q3 - mag1 * q2q2 - mag1 * q3q3;\n\t\t\thy = _2q0mx * q3 + mag2 * q0q0 - _2q0mz * q1 + _2q1mx * q2 - mag2 * q1q1 + \n\t\t\t\t\tmag2 * q2q2 + _2q2 * mag3 * q3 - mag2 * q3q3;\n\t\t\t_2bx = Math.sqrt(hx * hx + hy * hy);\n\t\t\t_2bz = -_2q0mx * q2 + _2q0my * q1 + mag3 * q0q0 + _2q1mx * q3 - mag3 * q1q1 + \n\t\t\t\t\t_2q2 * mag2 * q3 - mag3 * q2q2 + mag3 * q3q3;\n\t\t\t_4bx = 2.0f * _2bx;\n\t\t\t_4bz = 2.0f * _2bz;\n\n\t\t\t// Gradient decent algorithm corrective step\n\t\t\ts0 = -_2q2 * (2.0f * q1q3 - _2q0q2 - accel1) + _2q1 * (2.0f * q0q1 + _2q2q3 - accel2) - \n\t\t\t\t\t_2bz * q2 * (_2bx * (0.5f - q2q2 - q3q3) + _2bz * (q1q3 - q0q2) - mag1) + \n\t\t\t\t\t(-_2bx * q3 + _2bz * q1) * (_2bx * (q1q2 - q0q3) + _2bz * (q0q1 + q2q3) - mag2) + \n\t\t\t\t\t_2bx * q2 * (_2bx * (q0q2 + q1q3) + _2bz * (0.5f - q1q1 - q2q2) - mag3);\n\t\t\ts1 = _2q3 * (2.0f * q1q3 - _2q0q2 - accel1) + _2q0 * (2.0f * q0q1 + _2q2q3 - accel2) - \n\t\t\t\t\t4.0f * q1 * (1 - 2.0f * q1q1 - 2.0f * q2q2 - accel3) + _2bz * q3 * (_2bx * (0.5f - q2q2 - q3q3) + \n\t\t\t\t\t\t\t_2bz * (q1q3 - q0q2) - mag1) + (_2bx * q2 + _2bz * q0) * (_2bx * (q1q2 - q0q3) + \n\t\t\t\t\t\t\t\t\t_2bz * (q0q1 + q2q3) - mag2) + (_2bx * q3 - _4bz * q1) * (_2bx * (q0q2 + q1q3) + \n\t\t\t\t\t\t\t\t\t\t\t_2bz * (0.5f - q1q1 - q2q2) - mag3);\n\t\t\ts2 = -_2q0 * (2.0f * q1q3 - _2q0q2 - accel1) + _2q3 * (2.0f * q0q1 + _2q2q3 - accel2) - \n\t\t\t\t\t4.0f * q2 * (1 - 2.0f * q1q1 - 2.0f * q2q2 - accel3) + \n\t\t\t\t\t(-_4bx * q2 - _2bz * q0) * (_2bx * (0.5f - q2q2 - q3q3) + _2bz * (q1q3 - q0q2) - mag1) + \n\t\t\t\t\t(_2bx * q1 + _2bz * q3) * (_2bx * (q1q2 - q0q3) + _2bz * (q0q1 + q2q3) - mag2) + \n\t\t\t\t\t(_2bx * q0 - _4bz * q2) * (_2bx * (q0q2 + q1q3) + _2bz * (0.5f - q1q1 - q2q2) - mag3);\n\t\t\ts3 = _2q1 * (2.0f * q1q3 - _2q0q2 - accel1) + _2q2 * (2.0f * q0q1 + _2q2q3 - accel2) + \n\t\t\t\t\t(-_4bx * q3 + _2bz * q1) * (_2bx * (0.5f - q2q2 - q3q3) + _2bz * (q1q3 - q0q2) - mag1) + \n\t\t\t\t\t(-_2bx * q0 + _2bz * q2) * (_2bx * (q1q2 - q0q3) + _2bz * (q0q1 + q2q3) - mag2) + \n\t\t\t\t\t_2bx * q1 * (_2bx * (q0q2 + q1q3) + _2bz * (0.5f - q1q1 - q2q2) - mag3);\n\t\t\tnormalizedDenominator = 1 / Math.sqrt(s0 * s0 + s1 * s1 + s2 * s2 + s3 * s3); \n\t\t\t\n\t\t\t// normalise step magnitude\n\t\t\ts0 *= normalizedDenominator;\n\t\t\ts1 *= normalizedDenominator;\n\t\t\ts2 *= normalizedDenominator;\n\t\t\ts3 *= normalizedDenominator;\n\n\t\t\t// Apply feedback step\n\t\t\tqDot1 -= beta * s0;\n\t\t\tqDot2 -= beta * s1;\n\t\t\tqDot3 -= beta * s2;\n\t\t\tqDot4 -= beta * s3;\n\t\t}\n\n\t\t// Integrate rate of change of quaternion to yield quaternion\n\t\tq0 += qDot1 * (1.0f / sampleFreq);\n\t\tq1 += qDot2 * (1.0f / sampleFreq);\n\t\tq2 += qDot3 * (1.0f / sampleFreq);\n\t\tq3 += qDot4 * (1.0f / sampleFreq);\n\n\t\t// Normalise quaternion\n\t\tnormalizedDenominator = 1 / Math.sqrt(q0 * q0 + q1 * q1 + q2 * q2 + q3 * q3);\n\t\tq0 *= normalizedDenominator;\n\t\tq1 *= normalizedDenominator;\n\t\tq2 *= normalizedDenominator;\n\t\tq3 *= normalizedDenominator;\n\t\t\n\t\t\n\t\t// set Quaternion object\n\t\tQuaternion quaternion = new Quaternion(q0, q1, q2, q3);\n\t\t\n\t\treturn quaternion;\n\t}",
"public Mecanum()\n\t{\n\t\tmd.setMaxOutput(TELEOP_SPEED); // spitfire\n\t\tmd.setDeadband(0.05);\n\n\t\tresetGyro();\n\t\tresetEncoders();\n \n rfEncoder.setPositionConversionFactor(0.0454);\n rbEncoder.setPositionConversionFactor(0.0454);\n lfEncoder.setPositionConversionFactor(0.0454);\n\t\tlbEncoder.setPositionConversionFactor(0.0454);\n\t\t\n rf.setInverted(true);\n\n\t\tlb.setIdleMode(kCoast);\n\t\trf.setIdleMode(kCoast);\n\t\trb.setIdleMode(kCoast);\n\t\tlf.setIdleMode(kCoast);\n\n\t\tlf.burnFlash();\n\t\tlb.burnFlash();\n\t\trf.burnFlash();\n\t\trb.burnFlash();\n\n\t\tSmartDashboard.putData((Sendable) gyro);\n\t}",
"protected void initialize() {\n\t\t// startAngle = drive.getAngle();\n\t\tdrive.resetBothEncoders();\n\t\tpLeft = speed;\n\t\tpRight = speed;\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n timestamp = event.timestamp;\n gyroX = event.values[0];\n gyroY = event.values[1];\n gyroZ = event.values[2];\n\n this.setChanged();\n this.notifyObservers(Sensor.TYPE_GYROSCOPE);\n }",
"protected void setupRotationOrigin()\n\t{\n\t\tthis.currentRotationAxis = new Point2D.Double(getOriginX(), getOriginY());\n\t\tupdateDefaultMomentMass();\n\t\tthis.currentMomentMass = this.defaultMomentMass;\n\t\t\n\t\t//changeRotationAxisTo(new Point2D.Double(0, 0));\n\t}",
"@Override\n public void robotInit() {\n\n rightEnc.reset();\n gyro.reset();\n\n left2.follow(left1);\n left3.follow(left1);\n right2.follow(right1);\n right3.follow(right1);\n\n config = new Trajectory.Config(Trajectory.FitMethod.HERMITE_CUBIC, Trajectory.Config.SAMPLES_HIGH, 0.05, 1.7, 2.0, 50.0);\n trajectory = Pathfinder.generate(points, config);\n\n modifier = new TankModifier(trajectory).modify(0.7);\n\n left = new EncoderFollower(modifier.getLeftTrajectory());\n right = new EncoderFollower(modifier.getRightTrajectory());\n\n left.configureEncoder((int)rightEnc.get(), 1024, 0.1143);\n left.configurePIDVA(0.7, 0.0, 0.0, 0.15, 0.06);\n right.configureEncoder((int)rightEnc.get(), 1024, 0.1143);\n right.configurePIDVA(0.7, 0.0, 0.0, 0.15, 0.06);\n \n }",
"public void startSensors() {\n // Register listeners for each sensor\n sensorManager.registerListener(sensorEventListener, accelerometer, SensorManager.SENSOR_DELAY_GAME);\n }",
"@Override\n\tpublic void robotInit() {\n\t\tleftDriveBack = new VictorSP(0); // PWM Port, madke sure this is set correctly.\n\t\tleftDriveFront = new VictorSP(1);\n\t\t\n\t\trightDriveFront = new VictorSP(2);\n\t\trightDriveBack = new VictorSP(3);\n\t\t\n\t\tleftIntake = new Spark(5);\n\t\trightIntake = new Spark(6);\n\t\t\n\t\tarmMotor = new TalonSRX(10);\n\t\tarmMotor.setNeutralMode(NeutralMode.Brake);\n\t\tarmMotor.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Absolute, 0, 0);\n\t\tarmMotor.configPeakCurrentLimit(30, 0);\n\t\tarmMotor.configPeakCurrentDuration(250, 0);\n\t\tarmMotor.configContinuousCurrentLimit(20, 0);\n\t\tarmMotor.configClosedloopRamp(0.25, 0);\n\t\tarmMotor.configOpenloopRamp(0.375, 0);\n\t\tarmMotor.enableCurrentLimit(true);\n\t\t\n\t\tarmMotor.configPeakOutputForward(1.0, 0);\n\t\tarmMotor.configPeakOutputReverse(-1.0, 0);\n\t\t\n\t\tarmMotor.config_kP(0, 0.0, 0);\n\t\t\n\t\tarmSetpoint = armMotor.getSelectedSensorPosition(0);\n\t\t\n\t\tstick = new Joystick(0);\n\t\tstickReversed = false;\n\t\txbox = new XboxController(1); // USB port, set in driverstation.\n\t\t\n\t\tdriveCamera = CameraServer.getInstance().startAutomaticCapture(0);\n\t}",
"public Gyro2903(GYRO_TYPE gyroType) {\n\t\tgyroToUse = gyroType;\n\n\t\tswitch (gyroType) {\n\t\tcase ANALOG:\n\t\t\tgyro = new AnalogGyro(RobotMap.AnalogGyro);\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tspi = new ADXRS450_Gyro(SPI.Port.kOnboardCS0);\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\timu = new ADIS16448_IMU();\n\t\t\tbreak;\n\t\t}\n\t}",
"protected void initialize() {\n \tRobot.driveTrain.arcade(MOVE_SPEED_PERCENT, Robot.driveTrain.gyroPReturn(direction));\n }",
"public RainCollectorSensor() {\r\n\t\trecalibrateData();\r\n\t\tmetric = true; \r\n\t}",
"protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }",
"@Override\n public void robotInit() \n {\n CommandBase.init();\n PIDCommandBase.init();\n\n CameraServer.getInstance().startAutomaticCapture();\n\n start.addDefault(\"Left\", Autonomous.StartPosition.LEFT);\n start.addObject(\"Center\", Autonomous.StartPosition.CENTER);\n start.addObject(\"Right\", Autonomous.StartPosition.RIGHT);\n SmartDashboard.putData(\"Start\", start);\n \n chooser.addObject(\"Scale\", Autonomous.AutoMode.SCALE);\n chooser.addObject(\"Switch\", Autonomous.AutoMode.SWITCH);\n chooser.addDefault(\"Drive\", Autonomous.AutoMode.DRIVE);\n SmartDashboard.putData(\"Auto Mode\", chooser);\n\n compressor = new Compressor();\n compressor.start();\n }",
"public void zeroHeading() {\n m_gyro.reset();\n }",
"public double getGyroAngleX() {\n return m_gyro.getAngleX();\n }",
"@Override\n public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n\n telemetry.addData(\"Status\", \"Initialized\");\n\n //the below lines set up the configuration file\n BallSensor = hardwareMap.i2cDevice.get(\"BallSensor\");\n\n BallSensorreader = new I2cDeviceSynchImpl(BallSensor, I2cAddr.create8bit(0x3a), false);\n\n BallSensorreader.engage();\n\n sensorGyro = hardwareMap.gyroSensor.get(\"gyro\"); //Point to the gyro in the configuration file\n mrGyro = (ModernRoboticsI2cGyro)sensorGyro; //ModernRoboticsI2cGyro allows us to .getIntegratedZValue()\n mrGyro.calibrate(); //Calibrate the sensor so it knows where 0 is and what still is. DO NOT MOVE SENSOR WHILE BLUE LIGHT IS SOLID\n\n //touch = hardwareMap.touchSensor.get(\"touch\");\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n telemetry.update();\n\n }",
"public void run(){\n \t\t\n \t\t//make a fresh list, set gate as closed, register listener\n \t\tmeasurements = new myLL();\n \t\tgate = new CountDownLatch(1);\n \t\tmSensorManager.registerListener(this, mAccelerometer, SensorManager.SENSOR_DELAY_FASTEST);\t\n \t\t\t\n \t\t//Wait until the stop-measuring-signal. In the mean time,\n \t\t//onSensorChanged events should be firing and measuring.\n\t\t/*\n \t\ttry {\n \t\t\tgate.await();\n \t\t} catch (InterruptedException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n\t\t*/\n \t\t\n \t\t//stop measuring\n \t\tmSensorManager.unregisterListener(this);\n \t\t\n \t\tdouble x = Distance(measurements.getxData(), \n \t\t\t\t\t\tmeasurements.getyData(),\n \t\t\t\t\t\tmeasurements.getzData(),\n \t\t\t\t\t\tmeasurements.gettData());\n \t\t\n \t\t}",
"@Override\n public void gyroPitch(int value, int timestamp) {\n }",
"@Override\n protected void initialize() {\n isInterruptible();\n holdPos = Robot.getEndEffectorAngle().getRawEncoder();\n }"
] | [
"0.6857298",
"0.63544977",
"0.6042953",
"0.60029036",
"0.5920041",
"0.5896221",
"0.5872025",
"0.58559036",
"0.5805565",
"0.57982165",
"0.5754474",
"0.5722179",
"0.5718608",
"0.56462026",
"0.56304276",
"0.5617256",
"0.5600288",
"0.55465186",
"0.55217654",
"0.5444789",
"0.5427819",
"0.5388042",
"0.53857225",
"0.53782415",
"0.5372364",
"0.53633225",
"0.5351845",
"0.53507",
"0.53505164",
"0.5350436",
"0.5348399",
"0.53170973",
"0.5291684",
"0.5282162",
"0.5273138",
"0.5245795",
"0.52198315",
"0.5214482",
"0.52113616",
"0.52112204",
"0.5199573",
"0.5181186",
"0.5162106",
"0.5149648",
"0.5148616",
"0.51462436",
"0.5138298",
"0.5121456",
"0.5099747",
"0.5092907",
"0.5089235",
"0.5089186",
"0.5089134",
"0.5075605",
"0.50679135",
"0.5044954",
"0.504087",
"0.5016144",
"0.50144595",
"0.50011915",
"0.4998778",
"0.49963194",
"0.49939904",
"0.49825904",
"0.49797645",
"0.49767312",
"0.49605805",
"0.49580482",
"0.49441797",
"0.49391246",
"0.49367207",
"0.4935138",
"0.49309748",
"0.492413",
"0.49037334",
"0.4902206",
"0.48956686",
"0.4885964",
"0.48800325",
"0.48734942",
"0.48721376",
"0.4871401",
"0.48637605",
"0.48614904",
"0.48588544",
"0.48576552",
"0.48575246",
"0.4856311",
"0.48498872",
"0.48493424",
"0.48479688",
"0.48436174",
"0.48429775",
"0.48411277",
"0.4838129",
"0.48365182",
"0.4835721",
"0.483122",
"0.48255417",
"0.48225725"
] | 0.7228928 | 0 |
Gyro constructor with a precreated analog channel object. Use this constructor when the analog channel needs to be shared. | public MyGyroscope(AnalogInput channel1, AnalogInput channel2, int mode) {
this.mMode = mode;
m_analog1 = channel1;
m_analog2 = channel2;
if (m_analog1 == null || m_analog2==null) {
throw new NullPointerException("AnalogInput supplied to Gyro constructor is null");
}
mAnalogs = new AnalogInput[2];
mAnalogs[0]= m_analog1;
mAnalogs[1]=m_analog2;
m_centers = new int[2];
m_offsets = new double[2];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Gyro360 (AnalogChannel channel) {\n super(channel);\n }",
"public void initGyro() {\r\n\t\tresult = new AccumulatorResult();\r\n\t\tif (m_analog1 == null || m_analog2 == null) {\r\n\t\t\tSystem.out.println(\"Null m_analog\");\r\n\t\t}\r\n\t\tm_voltsPerDegreePerSecond = kDefaultVoltsPerDegreePerSecond;\r\n\t\t\r\n\t\t\r\n\t\tm_analog1.setAverageBits(kAverageBits);\r\n\t\tm_analog1.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\tm_analog2.setAverageBits(kAverageBits);\r\n\t\tm_analog2.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\t\r\n\t\tdouble sampleRate = kSamplesPerSecond\r\n\t\t\t\t* (1 << (kAverageBits + kOversampleBits));\r\n\t\tAnalogInput.setGlobalSampleRate(sampleRate);\r\n\t\tTimer.delay(1.0);\r\n\r\n\t\tm_analog1.initAccumulator();\r\n\t\tm_analog1.resetAccumulator();\r\n\t\tm_analog2.initAccumulator();\r\n\t\tm_analog2.resetAccumulator();\r\n\r\n\t\tTimer.delay(kCalibrationSampleTime);\r\n\r\n\t\tfor(int i =0 ; i < mAnalogs.length; i++)\r\n\t\t{\r\n\t\t\tmAnalogs[i].getAccumulatorOutput(result);\r\n\t\r\n\t\t\tm_centers[i]= (int) ((double) result.value / (double) result.count + .5);\r\n\t\r\n\t\t\tm_offsets[i] = ((double) result.value / (double) result.count)\r\n\t\t\t\t\t- m_centers[i];\r\n\t\r\n\t\t\tmAnalogs[i].setAccumulatorCenter(m_centers[i]);\r\n\t\t\tmAnalogs[i].resetAccumulator();\r\n\t\r\n\t\t\t\r\n\t\t\t//LiveWindow.addSensor(\"Gyro\", m_analog.getChannel(), this);\r\n\t\t}\r\n\t\tif(mMode == TWO_CANCEL) setDeadband(kCancelDeadband);\r\n\t\telse if(mMode == TWO_DEADBAND) {\r\n\t\t\tsetDeadband1(0.0);\r\n\t\t\tmAccumulatedAngle = 0;\r\n\t\t}\r\n\t\t\r\n\t\tmOffset = 0;\r\n\t}",
"public Gyro (){\n try {\n /* Communicate w/navX MXP via the MXP SPI Bus. */\n /* Alternatively: I2C.Port.kMXP, SerialPort.Port.kMXP or SerialPort.Port.kUSB */\n /* See http://navx-mxp.kauailabs.com/guidance/selecting-an-interface/ for details. */\n gyro_board = new AHRS(SPI.Port.kMXP);\n\n last_world_linear_accel_x = gyro_board.getWorldLinearAccelX();\n last_world_linear_accel_y = gyro_board.getWorldLinearAccelY();\n last_check_time = Timer.getFPGATimestamp();\n\n initial_offset = gyro_board.getYaw();\n } catch (RuntimeException ex ) {\n DriverStation.reportError(\"Error instantiating navX MXP: \" + ex.getMessage(), true);\n }\n\n\n }",
"public Gyro2903(GYRO_TYPE gyroType) {\n\t\tgyroToUse = gyroType;\n\n\t\tswitch (gyroType) {\n\t\tcase ANALOG:\n\t\t\tgyro = new AnalogGyro(RobotMap.AnalogGyro);\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tspi = new ADXRS450_Gyro(SPI.Port.kOnboardCS0);\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\timu = new ADIS16448_IMU();\n\t\t\tbreak;\n\t\t}\n\t}",
"public Gyro360 (int port) {\n super(port);\n }",
"public interface Gyro {\n /**\n * Get the amount of time the gyro spends calibrating\n *\n * @return Length of gyro calibration period\n */\n double getCalibrationPeriod();\n\n /**\n * Set the amount of time the gyro will spend calibrating\n *\n * @param calibrationPeriod Desired length of gyro calibration period\n */\n void setCalibrationPeriod(double calibrationPeriod);\n\n /**\n * Reset calibration and angle monitoring\n */\n void fullReset();\n\n /**\n * Starts calibrating the gyro. Resets the calibration value and begins\n * sampling gyro values to get the average 0 value. Sample time determined\n * by calibrationTicks\n */\n void startCalibration();\n\n /**\n * Finishes calibration. Stops calibrating and sets the calibration value.\n */\n void finishCalibration();\n\n /**\n * Gets the zero point for rate measurement\n *\n * @return The offset found by calibration\n */\n double getCalibrationOffset();\n\n /**\n * Checks if the gyro is currently calibrating.\n * If it is, measured rate and angle values are not guaranteed to be accurate.\n *\n * @return Whether the gyro is currently calibrating\n */\n boolean isCalibrating();\n\n /**\n * Gets the rate of yaw change from the gyro\n *\n * @return The rate of yaw change in degrees per second, positive is clockwise\n */\n double getRate();\n\n /**\n * Gets the yaw of the gyro\n *\n * @return The yaw of the gyro in degrees\n */\n double getAngle();\n\n /**\n * Resets the current angle of the gyro to zero\n */\n void resetAngle();\n}",
"public static Gyro getGyro() {\n return sGyro;\n }",
"public Mech() {\n this(Mech.GYRO_STANDARD, Mech.COCKPIT_STANDARD);\n }",
"public double[] getGyro();",
"public Gyro360 (int slot, int port) {\n super(slot, port);\n }",
"public void updateGyro() {\n\t\tangleToForward = gyro.getAngle();\n\t\tif (angleToForward >= 360) {\n\t\t\tangleToForward -= 360;\n\t\t} else if (angleToForward < 0) {\n\t\t\tangleToForward += 360;\n\t\t}\n\n\t}",
"public Drive() {\r\n \tgyro.calibrate();\r\n \tgyro.reset();\r\n }",
"public void calibrateGyro() {\n gyro.SetYaw(0);\n }",
"@Override\n public void gyroYaw(int value, int timestamp) {\n }",
"@Override\n public void initialize() {\n m_drive.resetGyro();// first call\n m_drive.resetEncoders();\n m_drive.lockMotors();\n }",
"public void resetGyro(){\n //TODO:Reset the gyro(zero it)\n }",
"private void CalibrateGyro() {\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu.initialize(parameters);\n while (!imu.isGyroCalibrated()){}\n }",
"protected void initialize() {\n \tRobot.gyroSubsystem.reset();\n \tstartAngle = Robot.gyroSubsystem.gyroPosition();\n \ttargetAngle = startAngle + goal;\n }",
"public BasicSensor() {}",
"public AccelerometerInterface(int accelerometerChannel, ADXL345_I2C.DataFormat_Range range)\n {\n accel = new ADXL345_I2C(accelerometerChannel, range);\n// accel = new Accelerometer(accelerometerChannel);\n lastTime = System.currentTimeMillis();\n velocity = 0;\n position = 0;\n }",
"@Override\n\t\tpublic void onGyroscopeData(Myo myo, long timestamp, Vector3 gyro) {\n\t\t\tsuper.onGyroscopeData(myo, timestamp, gyro);\n\t\t}",
"public RealBuffer(float[] samples)\n {\n super(samples);\n }",
"@Override\r\n\tpublic String getSmartDashboardType() {\r\n\t\treturn \"Gyro\";\r\n\t}",
"protected void initialize() {\n //drivetrain.initGyro();\n }",
"@Override\n public void robotInit() {\n\n // Motor controllers\n leftMotor = new CANSparkMax(1, MotorType.kBrushless);\n leftMotor.setInverted(false);\n leftMotor.setIdleMode(IdleMode.kBrake);\n\n CANSparkMax leftSlave1 = new CANSparkMax(2, MotorType.kBrushless);\n leftSlave1.setInverted(false);\n leftSlave1.setIdleMode(IdleMode.kBrake);\n leftSlave1.follow(leftMotor);\n\n CANSparkMax leftSlave2 = new CANSparkMax(3, MotorType.kBrushless);\n leftSlave2.setInverted(false);\n leftSlave2.setIdleMode(IdleMode.kBrake);\n leftSlave2.follow(leftMotor);\n\n rightMotor = new CANSparkMax(4, MotorType.kBrushless);\n rightMotor.setInverted(false);\n rightMotor.setIdleMode(IdleMode.kBrake);\n\n CANSparkMax rightSlave1 = new CANSparkMax(5, MotorType.kBrushless);\n rightSlave1.setInverted(false);\n rightSlave1.setIdleMode(IdleMode.kBrake);\n rightSlave1.follow(leftMotor);\n\n CANSparkMax rightSlave2 = new CANSparkMax(6, MotorType.kBrushless);\n rightSlave2.setInverted(false);\n rightSlave2.setIdleMode(IdleMode.kBrake);\n rightSlave2.follow(leftMotor);\n\n // Encoders\n leftEncoder = leftMotor.getEncoder();\n rightEncoder = rightMotor.getEncoder();\n\n // Gyro\n gyro = new ADXRS450_Gyro();\n\n }",
"public void resetGyro () {\n gyro.reset();\n }",
"public double getGyroInRad(){\n return 0.0;//TODO:Pull and return gyro in radians\n }",
"public DataStorage (SensorManager sensorManager, Sensor gyro, Sensor acceleromter) {\n this.sensorManager = sensorManager;\n this.sensor = gyro;\n\n dataPoints = new LinkedList<>();\n gyroListener = new GyroListener();\n accelListener = new AccelListener();\n sensorManager.registerListener(gyroListener, gyro, SensorManager.SENSOR_DELAY_GAME);\n sensorManager.registerListener(accelListener, acceleromter, SensorManager.SENSOR_DELAY_GAME);\n }",
"@Override\n public void gyroRoll(int value, int timestamp) {\n }",
"protected void initialize() {\n \tDrivetrain.gyro.reset();\n }",
"public void resetGyroAngle() {\n\t\tgyro.reset();\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n timestamp = event.timestamp;\n gyroX = event.values[0];\n gyroY = event.values[1];\n gyroZ = event.values[2];\n\n this.setChanged();\n this.notifyObservers(Sensor.TYPE_GYROSCOPE);\n }",
"public Rotation2d getGyro() {\n\t\treturn Rotation2dKt.getDegree(gyro.getAngle() - gyroZero);\n\t}",
"public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }",
"private void remapGyroVector(){\n\t\tif (referenceGyroMatrix == null){\n\t\t\ttempGyroMatrix = new float[16];\n\t\t\treferenceGyroMatrix = new float[16];\n\t\t\tMatrix.setIdentityM(tempGyroMatrix, 0);\n\t\t\tSensorManager.remapCoordinateSystem(tempGyroMatrix, remapX, remapY, referenceGyroMatrix);\n\t\t\tSystem.arraycopy(referenceGyroMatrix, 0, tempGyroMatrix, 0, 16);\n\t\t\tthis.remappedGyro = new float[4];\n\t\t\tthis.tempGyroValues = new float[4];\n\t\t\t//need to transpose, since sensor manager and matrix use different notations\n\t\t\t//Matrix.transposeM(referenceGyroMatrix, 0, tempGyroMatrix, 0);\n\t\t}\n\t\t\n\t\tfloat[] gyroValues = getValues(VALUE_KEYS.GYRO.name());\n\t\t//System.arraycopy(gyroValues, 0, this.gyroValues, 0, 3);\n\t\tSystem.arraycopy(gyroValues, 0, this.tempGyroValues, 0, 3);\n\t\tMatrix.multiplyMV(this.remappedGyro, 0, referenceGyroMatrix, 0, this.tempGyroValues, 0);\n\t\tSystem.arraycopy(this.remappedGyro, 0, this.finalGyroValues, 0, 3);\n\t\t\n\t}",
"public HiTechnicMagneticSensor(AnalogPort port) {\r\n super(port);\r\n init();\r\n }",
"public Sensor() {\n if(this.rawData == null)\n this.rawData = new Vector<SensorData>();\n }",
"@Override\n public void gyroPitch(int value, int timestamp) {\n }",
"public double getGyroInDeg(){\n return 0.0;//TODO:Pull gyro in radians and convert to degrees\n }",
"public void initialize() {\n\n Robot.driveSubsystem.resetGyro();\n\n }",
"public SensorReader() {\n\t\tinit();\n\t}",
"public void zeroGyroscope() {\n mGyroOffset = getGyroscopeRotation(false);\n }",
"public Feedback(){\n\n\t\tleftVL = new DigitalInput(RobotPorts.leftVL);\n\t\trightVL = new DigitalInput(RobotPorts.rightVL);\n\n\t\ttoteDetectorLow = new DigitalInput(RobotPorts.toteDetectorLow);\n\t\ttoteDetectorHigh = new DigitalInput(RobotPorts.toteDetectorHigh);\n\n\t\taccel = new BuiltInAccelerometer();\n\t}",
"public Drivetrain(){\r\n LeftSlave.follow(LeftMaster);\r\n RightSlave.follow(RightMaster);\r\n\r\n RightMaster.setInverted(true);\r\n LeftMaster.setInverted(true);\r\n\r\n gyro.reset();\r\n}",
"public Cylinder() {\n\t\tthis(1.0);\n\t}",
"public DampenedMotor(int channel) {\n\t\tsuper(channel);\n\t\tcurrentSpeed = 0;\n\t\ttargetSpeed = 0;\n\t}",
"public GameClient(WritableByteChannel w) {\r\n super(new Client(Config.WRITE_BUFFER_SIZE, Config.OBJECT_BUFFER_SIZE), w, null);\r\n }",
"public interface AirboatSensor {\n\n\t// Get 3D raw gyro readings\n\tpublic double[] getGyro();\n}",
"void initialize() {\n setClockSource(MPU6050_CLOCK_PLL_INTERNAL);\n setFullScaleGyroRange(MPU6050_GYRO_FS_250);\n setFullScaleAccelRange(MPU6050_ACCEL_FS_2);\n }",
"public DriveTrain(){\r\n super(\"Drive Train\");\r\n Log = new MetaCommandLog(\"DriveTrain\", \"Gyro\" , \"Left Jaguars,Right Jaguars\");\r\n gyro1 = new Gyro(RobotMap.AnalogSideCar , RobotMap.DriveTrainGyroInput);\r\n lfJag = new Jaguar(RobotMap.frontLeftMotor);\r\n lfRearJag = new Jaguar(RobotMap.rearLeftMotor);\r\n rtJag = new Jaguar(RobotMap.frontRightMotor);\r\n rtRearJag = new Jaguar(RobotMap.rearRightMotor);\r\n drive = new RobotDrive(lfJag, lfRearJag, rtJag, rtRearJag);\r\n \r\n //lfFrontJag = new Jaguar (3);\r\n //rtFrontJag = new Jaguar (4);\r\n \r\n //joystick2 = new Joystick(2);\r\n //sensor1 = new DigitalInput(1);\r\n //sensor2 = new DigitalInput (2);\r\n\r\n }",
"public Compass(Context context) {\n this.context = context;\n mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);\n mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n mMagnetometer = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);\n }",
"public GLKQuaternion() {}",
"public RegistroSensor() \n {\n\n }",
"public RainCollectorSensor() {\r\n\t\trecalibrateData();\r\n\t\tmetric = true; \r\n\t}",
"public double getGyroAngleX() {\n return m_gyro.getAngleX();\n }",
"public RjgodoyProvider() {\r\n\t\tsuper(\"RJGODOY\",1.0,\"RJGodoy Provider implementing client for TRNG www.random.org and random.irb.hr\");\r\n\t\tsynchronized (RjgodoyProvider.class) {\r\n\t\t\tinit_sr(\"QRBG\",hr.irb.random.QrbgSecureRandomSpi.class);\r\n\t\t\tinit_sr(\"MH_TRNG\",MH_SecureRandomSpi.class);\r\n\t\t}\r\n\t}",
"public void add(double angle) {\n GyroReading gyroReading = new GyroReading(angle, System.currentTimeMillis());\n\n add(gyroReading);\n }",
"protected Sensor(android.hardware.Sensor sensor, int sampleRate, int savePeriod,\n float smoothness, String displayedSensorName, SensorType sensorType,\n MeasurementSystems rawDataMeasurementSystem,\n MeasurementUnits rawDataMeasurementUnit) {\n this.isInternalSensor = true;\n\n this.sensorID = sensor.getType();\n this.sampleRate = sampleRate;\n this.savePeriod = savePeriod;\n this.smoothness = smoothness;\n this.displayedSensorName = displayedSensorName;\n this.sensorType = sensorType;\n this.rawDataMeasurementSystem = rawDataMeasurementSystem;\n this.displayedMeasurementSystem = rawDataMeasurementSystem;\n this.rawDataMeasurementUnit = rawDataMeasurementUnit;\n this.displayedMeasurementUnit = rawDataMeasurementUnit;\n this.graphType = GraphType.LINE;\n\n SensorManager.addNewSensor(this);\n }",
"public void initialize() {\n\t\tdrivetrain.resetGyro();\n\t\tdrivetrain.setAngleTarget(getTargetAngle());\n\t\tLog.debug(this.getClass().toString()+ \".initialize called drivetrain.setAngleTarget(\" + getTargetAngle() + \")\");\n\t\t\n\n\t}",
"public PositionTracker(ADXRS450_Gyro gyro, \n\t\t\tEncoder encLeft, Encoder encRight, int cyclesPerRevolution, \n\t\t\tdouble wheelDiameter, double distanceBetweenWheels) {\n\t\t\n\t\tthis.gyro = gyro;\n\t\tthis.encoders = new Encoder[] {encLeft, encRight};\n\t\t\n\t\tthis.cyclesPerRev = cyclesPerRevolution;\n\t\tthis.currentRevs = 0;\n\t\t\n\t\tthis.wheelDiameter = wheelDiameter;\n\t\tthis.rotationRadius = distanceBetweenWheels / 2;\n\t\t\n\t\tthis.lastEncPos[0] = encLeft.get();\n\t\tthis.lastEncPos[1] = encRight.get();\n\t\t\n\t\tpositionThread.start();\n\t\t\n\t\tSystem.out.println(\"Starting position tracker...\");\n\t}",
"public boolean addGyro() {\n if (getEmptyCriticals(LOC_CT) < 4) {\n return false;\n }\n addCompactGyro();\n addCritical(LOC_CT, 5, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n addCritical(LOC_CT, 6, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n setGyroType(GYRO_STANDARD);\n return true;\n }",
"public SensorData() {\n\n\t}",
"protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }",
"protected void initialize() {\n \tRobot.io.bottomGyro.reset();\n \tRobot.io.topGyro.reset();\n \tpid.reset();\n \tpid.setSetpoint(rotAngle);\n \tpid.enable();\n }",
"public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }",
"@Override\n public void runOpMode() {\n androidGyroscope = new AndroidGyroscope();\n\n // Put initialization blocks here.\n if (androidGyroscope.isAvailable()) {\n telemetry.addData(\"Status\", \"GyroAvailable\");\n }\n waitForStart();\n if (opModeIsActive()) {\n // Put run blocks here.\n androidGyroscope.startListening();\n androidGyroscope.setAngleUnit(AngleUnit.DEGREES);\n while (opModeIsActive()) {\n telemetry.addData(\"X Axis\", androidGyroscope.getX());\n telemetry.update();\n }\n }\n }",
"public static ReferenceSensor create(UUID channelId, String instrumentManufacturer,\n String instrumentModel, String serialNumber, int numberOfComponents,\n double cornerPeriod, double lowPassband, double highPassband,\n Instant actualTime, Instant systemChangeTime,\n InformationSource informationSource, String comment) {\n\n return new ReferenceSensor(channelId, instrumentManufacturer, instrumentModel,\n serialNumber, numberOfComponents, cornerPeriod, lowPassband, highPassband,\n actualTime, systemChangeTime, informationSource, comment);\n }",
"protected Sensor(int gpsSensorID, int sampleRate, int savePeriod,\n float smoothness, String displayedSensorName, SensorType sensorType,\n MeasurementSystems rawDataMeasurementSystem,\n MeasurementUnits rawDataMeasurementUnit) {\n this.isInternalSensor = true;\n\n this.sensorID = gpsSensorID;\n this.sampleRate = sampleRate;\n this.savePeriod = savePeriod;\n this.smoothness = smoothness;\n this. displayedSensorName = displayedSensorName;\n this.sensorType = sensorType;\n this.rawDataMeasurementSystem = rawDataMeasurementSystem;\n this.displayedMeasurementSystem = rawDataMeasurementSystem;\n this.rawDataMeasurementUnit = rawDataMeasurementUnit;\n this.displayedMeasurementUnit = rawDataMeasurementUnit;\n this.graphType = GraphType.LINE;\n\n SensorManager.addNewSensor(this);\n }",
"public RotationComponent fromRadians(float radians) {\n\trotation = radians * MathUtils.radiansToDegrees;\n\n\treturn this;\n }",
"public DriveTrain (int motorChannelL1,int motorChannelL2,int motorChannelR1,int motorChannelR2 ){\n leftMotor1 = new Victor(motorChannelL1);\n leftMotor2 = new Victor(motorChannelL2);\n rightMotor1 = new Victor(motorChannelR1);\n rightMotor2 = new Victor(motorChannelR2);\n highDrive = new RobotDrive(motorChannelL1, motorChannelR1);\n lowDrive = new RobotDrive(motorChannelL2, motorChannelR2);\n \n }",
"public IRSensorSubsystem() {\n\n }",
"public double getGyroAngleY() {\n return m_gyro.getAngleY();\n }",
"public GameClient(ReadableByteChannel r) {\r\n super(null, null, r);\r\n }",
"public double GyroPosition() {\n\t\tswitch (gyroToUse) {\n\t\tcase ANALOG:\n\t\t\tgyroAngle = gyro.getAngle();\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tgyroAngle = spi.getAngle();\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\tgyroAngle = imu.getAngleZ();\n\t\t\tbreak;\n\t\t}\n\n\t\tgyroAngle = gyroAngle % 360;\n\n\t\t// SmartDashboard.putNumber(\"gyroAngle\", gyroAngle);\n\t\treturn gyroAngle;\n\n\t}",
"public TRIP_Sensor () {\n super();\n }",
"@Override\n public void init() {\n telemetry.addData(\">\", \"Initializing...\");\n telemetry.update();\n\n // Sensors\n gyro = new Gyro(hardwareMap, \"gyro\");\n if (!gyro.isAvailable()) {\n telemetry.log().add(\"ERROR: Unable to initalize gyro\");\n }\n\n // Drive motors\n tank = new WheelMotorConfigs().init(hardwareMap, telemetry);\n tank.stop();\n\n // Vuforia\n vuforia = new VuforiaFTC(VuforiaConfigs.AssetName, VuforiaConfigs.TargetCount,\n VuforiaConfigs.Field(), VuforiaConfigs.Bot());\n vuforia.init();\n\n // Wait for the game to begin\n telemetry.addData(\">\", \"Ready for game start\");\n telemetry.update();\n }",
"private void saveGyroData(float axis_x, float axis_y, float axis_z, long timestamp){\n //Log.v(TAG, \"saveGyroData:: axis_x: \"+axis_x+\" axis_y: \"+axis_y+\" axis_z: \"+axis_z);\n //SensorData sensorData = new SensorData(axis_x, axis_y, axis_z, Util.getTimeMillis(System.currentTimeMillis()));\n SensorData sensorData = new SensorData(axis_x, axis_y, axis_z, Util.getTimeMillis(timestamp));\n listGyroData.add(sensorData);\n }",
"public JPEGImage(double[][][] yCbCrData) {\n read(yCbCrData);\n }",
"public Mecanum()\n\t{\n\t\tmd.setMaxOutput(TELEOP_SPEED); // spitfire\n\t\tmd.setDeadband(0.05);\n\n\t\tresetGyro();\n\t\tresetEncoders();\n \n rfEncoder.setPositionConversionFactor(0.0454);\n rbEncoder.setPositionConversionFactor(0.0454);\n lfEncoder.setPositionConversionFactor(0.0454);\n\t\tlbEncoder.setPositionConversionFactor(0.0454);\n\t\t\n rf.setInverted(true);\n\n\t\tlb.setIdleMode(kCoast);\n\t\trf.setIdleMode(kCoast);\n\t\trb.setIdleMode(kCoast);\n\t\tlf.setIdleMode(kCoast);\n\n\t\tlf.burnFlash();\n\t\tlb.burnFlash();\n\t\trf.burnFlash();\n\t\trb.burnFlash();\n\n\t\tSmartDashboard.putData((Sendable) gyro);\n\t}",
"public RNGRandomImpl() {\n\t\tsetRand(new Random());\n\t}",
"public AnalogMeasurement(AnalogChannel source, int chan, int type)\n\t{\n\t\tmSource=source;\n\t\tmType=type;\n\t\tmChan=chan;\n\t}",
"public Camera(){\n // servoPan = new Servo(PAN);\n servoTilt = new Servo(TILT);\n }",
"public AudioChannel() {\r\n\t\t// Default temporary location file has to be picked.\r\n\t\tString defalultFileName = getFileName(null, \"wav\");\r\n\t\tfile = new File( defalultFileName );\r\n\t}",
"public void init(HardwareMap ahwMap) {\n // Save reference to Hardware map\n hwMap = ahwMap;\n\n // Define and Initialize Motors\n// frontLeft = hwMap.get(DcMotor.class, \"frontLeft\");\n// frontRight = hwMap.get(DcMotor.class, \"frontRight\");\n// backLeft = hwMap.get(DcMotor.class, \"backLeft\");\n// lift = hwMap.get(DcMotor.class, \"lift\");\n// backRight = hwMap.get(DcMotor.class, \"backRight\");\n\n leftIntake = hwMap.get(DcMotor.class, \"leftIntake\");\n rightIntake = hwMap.get(DcMotor.class, \"rightIntake\");\n dropper = hwMap.get(DcMotor.class, \"dropper\");\n\n\n //range = hwMap.get(ModernRoboticsI2cRangeSensor.class, \"range\");\n gyro = (ModernRoboticsI2cGyro)hwMap.gyroSensor.get(\"gyro\");\n //color = hwMap.get(ModernRoboticsI2cColorSensor.class, \"color\");\n\n frontLeft.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n frontRight.setDirection(DcMotor.Direction.FORWARD);// Set to FORWARD if using AndyMark motors\n backLeft.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n backRight.setDirection(DcMotor.Direction.FORWARD);// Set to FORWARD if using AndyMark motors\n\n // Set all motors to zero power\n frontLeft.setPower(0);\n frontRight.setPower(0);\n backLeft.setPower(0);\n backRight.setPower(0);\n leftIntake.setPower(0);\n rightIntake.setPower(0);\n dropper.setPower(0);\n\n // Set all motors to run without encoders.\n // May want to use RUN_USING_ENCODERS if encoders are installed.\n frontLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n frontRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n backLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n backRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n leftIntake.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightIntake.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n dropper.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n // Define and initialize ALL installed servos.\n\n// claimingArm = hwMap.get(Servo.class, \"claimingArm\");\n// claw1 = hwMap.get(Servo.class, \"claw1\");\n// claw2 = hwMap.get(Servo.class, \"claw2\");\n// samplingArm = hwMap.get(Servo.class, \"samplingArm\");\n\n helper = hwMap.get(Servo.class, \"helper\");\n leftUp = hwMap.get(Servo.class, \"leftUp\");\n rightUp = hwMap.get(Servo.class, \"rightUp\");\n outLeft = hwMap.get(Servo.class, \"outLeft\");\n outRight = hwMap.get(Servo.class, \"outRight\");\n\n// claimingArm.setPosition(0); // find out what servo they are using\n// claw1.setPosition(0);\n// claw2.setPosition(0);\n// samplingArm.setPosition(0);\n\n helper.setPosition(MID_SERVO);\n leftUp.setPosition(MID_SERVO);\n rightUp.setPosition(MID_SERVO);\n outLeft.setPosition(0.5);\n outRight.setPosition(0.5);\n\n dim = hwMap.get(DeviceInterfaceModule.class, \"Device Interface Module 1\");\n\n }",
"public HiTechnicMagneticSensor(Port port) {\r\n super(port);\r\n init();\r\n }",
"public AngleIF() {\n \t\t//_navx = new navx();\n \t\t//roboAccel = new RoboRioAccelerometers();\n \t}",
"public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }",
"public RngObject() {\n\t\t\n\t}",
"public PerforceSensor() {\r\n //nothing yet.\r\n }",
"public Sensor(IGarmentDriver sensorDriver, int sampleRate, int savePeriod, float smoothness,\n String displayedSensorName, SensorType sensorType, String bluetoothID,\n MeasurementSystems rawDataMeasurementSystem, MeasurementUnits rawDataMeasurementUnit,\n MeasurementSystems displayedMeasurementSystem, MeasurementUnits displayedMeasurementUnit) {\n isInternalSensor = false;\n\n // compute the lowest external sensorID which is not forgiven yet\n int id = 100;\n for (Sensor sensor : SensorManager.getAllSensors()) {\n if (id <= sensor.getSensorID()) {\n id = sensor.getSensorID() + 1;\n }\n }\n\n sensorID = id;\n\n this.sensorDriver = sensorDriver;\n this.sampleRate = sampleRate;\n this.savePeriod = savePeriod;\n this.smoothness = smoothness;\n this.displayedSensorName = displayedSensorName;\n this.sensorType = sensorType;\n this.bluetoothID = bluetoothID;\n this.rawDataMeasurementSystem = rawDataMeasurementSystem;\n this.rawDataMeasurementUnit = rawDataMeasurementUnit;\n this.displayedMeasurementSystem = displayedMeasurementSystem;\n this.displayedMeasurementUnit = displayedMeasurementUnit;\n this.graphType = GraphType.LINE;\n this.isEnabled = true;\n\n SensorManager.addNewSensor(this);\n }",
"public ElectricCar(double enginePower) {\n super(0);\n\n this.enginePower = enginePower;\n }",
"public void onSensorChanged(SensorEvent event) {\n\t\t\tint type = event.sensor.getType();\n\t\t\tif (type == Sensor.TYPE_ACCELEROMETER) {\n\t\t\t\tlong curTime = System.currentTimeMillis();\n\t\t\t\t// only allow one update every 100ms, otherwise updates\n\t\t\t\t// come way too fast and the phone gets bogged down\n\t\t\t\t// with garbage collection\n\t\t\t\t//Log.d(TAG, \"onSensorChanged(\"+type+\")\");\t\t\t\t\n\t\t\t\tif (lastUpdate == -1 || (curTime - lastUpdate) > 40) {\n\t\t\t\t\tlastUpdate = curTime;\t\t\t\t\n\t\t\t\t\tsynchronized (LOCK){\n\t\t\t\t\t\tmLastAccOrientation = calculateAngle(event);\n\t\t\t\t\t\tmLastSample.x = event.values[0];\n\t\t\t\t\t\tmLastSample.y = event.values[1];\n\t\t\t\t\t\tmLastSample.z = event.values[2];\n\t\t\t\t\t\tmLastSample.angle = mLastAccOrientation.angle;\t\t\n\t\t\t\t\t\t//mLastSample.orientation = mLastAccOrientation.orientation;\n\t\t\t\t\t\tmLastSample.orientation = mLastAccOrientation.rotation*90;\n\t\t\t\t\t\tmLastSample.threshold = mLastAccOrientation.threshold;\n\t\t\t\t\t\tmBuffer = mLastSample.x+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.y+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.z+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.angle+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.orientation+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.threshold;\n\t\t\t\t\t\tif (mShowLog)\n\t\t\t\t\t\t\tLog.d(TAG, mBuffer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public Voice(int brr_buf_size)\r\n\t{\r\n\t\tbuffer = new ModuloArray(brr_buf_size);\r\n\t}",
"RegisterSensor() {\n }",
"@Override\n public void init(double pNow) {\n if(mTargetHeading == null) {\n mTargetHeading = Rotation2d.fromDegrees(mData.imu.get(EGyro.YAW_DEGREES));\n }\n mInitialDistance = getAverageDriveDistance();\n mLastTime = pNow;\n\n mHeadingController.setContinuous(true);\n mHeadingController.setOutputRange(-1.0, 1.0);\n mHeadingController.reset();\n }",
"@Override\n public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n\n telemetry.addData(\"Status\", \"Initialized\");\n\n //the below lines set up the configuration file\n BallSensor = hardwareMap.i2cDevice.get(\"BallSensor\");\n\n BallSensorreader = new I2cDeviceSynchImpl(BallSensor, I2cAddr.create8bit(0x3a), false);\n\n BallSensorreader.engage();\n\n sensorGyro = hardwareMap.gyroSensor.get(\"gyro\"); //Point to the gyro in the configuration file\n mrGyro = (ModernRoboticsI2cGyro)sensorGyro; //ModernRoboticsI2cGyro allows us to .getIntegratedZValue()\n mrGyro.calibrate(); //Calibrate the sensor so it knows where 0 is and what still is. DO NOT MOVE SENSOR WHILE BLUE LIGHT IS SOLID\n\n //touch = hardwareMap.touchSensor.get(\"touch\");\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n telemetry.update();\n\n }",
"public ImageRotator(int receivedAngle){angle = receivedAngle;}",
"@Override\n public void init() {\n // Get references to dc motors and set initial mode and direction\n // It appears all encoders are reset upon robot startup, but just in case, set all motor\n // modes to Stop-And-Reset-Encoders during initialization.\n motorLeftA = hardwareMap.dcMotor.get(MOTOR_DRIVE_LEFT_A);\n motorLeftA.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorLeftA.setDirection(DcMotor.Direction.FORWARD);\n\n motorLeftB = hardwareMap.dcMotor.get(MOTOR_DRIVE_LEFT_B);\n motorLeftB.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorLeftB.setDirection(DcMotor.Direction.FORWARD);\n\n motorRightA = hardwareMap.dcMotor.get(MOTOR_DRIVE_RIGHT_A);\n motorRightA.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRightA.setDirection(DcMotor.Direction.REVERSE);\n\n motorRightB = hardwareMap.dcMotor.get(MOTOR_DRIVE_RIGHT_B);\n motorRightB.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRightB.setDirection(DcMotor.Direction.REVERSE);\n\n //motorGlyphLift = hardwareMap.dcMotor.get(GLYPH_LIFT);\n //motorGlyphLift.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n //motorGlyphLift.setDirection(DcMotor.Direction.FORWARD);\n\n sGlyphL = hardwareMap.servo.get(GLYPH_LEFT);\n //sGlyphL.scaleRange(0,180);\n\n sGlyphR = hardwareMap.servo.get(GLYPH_RIGHT);\n sGem = hardwareMap.servo.get(Gem);\n\n //Initialize vex motor\n sGLift = hardwareMap.crservo.get(Servo_GlyphLift);\n\n //sGLift.setPower(0);\n\n //sGLift2 = hardwareMap.servo.get(Servo_GlyphLift);\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n imu = hardwareMap.get(BNO055IMU.class,\"imu\");\n imu.initialize(parameters);\n\n //servoGlyph1.setPosition(180);\n //servoGlyph2.setPosition(180);\n\n bDirection = true;\n }",
"public DriveSubsystem() {\n m_leftSpark1 = new CANSparkMax(DriveConstants.kLeftMotor1Port, MotorType.kBrushless);\n m_leftSpark2 = new CANSparkMax(DriveConstants.kLeftMotor2Port, MotorType.kBrushless);\n m_rightSpark1 = new CANSparkMax(DriveConstants.kRightMotor1Port, MotorType.kBrushless);\n m_rightSpark2 = new CANSparkMax(DriveConstants.kRightMotor2Port, MotorType.kBrushless);\n\n initSparkMax(m_leftSpark1);\n initSparkMax(m_leftSpark2);\n initSparkMax(m_rightSpark1);\n initSparkMax(m_rightSpark2);\n\n m_leftSpark2.follow(m_leftSpark1);\n m_rightSpark2.follow(m_rightSpark2);\n\n m_leftEncoder = m_leftSpark1.getEncoder();\n m_rightEncoder = m_rightSpark1.getEncoder();\n\n m_drive = new DifferentialDrive(m_leftSpark1, m_rightSpark1);\n }",
"public static AngularVelocity newRadiansPerSecondValue()\n\t{\n\t\treturn new AngularVelocity(0.0, AngularVelocityUnit.RADIANS_PER_SEC);\n\t}"
] | [
"0.796228",
"0.7104499",
"0.6779015",
"0.639652",
"0.6316717",
"0.6303742",
"0.620439",
"0.5904325",
"0.58995837",
"0.5770345",
"0.56756926",
"0.56488484",
"0.55977476",
"0.55960214",
"0.55763215",
"0.5561058",
"0.55474985",
"0.55424577",
"0.5489092",
"0.5418006",
"0.53754497",
"0.5363691",
"0.5327723",
"0.53194654",
"0.5310871",
"0.53068143",
"0.52896565",
"0.52719873",
"0.52713394",
"0.5260646",
"0.5253654",
"0.5250149",
"0.5241359",
"0.5211088",
"0.51859415",
"0.5163567",
"0.5135563",
"0.5131309",
"0.51312673",
"0.511015",
"0.5095296",
"0.5084963",
"0.5064478",
"0.50547904",
"0.5043812",
"0.5038351",
"0.5032578",
"0.5026021",
"0.49991834",
"0.49988315",
"0.49939537",
"0.49908873",
"0.49676687",
"0.49407116",
"0.49401665",
"0.49268666",
"0.49179903",
"0.49010178",
"0.48808843",
"0.48546788",
"0.48452118",
"0.48410416",
"0.48382494",
"0.48287216",
"0.48245034",
"0.48187807",
"0.48091498",
"0.48057637",
"0.4801216",
"0.47968355",
"0.47937137",
"0.4790281",
"0.47877413",
"0.47815788",
"0.47716632",
"0.47602147",
"0.4753896",
"0.4750929",
"0.47454226",
"0.47216702",
"0.4711015",
"0.47076038",
"0.47031114",
"0.47000888",
"0.4699089",
"0.46958402",
"0.46892634",
"0.46746066",
"0.4670964",
"0.46694714",
"0.46688256",
"0.4667757",
"0.46669036",
"0.4666745",
"0.46629944",
"0.46627688",
"0.46622837",
"0.46541744",
"0.4654093",
"0.46538457"
] | 0.71721184 | 1 |
Reset the gyro. Resets the gyro to a heading of zero. This can be used if there is significant drift in the gyro and it needs to be recalibrated after it has been running. | public void reset() {
for(AnalogInput m_analog : mAnalogs)
{
if (m_analog != null) {
m_analog.resetAccumulator();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resetGyro(){\n //TODO:Reset the gyro(zero it)\n }",
"public void resetGyro () {\n gyro.reset();\n }",
"public void resetGyroAngle() {\n\t\tgyro.reset();\n\t}",
"public void zeroHeading() {\n m_gyro.reset();\n }",
"public void zeroHeading() {\n gyro.reset();\n gyro.zeroYaw();\n }",
"public void calibrateGyro() {\n gyro.SetYaw(0);\n }",
"public void zeroGyroscope() {\n mGyroOffset = getGyroscopeRotation(false);\n }",
"public void resetGyroAngle(double angle) {\n\t\tgyro.resetGyroAngle(angle);\n\t}",
"public void resetAngle() {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n globalAngle = 0;\n\n }",
"private void resetAngle() {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n startAngles = lastAngles;\n globalAngle = 0;\n }",
"public void updateGyro() {\n\t\tangleToForward = gyro.getAngle();\n\t\tif (angleToForward >= 360) {\n\t\t\tangleToForward -= 360;\n\t\t} else if (angleToForward < 0) {\n\t\t\tangleToForward += 360;\n\t\t}\n\n\t}",
"private void resetAngle() {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n globalAngle = 0;\n }",
"private void resetAngle()\n {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n globalAngle = 0;\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 resetAngle() {\n\t\tnavx.zeroYaw();\n\t}",
"public void resetPosition() {\n\t\tposition = new double[3];\n\t\tgyroOffset = 0;\n\t}",
"protected void initialize() {\n \tRobot.gyroSubsystem.reset();\n \tstartAngle = Robot.gyroSubsystem.gyroPosition();\n \ttargetAngle = startAngle + goal;\n }",
"protected void initialize() {\n \tDrivetrain.gyro.reset();\n }",
"public void initialize() {\n\n Robot.driveSubsystem.resetGyro();\n\n }",
"public void resetAngle() {\n\t\t//this.angle = (this.orientation % 4 + 4) * (90);\n\t\tthis.angle = this.orientation * 90*-1;\n\t\tthis.tweenAngle.setCurrentValue(this.angle);\n\t\tthis.tweenAngle.setTargetValue(this.angle);\n\t}",
"public synchronized void reset(){\n\t\tif(motor.isMoving())\n\t\t\treturn;\n\t\tmotor.rotateTo(0);\n\t}",
"public void resetYVel() {\n this.yVel = 0;\n }",
"public void reset () {\n if (!this.on) {\n return;\n }\n\n this.currentSensorValue = 0;\n }",
"@Override\n public void resetAccelY()\n {\n }",
"public void reset() {\n // stop motors\n Motor.A.stop();\t\n Motor.A.setPower(0);\t\n Motor.B.stop();\n Motor.B.setPower(0);\t\n Motor.C.stop();\n Motor.C.setPower(0);\t\n // passivate sensors\n Sensor.S1.passivate();\n Sensor.S2.passivate();\n Sensor.S3.passivate();\n for(int i=0;i<fSensorState.length;i++)\n fSensorState[i] = false;\n }",
"void resetAngle();",
"public Gyro (){\n try {\n /* Communicate w/navX MXP via the MXP SPI Bus. */\n /* Alternatively: I2C.Port.kMXP, SerialPort.Port.kMXP or SerialPort.Port.kUSB */\n /* See http://navx-mxp.kauailabs.com/guidance/selecting-an-interface/ for details. */\n gyro_board = new AHRS(SPI.Port.kMXP);\n\n last_world_linear_accel_x = gyro_board.getWorldLinearAccelX();\n last_world_linear_accel_y = gyro_board.getWorldLinearAccelY();\n last_check_time = Timer.getFPGATimestamp();\n\n initial_offset = gyro_board.getYaw();\n } catch (RuntimeException ex ) {\n DriverStation.reportError(\"Error instantiating navX MXP: \" + ex.getMessage(), true);\n }\n\n\n }",
"public Drive() {\r\n \tgyro.calibrate();\r\n \tgyro.reset();\r\n }",
"public void reset() {\n\t\txD = x;\n\t\tyD = y;\n\t\taction = 0;\n\t\tdir2 = dir;\n\t\tvisibleToEnemy = false;\n\t\tselected = false;\n\t\t\n\t\tif (UNIT_R == true) {\n\t\t\t// dir = 0;\n\t\t} else if (UNIT_G == true) {\n\t\t\t// dir = 180 / 2 / 3.14;\n\t\t}\n\t}",
"public void reset() {\n\n\t\tazDiff = 0.0;\n\t\taltDiff = 0.0;\n\t\trotDiff = 0.0;\n\n\t\tazMax = 0.0;\n\t\taltMax = 0.0;\n\t\trotMax = 0.0;\n\n\t\tazInt = 0.0;\n\t\taltInt = 0.0;\n\t\trotInt = 0.0;\n\n\t\tazSqInt = 0.0;\n\t\taltSqInt = 0.0;\n\t\trotSqInt = 0.0;\n\n\t\tazSum = 0.0;\n\t\taltSum = 0.0;\n\t\trotSum = 0.0;\n\n\t\tcount = 0;\n\n\t\tstartTime = System.currentTimeMillis();\n\t\ttimeStamp = startTime;\n\n\t\trotTrkIsLost = false;\n\t\tsetEnableAlerts(true);\n\n\t}",
"public interface Gyro {\n /**\n * Get the amount of time the gyro spends calibrating\n *\n * @return Length of gyro calibration period\n */\n double getCalibrationPeriod();\n\n /**\n * Set the amount of time the gyro will spend calibrating\n *\n * @param calibrationPeriod Desired length of gyro calibration period\n */\n void setCalibrationPeriod(double calibrationPeriod);\n\n /**\n * Reset calibration and angle monitoring\n */\n void fullReset();\n\n /**\n * Starts calibrating the gyro. Resets the calibration value and begins\n * sampling gyro values to get the average 0 value. Sample time determined\n * by calibrationTicks\n */\n void startCalibration();\n\n /**\n * Finishes calibration. Stops calibrating and sets the calibration value.\n */\n void finishCalibration();\n\n /**\n * Gets the zero point for rate measurement\n *\n * @return The offset found by calibration\n */\n double getCalibrationOffset();\n\n /**\n * Checks if the gyro is currently calibrating.\n * If it is, measured rate and angle values are not guaranteed to be accurate.\n *\n * @return Whether the gyro is currently calibrating\n */\n boolean isCalibrating();\n\n /**\n * Gets the rate of yaw change from the gyro\n *\n * @return The rate of yaw change in degrees per second, positive is clockwise\n */\n double getRate();\n\n /**\n * Gets the yaw of the gyro\n *\n * @return The yaw of the gyro in degrees\n */\n double getAngle();\n\n /**\n * Resets the current angle of the gyro to zero\n */\n void resetAngle();\n}",
"public double getGyroInDeg(){\n return 0.0;//TODO:Pull gyro in radians and convert to degrees\n }",
"public double getGyroInRad(){\n return 0.0;//TODO:Pull and return gyro in radians\n }",
"public void resetOdometry(Pose2d pose) {\n m_odometry.resetPosition(\n Rotation2d.fromDegrees(m_gyro.getAngle()),\n new SwerveModulePosition[] {\n m_frontLeft.getPosition(),\n m_frontRight.getPosition(),\n m_rearLeft.getPosition(),\n m_rearRight.getPosition()\n },\n pose);\n }",
"public void initGyro() {\r\n\t\tresult = new AccumulatorResult();\r\n\t\tif (m_analog1 == null || m_analog2 == null) {\r\n\t\t\tSystem.out.println(\"Null m_analog\");\r\n\t\t}\r\n\t\tm_voltsPerDegreePerSecond = kDefaultVoltsPerDegreePerSecond;\r\n\t\t\r\n\t\t\r\n\t\tm_analog1.setAverageBits(kAverageBits);\r\n\t\tm_analog1.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\tm_analog2.setAverageBits(kAverageBits);\r\n\t\tm_analog2.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\t\r\n\t\tdouble sampleRate = kSamplesPerSecond\r\n\t\t\t\t* (1 << (kAverageBits + kOversampleBits));\r\n\t\tAnalogInput.setGlobalSampleRate(sampleRate);\r\n\t\tTimer.delay(1.0);\r\n\r\n\t\tm_analog1.initAccumulator();\r\n\t\tm_analog1.resetAccumulator();\r\n\t\tm_analog2.initAccumulator();\r\n\t\tm_analog2.resetAccumulator();\r\n\r\n\t\tTimer.delay(kCalibrationSampleTime);\r\n\r\n\t\tfor(int i =0 ; i < mAnalogs.length; i++)\r\n\t\t{\r\n\t\t\tmAnalogs[i].getAccumulatorOutput(result);\r\n\t\r\n\t\t\tm_centers[i]= (int) ((double) result.value / (double) result.count + .5);\r\n\t\r\n\t\t\tm_offsets[i] = ((double) result.value / (double) result.count)\r\n\t\t\t\t\t- m_centers[i];\r\n\t\r\n\t\t\tmAnalogs[i].setAccumulatorCenter(m_centers[i]);\r\n\t\t\tmAnalogs[i].resetAccumulator();\r\n\t\r\n\t\t\t\r\n\t\t\t//LiveWindow.addSensor(\"Gyro\", m_analog.getChannel(), this);\r\n\t\t}\r\n\t\tif(mMode == TWO_CANCEL) setDeadband(kCancelDeadband);\r\n\t\telse if(mMode == TWO_DEADBAND) {\r\n\t\t\tsetDeadband1(0.0);\r\n\t\t\tmAccumulatedAngle = 0;\r\n\t\t}\r\n\t\t\r\n\t\tmOffset = 0;\r\n\t}",
"public void resetPot() {\n m_minRawAngle = getRawAngle();\n }",
"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 }",
"public void reset() {\n mRotationAngle = 0;\n mIsScheduled = false;\n unscheduleSelf(this);\n invalidateSelf();\n }",
"public void right90 () {\n saveHeading = 0; //modernRoboticsI2cGyro.getHeading();\n gyroTurn(TURN_SPEED, saveHeading - 90);\n gyroHold(HOLD_SPEED, saveHeading - 90, 0.5);\n }",
"private void resetAngles() {\n \ttorso_front.rotateAngleX = 0;\n \tleg_front_left.rotateAngleX = leg_front_right.rotateAngleX = 0;\n \tleg_front_left.rotateAngleY = leg_front_right.rotateAngleY = 0;\n \tleg_front_left.rotateAngleZ = leg_front_right.rotateAngleZ = 0;\n \tleg_back_left.rotateAngleX = leg_front_left.rotateAngleX;\n \tleg_back_right.rotateAngleX = leg_front_right.rotateAngleX;\n \tleg_back_right.rotateAngleY = leg_back_left.rotateAngleY = 0;\n \tleg_back_right.rotateAngleZ = leg_back_left.rotateAngleZ = 0;\n\t\tknee_front_left.rotateAngleX = knee_front_right.rotateAngleX = 0;\n\t\tknee_back_left.rotateAngleX = knee_back_right.rotateAngleX = 0;\n\t\ttail_stub.rotateAngleX = -1.05f;\n\t\ttail_segment_1.rotateAngleX = 1.1f;\n\t\ttail_segment_2.rotateAngleX = tail_segment_3.rotateAngleX = 0;\n\t\tneck.rotateAngleX = 0.17453292519943295f;\n }",
"private void CalibrateGyro() {\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu.initialize(parameters);\n while (!imu.isGyroCalibrated()){}\n }",
"public double getGyroAngleX() {\n return m_gyro.getAngleX();\n }",
"@Override\n public void initialize() {\n m_drive.resetGyro();// first call\n m_drive.resetEncoders();\n m_drive.lockMotors();\n }",
"protected void end() {\n \tSystem.out.println(\"Gyro: \" + Drivetrain.gyro.getAngle());\n \tDrivetrain.gyro.reset();\n \tDrivetrain.frontRight.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, 0.0);\n \t\n }",
"public static Gyro getGyro() {\n return sGyro;\n }",
"public void clearAngularVelocity();",
"public void gripReset() {\n LtUtil.log_d(\"GripSensorTestTouchIc\", \"gripReset\", \"gripReset\");\n this.RESET_FLUG = false;\n Kernel.write(Kernel.GRIP_TOUCH_SENSOR_RESET, EgisFingerprint.MAJOR_VERSION);\n }",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"private void remapGyroVector(){\n\t\tif (referenceGyroMatrix == null){\n\t\t\ttempGyroMatrix = new float[16];\n\t\t\treferenceGyroMatrix = new float[16];\n\t\t\tMatrix.setIdentityM(tempGyroMatrix, 0);\n\t\t\tSensorManager.remapCoordinateSystem(tempGyroMatrix, remapX, remapY, referenceGyroMatrix);\n\t\t\tSystem.arraycopy(referenceGyroMatrix, 0, tempGyroMatrix, 0, 16);\n\t\t\tthis.remappedGyro = new float[4];\n\t\t\tthis.tempGyroValues = new float[4];\n\t\t\t//need to transpose, since sensor manager and matrix use different notations\n\t\t\t//Matrix.transposeM(referenceGyroMatrix, 0, tempGyroMatrix, 0);\n\t\t}\n\t\t\n\t\tfloat[] gyroValues = getValues(VALUE_KEYS.GYRO.name());\n\t\t//System.arraycopy(gyroValues, 0, this.gyroValues, 0, 3);\n\t\tSystem.arraycopy(gyroValues, 0, this.tempGyroValues, 0, 3);\n\t\tMatrix.multiplyMV(this.remappedGyro, 0, referenceGyroMatrix, 0, this.tempGyroValues, 0);\n\t\tSystem.arraycopy(this.remappedGyro, 0, this.finalGyroValues, 0, 3);\n\t\t\n\t}",
"protected void initialize() {\n \tRobot.driveBase.resetEnc(2);\n \tRobot.gyro.reset();\n \t//stop extraneous moving parts\n }",
"public double GyroPosition() {\n\t\tswitch (gyroToUse) {\n\t\tcase ANALOG:\n\t\t\tgyroAngle = gyro.getAngle();\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tgyroAngle = spi.getAngle();\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\tgyroAngle = imu.getAngleZ();\n\t\t\tbreak;\n\t\t}\n\n\t\tgyroAngle = gyroAngle % 360;\n\n\t\t// SmartDashboard.putNumber(\"gyroAngle\", gyroAngle);\n\t\treturn gyroAngle;\n\n\t}",
"public void Reset(){\n py = 0f;\n }",
"private void resetRotationAxisToOrigin()\n\t{\n\t\tdouble newSpeed = this.currentMomentMass * getRotation() /\n\t\t\t\tthis.defaultMomentMass;\n\t\t\n\t\t// Changes back to normal rotation\n\t\tthis.currentRotationAxis = new Point2D.Double(getOriginX(), getOriginY());\n\t\tsetRotation(newSpeed);\n\t}",
"private void reset () {\n this.logic = null;\n this.lastPulse = 0;\n this.pulseDelta = 0;\n }",
"public void reset(){\r\n\t\tSystem.out.println(\"(EnigmaMachine) Initial Positions: \" + Arrays.toString(initPositions));\r\n\t\trotors.setPositions(initPositions);\r\n\t}",
"public double getGyroAngleY() {\n return m_gyro.getAngleY();\n }",
"public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }",
"public void reset()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\tautoStep = 0;\r\n\t}",
"public void autonomous() {\n /*myRobot.setSafetyEnabled(false);\n myRobot.drive(-0.5, 0.0);\t// drive forwards half speed\n Timer.delay(2.0);\t\t// for 2 seconds\n myRobot.drive(0.0, 0.0);\t// stop robot\n */\n \t/*gyro.reset();\n \twhile(isAutonomous()){\n \t\tdouble angle = gyro.getAngle();\n \tmyRobot.drive(0, -angle * Kp);\t\n \tTimer.delay(.004);\n \t}\n \tmyRobot.drive(0.0, 0.0);\n \t*/\n }",
"public void clearTargetRotation ()\n {\n _targetRotation = _actor.getRotation();\n ((Agent)_actor).setTurnDirection(0);\n }",
"static void resetVelocity(){currentVelocity = INITIAL_SPEED;}",
"public void gyroHold(double speed, double angle, double holdTime) {\n\n ElapsedTime holdTimer = new ElapsedTime();\n\n // keep looping while we have time remaining.\n holdTimer.reset();\n while (opModeIsActive() && (holdTimer.time() < holdTime)) {\n // Update telemetry & Allow time for other processes to run.\n onHeading(speed, angle, P_TURN_COEFF);\n //telemetry.update();\n }\n\n // Stop all motion;\n robot.DriveLeft1.setPower(0);\n robot.DriveRight1.setPower(0);\n robot.DriveLeft2.setPower(0);\n robot.DriveRight2.setPower(0);\n }",
"public void resetCounters() {\n\t\t//RobotMap.leftEncoder.reset();\n\t\t//RobotMap.rightEncoder.reset();\n\t\tRobotMap.ahrs.zeroYaw();\n\t\tRobotMap.talonLeft.setSelectedSensorPosition(0, 0, 10);\n\t\tRobotMap.talonRight.setSelectedSensorPosition(0, 0, 10);\n\t\tbearing = 0;\n\t}",
"@Override\n public void gyroRoll(int value, int timestamp) {\n }",
"public void reset() {\r\n this.x = resetX;\r\n this.y = resetY;\r\n state = 0;\r\n }",
"public double[] getGyro();",
"void resetMotionVector()\n {\n forwardVector.resetMotionVector();\n backwardVector.resetMotionVector();\n }",
"public static void reset(){\r\n\t\tx=0;\r\n\t\ty=0;\r\n\t}",
"public void reset() {\n\t\tmCenterOfProjection = new Vector3f(0, 0, 15);\n\t\tmLookAtPoint = new Vector3f(0, 0, 0);\n\t\tmUpVector = new Vector3f(0, 1, 0);\n\t\tmCameraMatrix = new Matrix4f();\n\t\tthis.update();\n\t}",
"public void resetDrag(){\n\t\tsetCurrentPosition( new Point(0,0) );\n\t\tsetScale(1);\n\t\tlengthsYShift = defaultYShift;\n\t}",
"public void clearGyroCrits() {\n for (int i = 0; i < locations(); i++) {\n removeCriticals(i, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n }\n }",
"public void resetPose() {\n }",
"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 }",
"public void resetXMovement() {\n this.xVel = 0;\n this.xTargetSpeed = 0;\n }",
"public void ResetDailyData(long _new_ref_time) {\n reference_time = _new_ref_time;\n\n last_acc_timestamp = 0;\n last_gyro_timestamp = 0;\n\n last_acc_x = 0;\n last_gyro_x = 0;\n\n velocity_x = 0;\n angle_z = 0;\n\n DailyDistanceCoveredFw = 0;\n DailyDistanceCoveredBw = 0;\n DailyAngleCoveredR = 0;\n DailyAngleCoveredL = 0;\n\n acc_data_counter = 0;\n gyro_data_counter = 0;\n\n acc_data_counter_calibration = 0;\n gyro_data_counter_calibration = 0;\n\n //TODO: verificare se serve resettare anche questi\n HourlyAngleCovered = 0;\n HourlyDistanceCovered = 0;\n\n\n //TODO: verificare se sia eventualmente necessario azzerare il tutto\n if (false) {\n for (int i = 0; i < NUM_OF_SAMPLES; i++) {\n AccXDataArray[i] = 0;\n AccYDataArray[i] = 0;\n AccZDataArray[i] = 0;\n\n GyroXDataArray[i] = 0;\n GyroYDataArray[i] = 0;\n GyroZDataArray[i] = 0;\n\n AccTimestampArray[i] = 0;\n GyroTimestampArray[i] = 0;\n }\n }\n }",
"public void gyroHold( double speed, double angle, double holdTime) {\n\n ElapsedTime holdTimer = new ElapsedTime();\n\n // keep looping while we have time remaining.\n holdTimer.reset();\n while ((holdTimer.time() < holdTime)) {\n // Update telemetry & Allow time for other processes to run.\n onHeading(speed, angle, P_TURN_COEFF);\n try {\n sleep(50);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }\n\n // Stop all motion;\n leftmotor.setPower(0);\n rightmotor.setPower(0);\n }",
"public synchronized void reset()\n\t{\n\t\tm_elapsed = 0;\n\t}",
"public static void resetAll() {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tmSensors.get(x).reset();\n\t\t}\n\t}",
"void resetForce();",
"public void testGyroAngleCalibratedParameters() {\n // Get calibrated parameters to make new Gyro with parameters\n final double calibratedOffset = m_tpcam.getGyro().getOffset();\n final int calibratedCenter = m_tpcam.getGyro().getCenter();\n m_tpcam.freeGyro();\n m_tpcam.setupGyroParam(calibratedCenter, calibratedOffset);\n Timer.delay(TiltPanCameraFixture.RESET_TIME);\n // Repeat tests\n testInitial(m_tpcam.getGyroParam());\n testDeviationOverTime(m_tpcam.getGyroParam());\n testGyroAngle(m_tpcam.getGyroParam());\n }",
"public void gyroHold( double speed, double angle, double holdTime) {\n\n ElapsedTime holdTimer = new ElapsedTime();\n\n // keep looping while we have time remaining.\n holdTimer.reset();\n while (opModeIsActive() && (holdTimer.time() < holdTime)) {\n // Update telemetry & Allow time for other processes to run.\n onHeading(speed, angle, P_TURN_COEFF);\n telemetry.update();\n }\n\n // Stop all motion;\n robot.leftDrive.setPower(0);\n robot.rightDrive.setPower(0);\n }",
"public final void GyroTurn (int degrees, double power)\n {\n //Define gyro angle\n float GyroAngle = robot.Gyro.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\n\n //While the gyro is reading degrees that is not the desired, turn right or left\n while (GyroAngle != degrees)\n {\n //\n robot.DriveLeftBack.setPower(-.1);\n robot.DriveRightBack.setPower(.1);\n robot.DriveRightFront.setPower(.1);\n robot.DriveLeftFront.setPower(-.1);\n\n //Update gyro angle\n GyroAngle = robot.Gyro.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\n }\n\n //Stop\n Stop();\n }",
"protected void initialize() {\n \tRobot.io.bottomGyro.reset();\n \tRobot.io.topGyro.reset();\n \tpid.reset();\n \tpid.setSetpoint(rotAngle);\n \tpid.enable();\n }",
"@Override\n public void gyroYaw(int value, int timestamp) {\n }",
"protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }",
"public void autonZeroHeading() {\n \tString direction = SmartDashboard.getString(\"Calibration_Orientation\", \"North\");\n \tswitch (direction) {\n \t\tdefault: zeroHeading();\n \t\t\tbreak;\n \t\tcase \"North\": zeroHeading(0.0);\n \t\t\tbreak;\n \t\tcase \"South\": zeroHeading(180.0);\n \t\t\tbreak;\n \t\tcase \"East\": zeroHeading(-90.0);\n \t\t\tbreak;\n \t\tcase \"West\": zeroHeading(90.0);\n \t\t\tbreak;\n \t\tcase \"-135\" : zeroHeading(135.0);\n \t\t\tbreak;\n \t}\n }",
"public double getGyroAngleZ() {\n return m_gyro.getAngleZ();\n }",
"public void reset() {\n\t\tpos.tijd = 0;\r\n\t\tpos.xposbal = xposstruct;\r\n\t\tpos.yposbal = yposstruct;\r\n\t\tpos.hoek = Math.PI/2;\r\n\t\tpos.start = 0;\r\n\t\topgespannen = 0;\r\n\t\tpos.snelh = 0.2;\r\n\t\tbooghoek = 0;\r\n\t\tpos.geraakt = 0;\r\n\t\tgeraakt = 0;\r\n\t\t\r\n\t}",
"private void resetHead() {\n mHead.setMode(Head.MODE_SMOOTH_TACKING);\n mHead.setWorldYaw(0);\n mHead.setWorldPitch(0.7f);\n }",
"public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}",
"void Reset() {\n lq = 0;\n ls = 0;\n }",
"public void resetBird() { //at object collision i.e. game-over\n\t\tx = 100;\n\t\ty = 100;\t\n\t\tyVel = 0;\n\t\tgravity = 0;\t\n\t\t}",
"public void reset() {\r\n \ts.set(Constants.FRAME_WIDTH/2, Constants.FRAME_HEIGHT/2);\r\n \tshootdelay=500;\r\n \tbulletlife = 20;\r\n }",
"public void reset() {\n reset(animateOnReset);\n }",
"public void reset(int x, int y) {\n ball.relocate(x, y);\n velX = 0;\n velY = 0;\n }",
"public synchronized void reset() {\n\t\tlisteners.clear();\n\t\tbuffer.clear();\n\t\ttrash.clear();\n\n\t\ttickCount = 1;\n\n\t\tif (log.isInfoEnabled()) {\n\t\t\tlog.info(\"Clock reset\");\n\t\t}\n\t}",
"public void gyroHold( double speed, double angle, double holdTime) {\n\n ElapsedTime holdTimer = new ElapsedTime();\n\n // keep looping while we have time remaining.\n holdTimer.reset();\n while (opModeIsActive() && (holdTimer.time() < holdTime)) {\n // Update telemetry & Allow time for other processes to run.\n onHeading(speed, angle, P_TURN_COEFF);\n telemetry.update();\n }\n\n // Stop all motion;\n leftMotor.setPower(0);\n rightMotor.setPower(0);\n }",
"public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}",
"public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }",
"public void reset() {\n\t\tx = 0;\n\t\ty = 0;\n\t\tdir = -90;\n\t\tcoul = 0;\n\t\tcrayon = true;\n\t\tlistSegments.clear();\n \t}",
"public void zeroSpeed() {\n controlRotator.proportionalSpeedSetter(0.0);\n }"
] | [
"0.87323993",
"0.8646945",
"0.85459805",
"0.7998701",
"0.78006035",
"0.7750852",
"0.7597006",
"0.7178614",
"0.66901493",
"0.6643873",
"0.6627244",
"0.65991443",
"0.6593439",
"0.65858674",
"0.656642",
"0.64594716",
"0.6459285",
"0.64406383",
"0.6364408",
"0.635251",
"0.62961656",
"0.6265655",
"0.6169467",
"0.6015596",
"0.6012513",
"0.59901327",
"0.5934031",
"0.59152293",
"0.58941835",
"0.5888203",
"0.5885171",
"0.587678",
"0.5868319",
"0.58278376",
"0.58243674",
"0.5809456",
"0.5742992",
"0.57374454",
"0.57008535",
"0.5696759",
"0.5690853",
"0.568699",
"0.56777436",
"0.5657858",
"0.5623156",
"0.55813426",
"0.55629194",
"0.55623066",
"0.5543381",
"0.5530159",
"0.5505209",
"0.55031204",
"0.5491629",
"0.5474838",
"0.544213",
"0.5441389",
"0.5428158",
"0.5414382",
"0.540575",
"0.5391315",
"0.5359222",
"0.53545386",
"0.5352273",
"0.53470427",
"0.53408545",
"0.5337093",
"0.53225315",
"0.53211087",
"0.5306767",
"0.5306764",
"0.5301047",
"0.5296017",
"0.52943254",
"0.52909094",
"0.5284208",
"0.5283486",
"0.5281207",
"0.5279103",
"0.52765447",
"0.5275575",
"0.52707297",
"0.52704775",
"0.5267505",
"0.52622086",
"0.52621704",
"0.5254507",
"0.5251505",
"0.52377856",
"0.5229751",
"0.52272236",
"0.5209041",
"0.5205758",
"0.51937133",
"0.5186508",
"0.518614",
"0.51806456",
"0.51805645",
"0.51650447",
"0.5161104",
"0.5148892",
"0.51446086"
] | 0.0 | -1 |
Delete (free) the accumulator and the analog components used for the gyro. | @Override
public void free() {
for(AnalogInput m_analog : mAnalogs)
{
if (m_analog != null && m_channelAllocated) {
m_analog.free();
}
}
for(int i = 0; i < mAnalogs.length; i++)
{
mAnalogs[i] = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clear() {\n mLeDevices.clear();\n }",
"public void clearGyroCrits() {\n for (int i = 0; i < locations(); i++) {\n removeCriticals(i, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n }\n }",
"public void releaseAllSensors() {\n mSensorManager.unregisterListener(this, mRotationSensor);\n }",
"public static void removeAllSensors() {\n\t\tmSensors.clear();\n\t}",
"public void clear() throws DeviceException;",
"public void clearStorage();",
"public void clear() {\n _sample.clear();\n _count = 0;\n _max = null;\n _min = null;\n _sum = BigDecimal.ZERO;\n _m = -1;\n _s = 0;\n }",
"public void resetGyro(){\n //TODO:Reset the gyro(zero it)\n }",
"private void unRegisterSensors()\n {\n // Double check that the device has the required sensor capabilities\n // If not then we can simply return as nothing will have been already\n // registered\n if(!HasGotSensorCaps()){\n return;\n }\n\n // Perform un-registration of the sensor listeners\n\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER));\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR));\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER));\n }",
"public void clear() {\r\n\t\t//this method clears all the arrays and initiallizes them to 0.\r\n Arrays.fill(co,0);\r\n Arrays.fill(degree,0); \r\n Arrays.fill(sinc,0); \r\n Arrays.fill(sind,0); \r\n Arrays.fill(cosc,0); \r\n Arrays.fill(cosd,0); \r\n Arrays.fill(tanc,0); \r\n Arrays.fill(tand,0);\r\n cindex = 0;\r\n sinindex = 0;\r\n cosindex = 0;\r\n tanindex = 0; \r\n\t}",
"public void resetGyro () {\n gyro.reset();\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}",
"abstract public void deleteAfterBetaReduction();",
"public void cleanUp() {\n // a quick way to clean the vector\n segments = new Vector();\n // reset the total distance\n totalDistance = 0.0;\n distance = 0.0;\n }",
"public void clear() {\n\t\tsample.clear();\n\t\tcount.set(0);\n\t\t_max.set(Long.MIN_VALUE);\n\t\t_min.set(Long.MAX_VALUE);\n\t\t_sum.set(0);\n\t\tvarianceM.set(-1);\n\t\tvarianceS.set(0);\n\t}",
"@Override\n public void clear() {\n lock.lock();\n try {\n runtime.clear();\n } finally {\n lock.unlock();\n }\n }",
"public void delete()\n {\n if (this.data != null)\n {\n this.data.free();\n this.data = null;\n }\n \n this.width = 0;\n this.height = 0;\n \n this.mipmaps = 1;\n }",
"public void clean() {\n\t\tbufferSize = 0;\n\t\tbuffer = new Object[Consts.N_ELEMENTS_FACTORY];\n\t}",
"@Override // ohos.agp.render.render3d.impl.CoreComponentManager\r\n public void delete() {\r\n synchronized (this.delLock) {\r\n if (this.agpCptrMorphComponentMgr != 0) {\r\n if (!this.isAgpCmemOwn) {\r\n this.agpCptrMorphComponentMgr = 0;\r\n } else {\r\n this.isAgpCmemOwn = false;\r\n throw new UnsupportedOperationException(\"C++ destructor does not have public access\");\r\n }\r\n }\r\n super.delete();\r\n }\r\n }",
"@Override\n public void onDestroy() {\n sensorManager.unregisterListener(SensorService.this, accelerometerSensor);\n unregisterReceiver(powerConnectionReceiver);\n notificationManager.cancel(1);\n super.onDestroy();\n }",
"@Override\n public void clear() {\n size = 0;\n storage = null;\n }",
"@Override\n public void clear() {\n array = null;\n }",
"public void clear()\n {\n inputs.clear();\n outputs.clear();\n }",
"public void Clean()\n\t{\n\t\tstorage.clear();\n\t}",
"public void delete() {\r\n\t\t\tif (!isDeleted && handles.remove(this)) {\r\n\t\t\t\telementsUsed -= count;\r\n\t\t\t\tisDeleted = true;\r\n\t\t\t\tif (elementsUsed < numElements / 4) {\r\n\t\t\t\t\tcompact();\r\n\t\t\t\t\tnumElements = Math.max(10, elementsUsed * 2);\r\n\t\t\t\t}\r\n\t\t\t\tshapePeer.vboHandle = null;\r\n\t\t\t}\r\n\t\t}",
"public native void clearReferent();",
"public void eraseMemory(ArrayList<Double> memory){\r\n memory.clear();\r\n }",
"public void clear() {\n\t\tthis._cooccurenceMatrix = null;\n\t\tthis._modules.clear();\n\t\tthis._vertices.clear();\n\t}",
"public void clear()\r\n {\r\n result = null;\r\n leftOperand = null;\r\n rightOperand = null;\r\n operator = null;\r\n resultDoubles = null;\r\n }",
"private void clearTemporaryData() {\n\n numbers.stream().forEach(n -> {\n n.setPossibleValues(null);\n n.setUsedValues(null);\n });\n }",
"public synchronized void delete() {\n if (this.agpCptr != 0) {\n if (this.isAgpCmemOwn) {\n this.isAgpCmemOwn = false;\n CoreJni.deleteCoreResourceArray(this.agpCptr);\n }\n this.agpCptr = 0;\n }\n }",
"void decoller();",
"public void destroy() {\n this.bfc.cleanUp();\n }",
"public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}",
"public void freeMaterials(){\n\t\t//android.util.Log.d(TAG,\"freeMaterials()\");\n\t\tfinal int size = this.materials.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.materials.delete(this.materials.keyAt(index));\n\t\t}\n\t}",
"public void free() {\n glDeleteVertexArrays(vaoId);\n glDeleteBuffers(vertexVboId);\n }",
"@Override\n\t\tprotected void _delete() {\n\t\t\toldValue = 0;\n\t\t\tnewValue = 0;\n\t\t}",
"void clearAllLists() {\n this.pm10Sensors.clear();\n this.tempSensors.clear();\n this.humidSensors.clear();\n }",
"public void stop() {\n if (haveSensor && haveSensor2){ // acc & mag sensors used\n mSensorManager.unregisterListener(this, mAccelerometer);\n mSensorManager.unregisterListener(this, mMagnetometer);\n } else if (haveSensor){ // only rotation used\n mSensorManager.unregisterListener(this, mRotationV);\n }\n }",
"public void cleanUp(){\n glDeleteTextures(ID);\n }",
"public void clear() { this.store.clear(); }",
"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}",
"public void reset() {\r\n\t\tfor(AnalogInput m_analog : mAnalogs)\r\n\t\t{\r\n\t\t\tif (m_analog != null) {\r\n\t\t\t\tm_analog.resetAccumulator();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void clear() {\n\t\trb = null;\n\t}",
"void decrementsGops();",
"public final void clearBuffer() {\n width = 0;\n height = 0;\n noiseBuffer = null;\n }",
"@Override\n public void clear() {\n array.reset();\n }",
"public void deleteStorage() {\n deleteReportDir(reportDir_);\n reportDir_ = null;\n deleteReportDir(leftoverDir_);\n leftoverDir_ = null;\n }",
"public synchronized void delete() {\n if (this.agpCptr != 0) {\n if (this.isAgpCmemOwn) {\n this.isAgpCmemOwn = false;\n CoreJni.deleteCoreRenderNodeDescArrayView(this.agpCptr);\n }\n this.agpCptr = 0;\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}",
"protected void deallocate()\r\n/* 541: */ {\r\n/* 542:554 */ freeArray(this.array);\r\n/* 543:555 */ this.array = null;\r\n/* 544: */ }",
"public void clearAngularVelocity();",
"public void onDestroy () {\n\t\tmVibrator = null;\n\t}",
"public final void clear() {\n for (int i = 0; i < _length; i++) {\n _data[i * SIZE + VALUE_OFFSET] = null;\n _algorithmData[i] = null;\n }\n _length = 0;\n }",
"@After\n public void clearMeters() {\n Search.in(registry)\n .name(name -> name.startsWith(\"org.drools.metric\"))\n .meters()\n .forEach(registry::remove);\n MicrometerUtils.INSTANCE.clear();\n registry = null;\n }",
"public void clear() {\n classifiedSamples.clear();\n classificationNameMap.clear();\n classifications.clear();\n sampleClassificationMap.clear();\n nextIndex = 0;\n }",
"public void clear() {\n sumX = 0d;\n sumXX = 0d;\n sumY = 0d;\n sumYY = 0d;\n sumXY = 0d;\n n = 0;\n }",
"@Override\n\tpublic void onDestroySensor() {\n\n\t}",
"public void supprimerEpsilonProd(){\n grammaireCleaner.supprimer_epsilon_prod();\n setChanged();\n notifyObservers(\"4\");\n }",
"public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }",
"public void freeCameras(){\n\t\t//android.util.Log.d(TAG,\"freeCameras()\");\n\t\tfinal int size = this.cameras.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.cameras.delete(this.cameras.keyAt(index));\n\t\t}\n\t}",
"public void clear() {\n\t\telements = 0;\n\t\tfor (int ix = 0; ix < keys.length; ix++) {\n\t\t\tkeys[ix] = null;\n\t\t\tvalues[ix] = null;\n\t\t}\n\t\tfreecells = values.length;\n\t\tmodCount++;\n\t}",
"@Override\n public void onDestroy() {\n if (pushSensorMgr != null) {\n pushSensorMgr.unsubscribe();\n pushSensorMgr = null;\n }\n\n if (envSensorMgr != null) {\n envSensorMgr.unsubscribe();\n envSensorMgr = null;\n }\n\n if (pullSensorMgr != null) {\n pullSensorMgr.unsubscribe();\n pullSensorMgr = null;\n }\n\n// if (pullSensorTimer != null) {\n// pullSensorTimer.cancel();\n// pullSensorTimer.purge();\n// pullSensorTimer = null;\n// }\n }",
"public void removeAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_GAS_SENSOR, null, null);\n // db.delete(DatabaseHelper.TAB_USERS_GROUP, null, null);\n }",
"private void decelerate()\n {\n accelX -= accelerationRate;\n if(accelX < 0)\n {\n resetAccelX();\n }\n }",
"public void clear() {\n\t\tnegatedConcepts.clear();\n\t\tnegex.clear();\n\t\tconcepts.clear();\n\t}",
"void unsetCombine();",
"protected void end() {\n \tSystem.out.println(\"Gyro: \" + Drivetrain.gyro.getAngle());\n \tDrivetrain.gyro.reset();\n \tDrivetrain.frontRight.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, 0.0);\n\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, 0.0);\n \t\n }",
"public void clear()\n {\n current = null;\n size = 0;\n }",
"public void resetGyroAngle() {\n\t\tgyro.reset();\n\t}",
"public void removeAllAmplitudeListeners()\r\n {\r\n amplitudeListeners.clear();\r\n }",
"public void clearContainer()\n\t{\n\t\tcargoList.clear();\n\t\tthis.currentVolume=0;\n\t\tthis.currentWeight=0;\n\t}",
"public void unsetGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GI$22, 0);\r\n }\r\n }",
"public void zeroGyroscope() {\n mGyroOffset = getGyroscopeRotation(false);\n }",
"protected void clear() { backing.clear(); }",
"public void clear() {\n\t \toccupied = 0;\n\t for (int i = 0; i < array.length; i++) {\n\t array[i] = null;\n\t }\n\t }",
"public void depolarize(){\n\t\t\tif(sodiumChannel.getGateStatus().equalsIgnoreCase(\"open\")) {\n\t\t\t\tfor(int i = 1; i <= threshold; i++) {\n\t\t\t\t\tcurrentVoltage = currentVoltage + sodiumIon;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void clear() {\n counters.clear();\n }",
"public void clear(){\n\t\tfield.resize(0, 4);\n\t}",
"public void mo4313a() {\n this.f3129a.clear();\n }",
"public void clear() {\n synchronized (LOCK) {\n myValues.clear();\n }\n }",
"public void clear () {\n\n\t\tn_vars = 0;\n\t\tn_values = null;\n\t\tmin_probability = DEF_MIN_PROBABILITY;\n\n\t\tpeak_probability = 0.0;\n\t\tpeak_indexes = null;\n\t\ttotal_probability = 0.0;\n\t\tmarginal_probability = null;\n\t\tmarginal_mode_index = null;\n\t\tmarginal_peak_probability = null;\n\t\tmarginal_peak_indexes = null;\n\t\tmarginal_2d_probability = null;\n\t\tmarginal_2d_mode_index = null;\n\n\t\treturn;\n\t}",
"void clear() {\n this.mapped_vms.clear();\n this.mapped_anti_coloc_job_ids.clear();\n this.used_cpu = BigInteger.ZERO;\n this.used_mem = BigInteger.ZERO;\n }",
"public void clear(){\r\n currentSize = 0;\r\n }",
"public void Clear() {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_Clear(swigCPtr, this);\n }",
"@Override\n public void clear() {\n capacity = 15;\n currentSize = 0;\n this.container = new Object[capacity];\n }",
"public void clearSupplier()\n // -end- 335C0D7A02E4 remove_all_head327A646F00E6 \"Dependency::clearSupplier\"\n ;",
"public void clear() {\n\tn = 0;\n\tArrays.fill(sums, 0.0);\n\tArrays.fill(productsSums, 0.0);\n }",
"public void unsetDataMsng()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATAMSNG$18, 0);\n }\n }",
"public void unInit() {\n this.bdv = null;\n this.brz = null;\n }",
"public void clear()\n {\n providerService = null;\n }",
"private static void clear() {\n\t\tvxl = new StringBuffer();\n\t}",
"void unsetValueQuantity();",
"public final void ogg_sync_clear() {// return changed to void\r\n\t\t//if( oy != null ) {\r\n\t\t\tclear();\r\n\t\t//}\r\n\t\t//return 0;\r\n\t}",
"public void delete() {\n\t\tmat_ = null;\n\t}",
"void clearDisposable();",
"public void destructor() {\n \t \t \n \t \t int n = pimpl.pathcodearray.getLength();\n \t \t for (int i = 0; i < n; i++) Destroyable.delete( pimpl.pathcodearray.operator_square_bracket(i));\n \t \t Destroyable.delete( this.state);\n\n \t \t this.currentpath.unrefNoDelete(); // to match the ref() in the constructor\n \t \t \n \t \t Destroyable.delete(currentpath); // java port \t \t \n \t \t Destroyable.delete(pimpl); // java port\n \t }",
"public void onDestroy() {\n if (this.b != null) {\n this.b.clear();\n }\n super.onDestroy();\n }",
"public void zeroHeading() {\n m_gyro.reset();\n }",
"public void removeAllElements() {\n for (int i = 0; i < OLast; i++) O[i] = null;\n ON = OLast = 0;\n Gap = -1;\n }"
] | [
"0.64233077",
"0.634629",
"0.62935436",
"0.62219846",
"0.5998934",
"0.59121823",
"0.58650166",
"0.58284307",
"0.582483",
"0.58226913",
"0.5819448",
"0.58026016",
"0.5802517",
"0.58014846",
"0.57987094",
"0.57971394",
"0.5781326",
"0.5768066",
"0.57534325",
"0.57524985",
"0.5748717",
"0.57339126",
"0.57102597",
"0.5705186",
"0.5695554",
"0.56935334",
"0.56610537",
"0.5659249",
"0.5636624",
"0.5627255",
"0.56264204",
"0.56151634",
"0.56007385",
"0.5599691",
"0.5586918",
"0.5585716",
"0.5581962",
"0.5578476",
"0.557592",
"0.55622876",
"0.5549177",
"0.55482924",
"0.5547839",
"0.55461466",
"0.55418354",
"0.55387414",
"0.5532798",
"0.55310696",
"0.552626",
"0.5513497",
"0.5512517",
"0.5491133",
"0.54898435",
"0.548633",
"0.54850096",
"0.5478879",
"0.5477038",
"0.5476962",
"0.5476597",
"0.54709446",
"0.546916",
"0.54642415",
"0.546191",
"0.54557604",
"0.5454319",
"0.5452116",
"0.54461086",
"0.54410887",
"0.5438",
"0.5433217",
"0.5430976",
"0.54234236",
"0.5422747",
"0.54203117",
"0.5419456",
"0.54152167",
"0.54134595",
"0.5405175",
"0.5397274",
"0.5391967",
"0.53874457",
"0.5386229",
"0.5382434",
"0.53804153",
"0.5379778",
"0.5378527",
"0.53725475",
"0.5363281",
"0.5355748",
"0.53538275",
"0.5352422",
"0.5349734",
"0.53486454",
"0.5347725",
"0.5346212",
"0.5343321",
"0.5334147",
"0.533131",
"0.5330735",
"0.5324265"
] | 0.6491069 | 0 |
Return the actual angle in degrees that the robot is currently facing. The angle is based on the current accumulator value corrected by the oversampling rate, the gyro type and the A/D calibration values. The angle is continuous, that is it will continue from 360 to 361 degrees. This allows algorithms that wouldn't want to see a discontinuity in the gyro output as it sweeps past from 360 to 0 on the second time around. | public double getRawAngle(int pSensorNumber) {
mAnalogs[pSensorNumber].getAccumulatorOutput(result);
long value = result.value - (long) (result.count * m_offsets[pSensorNumber]);
double scaledValue = value
* 1e-9
* mAnalogs[pSensorNumber].getLSBWeight()
* (1 << mAnalogs[pSensorNumber].getAverageBits())
/ (AnalogInput.getGlobalSampleRate() * m_voltsPerDegreePerSecond);
return scaledValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}",
"private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }",
"public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }",
"public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }",
"protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }",
"private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }",
"private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }",
"public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }",
"public double getGyroInDeg(){\n return 0.0;//TODO:Pull gyro in radians and convert to degrees\n }",
"public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}",
"public double GyroPosition() {\n\t\tswitch (gyroToUse) {\n\t\tcase ANALOG:\n\t\t\tgyroAngle = gyro.getAngle();\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tgyroAngle = spi.getAngle();\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\tgyroAngle = imu.getAngleZ();\n\t\t\tbreak;\n\t\t}\n\n\t\tgyroAngle = gyroAngle % 360;\n\n\t\t// SmartDashboard.putNumber(\"gyroAngle\", gyroAngle);\n\t\treturn gyroAngle;\n\n\t}",
"private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }",
"public double getAngle() {\n try {\n switch(Coordinates.angleUnit()) {\n case Coordinates.RADIAN:\n\treturn Double.parseDouble(deg.getText().trim());\n case Coordinates.DEGRE:\n\treturn Math.PI * Double.parseDouble(deg.getText().trim()) / 180.0;\n case Coordinates.DEGMN:\n\tString d = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tString m = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\");\n case Coordinates.DEGMNSEC:\n\td = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tm = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\tString s = sec.getText().trim();\n\tif(s.length() == 0)\n\t s = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\" + s + \"\\\"\");\n }\n }\n catch(NumberFormatException e) {\n }\n return 0.0;\n }",
"private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }",
"public double getAngle() {\n\t\treturn armMotor.getEncPosition();\n\t}",
"public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }",
"public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOrientationAngle();\n }\n }",
"public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }",
"public double currentAngle() {\n return imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\r\n }",
"public double getAngle() {\n return Math.atan2(sinTheta, cosTheta);\n }",
"public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}",
"public double angle() {\n double angle = Math.toDegrees(Utilities.calculateAngle(this.dx, -this.dy));\n return angle;\n }",
"public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}",
"private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}",
"public Rotation2d getAngle() {\n // Note: This assumes the CANCoders are setup with the default feedback coefficient\n // and the sesnor value reports degrees.\n return Rotation2d.fromDegrees(canCoder.getAbsolutePosition());\n }",
"public double getAngle()\n {\n return (AngleAverage);\n }",
"public double getGyroAngleX() {\n return m_gyro.getAngleX();\n }",
"double getAngle();",
"double getAngle();",
"public AccOrientation calculateAngle(SensorEvent event) {\t\t\n\t final int _DATA_X = 0;\n\t final int _DATA_Y = 1;\n\t final int _DATA_Z = 2;\n\t // Angle around x-axis thats considered almost perfect vertical to hold\n\t // the device\n\t final int PIVOT = 20;\n\t // Angle around x-asis that's considered almost too vertical. Beyond\n\t // this angle will not result in any orientation changes. f phone faces uses,\n\t // the device is leaning backward.\n\t final int PIVOT_UPPER = 65;\n\t // Angle about x-axis that's considered negative vertical. Beyond this\n\t // angle will not result in any orientation changes. If phone faces uses,\n\t // the device is leaning forward.\n\t final int PIVOT_LOWER = -10;\n\t // Upper threshold limit for switching from portrait to landscape\n\t final int PL_UPPER = 295;\n\t // Lower threshold limit for switching from landscape to portrait\n\t final int LP_LOWER = 320;\n\t // Lower threshold limt for switching from portrait to landscape\n\t final int PL_LOWER = 270;\n\t // Upper threshold limit for switching from landscape to portrait\n\t final int LP_UPPER = 359;\n\t // Minimum angle which is considered landscape\n\t final int LANDSCAPE_LOWER = 235;\n\t // Minimum angle which is considered portrait\n\t final int PORTRAIT_LOWER = 60;\n\t \n\t // Internal value used for calculating linear variant\n\t final float PL_LF_UPPER =\n\t ((float)(PL_UPPER-PL_LOWER))/((float)(PIVOT_UPPER-PIVOT));\n\t final float PL_LF_LOWER =\n\t ((float)(PL_UPPER-PL_LOWER))/((float)(PIVOT-PIVOT_LOWER));\n\t // Internal value used for calculating linear variant\n\t final float LP_LF_UPPER =\n\t ((float)(LP_UPPER - LP_LOWER))/((float)(PIVOT_UPPER-PIVOT));\n\t final float LP_LF_LOWER =\n\t ((float)(LP_UPPER - LP_LOWER))/((float)(PIVOT-PIVOT_LOWER));\n\t \n\t int mSensorRotation = -1; \n\t \n\t\t\tfinal boolean VERBOSE = true;\n float[] values = event.values;\n float X = values[_DATA_X];\n float Y = values[_DATA_Y];\n float Z = values[_DATA_Z];\n float OneEightyOverPi = 57.29577957855f;\n float gravity = (float) Math.sqrt(X*X+Y*Y+Z*Z);\n float zyangle = (float)Math.asin(Z/gravity)*OneEightyOverPi;\n int rotation = -1;\n float angle = (float)Math.atan2(Y, -X) * OneEightyOverPi;\n int orientation = 90 - (int)Math.round(angle);\n AccOrientation result = new AccOrientation();\n \n while (orientation >= 360) {\n orientation -= 360;\n } \n while (orientation < 0) {\n orientation += 360;\n }\n result.orientation = orientation;\n result.angle = zyangle; \n result.threshold = 0;\n if ((zyangle <= PIVOT_UPPER) && (zyangle >= PIVOT_LOWER)) {\n // Check orientation only if the phone is flat enough\n // Don't trust the angle if the magnitude is small compared to the y value\n \t/*\n float angle = (float)Math.atan2(Y, -X) * OneEightyOverPi;\n int orientation = 90 - (int)Math.round(angle);\n normalize to 0 - 359 range\n while (orientation >= 360) {\n orientation -= 360;\n } \n while (orientation < 0) {\n orientation += 360;\n }\n mOrientation.setText(String.format(\"Orientation: %d\", orientation));\n */ \n // Orientation values between LANDSCAPE_LOWER and PL_LOWER\n // are considered landscape.\n // Ignore orientation values between 0 and LANDSCAPE_LOWER\n // For orientation values between LP_UPPER and PL_LOWER,\n // the threshold gets set linearly around PIVOT.\n if ((orientation >= PL_LOWER) && (orientation <= LP_UPPER)) {\n float threshold;\n float delta = zyangle - PIVOT;\n if (mSensorRotation == ROTATION_090) {\n if (delta < 0) {\n // Delta is negative\n threshold = LP_LOWER - (LP_LF_LOWER * delta);\n } else {\n threshold = LP_LOWER + (LP_LF_UPPER * delta);\n }\n rotation = (orientation >= threshold) ? ROTATION_000 : ROTATION_090;\n if (mShowLog) \n \tLog.v(TAG, String.format(\"CASE1. %2.4f %d %2.4f %d\", delta, orientation, threshold, rotation));\n } else {\n if (delta < 0) {\n // Delta is negative\n threshold = PL_UPPER+(PL_LF_LOWER * delta);\n } else {\n threshold = PL_UPPER-(PL_LF_UPPER * delta);\n }\n rotation = (orientation <= threshold) ? ROTATION_090: ROTATION_000;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE2. %2.4f %d %2.4f %d\", delta, orientation, threshold, rotation));\n }\n result.threshold = threshold;\n } else if ((orientation >= LANDSCAPE_LOWER) && (orientation < LP_LOWER)) {\n rotation = ROTATION_090;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE3. 90 (%d)\", orientation));\n } else if ((orientation >= PL_UPPER) || (orientation <= PORTRAIT_LOWER)) {\n rotation = ROTATION_000;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE4. 00 (%d)\", orientation)); \n } else {\n \tif (mShowLog)\n \t\tLog.v(TAG, \"CASE5. \"+orientation);\n }\n if ((rotation != -1) && (rotation != mSensorRotation)) {\n mSensorRotation = rotation;\n if (mSensorRotation == ROTATION_000) {\n \t\t//setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n \tif (mShowLog)\n \t\tLog.w(TAG, \"Rotation: 00\");\n }\n else if (mSensorRotation == ROTATION_090) \n {\n \t\t//setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n \tif (mShowLog)\n \t\tLog.w(TAG, \"Rotation: 90\");\n } \n }\n result.rotation = rotation;\n } else {\n \t//Log.v(TAG, String.format(\"Invalid Z-Angle: %2.4f (%d %d)\", zyangle, PIVOT_LOWER, PIVOT_UPPER));\n }\t\n return result;\n\t\t}",
"public double angle()\n {\n return Math.atan2(this.y, this.x);\n }",
"public double getAngle() {\n\t\treturn navx.getAngle();\n\t}",
"public double getAngle();",
"public double getGyroInRad(){\n return 0.0;//TODO:Pull and return gyro in radians\n }",
"public double getAngle() {\n\t\treturn angle;\n\t}",
"public double getAngle() {\n\t\treturn angle;\n\t}",
"public double angle() {\n return Math.atan2(_y,_x);\n }",
"public double getAngle ()\n {\n return angle_;\n }",
"double getCalibratedLevelAngle();",
"public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }",
"public double getAngle() {\n return angle;\n }",
"public double getAngle() {\n return angle;\n }",
"public double findAngle() {\n return 0d;\n }",
"@Deprecated\n public float getRobotAngle() {\n //There are a couple options here, they are as follows:\n // - gyro_board.getYaw() (Proccesed gyro data)\n // - gyro_board.getCompassHeading() (Proccessed compass data)\n // - gyro_board.getFusedHeading() (Combined compass and gyro data)\n\n float board_angle;\n if (gyro_board.isMagneticDisturbance()){\n board_angle = getGyroSensorAngle();\n } else {\n board_angle = getCompassCorrectedForAlliance();\n }\n\n return board_angle;\n }",
"public double getAngle() { return angle; }",
"public double getAngle(){\n\t\treturn this.angle;\n\t}",
"public double nextAngle()\n {\n return nextAngle();\n }",
"public float getVelAngle() {\n\t\tif (velocity.y == 0f && velocity.x == 0f)\n\t\t\treturn restrictAngle((float) Math.random() * float2pi);\n\t\tfloat result = (float) Math.atan2(velocity.y, velocity.x);\n\t\treturn restrictAngle(result);\n\t}",
"public float getAngle() {\n return angle;\n }",
"private double getRawAngle() {\n return (m_pot.getVoltage() / Constants.AIO_MAX_VOLTAGE) * Constants.Hood.POT_SCALE;\n }",
"public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }",
"public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }",
"public float getAngle() {\n return angle;\n }",
"public double getAngle () {\n return super.getAngle() % 360D;\n }",
"public double getGyroAngleY() {\n return m_gyro.getAngleY();\n }",
"public double ang()\n {\n \treturn Math.atan(y/x);\n }",
"public static double getAngle() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ts\").getDouble(0);\n }",
"public int getAngle() {\r\n\t\treturn angle;\r\n\t}",
"public double getAngleInDegrees() {\n return intakeAngle;\n }",
"public double getAngle() {\n\t\treturn this.position[2];\n\t}",
"private double getCorrection(){\n //Get the current angle of the robot\n double angle = getAngle();\n double correction;\n\n //Use the angle to calculate the correction\n if (angle == 0){\n //If angle = 0, robot is moving straight; no correction needed\n correction = 0;\n }else{\n //If angle != 0, robot is not moving straight\n //Correction is negative angle (to move the robot in the opposite direction)\n //multiplied by gain; the gain is the sensitivity to angle\n //We have determined that .1 is a good gain; higher gains result in overcorrection\n //Lower gains are ineffective\n correction = angle*gain;\n }\n //Display correction\n telemetry.addData(\"Correction\", correction);\n telemetry.update();\n\n return correction;\n }",
"public double findAngleOfAttack() {\n\t\tdouble dy = this.trailingPt.y - this.leadingPt.y; // trailingPt goes first since positive numbers are down\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// y-axis in Canvas\n\t\tdouble dx = this.leadingPt.x - this.trailingPt.x;\n\t\treturn Math.atan2(dy, dx);\n\t}",
"public void testGyroAngle(AnalogGyro gyro) {\n // Set angle\n for (int i = 0; i < 5; i++) {\n m_tpcam.getPan().set(0);\n Timer.delay(0.1);\n }\n\n Timer.delay(0.5);\n // Reset for setup\n gyro.reset();\n Timer.delay(0.5);\n\n // Perform test\n for (int i = 0; i < 53; i++) {\n m_tpcam.getPan().set(i / 100.0);\n Timer.delay(0.05);\n }\n Timer.delay(1.2);\n\n double angle = gyro.getAngle();\n\n double difference = TEST_ANGLE - angle;\n\n double diff = Math.abs(difference);\n\n assertEquals(errorMessage(diff, TEST_ANGLE), TEST_ANGLE, angle, 10);\n }",
"public int getAngle() {\r\n return angle;\r\n }",
"public int getAngle(){\n\t\treturn (int)angle;\n\t}",
"public double getGyroAngleZ() {\n return m_gyro.getAngleZ();\n }",
"public int getCurrentAngle(){\n return flatbed.currentAngle;\n }",
"public float getXAngle(){\n Point project=new Point(0,accel.y,accel.z);\n\n float angl=(float)Math.asin(project.y / project.module())* PreferenceHelper.sensetivity;\n //float angl=(float)Math.acos(accel.z/accel.module())*100f;\n if(Float.isNaN(angl)) angl=0.5f;\n return (float)(Math.rint( toFlowX(angl)/1.0) * 1.0);\n }",
"private float calculateAngles(){\n\t\t// First we will move the current angle heading into the previous angle heading slot.\n\t\tdata.PID.headings[0] = data.PID.headings[1];\n\t\t// Then, we assign the new angle heading.\n\t\tdata.PID.headings[1] = data.imu.getAngularOrientation().firstAngle;\n\n\t\t// Finally we calculate a computedTarget from the current angle heading.\n\t\tdata.PID.computedTarget = data.PID.headings[1] + (data.PID.IMURotations * 360);\n\n\t\t// Now we determine if we need to re-calculate the angles.\n\t\tif(data.PID.headings[0] > 300 && data.PID.headings[1] < 60) {\n\t\t\tdata.PID.IMURotations++; //rotations of 360 degrees\n\t\t\tcalculateAngles();\n\t\t} else if(data.PID.headings[0] < 60 && data.PID.headings[1] > 300) {\n\t\t\tdata.PID.IMURotations--;\n\t\t\tcalculateAngles();\n\t\t}\n\t\treturn data.PID.headings[1];\n\t}",
"public float getAngle() {\n return mAngle;\n }",
"public double getRawAngle()\n {\n double Angle = 0.0;\n\n switch (MajorAxis)\n {\n case X:\n Angle = getAngleX();\n break;\n case Y:\n Angle = getAngleY();\n break;\n case Z:\n Angle = getAngleZ();\n break;\n }\n\n return(Angle);\n }",
"public double getTurnRate() {\n return m_gyro.getRate() * (DriveConstants.kGyroReversed ? -1.0 : 1.0);\n }",
"public float getAltitudeAngle()\n {\n return altitude_slider.getValue() / ANGLE_SCALE_FACTOR;\n }",
"public double getAngle() {\n\t\treturn Math.atan2(imaginary, real);\n\t}",
"public double getAngle() {\n\t\tdouble angle = Math.atan2(imaginary, real);\n\t\tangle = fixNegativeAngle(angle);\n\n\t\treturn angle;\n\t}",
"public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }",
"public void updateGyro() {\n\t\tangleToForward = gyro.getAngle();\n\t\tif (angleToForward >= 360) {\n\t\t\tangleToForward -= 360;\n\t\t} else if (angleToForward < 0) {\n\t\t\tangleToForward += 360;\n\t\t}\n\n\t}",
"public double getTurnAngle() {\n return getTurnAngle(turnEncoder.getCount());\n }",
"public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }",
"public double getAngle(float x, float y )\n {\n double dx = x - centerX;\n // Minus to correct for coord re-mapping\n double dy = -(y - centerY);\n\n double inRads = Math.atan2(dy,dx);\n\n // We need to map to coord system when 0 degree is at 3 O'clock, 270 at 12 O'clock\n if (inRads < 0)\n inRads = Math.abs(inRads);\n else\n inRads = 2*Math.PI - inRads;\n\n return Math.toDegrees(inRads);\n }",
"public double getTargetAngle(){\n return lastKnownAngle;\n }",
"EDataType getAngleDegrees();",
"public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}",
"public void updateAngle(){\n\t\tif (turnUp && (angle < 180) ){\n\t\t\tangle+=1;\n\t\t}\n\t\tif (turnDown && (angle > 0)){\n\t\t\tangle-=1;\n\t\t}\n\t}",
"public double getAngleXY() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.z/l);\r\n\t}",
"public double calculateDegToRetreat() {\r\n\t\tdouble newDeg = (degToAttack + 180) % 360;\r\n\t\tSystem.out.println(newDeg);\r\n\t\treturn newDeg;\r\n\t}",
"public double getHeading() {\n return Rotation2d.fromDegrees(m_gyro.getAngle()).getDegrees();\n }",
"double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }",
"public static double getAngle(double startAngle, double endAngle, boolean counterClock) {\n startAngle = normaliseAngle(startAngle);\n endAngle = normaliseAngle(endAngle);\n if (counterClock) {\n return normaliseAngle(endAngle - startAngle);\n } else {\n return normaliseAngle(startAngle - endAngle);\n }\n }",
"public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}",
"public void updateAngle() {\n\t\tfloat ak = 0;\n\t\tfloat gk = 0;\n\t\tak = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterX() - x);\n\t\tgk = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterY() - y);\n\t\tangleDesired = (float) Math.toDegrees(Math.atan2(ak*-1, gk));\n\t\t// if the angle and the angleDesired are opposites the Vector point into the opposite direction\n\t\t// this means the angle will be the angle of the longer vector which is always angle\n\t\t// so if that happens the angleDesired is offset so this won't happen\n\t\tangle = Commons.calculateAngleAfterRotation(angle, angleDesired, rotationDelay);\n\t}",
"public Rotation2d getHeading() {\n return Rotation2d.fromDegrees(Math.IEEEremainder(gyro.getAngle(), 360) * (Const.kGyroReversed ? -1.0 : 1.0));\n }",
"public float getAngle () {\n\t\treturn body.getAngle();\n\t}",
"public double getRobotNeedToTurnAngle(double destination_X, double destination_Y) {\n double destination_from_y_axis_angle = Math.toDegrees( Math.atan2(destination_X-getX(), destination_Y-getY()));\n return destination_from_y_axis_angle + getOrientation(3);\n }",
"public float getRotationAngle() {\n return this.mRotationAngle;\n }",
"int getSensorRotationDegrees();",
"private double getGyroError(double targetAngle) {\n double error = targetAngle - imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.XZY, AngleUnit.DEGREES).thirdAngle;\n\n // keep the error on a range of -179 to 180\n while(opModeIsActive() && error > 180) error -= 360;\n while(opModeIsActive() && error <= -180) error += 360;\n\n return error;\n }",
"public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}",
"public void testGyroAngleCalibratedParameters() {\n // Get calibrated parameters to make new Gyro with parameters\n final double calibratedOffset = m_tpcam.getGyro().getOffset();\n final int calibratedCenter = m_tpcam.getGyro().getCenter();\n m_tpcam.freeGyro();\n m_tpcam.setupGyroParam(calibratedCenter, calibratedOffset);\n Timer.delay(TiltPanCameraFixture.RESET_TIME);\n // Repeat tests\n testInitial(m_tpcam.getGyroParam());\n testDeviationOverTime(m_tpcam.getGyroParam());\n testGyroAngle(m_tpcam.getGyroParam());\n }",
"public double radians() {\n return Math.toRadians(this.degrees);\n }",
"public double calculateAngle(Point2D dir) {\n\t\tPoint2D normDir = dir.normalize();\n\t\treturn (normDir.getX() >= 0 ? new Point2D(0, 1).angle(normDir) : new Point2D(0, -1).angle(normDir) + 180);\n\t}"
] | [
"0.7760098",
"0.7515291",
"0.74110514",
"0.7394079",
"0.7332349",
"0.72927904",
"0.7283469",
"0.7259043",
"0.71014947",
"0.70895714",
"0.7076825",
"0.7047302",
"0.6956048",
"0.6844837",
"0.6827202",
"0.6827021",
"0.682163",
"0.68172085",
"0.68094355",
"0.67377466",
"0.6724067",
"0.66960436",
"0.66604316",
"0.6636406",
"0.6633982",
"0.66205895",
"0.6617622",
"0.66062677",
"0.66062677",
"0.6597536",
"0.65968686",
"0.6586127",
"0.65816283",
"0.6567952",
"0.65653217",
"0.65653217",
"0.6558545",
"0.6557929",
"0.6516965",
"0.64930284",
"0.6489565",
"0.6489565",
"0.6474825",
"0.64723647",
"0.6457824",
"0.6445708",
"0.6441824",
"0.6439197",
"0.6430372",
"0.6426621",
"0.642008",
"0.64188725",
"0.6417221",
"0.6414638",
"0.64107585",
"0.6410576",
"0.64006746",
"0.6382806",
"0.6363568",
"0.63164496",
"0.63139653",
"0.6313837",
"0.63052034",
"0.62984204",
"0.6291029",
"0.62834096",
"0.6281465",
"0.6273474",
"0.6264095",
"0.622753",
"0.62233096",
"0.6220609",
"0.6220356",
"0.6218134",
"0.6207954",
"0.6190058",
"0.6165414",
"0.6137268",
"0.6123426",
"0.6096348",
"0.6092002",
"0.6088058",
"0.603222",
"0.6019804",
"0.60094774",
"0.6007698",
"0.59988433",
"0.59944886",
"0.59850246",
"0.5975867",
"0.59569454",
"0.59473664",
"0.592846",
"0.59256184",
"0.5911342",
"0.59076136",
"0.5902053",
"0.5895911",
"0.5875353",
"0.58650815",
"0.5863917"
] | 0.0 | -1 |
Return the rate of rotation of the gyro The rate is based on the most recent reading of the gyro analog value | public double getRate() {
return (getRate(0)+getRate(1))/2.0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getGyroInRad(){\n return 0.0;//TODO:Pull and return gyro in radians\n }",
"public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }",
"protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }",
"public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }",
"public double getTurnRate() {\n return m_gyro.getRate() * (DriveConstants.kGyroReversed ? -1.0 : 1.0);\n }",
"public double getGyroInDeg(){\n return 0.0;//TODO:Pull gyro in radians and convert to degrees\n }",
"public double getGyroAngleZ() {\n return m_gyro.getAngleZ();\n }",
"public double GyroPosition() {\n\t\tswitch (gyroToUse) {\n\t\tcase ANALOG:\n\t\t\tgyroAngle = gyro.getAngle();\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tgyroAngle = spi.getAngle();\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\tgyroAngle = imu.getAngleZ();\n\t\t\tbreak;\n\t\t}\n\n\t\tgyroAngle = gyroAngle % 360;\n\n\t\t// SmartDashboard.putNumber(\"gyroAngle\", gyroAngle);\n\t\treturn gyroAngle;\n\n\t}",
"public final int getRotationRate() {\r\n return rotationRate;\r\n }",
"public Rotation2d getGyro() {\n\t\treturn Rotation2dKt.getDegree(gyro.getAngle() - gyroZero);\n\t}",
"public interface Gyro {\n /**\n * Get the amount of time the gyro spends calibrating\n *\n * @return Length of gyro calibration period\n */\n double getCalibrationPeriod();\n\n /**\n * Set the amount of time the gyro will spend calibrating\n *\n * @param calibrationPeriod Desired length of gyro calibration period\n */\n void setCalibrationPeriod(double calibrationPeriod);\n\n /**\n * Reset calibration and angle monitoring\n */\n void fullReset();\n\n /**\n * Starts calibrating the gyro. Resets the calibration value and begins\n * sampling gyro values to get the average 0 value. Sample time determined\n * by calibrationTicks\n */\n void startCalibration();\n\n /**\n * Finishes calibration. Stops calibrating and sets the calibration value.\n */\n void finishCalibration();\n\n /**\n * Gets the zero point for rate measurement\n *\n * @return The offset found by calibration\n */\n double getCalibrationOffset();\n\n /**\n * Checks if the gyro is currently calibrating.\n * If it is, measured rate and angle values are not guaranteed to be accurate.\n *\n * @return Whether the gyro is currently calibrating\n */\n boolean isCalibrating();\n\n /**\n * Gets the rate of yaw change from the gyro\n *\n * @return The rate of yaw change in degrees per second, positive is clockwise\n */\n double getRate();\n\n /**\n * Gets the yaw of the gyro\n *\n * @return The yaw of the gyro in degrees\n */\n double getAngle();\n\n /**\n * Resets the current angle of the gyro to zero\n */\n void resetAngle();\n}",
"public double getGyroAngleY() {\n return m_gyro.getAngleY();\n }",
"@Override\n public void gyroRoll(int value, int timestamp) {\n }",
"public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}",
"@Override\n public void gyroYaw(int value, int timestamp) {\n }",
"public double getGyroAngleX() {\n return m_gyro.getAngleX();\n }",
"public Double radiansPerSecond()\n\t{\n\t\treturn getValue(AngularVelocityUnit.RADIANS_PER_SEC);\n\t}",
"@Override\n public void gyroPitch(int value, int timestamp) {\n }",
"public double[] getGyro();",
"public void updateGyro() {\n\t\tangleToForward = gyro.getAngle();\n\t\tif (angleToForward >= 360) {\n\t\t\tangleToForward -= 360;\n\t\t} else if (angleToForward < 0) {\n\t\t\tangleToForward += 360;\n\t\t}\n\n\t}",
"public synchronized double getRoll() {\n\t\tif (isConnected) {\n\t\t\treturn gyro.getRoll();\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"double getRate();",
"public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }",
"public void initGyro() {\r\n\t\tresult = new AccumulatorResult();\r\n\t\tif (m_analog1 == null || m_analog2 == null) {\r\n\t\t\tSystem.out.println(\"Null m_analog\");\r\n\t\t}\r\n\t\tm_voltsPerDegreePerSecond = kDefaultVoltsPerDegreePerSecond;\r\n\t\t\r\n\t\t\r\n\t\tm_analog1.setAverageBits(kAverageBits);\r\n\t\tm_analog1.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\tm_analog2.setAverageBits(kAverageBits);\r\n\t\tm_analog2.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\t\r\n\t\tdouble sampleRate = kSamplesPerSecond\r\n\t\t\t\t* (1 << (kAverageBits + kOversampleBits));\r\n\t\tAnalogInput.setGlobalSampleRate(sampleRate);\r\n\t\tTimer.delay(1.0);\r\n\r\n\t\tm_analog1.initAccumulator();\r\n\t\tm_analog1.resetAccumulator();\r\n\t\tm_analog2.initAccumulator();\r\n\t\tm_analog2.resetAccumulator();\r\n\r\n\t\tTimer.delay(kCalibrationSampleTime);\r\n\r\n\t\tfor(int i =0 ; i < mAnalogs.length; i++)\r\n\t\t{\r\n\t\t\tmAnalogs[i].getAccumulatorOutput(result);\r\n\t\r\n\t\t\tm_centers[i]= (int) ((double) result.value / (double) result.count + .5);\r\n\t\r\n\t\t\tm_offsets[i] = ((double) result.value / (double) result.count)\r\n\t\t\t\t\t- m_centers[i];\r\n\t\r\n\t\t\tmAnalogs[i].setAccumulatorCenter(m_centers[i]);\r\n\t\t\tmAnalogs[i].resetAccumulator();\r\n\t\r\n\t\t\t\r\n\t\t\t//LiveWindow.addSensor(\"Gyro\", m_analog.getChannel(), this);\r\n\t\t}\r\n\t\tif(mMode == TWO_CANCEL) setDeadband(kCancelDeadband);\r\n\t\telse if(mMode == TWO_DEADBAND) {\r\n\t\t\tsetDeadband1(0.0);\r\n\t\t\tmAccumulatedAngle = 0;\r\n\t\t}\r\n\t\t\r\n\t\tmOffset = 0;\r\n\t}",
"public synchronized double getPitch() {\n\t\tif (isConnected) {\n\t\t\treturn gyro.getPitch();\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public static Gyro getGyro() {\n return sGyro;\n }",
"double getAcceleration ();",
"private void CalibrateGyro() {\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu.initialize(parameters);\n while (!imu.isGyroCalibrated()){}\n }",
"public double curSwing(){\r\n return swingGyro.getAngle();\r\n }",
"public double getRotationalPeriod() {\n return rotationalPeriod;\n }",
"public int getCameraSensorRotation();",
"public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}",
"public float getRate(){\r\n return rate;\r\n }",
"public double getRightRate() {\n return rightEnc.getRate();\n }",
"public double getYRotate() {\n\t\tif (Math.abs(getRawAxis(Axis_YRotate)) > stickDeadband) {\n\t\t\treturn getRawAxis(Axis_YRotate);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }",
"public float getRate() {\n\treturn durationStretch * nominalRate;\n }",
"public float getRate() {\n\t\treturn rate;\n\t}",
"public Double degreePerSecond()\n\t{\n\t\treturn getValue(AngularVelocityUnit.DEGREES_PER_SEC);\n\t}",
"public void calibrateGyro() {\n gyro.SetYaw(0);\n }",
"public double getRotRms() {\n\t\treturn 3600.0 * Math.sqrt(1000.0 * rotInt / (double) (updateTimeStamp - startTime));\n\t}",
"public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER && event.sensor.getType() != Sensor.TYPE_GYROSCOPE)\n return;\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n sensorCount++;\n\n if (sensorFirstRead) {\n nanotime = System.nanoTime();\n sensorFirstRead = false;\n } else {\n\n if (sensorCount > 0 && sensorCount % 10 == 0) {\n differenceNanoTime = System.nanoTime() - nanotime;\n if (differenceNanoTime > sensorCounterIntervalDelay) {\n differenceSeconds = (double) differenceNanoTime / 1000000000f;\n\n sensorAverageCount = sensorCount / differenceSeconds;\n sensorAverageCountTextView.setText(String.format(\"Read/s: %.2f\", sensorAverageCount));\n\n if (sensorFirstAverageCycle || Math.abs(sensorAverageCount - accValuesLimit * 2) > accValuesLimit * 0.2) {\n if (sensorFirstAverageCycle)\n sensorFirstAverageCycle = false;\n\n accValuesLimit = (int) sensorAverageCount / 2;\n gyroValuesLimit = accValuesLimit / 2;\n sensorCountLimitTextView.setText(String.format(\"Sensor count limit: %d\", accValuesLimit));\n\n stats.get(\"accX\").setLimit(accValuesLimit);\n stats.get(\"accY\").setLimit(accValuesLimit);\n stats.get(\"accZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeX\").setLimit(accValuesLimit);\n stats.get(\"accDegreeY\").setLimit(accValuesLimit);\n stats.get(\"accTotalAcceleration\").setLimit(accValuesLimit);\n stats.put(\"gyroX\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroY\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroZ\", new StatisticList(gyroValuesLimit));\n }\n\n sensorCount = 0;\n nanotime = System.nanoTime();\n }\n }\n }\n }\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n\n mAccelerometerSensorX = event.values[0];\n mAccelerometerSensorY = event.values[1];\n mAccelerometerSensorZ = event.values[2];\n\n mAccelerometerTotalAcceleration = Math.sqrt(Math.pow(mAccelerometerSensorX, 2) + Math.pow(mAccelerometerSensorY, 2) + Math.pow(mAccelerometerSensorZ, 2));\n\n stats.get(\"accX\").addValue(mAccelerometerSensorX);\n stats.get(\"accY\").addValue(mAccelerometerSensorY);\n stats.get(\"accZ\").addValue(mAccelerometerSensorZ);\n stats.get(\"accTotalAcceleration\").addValue(mAccelerometerTotalAcceleration);\n\n tmp_y = stats.get(\"accY\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage(); // g\n tmp_x = stats.get(\"accX\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n tmp_z = stats.get(\"accZ\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n\n mRotationDegreeZ = Math.asin(tmp_x) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeZ))\n mRotationDegreeZ = stats.get(\"accDegreeZ\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeX = Math.asin(tmp_z) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeX))\n mRotationDegreeX = stats.get(\"accDegreeX\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeY = Math.asin(tmp_y) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeY))\n mRotationDegreeY = stats.get(\"accDegreeY\").getAverage() > 0 ? 90 : -90;\n\n stats.get(\"accDegreeZ\").addValue(mRotationDegreeZ);\n stats.get(\"accDegreeX\").addValue(mRotationDegreeX);\n stats.get(\"accDegreeY\").addValue(mRotationDegreeY);\n\n updateLog(Sensor.TYPE_ACCELEROMETER);\n }\n else\n if(event.sensor.getType()==Sensor.TYPE_GYROSCOPE)\n {\n mGyroX = event.values[0];\n mGyroY = event.values[1];\n mGyroZ = event.values[2];\n\n stats.get(\"gyroX\").addValue(mGyroX);\n stats.get(\"gyroY\").addValue(mGyroY);\n stats.get(\"gyroZ\").addValue(mGyroZ);\n\n updateLog(Sensor.TYPE_GYROSCOPE);\n }\n }",
"public double getRotation() {\n return getDouble(\"ts\");\n }",
"int getSensorRotationDegrees();",
"public double getRotMax() {\n\t\treturn rotMax;\n\t}",
"public Gyro (){\n try {\n /* Communicate w/navX MXP via the MXP SPI Bus. */\n /* Alternatively: I2C.Port.kMXP, SerialPort.Port.kMXP or SerialPort.Port.kUSB */\n /* See http://navx-mxp.kauailabs.com/guidance/selecting-an-interface/ for details. */\n gyro_board = new AHRS(SPI.Port.kMXP);\n\n last_world_linear_accel_x = gyro_board.getWorldLinearAccelX();\n last_world_linear_accel_y = gyro_board.getWorldLinearAccelY();\n last_check_time = Timer.getFPGATimestamp();\n\n initial_offset = gyro_board.getYaw();\n } catch (RuntimeException ex ) {\n DriverStation.reportError(\"Error instantiating navX MXP: \" + ex.getMessage(), true);\n }\n\n\n }",
"public double getR() {\r\n\t\tif(!polar)\r\n\t\t\tupdatePolar();\r\n\t\treturn r;\r\n\t}",
"double getPWMRate();",
"int getMortgageRate();",
"double getMagnetic(double reading);",
"public double getRate() {\n\t\treturn rate;\n\t}",
"public void onSensorChanged(SensorEvent event) {\n\t\t\tint type = event.sensor.getType();\n\t\t\tif (type == Sensor.TYPE_ACCELEROMETER) {\n\t\t\t\tlong curTime = System.currentTimeMillis();\n\t\t\t\t// only allow one update every 100ms, otherwise updates\n\t\t\t\t// come way too fast and the phone gets bogged down\n\t\t\t\t// with garbage collection\n\t\t\t\t//Log.d(TAG, \"onSensorChanged(\"+type+\")\");\t\t\t\t\n\t\t\t\tif (lastUpdate == -1 || (curTime - lastUpdate) > 40) {\n\t\t\t\t\tlastUpdate = curTime;\t\t\t\t\n\t\t\t\t\tsynchronized (LOCK){\n\t\t\t\t\t\tmLastAccOrientation = calculateAngle(event);\n\t\t\t\t\t\tmLastSample.x = event.values[0];\n\t\t\t\t\t\tmLastSample.y = event.values[1];\n\t\t\t\t\t\tmLastSample.z = event.values[2];\n\t\t\t\t\t\tmLastSample.angle = mLastAccOrientation.angle;\t\t\n\t\t\t\t\t\t//mLastSample.orientation = mLastAccOrientation.orientation;\n\t\t\t\t\t\tmLastSample.orientation = mLastAccOrientation.rotation*90;\n\t\t\t\t\t\tmLastSample.threshold = mLastAccOrientation.threshold;\n\t\t\t\t\t\tmBuffer = mLastSample.x+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.y+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.z+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.angle+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.orientation+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.threshold;\n\t\t\t\t\t\tif (mShowLog)\n\t\t\t\t\t\t\tLog.d(TAG, mBuffer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n\tpublic double calRate() {\n\t\treturn 0.9f;\n\t}",
"public double getRightAcceleration() {\n return rightEnc.getAcceleration();\n }",
"double getTransRate();",
"public double getGyroPidSteering() {\n\t\treturn gyroPid.get();\n\t}",
"public double getRate() {\n return rate;\n }",
"public double getRate() {\n return rate;\n }",
"public int getReSampleRate() {\n return 0;\n }",
"private double getGyroError(double targetAngle) {\n double error = targetAngle - imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.XZY, AngleUnit.DEGREES).thirdAngle;\n\n // keep the error on a range of -179 to 180\n while(opModeIsActive() && error > 180) error -= 360;\n while(opModeIsActive() && error <= -180) error += 360;\n\n return error;\n }",
"public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}",
"public float getRawRotationAngle() {\n return this.mRawRotationAngle;\n }",
"private double getRawAngle() {\n return (m_pot.getVoltage() / Constants.AIO_MAX_VOLTAGE) * Constants.Hood.POT_SCALE;\n }",
"@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }",
"public double getGCRatio() {\n return getCRatio() + getGRatio();\n }",
"public double getAngle()\n {\n return (AngleAverage);\n }",
"private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }",
"int getLastVibrationFrequency();",
"private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }",
"public Rotation2d getHeading() {\n return Rotation2d.fromDegrees(Math.IEEEremainder(gyro.getAngle(), 360) * (Const.kGyroReversed ? -1.0 : 1.0));\n }",
"public double getAcceleration(ADXL345_I2C.Axes axis)\n {\n return accel.getAcceleration(axis);\n }",
"private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }",
"public void testGyroAngle(AnalogGyro gyro) {\n // Set angle\n for (int i = 0; i < 5; i++) {\n m_tpcam.getPan().set(0);\n Timer.delay(0.1);\n }\n\n Timer.delay(0.5);\n // Reset for setup\n gyro.reset();\n Timer.delay(0.5);\n\n // Perform test\n for (int i = 0; i < 53; i++) {\n m_tpcam.getPan().set(i / 100.0);\n Timer.delay(0.05);\n }\n Timer.delay(1.2);\n\n double angle = gyro.getAngle();\n\n double difference = TEST_ANGLE - angle;\n\n double diff = Math.abs(difference);\n\n assertEquals(errorMessage(diff, TEST_ANGLE), TEST_ANGLE, angle, 10);\n }",
"float calcRotate(float rotateDeg, float anglePerIn)\n {\n return rotateDeg / anglePerIn;\n }",
"double getPitch();",
"public double getHeading() {\n return Rotation2d.fromDegrees(m_gyro.getAngle()).getDegrees();\n }",
"private double getgAxis(ADXL345_I2C.Axes x) {\n return trollyAccelerometer.getAcceleration(x);\n }",
"public double getAccelY() {\n return m_accelerometer.getY();\n }",
"public double getRotation();",
"public double getRotDiff() {\n\t\treturn rotDiff;\n\t}",
"private double getRotationMomentum()\n\t{\n\t\treturn getRotation() * this.currentMomentMass;\n\t}",
"public double getAcceleration(Axes axis) {\n byte[] rawAccel = new byte[2];\n m_i2c.read(kDataRegister + axis.value, rawAccel.length, rawAccel);\n\n // Sensor is little endian... swap bytes\n return accelFromBytes(rawAccel[0], rawAccel[1]);\n }",
"public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }",
"public int getRate() {\n return rate_;\n }",
"public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }",
"@Override\r\n\tpublic String getSmartDashboardType() {\r\n\t\treturn \"Gyro\";\r\n\t}",
"public double updatePeriodic()\n {\n double Angle = getRawAngle();\n\n if (FirstCall)\n {\n AngleAverage = Angle;\n }\n\n AngleAverage -= AngleAverage / NumAvgSamples;\n AngleAverage += Angle / NumAvgSamples;\n\n return (AngleAverage);\n }",
"public int getRate() {\n return rate_;\n }",
"float getPitch();",
"float getPitch();",
"public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }",
"public float getCountRate() {\n return countMonitor.getRate();\n }",
"public double getRot() {\n return this.rot;\n }",
"float getVideoCaptureRateFactor();",
"public void resetGyroAngle() {\n\t\tgyro.reset();\n\t}",
"public Integer getRate() {\r\n return rate;\r\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 }",
"double getCalibratedLevelAngle();",
"@Override\n\tpublic int getMotorSpeed() {\n\t\tupdateIR();\n\t\treturn direction*360;\n\t}",
"public double getAverageRate() {\n return (leftEnc.getRate() + rightEnc.getRate()) / 2;\n }"
] | [
"0.78372633",
"0.7422113",
"0.7420861",
"0.7407531",
"0.7292217",
"0.71960235",
"0.7135506",
"0.71246207",
"0.70627725",
"0.6982792",
"0.69477",
"0.6893799",
"0.68917525",
"0.68434525",
"0.67495155",
"0.67213243",
"0.6668249",
"0.666681",
"0.66401994",
"0.6575606",
"0.6535801",
"0.6529139",
"0.65122074",
"0.6441469",
"0.6406821",
"0.63878465",
"0.6305289",
"0.62868637",
"0.6238038",
"0.6230361",
"0.6220473",
"0.6201248",
"0.61848456",
"0.61799884",
"0.61719966",
"0.6160007",
"0.6157613",
"0.6139352",
"0.61199063",
"0.6113278",
"0.6100074",
"0.6098159",
"0.60870206",
"0.6069438",
"0.6052177",
"0.60521257",
"0.60506785",
"0.60500395",
"0.6021749",
"0.60217035",
"0.60185754",
"0.6016977",
"0.6002099",
"0.5988174",
"0.5984246",
"0.5980945",
"0.59771514",
"0.59771514",
"0.5969029",
"0.59609026",
"0.59578",
"0.5955356",
"0.5950703",
"0.59479475",
"0.59424907",
"0.5938696",
"0.59299487",
"0.5925648",
"0.59101766",
"0.59072137",
"0.5890172",
"0.5888711",
"0.5887324",
"0.5881587",
"0.58702534",
"0.58519566",
"0.58509934",
"0.58353674",
"0.58337986",
"0.5830595",
"0.5828514",
"0.582187",
"0.5785212",
"0.5784529",
"0.57818645",
"0.57794964",
"0.5776611",
"0.5773524",
"0.5770253",
"0.5770253",
"0.57611024",
"0.57564884",
"0.5743804",
"0.57338977",
"0.57318914",
"0.5729913",
"0.5728572",
"0.572614",
"0.572395",
"0.5722988"
] | 0.6579345 | 19 |
Set the gyro sensitivity. This takes the number of volts/degree/second sensitivity of the gyro and uses it in subsequent calculations to allow the code to work with multiple gyros. This value is typically found in the gyro datasheet. | public void setSensitivity(double voltsPerDegreePerSecond) {
m_voltsPerDegreePerSecond = voltsPerDegreePerSecond;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void calibrateGyro() {\n gyro.SetYaw(0);\n }",
"public void updateGyro() {\n\t\tangleToForward = gyro.getAngle();\n\t\tif (angleToForward >= 360) {\n\t\t\tangleToForward -= 360;\n\t\t} else if (angleToForward < 0) {\n\t\t\tangleToForward += 360;\n\t\t}\n\n\t}",
"private void setGyroFrequency(String f, BandInfo bandInfo) {\n gyroManager.setFrequency(f, bandInfo);\n }",
"public void resetGyro(){\n //TODO:Reset the gyro(zero it)\n }",
"public static void setGyroscope(ArrayList<Inertial> someoneJointOrit, ArrayList<InertialGyro> inertial_gyro, double thresholdInertialGyro) {\n\t\tdouble[]gyro = new double[3];\r\n\t\t\r\n\t\tfor (int i = 0; i < someoneJointOrit.size(); i++) {\r\n\t\t\tgyro[0] = someoneJointOrit.get(i).getRight_wrist()[3];\r\n\t\t\tgyro[1] = someoneJointOrit.get(i).getRight_wrist()[4];\r\n\t\t\tgyro[2] = someoneJointOrit.get(i).getRight_wrist()[5];\r\n\t\t\t\r\n\t\t\tif(Math.abs(gyro[0]) < thresholdInertialGyro)\r\n\t\t\t\tgyro[0] = 0;\r\n\t\t\tif(Math.abs(gyro[1]) < thresholdInertialGyro)\r\n\t\t\t\tgyro[1] = 0;\r\n\t\t\tif(Math.abs(gyro[2]) < thresholdInertialGyro)\r\n\t\t\t\tgyro[2] = 0;\r\n\t\t\t\r\n\t\t\tinertial_gyro.add(new InertialGyro(gyro[0], gyro[1], gyro[2]));\r\n\t\t}\r\n\t}",
"public double getGyroInRad(){\n return 0.0;//TODO:Pull and return gyro in radians\n }",
"@Override\n public void gyroYaw(int value, int timestamp) {\n }",
"public interface Gyro {\n /**\n * Get the amount of time the gyro spends calibrating\n *\n * @return Length of gyro calibration period\n */\n double getCalibrationPeriod();\n\n /**\n * Set the amount of time the gyro will spend calibrating\n *\n * @param calibrationPeriod Desired length of gyro calibration period\n */\n void setCalibrationPeriod(double calibrationPeriod);\n\n /**\n * Reset calibration and angle monitoring\n */\n void fullReset();\n\n /**\n * Starts calibrating the gyro. Resets the calibration value and begins\n * sampling gyro values to get the average 0 value. Sample time determined\n * by calibrationTicks\n */\n void startCalibration();\n\n /**\n * Finishes calibration. Stops calibrating and sets the calibration value.\n */\n void finishCalibration();\n\n /**\n * Gets the zero point for rate measurement\n *\n * @return The offset found by calibration\n */\n double getCalibrationOffset();\n\n /**\n * Checks if the gyro is currently calibrating.\n * If it is, measured rate and angle values are not guaranteed to be accurate.\n *\n * @return Whether the gyro is currently calibrating\n */\n boolean isCalibrating();\n\n /**\n * Gets the rate of yaw change from the gyro\n *\n * @return The rate of yaw change in degrees per second, positive is clockwise\n */\n double getRate();\n\n /**\n * Gets the yaw of the gyro\n *\n * @return The yaw of the gyro in degrees\n */\n double getAngle();\n\n /**\n * Resets the current angle of the gyro to zero\n */\n void resetAngle();\n}",
"public double[] getGyro();",
"public final void GyroStrafeDistance (int Distance, double power)\n {\n //Define variable for the right range senson that measures centimeters\n double RightRangeDistance = RightRange.getDistance(DistanceUnit.CM);\n\n //While the robot's distance is less than the wanted distance do the following\n while (Distance >= RightRangeDistance && opModeIsActive())\n {\n //Define variable for gyro angle\n float GyroAngle = robot.Gyro.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\n\n //Update the variable for the range sensor\n RightRangeDistance = RightRange.getDistance(DistanceUnit.CM);\n\n //If the gyro's read angle is more than 3 degrees turn right until it is not\n if (GyroAngle > 3 )\n {\n while(GyroAngle > 3 && opModeIsActive())\n {\n //Turn Right\n robot.DriveLeftBack.setPower(-.1);\n robot.DriveRightBack.setPower(.1);\n robot.DriveRightFront.setPower(.1);\n robot.DriveLeftFront.setPower(-.1);\n\n //Update the gyro's angle\n GyroAngle = robot.Gyro.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\n }\n }\n\n //If the gyro's read angle is less than -3 degrees turn left until it is not\n else if (GyroAngle < -3)\n {\n while (GyroAngle < -3 && opModeIsActive())\n {\n //Turn Left\n robot.DriveLeftBack.setPower(.1);\n robot.DriveRightBack.setPower(-.1);\n robot.DriveRightFront.setPower(-.1);\n robot.DriveLeftFront.setPower(.1);\n\n //Update the gyro's angle\n GyroAngle = robot.Gyro.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\n }\n }\n\n //Strafe (right or left)\n robot.DriveLeftBack.setPower(-power);\n robot.DriveRightBack.setPower(power);\n robot.DriveRightFront.setPower(-power);\n robot.DriveLeftFront.setPower(power);\n\n //Send feedback to phone\n telemetry.addData(\"Angle\",\n GyroAngle);\n telemetry.addData(\"Distance\", RightRangeDistance);\n telemetry.update();\n\n //End of loop, robot will repeat the above until it reaches the wanted distance\n }\n robot.DriveLeftBack.setPower(0);\n robot.DriveRightBack.setPower(0);\n robot.DriveRightFront.setPower(0);\n robot.DriveLeftFront.setPower(0);\n }",
"public void resetGyroAngle() {\n\t\tgyro.reset();\n\t}",
"public Gyro (){\n try {\n /* Communicate w/navX MXP via the MXP SPI Bus. */\n /* Alternatively: I2C.Port.kMXP, SerialPort.Port.kMXP or SerialPort.Port.kUSB */\n /* See http://navx-mxp.kauailabs.com/guidance/selecting-an-interface/ for details. */\n gyro_board = new AHRS(SPI.Port.kMXP);\n\n last_world_linear_accel_x = gyro_board.getWorldLinearAccelX();\n last_world_linear_accel_y = gyro_board.getWorldLinearAccelY();\n last_check_time = Timer.getFPGATimestamp();\n\n initial_offset = gyro_board.getYaw();\n } catch (RuntimeException ex ) {\n DriverStation.reportError(\"Error instantiating navX MXP: \" + ex.getMessage(), true);\n }\n\n\n }",
"public void resetGyro () {\n gyro.reset();\n }",
"private void remapGyroVector(){\n\t\tif (referenceGyroMatrix == null){\n\t\t\ttempGyroMatrix = new float[16];\n\t\t\treferenceGyroMatrix = new float[16];\n\t\t\tMatrix.setIdentityM(tempGyroMatrix, 0);\n\t\t\tSensorManager.remapCoordinateSystem(tempGyroMatrix, remapX, remapY, referenceGyroMatrix);\n\t\t\tSystem.arraycopy(referenceGyroMatrix, 0, tempGyroMatrix, 0, 16);\n\t\t\tthis.remappedGyro = new float[4];\n\t\t\tthis.tempGyroValues = new float[4];\n\t\t\t//need to transpose, since sensor manager and matrix use different notations\n\t\t\t//Matrix.transposeM(referenceGyroMatrix, 0, tempGyroMatrix, 0);\n\t\t}\n\t\t\n\t\tfloat[] gyroValues = getValues(VALUE_KEYS.GYRO.name());\n\t\t//System.arraycopy(gyroValues, 0, this.gyroValues, 0, 3);\n\t\tSystem.arraycopy(gyroValues, 0, this.tempGyroValues, 0, 3);\n\t\tMatrix.multiplyMV(this.remappedGyro, 0, referenceGyroMatrix, 0, this.tempGyroValues, 0);\n\t\tSystem.arraycopy(this.remappedGyro, 0, this.finalGyroValues, 0, 3);\n\t\t\n\t}",
"@Override\n public void gyroPitch(int value, int timestamp) {\n }",
"public void customArcadeDrive(double xValue, double yValue, Gyro gyro)\n\t{\n\t\tif(yValue != 0 && Math.abs(xValue) < 0.15)\n {\n\t\t\tsetPercentOutput(yValue, yValue);\n\t \t}\n\t\telse if(yValue == 0 && Math.abs(xValue) < 0.15)\n\t\t{\n\t\t\tgyro.resetAngle();\n\t\t\tstop();\n\t\t\tsupposedAngle = gyro.getYaw();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgyro.resetAngle();\n\t\t\tcurvatureDrive(xValue, yValue);\n\t\t\tsupposedAngle = gyro.getYaw();\n\t\t}\n\t}",
"private void CalibrateGyro() {\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu.initialize(parameters);\n while (!imu.isGyroCalibrated()){}\n }",
"public double getGyroInDeg(){\n return 0.0;//TODO:Pull gyro in radians and convert to degrees\n }",
"public static Gyro getGyro() {\n return sGyro;\n }",
"private void setFullScaleGyroRange(byte range) {\n gyroscopeCoef = getGyroscopeCoefficient(range);\n try {\n i2cDevice.writeRegByte(MPU6050_RA_GYRO_CONFIG, range);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set gyro range\", e);\n }\n }",
"@Override\n public void gyroRoll(int value, int timestamp) {\n }",
"public double getGyroAngleX() {\n return m_gyro.getAngleX();\n }",
"public void setSensitivity(double sensitivity) {\r\n\t\tm_sensitivity = sensitivity;\r\n\t}",
"@Override\n\t\tpublic void onGyroscopeData(Myo myo, long timestamp, Vector3 gyro) {\n\t\t\tsuper.onGyroscopeData(myo, timestamp, gyro);\n\t\t}",
"public void setSensitivity(float newSensitivity)\n\t{\n\t\tthis.sensitivity = newSensitivity;\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n timestamp = event.timestamp;\n gyroX = event.values[0];\n gyroY = event.values[1];\n gyroZ = event.values[2];\n\n this.setChanged();\n this.notifyObservers(Sensor.TYPE_GYROSCOPE);\n }",
"private void controlSeaperch(ArrayList<Float> gyroX, ArrayList<Float> gyroZ,\n\t\t\t\t\t\t\t\t ArrayList<Float> gyroY, SeekBar slider){\n\t\tif(!gyroY.isEmpty() && !(slider.getProgress()>=gyroY.size())) { //If we have data\n\t\t\tslider.setMax(gyroZ.size() - 1); //Scale bar to size of data array\n\t\t\tfloat x = gyroX.get(slider.getProgress());\n\t\t\tfloat y = gyroY.get(slider.getProgress());\n\t\t\tfloat z = gyroZ.get(slider.getProgress());\n\t\t\tfloat sampleTime = 0.1f; //approximate, 10Hz sample rate\n\n\t\t\tx = x * sampleTime; //deg/sec * sec\n\t\t\ty = y * sampleTime;\n\t\t\tz = z * sampleTime;\n\n\t\t\trotateSeaperch(seaperch, x, z, y); //Z and Y are reversed here\n\t\t}\n\t}",
"public void initGyro() {\r\n\t\tresult = new AccumulatorResult();\r\n\t\tif (m_analog1 == null || m_analog2 == null) {\r\n\t\t\tSystem.out.println(\"Null m_analog\");\r\n\t\t}\r\n\t\tm_voltsPerDegreePerSecond = kDefaultVoltsPerDegreePerSecond;\r\n\t\t\r\n\t\t\r\n\t\tm_analog1.setAverageBits(kAverageBits);\r\n\t\tm_analog1.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\tm_analog2.setAverageBits(kAverageBits);\r\n\t\tm_analog2.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\t\r\n\t\tdouble sampleRate = kSamplesPerSecond\r\n\t\t\t\t* (1 << (kAverageBits + kOversampleBits));\r\n\t\tAnalogInput.setGlobalSampleRate(sampleRate);\r\n\t\tTimer.delay(1.0);\r\n\r\n\t\tm_analog1.initAccumulator();\r\n\t\tm_analog1.resetAccumulator();\r\n\t\tm_analog2.initAccumulator();\r\n\t\tm_analog2.resetAccumulator();\r\n\r\n\t\tTimer.delay(kCalibrationSampleTime);\r\n\r\n\t\tfor(int i =0 ; i < mAnalogs.length; i++)\r\n\t\t{\r\n\t\t\tmAnalogs[i].getAccumulatorOutput(result);\r\n\t\r\n\t\t\tm_centers[i]= (int) ((double) result.value / (double) result.count + .5);\r\n\t\r\n\t\t\tm_offsets[i] = ((double) result.value / (double) result.count)\r\n\t\t\t\t\t- m_centers[i];\r\n\t\r\n\t\t\tmAnalogs[i].setAccumulatorCenter(m_centers[i]);\r\n\t\t\tmAnalogs[i].resetAccumulator();\r\n\t\r\n\t\t\t\r\n\t\t\t//LiveWindow.addSensor(\"Gyro\", m_analog.getChannel(), this);\r\n\t\t}\r\n\t\tif(mMode == TWO_CANCEL) setDeadband(kCancelDeadband);\r\n\t\telse if(mMode == TWO_DEADBAND) {\r\n\t\t\tsetDeadband1(0.0);\r\n\t\t\tmAccumulatedAngle = 0;\r\n\t\t}\r\n\t\t\r\n\t\tmOffset = 0;\r\n\t}",
"public void setSensitivity(double sensitivity) {\n\t\tthis.sensitivity = sensitivity;\n\t}",
"public Gyro2903(GYRO_TYPE gyroType) {\n\t\tgyroToUse = gyroType;\n\n\t\tswitch (gyroType) {\n\t\tcase ANALOG:\n\t\t\tgyro = new AnalogGyro(RobotMap.AnalogGyro);\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tspi = new ADXRS450_Gyro(SPI.Port.kOnboardCS0);\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\timu = new ADIS16448_IMU();\n\t\t\tbreak;\n\t\t}\n\t}",
"protected void initialize() {\n \tRobot.gyroSubsystem.reset();\n \tstartAngle = Robot.gyroSubsystem.gyroPosition();\n \ttargetAngle = startAngle + goal;\n }",
"public double GyroPosition() {\n\t\tswitch (gyroToUse) {\n\t\tcase ANALOG:\n\t\t\tgyroAngle = gyro.getAngle();\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tgyroAngle = spi.getAngle();\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\tgyroAngle = imu.getAngleZ();\n\t\t\tbreak;\n\t\t}\n\n\t\tgyroAngle = gyroAngle % 360;\n\n\t\t// SmartDashboard.putNumber(\"gyroAngle\", gyroAngle);\n\t\treturn gyroAngle;\n\n\t}",
"public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }",
"public boolean addXLGyro() {\n if (getEmptyCriticals(LOC_CT) < 6) {\n return false;\n }\n clearEngineCrits();\n addGyro();\n addCritical(LOC_CT, 7, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n addCritical(LOC_CT, 8, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n setGyroType(GYRO_XL);\n addEngineCrits();\n\n return true;\n }",
"public final void GyroTurn (int degrees, double power)\n {\n //Define gyro angle\n float GyroAngle = robot.Gyro.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\n\n //While the gyro is reading degrees that is not the desired, turn right or left\n while (GyroAngle != degrees)\n {\n //\n robot.DriveLeftBack.setPower(-.1);\n robot.DriveRightBack.setPower(.1);\n robot.DriveRightFront.setPower(.1);\n robot.DriveLeftFront.setPower(-.1);\n\n //Update gyro angle\n GyroAngle = robot.Gyro.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\n }\n\n //Stop\n Stop();\n }",
"protected void onChange_VaccRate() {\n onChange_VaccRate_xjal( VaccRate );\n }",
"void gyroSafety(){\n }",
"void setLastVibrationFrequency(int lastVibrationFrequency);",
"public double getGyroAngleY() {\n return m_gyro.getAngleY();\n }",
"protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }",
"public static native void OpenMM_AmoebaWcaDispersionForce_setSlevy(PointerByReference target, double inputValue);",
"public boolean addGyro() {\n if (getEmptyCriticals(LOC_CT) < 4) {\n return false;\n }\n addCompactGyro();\n addCritical(LOC_CT, 5, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n addCritical(LOC_CT, 6, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n setGyroType(GYRO_STANDARD);\n return true;\n }",
"public void changeVel(double xV, double yV){ \n this.xVel += xV;\n this.yVel += yV;\n }",
"public void setWavelength(float wavelength) {\n/* 61 */ this.wavelength = wavelength;\n/* */ }",
"public boolean addHeavyDutyGyro() {\n if (addGyro()) {\n setGyroType(GYRO_HEAVY_DUTY);\n return true;\n }\n return false;\n }",
"public double getTurnRate() {\n return m_gyro.getRate() * (DriveConstants.kGyroReversed ? -1.0 : 1.0);\n }",
"void setAngularVelocity(double omega) {\r\n // changing direction of rotation takes energy\r\n if (!expendEnergy(Math.abs(omega - angularVel) / 2))\r\n return;\r\n //sets amount of degree rotation per clock tick, in radians;\r\n //clockwise is positive\r\n angularVel = omega;\r\n }",
"public double getGyroPidSteering() {\n\t\treturn gyroPid.get();\n\t}",
"public double getSensitivity() {\n\t\treturn sensitivity;\n\t}",
"public void setSensitivity(int s)\n\t{\n\t\tif (s < 0)\n\t\t{\n\t\t\tMinim.error(\"BeatDetect: sensitivity cannot be less than zero. Defaulting to 10.\");\n\t\t\tsensitivity = 10;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsensitivity = s;\n\t\t}\n\t}",
"public void right90 () {\n saveHeading = 0; //modernRoboticsI2cGyro.getHeading();\n gyroTurn(TURN_SPEED, saveHeading - 90);\n gyroHold(HOLD_SPEED, saveHeading - 90, 0.5);\n }",
"public void setVibrationOn() {\n\n }",
"public void setMicGainDb(float level);",
"public void setY_vel(double setYVel) {\n this.y_vel = setYVel;\n }",
"public void setPurchaseRate (double purchaseRate)\t{\n\t\t//REMEDY 5501\n\t\tint round_nth_decimal = 4;\n\n\t\tdouble rv = -1;\n\n\t\tif(ConfigProvider.getProperty(ROUND_NTH_DECIMAL)!=null){\n\t\t\tround_nth_decimal = Integer.parseInt(ConfigProvider.getProperty(ROUND_NTH_DECIMAL));\n\t\t}\n\n\t\trv = roundDouble(purchaseRate, round_nth_decimal);\n\n\t\tmPurchaseRate = rv;\n\t\t//END REMEDY 5501\n\t}",
"protected void initialize() {\n \tDrivetrain.gyro.reset();\n }",
"void setPWMRate(double rate);",
"public void setGy(final Acceleration gravityY) {\n mGy = AccelerationConverter.convert(gravityY.getValue().doubleValue(),\n gravityY.getUnit(),\n AccelerationUnit.METERS_PER_SQUARED_SECOND);\n }",
"public void testGyroAngleCalibratedParameters() {\n // Get calibrated parameters to make new Gyro with parameters\n final double calibratedOffset = m_tpcam.getGyro().getOffset();\n final int calibratedCenter = m_tpcam.getGyro().getCenter();\n m_tpcam.freeGyro();\n m_tpcam.setupGyroParam(calibratedCenter, calibratedOffset);\n Timer.delay(TiltPanCameraFixture.RESET_TIME);\n // Repeat tests\n testInitial(m_tpcam.getGyroParam());\n testDeviationOverTime(m_tpcam.getGyroParam());\n testGyroAngle(m_tpcam.getGyroParam());\n }",
"public void setSecondExtreme(double se){\r\n secondExtreme = se;\r\n }",
"public void gyroTurn(int degrees, double power) throws InterruptedException{\n //restart angle tracking\n resetAngle();\n\n if(degrees < 0){\n turnClockwise(power);\n }else if(degrees > 0){\n turnCounterClockwise(power);\n }else{\n return;\n }\n\n //Rotate until current angle is equal to the target angle\n if (degrees < 0){\n while (opMode.opModeIsActive() && getAngle() > degrees){\n composeAngleTelemetry();\n //display the target angle\n telemetry.addData(\"Target angle\", degrees);\n telemetry.update();\n }\n }else{\n while (opMode.opModeIsActive() && getAngle() < degrees) {\n composeAngleTelemetry();\n //display the target angle\n telemetry.addData(\"Target angle\", degrees);\n telemetry.update();\n }\n }\n\n completeStop();\n //Wait .5 seconds to ensure robot is stopped before continuing\n Thread.sleep(500);\n resetAngle();\n }",
"@Override // com.oculus.modules.codegen.PreferencesStoreModule\n public void setMouseSensitivityImpl(double value) {\n Log.i(TAG, \"SETTING mouse_sensitivity to \" + value);\n Log.i(TAG, \"SETTING mouse_sensitivity to \" + value);\n this.mPreferencesManager.set(MOUSE_SENSITIVITY_KEY, value);\n this.mPreferencesManager.set(MOUSE_SENSITIVITY_KEY, value);\n }",
"public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER && event.sensor.getType() != Sensor.TYPE_GYROSCOPE)\n return;\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n sensorCount++;\n\n if (sensorFirstRead) {\n nanotime = System.nanoTime();\n sensorFirstRead = false;\n } else {\n\n if (sensorCount > 0 && sensorCount % 10 == 0) {\n differenceNanoTime = System.nanoTime() - nanotime;\n if (differenceNanoTime > sensorCounterIntervalDelay) {\n differenceSeconds = (double) differenceNanoTime / 1000000000f;\n\n sensorAverageCount = sensorCount / differenceSeconds;\n sensorAverageCountTextView.setText(String.format(\"Read/s: %.2f\", sensorAverageCount));\n\n if (sensorFirstAverageCycle || Math.abs(sensorAverageCount - accValuesLimit * 2) > accValuesLimit * 0.2) {\n if (sensorFirstAverageCycle)\n sensorFirstAverageCycle = false;\n\n accValuesLimit = (int) sensorAverageCount / 2;\n gyroValuesLimit = accValuesLimit / 2;\n sensorCountLimitTextView.setText(String.format(\"Sensor count limit: %d\", accValuesLimit));\n\n stats.get(\"accX\").setLimit(accValuesLimit);\n stats.get(\"accY\").setLimit(accValuesLimit);\n stats.get(\"accZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeX\").setLimit(accValuesLimit);\n stats.get(\"accDegreeY\").setLimit(accValuesLimit);\n stats.get(\"accTotalAcceleration\").setLimit(accValuesLimit);\n stats.put(\"gyroX\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroY\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroZ\", new StatisticList(gyroValuesLimit));\n }\n\n sensorCount = 0;\n nanotime = System.nanoTime();\n }\n }\n }\n }\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n\n mAccelerometerSensorX = event.values[0];\n mAccelerometerSensorY = event.values[1];\n mAccelerometerSensorZ = event.values[2];\n\n mAccelerometerTotalAcceleration = Math.sqrt(Math.pow(mAccelerometerSensorX, 2) + Math.pow(mAccelerometerSensorY, 2) + Math.pow(mAccelerometerSensorZ, 2));\n\n stats.get(\"accX\").addValue(mAccelerometerSensorX);\n stats.get(\"accY\").addValue(mAccelerometerSensorY);\n stats.get(\"accZ\").addValue(mAccelerometerSensorZ);\n stats.get(\"accTotalAcceleration\").addValue(mAccelerometerTotalAcceleration);\n\n tmp_y = stats.get(\"accY\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage(); // g\n tmp_x = stats.get(\"accX\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n tmp_z = stats.get(\"accZ\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n\n mRotationDegreeZ = Math.asin(tmp_x) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeZ))\n mRotationDegreeZ = stats.get(\"accDegreeZ\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeX = Math.asin(tmp_z) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeX))\n mRotationDegreeX = stats.get(\"accDegreeX\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeY = Math.asin(tmp_y) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeY))\n mRotationDegreeY = stats.get(\"accDegreeY\").getAverage() > 0 ? 90 : -90;\n\n stats.get(\"accDegreeZ\").addValue(mRotationDegreeZ);\n stats.get(\"accDegreeX\").addValue(mRotationDegreeX);\n stats.get(\"accDegreeY\").addValue(mRotationDegreeY);\n\n updateLog(Sensor.TYPE_ACCELEROMETER);\n }\n else\n if(event.sensor.getType()==Sensor.TYPE_GYROSCOPE)\n {\n mGyroX = event.values[0];\n mGyroY = event.values[1];\n mGyroZ = event.values[2];\n\n stats.get(\"gyroX\").addValue(mGyroX);\n stats.get(\"gyroY\").addValue(mGyroY);\n stats.get(\"gyroZ\").addValue(mGyroZ);\n\n updateLog(Sensor.TYPE_GYROSCOPE);\n }\n }",
"public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n\n // Ensure that the opmode is still activ\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftmotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightmotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftmotor.setTargetPosition(newLeftTarget);\n rightmotor.setTargetPosition(newRightTarget);\n\n leftmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n\n maxSpeed = speed;\n speed = INCREMENT;\n rampUp = true;\n\n leftmotor.setPower(speed);\n rightmotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while ((leftmotor.isBusy() && rightmotor.isBusy())) {\n if (rampUp){\n speed += INCREMENT ;\n if (speed >= maxSpeed ) {\n speed = maxSpeed;\n }\n }\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftmotor.setPower(leftSpeed);\n rightmotor.setPower(rightSpeed);\n }\n\n // Stop all motion;\n leftmotor.setPower(0);\n rightmotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n gyroHold(TURN_SPEED,angle,0.166);\n\n }",
"public Drive() {\r\n \tgyro.calibrate();\r\n \tgyro.reset();\r\n }",
"public void setEngineeringRate(int value) {\n this.engineeringRate = value;\n }",
"public void setGy(final double gy) {\n mGy = gy;\n }",
"@Override\n public void resetAccelY()\n {\n }",
"public void applyAngularVelocityChange(final float velocityChange);",
"@Override\n\tpublic double getSelectedSensorVelocity() {\n return encoder.getVelocity();\n\t}",
"private void processGyroData(SensorEvent event){\n //interval between two data entry should be min SENSOR_DATA_MIN_INTERVAL which is millis\n if ((event.timestamp - lastUpdateGyro) < SENSOR_DATA_MIN_INTERVAL_NANOS) { //multiply to convert to millis from nanos\n return;\n }\n\n\n float[] values = event.values;\n\n float axis_x = values[0];\n float axis_y = values[1];\n float axis_z = values[2];\n\n //float gyroscopeRotationVelocity = (float)Math.sqrt(axis_x * axis_x + axis_y * axis_y + axis_z * axis_z);\n //magnitude of gyroscope reading thresholded\n\n //if(gyroscopeRotationVelocity > EPSILON){\n lastUpdateGyro = event.timestamp;\n long timestamp = Util.getStartTime() + event.timestamp/Const.NANOS_TO_MILLIS;\n saveGyroData(axis_x, axis_y, axis_z, timestamp);\n //}\n }",
"public void setWavelength(double newValue) {\n double oldValue = getWavelength();\n if (oldValue != newValue) {\n _centralWavelength = newValue;\n firePropertyChange(WAVELENGTH_PROP.getName(), oldValue, newValue);\n }\n }",
"public void resetYVel() {\n this.yVel = 0;\n }",
"void initialize() {\n setClockSource(MPU6050_CLOCK_PLL_INTERNAL);\n setFullScaleGyroRange(MPU6050_GYRO_FS_250);\n setFullScaleAccelRange(MPU6050_ACCEL_FS_2);\n }",
"public void radiansPerSecond(Double val)\n\t{\n\t\tsetValue(val, AngularVelocityUnit.RADIANS_PER_SEC);\n\t}",
"public void setVelocity(double velocity) {\n m_motor.set(ControlMode.Velocity, toEncoderPulsesPer100ms(velocity));\n }",
"public void setMotors(double rate) {\n\t\tclimberMotor1.set(rate);\n\t}",
"public void gyroHold(double speed, double angle, double holdTime) {\n\n ElapsedTime holdTimer = new ElapsedTime();\n\n // keep looping while we have time remaining.\n holdTimer.reset();\n while (opModeIsActive() && (holdTimer.time() < holdTime)) {\n // Update telemetry & Allow time for other processes to run.\n onHeading(speed, angle, P_TURN_COEFF);\n //telemetry.update();\n }\n\n // Stop all motion;\n robot.DriveLeft1.setPower(0);\n robot.DriveRight1.setPower(0);\n robot.DriveLeft2.setPower(0);\n robot.DriveRight2.setPower(0);\n }",
"void setCalibrationPeriod(double calibrationPeriod);",
"public void setSkyFrequency(double value) {\n _avTable.set(ATTR_SKY_FREQUENCY, value);\n }",
"public void accelerate(){\n double acceleration = .1;\n if(xVel<0)\n xVel-=acceleration;\n if(xVel>0)\n xVel+=acceleration;\n if(yVel<0)\n yVel-=acceleration;\n if(yVel>0)\n yVel+=acceleration;\n System.out.println(xVel + \" \" + yVel);\n \n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n float valueAzimuth = event.values[0];\n float valuePitch = event.values[1];\n\n parent.updateAccelerometer(\n valueAzimuth / maximumRange, -valuePitch / maximumRange);\n\n }",
"public void function_yaw(int x, int y,int gyro){\n\n\n }",
"public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }",
"@Override\r\n\tpublic String getSmartDashboardType() {\r\n\t\treturn \"Gyro\";\r\n\t}",
"@Override\n public void set(double value)\n {\n final String funcName = \"set\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"value=%f\", value);\n }\n\n if (!TrcUtil.inRange(value, -1.0, 1.0))\n {\n throw new IllegalArgumentException(\"Value must be in the range of -1.0 to 1.0.\");\n }\n\n if (softLowerLimitEnabled && value < 0.0 && getPosition() <= softLowerLimit\n || softUpperLimitEnabled && value > 0.0 && getPosition() >= softUpperLimit)\n {\n value = 0.0;\n }\n\n if (maxVelocity == 0.0)\n {\n currPower = value;\n }\n // else\n // {\n // controlMode = ControlMode.Velocity;\n // value *= maxVelocity;\n // value = TrcUtil.round(value); // Velocity mode is in sensor units/100ms, and sensor units are in integers.\n // }\n motor.set(value);\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"! (value=%f)\", value);\n }\n }",
"public void setStereo(int stereo) {\n this.stereo = stereo;\n notifyChanged();\n }",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n if (sensorEvent.sensor.getType() != Sensor.TYPE_ACCELEROMETER)\n return;\n\n // must be the accelerometer - number of milliseconds since Midnight, Jan 1, 1970\n // How many milliseconds in a day? 60(60)(24)(1000) = 90,000,000\n long curr_time = System.currentTimeMillis();\n\n if (curr_time - prev_time > 500) {\n prev_time = curr_time;\n float y = sensorEvent.values[1];\n accel_y_view.setText(Float.toString(y));\n }\n }",
"public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n int newLeftTarget;\n int newRightTarget;\n int moveCounts;\n double max;\n double error;\n double steer;\n double leftSpeed;\n double rightSpeed;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftMotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightMotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftMotor.setTargetPosition(newLeftTarget);\n rightMotor.setTargetPosition(newRightTarget);\n\n leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n leftMotor.setPower(speed);\n rightMotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while (opModeIsActive() &&\n (leftMotor.isBusy() && rightMotor.isBusy())) {\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if any one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftMotor.setPower(leftSpeed);\n rightMotor.setPower(rightSpeed);\n\n // Display drive status for the driver.\n telemetry.addData(\"Err/St\", \"%5.1f/%5.1f\", error, steer);\n telemetry.addData(\"Target\", \"%7d:%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Actual\", \"%7d:%7d\", leftMotor.getCurrentPosition(),\n rightMotor.getCurrentPosition());\n telemetry.addData(\"Speed\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n telemetry.update();\n }\n\n // Stop all motion;\n\n rightMotor.setPower(0);\n leftMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }",
"public void gyroHold( double speed, double angle, double holdTime) {\n\n ElapsedTime holdTimer = new ElapsedTime();\n\n // keep looping while we have time remaining.\n holdTimer.reset();\n while (opModeIsActive() && (holdTimer.time() < holdTime)) {\n // Update telemetry & Allow time for other processes to run.\n onHeading(speed, angle, P_TURN_COEFF);\n telemetry.update();\n }\n\n // Stop all motion;\n robot.leftDrive.setPower(0);\n robot.rightDrive.setPower(0);\n }",
"public void restrictAcceleration() {\n\t\tif (acceleration.x > MAX_ACCELERATION.x)\r\n\t\t\tacceleration.x = MAX_ACCELERATION.x;\r\n\t\tif (acceleration.y > MAX_ACCELERATION.y)\r\n\t\t\tacceleration.y = MAX_ACCELERATION.y;\r\n\t\t\r\n\t\t// Caps Deceleration at Max Deceleration.\r\n\t\tif (acceleration.x < MAX_DECELERATION.x)\r\n\t\t\tacceleration.x = MAX_DECELERATION.x;\r\n\t\tif (acceleration.y < MAX_DECELERATION.y)\r\n\t\t\tacceleration.y = MAX_DECELERATION.y;\r\n\t}",
"public void setVelY(int velY){\r\n\t\tthis.velY = velY;\r\n\t}",
"public static void setAcceleration(int acceleration) {\n leftMotor.setAcceleration(acceleration);\n rightMotor.setAcceleration(acceleration);\n }",
"@Generated\n @Selector(\"setStrength:\")\n public native void setStrength(@NFloat double value);",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tdegree = Math.round(event.values[0]);\n\t}",
"public void zeroGyroscope() {\n mGyroOffset = getGyroscopeRotation(false);\n }",
"public void autonomous() {\n /*myRobot.setSafetyEnabled(false);\n myRobot.drive(-0.5, 0.0);\t// drive forwards half speed\n Timer.delay(2.0);\t\t// for 2 seconds\n myRobot.drive(0.0, 0.0);\t// stop robot\n */\n \t/*gyro.reset();\n \twhile(isAutonomous()){\n \t\tdouble angle = gyro.getAngle();\n \tmyRobot.drive(0, -angle * Kp);\t\n \tTimer.delay(.004);\n \t}\n \tmyRobot.drive(0.0, 0.0);\n \t*/\n }",
"public void setRate(double newRate) {\n this.rate = newRate;\n }",
"public void setLinearAccelaration(int accelaration) {\r\n\t\tsendCommand(9, 5, 1, accelaration);\r\n\t}",
"private void accelerate()\n {\n if(accelX < maxAccelRate)\n {\n accelX += accelerationRate;\n }\n }"
] | [
"0.6393291",
"0.6174771",
"0.6022716",
"0.5937788",
"0.5920097",
"0.5792357",
"0.5729885",
"0.57076603",
"0.5705655",
"0.56836396",
"0.5647",
"0.56325716",
"0.562892",
"0.5607425",
"0.5603002",
"0.55778503",
"0.5545073",
"0.55416197",
"0.5482364",
"0.54607344",
"0.5449562",
"0.5409471",
"0.53982735",
"0.5387762",
"0.5381213",
"0.53602225",
"0.5346725",
"0.53376174",
"0.5336305",
"0.53258735",
"0.53152263",
"0.5311156",
"0.5275473",
"0.5241593",
"0.52402496",
"0.5231616",
"0.52190864",
"0.521901",
"0.5210004",
"0.5204411",
"0.5192185",
"0.5189085",
"0.51773316",
"0.5133987",
"0.5100669",
"0.50962573",
"0.50899345",
"0.50673926",
"0.5056724",
"0.5055476",
"0.5054625",
"0.50194883",
"0.4965587",
"0.495607",
"0.4946666",
"0.49418873",
"0.49101016",
"0.4903661",
"0.48970988",
"0.48948",
"0.48842007",
"0.48839337",
"0.4876292",
"0.48704854",
"0.48596552",
"0.48546648",
"0.48525202",
"0.4852359",
"0.48420018",
"0.4836105",
"0.48265892",
"0.48218027",
"0.48053798",
"0.48038015",
"0.48017624",
"0.47927827",
"0.47916773",
"0.47824842",
"0.4777364",
"0.4765478",
"0.47498602",
"0.47434905",
"0.47419965",
"0.47406957",
"0.47373492",
"0.47330776",
"0.47257102",
"0.47224608",
"0.47194996",
"0.4716248",
"0.47149453",
"0.47129476",
"0.4700499",
"0.470039",
"0.46956286",
"0.4693963",
"0.46928036",
"0.46874616",
"0.4686945",
"0.4684383"
] | 0.5716342 | 7 |
Set the size of the neutral zone. Any voltage from the gyro less than this amount from the center is considered stationary. Setting a deadband will decrease the amount of drift when the gyro isn't rotating, but will make it less accurate. | void setDeadband(double volts) {
for(AnalogInput m_analog : mAnalogs)
{
int deadband = (int)(volts * 1e9 / m_analog.getLSBWeight() * (1 << m_analog.getOversampleBits()));
m_analog.setAccumulatorDeadband(deadband);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFreeAspectRatio() {\n setAspectRatio(-1.0);\n }",
"private void changeSize(float omegaDeg) {\n\n setSize(resolutionIntoWorldUnits(currentRegion.getRegionWidth(), WORLD_SIZE, 1080),\n resolutionIntoWorldUnits(currentRegion.getRegionHeight(), WORLD_SIZE, 1080)); // Change 1080 based on the targetResolution of the shields' own targetResolution.\n //Gdx.app.log(TAG, \"After = (\" + getWidth() + \", \" + getHeight() + \")\");\n\n float theTipOfTheShield = SHIELDS_RADIUS + (SHIELDS_RADIUS - SHIELDS_INNER_RADIUS);\n /*setY(theTipOfTheShield - getHeight());\n setX(getWidth()/2f);*/\n setX(theTipOfTheShield - getWidth());\n setY(-getHeight()/2f);\n\n setOrigin(-getX(), -getY());\n setRotation(90);\n }",
"@Override\n\tpublic void setNorth(float north) {\n\t\t\n\t}",
"public void setNeutralPose() {\n setPose(0.5f, -1, 0.5f, -1, 0.5f, -1);\n this.boltSize = 0;\n }",
"@Override\n\tpublic void setSize(float size) {\n\t\tthis.size = size;\n\t\trxs = new int [ Math.max(Math.round(size/calibration[0]), Math.round(size/calibration[1])) + 1 ];\t\t\n\t\treset();\n\t}",
"@Override\n\tpublic void setPersonal_4_HalfGaugeMeter() \n\t{\n\t}",
"public abstract void makeSafeZone(float renderHeight);",
"void setMaxActiveAltitude(double maxActiveAltitude);",
"void setMinActiveAltitude(double minActiveAltitude);",
"@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t\tif( mr > 0.1f*h ) {\n\t\t\tmr=0.1f*h;\n\t\t\tif( m != null ) {\n\t\t\t\t((CircleObjectKE)m).setR(mr);\n\t\t\t}\n\t\t}\n\t}",
"public void resetAnalysisBounds(Size frameSize) {\n this.bounds = new Rectangle(new Point(frameSize.width / 2, frameSize.height / 2), frameSize.width, frameSize.height);\n }",
"@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n // Set the movement bounds for the ball\n displayArea.setDisp(w-1, h-1);\n if (!isInitBackground) {\n isInitBackground = true;\n backgCalculating = new BackCalculating(0, 0, displayArea.xMax, displayArea.yMax, Color.BLACK, Color.YELLOW);\n }\n }",
"@Override\n\tpublic void setPersonal_4_HalfGaugeMeter() \n\t{\n\t\tbgColor = METER_SCALE_COLOR;\n\t}",
"private void resetTankPoint() {\n\t\tmodifyMapStatus(0);// release the point where tank occupies\n\t\tif (direction == UP) {\n\t\t\tthis.centerPoint.setY(centerPoint.getY() - speed);\n\t\t} else if (direction == DOWN) {\n\t\t\tthis.centerPoint.setY(centerPoint.getY() + speed);\n\t\t} else if (direction == LEFT) {\n\t\t\tthis.centerPoint.setX(centerPoint.getX() - speed);\n\t\t} else if (direction == RIGHT) {\n\t\t\tthis.centerPoint.setX(centerPoint.getX() + speed);\n\t\t}\n\t\tresetFrontPoint();\n\t\tmodifyMapStatus(1);\n\t}",
"@Override\n public void onAnalog(String name, float value, float tpf)\n {\n if (name.equals(\"Size-\"))\n frustumSize += 0.3f * tpf;\n else\n frustumSize -= 0.3f * tpf;\n\n float aspect = (float) cam.getWidth() / cam.getHeight();\n cam.setFrustum(-1000, 1000, -aspect * frustumSize, aspect * frustumSize, frustumSize, -frustumSize);\n }",
"public void setScaleZoneWidth(float zoneWidth){\n this.mScaleZoneWidth = Utils.dp2px(mContext, zoneWidth);\n }",
"public DistanceScalingArc() {\n\t\tsuper();\n\t\tthis.highGear = true;\n\t\tcenterProfile = new SrxMotionProfile(centerPoints.length, centerPoints);\n\t}",
"void setTubeUpDimension(double width, double height);",
"void setTubeDownDimension(double width, double height);",
"@Override\r\n\tpublic void onSizeChanged(int w, int h, int oldW, int oldH) {\r\n\t\t// Set the movement bounds for the ball\r\n\t\txMax = w - 1;\r\n\t\tyMax = h - 1;\r\n\t}",
"public void zeroHeading() {\n gyro.reset();\n gyro.zeroYaw();\n }",
"@Override\r\n\tpublic int setAbsoluteSize(int x, int y) {\n\t\treturn 0;\r\n\t}",
"public void resetVisibleArea()\n {\n StandardDrawingEditor e = view.getEditor();\n e.getLWS().getUpdateManager().performUpdate();\n\n DoubleSize extent = frameUI.getPreferredSize();\n\n e.setMinVisibleArea(PrecisionUtilities.round(extent.width),\n PrecisionUtilities.round(extent.height),\n false);\n }",
"public void setDeadZones(double leftStick, double rightStick){\n \tdeadZoneLeft=leftStick * leftStick;\n \tdeadZoneRight=rightStick * rightStick;\n }",
"@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(320, 204);\r\n\t}",
"public void reset() {\n xmin = Float.MAX_VALUE;\n xmax = -Float.MAX_VALUE;\n ymin = Float.MAX_VALUE;\n ymax = -Float.MAX_VALUE;\n zmin = Float.MAX_VALUE;\n zmax = -Float.MAX_VALUE;\n }",
"@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n // Set the movement bounds for the ballParent\n box.set(0, 0, w, h);\n }",
"@Override\n public void tick() { mob.fallDistance = 0.0F; }",
"public void zeroHeading() {\n m_gyro.reset();\n }",
"public void setCenter() {\n\t\tthis.isCenter = true;\n\t}",
"void setSize(int axis, int origin, int size) {\n this.size = size;\n if (size == UNSET) {\n unset();\n }\n }",
"public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"public void xsetAntennaHeight(org.apache.xmlbeans.XmlDouble antennaHeight)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDouble target = null;\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.set(antennaHeight);\r\n }\r\n }",
"public void setScaleZoneLength(float zoneLength){\n this.mScaleZoneLength = Utils.dp2px(mContext, zoneLength);\n }",
"public void setAntennaHeight(double antennaHeight)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.setDoubleValue(antennaHeight);\r\n }\r\n }",
"public MammalZone(int capacity, boolean hasPark, boolean hasCanteen)\n\t{\n\t\tsuper(AnimalFamily.MAMMAL, capacity, hasPark, hasCanteen);\n\t}",
"@Override\n\tpublic void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tmRequiredRadius = (int) (Math.sqrt(w * w + h * h) / 3);\n\t}",
"void unsetValueRatio();",
"@Test\n public final void testSetSize() {\n int expRes = 5;\n int falseEnter = -4;\n ship.setSize(falseEnter);\n int result = this.ship.getSize();\n assertEquals(expRes, result);\n falseEnter = -1;\n ship.setSize(falseEnter);\n result = this.ship.getSize();\n assertEquals(expRes, result);\n }",
"public void setZeroPosition(int center) {\n centerPos = center;\n }",
"private void updateDimensions()\n\t{\n\t\tthis.drawer.setSprite(this.drawer.getSprite().withDimensions(\n\t\t\t\tgetMaster().getDimensions()));\n\t\tthis.lastDimensions = getMaster().getDimensions();\n\t}",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"@Override\n\tpublic void setZeroHeight(boolean arg0) {\n\t\t\n\t}",
"public void setMaxAmplitudeZero(){ maxAmplitude=0; }",
"public void setToDefualts(){\n\t\tchangeInPlayerHealth = 0;\n\t\tchangeInPlayerScore = 0;\n\t\tchangInBatteryCharge = 0;\n\t\tpuaseForAnimation = false;\n\t}",
"@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 270);\n\t}",
"public void setfixedSize(){\n this.setPreferredSize( new Dimension( PANELWIDTH,0) );\n this.setMaximumSize( new Dimension( PANELWIDTH,0) );\n this.setMinimumSize( new Dimension( PANELWIDTH,0) );\n }",
"public void actualizarBarraViral(int infeccion) {\n\t\tcargaViral.setSize((cargaViralMaxima.getWidth() / 100) * infeccion, cargaViral.getHeight());\n\t\tthis.repaint();\n\t}",
"public void setValue(int size) {\n s.setValue(-size);\n }",
"void setNilWagerMinimum();",
"public void setKashidaSpace(com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.SizeValue kashidaSpace) {\r\n this.kashidaSpace = kashidaSpace;\r\n }",
"public void gravity(int yInitial)\n\t{\n\t\tdY = dY - 4;\n\t}",
"public void setMaxPaddleLength(){\n myRectangle.setWidth(myScreenWidth - SIDEBAR_WIDTH);\n }",
"public void setCentre(Vector2D newCentre) {\n this.center = newCentre;\n }",
"public void SetRatio(double ratio) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetRatio(swigCPtr, this, ratio);\n }",
"private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }",
"public void zero() {\r\n\t\tthis.x = 0.0f;\r\n\t\tthis.y = 0.0f;\r\n\t}",
"public void majIHM(){\n this.image.setFitWidth(this.getHeight()-10);\n this.image.setFitHeight(this.getHeight()-10);\n }",
"public boolean isSizeFixed ( ) {\r\n\t\treturn (radius_mag_dependent == false);\r\n\t}",
"public static native void OpenMM_AmoebaGeneralizedKirkwoodForce_setSurfaceAreaFactor(PointerByReference target, double surfaceAreaFactor);",
"public void trimToSize() {\n }",
"public void setFrameSize();",
"public void setCurrentLengthOverMin(double newLengthOverMinInMeters) {\n if (newLengthOverMinInMeters >= 0 && newLengthOverMinInMeters <= maxLengthOverMin)\n this.currentLengthOverMin = newLengthOverMinInMeters;\n else if (newLengthOverMinInMeters < 0)\n this.currentLengthOverMin = 0;\n else\n this.currentLengthOverMin = maxLengthOverMin;\n }",
"public MinigameGhost() {\n this(Math.random() * RIGHT_BORDER, Math.random() * LOWER_BORDER);\n }",
"void decNetSize(){\r\n\t\t\t\tif (size>50)size-=50;\r\n\t\t\t\telse System.out.println(\"Minimum net size reached!\");\r\n\t\t\t}",
"@Override\n public void simpleUpdate(float tpf)\n {\n System.out.println(\"New capacity: \" + spriteManager.getSpriteMeshes().get(0).getCapacity());\n if (trim)\n {\n spriteManager.trim();\n trim = false;\n }\n }",
"void reset(int size) {\n\t\tpoint[0].position.set(center.x - size, center.y - size);\n\t\tpoint[1].position.set(center.x + size, center.y - size);\n\t\tpoint[2].position.set(center.x + size, center.y + size);\n\t\tpoint[3].position.set(center.x - size, center.y + size);\n\t\trelease();\n\t}",
"public void drive(double speed, double scaler, double deadzone){\n front.set((speed*scaler));\n rear.set((speed*scaler));\n }",
"public void setCenterY(double y) { centerY.set(clamp(y, Y_MIN, Y_MAX)); }",
"public void setArea() {\n\t\tthis.area= height*width;\n\t}",
"public void setGravity(double value) {\n\t\tmyLevel.setGravityVal(value / GRAVITY_OFFSET_VALUE);\n\t}",
"public void restrictAcceleration() {\n\t\tif (acceleration.x > MAX_ACCELERATION.x)\r\n\t\t\tacceleration.x = MAX_ACCELERATION.x;\r\n\t\tif (acceleration.y > MAX_ACCELERATION.y)\r\n\t\t\tacceleration.y = MAX_ACCELERATION.y;\r\n\t\t\r\n\t\t// Caps Deceleration at Max Deceleration.\r\n\t\tif (acceleration.x < MAX_DECELERATION.x)\r\n\t\t\tacceleration.x = MAX_DECELERATION.x;\r\n\t\tif (acceleration.y < MAX_DECELERATION.y)\r\n\t\t\tacceleration.y = MAX_DECELERATION.y;\r\n\t}",
"public void setHeight(int h){ heightRadius = h; }",
"public void autoScoreBottomCenterPeg() {\n getRobotDrive().goForward(-.5); //Speed at which to back up\n Timer.delay(1); //Time to continue backing up\n getRobotDrive().stop(); //Stop backing up\n arm.armJag.set(.4); //Speed to lower arm *may need to be inverted*\n Timer.delay(.5); //Time to lower arm\n arm.grabTube(true); //Opens the claw to release Ub3r Tube\n getRobotDrive().goForward(-.5); //Speed at which to back up again\n arm.armJag.set(.3); //Lowers arm safely to ground.\n\n }",
"public void zeroSpeed() {\n controlRotator.proportionalSpeedSetter(0.0);\n }",
"public void joystickDeadZone() {\n\t\tif (joystickLXAxis <= 0.075 && joystickLXAxis >= -0.075) {\n\t\t\tjoystickLXAxis = 0;\n\t\t} if (joystickLYAxis <= 0.075 && joystickLYAxis >= -0.075) {\n\t\t\tjoystickLYAxis = 0;\n\t\t}\n\t\tif (joystickRXAxis <= 0.075 && joystickRXAxis >= -0.075) {\n\t\t\tjoystickRXAxis = 0;\n\t\t} if (joystickRYAxis <= 0.075 && joystickRYAxis >= -0.075) {\n\t\t\tjoystickRYAxis = 0;\n\t\t}\n\t}",
"@Override\n public void settings() {\n size(800, 800, P3D);\n }",
"default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }",
"public void zero() {\n fill(0);\n }",
"public void setArcheight(double ah) {\n\t\t\tarcheight.set(ah);\n\t\t}",
"public void resetCenters(){\n\tsynchroCenters.clear();\n }",
"@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}",
"void setEmpty() {\n this.lo = 1;\n this.hi = 0;\n }",
"public void setMinimumSize(float width, float height) {\n this.minimumWidth = width;\n this.minimumHeight = height;\n\n this.hudView.setMinimumWidth(Utils.dp2px(activity, this.minimumWidth));\n this.hudView.setMinimumHeight(Utils.dp2px(activity, this.minimumHeight));\n }",
"private void centre() {\n Dimension localDimension = Toolkit.getDefaultToolkit().getScreenSize();\n int i2 = (int) Math.min(localDimension.width * WIDTH, localDimension.height * WIDTH);\n\n Rectangle localRectangle = new Rectangle();\n localRectangle.setBounds(((localDimension.width - i2) / TWO), \n ((localDimension.height - i2) / TWO), i2, i2);\n\n setBounds(localRectangle);\n\n }",
"private void setFinalSize()\n {\n if (! m_isEmpty)\n return;\n m_isEmpty = false;\n setSize(m_finalSize);\n if (m_finalLocation != null)\n setLocation(m_finalLocation);\n }",
"private void updateViewBounds() \r\n {\r\n assert !sim.getMap().isEmpty() : \"Visualiser needs simulator whose a map has at least one node\"; \r\n \r\n \r\n viewMinX = minX * zoomFactor;\r\n viewMinY = minY * zoomFactor;\r\n \r\n viewMaxX = maxX * zoomFactor;\r\n viewMaxY = maxY * zoomFactor;\r\n \r\n \r\n double marginLength = zoomFactor * maxCommRange;\r\n \r\n \r\n // Set the size of the component\r\n int prefWidth = (int)Math.ceil( (viewMaxX - viewMinX) + (marginLength * 2) );\r\n int prefHeight = (int)Math.ceil( (viewMaxY - viewMinY) + (marginLength * 2) );\r\n setPreferredSize( new Dimension( prefWidth, prefHeight ) );\r\n \r\n \r\n // Adjust for margin lengths \r\n viewMinX -= marginLength;\r\n viewMinY -= marginLength;\r\n \r\n viewMaxX += marginLength;\r\n viewMaxY += marginLength;\r\n }",
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public void setMinimumSize( int width, int height ) {\n checkWidget();\n Point point = parent.fixPoint( width, height );\n minimumWidth = point.x;\n minimumHeight = point.y;\n }",
"public static void setMazeSize(int mazeSize) {\n\t\t\tGamePreferences.mazeSize = mazeSize;\n\t\t}",
"public Builder clearAltitude() {\n bitField0_ = (bitField0_ & ~0x00000040);\n altitude_ = 0L;\n onChanged();\n return this;\n }",
"public void sizeHasBeenSet() {\n isSizeSet = true;\n }",
"@Override\n\tpublic void setDeadzone(int zone)\n\t{\n\t\t// zone 0-100 -> 0-1\n\t\t// data 0-1\n\t\tthis.zone = zone/100f;\n\t}",
"public void reset(){\n\t\tthis.setPosition(DEFAULT_X, DEFAULT_Y);\t\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(defaultWidth);\n\t\tspeed = 400;\n\t\tsetGlue(true);\n\t}",
"public void setBarSize(int aValue)\n {\n if (aValue==_barSize) return;\n firePropChange(BarSize_Prop, _barSize, _barSize = aValue);\n }",
"@Override\r\n public void initialiseEmptyPanel()\r\n {\r\n gaugeName = Helpers.createLabel(\"Default\");\r\n \r\n gauge = new Radial();\r\n \r\n gauge.setPreferredSize(new Dimension(300,300));\r\n setTitle(\"Default\");\r\n add(gaugeName);\r\n add(gauge);\r\n \r\n }",
"@Override\n\tpublic void setMaxAngularAcceleration(float maxAngularAcceleration) {\n\t\tthis.MaxAngularAcceleration = MaxAngularAcceleration;\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e)\n {\n if(y >= 550) //if the beaker is not filled\n {\n lab7.setBounds(510,y,230,60); \n lab7.setVisible(true); //displays purple bar image\n value += 29; //point value of purple\n y -= 60; //sets up to fill first half of beaker\n }\n else\n {\n //if beaker is full resets value and y coordinate\n y = 610;\n value = 0;\n }\n \n }",
"public void resetUpperface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setRaiseBrow(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setFurrowBrow(0);\n\t}",
"public void setSize(double size) \n {\n this.size = size;\n }"
] | [
"0.5590268",
"0.54006",
"0.52468926",
"0.51284856",
"0.5093748",
"0.5030688",
"0.49159533",
"0.4911903",
"0.4905594",
"0.4901061",
"0.48849082",
"0.48644647",
"0.4859654",
"0.48526734",
"0.48308274",
"0.48174483",
"0.4796408",
"0.47903958",
"0.47714823",
"0.47679463",
"0.4758182",
"0.47460717",
"0.474198",
"0.47382268",
"0.47380906",
"0.47279078",
"0.47273234",
"0.47272673",
"0.47102222",
"0.46975458",
"0.46857658",
"0.46537516",
"0.46441776",
"0.4634607",
"0.46322164",
"0.4631496",
"0.46284077",
"0.46210316",
"0.46204606",
"0.46028313",
"0.46017683",
"0.45839506",
"0.45768034",
"0.45746842",
"0.45716158",
"0.4555719",
"0.4548801",
"0.4543749",
"0.45355356",
"0.45317918",
"0.4528362",
"0.4526652",
"0.45230895",
"0.45168757",
"0.45155653",
"0.4511296",
"0.45105535",
"0.45040864",
"0.44909993",
"0.4489095",
"0.4486264",
"0.44824442",
"0.44813657",
"0.44787163",
"0.44782004",
"0.4474161",
"0.4473862",
"0.4473321",
"0.44687128",
"0.44606167",
"0.4460308",
"0.44572112",
"0.44545314",
"0.44539154",
"0.44520554",
"0.44320968",
"0.4428722",
"0.44283912",
"0.44283116",
"0.44253707",
"0.44212925",
"0.44154522",
"0.44144034",
"0.44099262",
"0.44065028",
"0.44052073",
"0.44049764",
"0.44038224",
"0.44037828",
"0.44004506",
"0.4397897",
"0.43976465",
"0.43975303",
"0.43969795",
"0.43918002",
"0.4389822",
"0.43892732",
"0.4388474",
"0.43858057",
"0.4383598",
"0.43817344"
] | 0.0 | -1 |
Get the output of the gyro for use with PIDControllers. May be the angle or rate depending on the set PIDSourceParameter | @Override
public double pidGet() {
/*switch (m_pidSource.value) {
case 1://PIDSourceParameter.kRate_val:
return getRate();
case 2:// PIDSourceParameter.kAngle_val:
return getAngle();
default:
return 0.0;
}*/
return getAngle();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double[] getGyro();",
"public double getGyroInRad(){\n return 0.0;//TODO:Pull and return gyro in radians\n }",
"public double GyroPosition() {\n\t\tswitch (gyroToUse) {\n\t\tcase ANALOG:\n\t\t\tgyroAngle = gyro.getAngle();\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tgyroAngle = spi.getAngle();\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\tgyroAngle = imu.getAngleZ();\n\t\t\tbreak;\n\t\t}\n\n\t\tgyroAngle = gyroAngle % 360;\n\n\t\t// SmartDashboard.putNumber(\"gyroAngle\", gyroAngle);\n\t\treturn gyroAngle;\n\n\t}",
"public double getGyroInDeg(){\n return 0.0;//TODO:Pull gyro in radians and convert to degrees\n }",
"public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }",
"protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }",
"public double getGyroAngleY() {\n return m_gyro.getAngleY();\n }",
"public double getGyroAngleX() {\n return m_gyro.getAngleX();\n }",
"public Gyro (){\n try {\n /* Communicate w/navX MXP via the MXP SPI Bus. */\n /* Alternatively: I2C.Port.kMXP, SerialPort.Port.kMXP or SerialPort.Port.kUSB */\n /* See http://navx-mxp.kauailabs.com/guidance/selecting-an-interface/ for details. */\n gyro_board = new AHRS(SPI.Port.kMXP);\n\n last_world_linear_accel_x = gyro_board.getWorldLinearAccelX();\n last_world_linear_accel_y = gyro_board.getWorldLinearAccelY();\n last_check_time = Timer.getFPGATimestamp();\n\n initial_offset = gyro_board.getYaw();\n } catch (RuntimeException ex ) {\n DriverStation.reportError(\"Error instantiating navX MXP: \" + ex.getMessage(), true);\n }\n\n\n }",
"public double getGyroPidSteering() {\n\t\treturn gyroPid.get();\n\t}",
"public interface Gyro {\n /**\n * Get the amount of time the gyro spends calibrating\n *\n * @return Length of gyro calibration period\n */\n double getCalibrationPeriod();\n\n /**\n * Set the amount of time the gyro will spend calibrating\n *\n * @param calibrationPeriod Desired length of gyro calibration period\n */\n void setCalibrationPeriod(double calibrationPeriod);\n\n /**\n * Reset calibration and angle monitoring\n */\n void fullReset();\n\n /**\n * Starts calibrating the gyro. Resets the calibration value and begins\n * sampling gyro values to get the average 0 value. Sample time determined\n * by calibrationTicks\n */\n void startCalibration();\n\n /**\n * Finishes calibration. Stops calibrating and sets the calibration value.\n */\n void finishCalibration();\n\n /**\n * Gets the zero point for rate measurement\n *\n * @return The offset found by calibration\n */\n double getCalibrationOffset();\n\n /**\n * Checks if the gyro is currently calibrating.\n * If it is, measured rate and angle values are not guaranteed to be accurate.\n *\n * @return Whether the gyro is currently calibrating\n */\n boolean isCalibrating();\n\n /**\n * Gets the rate of yaw change from the gyro\n *\n * @return The rate of yaw change in degrees per second, positive is clockwise\n */\n double getRate();\n\n /**\n * Gets the yaw of the gyro\n *\n * @return The yaw of the gyro in degrees\n */\n double getAngle();\n\n /**\n * Resets the current angle of the gyro to zero\n */\n void resetAngle();\n}",
"public Rotation2d getGyro() {\n\t\treturn Rotation2dKt.getDegree(gyro.getAngle() - gyroZero);\n\t}",
"public static Gyro getGyro() {\n return sGyro;\n }",
"@Override\n public void gyroPitch(int value, int timestamp) {\n }",
"public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }",
"public synchronized double getPitch() {\n\t\tif (isConnected) {\n\t\t\treturn gyro.getPitch();\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public double getGyroAngleZ() {\n return m_gyro.getAngleZ();\n }",
"@Override\n public void gyroYaw(int value, int timestamp) {\n }",
"@Override\n public void gyroRoll(int value, int timestamp) {\n }",
"double getPitch();",
"@Override\r\n\tpublic String getSmartDashboardType() {\r\n\t\treturn \"Gyro\";\r\n\t}",
"public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}",
"private double getGyroError(double targetAngle) {\n double error = targetAngle - imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.XZY, AngleUnit.DEGREES).thirdAngle;\n\n // keep the error on a range of -179 to 180\n while(opModeIsActive() && error > 180) error -= 360;\n while(opModeIsActive() && error <= -180) error += 360;\n\n return error;\n }",
"public void initGyro() {\r\n\t\tresult = new AccumulatorResult();\r\n\t\tif (m_analog1 == null || m_analog2 == null) {\r\n\t\t\tSystem.out.println(\"Null m_analog\");\r\n\t\t}\r\n\t\tm_voltsPerDegreePerSecond = kDefaultVoltsPerDegreePerSecond;\r\n\t\t\r\n\t\t\r\n\t\tm_analog1.setAverageBits(kAverageBits);\r\n\t\tm_analog1.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\tm_analog2.setAverageBits(kAverageBits);\r\n\t\tm_analog2.setOversampleBits(kOversampleBits);\r\n\t\t\r\n\t\t\r\n\t\tdouble sampleRate = kSamplesPerSecond\r\n\t\t\t\t* (1 << (kAverageBits + kOversampleBits));\r\n\t\tAnalogInput.setGlobalSampleRate(sampleRate);\r\n\t\tTimer.delay(1.0);\r\n\r\n\t\tm_analog1.initAccumulator();\r\n\t\tm_analog1.resetAccumulator();\r\n\t\tm_analog2.initAccumulator();\r\n\t\tm_analog2.resetAccumulator();\r\n\r\n\t\tTimer.delay(kCalibrationSampleTime);\r\n\r\n\t\tfor(int i =0 ; i < mAnalogs.length; i++)\r\n\t\t{\r\n\t\t\tmAnalogs[i].getAccumulatorOutput(result);\r\n\t\r\n\t\t\tm_centers[i]= (int) ((double) result.value / (double) result.count + .5);\r\n\t\r\n\t\t\tm_offsets[i] = ((double) result.value / (double) result.count)\r\n\t\t\t\t\t- m_centers[i];\r\n\t\r\n\t\t\tmAnalogs[i].setAccumulatorCenter(m_centers[i]);\r\n\t\t\tmAnalogs[i].resetAccumulator();\r\n\t\r\n\t\t\t\r\n\t\t\t//LiveWindow.addSensor(\"Gyro\", m_analog.getChannel(), this);\r\n\t\t}\r\n\t\tif(mMode == TWO_CANCEL) setDeadband(kCancelDeadband);\r\n\t\telse if(mMode == TWO_DEADBAND) {\r\n\t\t\tsetDeadband1(0.0);\r\n\t\t\tmAccumulatedAngle = 0;\r\n\t\t}\r\n\t\t\r\n\t\tmOffset = 0;\r\n\t}",
"float getPitch();",
"float getPitch();",
"double getMagnetic(double reading);",
"@Override\n public double getGyroscopeBaseNoiseLevelRootPsd() {\n return getRootPsd();\n }",
"public double getTurnRate() {\n return m_gyro.getRate() * (DriveConstants.kGyroReversed ? -1.0 : 1.0);\n }",
"@Override\n public double getPIDInput()\n {\n return target.getCurrentAngle();\n }",
"public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }",
"@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }",
"double getPWMRate();",
"public void updateGyro() {\n\t\tangleToForward = gyro.getAngle();\n\t\tif (angleToForward >= 360) {\n\t\t\tangleToForward -= 360;\n\t\t} else if (angleToForward < 0) {\n\t\t\tangleToForward += 360;\n\t\t}\n\n\t}",
"public double getRightCurrent() {\n return rightMotor.getOutputCurrent();\n }",
"public double getAccelY() {\n return m_accelerometer.getY();\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n timestamp = event.timestamp;\n gyroX = event.values[0];\n gyroY = event.values[1];\n gyroZ = event.values[2];\n\n this.setChanged();\n this.notifyObservers(Sensor.TYPE_GYROSCOPE);\n }",
"public double curSwing(){\r\n return swingGyro.getAngle();\r\n }",
"double getAcceleration ();",
"@Override\n\t\t\tpublic double pidGet() {\n\t\t\t\tSmartDashboard.putNumber(\"value\", Robot.driveTrain.getRobotAngle());\n\t\t\t\treturn Robot.driveTrain.getRobotAngle();\n\t\t\t}",
"@Override\n public double getVelocity()\n {\n final String funcName = \"getVelocity\";\n double velocity = encoder.getVelocity() * encoderSign / 60.0;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", velocity);\n }\n\n return velocity;\n }",
"public static double [] getFinalAxis(double gyro){\n\t\treturn (ramp(adjustGetAxisValue(gyro)));\n\t\t//return (ramp(getAxisValue()));\n\t\t//three things happen in this class.\n\t\t//1)you get axis values\n\t\t//2)then you deadzone the values\n\t\t//3) You transform the deadzoned values into a cubic equation\n\t}",
"int getOutputVoltageRaw();",
"public double getControlPanelMotor() {\n return controlPanelMotor.getSelectedSensorVelocity();\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 function_yaw(int x, int y,int gyro){\n\n\n }",
"public synchronized double getRoll() {\n\t\tif (isConnected) {\n\t\t\treturn gyro.getRoll();\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"void gyroSafety(){\n }",
"private double getgAxis(ADXL345_I2C.Axes x) {\n return trollyAccelerometer.getAcceleration(x);\n }",
"public float getMotor_ang_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 132);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 124);\n\t\t}\n\t}",
"public float getDrx() {\r\n\t\treturn drx;\r\n\t}",
"public void calibrateGyro() {\n gyro.SetYaw(0);\n }",
"public Gyro2903(GYRO_TYPE gyroType) {\n\t\tgyroToUse = gyroType;\n\n\t\tswitch (gyroType) {\n\t\tcase ANALOG:\n\t\t\tgyro = new AnalogGyro(RobotMap.AnalogGyro);\n\t\t\tbreak;\n\n\t\tcase SPI:\n\t\t\tspi = new ADXRS450_Gyro(SPI.Port.kOnboardCS0);\n\t\t\tbreak;\n\n\t\tcase IMU:\n\t\t\timu = new ADIS16448_IMU();\n\t\t\tbreak;\n\t\t}\n\t}",
"public double getVelocityRPM();",
"public float getAngularVelocity () {\n\t\treturn body.getAngularVelocity();\n\t}",
"protected void initialize() {\n \tRobot.gyroSubsystem.reset();\n \tstartAngle = Robot.gyroSubsystem.gyroPosition();\n \ttargetAngle = startAngle + goal;\n }",
"public interface AirboatSensor {\n\n\t// Get 3D raw gyro readings\n\tpublic double[] getGyro();\n}",
"public float getDCM();",
"public float getPitchAngle() { return PitchAngle; }",
"double getrx() {\nreturn this.rx;\n }",
"public double getOutput()\n {\n //\n // Read from input device without holding a lock on this object, since this could\n // be a long-running call.\n //\n final double currentInputValue = pidInput.get();\n\n synchronized (this)\n {\n final String funcName = \"getOutput\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n double prevError = currError;\n double currTime = TrcUtil.getCurrentTime();\n double deltaTime = currTime - prevTime;\n prevTime = currTime;\n currInput = currentInputValue;\n currError = setPoint - currInput;\n if (inverted)\n {\n currError = -currError;\n }\n\n if (pidCoefficients.kI != 0.0)\n {\n //\n // Make sure the total error doesn't get wound up too much exceeding maxOutput.\n //\n double potentialGain = (totalError + currError * deltaTime) * pidCoefficients.kI;\n if (potentialGain >= maxOutput)\n {\n totalError = maxOutput / pidCoefficients.kI;\n }\n else if (potentialGain > minOutput)\n {\n totalError += currError * deltaTime;\n }\n else\n {\n totalError = minOutput / pidCoefficients.kI;\n }\n }\n\n pTerm = pidCoefficients.kP * currError;\n iTerm = pidCoefficients.kI * totalError;\n dTerm = deltaTime > 0.0 ? pidCoefficients.kD * (currError - prevError) / deltaTime : 0.0;\n fTerm = pidCoefficients.kF * setPoint;\n double lastOutput = output;\n output = pTerm + iTerm + dTerm + fTerm;\n\n output = TrcUtil.clipRange(output, minOutput, maxOutput);\n\n if (rampRate != null)\n {\n if (prevOutputTime != 0.0)\n {\n double dt = currTime - prevOutputTime;\n double maxChange = rampRate * dt;\n double change = output - lastOutput;\n change = TrcUtil.clipRange(change, -maxChange, maxChange);\n output = lastOutput + change;\n }\n prevOutputTime = currTime;\n }\n\n if (debugTracer != null)\n {\n printPidInfo(debugTracer);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", output);\n }\n\n return output;\n }\n }",
"@Override\n\tpublic double getSelectedSensorVelocity() {\n return encoder.getVelocity();\n\t}",
"int getOutputVoltage();",
"public int getCameraSensorRotation();",
"private void remapGyroVector(){\n\t\tif (referenceGyroMatrix == null){\n\t\t\ttempGyroMatrix = new float[16];\n\t\t\treferenceGyroMatrix = new float[16];\n\t\t\tMatrix.setIdentityM(tempGyroMatrix, 0);\n\t\t\tSensorManager.remapCoordinateSystem(tempGyroMatrix, remapX, remapY, referenceGyroMatrix);\n\t\t\tSystem.arraycopy(referenceGyroMatrix, 0, tempGyroMatrix, 0, 16);\n\t\t\tthis.remappedGyro = new float[4];\n\t\t\tthis.tempGyroValues = new float[4];\n\t\t\t//need to transpose, since sensor manager and matrix use different notations\n\t\t\t//Matrix.transposeM(referenceGyroMatrix, 0, tempGyroMatrix, 0);\n\t\t}\n\t\t\n\t\tfloat[] gyroValues = getValues(VALUE_KEYS.GYRO.name());\n\t\t//System.arraycopy(gyroValues, 0, this.gyroValues, 0, 3);\n\t\tSystem.arraycopy(gyroValues, 0, this.tempGyroValues, 0, 3);\n\t\tMatrix.multiplyMV(this.remappedGyro, 0, referenceGyroMatrix, 0, this.tempGyroValues, 0);\n\t\tSystem.arraycopy(this.remappedGyro, 0, this.finalGyroValues, 0, 3);\n\t\t\n\t}",
"public double getVelocity() {\n return 360000./(projDensity * projRadius);\n }",
"int getInputVoltageRaw();",
"public void resetGyroAngle() {\n\t\tgyro.reset();\n\t}",
"private double getRawAngle() {\n return (m_pot.getVoltage() / Constants.AIO_MAX_VOLTAGE) * Constants.Hood.POT_SCALE;\n }",
"public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}",
"public double getRightAcceleration() {\n return rightEnc.getAcceleration();\n }",
"@Override\n\tpublic float getAngularVelocity() {\n\t\treturn body.getAngularVelocity();\n\t}",
"public double getValue() {\n\t\treturn sensorval;\n\t}",
"public Double radiansPerSecond()\n\t{\n\t\treturn getValue(AngularVelocityUnit.RADIANS_PER_SEC);\n\t}",
"public float getMicGainDb();",
"public void resetGyro(){\n //TODO:Reset the gyro(zero it)\n }",
"public double getHeading() {\n return Rotation2d.fromDegrees(m_gyro.getAngle()).getDegrees();\n }",
"@Override\n\tpublic float getMaxAngularAcceleration() {\n\t\treturn MaxAngularAcceleration;\n\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tdegree = Math.round(event.values[0]);\n\t}",
"@Override\r\n\tpublic double getRx() {\n\t\treturn 2 * this.a;\r\n\t}",
"public double getVelocity() {\n return spark_encoder.getVelocity();\n }",
"public double getYRotate() {\n\t\tif (Math.abs(getRawAxis(Axis_YRotate)) > stickDeadband) {\n\t\t\treturn getRawAxis(Axis_YRotate);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"double getPressure();",
"public float getPitch() {\n\treturn pitch;\n }",
"private void CalibrateGyro() {\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu.initialize(parameters);\n while (!imu.isGyroCalibrated()){}\n }",
"public float obtenMotor(){\r\n return this.motor;\r\n }",
"double getCompass(double magnetic);",
"public float getPitch() {\n return pitch;\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n theta = (float) Math.toDegrees(Math.atan(event.values[1] / event.values[2]));\n\n\n }",
"public void enableAnglePid() {\n\t\tgyroPid.enable();\n\t}",
"float getMainUtteranceDynamicGain();",
"Sensor getSensor();",
"public int getVelocity()\n\t{\n\t\treturn logDx;\n\t}",
"public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n\n // Ensure that the opmode is still activ\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftmotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightmotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftmotor.setTargetPosition(newLeftTarget);\n rightmotor.setTargetPosition(newRightTarget);\n\n leftmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n\n maxSpeed = speed;\n speed = INCREMENT;\n rampUp = true;\n\n leftmotor.setPower(speed);\n rightmotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while ((leftmotor.isBusy() && rightmotor.isBusy())) {\n if (rampUp){\n speed += INCREMENT ;\n if (speed >= maxSpeed ) {\n speed = maxSpeed;\n }\n }\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftmotor.setPower(leftSpeed);\n rightmotor.setPower(rightSpeed);\n }\n\n // Stop all motion;\n leftmotor.setPower(0);\n rightmotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n gyroHold(TURN_SPEED,angle,0.166);\n\n }",
"public float getPitchRange() {\n\treturn range;\n }",
"private double readPressureSample() {\n return 6 * randomPressureSampleSimulator.nextDouble() * randomPressureSampleSimulator.nextDouble();\n }",
"public double getServo() {\n\t\treturn servo.getPosition();\n\t}",
"protected double returnPIDInput() {\n\n \tdouble yaw = Robot.oi.getAHRS().getYaw();\n \tSmartDashboard.putNumber( \"TurnToAngle-PIDInput\",yaw);\n \n return yaw;\n }",
"private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }",
"public double getR() {\r\n\t\tif(!polar)\r\n\t\t\tupdatePolar();\r\n\t\treturn r;\r\n\t}"
] | [
"0.73527247",
"0.7228768",
"0.7065763",
"0.7061671",
"0.69887257",
"0.6838705",
"0.67717904",
"0.67578983",
"0.67405945",
"0.66885185",
"0.668022",
"0.6664458",
"0.6617861",
"0.6604609",
"0.653551",
"0.64699674",
"0.63993925",
"0.63028055",
"0.6187348",
"0.6174726",
"0.6082093",
"0.6081886",
"0.60688823",
"0.60642296",
"0.60472465",
"0.60472465",
"0.6035701",
"0.5962851",
"0.59130716",
"0.5888197",
"0.58608836",
"0.5819913",
"0.5792285",
"0.57689774",
"0.57597095",
"0.57525814",
"0.57421035",
"0.57305384",
"0.56867796",
"0.56453097",
"0.5644313",
"0.56019264",
"0.5599137",
"0.5594338",
"0.5593493",
"0.5592518",
"0.55740124",
"0.5573068",
"0.55337226",
"0.5526151",
"0.5518162",
"0.5502195",
"0.54959005",
"0.54907924",
"0.5489305",
"0.5478881",
"0.54752845",
"0.54719776",
"0.546822",
"0.5467448",
"0.54608846",
"0.5459413",
"0.5458092",
"0.54557335",
"0.5447337",
"0.54464626",
"0.54279137",
"0.5427515",
"0.54218954",
"0.54176354",
"0.54096603",
"0.540819",
"0.5401539",
"0.54004586",
"0.53977096",
"0.53962195",
"0.53940946",
"0.5380794",
"0.5366101",
"0.5356253",
"0.53559357",
"0.53496754",
"0.5348628",
"0.53407264",
"0.53385323",
"0.5328707",
"0.5326203",
"0.5311394",
"0.5311379",
"0.53092843",
"0.5309131",
"0.5304267",
"0.5286614",
"0.52840513",
"0.52832466",
"0.5283069",
"0.52782476",
"0.5265659",
"0.5259744",
"0.5258562"
] | 0.63062173 | 17 |
/ Live Window code, only does anything if live window is activated. | @Override
public String getSmartDashboardType() {
return "Gyro";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isActive(W window) {\n return true;\n }",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void windowActivated(WindowEvent we) {\n }",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void windowActivated( WindowEvent e ) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\n\t\t}",
"public void windowActivated(WindowEvent e) {\n adaptee.this_windowActivated();\n }",
"@Override\n public void windowActivated(WindowEvent e)\n {\n\n }",
"@Override\r\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void windowActivated(WindowEvent arg0)\n\t{\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent arg0)\n\t{\n\t\t\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t}",
"@Override\r\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t}",
"@Override\r\n public void windowActivated(WindowEvent e) {\r\n\r\n }",
"@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\n\t}",
"@Override\r\n public void windowActivated(WindowEvent arg0) {}",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n\tpublic void windowActivated(WindowEvent e)\n\t{\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\n\t\t\t}",
"public void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t}",
"public void windowActivated(WindowEvent e) {\n\r\n\t}",
"@Override\n\t\t\t\tpublic void windowActivated(WindowEvent e) {\n\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void windowActivated(WindowEvent e) {\n\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void windowActivated(WindowEvent e) {\n\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void windowActivated(WindowEvent e) {\n\n\t\t\t\t}",
"public void windowActivated(WindowEvent event) {}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\n\t\t\t}",
"public void windowActivated(WindowEvent event)\n {\n\n\n }",
"@Override\n public void windowActivated(WindowEvent arg0) {\n\n }",
"@Override\n\tpublic void windowStateChanged(WindowEvent arg0) {\n\t\t\n\t}",
"@Override public void windowOpened(WindowEvent evt) { }",
"@Override public void windowOpened(WindowEvent evt) { }",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void windowOpened(WindowEvent we) {\n }",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}"
] | [
"0.74656034",
"0.6995433",
"0.6995433",
"0.6957167",
"0.6933893",
"0.6933893",
"0.6933893",
"0.6933893",
"0.6933893",
"0.6908472",
"0.6908472",
"0.6908472",
"0.6908472",
"0.6908472",
"0.6890601",
"0.6890601",
"0.6890601",
"0.6890601",
"0.6890601",
"0.6890601",
"0.6890601",
"0.68850607",
"0.68816036",
"0.6876591",
"0.6876591",
"0.6876591",
"0.6876591",
"0.6876591",
"0.68742996",
"0.68742996",
"0.68742996",
"0.68742996",
"0.68742996",
"0.68742996",
"0.68742996",
"0.68742996",
"0.6870016",
"0.6865859",
"0.68657476",
"0.68586165",
"0.6856857",
"0.68548805",
"0.68548805",
"0.6853221",
"0.6852369",
"0.6848373",
"0.682872",
"0.68232757",
"0.68232757",
"0.68222797",
"0.6817706",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68133634",
"0.68074197",
"0.6805352",
"0.6805352",
"0.6805352",
"0.6805352",
"0.6805352",
"0.6805352",
"0.6805352",
"0.6778193",
"0.6759816",
"0.6743295",
"0.67162687",
"0.67067444",
"0.67067444",
"0.67067444",
"0.67067444",
"0.66955876",
"0.6695341",
"0.6694389",
"0.6678113",
"0.6449485",
"0.6441207",
"0.6441207",
"0.63916403",
"0.638897",
"0.6375726",
"0.6375726",
"0.6375726",
"0.6375726"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void setPIDSourceType(PIDSourceType pidSource) {
} | {
"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 PIDSourceType getPIDSourceType() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
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() {
jScrollPane1 = new javax.swing.JScrollPane();
inventoryTable = new javax.swing.JTable();
jLabel1 = new javax.swing.JLabel();
storeNameTb = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
backBtn = new javax.swing.JButton();
inventoryTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Drug Name", "Qty", "Stock Status"
}
));
jScrollPane1.setViewportView(inventoryTable);
jLabel1.setText("Store Name");
storeNameTb.setEnabled(false);
jLabel2.setText("Inventory: (see table)");
backBtn.setText("<< Back");
backBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
backBtnActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(49, 49, 49)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(backBtn)
.addComponent(jLabel2)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(61, 61, 61)
.addComponent(storeNameTb, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(512, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(storeNameTb, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(25, 25, 25)
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)
.addComponent(backBtn)
.addContainerGap(111, Short.MAX_VALUE))
);
} | {
"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 Soru1() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\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 kunde() {\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 MusteriEkle() {\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 frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public UploadForm() {\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 }",
"public sinavlar2() {\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\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 P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.73191524",
"0.7290383",
"0.7290383",
"0.7290383",
"0.7286656",
"0.72480965",
"0.72141695",
"0.72080517",
"0.7195647",
"0.7190378",
"0.71841127",
"0.71591616",
"0.71478844",
"0.7093131",
"0.70816",
"0.70577854",
"0.6987355",
"0.69769996",
"0.69551086",
"0.69545007",
"0.69450074",
"0.6944328",
"0.6937169",
"0.6931577",
"0.6927632",
"0.692602",
"0.6925518",
"0.6911884",
"0.69111824",
"0.6894571",
"0.68920577",
"0.68919677",
"0.6891793",
"0.6889509",
"0.6884149",
"0.6883326",
"0.68815684",
"0.68778104",
"0.6876167",
"0.6873792",
"0.687072",
"0.6859156",
"0.6856744",
"0.6855844",
"0.6854915",
"0.68542576",
"0.68534344",
"0.6852383",
"0.6852383",
"0.6845196",
"0.68370795",
"0.6836554",
"0.6830521",
"0.68290323",
"0.6827711",
"0.68255705",
"0.6822908",
"0.68180746",
"0.68179923",
"0.6811043",
"0.6809639",
"0.68095654",
"0.6808346",
"0.68082345",
"0.68017685",
"0.67943394",
"0.67933774",
"0.6793048",
"0.6791145",
"0.67897683",
"0.6788624",
"0.6788244",
"0.6781776",
"0.67674303",
"0.6767318",
"0.6764773",
"0.6758625",
"0.6757251",
"0.6753117",
"0.6751926",
"0.67432684",
"0.6740031",
"0.67374456",
"0.6737373",
"0.6734546",
"0.6727067",
"0.67267615",
"0.67210555",
"0.6716679",
"0.6715794",
"0.6715694",
"0.6709429",
"0.67086613",
"0.67038596",
"0.6702431",
"0.67014176",
"0.67002505",
"0.66993576",
"0.6694831",
"0.66915953",
"0.6690518"
] | 0.0 | -1 |
convert timestamp to UTC for consistency (i.e. ignore the timezone difference for testing) | private LocalDateTime mapTimestampToUtc(final String timestamp) {
return LocalDateTime.ofInstant(
Instant.from(LocalDateTime.parse(timestamp).atZone(ZoneOffset.UTC)),
ZoneOffset.UTC);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static ZonedDateTime toUTCDateTime(Timestamp timestamp) {\n return toInstant(timestamp).atZone(UTCZone);\n }",
"@ExecFunction(name = \"utc_timestamp\", argTypes = {}, returnType = \"INT\")\n public static Expression utcTimestamp() {\n return DateTimeLiteral.fromJavaDateType(LocalDateTime.now(ZoneId.of(\"UTC+0\")));\n }",
"public static String ConvertLocalTimeToUTC(String localDateTime) throws Exception {\n String returnVal = \"\";\n try {\n DateFormat dfParse = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n dfParse.setTimeZone(Calendar.getInstance().getTimeZone());\n\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n Date dateTime;\n\n dateTime = dfParse.parse(localDateTime);\n returnVal = df.format(dateTime);\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n returnVal = localDateTime;\n }\n return returnVal;\n }",
"static public String dateToUtc(Date date){\n\t\treturn writeTimeStamp(UTC_FORMAT, date);\n\t}",
"public static String getUtcDateStringFromTimestamp(Date timeStamp) {\n DateFormat df = new SimpleDateFormat(UTC_DATE_FORMAT);\n df.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n return df.format(timeStamp);\n }",
"private static String trimUTCZoneOffset(String ts) {\n if (ts.endsWith(\"Z\")) {\n return ts.substring(0, ts.length() - 1);\n }\n if (ts.endsWith(\"+00:00\")) {\n return ts.substring(0, ts.length() - 6);\n }\n\n if (!hasSignOfZoneOffset(ts)) {\n return ts;\n }\n return null;\n }",
"UtcT time_stamp () throws BaseException;",
"private LocalDateTime convertUTCTimestamp(Object timeStamp) {\n\t\t\treturn null;\n\t\t}",
"public long getTimestampMillisecUTC();",
"public Timestamp convertZDT(ZonedDateTime zdt){\n return Timestamp.valueOf(zdt.withZoneSameInstant(ZoneOffset.UTC).toLocalDateTime());\n }",
"public static Date getLocalUTCTime(){\r\n\t\tfinal Calendar cal=Calendar.getInstance();\r\n\t\tfinal int zoneOffset=cal.get(Calendar.ZONE_OFFSET);\r\n\t\tfinal int dstOffset=cal.get(Calendar.DST_OFFSET);\r\n\t\tcal.add(Calendar.MILLISECOND, -(zoneOffset+dstOffset));\r\n\t\treturn cal.getTime();\r\n\t}",
"public static String getUTCDate(){\n \t SimpleDateFormat sdf = new SimpleDateFormat(\"MM-dd-yyyy hh:mm\");\n \t Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"UTC\"));\n \t return sdf.format(cal.getTime());\n }",
"public void convertDateTimeFromUTCtoPlaceTimeZone(BookingDto bookingDto) {\n\t\tPlaceDto portOfLoad = bookingDto.getPortOfLoad();\r\n\t\tif (portOfLoad != null && portOfLoad.getCity() != null) {\r\n\t\t\tString timeZonePortOfLoad = portOfLoad.getCity().getTimeZone();\r\n\t\t\tif (timeZonePortOfLoad != null && !timeZonePortOfLoad.isEmpty()) {\r\n\t\t\t\tbookingDto.setPortCutOffDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getPortCutOffDate(), timeZonePortOfLoad));\r\n\t\t\t\tbookingDto.setDocsCutOffDateTime(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getDocsCutOffDateTime(), timeZonePortOfLoad));\r\n\t\t\t\tbookingDto.setSailDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getSailDate(), timeZonePortOfLoad));\r\n\t\t\t\tbookingDto.setDocsReceivedDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getDocsReceivedDate(), timeZonePortOfLoad));\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlaceDto portOfDischarge = bookingDto.getPortOfDischarge();\r\n\t\tif (portOfDischarge != null && portOfDischarge.getCity() != null) {\r\n\t\t\tString tzPortOfDischarge = portOfDischarge.getCity().getTimeZone();\r\n\t\t\tif (tzPortOfDischarge != null && !tzPortOfDischarge.isEmpty()) {\r\n\t\t\t\tbookingDto.setEta(dateUtil.convertDateToSpecificTimeZone(bookingDto.getEta(), tzPortOfDischarge));\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlaceDto emptyPickupDepot = bookingDto.getEmptyContainerPickup();\r\n\t\tif (emptyPickupDepot != null && emptyPickupDepot.getCity() != null) {\r\n\t\t\tString tzEmptyPickupDepot = emptyPickupDepot.getCity().getTimeZone();\r\n\t\t\tif (tzEmptyPickupDepot != null && !tzEmptyPickupDepot.isEmpty()) {\r\n\t\t\t\tbookingDto.setEmptyPickupDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getEmptyPickupDate(), tzEmptyPickupDepot));\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlaceDto ingateTerminal = bookingDto.getIngateAtTerminal();\r\n\t\tif (ingateTerminal != null && ingateTerminal.getCity() != null) {\r\n\t\t\tString tzIngateTerminal = ingateTerminal.getCity().getTimeZone();\r\n\t\t\tif (tzIngateTerminal != null && !tzIngateTerminal.isEmpty()) {\r\n\t\t\t\tbookingDto.setEarlyReceivingDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getEarlyReceivingDate(), tzIngateTerminal));\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlaceDto placeOfReceipt = bookingDto.getPlaceOfReceipt();\r\n\t\tif (placeOfReceipt != null && placeOfReceipt.getCity() != null) {\r\n\t\t\tString tzPlaceOfReceipt = placeOfReceipt.getCity().getTimeZone();\r\n\t\t\tif (tzPlaceOfReceipt != null && !tzPlaceOfReceipt.isEmpty()) {\r\n\t\t\t\tbookingDto.setCargoMovingDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getCargoMovingDate(), tzPlaceOfReceipt));\r\n\t\t\t\tbookingDto.setRailCutOffDateTime(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getRailCutOffDateTime(), tzPlaceOfReceipt));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n public void testTsToOdt() {\n Instant now = Instant.now();\n now = now.with(ChronoField.NANO_OF_SECOND, 0);\n Timestamp timestamp = Timestamps.fromMillis(now.toEpochMilli());\n OffsetDateTime expResult = OffsetDateTime.ofInstant(now, ZoneOffset.UTC);\n\n OffsetDateTime result = ProtoUtils.tsToOdt(timestamp);\n assertThat(result).isEqualTo(expResult);\n }",
"DateTime nowUtc();",
"public static String ConvertUTCtoLocalTime(String utcDateTime) throws Exception {\n\n String returnVal = \"\";\n try {\n DateFormat dfParse = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n dfParse.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n df.setTimeZone(Calendar.getInstance().getTimeZone());\n\n Date dateTime;\n\n dateTime = dfParse.parse(utcDateTime);\n returnVal = df.format(dateTime);\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n returnVal = utcDateTime;\n }\n return returnVal;\n }",
"protected static boolean isUTC(Calendar calendar) {\n return calendar.getTimeZone().getID().equals(\"UTC\");\n }",
"public String getUtcFromLocal(String date){\n\n //Parse date string to LocalDateTime\n LocalDateTime providedDate = LocalDateTime.parse(date, dateTimeFormatter);\n //Convert LocalDateTime to ZonedDateTime\n ZonedDateTime zonedDateTime = ZonedDateTime.of(providedDate, ZoneId.systemDefault());\n //Convert to UTC\n ZonedDateTime utcDateTime = zonedDateTime.withZoneSameInstant(ZoneOffset.UTC);\n\n return dateTimeFormatter.format(utcDateTime);\n\n }",
"public static String getUtcTime(String dateAndTime) {\n Date d = parseDate(dateAndTime);\n\n String format = \"yyyy-MM-dd'T'HH:mm:ss'Z'\";\n SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.getDefault());\n\n // Convert Local Time to UTC\n sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n return sdf.format(d);\n }",
"public static Date GetUTCdatetimeAsDate()\n {\n return StringDateToDate(GetUTCdatetimeAsString());\n }",
"public static String getLogUtcDateStringFromTimestamp(Date timeStamp) {\n DateFormat df = new SimpleDateFormat(LOG_UTC_DATE_FORMAT);\n df.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n return df.format(timeStamp);\n }",
"public static LocalDateTime toUTC(final long millis) {\n if (millis == 0) {\n return null;\n }\n return LocalDateTime.ofInstant(Instant.ofEpochMilli(millis), ZoneOffset.UTC);\n }",
"public Date getUTCDate(String timeZone, Calendar cal);",
"public static long apiToUtcTime(long apiTime) {\n long apiTimeMs = apiTime * MS_PER_SECOND;\n return apiTimeMs - TimeZone.getTimeZone(\"PST\").getRawOffset();\n }",
"@NoProxy\n @NoWrap\n public void setForceUTC(final boolean val) {\n forceUTC = val;\n }",
"static String getCurrentDateTimeInUTC() {\n TimeZone utcTimeZone = TimeZone.getTimeZone(\"UTC\");\n Date now = Calendar.getInstance(utcTimeZone).getTime();\n DateFormat formatter = new SimpleDateFormat(\"yyyy-MM-DD HH:mm:ss z\");\n formatter.setTimeZone(utcTimeZone);\n return formatter.format(now);\n }",
"@NoProxy\n @NoWrap\n @NoDump\n public boolean getForceUTC() {\n return forceUTC;\n }",
"public final native String toUTCString() /*-{\n return this.toUTCString();\n }-*/;",
"private void parseUTCString(String str)\n {\n SimpleDateFormat formatter;\n // Treat the sub-second part as optional\n if (str.indexOf(\".\") != -1) {\n formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n } else {\n formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n }\n formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n try {\n Date date = formatter.parse(str);\n itsValue = date.getTime() * 1000L + DUTC.get() * 1000000L + 3506716800000000L;\n } catch (Exception e) {\n throw new NumberFormatException(\"Couldn't parse date as UTC_STRING\");\n }\n }",
"public static Date getCurrentTimeStampUtc() {\n return Date.from(java.time.ZonedDateTime.now(ZoneOffset.UTC).toInstant());\n }",
"public static native double UTC(int year, int month, int dayOfMonth, int hours,\n int minutes, int seconds, int millis) /*-{\n return Date.UTC(year, month, dayOfMonth, hours, minutes, seconds, millis);\n }-*/;",
"public static DateTime nowUTC() {\n return new DateTime(DateTimeZone.UTC);\n }",
"public void setUTCOffset(double value) {\n this.utcOffset = value;\n }",
"@Test\n public void testOdtToTs() {\n Instant now = Instant.now();\n OffsetDateTime timestamp = OffsetDateTime.ofInstant(now, ZoneOffset.UTC);\n Timestamp expResult = Timestamps.fromMillis(now.toEpochMilli());\n\n Timestamp result = ProtoUtils.odtToTs(timestamp);\n assertThat(result).isEqualTo(expResult);\n }",
"private ZonedDateTime timestamp() {\n return Instant.now().atZone(ZoneId.of(\"UTC\")).minusMinutes(1);\n }",
"private String stringUtcToLocal(String strDate) {\n DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ss\").withZoneUTC();\n DateTime dt = formatter.parseDateTime(strDate);\n\n //Get local TimeZone and convert collected date to Local.\n DateTimeZone localTz = DateTimeZone.getDefault();\n DateTime local = new DateTime(dt,DateTimeZone.forID(localTz.getID()));\n DateTimeFormatter formatterLocal = DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ss\");\n return formatterLocal.print(local);\n }",
"public static long filetimeToUtcMs(long filetime, boolean local) {\n return filetime / 10_000L - EPOCH_DIFF - (local ? TZ_OFFSET : 0L);\n }",
"public static String toISO8601UTC(Date date) {\n TimeZone tz = TimeZone.getTimeZone(\"UTC\");\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'\");\n df.setTimeZone(tz);\n Log.d(\"DateUtils\", String.format(\"toISO8601UTC: %s\", df.format(date)));\n return df.format(date);\n }",
"public String getUTCTime(String timeZone, Calendar cal);",
"public static String convertTimestampToReadable(long timestamp) {\n java.text.DateFormat formatter = new SimpleDateFormat(\"dd.MM.yy HH:mm\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n String dateFormatted = formatter.format(timestamp);\n\n return dateFormatted;\n }",
"public Long getValidFromUTCoffset();",
"public Long getValidUntilUTCoffset();",
"public static LocalDateTime UTCDateTimeNow() {\n return TimeService.UTCDateTimeNow();\n }",
"private Function<Double, Long> convertToUserTimeUsFunction() {\n double beginTimestamp = myModel.getBeginTimestamp();\n double monoTimeAtBeginningSeconds = myMonoTimeAtBeginningSeconds;\n return timestampInSeconds -> (long)secondsToUs((timestampInSeconds - beginTimestamp) + monoTimeAtBeginningSeconds);\n }",
"public final long getUTCTimeStamp()\n {\n // 86,400,000 = 1000 * 60 * 60 * 24 = milliseconds per day\n return ordinal == NULL_ORDINAL ? NULL_TIMESTAMP : (ordinal * 86400000L);\n }",
"public double getUTCOffset() {\n return utcOffset;\n }",
"public final native int getUTCDate() /*-{\n return this.getUTCDate();\n }-*/;",
"public final java.util.Date getUTCDate()\n {\n return ordinal == NULL_ORDINAL ? null : new java.util.Date(getUTCTimeStamp());\n }",
"public String convertToLocalTime(Calendar eventDate, String timezone) throws ParseException;",
"@Test\n public void testTimeStampRounding() throws SQLException {\n assumeBinaryModeRegular();\n LocalTime time = LocalTime.parse(\"23:59:59.999999500\");\n Time actual = insertThenReadWithoutType(time, \"time_without_time_zone_column\", Time.class, false/*no roundtrip*/);\n assertEquals(Time.valueOf(\"24:00:00\"), actual);\n }",
"@Test\n public void shouldSerializeToTimestampWhenSerializingDateWithJackson() throws ParseException, JsonProcessingException {\n SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy hh:mm\");\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n Date date = df.parse(\"01-01-1970 01:00\");\n Event event = new Event(\"party\", date);\n\n ObjectMapper objectMapper = new ObjectMapper();\n String result = objectMapper.writeValueAsString(event);\n\n assertThat(result, containsString(\"party\"));\n assertThat(result, containsString(\"3600000\"));\n }",
"public static UUID toTimeOrderedUuid(UUID uuid) {\n\n\t\tif (!UuidUtil.isTimeBased(uuid)) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Not a time-based UUID: %s.\", uuid.toString()));\n\t\t}\n\n\t\tlong timestamp = UuidUtil.extractTimestamp(uuid);\n\n\t\tlong msb = ((timestamp & 0x0ffffffffffff000L) << 4) //\n\t\t\t\t| (timestamp & 0x0000000000000fffL) //\n\t\t\t\t| 0x0000000000006000L; // set version 6\n\n\t\tlong lsb = uuid.getLeastSignificantBits();\n\n\t\treturn new UUID(msb, lsb);\n\t}",
"public static String getNowAsTimestamp() {\r\n\r\n DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_PATTERN);\r\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n return dateFormat.format(new Date()).replaceAll(\"\\\\+0000\", \"Z\").replaceAll(\"([+-][0-9]{2}):([0-9]{2})\", \"$1$2\");\r\n }",
"public DDateTime getUtcTime()\n {\n\treturn this.utcTime;\n }",
"private static Calendar toUTCCalendarWithoutTime(final Date date) {\n final Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.setTime(date);\n calendar.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n return calendar;\n }",
"public static long fromISO8601UTC(String dateStr) {\n TimeZone tz = TimeZone.getTimeZone(\"UTC\");\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'\");\n df.setTimeZone(tz);\n try {\n return df.parse(dateStr).getTime();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return 0;\n }",
"private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }",
"public RichOutboundFixMessageBuilder addUtcTimestamp(final int tag) {\n this.rawBuilder.addField(tag, DateSupplier.getUtcTimestamp());\n\n return this;\n }",
"public static long getCurrentUTCTime() {\n final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone(DEFAULT_TIMEZONE));\n return calendar.getTimeInMillis();\n }",
"public String getLocalFromUtc(String date){\n\n //Parse date string to LocalDateTime\n LocalDateTime providedDate = LocalDateTime.parse(date, dateTimeFormatter);\n //Convert LocalDateTime to ZonedDateTime\n ZonedDateTime zonedDateTime = ZonedDateTime.of(providedDate, ZoneId.of(\"UTC\"));\n //Convert UTC time to system default time using an offset\n ZonedDateTime toSysDefault = zonedDateTime.withZoneSameInstant(ZoneOffset.systemDefault());\n //Convert back to a LocalDateTime\n LocalDateTime result = toSysDefault.toLocalDateTime();\n\n return dateTimeFormatter.format(result);\n\n }",
"protected Timestamp extractUpdateDatetimeFromDto(MemberDto dto) {\r\n return convertForEntity(dto.getUpdateDatetime(), Timestamp.class);\r\n }",
"private String getNewTimestamp(String originTimestamp, String originFormat, int timezoneOffset, String destinationFormat) {\n final ZoneId originZoneId = ZoneId.ofOffset(\"UTC\", ZoneOffset.ofHours(timezoneOffset));\n final Instant originTimeAsInstant = Instant.from(DateTimeFormatter\n .ofPattern(originFormat)\n .withZone(originZoneId)\n .parse(originTimestamp));\n\n /* configure target time format and time zone (all times should be in UTC) */\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(destinationFormat);\n final ZoneId destinationZoneId = ZoneId.ofOffset(\"UTC\", ZoneOffset.UTC); //always UTC\n\n /* format timestamp from its origin form to destination form (form = format + time zone) */\n return formatter.format(ZonedDateTime.ofInstant(originTimeAsInstant, destinationZoneId));\n }",
"public static void main(String[] args) throws ParseException { 2019-05-30T10:15:16.0Z\n // 2019-05-30T10:18:21\n // SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n // String str = \"2019-05-30 18:15:16\";\n // Date date = sdf.parse(str);\n //\n // DateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n // // Date date = Calendar.getInstance().getTime();\n // TimeZone srcTimeZone = TimeZone.getTimeZone(\"GMT+8\");\n // TimeZone destTimeZone = TimeZone.getTimeZone(\"GMT\");\n // System.out.println(DateTransformer.dateTransformBetweenTimeZone(date, formatter, srcTimeZone, destTimeZone));\n //\n\n }",
"public static long getUTCDateFromLocal(long localDate) {\n TimeZone tz = TimeZone.getDefault();\n long gmtOffset = tz.getOffset(localDate);\n return localDate + gmtOffset;\n }",
"public final native double setUTCSeconds(int seconds) /*-{\n this.setUTCSeconds(seconds);\n return this.getTime();\n }-*/;",
"public static DateTime parseTimestampWithTimeZone(String str) {\n return DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ssZ\").parseDateTime(str);\n }",
"public static UUID toTimeBasedUuid(UUID uuid) {\n\n\t\tif (!UuidUtil.isTimeOrdered(uuid)) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Not a time-ordered UUID: %s.\", uuid.toString()));\n\t\t}\n\n\t\tlong timestamp = UuidUtil.extractTimestamp(uuid);\n\n\t\tlong msb = ((timestamp & 0x0fff_0000_00000000L) >>> 48) //\n\t\t\t\t| ((timestamp & 0x0000_ffff_00000000L) >>> 16) //\n\t\t\t\t| ((timestamp & 0x0000_0000_ffffffffL) << 32) //\n\t\t\t\t| 0x0000000000001000L; // set version 1\n\n\t\tlong lsb = uuid.getLeastSignificantBits();\n\n\t\treturn new UUID(msb, lsb);\n\t}",
"public final native double setUTCSeconds(int seconds, int millis) /*-{\n this.setUTCSeconds(seconds, millis);\n return this.getTime();\n }-*/;",
"public void setValidUntilUTCoffset(Long validUntilUTCoffset) ;",
"void unsetUserTimeZoneCode();",
"@Before\n public void reset() {\n DateTimeZone.setDefault(DateTimeZone.UTC);\n DateTimeUtils.setCurrentMillisFixed(1L);\n suppressAllWarnings = true;\n }",
"@ApiModelProperty(example = \"2020-12-03T19:04:58.6970000\", value = \"Updated date in UTC\")\n /**\n * Updated date in UTC\n *\n * @return updatedDateUtc String\n */\n public String getUpdatedDateUtc() {\n return updatedDateUtc;\n }",
"public static int getUtcOffset() {\r\n\t\treturn utcOffset;\r\n\t}",
"private static final int implicitTimezoneMinutes() { return 0; }",
"public ZonedDateTime convertToSystemZonedDateTime(LocalDateTime ldt){\n return ZonedDateTime.of(ldt, ZoneId.systemDefault());\n }",
"public void setSRCCOMMITDTUTC(java.lang.CharSequence value) {\n this.SRC_COMMIT_DT_UTC = value;\n }",
"public void setSRCCOMMITDTUTC(java.lang.CharSequence value) {\n this.SRC_COMMIT_DT_UTC = value;\n }",
"public void setSRCCOMMITDTUTC(java.lang.CharSequence value) {\n this.SRC_COMMIT_DT_UTC = value;\n }",
"public void unsetUeTimezoneValue() throws JNCException {\n delete(\"ue-timezone\");\n }",
"public static String UTCFromLocalDate(String localDate) {\n Pattern pattern = Pattern.compile(\"^\\\\d\\\\d\\\\d\\\\d-\\\\d\\\\d-\\\\d\\\\d$\");\n Matcher matcher = pattern.matcher(localDate);\n if (matcher.matches()) {\n return localDate + \"T00:00:00Z\";\n } else {\n return localDate;\n }\n }",
"public static LocalTime UTCTimeNow() {\n return TimeService.UTCTimeNow();\n }",
"public LocalDateTime convertToGMT(ZonedDateTime time){\n ZoneId gmtZoneID = ZoneId.of(\"Etc/UTC\");\n ZonedDateTime gmtTime = time.withZoneSameInstant(gmtZoneID);\n return gmtTime.toLocalDateTime();\n }",
"private TimestampUtils(){}",
"private static String timeFormat(long t, String format) {\n SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.US);\n try {sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));} catch (Exception e) {}\n return sdf.format(new Date(t));\n }",
"public static String getUTCDateFormatted(final String format) {\n\n Calendar calendar = getCalendar(getCurrentUTCTime(), TimeZone.getTimeZone(DEFAULT_TIMEZONE));\n\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n return formatter.format(calendar.getTime());\n\n }",
"public static java.util.Date convertToUDate(java.sql.Timestamp timeStamp) {\n\t\tif (timeStamp == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(timeStamp.getTime());\n\t\t\treturn uDate;\n\t\t}\n\t}",
"static Timestamp parseString(String timestampString,\n String pattern,\n boolean withZoneUTC) {\n return parseString(timestampString, pattern, withZoneUTC,\n (pattern == null));\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder clearSRCCOMMITDTUTC() {\n SRC_COMMIT_DT_UTC = null;\n fieldSetFlags()[17] = false;\n return this;\n }",
"public static String getUtcIsoString(LocalDateTime localDateTime) {\n return localDateTime.atZone(ZoneOffset.UTC).toString();\n }",
"@ExecFunction(name = \"unix_timestamp\", argTypes = {}, returnType = \"INT\")\n public static Expression unixTimestamp() {\n return new IntegerLiteral((int) (System.currentTimeMillis() / 1000L));\n }",
"public long getTimeStampMicroTZ(int columnIndex) {\n TimeStampMicroTZVector vector = (TimeStampMicroTZVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public static long convertToTimestamp(String timestamp) {\n return LocalDateTime.parse(timestamp, FORMATTER).toInstant(ZoneOffset.UTC).toEpochMilli();\n }",
"static public void emitNullableTimestamp(RowEmitter outputEmitter, long value, long nullValue) {\r\n\t\tif(value != nullValue) {\r\n\t\t\tCalendar creationTimestamp = Calendar.getInstance();\r\n\t\t\tcreationTimestamp.setTimeInMillis(value);\r\n\t\t\toutputEmitter.addTimestamp(new Timestamp(\r\n\t\t\t\t\tSqlType.getType(\"timestamp with time zone\"),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.YEAR),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.MONTH)+1,\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.DAY_OF_MONTH),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.HOUR_OF_DAY),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.MINUTE),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.SECOND),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.MILLISECOND)*1000000));\r\n\t\t}\r\n\t\telse\r\n\t\t\toutputEmitter.addNull();\r\n\t}",
"private static Date ISO_8601toDate(String dateTime) throws ParseException {\n\n //already in UTC\n if (dateTime.endsWith(\"Z\")) {\n return dateTimeFormatZ.parse(dateTime);\n }\n\n int positionT = dateTime.indexOf('T');\n\n int positionZ = dateTime.indexOf('+', positionT);\n if (positionZ == -1) {\n positionZ = dateTime.indexOf('-', positionT);\n }\n\n //no timezone specified, defaults to UTC\n if (positionZ == -1) {\n return dateTimeFormatZ.parse(dateTime + 'Z');\n }\n\n //convert to General time zone to preserve the timezone provided\n return dateTimeFormatGtz.parse(dateTime.substring(0, positionZ)\n + \"GMT\"\n + dateTime.substring(positionZ));\n }",
"@Test\n public void datetimeTest() {\n assertEquals(OffsetDateTime.parse(\"2020-08-12T07:59:11Z\"), authResponse.getDatetime());\n }",
"private String formatDate(String dateStringUTC) {\n // Parse the dateString into a Date object\n SimpleDateFormat simpleDateFormat =\n new SimpleDateFormat(\"yyyy-MM-dd'T'kk:mm:ss'Z'\");\n Date dateObject = null;\n try {\n dateObject = simpleDateFormat.parse(dateStringUTC);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n // Initialize a SimpleDateFormat instance and configure it to provide a more readable\n // representation according to the given format, but still in UTC\n SimpleDateFormat df = new SimpleDateFormat(\"MMM d, yyyy h:mm a\", Locale.ENGLISH);\n String formattedDateUTC = df.format(dateObject);\n // Convert UTC into Local time\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date date = null;\n try {\n date = df.parse(formattedDateUTC);\n df.setTimeZone(TimeZone.getDefault());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return df.format(date);\n }",
"public final native int getUTCSeconds() /*-{\n return this.getUTCSeconds();\n }-*/;",
"public void setValidFromUTCoffset(Long validFromUTCoffset) ;",
"private void calcUpTime(Long created_at) {\n\tupTimeHour = (((System.currentTimeMillis() - created_at) / (1000 * 60 * 60)) % 24) - 1;\n\tupTimeMinute = ((System.currentTimeMillis() - created_at) / (1000 * 60)) % 60;\n }",
"public java.time.LocalDateTime convertToCurrentZone(java.time.LocalDateTime time_input){\r\n java.time.LocalDateTime newDateTime = time_input.atZone(ZoneId.of(\"GMT\")).withZoneSameInstant(getTimeZone().toZoneId()).toLocalDateTime();\r\n return newDateTime;\r\n }"
] | [
"0.7585328",
"0.6403236",
"0.6241508",
"0.60657585",
"0.60514736",
"0.60265046",
"0.59788483",
"0.5885882",
"0.5815997",
"0.5703228",
"0.5687955",
"0.56521934",
"0.56423455",
"0.5634295",
"0.55770147",
"0.5573275",
"0.55493295",
"0.5477206",
"0.54752684",
"0.5473964",
"0.5470086",
"0.5464251",
"0.5436135",
"0.5426987",
"0.54019177",
"0.538512",
"0.53437644",
"0.5335851",
"0.5325873",
"0.53190464",
"0.5297055",
"0.529405",
"0.5258078",
"0.5219976",
"0.5205342",
"0.5190373",
"0.51637995",
"0.5151798",
"0.51414347",
"0.51143146",
"0.508439",
"0.50441563",
"0.50425154",
"0.5038324",
"0.5003664",
"0.49760047",
"0.49446183",
"0.4919069",
"0.49189866",
"0.4898213",
"0.48684725",
"0.485235",
"0.48504758",
"0.4824275",
"0.48084226",
"0.4806803",
"0.48034877",
"0.47893217",
"0.47874415",
"0.4786188",
"0.47765255",
"0.4776139",
"0.47593263",
"0.47435617",
"0.4740426",
"0.4738038",
"0.47268334",
"0.4721573",
"0.47145438",
"0.47081128",
"0.4704778",
"0.4690024",
"0.46865728",
"0.4671356",
"0.46695784",
"0.46670285",
"0.46670285",
"0.46670285",
"0.46464843",
"0.46419623",
"0.46406856",
"0.46302462",
"0.4623667",
"0.46213362",
"0.4616032",
"0.46093026",
"0.46060243",
"0.4595117",
"0.45780286",
"0.4562693",
"0.45625862",
"0.45475674",
"0.45361206",
"0.45285213",
"0.4525586",
"0.45228004",
"0.45218265",
"0.45211098",
"0.45107022",
"0.45004052"
] | 0.74457765 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Simulador inicio = new Simulador();
inicio.simular();
} | {
"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 |
Post getById(Long id); Post save(Post post); | Post save(Post post, Long authorId, String category); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Post save(Post post) throws Exception;",
"public Post save(Post post) {\n return postsDao.save(post);\n }",
"void savePost(Post post);",
"Post findById(int id);",
"Post getPostByID(long postId);",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"public BlogPost getPostById(Long id);",
"@PostMapping(\"/\")\n private ResponseEntity<Post> createPost(@RequestBody Post post) {\n User user = getCurrentUser();\n post.setCreated(new Date());\n post.setUserId(user.getId());\n post = postService.add(post);\n\n return new ResponseEntity<>(post, HttpStatus.OK);\n }",
"public Post findOne(long id) {\n return postsDao.findById(id);\n }",
"public void updatePost(Long id, BlogPost post);",
"@PostMapping(\"/posts\")\n ResponseEntity<?> createPost(@RequestBody Post post) {\n post.setOwner(SecurityContextHolder.getContext().getAuthentication().getName());\n post.setDateCreated(LocalDateTime.now());\n\n EntityModel<Post> newPost = modelAssembler.toModel(postRepository.save(post));\n return ResponseEntity.created(newPost.getRequiredLink(IanaLinkRelations.SELF).toUri()).body(newPost);\n }",
"@Override\n public Post getPostById(Long postId) {\n Post savedPost = postRepository.findById(postId).orElse(null);\n\n Comment[] comments = sender.findCommentsByPostId(savedPost.getPostId());\n\n savedPost.setComments(Arrays.asList(comments));\n return savedPost;\n }",
"@Override\r\n\tpublic Post getPostById(int id) {\n\t\treturn getHibernateTemplate().get(Post.class, id);\r\n\t}",
"Boolean save(PostSaveDTO postSaveDTO);",
"@PutMapping(\"/\")\n private ResponseEntity<Post> updatePost(@RequestBody Post post) {\n User user = getCurrentUser();\n Post oldPost = postService.findById(post.getId()).orElse(null);\n\n if (oldPost == null && !user.getId().equals(post.getId()))\n return ResponseEntity.notFound().build();\n\n if (oldPost != null) {\n oldPost.setCreated(new Date());\n oldPost.setSubject(post.getSubject());\n oldPost.setContent(post.getContent());\n\n postService.add(oldPost);\n return new ResponseEntity<>(oldPost, HttpStatus.OK);\n } else\n return ResponseEntity.badRequest().build();\n }",
"public interface PostService {\n Post save(Post unsavedPost);\n void delete(long id);\n Post findOne(long id);\n Page<Post> getPosts(String name, boolean enabled, int page, int size);\n boolean isExists(long id);\n}",
"public void setPostId(long postId);",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"public void createPost( BlogPost post );",
"@Service\npublic interface PostService {\n List<Post> findAll();\n\n Post save(Post post);\n}",
"@RequestMapping(value = \"/post/{postId}\", method = RequestMethod.PUT)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void putPost(@PathVariable(\"postId\") int postId, @RequestBody Post post) {\n post.setPostId(postId);\n daoP.updatePost(post);\n }",
"Optional<Post> getPost(String postId) throws Exception;",
"@PutMapping(\"/{id}\")\n public ResponseEntity<Post> updatePost(@PathVariable Long id, @RequestBody Post updatePostById){\n Post post = postService.updatePost(id, updatePostById);\n return ResponseEntity.ok(post);\n }",
"PostSaveDTO queryDetailById(String postId);",
"public Post save(Post t) {\n\t\tSession session;\n\t\ttry {\n\t\t\tsession = sessfact.getCurrentSession();\n\t\t} catch (HibernateException e) {\n\t\t\tsession = sessfact.openSession();\n\t\t}\n\t\tTransaction trans = session.beginTransaction();\n\t\tsession.save(t);\n\t\ttrans.commit();\n\t\treturn t;\n\t}",
"Entity save(Entity entity);",
"T save(T entity);",
"T save(T entity);",
"T save(T entity);",
"E save(E entity);",
"@GetMapping(\"/{id}\")\n public ResponseEntity<Post> getPostById(@PathVariable Long id){\n Post post = postService.getPostById(id);\n return ResponseEntity.ok(post);\n }",
"void setPostId(int postId);",
"@Override\n\tpublic void savePost(String categoryId, String forumId, String topicId,\n\t\t\tPost post, boolean isNew, MessageBuilder messageBuilder)\n\t\t\tthrows Exception {\n\n\t}",
"@Transactional(propagation = Propagation.REQUIRED, readOnly = false)\n\t@Override\n\tpublic void addPost(Post post) {\n\t\tpostDao.addPost(post);\n\t}",
"public long getPostId();",
"@PostMapping(\"\")\n public ResponseEntity<Post> createPost(@Valid @RequestBody Post post) {\n return ResponseEntity.status(HttpStatus.CREATED)\n .body(postService.createPost(post));\n }",
"public VBeatPostModel getPost(String postId){\n List<VBeatPostModel> postList = AppLocalDB.getInstance().db.postDao().getPost(postId);\n\n if(postList.size() == 0) {\n return null;\n } else {\n return postList.get(0);\n }\n\n }",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"public synchronized Post getPostById(String id) {\n try {\n this.connect();\n Post myPost = linkedin.restOperations().getForObject(\n \"http://api.linkedin.com/v1/posts/{post-id}\" +\n \":(creation-timestamp,title,summary,id,\" +\n \"creator:(first-name,last-name))\", Post.class, id);\n log.info(myPost.getCreationTimestamp());\n log.info(myPost.getId());\n log.info(myPost.getTitle());\n return myPost;\n } catch (Exception e) {\n log.debug(\"An exception occured when reading a post with id \" + id + \" from group: \" + groupId);\n }\n return null;\n }",
"@GetMapping(\"/{post_id}\")\n private ResponseEntity<Post> getPost(@PathVariable Long post_id) {\n User user = getCurrentUser();\n Post post = postService.findById(post_id).orElse(null);\n\n if (post == null) {\n return ResponseEntity.notFound().build();\n } else {\n return ResponseEntity.ok(post);\n }\n }",
"public <T> T save(T entity);",
"@PostMapping(\"/addPost\")\n public ResponseEntity addNewPost(@RequestBody Post post){\n postService.postNewInfo(post);\n return new ResponseEntity(HttpStatus.OK);\n }",
"@Override\n public Post createPost(Post post, String token) throws TokenException {\n User user = sender.getUserFromUserAPI(token);\n if (user == null) {\n logger.info(\"Invalid token: \"+ token +\" User could not be retrieved\");\n throw new TokenException(\"Invalid Token.\");};\n post.setUserId(user.getUserId());\n post.setUser(user);\n Post savedPost = postRepository.save(post);\n return savedPost;\n }",
"public interface BlogPostService {\n\n void savePost(BlogPost blogPost);\n}",
"public interface PostService {\n public ResultInfo addPost(PostVo postVo);\n\n public ResultInfo getPostById(Long id);\n\n public ResultInfo updatePost(PostVo postVo);\n\n public ResultInfo deletePostById(Long id);\n\n public Map share(Long id);\n\n}",
"User save(User user);",
"@Override\n\tpublic void set(int id, Post entity) {\n\t\t\n\t}",
"@Override\n public PostDTO update(long topicId, PostDTO postDTO) {\n Post postDB = postRepository.findByTopicIdAndId(topicId, postDTO.getId());\n if (postDB != null) {\n //set created from db\n postDTO.setCreated(postDB.getCreated());\n\n postDTO.setTopic(topicService.read(topicId));\n if (postDTO.getUser() == null) {\n //read user if not set\n postDTO.setUser(userService.read(postDTO.getEmail()));\n }\n LocalDateTime dateNow = LocalDateTime.now();\n postDTO.setEdited(dateNow);\n Post post = mapper.map(postDTO, Post.class);\n post = postRepository.save(post);\n return mapper.map(post, PostDTO.class);\n }\n else {\n return null;\n }\n }",
"ID saveWithId(T entity);",
"CompletableFuture<PostResponse> createNewPost(Post post);",
"@PostMapping(\"/posts/create\")\n public String createPost(\n Model model,\n @RequestParam(name = \"title\") String title,\n @RequestParam(name = \"body\") String body,\n @RequestParam(name = \"team\") String teamIDString,\n @RequestParam(name = \"sport\") String sportIDString) {\n\n long teamID = Long.parseLong(teamIDString);\n long sportID = Long.parseLong(sportIDString);\n\n Team thisTeam = teamRepository.findOne(teamID);\n Sport thisSport = sportRepository.findOne(sportID);\n\n\n// Which user is being assigned to this post?\n\n User foundUser = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n User dbUser = userRepository.findOne(foundUser.getId());\n\n\n\n\n// Now it's time to actually make the post.\n\n Post post = new Post();\n post.setTitle(title);\n post.setBody(body);\n post.setSport(thisSport);\n post.setTeam(thisTeam);\n post.setAuthor(dbUser);\n\n postRepository.save(post);\n\n// After post is created, give user options to do something next\n\n Post createdPost = postRepository.findOne(post.getId());\n model.addAttribute(\"createdPost\", createdPost);\n\n\n// Send email commented out for now so I don't send an email every time\n\n// emailService.prepareAndSend(post, \"Congratulations James! You have been hired for this position\", \"You have been hired for this position: 1007A McDonalds Region Manager\");\n\n return \"posts/create-success\";\n }",
"int getPostId();",
"@Override\n\tpublic Post updatePost(Post post) {\n\t\treturn null;\n\t}",
"public Article save(Article article);",
"void editMyPost(Post post);",
"public User save(User user);",
"@GetMapping(\"/getPost/{id}\")\n public ResponseEntity<Optional<Post>> getPostDetails(@PathVariable @RequestBody Long id){\n return new ResponseEntity<Optional<Post>>(postService.getPost(id),HttpStatus.OK);\n }",
"Product save(Product product);",
"void save(Object entity);",
"void save(T entity);",
"@GetMapping(\"posts/{id}\")\n public Post getById(@PathVariable Long id){\n return postService.getById(id)\n .orElseThrow(()->new ResponseStatusException(HttpStatus.NOT_FOUND));\n }",
"CompletableFuture<PostResponse> updatePost(Post post);",
"public interface PostService {\n List<PostDto> getPostsByUser(String email) throws ServiceException;\n\n List<PostDto> getAllPosts()throws ServiceException;\n\n Post insertPost(PostDto dto) throws ServiceException;\n\n void addLikeToPost(LikeDto dto)throws ServiceException;\n\n void addCommentToPost(CommentDto dto)throws ServiceException;\n\n PostDto getPostById(Long id)throws ServiceException;\n\n}",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"@Transactional\npublic interface PostDao extends CrudRepository<Post, Long> {\n\n Post findById(Long id);\n\n}",
"<S extends T> S save(S entity);",
"<S extends T> S save(S entity);",
"@RequestMapping(value = \"/blog/{postId}\", method = RequestMethod.PUT)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updateBlogPostPage(@PathVariable(\"postId\") int postId, @RequestBody Post post) {\n post.setPostId(postId);\n daoP.updatePost(post);\n\n }",
"@Override\n\tpublic Post toPost(PostDto postDto ) {\n\t\treturn new Post(employeeDao.readEmployeeById(postDto.getEmployeeId()), postDto.getBody(), LocalDateTime.now(), ticketDao.readTicket(postDto.getTicketId()));\n\t}",
"void deletePostById(int id);",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"public long getPostId() {\n return postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"public Post addNewPost(@RequestBody NewPostBean post, String userTokenId);",
"Boolean save(T entity);",
"@Override\n\tpublic void save(String username, String profilelocation, long tweetId, String post) {\n\t\t Document document = new Document();\n \tdocument.put(\"TweetId\", tweetId);\n\t\t\tdocument.put(\"Username\", username);\n\t\t\tdocument.put(\"ProfileLocation\", profilelocation);\n\t\t\tdocument.put(\"Content\", post);\n\t\tcollection.insertOne(document);\n\t\t\n\t}",
"public static Result editPost(Long id) {\t\t\n\t\tUser currentUser = UserController.loggedInUser();\n\t\tif (currentUser == null) {\n\t\t\t// User not logged in. So redirect to login first\n\t\t\t//String uri = request().uri();\n\t\t\tflash(\"loginMessage\", \"You are not logged in\");\n\t\t\treturn redirect(routes.Application.login());\n\t\t}\n\t\tPost post = Post.get(id);\n\t\tif (post != null) {\n\t\t\tif (!post.createdBy.equals(currentUser.userName)) {\n\t\t\t\treturn TODO; // You cannot edit post which you did not post.\n\t\t\t}\n\t\t\tForm<Post> postForm = form(Post.class).fill(post);\n\t\t\treturn ok(editPost.render(postForm, currentUser));\n\t\t} else {\n\t\t\treturn TODO; //Post does not exist\n\t\t}\n\t}",
"public boolean save(BlogComment blogComment);",
"@Override\n\tpublic T save(T entity) {\n\t\treturn getDao().save(entity);\n\t}",
"void save(E entity);",
"public Post getPost(int id) throws ParseException {\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t\n\t\tCursor cursor = db.query(TABLE_POSTS, new String[] {KEY_USER_ID, \n\t\t\t\tKEY_MEETING_LOCATION, KEY_DESTINATION, KEY_DATE_TIME,\n\t\t\t\tKEY_AVAILABLE_SEATS, KEY_POST_ID }, KEY_POST_ID + \"=?\",\n\t\t\t\tnew String[] { String.valueOf(id) }, null, null, null, null);\n\t\tif (cursor != null)\n\t\t\tcursor.moveToFirst();\n\t\tPost post = new Post(\n\t\t\t\tcursor.getInt(0), \t\t// user id\n\t\t\t\tcursor.getString(1),\t// meet loc\n\t\t\t\tcursor.getString(2), \t// destination\n\t\t\t\tthis.convertStringToDate(cursor.getString(3)), \t// date\n\t\t\t\tcursor.getInt(4),\t\t// seats\n\t\t\t\tcursor.getInt(5) );\t\t// post id\n\t\t// return post\n\t\treturn post;\n\t\t}",
"T save(T entity) throws DataConcurrencyException, DataIntegrityViolationException;",
"T save(T object);",
"@PostMapping(\"/posts/{id}/edit\")\n public String editThisPost(\n Model model,\n @PathVariable(name = \"id\") long id,\n @RequestParam(name = \"title\") String title,\n @RequestParam(name = \"body\") String body,\n @RequestParam(name = \"team\") String teamIDString,\n @RequestParam(name = \"sport\") String sportIDString) {\n\n Post post = postRepository.findOne(id);\n\n\n// change our id strings into longs\n\n long teamID = Long.parseLong(teamIDString);\n long sportID = Long.parseLong(sportIDString);\n\n\n// Make changes to post\n\n post.setTitle(title);\n post.setBody(body);\n post.setSport(sportRepository.findOne(sportID));\n post.setTeam(teamRepository.findOne(teamID));\n\n\n postRepository.save(post);\n\n// Return page after edit\n\n Post editedPost = postRepository.findOne(post.getId());\n model.addAttribute(\"editedPost\", editedPost);\n\n return \"posts/edit-success\";\n }",
"T save(T obj);",
"@GetMapping(\"/post/{id}\")\n PostDTO getPostsById(@PathVariable Long id);",
"public UserEntity save(UserEntity userEntity);",
"public User saveUser(User user);",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"@Override\n\tpublic Post add(Post entity) {\n\t\treturn null;\n\t}",
"User saveUser(User user);",
"public interface IPostDao {\n\n\t/**\n\t * Identifies a post by id (primary key)\n\t * \n\t * @param id\n\t * @return\n\t */\n\tPost findById(int id);\n\n\t/**\n\t * Receives and saves the post to database\n\t * \n\t * @param post\n\t */\n\tvoid savePost(Post post);\n\n\t/**\n\t * Find all Posts in the database\n\t * \n\t * @return\n\t */\n\tList<Post> findAllPosts();\n\t\n\t\n\t/**\n\t * Find all Posts from a particular user name in the database\n\t * @param userName\n\t * @return\n\t */\n\tList<Post> findPostsByUserName(String userName);\n\n\t/**\n\t * Deletes Post by looking up the id from database\n\t * @param id\n\t */\n\tvoid deletePostById(int id);\n}",
"public Post getPost(int postID)\n {\n Post post = null;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n String query = \"SELECT * FROM Post WHERE postID=\"+\"'\"+postID+\"'\";\n Cursor c = database.rawQuery(query, null);\n if (c.moveToFirst()) {\n post = new Post();\n post.setPostID(c.getColumnIndex(\"postID\"));\n post.setPostBody(c.getString(c.getColumnIndex(\"postBody\")));\n post.setPostedBy(c.getString(c.getColumnIndex(\"postedBy\")));\n post.setBitmap(c.getString(c.getColumnIndex(\"image\")));\n\n }\n else\n {\n Log.i(TAG, \"This postID doesn't exist in the DB.\");\n }\n dbH.close();\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n Log.i(TAG, \"Error in getting post from DB.\");\n\n }\n return post;\n }",
"Note getOneEntity(Long id);",
"public void save(Object instance);",
"@RequestMapping(path = \"/posts/{id}/comment\")\n @ResponseBody\n public String comment(@RequestBody Comment comment, @PathVariable(name = \"id\") String postId) {\n User cUser = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n Comment temp = new Comment(comment.getBody(), usersDoa.getOne(cUser.getId()), pDoa.getOne(Long.parseLong(postId)));\n commentsDoa.save(temp);\n return \"\";\n// return \"redirect:/posts/\" + postId;\n }",
"@Override\n\tpublic void editPost(Scanner sc) {\n\t\tPost p = new Post();\n\t\tgetPostByMemberId();\n\t\tSystem.out.print(\"수정할 번호를 입력해 주세요 >>\");\n\t\tp.setPostId(sc.nextInt());\n\t\tsc.nextLine();\n\t\tp.setMemberId(cur.getId());\n\t\tSystem.out.print(\"제목을 수정해 주세요 :\");\n\t\tp.setPostName(sc.nextLine());\n\t\tSystem.out.print(\"내용을 수정해 주세요 :\");\n\t\tp.setContent(sc.nextLine());\n\t\tdao.updatePost(p);\n\t}",
"@RequestMapping(method = RequestMethod.POST)\n public final Entry save(@RequestBody final Entry entry) {\n this.checkId(entry.getId());\n entry.setUser(SecurityUtils.actualUser());\n return this.dao.save(entry);\n }",
"Mono<Post> create(String circleId, Post post);"
] | [
"0.84400266",
"0.8439707",
"0.8065019",
"0.7915191",
"0.76019204",
"0.71322304",
"0.7120371",
"0.70328426",
"0.6988544",
"0.69805866",
"0.6945723",
"0.68817693",
"0.6850085",
"0.6772283",
"0.67441714",
"0.6716478",
"0.6653795",
"0.65514773",
"0.65450937",
"0.65076596",
"0.64602435",
"0.645638",
"0.6452255",
"0.64467996",
"0.64297366",
"0.6411099",
"0.6393289",
"0.63869935",
"0.63869935",
"0.63869935",
"0.6313239",
"0.6312841",
"0.6289608",
"0.6242984",
"0.62183833",
"0.6209914",
"0.6199589",
"0.6189245",
"0.61597645",
"0.61427337",
"0.61167353",
"0.61056143",
"0.6101731",
"0.60770077",
"0.6072774",
"0.6057364",
"0.6041918",
"0.6030009",
"0.6017134",
"0.6011052",
"0.60092",
"0.5987083",
"0.5970074",
"0.59658164",
"0.5965473",
"0.5942282",
"0.5931456",
"0.5924452",
"0.5922238",
"0.59101176",
"0.59099025",
"0.5887149",
"0.5880126",
"0.58739495",
"0.5870199",
"0.58663",
"0.5854401",
"0.5854401",
"0.5843174",
"0.58258736",
"0.57827556",
"0.57817096",
"0.57777387",
"0.5765601",
"0.57592547",
"0.5751041",
"0.57293725",
"0.5728656",
"0.5723918",
"0.5723824",
"0.5713972",
"0.56950563",
"0.5687915",
"0.5660643",
"0.565428",
"0.5609531",
"0.5595144",
"0.5590453",
"0.5566508",
"0.5551072",
"0.5550383",
"0.55498266",
"0.55313087",
"0.55280447",
"0.5523539",
"0.5515443",
"0.55003285",
"0.5498115",
"0.54924583",
"0.5476644"
] | 0.74332213 | 5 |
void deleteById(Long id); void delete(Post post); | Post incrementRatio(Long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deletePostById(int id);",
"public HttpStatus deleteById(Long postId);",
"public void destroyPost(Long id);",
"@Override\n\tpublic void deletePost(Post post) {\n\n\t}",
"int deleteByPrimaryKey(String postId);",
"@NonNull\n int deleteByPostId(@NonNull @Param(\"postId\") Integer postId);",
"@DeleteMapping(\"/{post_id}\")\n private ResponseEntity<Post> deletePost(@PathVariable Long post_id) {\n postService.deleteById(post_id);\n return ResponseEntity.ok().build();\n }",
"@DeleteMapping(\"/deletePost/{id}\")\n public ResponseEntity deletePost(@PathVariable @RequestBody Long id){\n postService.deletePost(id);\n return new ResponseEntity<>(HttpStatus.OK);\n }",
"@Override\r\n\tpublic void deletePost(Post post) {\n\t\tgetHibernateTemplate().delete(post);\r\n\t}",
"@DeleteMapping(\"/{id}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void deletePost(@PathVariable Long id){\n postService.deletePost(id);\n }",
"int deleteByPrimaryKey(Integer postid);",
"@DELETE(\"posts/{id}/\")\n Call<Void> delete(@Path(\"id\") int id);",
"void deleteBlogPost(BlogPost blogPost);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"public void deleteById(Long id);",
"public void delete(Long id);",
"public void delete(Long id);",
"public void delete(Long id);",
"public void delete(Long id);",
"public void delete(Long id);",
"void removePost(int id) throws RemoteException, SQLException;",
"public int deletePost(Integer post_id) {\n\t\treturn postDao.deletePost(post_id);\r\n\t}",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);"
] | [
"0.91567963",
"0.88265896",
"0.8485841",
"0.8321501",
"0.8237591",
"0.8090891",
"0.80635035",
"0.8042989",
"0.8024539",
"0.8006365",
"0.79501396",
"0.7876329",
"0.7846353",
"0.7806658",
"0.7806658",
"0.7806658",
"0.7806658",
"0.769304",
"0.7649664",
"0.7649664",
"0.7649664",
"0.7649664",
"0.7649664",
"0.76430196",
"0.76348394",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576",
"0.76157576"
] | 0.0 | -1 |
Post addCommentary(Commentary commentary, Long id); | Post addAddition(Long additionId, Long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addComment(Comment comment){\n commentRepository.createComments(comment);\n }",
"void addNewComment(BlogComment comment) throws DAOException;",
"@PostMapping(\"{id}\")\n public Book addComments (@RequestBody String text, @PathVariable Long id) {\n return bookService.addComments(text, id);\n }",
"void addComment(long mediaId, String text);",
"public void addComment(Comment comment) {\n \t\tcomment.setId(commentIdCounter);\n \t\tcomments.add(comment);\n \t\tcommentIdCounter++;\n \t}",
"public void addComment(BlogEntry blog, CommentForm comment);",
"@Override\r\n\tpublic int addComment(Comment comment) {\n\t\treturn commentDAO.addComment(comment);\r\n\t}",
"@RequestMapping(path = \"/posts/{id}/comment\")\n @ResponseBody\n public String comment(@RequestBody Comment comment, @PathVariable(name = \"id\") String postId) {\n User cUser = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n Comment temp = new Comment(comment.getBody(), usersDoa.getOne(cUser.getId()), pDoa.getOne(Long.parseLong(postId)));\n commentsDoa.save(temp);\n return \"\";\n// return \"redirect:/posts/\" + postId;\n }",
"@PostMapping(\"/{postId}/newComment\")\n public String newComment(@PathVariable(\"postId\") Long postId, @RequestParam(\"comment\") String comment, Principal principal) {\n \tString username = principal.getName();\n \tmainService.newComment(username, postId, comment);\n \treturn \"redirect:/\";\n }",
"public com.vportal.portlet.vfaq.model.FAQComment create(long id);",
"@Override\n\tpublic void add(CommentModel comment) {\n\t\tcomments.add(comment);\n\t}",
"@Transactional\r\n\t@RequestMapping(value = { \"/comment\", \"/komentar\" }, method = RequestMethod.POST)\r\n\tpublic ResponseEntity<Comment> add(Comment comment) {\r\n\r\n\t\tcomment.setCommentState(CommentState.PENDING);\r\n\t\treturn new ResponseEntity(commentRepository.save(comment), HttpStatus.OK);\r\n\t}",
"public void addComment(CommentDTO comment) {\n\t\tif (comments == null)\n\t\t\tcomments = new ArrayList<CommentDTO>();\n\t\tcomments.add(comment);\n\t}",
"public void addComment(Comment comment) {\n this.comments.add(comment);\n }",
"public static void addComment(String handle, long problemID, String commentBody) {\n Comment comment = new Comment(handle, problemID, commentBody, new Date());\n commentColl.save(comment);\n }",
"public void addComment(CommentInfo comment) {\n \tcomments.add(comment);\n }",
"public void setCommentId(int commentId);",
"@RequestMapping(value = \"/flood/addComment\", method = RequestMethod.POST)\n public String addCommentPost(@ModelAttribute(\"newComment\") Comment comment,\n HttpServletRequest request,\n Model model) {\n comment.setUserId(1L);\n model.addAttribute(\"newComment\", commentService.addComment(comment));\n return \"floodLine\";\n }",
"@RequestMapping(value = \"/films/title/{title}/{reviewId}\", method=RequestMethod.POST)\n public String createComment(@RequestParam String content, @PathVariable String reviewId){\n Comment comment = new Comment();\n\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n String username;\n if (principal instanceof WebUserDetails) {\n username = ((WebUserDetails) principal).getUsername();\n } else {\n username = principal.toString();\n }\n\n User uId = userService.getUserByUsername(username);\n Review rId = reviewService.getReviewByReviewId(Integer.parseInt(reviewId));\n comment.setContent(content);\n comment.setUser(uId);\n comment.setReview(rId);\n commentService.saveComment(comment);\n return \"comments\";\n }",
"public ThreeDSecureRequest addComment(String comment) {\n //create new comments array list if null\n if (null == this.comments) {\n this.comments = new ArrayList<Comment>();\n }\n\n int size = comments.size();\n this.comments.add(new Comment().addComment(comment).addId(++size));\n return this;\n }",
"public void addComment(final CommitComment comment) {\n addItem(TYPE_COMMENT, comment);\n }",
"Builder addComment(Comment value);",
"public void addComment(Comment comment) {\n if (this.comments == null) {\n this.comments = new ArrayList<>();\n }\n this.comments.add(comment);\n }",
"public interface CommentService {\n\n List<Comment> listCommentByBlogId(Long id);\n\n Comment saveComment(Comment comment);\n\n}",
"public int addComment(Comment comment) {\n\t\treturn cdi.addComment(comment);\n\t}",
"@RequestMapping(method = RequestMethod.POST, value = \"users/{userId}/tweets/{tweetId}/comments\")\n public Comment addCommentForTweet(@PathVariable String userId, @PathVariable long tweetId, @RequestBody Comment comment, @RequestHeader(\"Authorization\") String access_token) {\n if (jwtUtil.isAccessTokenValid(access_token, userId)) {\n return commentService.addCommentForTweet(comment, tweetId, userId);\n } else {\n return null;\n }\n }",
"public boolean addNewCommentToWallItem(WallItemComment wallItemComment);",
"void incrementCommentLikes(long id) throws DaoException;",
"@PostMapping(value= \"/comment/\")\n\tpublic void createComment(@RequestBody Comment comment) {\n\t\tlogger.debug(\"Saving comments.\");\n\t\tservice.createComment(comment);\n\t\t//return \"Comment records created.\";\n\t}",
"@Before({PostIntercept.class, UserIntercept.class})\n @ActionKey(\"/api/blog/appendComment\")\n public void appendComment() {\n Integer belongTo = getParaToInt(\"belongTo\"); //MUST\n String content = getPara(\"content\"); //MUST\n String createdBy = getPara(\"createdBy\"); //MUST\n if (belongTo == null || content == null || createdBy == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n mResult.success(mCommentService.publish(createdBy, belongTo, content));\n renderJson(mResult);\n }",
"void create(Comment comment);",
"void insertUserLikeComment(long commentId, long userId) throws DaoException;",
"private void addCommentToPost(Comment comment, Post post) {\n\t\tList<Comment> comments = post.getComments();\n\t\tcomments.add(comment);\n\t\tpost.setComments(comments);\n\t}",
"public void addComment(Comment comment) {\n if (!isInComments(comment)) {\n this.comments.add(0, comment);\n }\n }",
"public void addComment(Long arrivalTime, Long userID)\n {\n commenters.add(userID);\n latestCommentTime = arrivalTime;\n totalScore += 10;\n }",
"public void addComment(View v) {\n\t\tIntent i = new Intent(ReadComments.this, AddComment.class);\n\t\tstartActivity(i);\n\t}",
"void delete(int commentId);",
"public static void addComment(int postId, int userId, String comment) throws SQLException {\n try (\n PreparedStatementContainer container = PreparedStatementContainer.of(\n DatabaseConnector.getConnection(),\n \"insert into comment(postID,userID,comment) values (?,?,?)\",\n postId, userId, comment\n )\n ) {\n container.update();\n }\n }",
"public long submitComment(Long playerId, String text) {\r\n\t\tPlayer player = lookupPlayer(playerId);\r\n\t\tlong id;\r\n\t\tif (player.getGame().getStatus() == STATUS.COMPLETE) {\r\n\t\t\tid = commentService.submitGameOverComment(player, text);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tid = commentService.submitCommentToAnswered(playerId, text);\r\n\t\t}\r\n\t\treturn id;\r\n\t}",
"public boolean addComment(BlogEntry blogEntry, String user, String text) {\n try {\n Comment comment = new Comment(blogEntry, user, text);\n comments.add(comment);\n } catch (Exception ex) {\n return false;\n }\n return true;\n }",
"@Before({PostIntercept.class, UserIntercept.class})\n @ActionKey(\"/api/blog/replyComment\")\n public void replyComment() {\n Integer belongTo = getParaToInt(\"belongTo\"); //MUST your new comment's id\n String content = getPara(\"content\"); //MUST\n String createdBy = getPara(\"createdBy\"); //MUST\n Integer replyTo = getParaToInt(\"replyTo\"); //MUST reply to which comment's id\n\n if (belongTo == null || content == null || createdBy == null || replyTo == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n mResult.success(mCommentService.reply(createdBy, belongTo, content, replyTo));\n renderJson(mResult);\n }",
"public static Task<DocumentReference> addTripComment(String tripId, String comment, String userName,\n String userId, long timestamp) {\n // add the comment to a map\n Map<String, Object> data = new HashMap<>();\n data.put(Const.TRIP_COMMENT_KEY, comment);\n data.put(Const.USER_NAME_KEY, userName);\n data.put(Const.USER_ID_KEY, userId);\n data.put(Const.TRIP_TIMESTAMP_KEY, timestamp);\n\n\n // add a document to the comments sub-collection of this trip\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_COMMENTS_COLLECTION)\n .add(data);\n }",
"void displayCommentsForPostWithId(String id);",
"private Task<Void> addComment(final DocumentReference postRef, final Comment comment) {\n final DocumentReference commentRef = postRef.collection(\"comments\").document();\n\n //In a transaction, add the new comment and update the aggregate totals\n return db.runTransaction(new Transaction.Function<Void>() {\n @Override\n public Void apply(Transaction transaction) throws FirebaseFirestoreException {\n Post post = transaction.get(postRef).toObject(Post.class);\n\n //Compute new number of comments\n int newNumComments = post.getNumComments() + 1;\n\n //Set new post info\n post.setComments(newNumComments);\n\n //Commit to Firestore db\n transaction.set(postRef, post);\n transaction.set(commentRef, comment);\n\n return null;\n }\n });\n }",
"@Transactional()\n public Comment create(User author, Post parent, String content) {\n parent.setComments(parent.getComments() + 1);\n postService.save(parent);\n\n // create comment post\n var commentPost = new Post(author, content);\n postService.save(commentPost);\n\n // save comment\n var comment = new Comment(commentPost, parent);\n return save(comment);\n }",
"Comment createComment();",
"public void addComment(String c) {\n comments.add(c);\n }",
"public void addComment(String content, String screenName) {\n ParseObject comment = new ParseObject(\"comment\");\n comment.put(\"content\", content);\n comment.put(\"screenName\", screenName);\n comment.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.d(TAG, \"Error creating comment in Parse: \" + e);\n }\n\n }\n });\n\n add(\"comments\", comment);\n saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.d(TAG, \"Error saving comment to photo in Parse: \" + e);\n }\n }\n });\n }",
"public Comment addComent(long messageId, Comment comment) {\r\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\r\n\t\tcomment.setId(comments.size() + 1);\r\n\t\tcomments.put(comment.getId(), comment);\r\n\t\treturn comment;\r\n\t}",
"void add( ModelObject modelObject, Long id );",
"private void addCommentsToIssue(String comment) {\n\t\tApplicationUser currentUser = ComponentAccessor.getUserManager().getUser(\"NoFails\");\n\t\t// Get access to the Jira comment and component manager\n\t\tCommentManager commentManager = ComponentAccessor.getCommentManager();\n\t\t// Get the last comment entered in on the issue to a String\n\t\tcommentManager.create(issue, currentUser, comment, true);\n\t}",
"@Override\n\tpublic void addArComment(ArComment ac) throws Exception {\n\t\tarCommentDao.add(ac);\n\t}",
"public void setCommentId(Integer commentId) {\n this.commentId = commentId;\n }",
"public void setCommentId(Long commentId) {\n this.commentId = commentId;\n }",
"@Test\n\tpublic void addComments() {\n\t\tCookie myCookie = new Cookie(\"username\", \"ch\");\n\t\tComment _comment1 = new Comment(\"New Commment1\", DateTime.now());\n\n\t\t_logger.info(\"Creating a new Comment ...\");\n\n\t\tResponse response = _client\n\t\t\t\t.target(WEB_SERVICE_URI + \"/blogEntries/2/comments\").request()\n\t\t\t\t.cookie(myCookie).post(Entity.xml(_comment1));\n\t\tif (response.getStatus() != 201) {\n\t\t\t_logger.error(\"Failed to create Comment; Web service responded with: \"\n\t\t\t\t\t+ response.getStatus());\n\t\t\tfail(\"Failed to create new Comment\");\n\t\t}\n\n\t\tString location = response.getLocation().toString();\n\t\t_logger.info(\"URI for new Comment: \" + location);\n\t\tresponse.close();\n\n\t\t// Case 2\n\t\tComment _comment2 = new Comment(\"New Commment2\", DateTime.now());\n\n\t\t_logger.info(\"Creating a new Comment ...\");\n\n\t\tresponse = _client.target(WEB_SERVICE_URI + \"/blogEntries/2/comments\")\n\t\t\t\t.request().cookie(myCookie).post(Entity.xml(_comment2));\n\t\tif (response.getStatus() != 201) {\n\t\t\t_logger.error(\"Failed to create Comment; Web service responded with: \"\n\t\t\t\t\t+ response.getStatus());\n\t\t\tfail(\"Failed to create new Comment\");\n\t\t}\n\n\t\tlocation = response.getLocation().toString();\n\t\t_logger.info(\"URI for new Comment: \" + location);\n\t\tresponse.close();\n\n\t}",
"public void saveComment(Comment comment) {\n \t\tContentValues values = new ContentValues();\n \n \t\tUser user = comment.getUser();\n \n \t\tString userName = null;\n \n \t\tif (user != null) {\n \t\t\tuserName = user.getUserName();\n \t\t}\n \n \t\tvalues.put(SQLiteHelper.COLUMN_PARENT_ID, comment.getLocalParentId());\n \t\tvalues.put(SQLiteHelper.COLUMN_GLOBALID, comment.getId());\n \t\tvalues.put(SQLiteHelper.COLUMN_PARENT_GLOBALID, comment.getParentId());\n \t\tvalues.put(SQLiteHelper.COLUMN_COMMENT, comment.getContent());\n \t\tvalues.put(SQLiteHelper.COLUMN_USER, userName);\n \n \t\tLog.v(TAG, \"Saving Comment: \" + comment.getContent());\n \n \t\tif (comment.getLocalId() == 0) {\n \t\t\t// Insert\n \t\t\tlong insertId = database.insert(SQLiteHelper.TABLE_COMMENTS, null,\n \t\t\t\t\tvalues);\n \t\t\t// Set local id\n \t\t\tcomment.setLocalId(insertId);\n \n \t\t\tLog.v(TAG, \"Insert\");\n \t\t} else {\n \t\t\tString strFilter = SQLiteHelper.COLUMN_ID + \"=\"\n \t\t\t\t\t+ comment.getLocalId();\n \t\t\tdatabase.update(SQLiteHelper.TABLE_COMMENTS, values, strFilter,\n \t\t\t\t\tnull);\n \n \t\t\tLog.v(TAG, \"Update\");\n \t\t}\n \n \t}",
"public void addComment(String spid, Comment comment) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tsuper.addComment(PERFORMERS_COMMENTS_NEW, spid, comment);\n\t}",
"public void addPostComment(final String name, final String email, final String body,\n final String permalink) {\n\n // XXX HW 3.3, Work Here\n // Hints:\n // - email is optional and may come in NULL. Check for that.\n // - best solution uses an update command to the database and a suitable\n // operator to append the comment on to any existing list of comments\n\n// DBObject comment = new BasicDBObject()\n Document comment = new Document()\n .append(\"author\", name)\n .append(\"email\", email)\n .append(\"body\", body);\n\n // Need to identify the post that the comments will be added in to\n Document thePost =new Document(\"permalink\", permalink);\n\n // Specify the update. Push in a \"comment\" document in to the \"comments\" array in the post\n Document theUpdt =new Document(\"$push\", new Document(\"comments\",comment));\n\n // Specify the post to change and how to change it\n postsCollection.updateOne(thePost,theUpdt);\n\n }",
"@PostMapping(\"/comment/{id}\")\n public ResponseEntity<Comment> getComment(@RequestBody Comment comment, @PathVariable Long id) {\n\n Comment c = null;\n\n try {\n c = this.userServices.giveComment(comment, id);\n return ResponseEntity.of(Optional.of(c));\n } catch (Exception e) {\n e.printStackTrace();\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n\n }",
"public void updatePost(Long id, BlogPost post);",
"public static void addCommentToPR(ApprovalRequest ar,\r\n\t\t\tLongString commentText, String commentTitle, Date commentDate,\r\n\t\t\tUser commentUser) {\r\n\t\tComment comment = new Comment(ar.getPartition());\r\n\t\tcomment.setType(Comment.TypeGeneral);\r\n\t\tcomment.setText(commentText);\r\n\t\tcomment.setTitle(commentTitle);\r\n\t\tcomment.setDate(commentDate);\r\n\t\tcomment.setUser(commentUser);\r\n\t\tcomment.setExternalComment(true);\r\n\t\tcomment.setParent(ar);\r\n\t\tar.getApprovable().getComments().add(comment);\r\n\r\n\t}",
"@Override\n public void onComment(Comment newComment) {\n addComment(mPostRef, newComment)\n .addOnSuccessListener(this, new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(LOG_VAL, \"Comment added\");\n\n //Hide keyboard and scroll to top\n hideKeyboard();\n mCommentRecycler.smoothScrollToPosition(0);\n }\n })\n .addOnFailureListener(this, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(LOG_VAL, \"Add comment failed\", e);\n\n //show failure message and hide keyboard\n hideKeyboard();\n Snackbar.make(findViewById(android.R.id.content), \"Failed to add comment\",\n Snackbar.LENGTH_SHORT).show();\n }\n });\n }",
"public void addComment(String key, String comment)\n {\n if (!comments.containsKey(key)) comments.put(key, new ArrayList<String>());\n comments.get(key).add(comment);\n if (!keys.contains(key)) keys.add(key);\n }",
"@ResponseBody\n @RequestMapping(\"/addcomment\")\n public String addComment(@RequestBody Map<String,Object> param){\n return commentService.addComment(param);\n }",
"public int getCommentId();",
"public String doCreateComment() {\r\n Users commenter = ui.getUser();\r\n try {\r\n this.newComment.setRecipe(this.recipe);\r\n this.newComment.setCommenter(commenter);\r\n this.newComment.setDateCommented(new Date().getTime());\r\n List<Comment> c = recipe.getComments();\r\n c.add(newComment);\r\n this.recipe.setComments(c);\r\n recipesEJB.editRecipe(recipe);\r\n } catch (javax.ejb.EJBAccessException ejbae) {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Only registered users can post comments.\"));\r\n }\r\n return \"/recipe.xhtml?recipe=\" + qm.get(\"recipe\");\r\n }",
"public boolean save(BlogComment blogComment);",
"@PostMapping(\"person/{personId}/pets\")\n\tpublic PetModel createComment(@PathVariable (value = \"personId\") Long personId,\n\t\t\t@Valid @RequestBody PetModel pet) {\n\t\treturn personRepo.findById(personId).map(PersonModel -> {\n\t\t\tpet.setPerson(PersonModel);\n\t\t\treturn petRepo.save(pet);\n\t\t}).orElseThrow(() -> new ResourceNotFoundException(\"Person\", \"id\", pet));\n\t}",
"public List<BlogComment> getCommentsByPost(Long id);",
"@Transactional\n\tpublic Comment createComments(int userId, int quizId, String comment){\n\t\tUser commenter = userDao.findById(userId);\n\t\tQuiz commentedQuiz = quizDao.findById(quizId);\n\t\t\n\t\tComment userComment = new Comment();\n\t\tuserComment.setUser(commenter);\n\t\tuserComment.setQuiz(commentedQuiz);\n\t\tuserComment.setComment(comment);\n\t\tComment comments = commentDao.saveComment(userComment);\n\t\treturn comments;\n\t\t\n\t}",
"void create(int id, int authorId, String title);",
"@GetMapping(\"/commentaries/{postId}\")\n List<CommentaryDTO> getCommentariesInPost(@PathVariable Long postId);",
"@GetMapping(\"/api/comment/create/{post_id}\")\n\tpublic ResponseEntity<Comment> createCommentForPost(@PathVariable(\"post_id\") Long post_Id,\n\t @RequestParam(defaultValue = \"{{name}}\") String name,\n\t @RequestParam(defaultValue = \"{{data}}\") String data\n\t)\n\t{\n\t\tif (!postRepo.existsById(post_Id)) {\n\t\t\treturn new ResponseEntity<>(null, HttpStatus.BAD_REQUEST);\n\t\t}\n\n\t\t// Create the new comment and find the post\n\t\tComment comment = new Comment(name, data);\n\t\tPost post = postRepo.findPostById(post_Id);\n\n\t\taddCommentToPost(comment, post);\n\n\t\tcommentRepo.save(comment);\n\t\tpostRepo.save(post);\n\n\t\treturn new ResponseEntity<>(comment, HttpStatus.OK);\n\t}",
"@PostMapping(\"/comment\")\n\tpublic Response saveComment(@RequestBody CommentDTO commentDto) {\n return Response.ok().setPayload(commentService.saveComment(commentDto));\n }",
"@Override\n\tpublic Comment insert(Comment comment) {\n\t\treturn commentRepository.save(comment);\n\t}",
"public void ajouterJoueur(String id)\n\t{\n\t\tJoueur j = new Joueur(id);\n\t\tListJoueur.add(j);\n\t}",
"Comment findById(int commentId);",
"Builder addComment(Comment.Builder value);",
"@RequestMapping(value = \"/comment/project/add/{projectId}\", method = RequestMethod.POST)\r\n public String projectComment(@PathVariable(\"projectId\") String projectId, @ModelAttribute(\"projectComment\")\r\n @Valid Comment projectComment, BindingResult result) {\r\n if (!result.hasErrors()) {\r\n int pid;\r\n try {\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User u = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n pid = Integer.parseInt(projectId);\r\n\r\n persistComment(projectComment, u, pid,\r\n 1);\r\n return \"redirect:/project/\" + projectId;\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n }\r\n return \"redirect:/project/\" + projectId;\r\n }",
"private void persistComment(Comment projectComment, User loggedIn, int id, int type) {\r\n if (id >= 0 && loggedIn != null && projectComment != null) {\r\n if (type == 1) {\r\n Project p = hibernateTemplate.get(Project.class, id);\r\n if (p != null) {\r\n if (dataAccessService.isProjectAvailableToUser(p, loggedIn)) {\r\n projectComment.setProject(p);\r\n projectComment.setCreationDate(new Date());\r\n projectComment.setCreator(loggedIn);\r\n hibernateTemplate.save(projectComment);\r\n }\r\n }\r\n } else if (type == 2) {\r\n SubProject p = hibernateTemplate.get(SubProject.class, id);\r\n if (p != null) {\r\n if (dataAccessService.isSubProjectAvailableToUser(p, loggedIn)) {\r\n projectComment.setSubProject(p);\r\n projectComment.setCreationDate(new Date());\r\n projectComment.setCreator(loggedIn);\r\n hibernateTemplate.save(projectComment);\r\n }\r\n }\r\n } else if (type == 3) {\r\n Result p = hibernateTemplate.get(Result.class, id);\r\n if (p != null) {\r\n if (dataAccessService.isSubProjectAvailableToUser(p.getSubProject(), loggedIn)) {\r\n projectComment.setResult(p);\r\n projectComment.setCreationDate(new Date());\r\n projectComment.setCreator(loggedIn);\r\n hibernateTemplate.save(projectComment);\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void addPerson(int floorId, IPerson p) {\n \tgetFloor(floorId).addPerson(p);\n }",
"int insert(MemberAdvisoryComment record);",
"public int addCommentForMeeting(Meeting meeting, Comment comment)\n throws Exception\n {\n CommentManager commentManager = new CommentManager();\n return commentManager.addComment(meeting, comment);\n }",
"public void insert(Comment comment) {\n if (comment.getParentId() == null || comment.getParentId() == 0) {\n throw new CustomException(CustomErrorCode.TARGET_PARAM_NOT_FOUND);\n }\n if (comment.getType() == null || !CommentTypeEnum.isExist(comment.getType())) {\n throw new CustomException(CustomErrorCode.TYPE_PARAM_ERROR);\n }\n //comment question or comment comment\n if (comment.getType() == CommentTypeEnum.QUESTION.getType()) {\n //comment question\n Question question = questionMapper.selectByPrimaryKey(comment.getParentId());\n if (question == null) {\n throw new CustomException(CustomErrorCode.QUESTION_NOT_FOUNT);\n }\n commentMapper.insert(comment);\n question.setCommentCount(1);\n questionExtMapper.incCommentCount(question);\n //add notification\n CreateNotification(comment, question.getCreator(), question.getId(), NotificationTypeEnum.QUESTION);\n } else {\n //comment comment\n Comment dbComment = commentMapper.selectByPrimaryKey(comment.getParentId()); //dbComment=parentComment\n if (dbComment == null) {\n throw new CustomException(CustomErrorCode.COMMENT_NOT_FOUND);\n }\n commentMapper.insert(comment);\n Comment parentComment = new Comment();\n parentComment.setId(comment.getParentId());\n parentComment.setCommentCount(1L);\n commentExtMapper.incCommentCount(parentComment);\n //add notification\n CreateNotification(comment, comment.getCommentator(), dbComment.getParentId(), NotificationTypeEnum.COMMENT);\n }\n }",
"@Override\r\n\tpublic int insert(Comment comment) {\n\t\treturn dao.insert(comment);\r\n\t}",
"@Transactional(propagation = Propagation.REQUIRED, readOnly = false)\n\t@Override\n\tpublic void addPost(Post post) {\n\t\tpostDao.addPost(post);\n\t}",
"@PostMapping(value= \"/comments/\")\n\tpublic String createComments(@RequestBody List<Comment> comment) {\n\t\tlogger.debug(\"Saving comments.\");\n\t\tservice.createComments(comment);\n\t\treturn \"Comment records created.\";\n\t}",
"public ContactedUsComments(Integer id) {\r\n this.id = id;\r\n }",
"private void addNewCommentToProduct(final Context context, final Comment comment, Retrofit retrofit){\n try {\n if(iProduct != null && context != null && comment != null && retrofit != null){\n final View view = CommonPresenter.getViewInTermsOfContext(context);\n // Create interface objet\n CoursModeProjetApi modeProjetApi = retrofit.create(CoursModeProjetApi.class);\n // Retrieve prototype method from api\n Call<Comment> call = modeProjetApi.addComment(comment.getProductId(), comment.getEmail(), comment.getContent());\n call.enqueue(new Callback<Comment>() {\n @Override\n public void onResponse(Call<Comment> call, Response<Comment> response) {\n if(!response.isSuccessful()){\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_traitement_error));\n return;\n }\n Comment mComment = response.body();\n Log.i(\"TAG_APP\", \"CODE = \"+mComment.getSuccess()+\", MESSAGE = \"+mComment.getMessage());\n }\n\n @Override\n public void onFailure(Call<Comment> call, Throwable t) {\n CommonPresenter.showSnackBarMessage(view, t.getMessage());\n }\n });\n }\n }\n catch (Exception ex){\n Log.e(\"TAG_ERROR\", \"ProductPresenter-->addNewCommentToProduct() : \"+ex.getMessage());\n }\n }",
"public void addCommentField(String comment) {\n addCommentField(comment, false);\n }",
"@RequestMapping(value=\"/addComment\", method=RequestMethod.POST)\r\n\tpublic ModelAndView addComment(HttpServletRequest request,\r\n\t\t\t@ModelAttribute(value=\"newComment\") Comment newComment) {\r\n\t\tModelAndView result = new ModelAndView(\"redirect:/getAllComments\"); \r\n\t\t\r\n\t\tLOGGER.info(\"/addComment: \" + newComment);\r\n\t\tthis.commentDAO.addComment(newComment);\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"@PostMapping(\"/main/{id}/postComment\")\n\tpublic String postComment(@PathVariable(\"id\")Long uid, HttpSession session, @Valid@ModelAttribute(\"comment\")Comment comment, Model viewModel, RedirectAttributes redirectAttr) {\n\t\tif(session.getAttribute(\"userId\") == null) {\n\t\t\tredirectAttr.addFlashAttribute(\"message\", \"You need to log in first!\");\n\t\t\treturn \"redirect:/auth\";\n\t\t}\n\t\tUser user = this.uServ.findUserById(uid);\n\t\tviewModel.addAttribute(\"user\", user);\n\t\tLong userId = (Long)session.getAttribute(\"userId\");\n\t\tthis.mServ.createComm(comment);\n\t\treturn \"redirect/main/\"+userId;\n\t\t\n\t}",
"@Override\n\t@Transactional\n\tpublic void savePostnew(CommentEntity comment) {\n\n\t}",
"void addNewEntry(BlogEntry entry) throws DAOException;",
"public CommentForm replyToCommentByID(int id)\n {\n getDriver().findElement(By.xpath(\"//div[@id='xwikicomment_\" + id + \"']//a[@class='commentreply']\")).click();\n return getAddCommentForm();\n }",
"Builder addComment(String value);",
"TrackerComments loadTrackerComments(final Integer id);",
"void deleteComment(long mediaId, long commentId);",
"void saveComment(Comment.SavableComment comment) throws SQLException;",
"@Override\r\n\tpublic void updateComment(int commentId, Comment comment) {\n\t\tcommentDao.updateComment(commentId,comment);\r\n\t}"
] | [
"0.67315197",
"0.664836",
"0.6576891",
"0.6429281",
"0.6341862",
"0.62980336",
"0.60873944",
"0.5988458",
"0.5979309",
"0.59173214",
"0.5866953",
"0.5865269",
"0.5829478",
"0.58196515",
"0.5709388",
"0.5705155",
"0.57025146",
"0.5683749",
"0.5622591",
"0.56126297",
"0.56102294",
"0.56066585",
"0.55759835",
"0.5530457",
"0.54863286",
"0.54575455",
"0.54231346",
"0.541924",
"0.5417585",
"0.5408257",
"0.5363476",
"0.5359291",
"0.53496164",
"0.5347187",
"0.53275084",
"0.5323434",
"0.5301493",
"0.52994514",
"0.52961004",
"0.5292397",
"0.52804166",
"0.5276386",
"0.52539265",
"0.52399707",
"0.52281725",
"0.5213379",
"0.5205469",
"0.52041763",
"0.51978403",
"0.5195566",
"0.5189995",
"0.51648957",
"0.515412",
"0.5135248",
"0.5122716",
"0.5121556",
"0.5117078",
"0.5108528",
"0.51085174",
"0.5100424",
"0.5091602",
"0.50904053",
"0.5076977",
"0.5059269",
"0.50443596",
"0.50413585",
"0.5035209",
"0.502517",
"0.50118876",
"0.5005812",
"0.50055146",
"0.50053746",
"0.50041056",
"0.49991545",
"0.4995919",
"0.4991953",
"0.49829632",
"0.49816617",
"0.4974494",
"0.49628273",
"0.49594736",
"0.49504197",
"0.49471936",
"0.4937588",
"0.4930235",
"0.4924413",
"0.49170083",
"0.49160403",
"0.491136",
"0.48955473",
"0.48890072",
"0.48865664",
"0.48828113",
"0.48822245",
"0.48817027",
"0.48776934",
"0.48771387",
"0.48727626",
"0.48714757",
"0.48646492"
] | 0.58899385 | 10 |
wait for ten seconds; | public void run() {
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}
mainThread.interrupt();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void wait(int seconds) {\n try {\n Thread.sleep(seconds * 1000);\n }\n catch(InterruptedException ie) {\n System.out.println(\"ERROR WAITING: Failed to generate a Thread to wait.\");\n ie.printStackTrace();\n }\n }",
"private static void wait(int seconds) {\n try {\n Thread.sleep(seconds * 1000);\n }\n catch(InterruptedException ie) {\n System.out.println(\"ERROR WAITING: Failed to generate a Thread to wait.\");\n ie.printStackTrace();\n }\n }",
"public void waitForSeconds(int i){\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000*i);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void delay(long waitAmount){\r\n long time = System.currentTimeMillis();\r\n while ((time+waitAmount)>=System.currentTimeMillis()){ \r\n //nothing\r\n }\r\n }",
"public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"private void Sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void sleep();",
"void sleep();",
"public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }",
"private static void waiting(int time) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"public void wait(int time) {\r\n\t\t\tsuper.sleep(time);\r\n\t\t}",
"public static void waitForTime(int seconds) {\n\t\t//con static se posibilita no tener que crear un objeto de la clase\n\t\t//para emplear el metodo. Solo se usa el metodo llamando a la clase\n\t\ttry {\n\t\t\tThread.sleep(seconds*1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void wait(int miliseconds){\n\t\ttry {\n\t\t\tThread.sleep(miliseconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public static void waitTime(long s) {\n long l = System.currentTimeMillis() + s;\n while (System.currentTimeMillis() < l) {\n\n }\n }",
"public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}",
"public static void sleep(double seconds) {\n for (int i = 0; i < seconds * 10; i++) {\n try {\n while (Display.getCurrent().readAndDispatch())\n ;\n Thread.sleep(100);\n } catch (Exception e) {\n } catch (Error e) {\n }\n }\n }",
"public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"void sleep()\r\n\t{\r\n\t\t\r\n\t}",
"private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void sleeps() {\n\t\t\n\t}",
"public void warte( int ms )\n {\n try\n {\n Thread.sleep( ms );\n }\n catch ( InterruptedException e )\n {\n e.printStackTrace();\n }\n }",
"@When(\"^user wait for (.*) seconds$\")\n\tpublic void user_wait_for_seconds(int arg1) throws Throwable {\n\t\tThread.sleep(arg1*1000);\n\t \n\t}",
"@Override\r\n\tpublic synchronized void run() {\n\t\tlong secElapsed;\r\n\t\t//long startTime = System.currentTimeMillis();\r\n\t\tlong start= System.currentTimeMillis();;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tTimeUnit.SECONDS.sleep(1);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tlong timeElapsed = System.currentTimeMillis() - start;\r\n\t\t\tsecElapsed = timeElapsed / 1000;\r\n\t\t\tif(secElapsed==10) {\r\n\t\t\t\tstart=System.currentTimeMillis();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Time -> 00:\"+secElapsed);\r\n\t\t}while(secElapsed<=10);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void sleep() {\n\t\t\n\t}",
"public void waitForMilliSeconds(long number) {\n\n\t\ttry {\n\t\t\tThread.sleep(number);\n\t\t} catch (InterruptedException ie) {\n\n\t\t}\n\n\t}",
"public final void sleepBetweenActions()\n {\n long numOfMillis = Long\n .parseLong(getProperty(\"wait.between.user.actions.in.millis\"));\n if (numOfMillis > 10000)\n {\n numOfMillis = 10000;\n } else if (numOfMillis < 0)\n {\n numOfMillis = 0;\n }\n try\n {\n Thread.sleep(numOfMillis);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }",
"public void setTimeout(int timeout);",
"private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }",
"private void sleep(int seconds) {\n\n\t\ttry {\n\t\t\tTimeUnit.SECONDS.sleep(seconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void Wait(double time) {\n\n\t\t\t\tdouble Time = time * 10000000;\n\t\t\t\tdouble t = 0;\n\t\t\t\twhile (t < Time)\n\t\t\t\t\tt++;\n\t\t\t}",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"@Override\n\tpublic void waitTimedOut() {\n\t\t\n\t\tif( busylinetimer == null )\n\t\t\treturn;\n\t\t\n\t\tbusylinetimer.stop();\n\t\tbusylinetimer = null;\n\t\t\n\t\tlog.info(\"linea ocupada por mas de 120 segundos, iniciando proceso para colgar llamada.......\");\n\t\t\n\t\tnew CellPhoneHandUpCall(modem,false);\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}",
"private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }",
"private void delay( int n )\n {\n try {\n Thread.sleep(n);\n } catch( InterruptedException e ) {\n System.exit(0);\n }\n }",
"private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }",
"@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }",
"public static void wait(int ms) {\n try {\n Thread.sleep(ms);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }",
"public static void waitFor(int timeSecond) {\n try {\n Thread.sleep(timeSecond * 1000L);\n } catch (Exception e) {\n log.error(e.toString());\n }\n }",
"private static void sleep(int n) {\n try {\n TimeUnit.MILLISECONDS.sleep(n);\n } catch (InterruptedException e) {\n System.out.print(\"\\ndelay failed\");\n }\n }",
"private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}",
"void sleep ();",
"private void sleep(int number) {\n\t\ttry {\n\t\t\tThread.sleep(number);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}}",
"int timeout();",
"public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}",
"private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }",
"int getWaitTime();",
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"public void setDelayedTimeout(int seconds);",
"public void wait(int milliseconds)\r\n {\r\n try\r\n {\r\n Thread.sleep(milliseconds);\r\n }\r\n catch (Exception e)\r\n {\r\n // ignoring exception at the moment\r\n }\r\n }",
"private static void nap(int secs) {\n try {\n Thread.sleep(secs * 1000);\n } catch (InterruptedException e) {\n }\n }",
"public static void startTimeout() {\n t = new Timer();\n tt = new TimerTask() {\n\n public void run() {\n while (true) {\n if (diff[0] > 0 || diff[1] > 0) {\n try {\n runFocusPoint();\n Thread.sleep(50);\n } catch (InterruptedException ex) {\n //ex.printStackTrace();\n }\n } else {\n break;\n }\n }\n cancelTask();\n diff[0] = 0;\n diff[1] = 0;\n }\n };\n t.scheduleAtFixedRate(tt, 0, 50);\n }",
"private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void waitToRetry()\n {\n final int sleepTime = 2000000;\n\n if (keepTrying)\n {\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (Exception error)\n {\n log.error(\"Ignored exception from sleep - probably ok\", error);\n }\n }\n }",
"void timedOut();",
"@Override\n\t\tprotected String[] doInBackground(Void... params) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\ttimes++;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"public static void sleep(int seconds){\n seconds*=1000;\n try {\n Thread.sleep(seconds);\n }catch (InterruptedException e){\n e.getStackTrace();\n }\n }",
"public static void sleepForTwoSec() throws InterruptedException {\n Thread.sleep(2000);\n }",
"public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\tfor ( int i = 0; i < 10; i++ ) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(900);\r\n\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void pause() {\n sleep(300);\n }",
"private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }",
"@Given(\"^user wait for (.*) seconds1$\")\n\tpublic void user_wait_for_seconds1(int arg1) throws Throwable {\n\t\tThread.sleep(arg1*1000);\n\t\t\n\t\t\n\t \n\t}",
"private void waitMs(final long toWait) {\n synchronized (this) {\n try {\n if (toWait > 0) {\n wait(toWait);\n }\n } catch (InterruptedException ex) {\n Log.e(TAG, ex.getMessage(), ex);\n }\n }\n }",
"public static void sleepFor(int sec) throws InterruptedException {\n Thread.sleep(sec * 1000);\n }",
"private void waitFPS() {\n try {\n Thread.sleep((int) (1000.0f / 60.0f));\n } catch (InterruptedException e) {\n logger.error(\"Unable to wait some milli's !\", e);\n }\n }",
"private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"public void setWait(int time)\n\t{\n\t\tthis.dx = 1;\n\t\tthis.dy = 1;\n\t\tthis.time = time;\n\t\t//run();\n\t}",
"private void waitFor(ExpectedCondition condition, Integer timeOutInSeconds) {\n timeOutInSeconds = timeOutInSeconds != null ? timeOutInSeconds : 60;\n WebDriverWait wait = new WebDriverWait(driver, timeOutInSeconds);\n wait.until(condition);\n }",
"private void waitOnFabric(int additional) {\n try {\n out(\"Wait %d milliseconds for peers to sync with each other\", gossipWaitTime + additional);\n TimeUnit.MILLISECONDS.sleep(gossipWaitTime + additional);\n } catch (InterruptedException e) {\n fail(\"should not have jumped out of sleep mode. No other threads should be running\");\n }\n }",
"public void implicitTime() {\n\n try {\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public void setNortpTimeout(int seconds);",
"@Override\r\n\tpublic void run() {\n\t\tfor (int i=0; i<10; i++){\r\n\t\t\tSystem.out.println(\"Другой поток....\" + mName + \"i=\" +i);\r\n\t\t\t\tif(isInterrupted()){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t} catch (InterruptedException ex) {\r\n\t\t\t\tSystem.out.println(\"Ошибка во сне\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\r\n\t\t\t}\r\n\t}",
"public static void sleep(int secs){\n\t\ttry{\n\t\t\tThread.sleep(secs*1000);\n\t\t} catch (InterruptedException e){\n\t\t\t//FIXME See what exception is being thrown and what to do about it\n\t\t}\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\t\n\t\tSystem.out.println(\"AAA\");\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\tSystem.out.println(\"AAA\");\n\t\t\n\t\t//wait for 10 seconds and then find an element.\n\t\t\n\t\t//if the element is abailbe in 1 seconds still the thread.sleep() will be waiting for 10 seconds.\n\t\t\n\t\t//if there are 100 of elements, it will degrade the performance.\n\t\t\n\t\t//the sleep gets interupted, it will handle and it wait for 10 seconds.\n\t\t\t\t\n\t}",
"private void delay (int milliSec)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep (milliSec);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(3000);\r\n\t\t\t\tSystem.out.println(\"자동저장\");\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void waitTime(double time){\n double startTime = System.currentTimeMillis() + time *1000 ;\n while (opMode.opModeIsActive()){\n if (System.currentTimeMillis() > startTime) break;\n }\n }",
"public void startWaitTime(){\r\n\t\twaitTime.start();\r\n\t}",
"public synchronized void waitingToThraeds()\n\t{\n\t\twhile (countOfThreads<numberOfThreads)\n\t\t\n\t\ttry \n\t\t{\n\t\t\twait();\n\t\t}\n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\tSystem.out.println(\"Interrupted while waiting\");\n\t\t}\n\t \t\n\t\t\n \t\n\t}",
"public void WaitTime(long miliseconds)\r\n {\r\n long startTime = System.currentTimeMillis();\r\n \r\n long estimatedTime = System.currentTimeMillis() - startTime;\r\n try {\r\n //driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n Thread.sleep(miliseconds);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MainDemoClass.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tpublic void run() {\n\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(1000);\r\n\t\t\t\tSystem.out.println(\"TTT\"+i);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void startWait() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (server.getNumberOfPlayers() > 0 && !server.gameStartFlag) {\n\t\t\t\t\tserver.runGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}, 120000);\n\t\t// 2min(2*60*1000)\n\t\tsendMessage(\"The game will start 2 minute late\");\n\t}",
"public static void sleepFor(float time) {\n try {\r\n Thread.sleep((int)(time*1000));\r\n } catch (InterruptedException e){\r\n }\r\n }",
"private void startTimeOut(int seconds){\n\n timeoutTimer = new CountDownTimer(seconds* 1000 + 1000, 1000) {\n\n public void onTick(long millisUntilFinished) {}\n\n public void onFinish() {\n progressDialog.cancel();\n showErrorDialog(getString(R.string.msgNoConnection));\n }\n }.start();\n }",
"int waitFor(String variable, int count);",
"void await(long timeout, TimeUnit unit) throws InterruptedException;",
"public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }",
"@Override\n public void doTask() throws InterruptedException {\n Thread.sleep(5000);\n }",
"boolean awaitMessages(long timeout) throws InterruptedException;",
"public void pause(double seconds) \n { \n try \n { \n Thread.sleep(Math.round(1000.0 * seconds)); \n } \n catch (InterruptedException e) \n { \n e.printStackTrace(); \n }\n }",
"public static void waitForResources(long n) throws InterruptedException {\n Thread.sleep(n);\n }",
"public static void implicateWait(AndroidDriver driver) {\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\t\n\t}",
"public void sleepy(long ms)\n\t{\n\t\ttry {\n\t\t\tsleep(ms);\n\t\t} catch(InterruptedException e) {}\n\t}"
] | [
"0.73187274",
"0.73187274",
"0.699956",
"0.6948485",
"0.68884104",
"0.6872331",
"0.6794714",
"0.6751294",
"0.6751294",
"0.6739194",
"0.6726448",
"0.6713247",
"0.6705386",
"0.6685082",
"0.6677448",
"0.6651129",
"0.6645743",
"0.6637012",
"0.66286874",
"0.6616476",
"0.6597172",
"0.65899587",
"0.65835536",
"0.65725666",
"0.65638417",
"0.65145606",
"0.64948684",
"0.64805007",
"0.64536124",
"0.6451633",
"0.6451067",
"0.64501435",
"0.6439903",
"0.64341044",
"0.64247143",
"0.6413888",
"0.6413888",
"0.64047873",
"0.6395173",
"0.6338952",
"0.6334361",
"0.6325871",
"0.6317818",
"0.6314104",
"0.63016814",
"0.63014287",
"0.62926894",
"0.62921184",
"0.6280453",
"0.6269876",
"0.6261982",
"0.6249042",
"0.62406003",
"0.6238341",
"0.62382364",
"0.62307197",
"0.6222918",
"0.6213199",
"0.61976504",
"0.61925596",
"0.6190769",
"0.6186117",
"0.61853117",
"0.61723495",
"0.61675185",
"0.61520785",
"0.61444676",
"0.61290026",
"0.6124481",
"0.6093618",
"0.6076596",
"0.60731846",
"0.60498667",
"0.6046347",
"0.60460925",
"0.6045682",
"0.6044711",
"0.6039184",
"0.6037002",
"0.60164106",
"0.5996715",
"0.59886664",
"0.5983432",
"0.59825677",
"0.597697",
"0.59750897",
"0.5961686",
"0.59537625",
"0.5953506",
"0.59502006",
"0.5936416",
"0.5932561",
"0.5931607",
"0.59272623",
"0.59206843",
"0.5912139",
"0.5909318",
"0.590758",
"0.59058136",
"0.5904407",
"0.5904362"
] | 0.0 | -1 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static SrglFragment newInstance(String param1, String param2) {
SrglFragment fragment = new SrglFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n }",
"@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }",
"public CuartoFragment() {\n }",
"public StintFragment() {\n }",
"public ExploreFragment() {\n\n }",
"public RickAndMortyFragment() {\n }",
"public FragmentMy() {\n }",
"public LogFragment() {\n }",
"public FeedFragment() {\n }",
"public HistoryFragment() {\n }",
"public HistoryFragment() {\n }",
"public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }",
"public WkfFragment() {\n }",
"public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment(){}",
"public WelcomeFragment() {}",
"public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }",
"public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public progFragment() {\n }",
"public HeaderFragment() {}",
"public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }",
"public EmployeeFragment() {\n }",
"public Fragment_Tutorial() {}",
"public NewShopFragment() {\n }",
"public FavoriteFragment() {\n }",
"public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}",
"public NoteActivityFragment() {\n }",
"public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }",
"public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public EventHistoryFragment() {\n\t}",
"public HomeFragment() {}",
"public PeopleFragment() {\n // Required empty public constructor\n }",
"public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public VantaggiFragment() {\n // Required empty public constructor\n }",
"public AddressDetailFragment() {\n }",
"public ArticleDetailFragment() { }",
"public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }",
"public RegisterFragment() {\n }",
"public EmailFragment() {\n }",
"public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }",
"public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }",
"public ForecastFragment() {\n }",
"public FExDetailFragment() {\n \t}",
"public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }",
"public TripNoteFragment() {\n }",
"public ItemFragment() {\n }",
"public NoteListFragment() {\n }",
"public CreatePatientFragment() {\n\n }",
"public DisplayFragment() {\n\n }",
"public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}",
"public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment() {\n\n }",
"public BackEndFragment() {\n }",
"public CustomerFragment() {\n }",
"public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public static Fragment newInstance() {\n return new SettingsFragment();\n }",
"public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }",
"public PeersFragment() {\n }",
"public TagsFragment() {\n }",
"public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }",
"public HomeSectionFragment() {\n\t}",
"public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }",
"public PersonDetailFragment() {\r\n }",
"public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"public VehicleFragment() {\r\n }",
"public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}",
"public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}",
"public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }",
"public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }",
"public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public PlaylistFragment() {\n }",
"public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }",
"public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }"
] | [
"0.7259329",
"0.72331375",
"0.71140355",
"0.69909847",
"0.69902235",
"0.6834592",
"0.683074",
"0.68134046",
"0.6801526",
"0.6801054",
"0.67653185",
"0.6739714",
"0.6739714",
"0.6727412",
"0.6717231",
"0.6705855",
"0.6692112",
"0.6691661",
"0.66869426",
"0.66606814",
"0.6646188",
"0.66410166",
"0.6640725",
"0.6634425",
"0.66188246",
"0.66140765",
"0.6608169",
"0.66045964",
"0.65977716",
"0.6592119",
"0.659137",
"0.65910816",
"0.65830594",
"0.65786606",
"0.6562876",
"0.65607685",
"0.6557126",
"0.65513307",
"0.65510213",
"0.65431285",
"0.6540448",
"0.65336084",
"0.6532555",
"0.6528302",
"0.6524409",
"0.652328",
"0.6523149",
"0.6516528",
"0.65049976",
"0.6497274",
"0.6497235",
"0.64949715",
"0.64944136",
"0.6484968",
"0.6484214",
"0.64805835",
"0.64784926",
"0.64755154",
"0.64710265",
"0.6466466",
"0.6457089",
"0.645606",
"0.6454554",
"0.6452161",
"0.64520335",
"0.6450325",
"0.64488834",
"0.6446765",
"0.64430225",
"0.64430225",
"0.64430225",
"0.64420956",
"0.6441306",
"0.64411277",
"0.6438451",
"0.64345145",
"0.64289486",
"0.64287597",
"0.6423755",
"0.64193285",
"0.6418699",
"0.6414679",
"0.6412867",
"0.6402168",
"0.6400724",
"0.6395624",
"0.6395109",
"0.6391252",
"0.63891554",
"0.63835025",
"0.63788056",
"0.63751805",
"0.63751805",
"0.63751805",
"0.6374796",
"0.63653135",
"0.6364529",
"0.6360922",
"0.63538784",
"0.6351111",
"0.635067"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_srgl, container, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.64935696 | 70 |
TODO: Rename method, update argument and hook method into UI event | public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}",
"public abstract void update(UIReader event);",
"@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Event e) {\n\t}",
"public abstract void onInvoked(CommandSender sender, String[] args);",
"@Override\r\n public void updateUI() {\r\n }",
"@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@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}",
"@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}",
"@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}",
"@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}",
"public void updateUI(){}",
"private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\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}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"Event () {\n // Nothing to do here.\n }",
"void onArgumentsChanged();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\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}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"void eventChanged();",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override public void handle(ActionEvent e)\n\t {\n\t }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }",
"public abstract void onCommand(MessageEvent context) throws Exception;",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\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});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void handle(Event event) {\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n public void actionPerformed(AnActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"public void ImageView(ActionEvent event) {\n\t}",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"public void runInUi(ElexisEvent ev){}",
"@Override\n public void delta() {\n \n }",
"@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent ev) {\n }",
"@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n public void update(Observable o, Object arg)\n {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }"
] | [
"0.6619185",
"0.65246344",
"0.6473144",
"0.6473144",
"0.64351684",
"0.6325494",
"0.62368196",
"0.6189416",
"0.6158721",
"0.61455715",
"0.6123594",
"0.6107332",
"0.6101038",
"0.6092755",
"0.6049496",
"0.6049496",
"0.60442764",
"0.604003",
"0.604003",
"0.6007846",
"0.59999037",
"0.59848183",
"0.59776366",
"0.59587413",
"0.5940049",
"0.5925668",
"0.5925668",
"0.59208333",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915554",
"0.5909643",
"0.5895144",
"0.58947057",
"0.589277",
"0.58885247",
"0.58885247",
"0.58885247",
"0.58671176",
"0.58671176",
"0.58671176",
"0.58636886",
"0.5862447",
"0.5862447",
"0.58613557",
"0.5855828",
"0.5846504",
"0.5846504",
"0.5846504",
"0.5846504",
"0.5837475",
"0.58366984",
"0.5820788",
"0.58068436",
"0.58022934",
"0.5772422",
"0.57714665",
"0.5770862",
"0.5765655",
"0.5763872",
"0.57544947",
"0.57542855",
"0.57542855",
"0.57450074",
"0.57441026",
"0.57441026",
"0.57441026",
"0.5741053",
"0.574037",
"0.5739314",
"0.57367086",
"0.57367086",
"0.57367086",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57235956",
"0.57232994",
"0.5721006",
"0.571978",
"0.571978",
"0.57187414",
"0.57177836",
"0.57133436",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.5707859",
"0.5707546",
"0.5704973",
"0.57016516"
] | 0.0 | -1 |
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information. | public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
public void onFragmentInteraction(Uri uri);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}",
"public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }",
"public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }",
"public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}",
"public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}",
"public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }",
"void onFragmentInteraction(Object ref);",
"public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }",
"public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }",
"public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }",
"public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }",
"public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}",
"public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}",
"public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }",
"public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }",
"public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}",
"public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface PersonalFragmentView extends BaseMvpView {\n\n}",
"public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"void onFragmentInteraction(View v);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }",
"void onFragmentInteractionMain();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }",
"public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}",
"public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }",
"void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }",
"public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }",
"public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}",
"public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }",
"public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}",
"public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}",
"public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }",
"public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}",
"public interface ChangeFragmentListener {\n void changeFragment();\n}",
"public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}",
"public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }",
"public interface AddFarmFragmentView extends BaseView {\n\n\n}",
"void onFragmentInteraction(int position);",
"void OpenFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}",
"public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}",
"public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}",
"public interface PesonageFragmentView extends MvpView {\n\n}",
"public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }",
"public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }",
"interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }",
"public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}"
] | [
"0.7325128",
"0.7207981",
"0.71355015",
"0.7124422",
"0.71224433",
"0.70151067",
"0.69761205",
"0.69761205",
"0.69761205",
"0.69745713",
"0.69676787",
"0.6965594",
"0.6960806",
"0.6953875",
"0.69436187",
"0.69350636",
"0.6929767",
"0.6928443",
"0.6922766",
"0.69102424",
"0.6903464",
"0.6896963",
"0.68944144",
"0.688337",
"0.68810993",
"0.6875444",
"0.686415",
"0.68609226",
"0.686035",
"0.6859654",
"0.6857187",
"0.68436176",
"0.68394464",
"0.68302417",
"0.68182033",
"0.6816718",
"0.6810607",
"0.6786989",
"0.6769245",
"0.6769245",
"0.6769245",
"0.6769245",
"0.6769245",
"0.6769245",
"0.6769245",
"0.6769245",
"0.6769245",
"0.67687374",
"0.6766204",
"0.6761318",
"0.67553085",
"0.675368",
"0.66995656",
"0.6682446",
"0.66736096",
"0.66702217",
"0.66698235",
"0.66615194",
"0.6661481",
"0.66552097",
"0.66520745",
"0.66456753",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66432947",
"0.66378844",
"0.66360426",
"0.66321105",
"0.6625627",
"0.6625346",
"0.66193455",
"0.6610778",
"0.6610686",
"0.6609687",
"0.6604949",
"0.659783",
"0.6597212",
"0.6586523",
"0.6572245",
"0.65700233",
"0.65605104",
"0.65603036",
"0.655517",
"0.6549448",
"0.6548586",
"0.6542978",
"0.6539091",
"0.6534077",
"0.6534077",
"0.6534077",
"0.6519376",
"0.6517272",
"0.65172046"
] | 0.0 | -1 |
TODO: Update argument type and name | public void onFragmentInteraction(Uri uri); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"java.lang.String getArg();",
"@Override\n public int getArgLength() {\n return 4;\n }",
"Argument createArgument();",
"@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}",
"@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }",
"@Override\n\tpublic void traverseArg(UniArg node) {\n\t}",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"Object[] getArguments();",
"Object[] getArguments();",
"String getArguments();",
"@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}",
"@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }",
"ArgList createArgList();",
"public Object[] getArguments() { return args;}",
"@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }",
"@Override\n protected String getName() {return _parms.name;}",
"private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }",
"uicargs createuicargs();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}",
"@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}",
"public getType_args(getType_args other) {\n }",
"Object[] args();",
"protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }",
"@Test\n void getArgString() {\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"int getArgIndex();",
"@Override\n\tpublic void addArg(FormulaElement arg){\n\t}",
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"@Override\n public Object[] getArguments() {\n return null;\n }",
"public login_1_argument() {\n }",
"Optional<String[]> arguments();",
"private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }",
"@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}",
"protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}",
"void setArguments(String arguments);",
"@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}",
"OpFunctionArgAgregate createOpFunctionArgAgregate();",
"protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);",
"void visitArgument(Argument argument);",
"public Thaw_args(Thaw_args other) {\r\n }",
"@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}",
"private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }",
"public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}",
"@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }",
"public abstract ValidationResults validArguments(String[] arguments);",
"public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }",
"public String getArgumentString() {\n\t\treturn null;\n\t}",
"@Override\n public String kind() {\n return \"@param\";\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }",
"void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }",
"@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}",
"void onArgumentsChanged();",
"com.google.protobuf.ByteString\n\t\tgetArgBytes();",
"@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }",
"MyArg(int value){\n this.value = value;\n }",
"public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }",
"public Clear_args(Clear_args other) {\r\n }",
"private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }",
"public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}",
"@Override\n public int getArgent() {\n return _argent;\n }",
"private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }",
"private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}",
"PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }",
"public Type getArgumentDirection() {\n return direction;\n }",
"public String argTypes() {\n return \"I\";//NOI18N\n }",
"public static void main(String arg[]) {\n\n }",
"godot.wire.Wire.Value getArgs(int index);",
"@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }",
"public void setArgs(java.lang.String value) {\n this.args = value;\n }",
"private Argument(Builder builder) {\n super(builder);\n }",
"@Override\n public void execute(String[] args) {\n\n }",
"@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}",
"UUID createArgument(ArgumentCreateRequest request);",
"@Override\n public void initialise(String[] arguments) {\n\n }",
"public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }",
"protected abstract void parseArgs() throws IOException;"
] | [
"0.7164074",
"0.6946075",
"0.6714363",
"0.65115863",
"0.63969076",
"0.6375468",
"0.63481104",
"0.63162106",
"0.6260299",
"0.6208487",
"0.6208487",
"0.62070644",
"0.6197276",
"0.61806154",
"0.6177103",
"0.61530507",
"0.61472267",
"0.61243707",
"0.60771817",
"0.6054482",
"0.59906125",
"0.59906125",
"0.5984017",
"0.59791875",
"0.5977681",
"0.59532714",
"0.5946838",
"0.59457266",
"0.59452903",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.5909717",
"0.5889277",
"0.588111",
"0.5871162",
"0.5866624",
"0.58613646",
"0.58519953",
"0.58381283",
"0.58083445",
"0.58059824",
"0.5795826",
"0.57816726",
"0.57670826",
"0.57556796",
"0.57471323",
"0.57418406",
"0.5729463",
"0.57291526",
"0.5716928",
"0.5713024",
"0.56974274",
"0.56782854",
"0.56723106",
"0.5664594",
"0.5664104",
"0.5660337",
"0.5652865",
"0.5647883",
"0.5642134",
"0.5635645",
"0.5634968",
"0.562251",
"0.56210977",
"0.56167537",
"0.56138444",
"0.56044126",
"0.56044126",
"0.5602371",
"0.56012225",
"0.55986875",
"0.55893147",
"0.5588273",
"0.5583255",
"0.5582767",
"0.55681497",
"0.55626017",
"0.55577534",
"0.55524325",
"0.5549442",
"0.55378276",
"0.5536797",
"0.5527675",
"0.5511817",
"0.55099154",
"0.550257"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void mouseClicked(MouseEvent e) {
if(e.getClickCount()==2) {
if(table.getSelectedColumn()!=-1){
String s=(String) model.getValueAt(table.getSelectedRow(), 0);
String c=(String) model.getValueAt(table.getSelectedRow(), 1);
if(c.equals("到达单")) {
ArrivalListBL al=new ArrivalListBL();
try {
new InvoiceUI_ArrivalListEdit(al.inquiry(s),false);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
else if(c.equals("营业厅收入单")) {
IncomeListBL il=new IncomeListBL();
try {
new InvoiceUI_IncomeListEdit(il.inquiry(s),false);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
else if(c.equals("营业厅装车单")) {
LoadingListBL ll=new LoadingListBL();
try {
new InvoiceUI_LoadingListEdit(ll.inquiry(s),false);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
else if(c.equals("中转中心装车单")) {
LoadingListZZBL zc=new LoadingListZZBL();
try {
new InvoiceUI_LoadingListZZEdit(zc.inquiry(s),false);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
else if(c.equals("中转中心接收单")) {
RecivalListBL rl=new RecivalListBL();
try {
new InvoiceUI_RecivalListEdit(rl.inquiry(s),false);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
else if(c.equals("快递员派件单")) {
SendingListBL sl=new SendingListBL();
try {
new InvoiceUI_SendingListEdit(sl.inquiry(s),false);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
else{
TransferListBL tl=new TransferListBL();
try {
new InvoiceUI_TransferListEdit(tl.inquiry(s),false);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Kill all of notebook kernels | @RequestMapping(path = "/connectors/kernels", method = RequestMethod.DELETE)
public @ResponseBody
ResponseEntity<?> killNotebookKernels() {
Page<NotebookConnector> connectors = notebookConnectorRepository.findByType("jupyter", new PageRequest(0, Integer.MAX_VALUE));
for(NotebookConnector connector : connectors) {
connector.setHttpRepository(httpRepository);
connector.killAllKernels();
}
LOGGER.info("Completed kill every alive notebook [jupyter] kernels.");
return ResponseEntity.noContent().build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean stopKernels () throws InterruptedException {\n // Retrieve all the kernels started on the workspace\n Set keys = kernels.keySet();\n Iterator iterator = keys.iterator();\n\n // Create an executor service to launch the stop of every kernels in the same time and wait for every one\n // of them to be stopped.\n ExecutorService es = Executors.newCachedThreadPool();\n\n while(iterator.hasNext()){\n // Create the stop task for each kernel\n Kernel k = kernels.get(iterator.next());\n Runnable task = () -> {\n k.stop();\n };\n\n // Execute the stop task via the executor service\n es.execute(task);\n }\n\n es.shutdown();\n return es.awaitTermination(3, TimeUnit.MINUTES);\n }",
"public void stopKernel (String nodeId) {\n Runnable task = () -> {\n Kernel kernel = kernels.get(nodeId);\n if(kernel != null) kernel.stop();\n };\n\n Thread thread = new Thread(task);\n thread.start();\n }",
"private synchronized static void killNBDModule() {\n String command = \"sudo killall qemu-nbd\";\n LOG.debug(\"ics.core.io.FileUtils.killNBDModule():\");\n ProcessResult result = ShellUtil.executeShellCommand(command);\n if (result.getExitCode() != 0) {\n LOG.error(\"ics.core.io.FileUtils.killNBDModule(): Error - exit code: \"\n + result.getExitCode());\n //LOG.error(\"ics.core.io.FileUtils.killNBDModule(): Standard output:\\n\"\n // + result.getStandardOut());\n //LOG.error(\"ics.core.io.FileUtils.killNBDModule(): Standard error:\\n\"\n // + result.getStandardError());\n }\n }",
"public static void killAllEvaluations() {\n \tif (currentJobGroup+1 == Integer.MAX_VALUE)\n \t\tcurrentJobGroup = 0;\n \telse\n \t\tcurrentJobGroup++;\n\t\t\n \tSparkFactory.stop();\t\t\n }",
"void shutdownMassiveGraph();",
"void killAllApps();",
"public void destroy() {\n this.octaveExec.destroy();\n }",
"public static void kill(){\r\n\t\tDisplay.destroy();//create Display\r\n\t\tMouse.destroy();//create Mouse\r\n\t\tKeyboard.destroy();//create Keyboard\r\n\t}",
"protected void stopCoreModule() {\n stopAllReporter();\n metricManager.stop();\n metricManager = new DoNothingMetricManager();\n compositeReporter = new CompositeReporter();\n }",
"protected void kill() {\n\t\tsynchronized (this) // Don't allow shutdown during startup.\n\t\t{\n\t\t\t// Only execute for the first caller.\n\t\t\tif (shutdownMutex.acquire()) {\n\t\t\t\t// Shutdown payer thread.\n\t\t\t\tpayerThread.interrupt();\n\n\t\t\t\tfor (int i = 0; i < sets.length; i++) {\n\t\t\t\t\tsets[i].kill();\n\t\t\t\t}\n\n\t\t\t\t// Shutdown the thread pools.\n\t\t\t\tproducerThreadPool.kill();\n\n\t\t\t\t// Let the GC figure the rest out.\n\t\t\t}\n\t\t}\n\t}",
"public void delContextNodes();",
"void stopAll();",
"public void kill();",
"public void kill();",
"private void nativeKill()\n {\n if (process == null)\n {\n return;\n }\n for (Field f : process.getClass().getDeclaredFields())\n {\n if (\"pid\".equals(f.getName()))\n {\n if (makeFieldAccessible(f))\n {\n try\n {\n int pid = f.getInt(process);\n Runtime.getRuntime().exec(\n new String[] {\"kill\", \"-9\", Integer.toString(pid)});\n }\n catch (Throwable e)\n {\n // Ignore, we tried our best\n }\n }\n break;\n }\n else if (\"handle\".equals(f.getName()))\n {\n if (makeFieldAccessible(f))\n {\n try\n {\n long handleId = f.getLong(process);\n\n Kernel32 kernel = Kernel32.INSTANCE;\n HANDLE handle = new HANDLE();\n handle.setPointer(Pointer.createConstant(handleId));\n int pid = kernel.GetProcessId(handle);\n Runtime.getRuntime().exec(\n new String[] {\"taskkill\", \"/PID\", Integer.toString(pid), \"/F\"});\n }\n catch (Throwable e)\n {\n // Ignore, we tried our best\n }\n }\n break;\n }\n }\n }",
"void destroy() {\n \t\ttry {\r\n \t\t\tupKeep.stopRunning();\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \r\n \t\t// Kill all running processes.\r\n \t\tfor (MaximaProcess mp : pool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tpool.clear();\r\n \r\n \t\t// Kill all used processes.\r\n \t\tfor (MaximaProcess mp : usedPool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tusedPool.clear();\r\n \t}",
"public static void stopAllThreads() {\n SystemManager.getAllDistributors().forEach((d) -> {\n d.stopWork();\n });\n SystemManager.getAllUsers().forEach((u) -> {\n u.stopWork();\n });\n Time.stopWork();\n System.out.println(\"[Simulation is ending]\");\n stopWork = true;\n }",
"public void killAll() {\n distributors.forEach(Person::kill);\n distributors = new ArrayList<>();\n }",
"void stop() throws Exception {\n var components =\n List.of(metaStorageManager, raftManager, clusterService, cfgManager, vaultManager);\n\n for (IgniteComponent igniteComponent : components)\n igniteComponent.beforeNodeStop();\n\n for (IgniteComponent component : components)\n component.stop();\n }",
"public final void kill() {\n doKill();\n }",
"public void shutdown() {\n for (AbstractController child : getChildren()) {\n child.shutdown();\n }\n }",
"public void stopNode (Node node) {\n // We do it only if the node is running. Otherwise, it is not necessary.\n if (isNodeRunning(node.getId())) {\n Kernel k = kernels.get(node.getId());\n k.stopExecution();\n }\n }",
"@VisibleForTesting\n void killIoThreads() {\n ioThreadPool.shutdownNow();\n }",
"public void Kill();",
"public void stop_all(){\n\t\tfor(Event_Process p:processes){\r\n\t\t\tp.stop();\r\n\t\t}\r\n\t}",
"public void shutdown() {\n logger.info(\"Shutting down modules.\");\n for (Module module : modules) {\n module.stop();\n }\n logger.info(\"Shutting down reporters.\");\n for (Reporter reporter : reporters.values()) {\n reporter.stop();\n }\n }",
"@Override\n public void kill()\n {\n }",
"private void runStop() throws IOException {\n final Shell.Plain gripShell = new Shell.Plain(new Shell.Safe(details.createSSHShell()));\n gripShell.exec(deploymentCommands.getKillCommand(coreJar.getName()));\n }",
"@Override\n\tpublic void kill() {\n\n\t}",
"public void terminateDriver() {\n }",
"void stopNodeAgentServices();",
"public void stop() {\n executor.shutdownNow();\n\n Collection<NodeRegistrationContext> allRegistrations = nodeRegistrations.values();\n for (NodeRegistrationContext registration : allRegistrations) {\n sendUnregistrationEvent(registration.resolvedDeployment);\n }\n }",
"public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }",
"void kill()\n\t{\n\t\tfor(GameObject G : ObjectList)\n\t\t{\n\t\t\tG.kill();\n\t\t}\n\t}",
"private static void kill() {\n if (redirectErr != null) {\n redirectErr.close();\n redirectErr.interrupt();\n redirectErr = null;\n }\n\n if (redirectOut != null) {\n redirectOut.close();\n redirectOut.interrupt();\n redirectOut = null;\n }\n\n if (JVM != null) {\n JVM.destroy();\n JVM = null;\n }\n\n JVMrunning = false;\n\n println(\"JVM reset on \" + java.util.Calendar.getInstance().getTime().toString(), progErr);\n }",
"public static void killAll() {\n\t\t// get an iterator\n\t\tIterator<?> i = anisLookup.entrySet().iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry<?, ?> entry = (Map.Entry<?, ?>)i.next();\n\t\t\tAni existingAni = (Ani) entry.getValue(); \n\t\t\texistingAni.pause();\n\t\t\tpapplet().unregisterMethod(\"pre\", existingAni);\n\t\t\texistingAni = null;\n\t\t\ti.remove();\n\t\t}\t\n\t}",
"public void terminateAllCalls();",
"public void destroyForAll() {\n super.destroyForAll();\n }",
"void kill(long procid);",
"public native void destroyImages();",
"public void dispose() {\n _interpreterControl.killInterpreter(false);\n }",
"void unsetPoolNumber();",
"public void destroy(){\n\t\tIterator toolIterator = tools.iterator();\n\t\twhile(toolIterator.hasNext()){\n\t\t\tToolBridge tb = (ToolBridge) toolIterator.next();\n\t\t\ttb.terminate();\n\t\t}\n\n\t\tmultiplexingClientServer.stopRunning();\n\t}",
"public static void closePool(){\n\t\t\n\t\t// TODO signal to kill all pool.\n\t\t\n\t}",
"void unsetProbables();",
"public synchronized void release() {\r\n if (active) {\r\n if (clmNullDummy != null)\r\n clReleaseMemObject(clmNullDummy);\r\n if (kernelMatrixMultiplication != null)\r\n clReleaseKernel(kernelMatrixMultiplication);\r\n if (kernelVectorTotal != null)\r\n clReleaseKernel(kernelVectorTotal);\r\n if (kernelVectorSquaredTotal != null)\r\n clReleaseKernel(kernelVectorSquaredTotal);\r\n if (kernelForwardPropagation != null)\r\n clReleaseKernel(kernelForwardPropagation);\r\n if (krenelCostFunctionPartLog != null)\r\n clReleaseKernel(krenelCostFunctionPartLog);\r\n if (kernelCalculateGradientTheta != null)\r\n clReleaseKernel(kernelCalculateGradientTheta);\r\n if (kernelCalculateGradientDelta != null)\r\n clReleaseKernel(kernelCalculateGradientDelta);\r\n if (program != null)\r\n clReleaseProgram(program);\r\n if (commandQueue != null)\r\n clReleaseCommandQueue(commandQueue);\r\n if (context != null)\r\n clReleaseContext(context);\r\n active = false;\r\n }\r\n }",
"@Override\n\tpublic void terminateDatacenters() {\n\t}",
"public void run() {\n Launcher.destroyAll();\n }",
"public static void stopEverything(){\r\n\t\tfor(final ExecutionHandler<?> execHandler:allThreads){\r\n\t\t\t//interrupt the stack execution, so that it wont be further executed \r\n\t\t\tstopExecutionHandler(execHandler);\r\n\t\t}\r\n\t\t//Now when all ExecutionHandlers should already be empty, but for sure - clear all global lists explicitly\r\n\t\tallThreads.clear(); \r\n\t\tallExecutablesInProcess.clear();\r\n\t\trootBlockToThread.clear();\r\n\t}",
"public static void shutDown(){\n for(int i = PS3_LIST_.size()-1; i >= 0; i--){\n PS3 instance = PS3_LIST_.get(i);\n instance.setLed(false);\n instance.destroy();\n }\n PS3Logger.log(PS3Logger.TYPE.DEBUG, null, \"PS3 SHUTDOWN\");\n }",
"void unsetPoolRaces();",
"public void shutdown() {\r\n //shut down MbModule\r\n super.shutdown();\r\n }",
"void cancelAllSimulations(String jobId);",
"public void terminate(){\n running = false;\n }",
"public void closeAllBrowsers() {\n\n driver.quit();\n\n\n }",
"public static void shutdown ()\n\t{\n\t\tif (m_interpreter != null)\n\t\t{\n\t\t\tm_console.dispose ();\n\t\t\tm_interpreter.cleanup ();\n\t\t}\n\t}",
"public void stop() {\n if (isStop.compareAndSet(false, true)) {\n if (bootstrap.config().group() != null) {\n Future future = bootstrap.config().group().shutdownGracefully();\n ((io.netty.util.concurrent.Future) future).syncUninterruptibly();\n }\n for (BrpcChannelGroup channelGroup : healthyInstances) {\n channelGroup.close();\n }\n for (BrpcChannelGroup channelGroup : unhealthyInstances) {\n channelGroup.close();\n }\n if (timeoutTimer != null) {\n timeoutTimer.stop();\n }\n if (namingService != null) {\n namingService.unsubscribe(subscribeInfo);\n }\n if (healthCheckTimer != null) {\n healthCheckTimer.stop();\n }\n if (loadBalanceStrategy != null) {\n loadBalanceStrategy.destroy();\n }\n if (callbackThread != null) {\n callbackThread.shutdown();\n }\n if (threadPool != null) {\n threadPool.stop();\n }\n }\n }",
"public void disposeAllInspectors() {\n Object obj;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n obj = e.nextElement();\n ((InspectorInterface)obj).dispose();\n com.cosylab.vdct.DataProvider.getInstance().removeInspectableListener((InspectableObjectsListener)obj);\n }\n inspectors.removeAllElements();\n}",
"void shutdown() {\n if (metricRegistry != null) {\n for (String metricName : gaugeMetricNames) {\n try {\n metricRegistry.remove(metricName);\n } catch (RuntimeException e) {\n // ignore\n }\n }\n }\n }",
"public void stop() {\n log.info(\"Stopped\");\n execFactory.shutdown();\n cg.close();\n }",
"public NodeSet deleteLbInstances() throws JNCException {\n this.lbInstances = null;\n String path = \"lb-instances\";\n return delete(path);\n }",
"public void shutdown();",
"public void shutdown();",
"public void shutdown();",
"public void shutdown();",
"static synchronized void closeAll() {\n List<BlackLabEngine> copy = new ArrayList<>(engines);\n engines.clear();\n for (BlackLabEngine engine : copy) {\n engine.close();\n }\n }",
"public void cancelAll() {\n this.disposables.dispose();\n }",
"public void shutdown()\r\n {\r\n debug(\"shutdown() the application module\");\r\n\r\n // Shutdown all the Timers\r\n shutdownWatchListTimers();\r\n // Save Our WatchLists\r\n saveAllVectorData();\r\n // Our Container vectors need to be emptied and clear. \r\n modelVector.removeAllElements();\r\n modelVector = null;\r\n\r\n tableVector.removeAllElements();\r\n tableVector = null;\r\n\r\n // Delete any additional Historic Data that is Serialized to disk\r\n expungeAllHistoricFiles();\r\n\r\n // Shutdown the task that monitors the update tasks\r\n if ( this.monitorTask != null )\r\n {\r\n this.monitorTask.cancel();\r\n this.monitorTask = null;\r\n }\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n debug(\"shutdown() the application module - complete\");\r\n\r\n }",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void terminate() {\r\n running = false;\r\n }",
"void clearInstances();",
"private void stopProcesses()\n {\n List<String> list = new ArrayList<String>(serverProcessesShutdownStack.keySet());\n ListIterator<String> iter = list.listIterator(list.size());\n while(iter.hasPrevious())\n {\n String processName = iter.previous();\n log.info(String.format(\"Stopping process: %s\", processName));\n serverProcessesShutdownStack.get(processName).stop(this);\n }\n }",
"public void terminate() {\n }",
"public void shutdown() {\n // For now, do nothing\n }",
"public void shutDown();",
"public void closeAllProcesses(){\r\n \t\t// copy since endLongRunning removes from the map\r\n \t\tIFile[] fs=buildProcesses.keySet().toArray(new IFile[buildProcesses.size()]);\r\n \t\tfor (IFile f:fs){\r\n \t\t\tendLongRunning(f);\r\n \t\t}\r\n \t\tbuildProcesses.clear();\r\n \t}",
"public void terminate();",
"void removeAllDesktops();",
"public void shutdownAll() {\n System.out.println(\"Shutting down network, received halt command!\");\n _poolData.shutdown();\n }",
"protected abstract void doKill();",
"public void emu_stop() throws UnicornException {\n emu_stop(nativeHandle);\n }",
"public void shutdown() {\n }",
"public void freeForks() {\r\n\t\t\t// send message to free forks\r\n\t\t\tString msg = \"right-fork\";\r\n\t\t\tif (forks[0] && forks[1]) {\r\n\t\t\t\tmsg = \"both-forks\";\r\n\t\t\t\tforks[0] = false;\r\n\t\t\t\tforks[1] = false;\r\n\t\t\t}\r\n\t\t\telse if (forks[0]) {\r\n\t\t\t\tmsg = \"left-fork\";\r\n\t\t\t\tforks[0] = false;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tmsg = \"right-fork\";\r\n\t\t\t\tforks[1] = false;\r\n\t\t\t}\r\n\t\t\tACLMessage request = new ACLMessage(ACLMessage.CANCEL);\r\n\t\t\trequest.addReceiver(waiter);\r\n\t\t\trequest.setContent(msg);\r\n\t\t\trequest.setConversationId(\"philosopher-waiter-fork\");\r\n\t\t\trequest.setReplyWith(\"cancel\"+System.currentTimeMillis());\r\n\t\t\tmyAgent.send(request);\r\n\t\t}",
"@Override\r\n\tpublic void doCommand(String[] args) {\r\n\t\tthis.getModel().closeThreads();\r\n\t\t\r\n\t}",
"void unsetSystem();",
"public void shutdown()\n {\n // todo\n }",
"private static void closeAll() {\n try {\n outputFileBuffer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Encog.getInstance().shutdown();\n }",
"@Override\r\n\tpublic void shutdown() {\n\t\tunRigisterMBean();\r\n\t}",
"public static void shutdown() {\n\t}",
"public void kill()\n\t{\n\t\tisKilled = true;\n\t}",
"public void stop() {\n\t\tif (this.isRunning() && !this.isManagedExternally) {\n\t\t\ttry {\n\t\t\t\tHTTP.release(this.http.get(this.shutdown));\n\t\t\t} catch (IOException exception) {\n\t\t\t\tthis.processRunner.abort();\n\t\t\t}\n\n\t\t\tthis.isManagedExternally = null;\n\t\t}\n\t}",
"private void shutdownThreads() {\n\t\tif (backupHeartbeatBroadcaster != null) {\n\t\t\tbackupHeartbeatBroadcaster.cancel();\n\t\t}\n\t\tif (activeHeartbeatTimer != null) {\n\t\t\tactiveHeartbeatTimer.cancel();\n\t\t}\n\t\tif (serverLatencyProcessorTimer != null) {\n\t\t\tserverLatencyProcessorTimer.cancel();\n\t\t}\n\t\tif (backupHeartbeatTimer != null) {\n\t\t\tbackupHeartbeatTimer.cancel();\n\t\t}\n\t\tif (reElectionTimer != null) {\n\t\t\treElectionTimer.cancel();\n\t\t}\n\t\tif (preElectionTimeoutTimer != null) {\n\t\t\tpreElectionTimeoutTimer.cancel();\n\t\t}\n\t}",
"public void destroy() {\n this.bfc.cleanUp();\n }",
"public void shutdown()\n {\n // nothing to do here\n }",
"public void shutdownNoiseMaker() {\n\t\tcnt.interrupt();\n\t\tsingleNoise.release();\n\t}",
"protected void killUselessThread() {\n if (!System.getProperty(\"os.name\").contains(\"Windows\")) {\n killAllChildrenProcess();\n for (Thread thread : Thread.getAllStackTraces().keySet()) {\n if (!threadSet.contains(thread)) {\n thread.interrupt();\n }\n }\n }\n }",
"@Override\n\tpublic void terminateInstances(ITerminateInstancesRequest req) {\n\t\t\n\t}",
"public void closeAllBrowser(){\r\n\tdriver.quit();\t\r\n\t}"
] | [
"0.64241374",
"0.6316966",
"0.61808383",
"0.60514027",
"0.5936648",
"0.5935324",
"0.57801753",
"0.5751208",
"0.5726316",
"0.5692092",
"0.5687204",
"0.5685459",
"0.56812143",
"0.56812143",
"0.56723636",
"0.56627023",
"0.5658596",
"0.5631967",
"0.5624663",
"0.55846703",
"0.5584122",
"0.5509567",
"0.5470685",
"0.5463527",
"0.54471827",
"0.5444279",
"0.5434221",
"0.54142386",
"0.54026014",
"0.53891385",
"0.537195",
"0.5362845",
"0.5362657",
"0.5348808",
"0.53368",
"0.53349376",
"0.5331729",
"0.53269976",
"0.53256375",
"0.5317354",
"0.52965075",
"0.5290035",
"0.5288724",
"0.52794313",
"0.5275138",
"0.52747244",
"0.526929",
"0.5268534",
"0.52587175",
"0.5245085",
"0.5244913",
"0.52286875",
"0.5226724",
"0.5221831",
"0.52178156",
"0.520459",
"0.5192404",
"0.5170937",
"0.5169541",
"0.5168087",
"0.515387",
"0.5152687",
"0.5152687",
"0.5152687",
"0.5152687",
"0.5141442",
"0.5139119",
"0.5137813",
"0.5135186",
"0.5135186",
"0.5135186",
"0.5135017",
"0.5130029",
"0.5127531",
"0.512323",
"0.51165867",
"0.511506",
"0.50978315",
"0.50849074",
"0.5074906",
"0.50742733",
"0.5062098",
"0.50604665",
"0.5055683",
"0.5053929",
"0.5047491",
"0.5034556",
"0.5029937",
"0.50280356",
"0.5023721",
"0.50219667",
"0.5019961",
"0.50185233",
"0.50158775",
"0.501319",
"0.5004763",
"0.5002951",
"0.50024223",
"0.5001311",
"0.49964744"
] | 0.80623204 | 0 |
TODO Autogenerated method stub | @Override
public int insert(Attachment attach) {
return aDao.insert(attach);
} | {
"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 ArrayList<Attachment> getAttachment(String docType, int seq) {
return aDao.getAttachment(docType, seq);
} | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.